/* Duelo das Eras — identidade "Papiro e Bronze" */
:root {
  --ink: #17110c; --walnut: #2a1f17; --walnut2: #3a2b1f; --papiro: #ecdfc2; --papiro2: #d8c59c;
  --bronze: #c38b3a; --ouro: #e9c46a; --lapis: #2b6a9a; --terracota: #b4462f; --oliva: #5f7a3a;
  --txt: #f3e9d2; --mute: #b9a888; --line: rgba(233, 196, 106, .22); --panel: rgba(42, 31, 23, .88);
  --brown: #8a5a33; --grey: #8b8f94; --red: #b8402d; --green: #3f8a4c; --blue: #2f6fa8; --yellow: #d4a72c; --purple: #7b4ea3;
  --cw: 54px; --ch: 76px;
  --f-title: 'Marcellus SC', serif; --f-text: 'Spectral', serif; --f-ui: 'Barlow Semi Condensed', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-top);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); color: var(--txt); font-family: var(--f-ui); font-size: 16px; -webkit-tap-highlight-color: transparent; overflow: hidden; }
#bg { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(ellipse at 50% 35%, rgba(195, 139, 58, .16), transparent 60%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 7px),
  repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 5px),
  linear-gradient(160deg, #2b1f15, #160f0a 70%); background-size: cover; }
#bg.art { background-position: center; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 400; margin: 0 0 .5rem; color: var(--ouro); letter-spacing: .02em; }
a { color: var(--ouro); }
.hidden { display: none !important; }
.hint { color: var(--mute); font-size: .88rem; margin: .3rem 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
label { display: block; font-size: .85rem; color: var(--mute); margin: 6px 0; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--papiro); border: 1px solid var(--bronze); border-radius: 8px; padding: .55rem .7rem; margin-top: 4px; }
input[type=checkbox] { width: auto; accent-color: var(--bronze); transform: scale(1.25); margin: 0 6px 0 0; }
.btn { font: 600 1rem var(--f-ui); letter-spacing: .02em; color: var(--ink); cursor: pointer; border: 1px solid #7a5420; border-radius: 10px; padding: .55rem 1rem; min-height: 42px;
  background: linear-gradient(180deg, #f0cf7f, var(--bronze)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 0 #5b3d15; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--txt); border-color: var(--line); box-shadow: none; }
.btn.red { background: linear-gradient(180deg, #d9715a, var(--terracota)); color: #fff; border-color: #6d2214; }
.btn.blue { background: linear-gradient(180deg, #5c9ccc, var(--lapis)); color: #fff; border-color: #173d5c; }
.btn.green { background: linear-gradient(180deg, #8fb35d, var(--oliva)); color: #fff; border-color: #33461c; }
.btn.sm { min-height: 32px; padding: .3rem .65rem; font-size: .85rem; }
.btn.big { min-height: 54px; font-size: 1.15rem; padding: .7rem 1.4rem; }
.icon-btn { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); color: var(--txt); width: 40px; height: 40px; border-radius: 10px; font-size: 1.15rem; cursor: pointer; display: inline-grid; place-items: center; text-decoration: none; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: transparent; color: var(--txt); border: 0; padding: .4rem .8rem; font: inherit; cursor: pointer; min-height: 36px; }
.seg button.on { background: var(--bronze); color: var(--ink); font-weight: 700; }

/* ---------- telas ---------- */
.screen { position: fixed; inset: 0; overflow: auto; padding: max(10px, var(--safe-t)) 12px calc(12px + var(--safe-b)); }
#login .box { max-width: 420px; margin: 4vh auto; }
.logo { text-align: center; margin: 10px 0 18px; }
.logo .emb { width: 120px; height: 80px; margin: 0 auto 4px; background: center/contain no-repeat; }
.logo h1 { font-size: 2.3rem; margin: 0; text-shadow: 0 2px 0 #000, 0 0 24px rgba(233, 196, 106, .35); }
.logo p { font-family: var(--f-text); font-style: italic; color: var(--mute); margin: 4px 0 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { flex: 1; }
.credits { font-size: .78rem; color: var(--mute); text-align: center; margin-top: 16px; line-height: 1.4; font-family: var(--f-text); }

/* ---------- lobby ---------- */
#lobby .wrap { max-width: 1100px; margin: 0 auto; display: grid; gap: 12px; }
@media (min-width: 900px) { #lobby .wrap { grid-template-columns: 1.3fr 1fr; } }
.topbar { display: flex; align-items: center; gap: 8px; max-width: 1100px; margin: 0 auto 10px; }
.topbar h1 { font-size: 1.4rem; margin: 0; }
.table2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.vs { align-self: center; font-family: var(--f-title); font-size: 1.6rem; color: var(--bronze); }
.seat { background: linear-gradient(180deg, rgba(236, 223, 194, .09), rgba(0, 0, 0, .15)); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; position: relative; min-height: 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.seat.empty { border-style: dashed; justify-content: center; color: var(--mute); }
.seat .nick { font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.seat .st { font-size: .8rem; padding: 2px 8px; border-radius: 20px; }
.st.ok { background: rgba(95, 122, 58, .35); color: #cfe6a8; }
.st.wait { background: rgba(195, 139, 58, .22); color: var(--ouro); }
.crown { position: absolute; top: 6px; left: 8px; font-size: 1.1rem; }
.av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: radial-gradient(circle at 35% 30%, #f6e7c4, #c8a46a); border: 2px solid var(--bronze); box-shadow: 0 0 0 3px rgba(0, 0, 0, .3); background-size: cover; background-position: center; flex: none; }
.av.sm { width: 32px; height: 32px; font-size: 1.05rem; border-width: 1.5px; }
.av.xs { width: 24px; height: 24px; font-size: .8rem; border-width: 1px; box-shadow: none; }
.av.bot { background: radial-gradient(circle at 35% 30%, #cfd8e2, #6a7f94); }
.list { display: grid; gap: 6px; }
.list .it { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: rgba(0, 0, 0, .18); border-radius: 10px; }
.exp { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin: 6px 0; background: rgba(0, 0, 0, .15); }
.exp.off { opacity: .5; }
.exp b { font-family: var(--f-title); color: var(--ouro); font-weight: 400; font-size: 1.05rem; }
.exp p { margin: 3px 0 0; font-size: .85rem; color: var(--mute); font-family: var(--f-text); }
.ready-big { width: 100%; }
.why { font-size: .85rem; color: var(--ouro); text-align: center; margin: 6px 0 0; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; min-height: 220px; max-height: 50vh; }
.chat .msgs { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 4px; font-size: .92rem; }
.chat .m { line-height: 1.3; }
.chat .m b { color: var(--ouro); }
.chat .m.sys { color: var(--mute); font-style: italic; font-family: var(--f-text); }
.chat form { display: flex; gap: 6px; margin-top: 6px; }
.chat form input { margin: 0; }
.emotes { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.emotes button { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 8px; font-size: 1.15rem; padding: 2px 6px; cursor: pointer; }

/* ---------- jogo ---------- */
#game { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.gbar { display: flex; align-items: center; gap: 6px; padding: max(6px, var(--safe-t)) 8px 6px; background: rgba(23, 17, 12, .85); border-bottom: 1px solid var(--line); flex: none; }
.gbar .age { font-family: var(--f-title); color: var(--ouro); font-size: 1.05rem; }
.gbar .timer { font-weight: 700; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); }
.gbar .timer.low { background: var(--terracota); color: #fff; }
.gmain { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px 6px calc(8px + var(--safe-b)); }
@media (min-width: 1000px) {
  .gmain { display: grid; grid-template-columns: 300px 1fr 300px; grid-template-rows: auto 1fr auto; overflow: hidden; }
  .pl.opp { grid-column: 1; grid-row: 1 / 3; }
  .pl.mine { grid-column: 1; grid-row: 3; }
  .center { grid-column: 2; grid-row: 1 / 4; overflow: auto; }
  .side { grid-column: 3; grid-row: 1 / 4; display: flex !important; flex-direction: column; overflow: hidden; }
  .side .chat { max-height: none; flex: 1; }
}
.side { display: none; gap: 8px; }
.pl { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.pl.turn { border-color: var(--ouro); box-shadow: 0 0 0 1px var(--ouro), 0 0 18px rgba(233, 196, 106, .25); }
.pl .hd { display: flex; align-items: center; gap: 8px; }
.pl .hd .nm { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 3px; background: rgba(0, 0, 0, .3); border-radius: 8px; padding: 2px 7px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; }
.chip.coin { color: var(--ouro); }
.res { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; font-size: .85rem; }
.res span { background: rgba(236, 223, 194, .1); border-radius: 6px; padding: 1px 5px; }
.res span.price { opacity: .75; font-size: .75rem; }
.colors { display: flex; gap: 3px; margin-top: 6px; }
.colors i { flex: 1; height: 22px; border-radius: 5px; font-style: normal; font-size: .8rem; font-weight: 700; display: grid; place-items: center; color: #fff; text-shadow: 0 1px 1px #000; opacity: .3; }
.colors i.has { opacity: 1; }
.wonders { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.wonder { position: relative; width: 74px; height: 50px; border-radius: 6px; border: 1.5px solid var(--bronze); background: linear-gradient(135deg, #5d4630, #2c2016) center/cover; font-size: .62rem; padding: 2px 3px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; overflow: hidden; }
.wonder .wn { background: rgba(0, 0, 0, .55); border-radius: 3px; padding: 0 2px; line-height: 1.15; }
.wonder.built { border-color: var(--ouro); box-shadow: 0 0 0 1px var(--ouro); }
.wonder.built::after { content: '✓'; position: absolute; top: 1px; right: 3px; color: var(--ouro); font-weight: 900; font-size: .9rem; text-shadow: 0 1px 2px #000; }
.wonder.can { animation: glow 1.4s infinite alternate; }
.wonder .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; opacity: .7; }
.syms { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 4px; font-size: .95rem; }
.syms span { background: rgba(63, 138, 76, .3); border-radius: 6px; padding: 0 4px; }
.leaders { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.ldr { font-size: .72rem; background: rgba(195, 139, 58, .2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; cursor: pointer; }
.ldr.buried { opacity: .55; text-decoration: line-through; }

.track { position: relative; height: 34px; margin: 4px 2px; border-radius: 8px; background: linear-gradient(90deg, rgba(43, 106, 154, .35), rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .2) 55%, rgba(180, 70, 47, .35)); display: grid; grid-template-columns: repeat(19, 1fr); align-items: center; border: 1px solid var(--line); }
.track i { height: 100%; border-right: 1px dashed rgba(255, 255, 255, .08); position: relative; font-style: normal; }
.track i.z3 { background: rgba(255, 255, 255, .04); } .track i.z6 { background: rgba(255, 255, 255, .08); }
.track i.cap { background: rgba(0, 0, 0, .35); }
.track .pawn { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9d7d, var(--terracota)); border: 2px solid #ffe3c0; box-shadow: 0 2px 4px #000; transition: left .5s cubic-bezier(.3, 1.5, .5, 1); z-index: 2; }
.track .loot { position: absolute; top: 2px; font-size: .62rem; background: var(--ouro); color: var(--ink); border-radius: 4px; padding: 0 3px; font-weight: 800; transform: translateX(-50%); }
.track-lbl { display: flex; justify-content: space-between; font-size: .72rem; color: var(--mute); padding: 0 4px; }
.prog { display: flex; gap: 6px; justify-content: center; margin: 4px 0; flex-wrap: wrap; }
.tok { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7dc08a, var(--green)); border: 2px solid #c8e8b8; display: grid; place-items: center; font-size: 1.25rem; cursor: pointer; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); background-size: cover; background-position: center; }
.tok.sm { width: 26px; height: 26px; font-size: .85rem; border-width: 1px; }
.tok.pick { animation: glow 1.2s infinite alternate; }

.structure { position: relative; margin: 6px auto; flex: none; }
.center { display: flex; flex-direction: column; align-items: stretch; }
.board-wrap { overflow-x: auto; overflow-y: visible; padding: 4px 0 8px; flex: none; }
.card { position: absolute; width: var(--cw); height: var(--ch); border-radius: 6px; background: var(--papiro); color: var(--ink); border: 1.5px solid #6e4b22; box-shadow: 0 2px 4px rgba(0, 0, 0, .55); overflow: hidden; cursor: default; transition: transform .15s, box-shadow .15s; font-size: 9px; }
.card .band { height: 32%; display: flex; align-items: flex-start; justify-content: space-between; padding: 1px 2px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .7); gap: 1px; }
.card .eff { font-size: 10px; line-height: 1.05; display: flex; flex-wrap: wrap; gap: 0 1px; }
.card .cost { font-size: 9px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 0; background: rgba(0, 0, 0, .25); border-radius: 3px; padding: 1px; }
.card .img { position: absolute; left: 0; right: 0; top: 32%; bottom: 0; background-size: cover; background-position: center; display: grid; place-items: center; font-size: 22px; }
.card .name { position: absolute; left: 0; right: 0; bottom: 0; font: 600 8.5px/1.05 var(--f-ui); text-align: center; padding: 1px 2px 2px; background: linear-gradient(transparent, rgba(236, 223, 194, .95) 35%); }
.card.back { background: linear-gradient(135deg, #8a5a33, #5b3a1e); border-color: #3a2410; }
.card.back.a2 { background: linear-gradient(135deg, #2f6fa8, #183f63); }
.card.back.a3 { background: linear-gradient(135deg, #9a3c5a, #4f1c2d); }
.card.back.guild { background: linear-gradient(135deg, #7b4ea3, #3a2152); }
.card.back::after { content: attr(data-age); position: absolute; inset: 0; display: grid; place-items: center; font: 22px var(--f-title); color: rgba(255, 230, 180, .5); }
.card.back.art::after { content: none; }
.card.back.art { background-size: cover; background-position: center; }
.card.acc { cursor: pointer; }
.card.acc:hover { transform: translateY(-3px); }
.card.acc.can { box-shadow: 0 0 0 2px var(--ouro), 0 3px 8px rgba(0, 0, 0, .6); }
.card.sel { transform: translateY(-5px) scale(1.06); box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0, 0, 0, .7); z-index: 50; }
.card.taken { display: none; }
.card .tag { position: absolute; top: 33%; right: 1px; font-size: 8.5px; font-weight: 800; background: var(--ouro); color: var(--ink); border-radius: 3px; padding: 0 2px; z-index: 2; }
.card .tag.no { background: #777; color: #fff; }
.card .tag.free { background: var(--oliva); color: #fff; }
@keyframes glow { from { box-shadow: 0 0 0 1px var(--ouro); } to { box-shadow: 0 0 0 3px var(--ouro), 0 0 14px rgba(233, 196, 106, .7); } }

/* carta grande (detalhe) */
.bigcard { width: 200px; height: 290px; position: relative; margin: 0 auto; border-radius: 12px; background: var(--papiro); color: var(--ink); border: 3px solid #6e4b22; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); flex: none; }
.bigcard .band { height: 70px; padding: 6px 8px; color: #fff; display: flex; justify-content: space-between; gap: 6px; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.bigcard .band .eff { font-size: 1.1rem; display: flex; flex-wrap: wrap; gap: 2px; align-content: flex-start; }
.bigcard .band .cost { display: flex; flex-direction: column; gap: 1px; font-size: .95rem; background: rgba(0, 0, 0, .3); border-radius: 6px; padding: 2px 4px; align-items: center; }
.bigcard .img { position: absolute; top: 70px; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; display: grid; place-items: center; font-size: 64px; }
.bigcard .name { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font: 1.05rem var(--f-title); padding: 18px 6px 8px; background: linear-gradient(transparent, rgba(236, 223, 194, .96) 40%); }
.bigcard.wide { width: 300px; height: 200px; }
.bigcard.wide .band { height: 54px; }
.bigcard.wide .img { top: 54px; }
.desc { font-family: var(--f-text); font-size: .95rem; line-height: 1.4; margin: 10px 0; }

/* folhas de baixo (modais) */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-box { background: linear-gradient(180deg, #33261b, #1f1610); border: 1px solid var(--line); border-radius: 18px 18px 0 0; width: 100%; max-width: 620px; max-height: 88vh; overflow: auto; padding: 14px 14px calc(16px + var(--safe-b)); animation: up .22s ease-out; }
.modal-box.wide { max-width: 900px; }
@media (min-width: 700px) { .modal { align-items: center; } .modal-box { border-radius: 18px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.mh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mh h3 { flex: 1; margin: 0; }
.acts { display: grid; gap: 8px; margin-top: 10px; }
.acts .btn { width: 100%; justify-content: space-between; }
.opts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.opt { cursor: pointer; text-align: center; max-width: 220px; }
.opt .hint { font-family: var(--f-text); }
.opt.sm .bigcard { width: 150px; height: 218px; } .opt.sm .bigcard .band { height: 52px; } .opt.sm .bigcard .img { top: 52px; font-size: 48px; }
.opt.sm .bigcard.wide { width: 230px; height: 154px; } .opt.sm .bigcard.wide .band { height: 44px; } .opt.sm .bigcard.wide .img { top: 44px; }
.sheet { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.sheet .acts { grid-column: 1 / -1; }
.medal { width: 70%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 3.2rem var(--f-title); color: #5b3d15; background: radial-gradient(circle at 35% 30%, #f6e2b0, #c38b3a); border: 3px solid #6e4b22; box-shadow: inset 0 0 0 6px rgba(95, 122, 58, .55); }
@media (max-width: 520px) {
  .bigcard, .opt.sm .bigcard { width: 128px; height: 186px; border-width: 2px; } .bigcard .band, .opt.sm .bigcard .band { height: 46px; padding: 4px; } .bigcard .band .eff { font-size: .85rem; } .bigcard .band .cost { font-size: .75rem; }
  .bigcard .img, .opt.sm .bigcard .img { top: 46px; font-size: 40px; } .bigcard .name { font-size: .8rem; padding: 12px 4px 5px; }
  .bigcard.wide, .opt.sm .bigcard.wide { width: 168px; height: 112px; } .bigcard.wide .band, .opt.sm .bigcard.wide .band { height: 34px; } .bigcard.wide .img, .opt.sm .bigcard.wide .img { top: 34px; font-size: 32px; }
  .medal { font-size: 2rem; }
  .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 6px; } .opt { max-width: none; } .opt .hint { font-size: .78rem; }
  .desc { font-size: .88rem; margin-top: 0; }
}
.city { display: grid; gap: 10px; }
.city .col { display: flex; flex-wrap: wrap; gap: 4px; }
.mini { font-size: .78rem; padding: 3px 7px; border-radius: 6px; color: #fff; text-shadow: 0 1px 1px #000; cursor: pointer; }

/* anúncios e avisos */
.toasts { position: fixed; top: calc(60px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 6px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: rgba(23, 17, 12, .95); border: 1px solid var(--bronze); border-radius: 10px; padding: 8px 12px; text-align: center; animation: up .2s; }
.toast.err { border-color: var(--terracota); color: #ffc7b8; }
.announce { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; pointer-events: none; }
.announce div { font: clamp(1.6rem, 6vw, 3rem) var(--f-title); color: var(--ouro); text-align: center; padding: 18px 26px; border-radius: 16px; background: rgba(23, 17, 12, .85); border: 2px solid var(--bronze); animation: ann 2.2s ease forwards; text-shadow: 0 2px 0 #000; max-width: 90vw; }
.announce div small { display: block; font: 1rem var(--f-text); color: var(--txt); margin-top: 4px; }
@keyframes ann { 0% { transform: scale(.6); opacity: 0; } 12% { transform: scale(1.05); opacity: 1; } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.flash { position: fixed; inset: 0; z-index: 240; pointer-events: none; animation: fl .7s ease-out forwards; }
.flash.bad { background: radial-gradient(transparent 40%, rgba(180, 70, 47, .6)); }
.flash.good { background: radial-gradient(transparent 40%, rgba(95, 160, 70, .5)); }
@keyframes fl { from { opacity: 1; } to { opacity: 0; } }
.emote-pop { position: fixed; z-index: 260; font-size: 2.6rem; pointer-events: none; animation: emo 2s ease forwards; }
@keyframes emo { 0% { transform: scale(.3); opacity: 0; } 15% { transform: scale(1.2); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }
.banner { background: rgba(195, 139, 58, .2); border: 1px solid var(--bronze); border-radius: 10px; padding: 8px 10px; font-size: .92rem; text-align: center; }
.banner.tip { background: rgba(43, 106, 154, .25); border-color: var(--lapis); font-family: var(--f-text); }
.log { font-size: .82rem; color: var(--mute); max-height: 160px; overflow: auto; font-family: var(--f-text); }
.log div { padding: 1px 0; border-bottom: 1px dotted rgba(255, 255, 255, .05); }
table.score { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.score td, table.score th { padding: 4px 6px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .07); }
table.score td:first-child, table.score th:first-child { text-align: left; }
table.score tr.tot td { font-weight: 800; color: var(--ouro); font-size: 1.1rem; }
.podium { display: flex; justify-content: center; gap: 18px; align-items: flex-end; margin: 10px 0; }
.podium .pp { text-align: center; }
.podium .pp.win .av { width: 74px; height: 74px; font-size: 2.3rem; border-color: var(--ouro); box-shadow: 0 0 20px rgba(233, 196, 106, .6); }
.menu-list { display: grid; gap: 8px; }
.avgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.avgrid .av { cursor: pointer; width: 100%; height: auto; aspect-ratio: 1; }
.avgrid .av.on { border-color: #fff; box-shadow: 0 0 0 3px var(--ouro); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 600px) { :root { --cw: 66px; --ch: 94px; } .card { font-size: 10px; } .card .name { font-size: 9.5px; } }
@media (min-width: 1300px) { :root { --cw: 88px; --ch: 124px; } .card .img { font-size: 30px; } .card .eff { font-size: 12px; } .card .name { font-size: 10.5px; } .card .cost { font-size: 10.5px; } }
/* painel do GM */
.btn.gold { background: linear-gradient(180deg, #f6dc8c, var(--ouro)); }
.lbl { font-size: .85rem; color: var(--mute); }
.sep { height: 1px; background: var(--line); }
label .opt { color: var(--mute); font-size: .8rem; }

/* Era de Ouro, modos e medidor */
.card .wtok { position: absolute; right: 2px; bottom: 2px; z-index: 3; background: linear-gradient(180deg, #e9c46a, #c38b3a); color: #17110c; font: 700 .62rem/1 var(--f-ui); padding: 2px 3px; border-radius: 6px; box-shadow: 0 1px 3px #0008; pointer-events: none; }
.card.back .wtok { bottom: 4px; right: 4px; }
.modes { display: grid; gap: 6px; }
.exp.mode.sel { border-color: var(--ouro, #e9c46a); box-shadow: 0 0 0 1px #e9c46a55 inset; }
.winmeter { margin: 4px auto 2px; max-width: 520px; width: 100%; }
.wm-bar { height: 8px; border-radius: 6px; background: #b4462f; overflow: hidden; box-shadow: inset 0 1px 2px #0008; }
.wm-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2b6a9a, #5b9ac7); transition: width .6s ease; }
.wm-lbl { display: flex; justify-content: space-between; font: 600 .68rem/1.3 var(--f-ui); color: #ecdfc2cc; margin-top: 2px; gap: 6px; }
.wm-lbl span:nth-child(2) { opacity: .6; font-weight: 400; }
