* { box-sizing:border-box; margin:0; padding:0; }
html, body { background:#070504; color:#fff; font-family:'VT323',monospace; -webkit-tap-highlight-color:transparent; }
button { font:inherit; color:inherit; background:none; border:0; cursor:pointer; text-align:inherit; }
#app { position:relative; width:100%; max-width:430px; min-height:100vh; min-height:100dvh; margin:0 auto; overflow:hidden;
  background:radial-gradient(ellipse at 50% 0%, #2a1408 0%, #120a06 40%, #070504 100%); }
.loading { padding:40px; text-align:center; font-size:24px; color:#cbb894; }
.P { font-family:'Press Start 2P',monospace; }
.btn { font-family:'Press Start 2P',monospace; font-size:11px; text-align:center; padding:13px 6px; border:3px solid #a8783a; box-shadow:0 0 0 3px #000;
  background:#140c07; color:#cbb894; display:block; }
.btn:active { transform:translateY(2px); }
.btn.gold { background:linear-gradient(#f6c945,#c8902a); color:#2a1404; border-color:#fff0b0; }
.btn.dim, .btn.hint { opacity:.55; border-color:#4a3420; }
.btn.hint { cursor:default; }

/* ---------- home ---------- */
#scene { position:absolute; inset:0; width:100%; height:100%; image-rendering:pixelated; }
.home { position:relative; z-index:2; min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; align-items:center; padding:22px 18px 12px; }
.home h1 { font-family:'Press Start 2P',monospace; font-size:clamp(17px,6vw,26px); letter-spacing:2px; white-space:nowrap; color:#f6c945; text-shadow:3px 3px 0 #5a2800, 5px 5px 0 #000, 0 0 14px #ff7a1a66; }
.rings7 { display:flex; gap:9px; margin-top:12px; opacity:.6; } .rings7 span { display:flex; gap:3px; }
.rings7 i { width:9px; height:9px; border:2px solid #c9a24a; } .rings7 .n i { border-color:#8a8478; } .rings7 .t i { border-color:#d8dde8; }
.home .grow { flex:1; min-height:300px; }
.serve { font-family:'Press Start 2P',monospace; font-size:13px; color:#e8d6b0; text-shadow:2px 2px 0 #000, 0 0 10px #ff6a1a88; margin:4px 0 16px; text-align:center; }
.home .btn.big { width:100%; background:#140c07e6; padding:12px 14px; margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; text-align:left; }
.btn.big b { font-size:14px; display:block; margin-bottom:6px; } .btn.big span { font-family:'VT323'; font-size:20px; color:#cbb894; } .btn.big em { font-style:normal; color:#a8783a; }
.btn.evil b { color:#ff7a4a; } .btn.good b { color:#f0e0b0; }
.row { display:flex; gap:10px; width:100%; margin-top:2px; }
.small { flex:1; background:#140c07e6; border:3px solid #6e5030; box-shadow:0 0 0 3px #000; padding:9px 2px; text-align:center;
  font-family:'Press Start 2P',monospace; font-size:9px; line-height:1.5; color:#cbb894; }
.small.daily { border-color:#a8783a; color:#f6c945; } .small.on { border-color:#f6c945; color:#2a1404; background:#f6c945; }
.foot { margin-top:16px; text-align:center; font-size:14px; color:#9a8670; line-height:1.05; text-shadow:1px 1px 0 #000; }

/* ---------- draft ---------- */
.draft { display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; padding-bottom:12px; }
.hud { display:flex; justify-content:space-between; padding:14px 14px 8px; font-family:'Press Start 2P'; font-size:9px; color:#cbb894; }
.hud .side { color:#f0e0b0; }
.reel { margin:0 14px 10px; border:3px solid #a8783a; box-shadow:0 0 0 3px #000, inset 0 0 0 2px #3a2210, 0 0 18px #ff6a1a33;
  background:linear-gradient(#1c100a,#0c0705); text-align:center; padding:9px 0 7px; }
.reel b { font-family:'Press Start 2P'; font-size:clamp(13px,4.6vw,18px); color:#f6c945; text-shadow:2px 2px 0 #5a2800; letter-spacing:1px; }
.reel b small { color:#a8783a; font-size:12px; margin:0 8px; } .reel div { font-size:19px; color:#cbb894; letter-spacing:3px; margin-top:4px; }
.spinning .cards { opacity:0; } .cards { transition:opacity .2s; }
.cards { padding:0 12px; display:flex; flex-direction:column; gap:8px; flex:1; }
.card { display:flex; gap:10px; width:100%; background:#140c07; border:2px solid #4a3420; box-shadow:0 0 0 2px #000; padding:6px; min-height:100px; }
.card.sel { border-color:var(--rc); box-shadow:0 0 0 2px #000, 0 0 14px var(--rc); }
.card.mythic { border-color:#ff3a3a; animation:pulse 1.2s infinite alternate; } @keyframes pulse { to { box-shadow:0 0 0 2px #000, 0 0 18px #ff3a3a; } }
.art { width:62px; flex:none; display:flex; align-items:flex-end; justify-content:center; padding-bottom:3px; border:1px solid #2a1c10;
  background:radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--rc) 35%, transparent), #0a0604 75%); }
.info { flex:1; min-width:0; }
.top { display:flex; justify-content:space-between; align-items:baseline; gap:6px; }
.top b { font-family:'Press Start 2P'; font-size:10px; color:#f0e0b0; line-height:1.3; } .top i { font-family:'Press Start 2P'; font-style:normal; font-size:7px; color:var(--rc); white-space:nowrap; }
.slots { font-family:'Press Start 2P'; font-size:7px; color:#8a7050; margin:5px 0; } .slots u { text-decoration:none; color:#6a8a9a; font-family:'VT323'; font-size:13px; }
.stats { display:flex; gap:4px; font-size:13px; color:#9a8670; flex-wrap:wrap; }
.stats span { display:flex; flex-direction:column; align-items:center; background:#0a0604; border:1px solid #2a1c10; padding:0 2px; min-width:29px; }
.stats em { font-style:normal; font-size:17px; color:#f0e0b0; line-height:.9; } .stats .fate em { color:#ff9a4a; }
.info p { font-size:16px; color:#b8a688; line-height:1; margin-top:5px; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.card.sel .info p { -webkit-line-clamp:4; }
.squad { display:flex; gap:5px; margin:12px 12px 10px; }
.slot { flex:1; height:60px; border:2px dashed #4a3420; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; background:#0a0604; position:relative; }
.slot.full { border:2px solid #a8783a; } .slot span { color:#4a3420; font-family:'Press Start 2P'; font-size:12px; margin-bottom:16px; }
.slot svg { margin-bottom:11px; max-width:100%; } .slot label { position:absolute; bottom:2px; font-family:'Press Start 2P'; font-size:6px; color:#8a7050; }
.bar { display:flex; gap:8px; margin:0 12px; } .bar .btn { flex:1; } .bar .grow2 { flex:2; }
.slots-pick .btn { font-size:8px; padding:13px 2px; } .slots-pick .dim { flex:.5; }

/* ---------- quest ---------- */
.quest { display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; padding-bottom:14px; }
.track { display:flex; justify-content:center; gap:7px; padding:18px 0 4px; } .track div { display:flex; gap:2px; }
.track i { width:10px; height:10px; border:2px solid #4a3420; display:block; }
.track i.on { background:#f6c945; border-color:#f6c945; box-shadow:0 0 6px #ff9a2a; } .track i.lost { background:#2a1a12; border-color:#c03a20; }
.groups { display:flex; justify-content:center; gap:14px; font-size:15px; color:#6a5440; }
.scroll { margin:20px 18px 0; animation:unroll .5s ease-out; } @keyframes unroll { from { transform:scaleY(.1); opacity:0; } }
.rod { height:16px; background:linear-gradient(#c8a060,#6a4420); border:3px solid #000; border-radius:8px; margin:0 -8px; }
.paper { background:linear-gradient(90deg,#c9b083,#ead7ac 12%,#efe0b8 50%,#ead7ac 88%,#c9b083); border-left:3px solid #000; border-right:3px solid #000; color:#2a1808; padding:16px 18px 18px; text-align:center; }
.paper .grp { font-size:16px; letter-spacing:3px; color:#7a5a30; }
.paper h2 { font-family:'Press Start 2P'; font-size:14px; line-height:1.5; margin:8px 0 10px; color:#3a1a08; } .paper .no { font-size:10px; color:#8a6a40; }
.paper p { font-size:22px; line-height:1.05; } .paper hr { border:0; border-top:2px dashed #a8885a; margin:12px 0; }
.moment { font-size:21px; line-height:1.05; } .moment.up { color:#1a5a1a; } .moment.down { color:#8a1a10; }
.moment b { display:block; font-family:'Press Start 2P'; font-size:8px; color:#6a5030; margin-bottom:6px; } .key { font-size:19px; color:#6a3aa0; margin-top:10px; }
.stamp { width:max-content; margin:26px auto 0; transform:rotate(-6deg); font-family:'Press Start 2P'; font-size:22px; color:#f6c945; border:4px solid #f6c945;
  padding:11px 15px; background:#f6c94518; text-shadow:3px 3px 0 #5a2800; box-shadow:0 0 18px #ff9a2a55; animation:stamp .35s .45s both cubic-bezier(.2,1.6,.4,1); }
.stamp.lost { color:#ff5a3a; border-color:#ff5a3a; background:#ff3a1a14; box-shadow:0 0 18px #ff3a1a55; }
@keyframes stamp { from { transform:rotate(-6deg) scale(2.2); opacity:0; } }
.party { margin-top:auto; display:flex; justify-content:center; align-items:flex-end; gap:10px; border-bottom:4px solid #2a1c10; padding-bottom:2px; margin:auto 24px 14px; }
.party svg { max-width:18%; height:auto; }

/* ---------- result ---------- */
.result { display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; padding:26px 0 14px; }
.big { text-align:center; } .big .P { font-size:11px; color:#cbb894; letter-spacing:1px; } .big .lt { color:#f0e0b0; }
.big h1 { font-family:'Press Start 2P'; font-size:46px; color:#f6c945; text-shadow:4px 4px 0 #5a2800, 0 0 20px #ff7a1a66; margin:10px 0 4px; } .big h1 small { font-size:20px; color:#a8783a; }
.badges { display:flex; justify-content:center; gap:10px; margin-top:12px; }
.badge { border:3px solid #a8783a; box-shadow:0 0 0 3px #000; background:#140c07; padding:8px 12px; text-align:center; min-width:110px; }
.badge b { display:block; font-family:'Press Start 2P'; font-size:22px; color:#f6c945; } .badge b.sm { font-size:11px; line-height:2; } .badge span { font-size:16px; color:#9a8670; }
.fell { margin:14px 18px 0; text-align:center; font-size:20px; color:#d8c4a0; line-height:1.05; } .fell b { color:#ff7a4a; } .fell b.gold { color:#f6c945; }
.awards { display:flex; gap:10px; margin:16px 14px 0; }
.award { flex:1; display:flex; gap:8px; align-items:center; background:#140c07; border:2px solid #4a3420; padding:6px; min-width:0; }
.award .P { font-size:8px; display:block; margin-bottom:4px; } .award span { font-size:18px; color:#e8d6b0; } .mvp .P { color:#f6c945; } .weak .P { color:#ff7a4a; }
.team { display:flex; justify-content:center; gap:8px; margin-top:20px; align-items:flex-end; } .team svg { max-width:17%; height:auto; }
.items { text-align:center; font-size:17px; color:#9a8670; margin-top:6px; }
.pair { text-align:center; font-size:17px; margin-top:3px; } .pair.up { color:#8ac880; } .pair.down { color:#e0806a; }
.bar.col { flex-direction:column; gap:10px; margin:auto 14px 0; padding-top:18px; } .bar .two { display:flex; gap:10px; } .bar .two .btn { font-size:9px; }

/* ---------- pages ---------- */
.page { padding:22px 18px 30px; } .page h2 { font-family:'Press Start 2P'; font-size:18px; color:#f6c945; text-shadow:3px 3px 0 #5a2800; margin-bottom:18px; text-align:center; }
.page h3 { font-family:'Press Start 2P'; font-size:10px; color:#a8783a; margin:22px 0 10px; }
.page p { font-size:20px; line-height:1.1; color:#d8c4a0; margin-bottom:10px; } .page p b { color:#ff9a4a; } .muted { color:#7a6a58 !important; }
.stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.stat-grid div { background:#140c07; border:2px solid #4a3420; padding:10px 6px; text-align:center; }
.stat-grid b { display:block; font-family:'Press Start 2P'; font-size:16px; color:#f6c945; margin-bottom:6px; } .stat-grid span { font-size:15px; color:#9a8670; }
.line { display:flex; justify-content:space-between; gap:10px; font-size:18px; color:#d8c4a0; border-bottom:1px dashed #3a2a18; padding:5px 0; }
.line span:last-child { color:#8a7a68; text-align:right; }
.back { margin-top:24px; width:100%; }

/* ---------- readability pass: rating, stat bars, squad balance ---------- */
.ovr { display:flex; align-items:center; gap:6px; flex:none; }
.ovr strong { font-family:'Press Start 2P'; font-size:15px; color:var(--rc); text-shadow:2px 2px 0 #000; }
.ovr i { font-family:'Press Start 2P'; font-style:normal; font-size:6px; color:var(--rc); writing-mode:vertical-rl; transform:rotate(180deg); }
.stats { gap:3px; align-items:flex-end; }
.stats .bar5 { position:relative; width:31px; height:40px; min-width:0; padding:0; background:#0a0604; border:1px solid #2a1c10; display:block; overflow:hidden; }
.bar5 i { position:absolute; left:0; right:0; bottom:0; opacity:.38; }
.bar5 small { position:absolute; top:1px; left:0; right:0; text-align:center; font-size:12px; color:#b8a688; line-height:1; }
.bar5 em { position:absolute; bottom:1px; left:0; right:0; text-align:center; font-size:17px; color:#fff6dc; text-shadow:1px 1px 0 #000; }
.chip { font-family:'Press Start 2P'; font-size:9px; background:#0a0604; border:1px solid #2a1c10; padding:5px 6px; }
.meter { margin:10px 12px 0; padding:6px 8px 4px; background:#0d0805; border:2px solid #3a2818; }
.mh { font-family:'Press Start 2P'; font-size:7px; color:#8a7050; margin-bottom:4px; }
.mrow { display:flex; align-items:center; gap:6px; height:12px; }
.mrow small { width:26px; font-size:13px; color:#9a8670; }
.mtrack { flex:1; height:6px; background:#1e140c; position:relative; }
.mtrack i { position:absolute; left:0; top:0; bottom:0; }
.mtrack b { position:absolute; top:-1px; bottom:-1px; } .mtrack b.up { background:#ffffffcc; } .mtrack b.down { background:#ff3a2a; }
.mrow em { width:44px; font-style:normal; font-size:15px; color:#f0e0b0; text-align:right; }
.mrow u { text-decoration:none; font-size:13px; margin-left:3px; } u.up { color:#8ae08a; } u.down { color:#ff6a4a; }
.squad { margin-top:8px; }
/* ---------- fit the draft screen on one phone screen ---------- */
.hud { padding:10px 14px 6px; } .reel { padding:6px 0 5px; margin-bottom:8px; } .reel div { font-size:17px; margin-top:2px; }
.cards { gap:6px; } .card { min-height:0; padding:5px; gap:8px; }
.slots { margin:3px 0 4px; } .stats .bar5 { height:32px; } .bar5 small { font-size:11px; } .bar5 em { font-size:15px; }
.info p { margin-top:3px; } .card.sel .info p { -webkit-line-clamp:2; }
.meter { margin:8px 12px 0; padding:4px 8px 3px; } .mh { margin-bottom:2px; } .mrow { height:10px; }
.slot { height:54px; } .squad { margin:6px 12px 8px; }
/* controls always visible: header + footer fixed, only the cards scroll on short phones */
.draft { height:100vh; height:100dvh; min-height:0; }
.draft .cards { flex:1; min-height:0; overflow-y:auto; padding-bottom:4px; }
.draft .meter, .draft .squad, .draft .bar, .draft .hud, .draft .reel { flex:none; }
.art { width:56px; } .art svg { width:42px; height:58px; }
.top b { font-size:9px; }
.draft .card { flex:none; }
.art svg.icon { width:48px; height:48px; margin-bottom:8px; } .slot svg.icon { width:30px; height:30px; margin-bottom:13px; }

/* ---------- discoveries, records, deeds ---------- */
.track i.best { outline:2px solid #fff; outline-offset:1px; }
.rec { text-align:center; font-family:'Press Start 2P'; font-size:9px; color:#9a8670; margin-top:8px; }
.rec.new { color:#f6c945; font-size:11px; text-shadow:0 0 10px #ff9a2a; animation:pulse2 1s infinite alternate; } @keyframes pulse2 { to { opacity:.6; } }
.newsbox { margin:10px 14px 0; display:flex; flex-direction:column; gap:6px; }
.news { display:flex; align-items:center; gap:10px; background:#140c07; border:2px solid #6e5030; padding:5px 8px; animation:pop .4s both; }
.news:nth-child(2) { animation-delay:.15s; } .news:nth-child(3) { animation-delay:.3s; } .news:nth-child(n+4) { animation-delay:.45s; }
@keyframes pop { from { transform:scale(.8); opacity:0; } }
.news i { font-style:normal; font-size:20px; width:30px; text-align:center; }
.news b { display:block; font-family:'Press Start 2P'; font-size:7px; margin-bottom:3px; } .news span { font-size:17px; color:#f0e0b0; line-height:1; }
.news.deed { border-color:#f6c945; } .news.deed b { color:#f6c945; } .news.myth { border-color:#ff3a3a; } .news.myth b, .news.myth i { color:#ff5a4a; }
.news.pairn b { color:#8ae08a; } .news.key b { color:#b08aff; } .news.leg b { color:#cbb894; }
.deeds { display:flex; flex-direction:column; gap:6px; }
.deedc { display:flex; align-items:center; gap:10px; background:#0d0805; border:2px solid #2a1c10; padding:5px 8px; opacity:.45; filter:grayscale(1); }
.deedc.got { opacity:1; filter:none; border-color:#a8783a; background:#140c07; }
.deedc b { display:block; font-family:'Press Start 2P'; font-size:8px; color:#f0e0b0; margin-bottom:3px; } .deedc.got b { color:#f6c945; }
.deedc span { font-size:16px; color:#9a8670; line-height:1; }

/* ---------- landing: sentinels and your-best rings ---------- */
.home .grow { position:relative; width:100%; }
.sentinel { position:absolute; bottom:4px; display:flex; flex-direction:column; align-items:center; width:96px; }
.sentinel.good { left:-6px; } .sentinel.evil { right:-6px; }
.sentinel .sprite { animation:bob 1.2s steps(2) infinite; filter:drop-shadow(0 0 0 transparent); }
.sentinel.evil .sprite { animation-delay:.6s; }
.sentinel.r-legendary .sprite { filter:drop-shadow(0 0 6px #f6c94599); }
.sentinel.r-epic .sprite { filter:drop-shadow(0 0 5px #b45aff77); }
.sentinel.r-mythic .sprite { filter:drop-shadow(0 0 10px #ff3a3a); animation:bob 1.2s steps(2) infinite, flick 0.8s infinite alternate; }
@keyframes bob { 50% { transform:translateY(-3px); } } @keyframes flick { to { filter:drop-shadow(0 0 3px #ff3a3a); } }
.sentinel svg { width:64px; height:88px; }
.plate { margin-top:3px; background:#0d0805e6; border:2px solid #4a3420; padding:3px 4px; text-align:center; max-width:96px; }
.plate b { display:block; font-family:'Press Start 2P'; font-size:7px; color:#f0e0b0; line-height:1.3; }
.plate i { display:block; font-family:'Press Start 2P'; font-style:normal; font-size:5px; color:var(--rc); margin-top:2px; }
.bubble { position:absolute; bottom:100%; width:170px; background:#efe0b8; color:#2a1808; border:3px solid #000; padding:6px 8px;
  font-size:17px; line-height:1; margin-bottom:6px; text-align:left; z-index:5; }
.sentinel.good .bubble { left:6px; } .sentinel.evil .bubble { right:6px; }
.rings7 .o i { border-color:#f6c945; }
.rings7.lit { opacity:1; } .rings7.lit i { opacity:.45; } .rings7 i.on { opacity:1; background:#f6c945; border-color:#f6c945; box-shadow:0 0 5px #ff9a2a; }
.bestline { font-family:'Press Start 2P'; font-size:7px; color:#a8783a; margin-top:6px; text-shadow:1px 1px 0 #000; }
