:root {
  --bg0: #0c101b; --bg1: #151c2e; --bg2: #1d2640; --line: rgba(255,255,255,.09);
  --paper: #f3e7cf; --paper2: #e8d6b0; --ink: #1d1a17; --txt: #efe6d4; --mute: #a59f92;
  --verm: #e2452d; --verm2: #ff6b4a; --ai: #2f7fd0; --ai2: #59a8f0; --gold: #e8bc4e; --gold2: #ffd77a; --jade: #3f9a6e;
  --fw: 52px; --hw: 76px; --r: 12px;
  --ff-t: 'Shippori Mincho', 'Hiragino Mincho ProN', serif; --ff: 'Zen Kaku Gothic New', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg0); color: var(--txt); font-family: var(--ff); overflow: hidden; overscroll-behavior: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
#app { position: fixed; inset: 0; margin: 0 auto; max-width: 560px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(80,110,190,.18), transparent 60%),
    radial-gradient(90% 50% at 50% 110%, rgba(226,69,45,.12), transparent 70%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}
#app::before { content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: radial-gradient(circle at 50% 100%, transparent 9px, #9fb3ff 10px, transparent 11px, transparent 15px, #9fb3ff 16px, transparent 17px);
  background-size: 34px 17px; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom)); }
.hidden { display: none !important; }

/* ---------- Cartas ---------- */
.card { position: relative; width: var(--w, var(--fw)); aspect-ratio: 320 / 516; border-radius: calc(var(--w, var(--fw)) * .075); background: #1a1714; flex: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 0 rgba(0,0,0,.4), 0 6px 14px rgba(0,0,0,.35); transition: transform .16s cubic-bezier(.3,1.4,.5,1), box-shadow .16s, filter .2s; transform-origin: 50% 80%; }
.card .art { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; pointer-events: none; }
.card .mb { position: absolute; top: -4%; left: -7%; min-width: max(15px, calc(var(--w, var(--fw)) * .32)); height: max(15px, calc(var(--w, var(--fw)) * .32)); padding: 0 2px; border-radius: 999px; background: var(--mc); color: #fff;
  display: grid; place-items: center; font: 900 max(9.5px, calc(var(--w, var(--fw)) * .19))/1 var(--ff); box-shadow: 0 0 0 1.5px #fff, 0 2px 4px rgba(0,0,0,.5); letter-spacing: -.03em; }
.card .cb { position: absolute; bottom: -4%; left: -7%; width: max(15px, calc(var(--w, var(--fw)) * .32)); height: max(15px, calc(var(--w, var(--fw)) * .32)); border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 0 1.5px #fff, 0 2px 4px rgba(0,0,0,.5); }
.card .cb svg { width: 72%; height: 72%; }
.cat-luz .cb { background: #c99318; } .cat-bicho .cb { background: #3c8a50; } .cat-fita .cb { background: #c8352e; } .cat-folha .cb { background: #7d7466; }
.card .eb { position: absolute; top: -4%; right: -6%; width: max(15px, calc(var(--w, var(--fw)) * .3)); height: max(15px, calc(var(--w, var(--fw)) * .3)); border-radius: 4px; display: grid; place-items: center; font: 800 max(9px, calc(var(--w, var(--fw)) * .18))/1 var(--ff-t); color: #fff; transform: rotate(6deg); box-shadow: 0 0 0 1.5px #fff, 0 2px 4px rgba(0,0,0,.5); }
.enh-ouro .eb { background: linear-gradient(135deg, #ffe08a, #b9861d); color: #4a2f00; } .enh-lua .eb { background: linear-gradient(135deg, #dfe8ff, #7d8fb8); color: #1c2747; }
.enh-laca .eb { background: linear-gradient(135deg, #b81f1f, #4d0b0b); } .enh-vento .eb { background: linear-gradient(135deg, #7fe0d0, #237a6e); }
.card.enh::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.enh-ouro::after { box-shadow: inset 0 0 0 3px #e8bc4e, inset 0 0 12px rgba(255,215,122,.6); background: linear-gradient(115deg, transparent 35%, rgba(255,236,170,.45) 50%, transparent 65%) 0 0 / 300% 100%; animation: sheen 3.2s linear infinite; }
.enh-lua::after { box-shadow: inset 0 0 0 3px #b9c8ee, inset 0 0 14px rgba(170,200,255,.6); background: linear-gradient(115deg, transparent 35%, rgba(220,235,255,.4) 50%, transparent 65%) 0 0 / 300% 100%; animation: sheen 4s linear infinite; }
.enh-laca::after { box-shadow: inset 0 0 0 3px #9b1b1b, inset 0 0 0 4px #e2452d55; }
.enh-vento::after { box-shadow: inset 0 0 0 3px #4cc4b2, inset 0 0 14px rgba(76,196,178,.55); }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.card.bloom { box-shadow: 0 0 0 2px #ffb3c8, 0 0 14px rgba(255,150,190,.55), 0 4px 10px rgba(0,0,0,.35); }
.card.bloom::before { content: '×2'; position: absolute; right: -5%; bottom: -3%; z-index: 2; font: 900 max(9px, calc(var(--w, var(--fw)) * .17))/1 var(--ff); color: #fff; background: #e86a93; padding: 2px 3px; border-radius: 5px; box-shadow: 0 0 0 1.5px #fff; }
.card.lit { box-shadow: 0 0 0 3px var(--gold2), 0 0 18px 2px rgba(255,215,122,.8), 0 4px 10px rgba(0,0,0,.4); animation: litpulse 1s ease-in-out infinite; z-index: 3; }
@keyframes litpulse { 50% { transform: translateY(-3px) scale(1.04); } }
.card.dim { filter: brightness(.5) saturate(.5); }
.card.sel { transform: translateY(-14px) scale(1.07); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 14px 22px rgba(0,0,0,.55); z-index: 5; }
.card.back { background: radial-gradient(circle at 50% 45%, #9c2a22, #5a120f 70%); border: max(2px, calc(var(--w, var(--fw)) * .06)) solid #1d1714; display: grid; place-items: center; }
.card.back .bk { font: 800 calc(var(--w, var(--fw)) * .42)/1 var(--ff-t); color: #e8bc4e; opacity: .85; text-shadow: 0 1px 0 #000; }
.card.ghost { transition: none; }
.card.hide { visibility: hidden; }

/* ---------- Topo ---------- */
.top { display: flex; align-items: stretch; gap: 8px; }
.iconbtn { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; }
.iconbtn:active { transform: scale(.94); }
.monthbox { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.monthbox .card { --w: 24px; box-shadow: 0 2px 4px #0008; }
.monthbox .mt { min-width: 0; line-height: 1.15; }
.monthbox .mt b { display: block; font: 700 15px/1.15 var(--ff-t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monthbox .mt small { color: var(--mute); font-size: 11.5px; white-space: nowrap; }
.ryo { flex: none; min-width: 64px; padding: 4px 10px; border-radius: 12px; background: linear-gradient(180deg, #3a2c10, #241a08); box-shadow: inset 0 0 0 1px #e8bc4e55; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ryo b { font: 900 19px/1 var(--ff); color: var(--gold2); } .ryo small { font-size: 10px; color: #c9a85a; letter-spacing: .08em; }

.goal { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.bar { position: relative; flex: 1; height: 26px; border-radius: 999px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #b8331f, #e2452d 60%, #ff8a5c); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar .fill.done { background: linear-gradient(90deg, #2f8f5e, #4fc086); }
.bar .lbl { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 10px; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.bar .lbl b { font-size: 14px; }
.pips { display: flex; gap: 3px; align-items: center; font-size: 11px; color: var(--mute); }
.pips i { width: 9px; height: 9px; border-radius: 50%; background: #fff3; display: block; } .pips i.on { background: var(--paper); box-shadow: 0 0 6px #fff8; }
.stat { flex: none; display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--mute); line-height: 1.1; }

/* ---------- Yokai ---------- */
.yrow { margin-top: 6px; display: flex; gap: 6px; align-items: center; min-height: 48px; }
.yslots { flex: 1; display: flex; gap: 6px; }
.yslot { width: 44px; height: 44px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px dashed; border: 1.5px dashed rgba(255,255,255,.12); flex: none; }
.oslots { display: flex; gap: 5px; padding-left: 6px; border-left: 1px solid var(--line); }
.seal { width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; flex: none; position: relative; transform: rotate(-3deg);
  background: radial-gradient(circle at 30% 25%, #ef6a4f, #b8281c 70%); color: #fff2df; box-shadow: inset 0 0 0 2px rgba(255,240,220,.35), inset 0 0 0 4px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.45); }
.seal .sk { font: 800 24px/1 var(--ff-t); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.seal.r2 { background: radial-gradient(circle at 30% 25%, #5a86d6, #233f8a 70%); }
.seal.r3 { background: radial-gradient(circle at 30% 25%, #3a3226, #0f0c08 70%); color: var(--gold2); box-shadow: inset 0 0 0 2px #e8bc4e, 0 0 12px rgba(232,188,78,.4), 0 3px 8px rgba(0,0,0,.45); }
.seal.boss { background: radial-gradient(circle at 30% 25%, #4a2a5e, #1a0d24 70%); color: #ff6b6b; box-shadow: inset 0 0 0 2px #ff6b6b88, 0 0 14px rgba(255,80,80,.35); }
.seal.omamori { width: 34px; height: 44px; border-radius: 14px 14px 6px 6px; transform: none; background: linear-gradient(180deg, #7a4bb0, #4b2a78); color: var(--gold2); }
.seal.omamori .sk { font-size: 17px; margin-top: 6px; }
.seal.omamori::before { content: ''; position: absolute; top: 3px; left: 50%; width: 10px; height: 5px; margin-left: -5px; border-radius: 0 0 6px 6px; border: 2px solid var(--gold); border-top: 0; }
.seal.big { width: 68px; height: 68px; border-radius: 14px; } .seal.big .sk { font-size: 38px; }
.seal.omamori.big { width: 54px; height: 70px; } .seal.omamori.big .sk { font-size: 26px; }
.seal.trig { animation: trig .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes trig { 40% { transform: rotate(-12deg) scale(1.35) translateY(-6px); } }

/* ---------- Placar ---------- */
.scorebox { margin-top: 6px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--line); min-height: 56px; }
.deckpile { position: relative; flex: none; }
.deckpile .card { --w: 30px; }
.deckpile .n { position: absolute; right: -6px; bottom: -4px; font: 900 11px/1 var(--ff); background: #000c; padding: 2px 4px; border-radius: 6px; }
.eq { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.num { min-width: 70px; height: 40px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font: 900 22px/1 var(--ff); color: #fff; letter-spacing: -.02em; }
.num.mon { background: linear-gradient(180deg, var(--ai2), var(--ai)); box-shadow: 0 3px 0 #1c4f86, 0 0 14px rgba(89,168,240,.3); }
.num.mult { background: linear-gradient(180deg, var(--verm2), var(--verm)); box-shadow: 0 3px 0 #8a2414, 0 0 14px rgba(255,107,74,.3); }
.num small { font-size: 9px; font-weight: 700; opacity: .85; display: block; margin-top: -2px; letter-spacing: .06em; }
.times { font: 900 20px var(--ff); color: var(--mute); }
.koibadge { flex: none; padding: 4px 7px; border-radius: 8px; font: 900 12px/1.05 var(--ff); text-align: center; color: #fff; background: linear-gradient(180deg, #ff5d8f, #b8285a); box-shadow: 0 0 12px rgba(255,93,143,.5); }
.koibadge.off { background: rgba(255,255,255,.06); color: var(--mute); box-shadow: none; }
.preview { text-align: center; font-size: 12px; color: var(--mute); height: 18px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview b { color: var(--gold2); } .preview .y { color: #ff9ab8; font-weight: 700; }

/* ---------- Mesa ---------- */
.field { flex: 1; min-height: 0; margin-top: 4px; display: flex; flex-direction: column; justify-content: center; }
.fieldgrid { display: grid; grid-template-columns: repeat(6, var(--fw)); gap: 6px 6px; justify-content: center; align-content: center; padding: 6px 4px; }
.fieldlabel { font-size: 10.5px; color: var(--mute); letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.pilebar { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; padding: 5px 6px; border-radius: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); min-height: 40px; }
.pc { display: flex; align-items: center; gap: 3px; font: 800 13px/1 var(--ff); padding: 3px 6px 3px 3px; border-radius: 999px; background: rgba(0,0,0,.3); }
.pc i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.pc i svg { width: 14px; height: 14px; }
.pc small { color: var(--mute); font-weight: 600; font-size: 10px; }
.pc.luz i { background: #c99318; } .pc.bicho i { background: #3c8a50; } .pc.fita i { background: #c8352e; } .pc.folha i { background: #7d7466; }
.pilebar .ych { margin-left: auto; padding: 0 10px; height: 30px; border-radius: 999px; display: flex; align-items: center; gap: 5px; font: 800 12px var(--ff); background: linear-gradient(180deg, #3b2a55, #2a1d40); box-shadow: inset 0 0 0 1px #b38bff55; color: #e9dcff; white-space: nowrap; }
.pilebar .ych b { background: #ff5d8f; color: #fff; border-radius: 999px; padding: 1px 6px; font-size: 11px; }

/* ---------- Mão ---------- */
.hand { display: grid; grid-template-columns: repeat(4, var(--hw)); gap: 8px; justify-content: center; padding: 14px 0 4px; }
.hand.five { grid-template-columns: repeat(5, var(--hw)); }
.hand .card { --w: var(--hw); }
.actions { display: flex; gap: 8px; padding-top: 6px; }
.btn { min-height: 48px; padding: 0 14px; border-radius: 14px; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line), 0 3px 0 rgba(0,0,0,.35); transition: transform .08s; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--line); }
.btn[disabled] { opacity: .38; pointer-events: none; }
.btn.primary { background: linear-gradient(180deg, #f0563b, #c23a22); color: #fff; box-shadow: 0 3px 0 #7c1f0f, 0 0 18px rgba(226,69,45,.35); }
.btn.gold { background: linear-gradient(180deg, #ffd77a, #d9a237); color: #3a2400; box-shadow: 0 3px 0 #8a5c12; }
.btn.blue { background: linear-gradient(180deg, #4d97e4, #2a68b0); color: #fff; box-shadow: 0 3px 0 #18406e; }
.btn.pink { background: linear-gradient(180deg, #ff6d9b, #c2306a); color: #fff; box-shadow: 0 3px 0 #7a1440, 0 0 18px rgba(255,93,143,.4); }
.btn.grow { flex: 1; } .btn.small { min-height: 40px; font-size: 13px; padding: 0 10px; border-radius: 11px; }
.btn .sub { font-size: 11px; font-weight: 600; opacity: .85; }
.btn .badge { background: rgba(0,0,0,.35); border-radius: 999px; padding: 1px 7px; font-size: 12px; }

/* ---------- Painéis / sheets ---------- */
.veil { position: absolute; inset: 0; z-index: 40; background: rgba(5,7,14,.62); backdrop-filter: blur(2px); display: flex; flex-direction: column; justify-content: flex-end; animation: fade .2s; }
.veil.center { justify-content: center; align-items: center; padding: 16px; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: linear-gradient(180deg, #232c46, #171e31); border-radius: 22px 22px 0 0; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); max-height: 88%; overflow: auto; animation: up .28s cubic-bezier(.2,.9,.25,1); }
@keyframes up { from { transform: translateY(40%); opacity: 0; } }
.sheet h2, .panel h2 { margin: 2px 0 8px; font: 800 21px/1.2 var(--ff-t); }
.sheet h2 small, .panel h2 small { font: 500 13px var(--ff); color: var(--mute); margin-left: 6px; }
.grab { width: 40px; height: 4px; border-radius: 9px; background: #fff3; margin: -4px auto 10px; }
.panel { width: min(100%, 420px); background: linear-gradient(180deg, #232c46, #171e31); border-radius: 22px; padding: 18px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); max-height: 92%; overflow: auto; animation: zoom .3s cubic-bezier(.2,1.3,.4,1); }
@keyframes zoom { from { transform: scale(.85); opacity: 0; } }
.muted { color: var(--mute); } .center { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; } .col { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }

/* Combos */
.ylist { display: flex; flex-direction: column; gap: 6px; }
.yi { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.yi.done { background: linear-gradient(90deg, rgba(255,93,143,.22), rgba(255,93,143,.06)); box-shadow: inset 0 0 0 1px rgba(255,93,143,.55); }
.yi .nm { font-weight: 800; font-size: 14.5px; } .yi .nm small { color: var(--mute); font-weight: 500; margin-left: 4px; font-family: var(--ff-t); }
.yi .val { text-align: right; font-size: 12px; font-weight: 800; white-space: nowrap; } .yi .val .m { color: var(--ai2); } .yi .val .x { color: var(--verm2); }
.yi .ds { grid-column: 1 / -1; font-size: 12px; color: var(--mute); }
.yi .prog { grid-column: 1 / -1; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.yi .prog .card { --w: 26px; } .yi .prog .card.miss { filter: grayscale(1) brightness(.35); }
.dots { display: flex; gap: 3px; } .dots i { width: 10px; height: 10px; border-radius: 3px; background: #fff2; } .dots i.on { background: #ff8fb1; }
.yi .cnt { font-size: 12px; font-weight: 800; color: var(--paper); margin-left: 4px; }

/* Decisão Koi-Koi */
.decide { text-align: center; }
.decide .yname { font: 800 28px/1.1 var(--ff-t); color: #ffd2e0; text-shadow: 0 0 20px rgba(255,93,143,.6); margin: 4px 0 2px; }
.decide .jp { font: 700 15px var(--ff-t); color: #ff9ab8; letter-spacing: .2em; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.choice .btn { flex-direction: column; min-height: 86px; gap: 2px; padding: 8px; line-height: 1.15; }
.choice .btn b { font-size: 20px; letter-spacing: .02em; }
.choice .btn.rec { outline: 3px solid #fff; outline-offset: 2px; }
.reco { font-size: 12px; color: var(--gold2); margin-top: 8px; min-height: 16px; }

/* Contagem */
.tally { position: absolute; left: 10px; right: 10px; z-index: 30; background: rgba(10,13,24,.97); border-radius: 16px; padding: 10px 12px; box-shadow: 0 10px 40px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.tl { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; animation: tlin .25s cubic-bezier(.2,1.3,.4,1); }
@keyframes tlin { from { transform: translateX(-20px); opacity: 0; } }
.tl .v { margin-left: auto; display: flex; gap: 6px; font-weight: 900; }
.tl .v .m { color: var(--ai2); } .tl .v .x { color: var(--verm2); } .tl .v .xx { color: #fff; background: var(--verm); padding: 0 6px; border-radius: 6px; } .tl.fail .v .xx { background: #555; }
.tl .seal { width: 26px; height: 26px; border-radius: 6px; } .tl .seal .sk { font-size: 15px; } .tl .ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; } .tl .ico svg { width: 15px; }
.tl.yaku { color: #ffd2e0; }
.total { margin-top: 6px; text-align: center; font: 900 40px/1 var(--ff); letter-spacing: -.02em; color: #fff; text-shadow: 0 0 24px rgba(255,190,120,.7), 0 3px 0 #b8331f; }
.total small { display: block; font: 700 12px var(--ff); color: var(--mute); text-shadow: none; letter-spacing: .1em; }
.bigword { position: absolute; left: 0; right: 0; top: 34%; z-index: 70; text-align: center; pointer-events: none; font: 800 44px/1.05 var(--ff-t); color: #fff; text-shadow: 0 0 30px rgba(255,93,143,.9), 0 4px 0 #8a1c44; }
.bigword small { display: block; font: 700 16px var(--ff); letter-spacing: .3em; color: #ffd2e0; text-shadow: 0 2px 4px #000; }

/* Inspetor */
.insp { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.insp .card { --w: min(52vw, 210px); }
.insp h3 { margin: 0; font: 800 22px var(--ff-t); } .insp p { margin: 0; text-align: center; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 4px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: rgba(255,255,255,.08); }
.chip svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; color: #fff; }
.chip.cat-luz svg { background: #c99318; } .chip.cat-bicho svg { background: #3c8a50; } .chip.cat-fita svg { background: #c8352e; } .chip.cat-folha svg { background: #7d7466; }

/* Baralho */
.deckgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px 6px; padding: 4px; }
.deckgrid .card { --w: 100%; width: 100%; }
.deckgrid .card.picked { box-shadow: 0 0 0 3px var(--gold2), 0 0 12px var(--gold2); transform: translateY(-3px); }

/* Título */
.title { align-items: center; justify-content: center; text-align: center; gap: 10px; }
.logo { font: 800 64px/1 var(--ff-t); color: #fff; text-shadow: 0 0 30px rgba(226,69,45,.6), 0 4px 0 #8a1c14; letter-spacing: .05em; }
.logo small { display: block; font: 900 15px var(--ff); letter-spacing: .5em; color: var(--gold2); text-shadow: none; margin-top: 8px; padding-left: .5em; }
.tag { color: var(--mute); font-size: 14px; max-width: 300px; margin: 0 auto; }
.fan { position: relative; height: 170px; width: 280px; margin: 8px auto 4px; }
.fan .card { --w: 82px; position: absolute; left: 50%; bottom: 0; margin-left: -41px; transform-origin: 50% 120%; }
.menu { display: flex; flex-direction: column; gap: 10px; width: min(300px, 86%); margin: 8px auto 0; }
.menu .btn { min-height: 54px; font-size: 17px; }
.foot { position: absolute; bottom: max(10px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 11px; color: #ffffff55; }

/* Intro do mês */
.intro { text-align: center; }
.intro .season { font: 800 15px var(--ff-t); letter-spacing: .3em; color: var(--gold2); }
.intro h1 { margin: 4px 0; font: 800 30px/1.1 var(--ff-t); }
.intro .flower { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.intro .flower .card { --w: 62px; }
.intro .tgt { font: 900 34px var(--ff); color: #fff; } .intro .tgt small { display: block; font: 700 11px var(--ff); color: var(--mute); letter-spacing: .2em; }
.track { display: flex; gap: 4px; justify-content: center; margin: 8px 0 4px; }
.track i { width: 16px; height: 6px; border-radius: 3px; background: #fff2; } .track i.done { background: var(--jade); } .track i.cur { background: var(--gold2); box-shadow: 0 0 8px var(--gold2); } .track i.boss { outline: 1.5px solid #ff6b6b; outline-offset: 1px; }
.curse { margin: 10px 0 2px; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 14px; background: rgba(120,30,60,.25); box-shadow: inset 0 0 0 1px rgba(255,107,107,.4); }
.curse b { color: #ff9a9a; }
.bloomnote { font-size: 13px; color: #ffc4d6; margin: 6px 0; }

/* Loja */
.shop { overflow-y: auto; gap: 10px; }
.shophead { display: flex; align-items: center; gap: 8px; }
.shophead h2 { flex: 1; margin: 0; font: 800 22px var(--ff-t); }
.shophead h2 small { display: block; font: 500 12px var(--ff); color: var(--mute); }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.offer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.offer .nm { font-weight: 800; font-size: 14px; line-height: 1.1; } .offer .nm small { display: block; font-size: 10.5px; color: var(--mute); font-weight: 600; margin-top: 2px; }
.offer .ds { font-size: 12px; color: #d8d0c0; line-height: 1.25; min-height: 30px; }
.offer .btn { width: 100%; min-height: 40px; }
.offer.sold { opacity: .35; pointer-events: none; }
.offer .card { --w: 56px; }
.offer.wide { grid-column: 1 / -1; flex-direction: row; text-align: left; }
.offer.wide .info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sect { font: 800 12px var(--ff); letter-spacing: .18em; color: var(--mute); text-transform: uppercase; margin: 4px 2px -2px; }
.owned { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px; border-radius: 14px; background: rgba(0,0,0,.25); min-height: 60px; }
.cashout { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(232,188,78,.1); box-shadow: inset 0 0 0 1px rgba(232,188,78,.35); }
.cashout .l { display: flex; justify-content: space-between; font-size: 13.5px; } .cashout .l b { color: var(--gold2); }

/* Toast e tutorial */
#toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 90; pointer-events: none; padding: 9px 16px; border-radius: 12px; background: rgba(10,12,20,.92); color: #fff; font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .25s; box-shadow: 0 6px 20px #0008; max-width: 86%; text-align: center; }
#toast.on { opacity: 1; }
.coach { position: absolute; left: 12px; right: 12px; z-index: 35; pointer-events: none; padding: 9px 12px; border-radius: 16px; background: #fff7e8; color: #2a1d10; box-shadow: 0 10px 30px rgba(0,0,0,.55); font-size: 13.5px; line-height: 1.3; animation: zoom .3s cubic-bezier(.2,1.3,.4,1); }
.coach b { color: #b8331f; } .coach .stepn { font: 900 11px var(--ff); letter-spacing: .2em; color: #b8331f; }
.coach .btn { margin-top: 8px; min-height: 40px; background: #2a1d10; color: #fff; box-shadow: none; }
.coach::after { content: ''; position: absolute; left: var(--ax, 50%); width: 16px; height: 16px; background: #fff7e8; transform: rotate(45deg); margin-left: -8px; }
.coach.below::after { top: -7px; } .coach.above::after { bottom: -7px; }
.howto { font-size: 14px; line-height: 1.45; } .howto h3 { margin: 12px 0 4px; font: 800 16px var(--ff-t); color: var(--gold2); } .howto p { margin: 4px 0; }
.howto .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--verm); color: #fff; font-weight: 900; font-size: 12px; margin-right: 6px; }
.toggle { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
.sw { width: 50px; height: 30px; border-radius: 999px; background: #fff2; position: relative; transition: background .2s; } .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; } .sw.on { background: var(--jade); } .sw.on::after { left: 23px; }
.zukan { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.zk { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 12px; } .zk.unk { opacity: .4; } .zk b { display: block; font-size: 13px; }
.result h1 { font: 800 34px var(--ff-t); margin: 4px 0; } .result .big { font: 900 44px var(--ff); }
.statsg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; } .statsg div { padding: 8px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 12px; color: var(--mute); } .statsg b { display: block; font-size: 18px; color: var(--txt); }

@media (min-height: 800px) { .hand { gap: 10px; padding-top: 18px; } .fieldgrid { gap: 8px 7px; } }
@media (prefers-reduced-motion: reduce) { .card.lit { animation: none; } .enh::after { animation: none !important; } }

.shop > [data-a=next] { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 3px 0 #7c1f0f, 0 -12px 24px 10px rgba(12,16,27,.9); }
.hand .card.canmatch { filter: drop-shadow(0 0 5px rgba(255,215,122,.85)); }
.coachmark { animation: coachmark 1.1s ease-in-out infinite; position: relative; z-index: 6; }
@keyframes coachmark { 50% { box-shadow: 0 0 0 3px #fff7e8, 0 0 22px 4px rgba(255,247,232,.8); } }
.coach::after { display: none; }

.coach.over { z-index: 45; }
