/* Round 2: modes, powers, meta. Same tokens as styles.css, 8 px grid. */
:root { --accent: #F1AE3A; }
#emblem { width: min(52vw, 232px, 25vh); height: min(52vw, 232px, 25vh); }
.mark { font-size: 48px; margin-top: 0; } [dir=rtl] .mark { font-size: 52px; }
.hero { gap: 4px; }
.bestline .sep { width: 1px; height: 18px; background: rgba(255,255,255,.15); margin: 0 4px; }
.actions { gap: 12px; padding-bottom: calc(24px + var(--sab)); }
.pill { height: 48px; padding: 0 16px 0 12px; border-radius: 24px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07); color: var(--gold2); font-weight: 700; font-family: "Plex Latin", sans-serif; font-size: 18px; }
.pill.sm { height: 32px; padding: 0 12px 0 8px; font-size: 15px; font-style: normal; }
.lvring { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; font-family: "Plex Latin", sans-serif; font-weight: 800; font-size: 18px;
  background: conic-gradient(var(--gold) calc(var(--f) * 360deg), rgba(255,255,255,.08) 0); }
.lvring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg1); }
.lvring b { position: relative; }
.ib { position: relative; color: var(--ivory); }
.ib[disabled] { opacity: .25; }
.dot { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: #E2563D; color: #fff;
  font: 800 12px/20px "Plex Latin", sans-serif; font-style: normal; text-align: center; padding: 0 4px; }
.dot:empty { min-width: 12px; height: 12px; top: 4px; inset-inline-end: 4px; }
.cta { position: relative; }
.cta .lvn { font-family: "Plex Latin", sans-serif; font-weight: 800; }
.fl { display: flex; align-items: center; gap: 2px; font-style: normal; font-size: 16px; font-weight: 800; font-family: "Plex Latin", sans-serif; color: #FF8A4C; }
.cta .fl { position: absolute; inset-inline-end: 24px; background: rgba(34,22,10,.15); padding: 4px 8px; border-radius: 12px; color: #7A2E0A; }
.fl.t2 { color: #FF5A2A; } .fl.t3 { color: #2A6BFF; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mode { height: 80px; border-radius: 20px; background: linear-gradient(180deg, #1B2541, #141C31); border: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; position: relative; transition: transform .12s; }
.mode .ic { color: var(--gold); } .mode:active { transform: scale(.92); }
.mode .ok { position: absolute; top: 6px; inset-inline-end: 6px; color: #5FD39A; }
.strips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.strip { height: 48px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; position: relative; }
.strip .ic { color: var(--gold); } .strip b { font: 700 14px "Plex Latin", sans-serif; color: var(--muted); }
.track { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; display: block; }
.track i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--f)); background: linear-gradient(90deg, #139E9C, #4FD1C5); border-radius: 4px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
[dir=rtl] .track i { transform-origin: right; }
.track.gold i, .pbar.gold .track i, .pbar.xp .track i { background: linear-gradient(90deg, #D98E1F, #FFD27A); }
.pbar { display: flex; align-items: center; gap: 8px; height: 32px; }
.pbar .ic { color: var(--gold); } .pbar b { font: 700 15px "Plex Latin", sans-serif; min-width: 40px; text-align: end; color: var(--gold2); direction: ltr; }
.pbar.xp b { order: -1; min-width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #22160A; display: grid; place-items: center; text-align: center; }
.pbar.near .track i { background: linear-gradient(90deg, #DC5F3E, #F1AE3A); }

/* path chapter switcher */
.chsw { display: flex; align-items: center; gap: 16px; padding: 8px 16px 16px; }
.chname { min-width: 168px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.chname small { color: var(--muted); font-size: 13px; } .chname b { font-size: 22px; }
[dir=ltr] .ic.mirror { transform: scaleX(-1); } [dir=rtl] .ic.flip.mirror { transform: none; }
.chip.theme { margin-top: 8px; color: var(--ivory); }
.node.super { background: linear-gradient(180deg, #6A1F3A, #44142A); border-color: #9A2F55; }
.node.sm { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; }
.node.sm i s { width: 8px; height: 8px; }

/* level intro */
.tag { font-style: normal; font-size: 13px; padding: 4px 10px; border-radius: 10px; background: #7A3A33; color: #FFD9CF; }
.tag.super { background: #9A2F55; }
.intro { display: flex; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 20px; background: rgba(79,209,197,.08); border: 1px solid rgba(79,209,197,.25); }
.intro small { color: #4FD1C5; font-weight: 700; display: block; } .intro b { font-size: 20px; display: block; } .intro span { color: var(--muted); }
.tileimg { width: 56px; height: 56px; }
.sw-glaze { display: inline-block; border-radius: 30%; background: var(--g); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.25); flex: none; }
.perks { display: flex; justify-content: center; gap: 8px; align-items: center; }
.rwrow { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rw { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 20px; background: rgba(255,255,255,.06); font: 700 16px "Plex Latin", sans-serif; direction: ltr; }
.rw .ic { color: var(--gold); }
.rwrow.sm .rw { height: 28px; padding: 0 8px; font-size: 13px; gap: 2px; }
.rwrow.sm .rw .ic { width: 16px; height: 16px; }

/* game: timer + power bar */
#timer { position: relative; height: 24px; margin: 8px auto 0; max-width: 360px; border-radius: 12px; background: rgba(20,28,49,.85); border: 1px solid var(--line); overflow: hidden; }
#timer i { position: absolute; inset: 0; background: linear-gradient(90deg, #139E9C, #4FD1C5); transform-origin: left; transition: transform .25s linear; }
#timer b { position: relative; display: block; text-align: center; font: 800 15px/22px "Plex Latin", sans-serif; direction: ltr; }
#timer.hot i { background: linear-gradient(90deg, #DC5F3E, #FF9A5A); } #timer.hot { animation: pop .5s infinite; }
#bar { gap: 8px; flex-wrap: nowrap; }
.pw { pointer-events: auto; position: relative; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, #22305A, #18213D); border: 1px solid #2C3A66; box-shadow: 0 3px 0 #0A0F1E; transition: transform .12s; }
.pw:active { transform: scale(.9); } .pw.dim { opacity: .45; }
.pw b { direction: ltr; position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: #22160A;
  font: 800 12px/20px "Plex Latin", sans-serif; text-align: center; padding: 0 4px; }
.pw b.ad { background: #2A3558; color: var(--ivory); } .pw b.free { background: #FF7A3D; color: #fff; }
.pw.on { background: linear-gradient(180deg, #FFD98A, #F1AE3A); color: #22160A; animation: pop .8s infinite; }
@media (min-width: 700px) { .pw { width: 56px; height: 56px; } #bar { gap: 16px; } }
@media (max-width: 440px) { .pw { width: 40px; height: 40px; border-radius: 14px; } .pw .ic { width: 20px; height: 20px; } #bar { gap: 5px; } }
@media (max-width: 350px) { .pw { width: 34px; height: 34px; } #bar { gap: 3px; } }

/* sheets */
.panel { max-height: 92vh; overflow-y: auto; scrollbar-width: none; }
.panel.wide { width: min(100%, 560px); }
.panel .h .sub { font-style: normal; font-size: 15px; color: var(--muted); font-weight: 600; }
.panel .h.sm { font-size: 17px; justify-content: flex-start; }
.cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { height: 96px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; color: var(--gold); }
.day small { color: var(--muted); font: 700 12px "Plex Latin", sans-serif; } .day b { color: var(--ivory); font: 700 14px "Plex Latin", sans-serif; }
.day.big { grid-column: span 2; background: linear-gradient(180deg, #3A2A10, #241A0C); border-color: #6B4A12; }
.day.now { border: 2px solid var(--gold); background: rgba(241,174,58,.12); animation: pop 1.2s infinite; }
.day.got { opacity: .5; } .day i { position: absolute; top: 6px; inset-inline-end: 6px; color: #5FD39A; }
.quest { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.04); }
.quest > .ic { color: var(--gold); } .quest.claimed { opacity: .55; }
.qb { flex: 1; display: flex; flex-direction: column; gap: 2px; } .qb > span { font-weight: 600; }
.quest.bonus { justify-content: space-between; background: rgba(241,174,58,.08); }
.mini { height: 40px; min-width: 64px; padding: 0 12px; border-radius: 20px; display: flex; gap: 4px; align-items: center; justify-content: center; background: #2A3558; color: var(--muted); font: 700 14px "Plex Latin", sans-serif; }
.mini.go { background: var(--gold); color: #22160A; animation: pop 1s infinite; } .mini[disabled] { opacity: .6; }
.ok { color: #5FD39A; font-style: normal; }
.tlabels { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding: 0 8px; }
.tiers { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.tcol { display: flex; flex-direction: column; gap: 6px; align-items: center; flex: none; }
.tn { font: 800 13px "Plex Latin", sans-serif; color: var(--muted); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.tcol.reached .tn { background: var(--teal); color: #fff; }
.tier { width: 88px; height: 72px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.tier.p { background: linear-gradient(180deg, #3A2A10, #241A0C); border-color: #6B4A12; }
.tier.go { border: 2px solid var(--gold); animation: pop 1.2s infinite; } .tier.got { opacity: .45; }
.tier .lk, .tier .ok, .acard .lk, .acard .ok { position: absolute; top: 4px; inset-inline-end: 4px; color: var(--muted); }
.tier .ok, .acard .ok { color: #5FD39A; }
.album { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acard { border-radius: 16px; background: var(--b); border: 1px solid rgba(255,255,255,.08); padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; position: relative; }
.acard canvas { width: 100%; aspect-ratio: 1; } .acard.lock canvas { opacity: .35; filter: grayscale(.6); } .acard.on { border: 2px solid var(--a); }
.rule { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); } .rule b { color: var(--ivory); font-size: 20px; }
.board { display: flex; flex-direction: column; gap: 4px; }
.lb { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.04); font-family: "Plex Latin", sans-serif; }
.lb b { color: var(--muted); } .lb span { color: var(--muted); font-size: 14px; direction: ltr; text-align: start; } .lb em { font-style: normal; font-weight: 800; }
.lb.top0 b { color: #FFD27A; } .lb.top1 b { color: #D8E4FF; } .lb.top2 b { color: #E9A36E; }
.lb.empty { justify-content: center; display: flex; height: 80px; color: var(--muted); }
.plist { max-height: 60vh; overflow-y: auto; scrollbar-width: none; }
.ptier { color: var(--muted); font-weight: 700; padding: 8px 4px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, 48px); gap: 12px 8px; justify-content: center; padding-bottom: 8px; }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sitem { height: 104px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; font-size: 12px; }
.sitem > .ic { color: var(--ivory); } .sitem b { display: flex; gap: 2px; align-items: center; color: var(--gold2); font: 700 13px "Plex Latin", sans-serif; }
.sitem b .ic { width: 14px; height: 14px; } .sitem i { position: absolute; top: 6px; inset-inline-end: 8px; font: 700 12px "Plex Latin", sans-serif; color: var(--muted); font-style: normal; }
.sitem[disabled] { opacity: .4; }
.chestart { display: grid; place-items: center; height: 120px; color: var(--gold); }
.chestart.ready .ic { animation: chest 1.4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(241,174,58,.5)); }
@keyframes chest { 30% { transform: rotate(-6deg) scale(1.05); } 60% { transform: rotate(6deg) scale(1.05); } }
.lvbig { display: grid; place-items: center; } .lvbig b { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; font: 800 48px "Plex Latin", sans-serif;
  color: #22160A; background: radial-gradient(circle at 35% 30%, #FFF1C9, #F1AE3A 60%, #B9761B); box-shadow: 0 0 40px rgba(241,174,58,.45); animation: pop .8s 2; }
.cta.auto .cd { position: absolute; inset-inline-end: 16px; width: 32px; height: 32px; transform: rotate(-90deg); }
.cta.auto .cd circle { fill: none; stroke: rgba(34,22,10,.45); stroke-width: 3; stroke-dasharray: 101; stroke-dashoffset: 101; }
.cta.auto.run .cd circle { animation: cd 3.6s linear forwards; } @keyframes cd { to { stroke-dashoffset: 0; } }
.cta:not(.auto) .cd { display: none; }
