html.koa-auth-pending .app{visibility:hidden!important}.koa-login{position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:20px;background:#f8eef7;font-family:Inter,"Segoe UI",sans-serif;color:#292541}.koa-login[hidden]{display:none}.koa-login-card{width:min(390px,100%);padding:30px;border-radius:28px;background:#fff;box-shadow:0 25px 70px #3d2c6828;text-align:center}.koa-login-face{width:78px;height:78px;margin:0 auto 13px;border-radius:24px;object-fit:cover}.koa-login h1{margin:0;color:#39245f;letter-spacing:3px}.koa-login p{margin:7px 0 21px;color:#777187}.koa-login label{display:block;margin:12px 0 6px;text-align:left;font-size:12px;font-weight:850}.koa-login input:not([type="checkbox"]){width:100%;min-height:50px;padding:12px 14px;border:1.5px solid #e4deec;border-radius:14px;background:#faf9fc;font:inherit;font-weight:750;outline:0}.koa-login input:not([type="checkbox"]):focus{border-color:#7664cc}.koa-remember{display:flex!important;align-items:center;gap:9px;margin:15px 0 0!important;text-align:left!important;font-size:13px!important;font-weight:750!important;cursor:pointer}.koa-remember input{width:18px;height:18px;margin:0;accent-color:#39245f}.koa-remember span{line-height:1.2}.koa-login button{width:100%;min-height:50px;margin-top:17px;border:0;border-radius:14px;background:#39245f;color:#fff;font:inherit;font-weight:900;cursor:pointer}.koa-login button:disabled{opacity:.65}.koa-login-error{min-height:20px;margin-top:12px;color:#c53e68;font-size:13px;font-weight:800}.koa-account{position:fixed;z-index:10002;right:14px;bottom:82px;display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid #e9e3ef;border-radius:12px;background:#fffffff2;box-shadow:0 6px 18px #3d2c6818;font:700 10px Inter,"Segoe UI",sans-serif;color:#655c75}.koa-account button{border:0;border-radius:8px;padding:5px 7px;background:#eeeaf5;color:#554a68;font:inherit}@media(max-width:700px){.koa-login-card{padding:25px 21px}.koa-account{bottom:76px;right:8px}.koa-account span{display:none}}
.koa-presence{position:relative;z-index:120;flex:0 0 auto;font-family:Inter,"Segoe UI",sans-serif}.koa-presence-pill{height:36px;display:flex;align-items:center;gap:5px;padding:0 9px;border:1px solid #dceee3;border-radius:13px;background:#f7fff9;color:#38634a;font-size:10px;font-weight:850;white-space:nowrap}.koa-presence-pill>i,.koa-presence-list>div>i{display:block;width:8px;height:8px;border-radius:50%;background:#36c978;box-shadow:0 0 0 3px #36c97820}.koa-presence-pill>b{font-size:12px;color:#245c3b}.koa-presence-pill.count-only{cursor:default}.koa-presence-panel{position:absolute;z-index:10010;top:44px;right:0;width:260px;max-height:min(420px,70vh);overflow:auto;padding:12px;border:1px solid #e9e3ef;border-radius:18px;background:#fff;box-shadow:0 20px 55px #2b23413d;color:#292541}.koa-presence-panel[hidden]{display:none}.koa-presence-panel header{display:flex;align-items:center;justify-content:space-between;padding:2px 3px 10px;border-bottom:1px solid #eee9f3}.koa-presence-panel header button{width:28px;height:28px;border:0;border-radius:9px;background:#f1eef6;color:#625974;font-size:19px}.koa-presence-list{display:grid;gap:5px;padding-top:8px}.koa-presence-list>div{display:grid;grid-template-columns:10px 1fr;align-items:center;gap:9px;padding:8px;border-radius:11px;background:#faf9fc}.koa-presence-list span{display:grid}.koa-presence-list b{font-size:12px}.koa-presence-list small{color:#81798e;font-size:9px;text-transform:capitalize}.koa-presence-list p{margin:8px;color:#81798e;font-size:12px}@media(max-width:700px){.koa-presence-pill{width:42px;height:34px;justify-content:center;padding:0 6px}.koa-presence-pill span{display:none}.koa-presence-panel{position:fixed;top:68px;right:10px;width:min(280px,calc(100vw - 20px))}}

/* Presence dialog: visible in the compact mobile header and centered on every screen. */
.header-compact-actions>.koa-presence{display:block!important;order:-1!important;flex:0 0 auto!important}
.koa-presence-pill,.koa-presence-pill.count-only{cursor:pointer!important}
.koa-presence-panel{position:fixed!important;z-index:10050!important;top:50%!important;left:50%!important;right:auto!important;width:min(390px,calc(100vw - 32px))!important;max-height:min(560px,calc(100dvh - 48px))!important;margin:0!important;transform:translate(-50%,-50%)!important;overflow:auto!important;padding:18px!important;border:1px solid #e9e3ef!important;border-radius:24px!important;background:#fff!important;box-shadow:0 0 0 100vmax rgba(28,22,46,.48),0 24px 70px rgba(34,25,58,.35)!important}
.koa-presence-panel header{position:sticky;top:-18px;z-index:2;margin:-2px -2px 8px;padding:10px 2px 14px;background:#fff}
.koa-presence-panel header>b{font-size:18px;color:#39245f}
.koa-presence-panel header button{cursor:pointer}
.koa-presence-total{display:grid!important;grid-template-columns:auto 1fr!important;grid-template-rows:auto auto!important;align-items:center!important;justify-content:center!important;column-gap:14px!important;padding:28px 16px!important;text-align:left!important;background:#f7fff9!important;border:1px solid #dceee3!important;border-radius:18px!important}
.koa-presence-total>i{grid-row:1/3!important;width:16px!important;height:16px!important}
.koa-presence-total>strong{font-size:34px!important;line-height:1!important;color:#245c3b!important}
.koa-presence-total>span{font-size:12px!important;color:#60806d!important}
@media(max-width:700px){.header-compact-actions>.koa-presence{display:block!important}.koa-presence-pill{display:flex!important;width:40px!important;min-width:40px!important;height:40px!important;padding:0 5px!important;border-radius:12px!important}.koa-presence-pill>i{width:7px;height:7px}.koa-presence-pill>b{font-size:11px}.koa-presence-panel{top:50%!important;left:50%!important;right:auto!important;width:calc(100vw - 24px)!important;max-height:calc(100dvh - 32px)!important;transform:translate(-50%,-50%)!important}}
/* Keep presence out of the stats flex group so it never pushes header actions off-screen. */
body.koa-v2 .top{position:relative!important}
body.koa-v2 .top>.koa-presence{display:block!important;position:absolute!important;z-index:121!important;top:50%!important;right:218px!important;margin:0!important;transform:translateY(-50%)!important}
body.koa-v2 .top>.koa-presence .koa-presence-panel{transform:translate(-50%,-50%)!important}
@media(max-width:700px){
 body.koa-v2 .top>.koa-presence{display:block!important;top:calc(env(safe-area-inset-top,0px) + 20px)!important;right:104px!important;transform:none!important}
 body.koa-v2 .top>.koa-presence .koa-presence-pill{display:flex!important;width:38px!important;min-width:38px!important;height:38px!important}
 body.koa-v2 .top>.koa-presence .koa-presence-panel{top:50%!important;left:50%!important;right:auto!important;transform:translate(-50%,-50%)!important}
}
@media(max-width:370px){body.koa-v2 .top>.koa-presence{right:92px!important}}
/* Avoid a transformed ancestor so the dialog stays relative to the viewport. */
body.koa-v2 .top>.koa-presence{top:calc(50% - 18px)!important;transform:none!important}
@media(max-width:700px){body.koa-v2 .top>.koa-presence{top:calc(env(safe-area-inset-top,0px) + 1px)!important}}
/* Journey leaderboard */
.koa-leaderboard{position:absolute!important;z-index:122!important;top:calc(50% - 18px)!important;right:270px!important;font-family:Inter,"Segoe UI",sans-serif}
.koa-leaderboard-pill{height:36px;display:flex;align-items:center;gap:5px;padding:0 9px;border:1px solid #eadfae;border-radius:13px;background:#fffaf0;color:#765f19;font:900 11px Inter,"Segoe UI",sans-serif;cursor:pointer}
.koa-leaderboard-pill span{font-size:16px}.koa-leaderboard-pill b{font-variant-numeric:tabular-nums}
.koa-leaderboard-panel{position:fixed;z-index:10060;top:50%;left:50%;width:min(430px,calc(100vw - 32px));max-height:min(600px,calc(100dvh - 48px));transform:translate(-50%,-50%);overflow:auto;padding:18px;border:1px solid #e9e3ef;border-radius:24px;background:#fff;box-shadow:0 0 0 100vmax rgba(28,22,46,.48),0 24px 70px rgba(34,25,58,.35);font-family:Inter,"Segoe UI",sans-serif;color:#292541}
.koa-leaderboard-panel[hidden]{display:none}.koa-leaderboard-panel header{position:sticky;top:-18px;z-index:2;display:flex;align-items:center;justify-content:space-between;margin:-2px -2px 9px;padding:8px 2px 14px;border-bottom:1px solid #eee9f3;background:#fff}.koa-leaderboard-panel header div{display:grid}.koa-leaderboard-panel header small{color:#a48524;font-size:9px;font-weight:950;letter-spacing:1.2px}.koa-leaderboard-panel header b{color:#39245f;font-size:20px}.koa-leaderboard-panel header button{width:32px;height:32px;border:0;border-radius:10px;background:#f1eef6;color:#625974;font-size:21px;cursor:pointer}
.koa-leaderboard-list{display:grid;gap:7px}.koa-leaderboard-list>div{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:11px 12px;border-radius:14px;background:#faf9fc}.koa-leaderboard-list>div.me{background:#f0edff;box-shadow:inset 0 0 0 1px #dcd4ff}.koa-leaderboard-list strong{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#fff3c4;color:#86691b;font-size:13px}.koa-leaderboard-list span{font-size:13px;font-weight:850}.koa-leaderboard-list b{color:#7464a7;font-size:12px;font-variant-numeric:tabular-nums}
@media(max-width:700px){.koa-leaderboard{top:calc(env(safe-area-inset-top,0px) + 1px)!important;right:148px!important}.koa-leaderboard-pill{width:38px;min-width:38px;height:38px;justify-content:center;padding:0}.koa-leaderboard-pill span{font-size:15px}.koa-leaderboard-pill b{display:none}.koa-leaderboard-panel{width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}}
@media(max-width:370px){.koa-leaderboard{right:134px!important}}
/* Mobile app-style top bar: one opaque Journey-colored row. */
@media(max-width:700px){
 html body.koa-v2 .app>.top{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:clamp(8px,3vw,14px)!important;
  width:100%!important;
  max-width:100%!important;
  min-height:calc(56px + env(safe-area-inset-top,0px))!important;
  padding:env(safe-area-inset-top,0px) 10px 0!important;
  background:var(--journey-bg,#fdf9ff)!important;
  background-color:#fdf9ff!important;
  opacity:1!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
 }
 html body.koa-v2 .app>.top>.header-compact-actions{display:contents!important}
 html body.koa-v2 .app>.top>.header-compact-actions>#arenaOpen,
 html body.koa-v2 .app>.top>.header-compact-actions>#coinOpen,
 html body.koa-v2 .app>.top>.header-compact-actions>#topProgress,
 html body.koa-v2 .app>.top>.header-compact-actions>#rankPill{display:none!important}
 html body.koa-v2 .app>.top>.koa-leaderboard,
 html body.koa-v2 .app>.top>.koa-presence{
  position:static!important;
  inset:auto!important;
  margin:0!important;
  transform:none!important;
  flex:0 0 auto!important;
 }
 html body.koa-v2 .app>.top>.koa-leaderboard{order:1!important}
 html body.koa-v2 .app>.top>.koa-presence{order:2!important}
 html body.koa-v2 .app>.top #koaHeaderStreak{order:3!important}
 html body.koa-v2 .app>.top #koaHeaderLeaves{order:4!important}
 html body.koa-v2 .app>.top>.koa-leaderboard .koa-leaderboard-pill,
 html body.koa-v2 .app>.top>.koa-presence .koa-presence-pill,
 html body.koa-v2 .app>.top .koa-header-stat{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:42px!important;
  min-height:42px!important;
  min-width:46px!important;
  margin:0!important;
  padding:0 7px!important;
  border-radius:13px!important;
  line-height:1!important;
 }
 html body.koa-v2 .app>.top>.koa-leaderboard .koa-leaderboard-pill b{display:none!important}
 html body.koa-v2 .app>.top>.koa-presence .koa-presence-pill span{display:none!important}
}
/* Exact Journey continuity: identical color and no visual separator. */
@media(max-width:700px){
 html body.koa-v2 .app>.top,
 html body.koa-map-home .app>.top{
  background:#f8eef7!important;
  background-color:#f8eef7!important;
  border:0!important;
  border-top:0!important;
  border-right:0!important;
  border-bottom:0!important;
  border-left:0!important;
  outline:0!important;
  box-shadow:none!important;
 }
}
/* Final top-bar order and spacing: Streak, Leaves, Online, Leaderboard. */
html body.koa-v2 .app>.top{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:14px!important}
html body.koa-v2 .app>.top>.header-compact-actions{display:contents!important}
html body.koa-v2 .app>.top>.header-compact-actions>#arenaOpen,
html body.koa-v2 .app>.top>.header-compact-actions>#coinOpen,
html body.koa-v2 .app>.top>.header-compact-actions>#topProgress,
html body.koa-v2 .app>.top>.header-compact-actions>#rankPill{display:none!important}
html body.koa-v2 .app>.top>.koa-presence,
html body.koa-v2 .app>.top>.koa-leaderboard{position:static!important;inset:auto!important;flex:0 0 auto!important;margin:0!important;transform:none!important}
html body.koa-v2 .app>.top #koaHeaderStreak{order:1!important}
html body.koa-v2 .app>.top #koaHeaderLeaves{order:2!important}
html body.koa-v2 .app>.top>.koa-presence{order:3!important}
html body.koa-v2 .app>.top>.koa-leaderboard{order:4!important}
html body.koa-v2 .app>.top .koa-header-stat,
html body.koa-v2 .app>.top .koa-presence-pill,
html body.koa-v2 .app>.top .koa-leaderboard-pill{margin:0!important;flex:0 0 auto!important}
@media(min-width:701px){
 html body.koa-v2 .app>.top{padding-left:18px!important;padding-right:18px!important;gap:16px!important}
 html body.koa-v2 .app>.top .koa-header-stat,
 html body.koa-v2 .app>.top .koa-presence-pill,
 html body.koa-v2 .app>.top .koa-leaderboard-pill{min-width:48px!important;height:40px!important;padding-left:8px!important;padding-right:8px!important}
}
@media(max-width:700px){
 html body.koa-v2 .app>.top{justify-content:center!important;gap:clamp(10px,3.5vw,16px)!important}
 html body.koa-v2 .app>.top .koa-header-stat,
 html body.koa-v2 .app>.top .koa-presence-pill,
 html body.koa-v2 .app>.top .koa-leaderboard-pill{width:auto!important;min-width:48px!important;height:46px!important;min-height:46px!important;padding:0 7px!important}
 html body.koa-v2 .app>.top .koa-header-stat i,
 html body.koa-v2 .app>.top .koa-header-stat svg{width:23px!important;height:23px!important;font-size:23px!important}
 html body.koa-v2 .app>.top .koa-leaderboard-pill span{font-size:23px!important;line-height:1!important}
 html body.koa-v2 .app>.top .koa-presence-pill>i{width:15px!important;height:15px!important;box-shadow:0 0 0 4px #36c97820!important}
 html body.koa-v2 .app>.top .koa-presence-pill>b{font-size:12px!important}
}
@media(max-width:370px){
 html body.koa-v2 .app>.top{gap:7px!important}
 html body.koa-v2 .app>.top .koa-header-stat,
 html body.koa-v2 .app>.top .koa-presence-pill,
 html body.koa-v2 .app>.top .koa-leaderboard-pill{min-width:44px!important;padding-left:5px!important;padding-right:5px!important}
}
/* Desktop-only KOA / TSL DEMO brand. */
@media(min-width:701px){
 html body.koa-v2 .app>.top>.koa-desktop-brand{display:flex!important;align-items:center!important;gap:10px!important;margin-right:auto!important;flex:0 0 auto!important}
 html body.koa-v2 .app>.top>.koa-desktop-brand #brandHome{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;border:0!important;border-radius:14px!important;overflow:hidden!important;background:transparent!important;cursor:pointer!important}
 html body.koa-v2 .app>.top>.koa-desktop-brand #brandHome img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
 html body.koa-v2 .app>.top>.koa-desktop-brand h1{display:block!important;margin:0!important;color:#30205f!important;font-size:18px!important;font-weight:950!important;letter-spacing:1px!important;white-space:nowrap!important}
}
@media(max-width:700px){html body.koa-v2 .app>.top>.koa-desktop-brand{display:none!important}}
/* One mobile geometry: icon row plus the phone safe area underneath. */
@media(max-width:700px){
 html body.koa-v2{
  --koa-mobile-nav-row:64px;
  --koa-mobile-nav-safe:max(24px,env(safe-area-inset-bottom,0px));
  --koa-content-bottom:calc(var(--koa-mobile-nav-row) + var(--koa-mobile-nav-safe))!important;
 }
 html body.koa-v2 .koa-mobile-bottom-nav,
 html body.koa-map-home .koa-mobile-bottom-nav{
  box-sizing:border-box!important;
  height:calc(var(--koa-mobile-nav-row) + var(--koa-mobile-nav-safe))!important;
  min-height:calc(var(--koa-mobile-nav-row) + var(--koa-mobile-nav-safe))!important;
  padding:0 8px var(--koa-mobile-nav-safe)!important;
  grid-template-rows:var(--koa-mobile-nav-row)!important;
  align-content:start!important;
  align-items:stretch!important;
  background:#fff!important;
 }
 html body.koa-v2 .koa-mobile-bottom-nav button,
 html body.koa-map-home .koa-mobile-bottom-nav button{
  box-sizing:border-box!important;
  height:var(--koa-mobile-nav-row)!important;
  min-height:var(--koa-mobile-nav-row)!important;
  align-self:start!important;
  justify-content:center!important;
 }
 html body.koa-v2 .koa-chapter-banner,
 html body.koa-map-home .koa-chapter-banner{
  box-sizing:border-box!important;
  height:88px!important;
  min-height:88px!important;
  padding:13px 14px 13px 18px!important;
  grid-template-columns:minmax(0,1fr) 54px!important;
  gap:11px!important;
 }
 html body.koa-v2 .koa-chapter-banner small,
 html body.koa-map-home .koa-chapter-banner small{font-size:10px!important;line-height:1.2!important;letter-spacing:1.15px!important}
 html body.koa-v2 .koa-chapter-banner b,
 html body.koa-map-home .koa-chapter-banner b{margin-top:4px!important;font-size:18px!important;line-height:1.2!important}
 html body.koa-v2 .koa-chapter-banner span,
 html body.koa-map-home .koa-chapter-banner span{margin-top:4px!important;font-size:11px!important;line-height:1.2!important}
 html body.koa-map-home .koa-map-scroll-v2{
  height:calc(100dvh - var(--koa-content-top) - var(--koa-content-bottom) - 118px - env(safe-area-inset-top,0px))!important;
 }
}

@media(max-width:700px){html body.koa-v2 .koa-account{bottom:calc(var(--koa-content-bottom) + 8px)!important}}
/* Frameless KOA header assets: same treatment on desktop and mobile. */
html body.koa-v2 .app>.top .koa-presence-pill,
html body.koa-v2 .app>.top .koa-leaderboard-pill{
 border:0!important;
 border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;
}
html body.koa-v2 .app>.top .koa-presence-pill>i{
 display:grid!important;
 place-items:center!important;
 width:25px!important;
 height:25px!important;
 border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;
}
html body.koa-v2 .app>.top .koa-presence-pill>i>img{
 display:block!important;
 width:25px!important;
 height:25px!important;
 object-fit:contain!important;
}
html body.koa-v2 .app>.top .koa-leaderboard-pill>span{
 display:grid!important;
 place-items:center!important;
 width:32px!important;
 height:32px!important;
 font-size:0!important;
}
html body.koa-v2 .app>.top .koa-leaderboard-pill>span>img{
 display:block!important;
 width:32px!important;
 height:32px!important;
 object-fit:contain!important;
}
@media(max-width:700px){
 html body.koa-v2 .app>.top .koa-presence-pill,
 html body.koa-v2 .app>.top .koa-leaderboard-pill{
  width:44px!important;
  min-width:44px!important;
  padding:0 3px!important;
 }
 html body.koa-v2 .app>.top .koa-presence-pill>i,
 html body.koa-v2 .app>.top .koa-presence-pill>i>img{width:24px!important;height:24px!important}
 html body.koa-v2 .app>.top .koa-leaderboard-pill>span,
 html body.koa-v2 .app>.top .koa-leaderboard-pill>span>img{width:31px!important;height:31px!important}
}
/* Unified illustrated top-bar icons. */
html body.koa-v2 .app>.top #koaHeaderStreak>i,
html body.koa-v2 .app>.top #koaHeaderLeaves>i{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;font-size:0!important}
html body.koa-v2 .app>.top #koaHeaderStreak>i>img,
html body.koa-v2 .app>.top #koaHeaderLeaves>i>img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
@media(max-width:700px){html body.koa-v2 .app>.top #koaHeaderStreak>i,html body.koa-v2 .app>.top #koaHeaderLeaves>i{width:31px!important;height:31px!important}}/* Weekly Streak prototype — no image assets. */
#koaHeaderStreak{cursor:pointer!important;user-select:none}
.koa-streak-overlay{position:fixed;z-index:10030;inset:0;display:grid;place-items:center;padding:20px;background:#241d3a80;backdrop-filter:blur(7px);font-family:Inter,"Segoe UI",sans-serif;color:#292541}
.koa-streak-overlay[hidden]{display:none!important}
.koa-streak-card{position:relative;width:min(560px,calc(100vw - 32px));padding:30px;border:1px solid #e9e0ed;border-radius:30px;background:#fdf9ff;box-shadow:0 26px 80px #2d204b4a;text-align:center}
.koa-streak-close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:12px;background:#eee7f1;color:#554568;font-size:26px;line-height:1;cursor:pointer}
.koa-streak-flame{font-size:58px;line-height:1;filter:drop-shadow(0 8px 12px #f3944740)}
.koa-streak-card>small{display:block;margin-top:12px;color:#8b79a0;font-size:10px;font-weight:950;letter-spacing:1.7px}
.koa-streak-card h2{margin:5px 0 23px;color:#39245f;font-size:29px;line-height:1.1}
.koa-streak-card h2 b{color:#ed7846;font-size:38px}
.koa-streak-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}
.koa-streak-day{display:grid;justify-items:center;gap:8px;min-width:0}
.koa-streak-day small{color:#8d8495;font-size:9px;font-weight:900}
.koa-streak-day i{display:grid;place-items:center;width:52px;height:52px;border:2px solid #ded6e5;border-radius:50%;background:#f1edf3;color:#aca3b2;font-size:15px;font-style:normal;font-weight:950}
.koa-streak-day.done i{border-color:#ed9b55;background:#fff0d5;color:#e86737;font-size:23px}
.koa-streak-day.today i{border-color:#8a72c0;background:#fff;color:#69549c;animation:koaStreakPulse 1.7s ease-in-out infinite}
.koa-streak-day.future{opacity:.58}
.koa-streak-card>p{min-height:21px;margin:22px 0 17px;color:#706679;font-size:13px;font-weight:750}
.koa-streak-best{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-radius:16px;background:#eee8f3;color:#695e73;font-size:12px;font-weight:850}
.koa-streak-best b{color:#39245f}.koa-streak-best i{font-style:normal}
@keyframes koaStreakPulse{0%,100%{box-shadow:0 0 0 0 #8a72c02e}50%{box-shadow:0 0 0 8px #8a72c000}}
@media(max-width:700px){
 .koa-streak-overlay{padding:14px}
 .koa-streak-card{width:100%;padding:26px 14px 19px;border-radius:25px}
 .koa-streak-flame{font-size:50px}
 .koa-streak-card h2{margin-bottom:19px;font-size:24px}.koa-streak-card h2 b{font-size:32px}
 .koa-streak-days{gap:4px}
 .koa-streak-day{gap:6px}.koa-streak-day small{font-size:7px}
 .koa-streak-day i{width:40px;height:40px;font-size:12px}.koa-streak-day.done i{font-size:19px}
 .koa-streak-card>p{margin:19px 8px 15px;font-size:12px;line-height:1.4}
}
@media(max-width:350px){.koa-streak-day i{width:35px;height:35px}.koa-streak-days{gap:2px}}
/* One fixed mobile top bar on Journey and every secondary screen. */
@media(max-width:700px){
 html body.koa-v2 .app>.top{
  position:fixed!important;
  z-index:950!important;
  top:0!important;
  right:0!important;
  left:0!important;
  width:100vw!important;
  max-width:100vw!important;
  height:calc(70px + env(safe-area-inset-top,0px))!important;
  min-height:calc(70px + env(safe-area-inset-top,0px))!important;
  margin:0!important;
  padding:env(safe-area-inset-top,0px) 10px 0!important;
  transform:none!important;
  background:#f8eef7!important;
  border:0!important;
  box-shadow:none!important;
 }
 html body.koa-v2:not(.koa-map-home)>.app{
  box-sizing:border-box!important;
  padding-top:calc(70px + env(safe-area-inset-top,0px))!important;
 }
}
/* Compact account profile — replaces the floating Log out badge. */
.koa-account{display:none!important}
.koa-profile{position:static!important;order:5!important;flex:0 0 auto;font-family:Inter,"Segoe UI",sans-serif}
.koa-profile-pill{display:flex;align-items:center;justify-content:center;gap:7px;height:46px;min-width:46px;padding:0 8px;border:0;border-radius:0;background:transparent;color:#39245f;font:850 11px Inter,"Segoe UI",sans-serif;cursor:pointer}
.koa-profile-icon{position:relative;display:block;width:31px;height:31px;border:2px solid #272231;border-radius:50%;background:#eee8f3;overflow:hidden}
.koa-profile-icon:before{content:"";position:absolute;top:5px;left:50%;width:8px;height:8px;border:2px solid #272231;border-radius:50%;background:#f8eef7;transform:translateX(-50%)}
.koa-profile-icon span{position:absolute;bottom:3px;left:50%;width:19px;height:10px;border:2px solid #272231;border-bottom:0;border-radius:12px 12px 3px 3px;background:#f8eef7;transform:translateX(-50%)}
.koa-profile-panel{position:fixed;z-index:10040;inset:0;display:grid;align-content:center;justify-items:center;padding:22px;background:#241d3a80;backdrop-filter:blur(7px);color:#292541;text-align:center}
.koa-profile-panel[hidden]{display:none!important}
.koa-profile-panel:before{content:"";position:absolute;width:min(390px,calc(100vw - 32px));height:420px;border:1px solid #e9e0ed;border-radius:29px;background:#fdf9ff;box-shadow:0 26px 80px #2d204b4a}
.koa-profile-panel>*{position:relative;z-index:1}
.koa-profile-close{position:absolute;z-index:2;top:calc(50% - 196px);left:calc(50% + min(159px,calc(50vw - 42px)));display:grid;place-items:center;width:38px;height:38px;padding:0;border:0;border-radius:12px;background:#eee7f1;color:#554568;font-size:26px;line-height:1;cursor:pointer}
.koa-profile-avatar{display:grid;place-items:center;width:122px;height:130px;margin-bottom:10px;overflow:hidden}
.koa-profile-avatar img{display:block;width:116px;height:124px;object-fit:contain}
.koa-profile-panel>small{color:#8b79a0;font-size:10px;font-weight:950;letter-spacing:1.7px}
.koa-profile-name{margin:6px 0 3px;color:#39245f;font-size:27px;line-height:1.1}
.koa-profile-skin{margin:0 0 24px;color:#81758d;font-size:12px;font-weight:800}
.koa-profile-actions{display:grid;gap:9px;width:min(310px,calc(100vw - 72px))}
.koa-profile-actions button{width:100%;min-height:48px;border:0;border-radius:14px;font:900 13px Inter,"Segoe UI",sans-serif;cursor:pointer}
.koa-profile-password{background:#e9e2f1;color:#4c3969}.koa-profile-logout{background:#39245f;color:#fff}
@media(max-width:700px){
 html body.koa-v2 .app>.top>.koa-profile{order:5!important}
 html body.koa-v2 .app>.top .koa-profile-pill{width:44px!important;min-width:44px!important;height:46px!important;padding:0 3px!important}
 .koa-profile-pill>b{display:none!important}
 .koa-profile-icon{width:30px;height:30px}
 .koa-profile-panel{padding:16px}
 .koa-profile-panel:before{width:calc(100vw - 28px);height:410px;border-radius:26px}
 .koa-profile-close{top:calc(50% - 191px);left:auto;right:24px}
 .koa-profile-avatar{width:112px;height:119px}.koa-profile-avatar img{width:106px;height:113px}
 .koa-profile-name{font-size:24px}.koa-profile-skin{margin-bottom:21px}
}

/* Flashcards: direct, touch-first study flow */
html body.koa-v2 #flashcard{position:relative;transform:translate3d(var(--swipe-x,0),0,0) rotate(var(--swipe-rotate,0deg));transition:transform .19s cubic-bezier(.22,.72,.28,1);will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform-style:flat}
html body.koa-v2 #flashcard.swiping{transition:none!important;box-shadow:none!important}
html body.koa-v2 #flashcard.swipe-left{animation:koa-flashcard-left .26s cubic-bezier(.2,.72,.3,1) forwards}
html body.koa-v2 #flashcard.swipe-right{animation:koa-flashcard-right .26s cubic-bezier(.2,.72,.3,1) forwards}
html body.koa-v2 #flashcard .card-audio,html body.koa-v2 #flashcard .star{position:absolute;top:14px;z-index:5;width:44px;height:44px;padding:0;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body.koa-v2 #flashcard .card-audio{left:14px;font-size:23px}
html body.koa-v2 #flashcard .star{right:14px;color:#aaa7b2!important;font-size:23px}
html body.koa-v2 #flashcard .star.on{color:#f4bf24!important;text-shadow:0 2px 5px rgba(155,112,0,.22)}
@keyframes koa-flashcard-left{to{transform:translate3d(-120vw,28px,0) rotate(-15deg)}}
@keyframes koa-flashcard-right{to{transform:translate3d(120vw,28px,0) rotate(15deg)}}
@media(max-width:700px){html body.koa-v2 #study.active .study{width:100%!important;max-width:430px!important;padding-inline:0!important}html body.koa-v2 #study.active #flashcard{width:calc(100vw - 42px)!important;max-width:388px!important;min-height:clamp(330px,55dvh,455px)!important;max-height:calc(100dvh - 245px)!important;margin:0 auto!important;padding:56px 18px 24px!important;border-radius:28px!important;touch-action:pan-y;user-select:none;-webkit-user-select:none}html body.koa-v2 #study.active #flashcard .studyactions,html body.koa-v2 #study.active .desktop-card-shortcuts{display:none!important}html body.koa-v2 #study.active #flashcard .content{min-height:0!important;height:100%!important}html body.koa-v2 #study.active #flashcard .question{font-size:clamp(26px,8vw,38px)!important}html body.koa-v2 #study.active #flashcard .answer{font-size:clamp(22px,6.4vw,32px)!important}}
@media(prefers-reduced-motion:reduce){html body.koa-v2 #flashcard.swipe-left,html body.koa-v2 #flashcard.swipe-right{animation-duration:.01ms}}

/* Flashcard decisions: desktop buttons, mobile gesture */
@media(min-width:701px){html body.koa-v2 #study.active #flashcard .studyactions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:min(520px,100%)!important;margin-inline:auto!important}html body.koa-v2 #study.active #flashcard .swipe-choice{min-height:52px!important;font-size:14px!important}html body.koa-v2 #study.active #flashcard .swipe-choice:disabled{opacity:.38!important;cursor:default!important;filter:saturate(.35)}}
@media(max-width:700px){html body.koa-v2 #study.active #flashcard{touch-action:pan-y!important}html body.koa-v2 #study.active #flashcard.swiping{touch-action:none!important}}

/* Two-card Flashmallow-style stack */
html body.koa-v2 #study.active .flashcard-stack{position:relative;width:100%;isolation:isolate;overflow:visible;--under-scale:1;--under-y:0px}
html body.koa-v2 #study.active #flashcard{position:relative;z-index:2}
html body.koa-v2 #study.active .flashcard-under{position:absolute!important;z-index:1;inset:0;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;pointer-events:none;transform:none;transform-origin:50% 50%;transition:none;filter:none;box-shadow:none!important}
html body.koa-v2 #study.active .flashcard-under[hidden]{display:none!important}
html body.koa-v2 #study.active .flashcard-under .content{visibility:hidden!important;opacity:1!important}
@media(max-width:700px){html body.koa-v2 #study.active{overflow:visible!important}html body.koa-v2 #study.active .flashcard-stack{width:calc(100vw - 42px)!important;max-width:388px!important;margin:0 auto!important}html body.koa-v2 #study.active #flashcard{width:100%!important;max-width:none!important;margin:0!important}html body.koa-v2 #study.active .flashcard-under{border-radius:28px!important;padding:56px 18px 24px!important}}
/* Opaque flashcard stack fix */
html body.koa-v2 #study.active #flashcard,html body.koa-v2 #study.active .flashcard-under{background:#fff!important;opacity:1!important}
html body.koa-v2 #study.active #flashcard{isolation:isolate;z-index:3!important}
html body.koa-v2 #study.active .flashcard-under{z-index:1!important;filter:none!important}
html body.koa-v2 #study.active .flashcard-under .content{opacity:1!important}
/* Let an active flashcard travel to the physical viewport edge; the root still clips outside the screen. */
@media(max-width:700px){html body.koa-v2:has(#study.active) main{overflow-x:visible!important;overflow-y:visible!important}}

/* Gentle learned/review border feedback while swiping. */
@media(max-width:700px){html body.koa-v2 #study.active #flashcard.drag-ready,html body.koa-v2 #study.active #flashcard.swiping,html body.koa-v2 #study.active #flashcard.swipe-left,html body.koa-v2 #study.active #flashcard.swipe-right{border-color:var(--swipe-border,transparent)!important;outline:2px solid var(--swipe-border,transparent);outline-offset:-2px}}

/* Flat card stack and simple directional decision while the card moves. */
@media(max-width:700px){html body.koa-v2 #study.active #flashcard.swipe-feedback>*{visibility:hidden!important}html body.koa-v2 #study.active #flashcard.swipe-feedback::after{position:absolute;z-index:20;inset:0;display:grid;place-items:center;font-size:clamp(42px,14vw,64px);font-weight:950;line-height:1;pointer-events:none}html body.koa-v2 #study.active #flashcard.swipe-review::after{content:'↻';color:#ef6789}html body.koa-v2 #study.active #flashcard.swipe-correct::after{content:'✓';color:#66c797}}

/* Minimal flashcard header: close action plus progress only. */
html body.koa-v2 #study.active .flashcard-session-head{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;grid-template-rows:44px!important;align-items:center!important;gap:13px!important;width:100%!important;margin:0 0 10px!important;padding:0 5px!important}html body.koa-v2 #study.active .flashcard-session-head .study-home{position:static!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#756d82!important;font:400 37px/1 Arial,sans-serif!important}html body.koa-v2 #study.active .flashcard-session-head .studybar{position:static!important;width:100%!important;height:8px!important;min-height:8px!important;max-height:8px!important;flex:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:#e6dfec!important;overflow:hidden!important}html body.koa-v2 #study.active .flashcard-session-head .studybar i{display:block!important;height:100%!important;border-radius:inherit!important}html body.koa-v2 #flashcard .card-audio{color:#77727d!important;font-family:Arial,'Segoe UI Symbol',sans-serif!important;font-variant-emoji:text!important}

/* True flashcard back: show only the translation, centered. */
html body.koa-v2 #study.active #flashcard.revealed .content{display:grid!important;place-items:center!important;padding:24px 10px!important}html body.koa-v2 #study.active #flashcard.revealed .content>div{display:grid!important;place-items:center!important;width:100%!important;height:100%!important}html body.koa-v2 #study.active #flashcard.revealed .question,html body.koa-v2 #study.active #flashcard.revealed .card-labels,html body.koa-v2 #study.active #flashcard.revealed .tap-hint{display:none!important}html body.koa-v2 #study.active #flashcard.revealed .answer:not([hidden]){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;text-align:center!important}

/* Match Flashcards progress colors to Fill the Gap and normalize corner icons. */
html body.koa-v2 #study.active .flashcard-session-head .studybar{background:#e6dfec!important}html body.koa-v2 #study.active .flashcard-session-head .studybar i{background:linear-gradient(90deg,#ef76aa,#7664a7)!important}html body.koa-v2 #study.active #flashcard .card-audio,html body.koa-v2 #study.active #flashcard .star{width:44px!important;height:44px!important;top:14px!important;color:#aaa7b2!important}html body.koa-v2 #study.active #flashcard .card-audio{left:14px!important;font-size:0!important}html body.koa-v2 #study.active #flashcard .card-audio svg{display:block;width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}html body.koa-v2 #study.active #flashcard .star{right:14px!important;font-size:29px!important;line-height:1!important}html body.koa-v2 #study.active #flashcard .star.on{color:#f4bf24!important}

/* Third review: graduate the card to Difficulty with a yellow star. */
@media(max-width:700px){html body.koa-v2 #study.active #flashcard.swipe-difficult::after{content:'★';color:#f4bf24}html body.koa-v2 #study.active #flashcard.swipe-difficult{border-color:var(--swipe-border)!important;outline-color:var(--swipe-border)!important}}


/* Medium centered profile panel */
.koa-profile-panel{position:fixed!important;z-index:10040!important;inset:0!important;display:grid!important;place-items:center!important;padding:18px!important;background:rgba(36,29,58,.5)!important;backdrop-filter:blur(6px)!important;text-align:left!important}
.koa-profile-panel[hidden]{display:none!important}
.koa-profile-panel:before{display:none!important;content:none!important}
.koa-profile-card{position:relative!important;display:flex!important;flex-direction:column!important;width:min(430px,calc(100vw - 32px))!important;min-height:270px!important;padding:26px!important;border:1px solid #e9e0ed!important;border-radius:26px!important;background:#fdf9ff!important;box-shadow:0 24px 70px rgba(45,32,75,.3)!important}
.koa-profile-summary{display:flex!important;align-items:center!important;gap:16px!important;padding-right:40px!important}
.koa-profile-icon-large{flex:0 0 auto!important;width:58px!important;height:58px!important;border-width:3px!important}
.koa-profile-icon-large:before{top:9px!important;width:15px!important;height:15px!important}
.koa-profile-icon-large span{bottom:6px!important;width:34px!important;height:18px!important}
.koa-profile-name{margin:0!important;color:#39245f!important;font-size:clamp(21px,4vw,27px)!important;line-height:1.1!important;overflow-wrap:anywhere!important}
.koa-profile-close{position:absolute!important;z-index:2!important;top:16px!important;right:16px!important;left:auto!important;display:grid!important;place-items:center!important;width:36px!important;height:36px!important;padding:0!important;border:0!important;border-radius:11px!important;background:#eee7f1!important;color:#554568!important;font-size:25px!important;line-height:1!important;cursor:pointer!important}
.koa-profile-actions{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:12px!important;width:100%!important;margin-top:auto!important;padding-top:42px!important}
.koa-profile-actions button{width:auto!important;min-width:130px!important;min-height:46px!important;padding:10px 16px!important;border:0!important;border-radius:13px!important;font:900 13px Inter,"Segoe UI",sans-serif!important}
.koa-profile-logout{order:-1!important;align-self:flex-start!important;background:#39245f!important;color:#fff!important}
.koa-profile-password{background:#e9e2f1!important;color:#4c3969!important}
@media(max-width:700px){.koa-profile-card{width:min(390px,calc(100vw - 28px))!important;min-height:250px!important;padding:22px!important}.koa-profile-actions{padding-top:34px!important}.koa-profile-actions button{min-width:0!important;padding-inline:13px!important}}

/* Clear Journey leaderboard */
.koa-leaderboard-list>div{grid-template-columns:52px minmax(0,1fr) auto!important;gap:12px!important;min-height:64px!important;padding:10px 13px!important;border:2px solid transparent!important;border-radius:16px!important}
.koa-leaderboard-list strong{width:42px!important;height:42px!important;border-radius:12px!important;background:#f1edf5!important;color:#554b66!important;font-size:21px!important;font-weight:1000!important}
.koa-leaderboard-list span{font-size:14px!important}
.koa-leaderboard-list b{color:#5e4e91!important;font-size:18px!important;font-weight:1000!important;font-variant-numeric:tabular-nums!important}
.koa-leaderboard-list>div.rank-1{border-color:#d6a91e!important;background:#fff8dc!important}.koa-leaderboard-list>div.rank-1 strong{background:#f3cc45!important;color:#624b00!important}
.koa-leaderboard-list>div.rank-2{border-color:#aeb5c2!important;background:#f6f7f9!important}.koa-leaderboard-list>div.rank-2 strong{background:#d8dde5!important;color:#49515e!important}
.koa-leaderboard-list>div.rank-3{border-color:#bd7951!important;background:#fff2e9!important}.koa-leaderboard-list>div.rank-3 strong{background:#d9966e!important;color:#60331e!important}


/* Mobile presence: keep the status explicit. */
@media(max-width:700px){
 html body.koa-v2 .app>.top>.koa-presence .koa-presence-pill{
  width:auto!important;
  min-width:66px!important;
  padding:0 3px!important;
  gap:3px!important;
 }
 html body.koa-v2 .app>.top>.koa-presence .koa-presence-pill>b{
  display:inline!important;
  font-size:12px!important;
  line-height:1!important;
 }
 html body.koa-v2 .app>.top>.koa-presence .koa-presence-pill>span{
  display:inline!important;
  color:#39734f!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1!important;
 }
}

/* A touch-sized Kolizeum invitation at the end of each other player's row. */
.koa-presence-list>.koa-online-person{grid-template-columns:10px minmax(0,1fr) 44px}
.koa-online-person>span{min-width:0;overflow-wrap:anywhere}
.koa-online-challenge{display:grid;place-items:center;width:44px;height:44px;padding:3px;border:1px solid #e1d6ee;border-radius:12px;background:#f5effb;cursor:pointer}
.koa-online-challenge img{width:34px;height:34px;object-fit:contain}
.koa-online-challenge:disabled{opacity:.5;cursor:wait}
.koa-online-challenge:focus-visible{outline:3px solid #9374ce;outline-offset:2px}
