/* Torres del Rey — estilos. Noche de baile de máscaras: terciopelo violeta, oro y cartas de pergamino.
   Disposición: body.port (vertical) · body.land (horizontal) · body.desk (ordenador) · body.short (horizontal bajo). */
:root {
  --safe-t: env(safe-area-inset-top, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px);
  --bg: #140f24; --bg2: #1e1636; --panel: #261c44; --panel2: #31255a; --line: rgba(255, 220, 140, .18); --line2: rgba(255, 255, 255, .1);
  --text: #fbf6ff; --muted: #c4b8e2; --dim: #8f84ad; --gold: #f5c542; --gold2: #ffe28a; --gold3: #a8740f;
  --red: #ff5a4f; --green: #4fd27a; --sky: #4fb3ff;
  --noble: #f2c230; --religioso: #3f8cff; --comercial: #3fbf5a; --militar: #e5483b; --especial: #a45cf0;
  --r: 14px; --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; --title: 'Cinzel', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--ui); font-weight: 700; overflow: hidden; overscroll-behavior: none; }
body { background: radial-gradient(120% 90% at 50% 0%, #3a2766 0%, #221840 45%, #140f24 100%) fixed; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
#app { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; }
button { font: inherit; color: inherit; }
svg { display: block; }
.hidden { display: none !important; }
.dim { color: var(--dim); }
.clip-ok { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.howto-src, noscript .noscript { display: none; }
#loader { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg); transition: opacity .4s; }
#loader.out { opacity: 0; pointer-events: none; }
.loader-mask { width: 64px; height: 64px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .15); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--gold); animation: spin .9s linear infinite; vertical-align: -3px; margin-right: 8px; }

/* ---------------- botones ---------------- */
.btn { --b1: #4c3a86; --b2: #3a2b6b; --bt: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 16px; border: 0; border-radius: 14px; background: linear-gradient(180deg, var(--b1), var(--b2)); color: var(--bt); font-weight: 800; font-size: 1rem; line-height: 1.1; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .22); transition: transform .08s, filter .15s; text-align: left; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: default; filter: saturate(.4); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn span { display: flex; flex-direction: column; min-width: 0; }
.btn small { font-size: .76rem; font-weight: 700; opacity: .85; margin-top: 2px; }
.btn.gold { --b1: #ffd75a; --b2: #f0a92a; --bt: #3b2304; box-shadow: 0 4px 0 #9a5f0c, inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.sky { --b1: #5cc2ff; --b2: #2f86e0; }
.btn.red { --b1: #ff7268; --b2: #d93c33; }
.btn.mint { --b1: #5fe39a; --b2: #22a865; --bt: #0b2c1a; }
.btn.ghost { --b1: rgba(255, 255, 255, .1); --b2: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); }
.btn.end { --b1: #6a55c2; --b2: #4b3a99; }
.btn.big { min-height: 56px; font-size: 1.1rem; padding: 10px 20px; }
.btn.small { min-height: 44px; font-size: .92rem; padding: 6px 12px; }
.ib { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); color: var(--text); cursor: pointer; }
.ib svg { width: 22px; height: 22px; }
.ib.sm { width: 44px; height: 44px; }
.ib:active { transform: scale(.94); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px 4px 8px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); font-weight: 800; font-size: .9rem; cursor: pointer; color: var(--text); white-space: nowrap; }
.chip svg { width: 22px; height: 22px; flex: none; }
.chip.pow { background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 45%, #2a1f48), color-mix(in srgb, var(--tint) 25%, #1d1533)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tint) 70%, transparent), 0 0 14px color-mix(in srgb, var(--tint) 40%, transparent); animation: glow 1.6s ease-in-out infinite; }
.chip.coin { background: linear-gradient(180deg, #5a4410, #3a2c0a); box-shadow: inset 0 0 0 2px #c99316; color: var(--gold2); }
.chip.spec { background: linear-gradient(180deg, #4d2a7a, #33195a); box-shadow: inset 0 0 0 2px var(--especial); color: #e7d4ff; }
.chip.spec svg { color: #d4b0ff; }
.chip.ad { background: linear-gradient(180deg, #1f5a3a, #143d27); box-shadow: inset 0 0 0 2px var(--green); color: #c9ffd9; }
.chip.off { cursor: default; opacity: .7; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tint) 90%, transparent), 0 0 22px color-mix(in srgb, var(--tint) 70%, transparent); } }
.row { display: flex; gap: 10px; align-items: center; }
.row > .btn { flex: 1; }
.col { display: flex; flex-direction: column; gap: 10px; }
.sub { color: var(--muted); font-weight: 700; margin: 4px 0; }
.sub.small { font-size: .85rem; }
.sub.big { font-size: 1.1rem; color: var(--text); }

/* ---------------- pantallas ---------------- */
#screens { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(12px + var(--safe-t)) calc(14px + var(--safe-r)) calc(12px + var(--safe-b)) calc(14px + var(--safe-l)); pointer-events: auto; animation: fade .25s both; }
.screen.out { animation: fadeout .2s both; pointer-events: none; }
.screen.ov { background: rgba(10, 6, 22, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 2; }
@keyframes fade { from { opacity: 0; } } @keyframes fadeout { to { opacity: 0; } }
.card { position: relative; width: min(460px, 100%); max-height: 100%; overflow: auto; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: var(--shadow), inset 0 0 0 2px var(--line); animation: pop .28s cubic-bezier(.2, .9, .3, 1.2) both; }
.card h2 { margin: 0 0 12px; font-family: var(--title); font-weight: 900; font-size: 1.55rem; text-align: center; color: var(--gold2); letter-spacing: .02em; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.card .col .btn, .card > .btn { width: 100%; }

/* portada */
.title-screen { justify-content: space-between; gap: 10px; background: radial-gradient(80% 50% at 50% 30%, rgba(255, 200, 90, .18), transparent 70%); }
.title-screen { --tw: clamp(104px, 20vh, 188px); --th: calc(var(--tw) * 1.34); }
.title-art { position: absolute; left: 50%; top: calc(var(--safe-t) + 64px + var(--th) * .5); width: 0; height: 0; pointer-events: none; }
.title-art .tc { position: absolute; width: var(--tw); height: var(--th); left: calc(var(--tw) * -.5); top: calc(var(--th) * -.5); border-radius: 14px; background: center 18% / cover; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), inset 0 0 0 3px color-mix(in srgb, var(--tint) 70%, #fff3); transform: translateX(calc(var(--k) * var(--tw) * .6)) translateY(calc(var(--k) * var(--k) * var(--tw) * .07)) rotate(calc(var(--k) * 9deg)); opacity: .9; animation: tcin .7s cubic-bezier(.2, .9, .3, 1.1) both; animation-delay: calc((var(--k) + 2) * 70ms); }
.title-art .tc:nth-child(3) { z-index: 2; opacity: 1; }
@keyframes tcin { from { transform: translateY(40px) rotate(0); opacity: 0; } }
.logo { position: relative; z-index: 2; text-align: center; margin-top: calc(64px + var(--th) * 1.08); }
.logo .crown-ic { width: 44px; height: 44px; margin: 0 auto -6px; color: var(--gold); filter: drop-shadow(0 3px 0 #7a4a08); }
.logo .crown-ic svg { width: 100%; height: 100%; }
.logo .lg { margin: 0; font-family: var(--title); font-weight: 900; font-size: clamp(2.1rem, 9.5vw, 3.6rem); line-height: 1.02; color: #ffe08a; text-shadow: 0 3px 0 #8a5208, 0 6px 22px rgba(0, 0, 0, .6); letter-spacing: .02em; }
.logo p { margin: 8px 0 0; color: #f3e7ff; font-size: 1.02rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.title-bottom { position: relative; z-index: 2; width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; }
.title-bottom > .btn { width: 100%; }
.title-bottom .row.two > .btn { flex: 1 1 0; min-width: 0; }
.title-bottom .row.icons { justify-content: center; }
.join-row { display: flex; gap: 8px; }
.join-row .code { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 0; padding: 0 12px; font: 800 1.1rem var(--ui); letter-spacing: .3em; text-transform: uppercase; background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
.join-row .code::placeholder { color: rgba(255, 255, 255, .45); letter-spacing: .2em; }
.nick-chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; max-width: 170px; padding: 0 12px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); cursor: pointer; }
.nick-chip svg { width: 18px; height: 18px; flex: none; }
.online-count { margin: 0; text-align: center; color: var(--muted); font-size: .9rem; }
.online-count .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 8px var(--green); }
.portal-link { position: absolute; z-index: 3; left: calc(10px + var(--safe-l)); top: calc(8px + var(--safe-t)); display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(20, 12, 40, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); color: var(--text); text-decoration: none; font-weight: 800; font-size: .9rem; }
.portal-link svg { width: 28px; height: 28px; }
body.land .title-screen { flex-direction: row; align-items: center; justify-content: center; gap: 4vw; }
body.land .title-screen { --tw: clamp(90px, 24vh, 168px); }
body.land .title-art { left: 27%; top: 58%; }
body.land .logo { margin: 0; width: 44%; align-self: flex-start; margin-top: calc(10px + var(--safe-t)); }
body.land.short .logo .lg { font-size: 2.1rem; }
body.land .title-bottom { width: min(400px, 48%); margin-left: auto; }
body.land.short .title-bottom { gap: 7px; }
body.land.short .title-bottom .btn.big { min-height: 48px; padding: 6px 14px; }
body.land.short .title-screen { --tw: 92px; }
body.desk .title-screen { --tw: 168px; }
body.desk .logo .lg { font-size: 3.6rem; }

/* hojas (ui.js) */
.sheet-wrap { position: absolute; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 4, 20, .5); animation: fade .2s both; }
.sheet-wrap.out { animation: fadeout .2s both; pointer-events: none; }
.sheet { width: min(480px, 100%); max-height: 88%; overflow: auto; border-radius: 22px 22px 0 0; padding: 14px 16px max(calc(16px + var(--safe-b)), calc(var(--cookie-b, 0px) + 8px)); background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .4), inset 0 0 0 2px var(--line); animation: up .25s cubic-bezier(.2, .9, .3, 1.05) both; }
body.land .sheet-wrap { align-items: center; }
body.land .sheet { border-radius: 22px; max-height: 92%; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sheet header h3 { flex: 1; margin: 0; font-family: var(--title); font-size: 1.3rem; color: var(--gold2); }
.sheet-body { display: flex; flex-direction: column; gap: 10px; }
.sheet-body > .btn { align-self: stretch; }
.opts { display: grid; gap: 6px; }
.opts label { display: block; font-size: .9rem; color: var(--muted); margin: 4px 0 4px; }
.og { display: flex; flex-direction: column; min-width: 0; } .og .lvd { margin: 4px 0 0; min-height: 1.2em; }
.opts .nick, .nick-form .nick, .setting .nick { height: 46px; border-radius: 12px; border: 0; padding: 0 12px; font: 800 1rem var(--ui); background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); min-width: 0; }
.nick-form { display: flex; gap: 8px; } .nick-form .nick { flex: 1; }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.seg button { flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; padding: 0 6px; }
.seg button.on { background: linear-gradient(180deg, #ffd75a, #f0a92a); color: #3b2304; }
.seg.ro button { cursor: default; }

/* ajustes, pausa, cómo se juega */
.settings { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.setting > span { flex: 1; min-width: 0; }
.setting select { height: 44px; border-radius: 12px; border: 0; padding: 0 10px; font: 800 1rem var(--ui); background: rgba(255, 255, 255, .12); color: #fff; }
.setting select option { color: #222; }
.setting .nick { width: 160px; }
.tog { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px 0 6px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .1); cursor: pointer; font-weight: 800; }
.tog i { width: 40px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, .2); position: relative; transition: background .2s; }
.tog i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tog.on i { background: var(--green); } .tog.on i::after { transform: translateX(16px); }
.row.links { justify-content: center; flex-wrap: wrap; } .row.links .btn { flex: 0 1 auto; text-decoration: none; }
.howto-p .card { width: min(720px, 100%); }
.howto-body { font-weight: 600; line-height: 1.5; color: #eee6ff; }
.howto-body .t1 { font-family: var(--title); color: var(--gold2); font-size: 1.3rem; margin: 0 0 8px; }
.howto-body h2 { font-size: 1.08rem; color: var(--gold2); margin: 16px 0 6px; }
.howto-body ul, .howto-body ol { padding-left: 1.2em; }
.howto-body li { margin: 3px 0; }
.howto-body strong { color: #fff; }
.howto-p .b-close { position: sticky; bottom: 0; width: 100%; margin-top: 10px; }
.menu-p .card { width: min(380px, 100%); }

/* sala de espera */
.lobby .card { width: min(480px, 100%); }
.code-big { display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.code-big b { width: 46px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 2px var(--line); font: 900 1.8rem var(--title); color: var(--gold2); }
.seats { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.seat { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 8px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.seat.me { box-shadow: inset 0 0 0 2px var(--gold); }
.seat.empty { opacity: .75; }
.seat .nm { flex: 1; }
.seat em { font-style: normal; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.seat em svg { width: 14px; height: 14px; }
.seat em.you { background: var(--gold); color: #3b2304; }
.sdot { width: 16px; height: 16px; border-radius: 50%; background: var(--pc, #666); flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.addbot-level { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .addbot-level .seg { flex: 1; }
.countdown { text-align: center; font-size: 1.6rem; font-family: var(--title); color: var(--gold2); margin: 6px 0; }
.lobby .card > .btn { width: 100%; margin-top: 8px; }

/* final */
.end-p .card { width: min(560px, 100%); }
.final { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.final li { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px; border-radius: 14px; background: rgba(0, 0, 0, .22); animation: slidein .4s both; }
.final li.first { background: linear-gradient(90deg, rgba(255, 210, 80, .28), rgba(0, 0, 0, .2)); box-shadow: inset 0 0 0 2px var(--gold); }
.final li.me .nm { color: var(--gold2); }
@keyframes slidein { from { transform: translateX(-20px); opacity: 0; } }
.final .pos { width: 34px; font-family: var(--title); color: var(--gold2); }
.final .sdot { background: var(--pc); }
.final .nm { flex: 1 1 60px; }
.final .brk { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.final .bk { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: .82rem; }
.final .bk.zero { opacity: .45; }
.final .bk svg, .legend svg { width: 15px; height: 15px; }
.final .bk.d svg { color: #ffd98a; } .final .bk.f svg, .legend .f svg { color: var(--gold); }
.final .tot { min-width: 40px; text-align: right; font: 900 1.45rem var(--title); color: var(--gold2); }
.rb { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--noble) 0 20%, var(--religioso) 0 40%, var(--comercial) 0 60%, var(--militar) 0 80%, var(--especial) 0); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: .78rem; color: var(--muted); margin: 4px 0 8px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend span svg { color: #ffd98a; }
.tie { text-align: center; }

/* avisos */
#toasts { position: absolute; left: 50%; top: calc(54px + var(--safe-t)); transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; width: min(92vw, 460px); }
.toast { padding: 10px 16px; border-radius: 14px; background: rgba(24, 16, 46, .94); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line); font-weight: 800; text-align: center; animation: up .25s both; }
.toast.red { box-shadow: var(--shadow), inset 0 0 0 2px var(--red); }
.toast.gold { box-shadow: var(--shadow), inset 0 0 0 2px var(--gold); color: var(--gold2); }
.toast.dim { opacity: .9; font-size: .9rem; }
.toast.out { animation: fadeout .3s both; }
.confirm-sheet .row { margin-top: 6px; }

/* ================= LA MESA ================= */
#table { position: absolute; inset: 0; z-index: 10; padding: calc(4px + var(--safe-t)) calc(6px + var(--safe-r)) calc(4px + max(var(--safe-b), var(--cookie-b, 0px))) calc(6px + var(--safe-l)); display: flex; flex-direction: column; gap: 5px; }
.tb { --cw: 84px; }
/* barra */
.t-bar { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.t-info { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .95rem; }
.t-round { font-family: var(--title); font-weight: 900; color: var(--gold2); white-space: nowrap; }
.t-deck { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.t-deck svg { width: 20px; height: 20px; }
.t-last { padding: 3px 10px; border-radius: 99px; background: linear-gradient(180deg, #ff7268, #c9302a); font-size: .8rem; white-space: nowrap; animation: pulse 1.4s ease-in-out infinite; }
.t-net { padding: 3px 10px; border-radius: 99px; background: rgba(255, 90, 79, .25); font-size: .78rem; white-space: nowrap; }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* fichas de los rivales */
.t-riv { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 5px; }
.t-riv[data-n="1"] { --n: 1; } .t-riv[data-n="2"] { --n: 2; } .t-riv[data-n="3"] { --n: 3; } .t-riv[data-n="4"] { --n: 4; } .t-riv[data-n="5"] { --n: 5; }
.rv { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "av nm" "av st" "av ds"; align-items: center; column-gap: 7px; row-gap: 2px; min-width: 0; padding: 5px 7px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pc) 45%, transparent); cursor: pointer; transition: box-shadow .2s, transform .15s; }
.rv:active { transform: scale(.97); }
.rv.act { box-shadow: inset 0 0 0 2.5px var(--pc), 0 0 16px color-mix(in srgb, var(--pc) 45%, transparent); }
.rv.away { opacity: .75; }
.rv.tappable { animation: tapme 1.2s ease-in-out infinite; }
@keyframes tapme { 50% { box-shadow: inset 0 0 0 3px #ff8a70, 0 0 18px rgba(255, 120, 90, .6); } }
.rv-av { grid-area: av; }
.rv-nm { grid-area: nm; font-size: .9rem; color: color-mix(in srgb, var(--pc) 55%, #fff); line-height: 1.15; }
.rv-st { grid-area: st; } .rv-ds { grid-area: ds; }
.rv-av, .me-av { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; }
.av { display: block; width: 36px; height: 36px; border-radius: 50%; background: center 20% / cover var(--bg2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tint, #888) 80%, #000), 0 2px 6px rgba(0, 0, 0, .4); }
.av.mask { display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--tint) 60%, #fff3), color-mix(in srgb, var(--tint) 45%, #1a1030)); color: #fff; }
.av.mask svg { width: 64%; height: 64%; }
.av.sm { width: 28px; height: 28px; } .av.xs { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.ring circle { fill: none; stroke: transparent; stroke-width: 3.2; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 * (1 - var(--p, 1))); stroke-linecap: round; transition: stroke-dashoffset .2s linear, stroke .3s; }
.timed .ring circle { stroke: #4fd27a; } .warn .ring circle { stroke: #ff9d2e; } .hot .ring circle { stroke: #ff4a3d; }
.hot .rv-av, .hot .me-av { animation: shakeS .5s infinite; }
@keyframes shakeS { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.crownb { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; color: var(--gold); filter: drop-shadow(0 1px 0 #7a4a08) drop-shadow(0 0 4px rgba(0, 0, 0, .6)); }
.crownb svg { width: 100%; height: 100%; }
.botb { position: absolute; bottom: -3px; left: -3px; width: 17px; height: 17px; padding: 2px; border-radius: 50%; background: #2c2152; color: #cfc3ff; }
.botb svg { width: 100%; height: 100%; }
.rv-st, .rv-ds { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; row-gap: 2px; min-width: 0; }
.st { display: inline-flex; align-items: center; gap: 2px; font-size: .95rem; font-weight: 900; line-height: 1; white-space: nowrap; }
.st svg { width: 17px; height: 17px; flex: none; }
.st.d svg { color: #ffd98a; }
.dots { display: inline-flex; gap: 2px; }
.dot { width: 13px; height: 13px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .25); }
.dot svg { width: 9px; height: 9px; }
.dot.on { color: rgba(0, 0, 0, .55); }
.dot.on.cc-noble { background: var(--noble); } .dot.on.cc-religioso { background: var(--religioso); } .dot.on.cc-comercial { background: var(--comercial); } .dot.on.cc-militar { background: var(--militar); } .dot.on.cc-especial { background: var(--especial); }
.rv-tgt { position: absolute; top: -8px; right: -6px; display: flex; align-items: center; gap: 1px; padding: 2px 6px; border-radius: 99px; background: var(--red); font-style: normal; font-size: .8rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.rv-tgt svg { width: 15px; height: 15px; }
.bub { position: absolute; z-index: 5; left: 50%; bottom: calc(100% - 6px); transform: translateX(-50%); padding: 5px 10px; border-radius: 12px; background: #fff; color: #2a1d10; font-size: .85rem; white-space: nowrap; box-shadow: var(--shadow); pointer-events: none; }
.t-riv .bub { bottom: auto; top: calc(100% - 4px); }
.pop { animation: popb .35s cubic-bezier(.2, .9, .3, 1.4); } @keyframes popb { from { transform: translateX(-50%) scale(.5); } }
/* vertical con 3 a 5 rivales: avatar pequeño junto al nombre y los datos debajo, a todo el ancho de la ficha */
body.port .t-riv:is([data-n="3"], [data-n="4"], [data-n="5"]) .rv { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "av nm" "st st" "ds ds"; column-gap: 5px; padding: 4px 5px; }
body.port .t-riv:is([data-n="3"], [data-n="4"], [data-n="5"]) .rv-av { width: 30px; height: 30px; }
body.port .t-riv:is([data-n="3"], [data-n="4"], [data-n="5"]) .rv-av .av { width: 25px; height: 25px; }
body.port .t-riv:is([data-n="3"], [data-n="4"], [data-n="5"]) .crownb { width: 17px; height: 17px; top: -6px; right: -7px; }
body.port .t-riv:is([data-n="3"], [data-n="4"], [data-n="5"]) .botb { width: 13px; height: 13px; padding: 1px; }
body.port .t-riv:is([data-n="4"], [data-n="5"]) .rv-nm { font-size: .8rem; }
body.port .t-riv:is([data-n="4"], [data-n="5"]) .st { font-size: .88rem; } body.port .t-riv:is([data-n="4"], [data-n="5"]) .st svg { width: 15px; height: 15px; }
body.port .t-riv:is([data-n="4"], [data-n="5"]) .rv-st, body.port .t-riv:is([data-n="4"], [data-n="5"]) .rv-ds { gap: 4px; }
body.port .t-riv:is([data-n="4"], [data-n="5"]) .st.s { display: none; }
body.port .t-riv:is([data-n="4"], [data-n="5"]) .dot { width: 11px; height: 11px; } body.port .t-riv:is([data-n="4"], [data-n="5"]) .dot svg { width: 7px; height: 7px; }
body.port .t-riv[data-n="3"] .dot { width: 12px; height: 12px; }
body.port .t-riv:is([data-n="4"], [data-n="5"]) .rv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "av" "nm" "st" "ds"; justify-items: center; text-align: center; }
body.port .t-riv:is([data-n="4"], [data-n="5"]) .rv-nm { max-width: 100%; }
body.port .t-riv:is([data-n="4"], [data-n="5"]) .rv-st, body.port .t-riv:is([data-n="4"], [data-n="5"]) .rv-ds { justify-content: center; }

/* mi ciudad: ver «ciudad central» al final */
.crumble { animation: crumble .7s ease-in both; }
@keyframes crumble { 30% { transform: translateX(-4px) rotate(-3deg); } 60% { transform: translateX(4px) rotate(3deg); filter: brightness(1.6); } 100% { transform: translateY(8px) scale(.9); opacity: .3; } }

/* colores de las cartas: marcos propios por color de distrito */
.col-noble { --c1: #ffe9a3; --c2: #c98e10; --c3: #7a5206; --ch: #f2c230; }
.col-religioso { --c1: #b8d5ff; --c2: #2f6fd8; --c3: #12346e; --ch: #3f8cff; }
.col-comercial { --c1: #bff3c9; --c2: #2a9a48; --c3: #0f4a1f; --ch: #3fbf5a; }
.col-militar { --c1: #ffc2ba; --c2: #c9332a; --c3: #5e110c; --ch: #e5483b; }
.col-especial { --c1: #e5c9ff; --c2: #8240d6; --c3: #3a1268; --ch: #a45cf0; }
.gem { position: absolute; z-index: 2; top: -6px; left: -6px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #f5c542 45%, #b07d12); box-shadow: 0 0 0 2px #6e4508, 0 2px 4px rgba(0, 0, 0, .45); color: #3b2304; font: 900 .95rem var(--ui); }
.cbadge { position: absolute; z-index: 2; top: 3px; right: 3px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ch); color: rgba(0, 0, 0, .62); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7), 0 1px 3px rgba(0, 0, 0, .4); }
.cbadge svg { width: 100%; height: 100%; }

/* carta de distrito */
.dc { position: absolute; top: 0; width: var(--cw); height: calc(var(--cw) * 1.42); border-radius: 11px; padding: 3px; background: linear-gradient(160deg, var(--c1), var(--c2) 55%, var(--c3)); box-shadow: 0 6px 14px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .35); cursor: pointer; transform: translateY(var(--y, 0)) rotate(var(--r, 0)); transform-origin: 50% 120%; transition: transform .18s cubic-bezier(.2, .9, .3, 1.3), filter .2s, box-shadow .2s, left .25s; }
.dc-in { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, #fff8e8, #f1e2c4); }
.dc-in::after { content: ''; position: absolute; inset: 2px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c2) 55%, transparent); pointer-events: none; }
.dc-art { flex: 0 0 47%; background: center / cover; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--c2) 80%, #000); }
.dc-nm { padding: 3px 3px 0; font-size: calc(var(--cw) * .135); font-weight: 900; line-height: 1.08; color: #2a1d10; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.dc-fx { margin-top: auto; padding: 0 3px 4px; font-size: calc(var(--cw) * .118); font-weight: 800; line-height: 1.1; color: color-mix(in srgb, var(--c3) 85%, #000); text-align: center; overflow-wrap: anywhere; }
.dc.spec .dc-fx { color: #4a1a86; }
.dc .gem { width: calc(var(--cw) * .32); height: calc(var(--cw) * .32); font-size: calc(var(--cw) * .17); }
.dc .cbadge { width: calc(var(--cw) * .27); height: calc(var(--cw) * .27); }
.dc-why { position: absolute; z-index: 3; left: 50%; top: 24%; transform: translateX(-50%); width: max-content; max-width: calc(var(--cw) - 8px); padding: 2px 6px; border-radius: 10px; background: rgba(20, 12, 40, .9); color: #ffd0c8; font-size: calc(var(--cw) * .12); line-height: 1.1; font-weight: 900; text-align: center; }
.dc.lit { box-shadow: 0 0 0 2.5px #fff, 0 0 18px rgba(255, 230, 140, .8), 0 8px 16px rgba(0, 0, 0, .5); }
.dc.lit:hover, .dc.pickable:hover { --y: -10px !important; }
.dc.dim { filter: saturate(.45) brightness(.72); }
.dc.chosen { --y: -16px !important; box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(255, 200, 60, .9), 0 10px 18px rgba(0, 0, 0, .5); }
.dc.pickable { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 6px 14px rgba(0, 0, 0, .45); }
.dc.dup::after { content: ''; position: absolute; inset: 0; border-radius: 11px; background: rgba(0, 0, 0, .2); }
.dc .price { position: absolute; z-index: 3; left: 50%; bottom: -8px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 99px; background: var(--red); color: #fff; font-size: .8rem; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.dc .price.no { background: #3a2f55; color: #cfc6e8; }
.dc .price svg { width: 14px; height: 14px; }

/* escenario: pista de llamada y turno actual */
.t-stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; padding: 6px; border-radius: 18px; background: radial-gradient(90% 120% at 50% 0%, rgba(255, 210, 120, .1), rgba(0, 0, 0, .18)); box-shadow: inset 0 0 0 1.5px var(--line2); }
.track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.md { position: relative; aspect-ratio: 1; max-width: 72px; width: 100%; justify-self: center; border-radius: 50%; cursor: pointer; transition: transform .2s, filter .3s, opacity .3s; }
.md-pt { position: absolute; inset: 0; border-radius: 50%; background: center 18% / cover; box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--tint) 70%, #000), 0 3px 8px rgba(0, 0, 0, .5); }
.md-n { position: absolute; top: -4px; left: -4px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #1d1533; box-shadow: 0 0 0 1.5px var(--tint); font-size: .72rem; }
.md-who { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ring); color: #1b1330; font-size: .74rem; box-shadow: 0 0 0 2px #1b1330; }
.md.rev .md-pt { box-shadow: 0 0 0 3px var(--ring), 0 0 12px color-mix(in srgb, var(--ring) 60%, transparent); }
.md.up { opacity: .38; filter: grayscale(1); }
.md.up::after { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 3px; background: #ff6a5a; transform: rotate(-35deg); border-radius: 2px; }
.md.none, .md.past { filter: grayscale(.95) brightness(.6); }
.md.mine .md-pt { box-shadow: 0 0 0 3px var(--gold), 0 0 12px rgba(255, 200, 60, .7); }
.md.cur { transform: scale(1.14); z-index: 2; }
.md.cur .md-pt { animation: curglow 1.2s ease-in-out infinite; }
@keyframes curglow { 50% { box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255, 240, 180, .9); } }
.md-mark { position: absolute; z-index: 3; right: -6px; top: -6px; width: 24px; height: 24px; padding: 2px; border-radius: 50%; background: #1d1533; box-shadow: 0 0 0 1.5px #ff6a5a; }
.md-mark svg { width: 100%; height: 100%; }
.md-mark.stab { animation: stab .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stab { from { transform: translate(14px, -14px) scale(1.8); opacity: 0; } }
.shake { animation: shake .35s; }
.spot { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sp-turn { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; padding: 6px 8px; }
.sp-card { position: relative; flex: none; width: 66px; aspect-ratio: 3 / 4; border-radius: 12px; cursor: pointer; box-shadow: 0 0 0 3px var(--tint), 0 0 20px color-mix(in srgb, var(--tint) 45%, transparent), 0 8px 18px rgba(0, 0, 0, .5); }
.sp-pt { position: absolute; inset: 0; border-radius: 12px; background: center 15% / cover; }
.sp-card .cc-n { top: -7px; left: -7px; }
.sp-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-who { font-size: 1.05rem; }
.sp-turn.me .sp-who { color: var(--gold2); font-family: var(--title); font-size: 1.25rem; }
.sp-ch { font-size: 1rem; }
.sp-tx small { color: var(--muted); font-size: .85rem; }
.deck { position: relative; flex: none; display: grid; place-items: center; width: 50px; height: 64px; }
.deck svg { width: 50px; height: 64px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.deck b { position: absolute; bottom: -6px; right: -6px; padding: 1px 6px; border-radius: 99px; background: #1d1533; box-shadow: 0 0 0 1.5px var(--gold); font-size: .78rem; }
.sp-turn.idle { justify-content: center; }
.cn { white-space: nowrap; }
.sp-sel { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 520px; padding: 4px 8px; }
.sp-deck { position: relative; flex: none; width: 58px; height: 76px; }
.sp-deck .cb, .cbk { position: absolute; width: 50px; height: 68px; border-radius: 8px; background: url(assets/art/dorso_personaje.webp) center / cover, #3a2266; box-shadow: 0 0 0 2px #e8c45a, 0 4px 8px rgba(0, 0, 0, .5); }
.sp-deck .cb:nth-child(2) { left: 4px; top: 3px; } .sp-deck .cb:nth-child(3) { left: 8px; top: 6px; animation: shuffle 1.6s ease-in-out infinite; }
@keyframes shuffle { 50% { transform: translateX(10px) rotate(6deg); } }
.cbk.dist { background: url(assets/art/dorso_distrito.webp) center / cover, #1f2f72; width: 40px; height: 56px; }
.sp-order { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.po { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--pc) 30%, #1d1533); box-shadow: 0 0 0 2px var(--pc); font-size: .75rem; }
.po svg { width: 15px; height: 15px; }
.po.now { animation: pulse 1s infinite; background: var(--pc); color: #1b1330; }
.po.done { opacity: .6; }
.sp-mine { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; }
.ticker { min-height: 22px; text-align: center; font-size: .9rem; color: #efe6ff; line-height: 1.25; }
.ticker b { font-weight: 900; }

/* mano en abanico */
.t-hand { position: relative; flex: none; height: calc(var(--cw) * 1.42 + 18px); }
.t-hand .fan { position: absolute; inset: 14px 0 0; }
.empty-hand { margin: 0; text-align: center; color: var(--dim); padding-top: 30px; }

/* mi barra */
.t-me { position: relative; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 8px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pc, #fff) 50%, transparent); }
.t-me.act { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 16px rgba(255, 200, 60, .35); }
.me-av { display: flex; width: auto; min-width: 44px; }
.me-av .av { width: 38px; height: 38px; }
.me-av .av + .av { margin-left: -10px; }
.me-av .av.rv { box-shadow: 0 0 0 2.5px var(--gold); }
.me-tx { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.me-tx small { font-size: .85rem; color: var(--muted); }
.me-st { display: flex; gap: 10px; }
.big { display: inline-flex; align-items: center; gap: 3px; font-size: 1.15rem; font-weight: 900; }
.big svg { width: 22px; height: 22px; }
.big.d svg { color: #ffd98a; }
.bump { animation: bumpA .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bumpA { 40% { transform: scale(1.35); color: var(--gold2); } }

/* panel de acciones */
.t-act { flex: none; display: flex; flex-direction: column; gap: 6px; }
.t-act .hint { margin: 0; text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.25; }
.t-act .hint b { color: var(--text); }
.t-act .row.res > .btn { flex: 1 1 0; min-width: 0; }
.t-act .row.main { justify-content: space-between; }
.t-act .row.main .sp { flex: 1; }
.t-act .row.main .btn.end { flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.t-act .row.main .chips { justify-content: flex-start; flex: 1; }
.t-act[data-k="select"]:empty { display: none; }

/* escenario grande: elegir personaje y nombrar víctima */
.t-over { position: absolute; z-index: 20; left: var(--ov-l); top: var(--ov-t); width: var(--ov-w); height: var(--ov-h); display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 18px; background: linear-gradient(180deg, rgba(43, 31, 78, .97), rgba(25, 17, 48, .97)); box-shadow: 0 10px 40px rgba(0, 0, 0, .5), inset 0 0 0 2px var(--line); animation: pop .3s cubic-bezier(.2, .9, .3, 1.1) both; overflow: hidden; }
body.sel-open.land .t-hand { visibility: hidden; }
body.sel-open.port .t-hand, body.sel-open.port .t-stage { display: none; }
body.sel-open.port .t-act, body.sel-open.port .t-me { display: none; }
.ov-head { flex: none; display: flex; flex-direction: column; gap: 4px; }
.ov-title { display: flex; align-items: center; gap: 8px; }
.ov-title b { flex: 1; font-family: var(--title); font-size: 1.15rem; color: var(--gold2); line-height: 1.1; }
.ov-title small { color: var(--muted); font-size: .82rem; flex: 1.4; }
.ov-clock { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.ov-clock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ov-clock circle { fill: none; stroke-width: 3.5; } .ov-clock .bg { stroke: rgba(255, 255, 255, .12); }
.ov-clock .fg { stroke: #4fd27a; stroke-dasharray: 106.8; stroke-dashoffset: calc(106.8 * (1 - var(--p, 1))); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.ov-clock.warn .fg { stroke: #ff9d2e; } .ov-clock.hot .fg { stroke: #ff4a3d; }
.ov-clock b { font-size: .95rem; }
.ov-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .8rem; color: var(--muted); }
.ov-info .lbl { color: var(--muted); }
.up-c { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 1px; border-radius: 99px; background: rgba(0, 0, 0, .25); cursor: pointer; text-decoration: line-through; text-decoration-color: #ff6a5a; }
.up-c .av { filter: grayscale(.8); }
.fd { padding: 2px 6px; border-radius: 99px; background: rgba(0, 0, 0, .25); }
.mini-hand { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.mini-city { display: none; align-items: center; gap: 2px; }
body.land .mini-city { display: inline-flex; }
.mini-city > svg { width: 18px; height: 18px; color: #ffd98a; }
body.land.short .mini-city { display: inline-flex; }
.ov-info.only-short { display: none; } body.land .ov-info.only-short { display: flex; }
.rv-city { display: none; grid-column: 1 / -1; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
body.desk .rv-city { display: flex; }
body.desk .rv-city .hm { width: 22px; height: 27px; font-size: .8rem; }
.mini-hand > svg { width: 18px; height: 18px; }
.hm { display: inline-grid; place-items: center; width: 17px; height: 21px; border-radius: 4px; background: var(--ch); color: rgba(0, 0, 0, .7); font-style: normal; font-size: .72rem; font-weight: 900; }
.mh-g { display: inline-flex; align-items: center; gap: 1px; margin-left: 6px; color: var(--gold2); font-size: .9rem; }
.mh-g svg { width: 17px; height: 17px; }
.ov-grid { flex: 1 1 auto; min-height: 0; display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(min-content, 1fr); overflow: auto; overscroll-behavior: contain; padding: 2px; }
.ov-foot { flex: none; display: flex; align-items: center; gap: 8px; }
.ov-foot .btn { flex: 1 1 auto; }
.ov-foot .btn.ghost { flex: 0 0 auto; }
.ov-full { display: none; margin: 0; flex: 1 1 60%; font-size: .85rem; color: #eee6ff; line-height: 1.3; }
/* carta de personaje */
.cc { position: relative; display: grid; grid-template-columns: minmax(54px, 34%) 1fr; gap: 8px; min-height: 0; padding: 5px; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 22%, #2b2050), color-mix(in srgb, var(--tint) 10%, #1a1232)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tint) 55%, transparent), 0 4px 10px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .15s, box-shadow .2s; overflow: hidden; }
.cc:hover:not(.off) { transform: translateY(-2px); box-shadow: inset 0 0 0 2.5px var(--tint), 0 0 18px color-mix(in srgb, var(--tint) 55%, transparent); }
.cc.chosen { box-shadow: inset 0 0 0 3px var(--gold), 0 0 22px rgba(255, 200, 60, .75); transform: scale(1.02); }
.cc.off { cursor: not-allowed; filter: grayscale(.8) brightness(.7); }
.cc-pt { position: relative; border-radius: 10px; background: center 15% / cover; min-height: 54px; }
.cc-n { position: absolute; z-index: 2; top: -3px; left: -3px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #1d1533; box-shadow: 0 0 0 2px var(--tint); font-size: .85rem; font-style: normal; }
.cc-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-nm { font-family: var(--title); font-weight: 900; font-size: .95rem; line-height: 1.08; color: color-mix(in srgb, var(--tint) 45%, #fff); }
.cc-pw { font-size: .8rem; line-height: 1.22; color: #f0e9ff; font-weight: 700; }
.cc-gain { margin-top: auto; font-size: .76rem; line-height: 1.15; color: var(--gold2); }
.cc-st { margin-top: auto; align-self: flex-start; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, .35); font-size: .72rem; color: #ffd0c8; }
.cc:not(.off) .cc-st { color: #c9ffd9; }
.ov-grid.naming { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.port .ov-grid > .cc:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; }
body.port .ov-grid:is(.n5, .n6, .n7, .n8) .cc { grid-template-columns: 44px 1fr; gap: 6px; padding: 4px; }
body.port .ov-grid:is(.n5, .n6, .n7, .n8) .cc-pt { min-height: 44px; }
body.port .ov-grid:is(.n5, .n6, .n7, .n8) .cc-pw { font-size: .76rem; line-height: 1.18; }
body.port .ov-grid:is(.n5, .n6, .n7, .n8) .cc-nm { font-size: .86rem; }
body.port .ov-grid.naming .cc.off .cc-pw { font-size: .7rem; opacity: .85; }
@media (max-height: 720px) { body.port .ov-grid:is(.n6, .n7) .cc-gain { display: none; } body.port .ov-grid:is(.n6, .n7) { gap: 4px; } body.port .ov-grid:is(.n6, .n7) .cc { grid-template-columns: 38px 1fr; } body.port .ov-grid:is(.n6, .n7) .cc-pw { font-size: .73rem; line-height: 1.14; } body.port .ov-grid:is(.n6, .n7) .cc-nm { font-size: .82rem; } body.port .t-over .ov-info { gap: 2px 5px; } body.port .t-over .ov-title b { font-size: .95rem; } body.port .ov-foot .btn.big { min-height: 50px; } }
@media (max-height: 760px) { body.port .ov-grid.naming .cc.off { grid-template-columns: 30px 1fr; align-items: center; } body.port .ov-grid.naming .cc.off .cc-pt { min-height: 30px; height: 30px; border-radius: 50%; } body.port .ov-grid.naming .cc.off .cc-pw { display: none; } body.port .ov-grid.naming .cc.off .cc-n { width: 18px; height: 18px; font-size: .7rem; } }
.ov-grid.naming .cc-st { margin-top: 2px; }
body.port .ov-grid:is(.n2, .n3) { grid-template-columns: minmax(0, 1fr); }
body.port .ov-grid:is(.n2, .n3) .cc { grid-template-columns: minmax(70px, 30%) 1fr; }
body.port .ov-grid:is(.n2, .n3) .cc-pw { font-size: .9rem; } body.port .ov-grid:is(.n2, .n3) .cc-nm { font-size: 1.05rem; }

/* hojas de decisión (vertical: abajo; horizontal: columna derecha) */
.t-sheet { position: absolute; z-index: 25; left: calc(4px + var(--safe-l)); right: calc(4px + var(--safe-r)); bottom: 0; max-height: 40%; display: flex; flex-direction: column; padding: 10px 12px max(calc(10px + var(--safe-b)), calc(var(--cookie-b, 0px) + 8px)); border-radius: 22px 22px 0 0; background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5), inset 0 0 0 2px var(--line); animation: up .25s cubic-bezier(.2, .9, .3, 1.05) both; }
.t-sheet[data-k="log"] { max-height: 52%; }
.sh-head { flex: none; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sh-head h3 { flex: 1; margin: 0; font-family: var(--title); font-size: 1.12rem; color: var(--gold2); line-height: 1.15; }
.sh-body { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.sh-body .sub { margin: 0; font-size: .88rem; }
.sh-foot { flex: none; display: flex; gap: 8px; padding-top: 8px; }
.sh-foot .btn { flex: 1 1 auto; } .sh-foot .btn.ghost { flex: 0 0 auto; }
.cards-row { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 10px 6px 12px; --cw: 82px; }
.cards-row .dc { position: relative; flex: none; transform: none; }
.cards-row.big { --cw: 100px; justify-content: center; }
.cards-row .dc.chosen { transform: translateY(-6px); }
.log { list-style: none; margin: 0; padding: 0; overflow: auto; display: flex; flex-direction: column; gap: 3px; font-size: .9rem; }
.log li { padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .18); }
.log li.round { background: rgba(255, 210, 80, .12); } .log li.bad { box-shadow: inset 3px 0 0 var(--red); } .log li.good { box-shadow: inset 3px 0 0 var(--green); } .log li.reveal { box-shadow: inset 3px 0 0 var(--gold); } .log li.chat { font-style: italic; }
.dn { white-space: nowrap; }
.dn.col-noble { color: #ffd65c; } .dn.col-religioso { color: #8cbcff; } .dn.col-comercial { color: #7fe39a; } .dn.col-militar { color: #ff8a80; } .dn.col-especial { color: #d4a8ff; }
.qchat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.qc { min-height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); font-weight: 800; cursor: pointer; }
.qc.emo { font-size: 1.4rem; }
.qchat .qc.emo { grid-column: span 1; }
.pl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pl { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 4px 10px 4px 6px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 55%, transparent); cursor: pointer; text-align: left; }
.pl:disabled { opacity: .5; cursor: default; }
.pl span { flex: 1; } .pl b { display: inline-flex; align-items: center; gap: 2px; font-size: .85rem; white-space: nowrap; }
.pl b svg { width: 18px; height: 18px; }
.rs-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rs-ch { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; }

/* registro siempre visible en el ordenador (columna derecha, encima de las decisiones) */
.t-dlog { display: none; }
body.desk .t-dlog { display: flex; grid-area: act; align-self: start; max-height: calc(100% - 260px); margin: 0; padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, .14); font-size: .86rem; z-index: 1; }
body.desk .t-act { background: none; padding: 0; }

/* ausencia */
.t-away { position: absolute; z-index: 30; left: 50%; top: calc(50px + var(--safe-t)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 16px; background: rgba(20, 12, 40, .95); box-shadow: var(--shadow), inset 0 0 0 2px var(--gold); white-space: nowrap; }
.t-away span { display: inline-flex; align-items: center; gap: 6px; } .t-away svg { width: 20px; height: 20px; }

/* carta ampliada y vista previa */
.zoom-wrap { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: calc(10px + var(--safe-t)) 12px calc(10px + var(--safe-b)); background: rgba(8, 4, 20, .66); animation: fade .15s both; }
.zoom-box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(330px, 86vw); max-height: 100%; }
.zoom-acts { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.zoom-acts .btn { width: 100%; }
.zoom-acts .btn .cost { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
.zcard { position: relative; width: 100%; border-radius: 18px; padding: 5px; background: linear-gradient(160deg, var(--c1, #e5d6ff), var(--c2, #6b4bb8) 55%, var(--c3, #2a1a52)); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); animation: pop .22s cubic-bezier(.2, .9, .3, 1.2) both; }
.zcard.zc { --c1: color-mix(in srgb, var(--tint) 60%, #fff); --c2: color-mix(in srgb, var(--tint) 70%, #2a1d50); --c3: #1a1232; }
.z-art { aspect-ratio: 9 / 8; border-radius: 13px 13px 0 0; background: center / cover; }
.z-art.pt { aspect-ratio: 4 / 4; background-position: center 18%; position: relative; }
.z-body { padding: 10px 14px 14px; border-radius: 0 0 13px 13px; background: linear-gradient(180deg, #fff8e8, #f1e2c4); color: #2a1d10; }
.zc .z-body { background: linear-gradient(180deg, #2c2152, #1d1533); color: var(--text); }
.z-body h3 { margin: 0 0 4px; font-family: var(--title); font-size: 1.3rem; line-height: 1.1; }
.zc .z-body h3 { color: color-mix(in srgb, var(--tint) 40%, #fff); }
.z-kind { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .88rem; color: #5a4630; }
.z-kind .cbadge { position: static; width: 20px; height: 20px; padding: 3px; }
.z-text { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 700; }
.z-text.dim { color: #7a6a52; }
.z-motto { margin: 0 0 6px; font-style: italic; color: var(--muted); font-size: .9rem; font-weight: 600; }
.zcard .gem { width: 40px; height: 40px; font-size: 1.3rem; top: -8px; left: -8px; }
.zcard > .cbadge { width: 32px; height: 32px; top: 10px; right: 10px; }
.zcard .cc-n { width: 34px; height: 34px; font-size: 1.1rem; top: 6px; left: 6px; }
.preview { position: absolute; z-index: 75; width: 250px; pointer-events: none; animation: fade .12s both; }
.preview .zcard { animation: none; }
.preview .z-text { font-size: .92rem; }

/* efectos */
#fx { position: absolute; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.flyer { position: absolute; left: 0; top: 0; will-change: transform; }
.flyer .dc { position: relative; --cw: 84px; transform: none; }
.coinfx svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.crownfx svg { width: 40px; height: 40px; color: var(--gold); filter: drop-shadow(0 2px 0 #7a4a08) drop-shadow(0 0 10px rgba(255, 200, 60, .8)); }
.deckfly { width: 60px; height: 76px; } .deckfly .cbk:nth-child(2) { left: 4px; top: 3px; } .deckfly .cbk:nth-child(3) { left: 8px; top: 6px; }
.flyer .cbk { position: absolute; } .flyer .cbk.dist { position: relative; display: inline-block; margin-right: -24px; }
.boulder { display: block; width: 26px; height: 26px; border-radius: 45% 55% 50% 50%; background: radial-gradient(circle at 35% 30%, #b8aca0, #6b5f55 60%, #3e352e); box-shadow: 0 3px 6px rgba(0, 0, 0, .5); }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #fff, #ffd34d 50%, transparent 70%); }
.dust { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 185, 170, .9), rgba(140, 125, 110, 0) 70%); }
.banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 3; display: flex; align-items: center; gap: 12px; max-width: min(92vw, 520px); padding: 10px 18px 10px 10px; border-radius: 18px; background: linear-gradient(180deg, rgba(48, 34, 90, .97), rgba(28, 19, 54, .97)); box-shadow: 0 12px 40px rgba(0, 0, 0, .6), inset 0 0 0 2px var(--line); font-size: 1.1rem; line-height: 1.25; animation: bannerIn .35s cubic-bezier(.2, .9, .3, 1.3) both; }
.banner.out { animation: fadeout .3s both; }
.banner.bad { box-shadow: 0 12px 40px rgba(0, 0, 0, .6), inset 0 0 0 2.5px var(--red); }
.banner.me, .banner.gold { box-shadow: 0 12px 40px rgba(0, 0, 0, .6), inset 0 0 0 2.5px var(--gold); }
.banner.round { padding: 10px 26px; font-family: var(--title); font-size: 1.5rem; color: var(--gold2); }
.banner small { display: block; font-size: .85rem; color: #ffb0a8; }
.bn-art { flex: none; width: 54px; height: 54px; border-radius: 50%; background: center 18% / cover; box-shadow: 0 0 0 2.5px var(--gold); }
.bn-tx { min-width: 0; }
@keyframes bannerIn { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
.conf { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 3s linear both; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

/* anuncio de prueba (ads.js) */
.dev-ad { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(0, 0, 0, .85); }
.dev-ad-box { width: min(320px, 86vw); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; border-radius: 20px; background: #222; }
.dev-ad-tag { font-size: .8rem; color: #aaa; } .dev-ad-art { width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #ff6a5a, #4fb3ff); font-size: 2rem; }
.dev-ad-count { font-size: 1.1rem; }

/* ================= HORIZONTAL Y ORDENADOR ================= */
body.land #table { display: grid; --lw: 182px; --rw: 236px; grid-template-columns: var(--lw) minmax(0, 1fr) var(--rw); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "bar stage me" "riv city act" "riv hand act"; gap: 6px 8px; padding: calc(6px + var(--safe-t)) calc(8px + var(--safe-r)) calc(6px + max(var(--safe-b), var(--cookie-b, 0px))) calc(8px + var(--safe-l)); }
body.land .t-bar { grid-area: bar; flex-wrap: wrap; align-content: flex-start; }
body.land .t-bar .t-info { order: 5; flex-basis: 100%; justify-content: flex-start; }
body.land.short .t-bar { flex-wrap: nowrap; } body.land.short .t-bar .t-info { order: 0; flex-basis: auto; } body.land.short .t-bar .t-deck { display: none; }
body.land.short .t-riv { gap: 4px; } body.land.short .rv { grid-template-columns: 36px minmax(0, 1fr); row-gap: 0; padding: 3px 6px; }
body.land.short .rv .st { font-size: .84rem; } body.land.short .rv .st svg { width: 15px; height: 15px; } body.land.short .rv-nm { font-size: .82rem; }
body.land.short .rv-av { width: 36px; height: 36px; } body.land.short .rv-av .av { width: 30px; height: 30px; }
body.land.short .dot { width: 11px; height: 11px; } body.land.short .dot svg { width: 7px; height: 7px; }
body.land.short .rv-st { gap: 4px; }
body.land .t-riv { grid-area: riv; display: flex; flex-direction: column; gap: 5px; overflow: auto; }
body.land .t-stage { grid-area: stage; align-self: start; }
body.land .t-hand { grid-area: hand; }
body.land .t-me { grid-area: me; align-self: start; flex-wrap: wrap; }
body.land .t-act { grid-area: act; overflow: auto; justify-content: flex-end; padding: 6px; border-radius: 16px; background: rgba(0, 0, 0, .16); }
body.land .t-act .row.res { flex-direction: column; align-items: stretch; }
body.land .t-act .row.main { flex-direction: column; align-items: stretch; }
body.land .t-act .row.main .chips { justify-content: center; }
body.land .t-act .row.main .btn.end { width: 100%; }
body.land .me-st { gap: 8px; }
body.land .me-tx { flex: 1 1 80px; }
body.land .t-sheet { left: var(--sh-l); top: var(--sh-t); width: var(--sh-w); height: var(--sh-h); bottom: auto; right: auto; max-height: none; border-radius: 18px; padding: 10px; }
body.land .t-sheet[data-k="log"], body.land .t-sheet[data-k="chat"], body.land .t-sheet[data-k="rival"] { left: auto; right: calc(8px + var(--safe-r)); top: calc(6px + var(--safe-t)); width: min(420px, 60vw); height: auto; max-height: calc(100% - 12px); }
body.land .t-sheet .cards-row { flex-wrap: wrap; justify-content: center; --cw: 74px; }
body.land .t-sheet .pl-list { grid-template-columns: 1fr; }
body.land .ov-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.land .ov-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.land .ov-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.desk .ov-grid.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } body.desk .ov-grid.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.land.short .t-over { background: linear-gradient(180deg, #2b1f4e, #191130); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "title foot" "info info" "grid grid"; padding: 6px; gap: 4px 8px; }
body.land.short .ov-head { display: contents; } body.land.short .ov-title { grid-area: title; } body.land.short .ov-info { grid-area: info; } body.land.short .ov-grid { grid-area: grid; } body.land.short .ov-foot { grid-area: foot; }
body.land.short .ov-title small { display: none; } body.land.short .ov-clock { width: 30px; height: 30px; } body.land.short .ov-foot .btn { min-height: 44px; }
body.land.short .ov-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
body.land.short .ov-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.land.short .ov-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.land.short .cc { grid-template-columns: 34px 1fr; grid-template-rows: none; gap: 5px; padding: 4px; }
body.land.short .cc-pt { min-height: 34px; height: auto; }
body.land.short .cc-gain { display: none; } body.land.short .cc-pw { font-size: .7rem; line-height: 1.12; } body.land.short .cc-nm { font-size: .8rem; } body.land.short .cc-st { font-size: .66rem; padding: 1px 5px; }
body.land.short .ov-info .lbl { display: none; } body.land.short .ov-title b { font-size: .92rem; }
body.land.short .ov-grid.naming .cc.off { grid-template-columns: 26px 1fr; } body.land.short .ov-grid.naming .cc.off .cc-pw { display: none; }
body.land.short .ov-full { display: none; }
body.land.short .ov-foot .btn.big { flex: 0 0 auto; min-height: 44px; font-size: .95rem; padding: 6px 14px; }
body.land.short .ov-head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
body.land.short .ov-title { flex: 1 1 auto; } body.land.short .ov-info { flex: 1 1 auto; font-size: .72rem; }
body.land.short .ov-clock { width: 34px; height: 34px; }
body.land.short .cc { padding: 4px; gap: 3px; } body.land.short .cc-pt { min-height: 34px; }


body.land .cc { grid-template-columns: 1fr; grid-template-rows: minmax(40px, 1fr) auto; }
body.land .cc-pt { min-height: 40px; }
body.land .ov-full { display: block; }
body.land .track { max-width: 640px; margin: 0 auto; width: 100%; }
body.land.short .tb { --cw: 70px; }
body.land.short #table { --lw: 168px; --rw: 222px; }
body.land.short .t-stage { padding: 4px; gap: 3px; }
body.land.short .sp-card { width: 44px; } body.land.short .deck { width: 40px; height: 52px; } body.land.short .deck svg { width: 40px; height: 52px; }
body.land.short .t-act .hint { font-size: .8rem; }
body.land.short .t-act .btn { min-height: 46px; padding: 6px 10px; font-size: .95rem; }
body.land.short .rv { padding: 3px 5px; }
body.land.short .rv-av { width: 38px; height: 38px; } body.land.short .rv-av .av { width: 31px; height: 31px; }
body.land.short .t-me { min-height: 44px; padding: 3px 6px; }
body.land.short .me-tx small { display: none; }
body.land.short .ov-title b { font-size: 1rem; }
body.land.short .cc-pw { font-size: .74rem; } body.land.short .cc-nm { font-size: .85rem; }
body.land.short .ov-full { font-size: .78rem; }
body.desk .tb { --cw: 132px; }
body.desk #table { --lw: 270px; --rw: 340px; gap: 10px 14px; padding: 12px 16px; }
body.desk .rv { padding: 8px 10px; } body.desk .rv-av { width: 56px; height: 56px; } body.desk .rv-av .av { width: 48px; height: 48px; }
body.desk .rv-nm { font-size: 1rem; }
body.desk .sp-card { width: 150px; } body.desk .sp-who { font-size: 1.5rem; } body.desk .sp-turn.me .sp-who { font-size: 1.7rem; } body.desk .sp-ch { font-size: 1.3rem; } body.desk .sp-tx small { font-size: 1rem; } body.desk .sp-turn { max-width: 620px; gap: 22px; }
body.desk .md { max-width: 92px; } body.desk .track { max-width: 820px; } body.desk .ticker { font-size: 1.05rem; } body.desk .deck { width: 70px; height: 90px; } body.desk .deck svg { width: 70px; height: 90px; }
body.desk .sp-deck { width: 80px; height: 104px; } body.desk .sp-deck .cb { width: 70px; height: 96px; } body.desk .sp-sel { max-width: 640px; } body.desk .sp-tx b { font-size: 1.2rem; } body.desk .po { width: 34px; height: 34px; font-size: .95rem; }
body.desk .track { max-width: 720px; gap: 8px; }
body.desk .md-n { width: 24px; height: 24px; font-size: .85rem; }
body.desk .t-act .btn { min-height: 54px; }
body.desk .cc-pw { font-size: .9rem; } body.desk .cc-nm { font-size: 1.08rem; } body.desk .cc-gain { font-size: .85rem; }
body.desk .ov-full { font-size: .95rem; }
body.desk .t-sheet .cards-row { --cw: 96px; }
body.desk .big { font-size: 1.3rem; } body.desk .big svg { width: 26px; height: 26px; }
body.desk .zoom-box { width: 360px; }

/* vertical: tamaños de las cartas según el ancho y el alto */
body.port .tb { --cw: min(84px, calc((100vw - 28px) / 4.4)); }
@media (max-height: 700px) { body.port .tb { --cw: 74px; } body.port .t-me { min-height: 46px; } }
@media (max-height: 600px) { body.port .tb { --cw: 66px; } }
@media (max-height: 720px) { body.port .cc { grid-template-columns: 46px 1fr; gap: 6px; padding: 4px; } body.port .cc-pw { font-size: .76rem; line-height: 1.18; } body.port .cc-nm { font-size: .88rem; } body.port .cc-gain { font-size: .72rem; } body.port .ov-title b { font-size: 1rem; } body.port .ov-info { font-size: .74rem; } body.port .t-over { padding: 6px; gap: 4px; } }
body.port .t-act .btn { min-height: 50px; }
body.port .t-act .hint { font-size: .85rem; }
body.port .t-stage { min-height: 96px; }
@media (min-height: 780px) { body.port .sp-card { width: 82px; } body.port .t-stage { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* ajustes en horizontal: dos columnas para que quepa todo sin desplazar */
body.land .settings-p .card { width: min(720px, 100%); padding: 12px 16px; }
body.land .settings-p .card h2 { margin-bottom: 6px; font-size: 1.3rem; }
body.land .settings { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; margin-bottom: 8px; }
body.land .settings .sub, body.land .settings .row.links { grid-column: 1 / -1; margin: 0; }
body.land .setting { min-height: 46px; }
body.land .menu-p .card .col { gap: 8px; }
body.land.short .menu-p .card { padding: 12px 16px; } body.land.short .menu-p .card h2 { margin-bottom: 6px; }
body.land.short .menu-p .btn.big { min-height: 48px; } body.land.short .menu-p .col { display: grid; grid-template-columns: 1fr 1fr; }
body.land.short .menu-p .col .btn.big { grid-column: 1 / -1; }

/* opciones contra bots en horizontal: dos columnas */
body.land .opts-sheet { width: min(720px, 100%); }
body.land .opts-sheet .opts { grid-template-columns: 1fr 1fr; gap: 4px 18px; }
body.land.short .opts-sheet { padding-top: 8px; } body.land.short .opts-sheet header { margin-bottom: 2px; } body.land.short .opts label { margin: 2px 0; }
body.land.short .opts .nick { height: 42px; } body.land.short .seg button { min-height: 40px; }
/* carta ampliada en horizontal: la carta a la izquierda y los botones a la derecha */
body.land .zoom-box { flex-direction: row; align-items: center; width: min(660px, 94vw); }
body.land .zoom-box .zcard { width: min(320px, 46vw); flex: none; }
body.land .zoom-acts { flex: 1; }
body.land.short .zoom-box .zcard { width: min(300px, 44vw); }
body.land.short .zcard .z-art { aspect-ratio: 16 / 9; }
body.land.short .zcard .z-art.pt { aspect-ratio: 16 / 10; }
body.land.short .z-body { padding: 8px 12px 10px; } body.land.short .z-body h3 { font-size: 1.1rem; } body.land.short .z-text { font-size: .9rem; }
/* horizontal bajo (móvil): más alto para el escenario */
body.land.short .tb { --cw: 62px; }
body.land.short .t-hand { height: calc(var(--cw) * 1.42 + 12px); } body.land.short .t-hand .fan { top: 8px; }
body.land.short .ticker { display: none; }
body.land.short .t-me { flex-wrap: nowrap; min-height: 44px; gap: 6px; } body.land.short .me-tx { display: none; } body.land.short .me-st { gap: 7px; flex-wrap: wrap; justify-content: flex-end; flex: 1; }
body.land.short .big { font-size: 1rem; } body.land.short .big svg { width: 19px; height: 19px; }
body.land.short .t-bar { gap: 4px; } body.land.short .t-round { font-size: .82rem; }
body.land.short .md { max-width: 38px; } body.land.short .md-n { width: 16px; height: 16px; font-size: .62rem; } body.land.short .md-who { width: 16px; height: 16px; font-size: .62rem; } body.land.short .md-mark { width: 19px; height: 19px; }
body.land.short .spot { min-height: 46px; } body.land.short .sp-turn { padding: 0 4px; gap: 8px; } body.land.short .sp-card { width: 36px; border-radius: 8px; } body.land.short .sp-pt { border-radius: 8px; }
body.land.short .sp-who { font-size: .95rem; } body.land.short .sp-turn.me .sp-who { font-size: 1rem; } body.land.short .sp-ch { font-size: .88rem; } body.land.short .sp-tx small { font-size: .74rem; }
body.land.short .sp-deck { width: 44px; height: 56px; } body.land.short .sp-deck .cb { width: 38px; height: 52px; } body.land.short .sp-sel { gap: 8px; } body.land.short .sp-tx b { font-size: .9rem; } body.land.short .po { width: 22px; height: 22px; font-size: .68rem; }
body.land.short .t-sheet { padding: 8px; } body.land.short .t-sheet .sh-head h3 { font-size: .95rem; } body.land.short .t-sheet[data-k="keep"] .sub { display: none; }
body.land.short .t-sheet .cards-row, body.land.short .t-sheet .cards-row.big { --cw: 60px; flex-wrap: nowrap; padding: 8px 2px; gap: 8px; }
body.land.short .t-sheet .sh-foot .btn { min-height: 44px; font-size: .9rem; padding: 6px 10px; }
/* final en horizontal: clasificación a la izquierda y botones a la derecha */
body.land .end-p .card { width: min(820px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 210px; grid-template-areas: "h h" "s col" "f col" "f l" "t l"; column-gap: 16px; align-items: start; }
body.land .end-p .card h2 { grid-area: h; margin-bottom: 4px; } body.land .end-p .card > .sub { grid-area: s; margin: 0 0 4px; } body.land .end-p .final { grid-area: f; margin: 0; }
body.land .end-p .legend { grid-area: l; justify-content: flex-start; margin: 8px 0 0; } body.land .end-p .tie { grid-area: t; } body.land .end-p .card > .col { grid-area: col; align-self: center; }
body.land .end-p .card > .col .row { flex-direction: column; align-items: stretch; }
body.land.short .end-p .card { padding: 8px 14px; } body.land.short .final { gap: 4px; } body.land.short .final li { min-height: 33px; padding: 2px 10px; } body.land.short .final .bk { font-size: .74rem; padding: 1px 5px; } body.land.short .final .tot { font-size: 1.2rem; } body.land.short .end-p .card h2 { font-size: 1.25rem; }

/* ================= CIUDAD CENTRAL (lo principal de la mesa) ================= */
.t-stage { flex: none; justify-content: flex-start; gap: 6px; padding: 6px 6px 4px; }
.spot { flex: none; min-height: 0; }
.sp-turn { padding: 0 2px; gap: 10px; max-width: none; }
.sp-card { width: 46px; border-radius: 9px; } .sp-pt { border-radius: 9px; }
.sp-who { font-size: .98rem; } .sp-turn.me .sp-who { font-size: 1.08rem; } .sp-ch { font-size: .9rem; }
.sp-last { color: var(--muted); font-size: .84rem; line-height: 1.2; }
.sp-last b { color: var(--text); }
.deck { width: 40px; height: 52px; } .deck svg { width: 40px; height: 52px; }
.sp-sel { max-width: none; gap: 10px; } .sp-deck { width: 46px; height: 60px; } .sp-deck .cb { width: 40px; height: 54px; }
.t-city { position: relative; flex: 1 1 auto; min-height: 0; container: city / size; padding: 6px; border-radius: 18px; background: radial-gradient(90% 120% at 50% 100%, rgba(255, 210, 120, .12), rgba(0, 0, 0, .16)); box-shadow: inset 0 0 0 1.5px var(--line2); }
.t-city .slots { height: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 6px; }
.ct { position: relative; min-height: 0; border-radius: 12px; padding: 3px; background: linear-gradient(160deg, var(--c1), var(--c2) 55%, var(--c3)); box-shadow: 0 4px 10px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .35); cursor: pointer; container-type: size; overflow: visible; }
.ct-art { position: absolute; inset: 3px; border-radius: 9px; background: center 40% / cover; }
.ct-tx { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 14px 6px 5px; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, transparent, rgba(16, 9, 30, .82) 38%, rgba(16, 9, 30, .94)); display: flex; flex-direction: column; gap: 1px; text-align: center; }
.ct-nm { font-size: clamp(10px, 11.5cqw, 15px); font-weight: 900; line-height: 1.08; color: #fff; overflow-wrap: anywhere; hyphens: auto; }
.ct-fx { font-size: clamp(9px, 9.5cqw, 13px); font-weight: 800; line-height: 1.1; color: #e2c9ff; overflow-wrap: anywhere; }
.ct .gem { top: -5px; left: -5px; width: clamp(22px, 24cqw, 32px); height: clamp(22px, 24cqw, 32px); font-size: clamp(.8rem, 13cqw, 1.05rem); }
.ct .cbadge { top: 5px; right: 5px; bottom: auto; width: clamp(18px, 20cqw, 26px); height: clamp(18px, 20cqw, 26px); padding: 3px; }
.ct.empty { background: none; box-shadow: none; border: 2px dashed rgba(255, 255, 255, .16); cursor: default; container-type: normal; }
.ct-act { position: absolute; top: -6px; right: -6px; z-index: 3; width: 22px; height: 22px; border-radius: 50%; background: var(--green); padding: 3px; color: #0b2c1a; animation: pulse 1.2s infinite; }
.ct-act svg { width: 100%; height: 100%; }
/* poca altura para la ciudad: una sola fila de 7, solo el dibujo, el coste y el color (el nombre, al tocar) */
@container city (max-height: 132px) {
  .t-city .slots { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 100%; gap: 5px; }
  .t-city .slots[data-n="8"] { grid-template-columns: repeat(8, minmax(0, 1fr)); } .t-city .slots[data-n="9"] { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .ct-tx { display: none; }
}
@container (max-width: 74px) { .ct-fx { display: none; } }
body.sel-open.port .t-city { flex: 0 0 56px; padding: 4px; }
/* vertical */
body.port .t-stage { padding: 5px 5px 3px; }
@media (min-height: 780px) { body.port .sp-card { width: 54px; } body.port .t-stage { gap: 8px; } }
/* horizontal: franja del turno arriba en el centro, ciudad grande en medio, mano abajo */
body.land .t-stage { padding: 4px 6px; gap: 4px; }
body.land .t-city { grid-area: city; }
body.land .spot { justify-content: flex-start; }
body.land.short .sp-card { width: 34px; } body.land.short .t-stage { gap: 3px; padding: 3px 5px; }
body.land.short .t-city { padding: 4px; } body.land.short .t-city .slots { gap: 4px; }
/* ordenador */
body.desk .t-stage { padding: 8px 10px; gap: 8px; }
body.desk .md { max-width: 64px; } body.desk .track { max-width: 640px; gap: 10px; }
body.desk .sp-card { width: 64px; } body.desk .sp-who { font-size: 1.2rem; } body.desk .sp-turn.me .sp-who { font-size: 1.3rem; } body.desk .sp-ch { font-size: 1.05rem; } body.desk .sp-last { font-size: .98rem; }
body.desk .deck { width: 48px; height: 62px; } body.desk .deck svg { width: 48px; height: 62px; }
body.desk .t-city { padding: 10px; } body.desk .t-city .slots { gap: 10px; }
body.desk .ov-grid { gap: 5px; }
body.desk .ct { border-radius: 14px; }
/* cartel del bot que juega por ti (en el panel de acciones) */
.away { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px; border-radius: 14px; background: rgba(20, 12, 40, .7); box-shadow: inset 0 0 0 2px var(--gold); }
.away span { display: inline-flex; align-items: center; gap: 6px; } .away svg { width: 22px; height: 22px; }
/* vista previa de la ciudad de un rival */
.preview.wide { width: auto; max-width: min(560px, 70vw); }
.rv-prev { padding: 10px 12px; border-radius: 16px; background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: 0 12px 30px rgba(0, 0, 0, .55), inset 0 0 0 2px var(--line); }
.rv-prev > b { font-family: var(--title); color: var(--gold2); }
.rv-prev .cards-row { --cw: 78px; flex-wrap: wrap; overflow: visible; padding: 10px 4px 4px; }

/* vertical: la consigna ya está en la franja del turno; el panel solo lleva los botones */
body.port .t-act[data-k="resources"] .hint, body.port .t-act[data-k="main"] .hint { display: none; }
body.port .t-act .row.main { align-items: flex-end; }
body.port .t-act .row.main .chips { gap: 5px; }
body.port .t-act .chip { padding: 4px 10px 4px 6px; font-size: .86rem; }
body.port .t-act .btn.end { padding: 8px 12px; }

.sp-pow { flex: none; display: flex; align-items: center; }
.sp-pow .chip { max-width: 150px; }
.t-gift:empty { display: none; }
.t-gift .chip { min-height: 40px; gap: 3px; padding: 2px 8px 2px 6px; font-size: .95rem; }
.t-gift .chip svg { width: 20px; height: 20px; }
body.land .t-gift { position: absolute; z-index: 6; left: 50%; top: calc(4px + var(--safe-t)); transform: translateX(-50%); }
body.land.short .t-gift { top: auto; bottom: calc(4px + max(var(--safe-b), var(--cookie-b, 0px))); left: calc(8px + var(--safe-l)); transform: none; }
@media (max-height: 700px) { body.port .tb { --cw: 70px; } body.port .sp-card { width: 40px; } body.port .t-stage { gap: 4px; padding: 4px; } }
.t-bar:has(.t-last:not(.hidden)) .t-deck { display: none; }
.sp-pow .chip span { white-space: normal; line-height: 1.1; }
.sp-pow .chip.off { font-size: .78rem; padding: 4px 10px 4px 6px; }

/* 2 jugadores: paso de descartar boca abajo */
.t-over.disc { box-shadow: 0 10px 40px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 106, 90, .55); }
.t-over.disc .ov-title b { color: #ffb3aa; }
.ov-disc { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; color: #ffd0c8; line-height: 1.2; }
.ov-disc svg { width: 18px; height: 18px; flex: none; }
.flyer > .cbk { position: relative; display: block; }

.me-role { line-height: 1.15; }
.me-role .cn { white-space: nowrap; }
.me-tx.two b { font-size: .86rem; } .me-tx.two .me-role { font-size: .76rem; }
/* sala de espera compacta: plazas en dos columnas */
.lobby .seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lobby .seat { min-height: 44px; padding: 3px 6px; gap: 6px; }
.lobby .seat .btn.small { min-height: 38px; padding: 4px 8px; font-size: .82rem; }
.lobby .seat .btn.small svg { width: 18px; height: 18px; }
.lobby .card { padding: 14px; }
.lobby .code-big b { width: 40px; height: 48px; font-size: 1.55rem; }
body.land .lobby .card.lb { width: min(800px, 100%); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 18px; align-items: start; }
.lb-a, .lb-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lb-b > .btn { width: 100%; }
.lb .seats { margin: 2px 0; }
.seat .st-tx { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.seat .tags { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 2px; }
.seat .tags em { padding: 1px 6px; font-size: .68rem; }
.seat .tags em svg { width: 12px; height: 12px; }
.seat small.you { color: var(--gold2); font-size: .74rem; }
.seat .nm { flex: none; }
body.land.short .lobby .card.lb { padding: 10px 14px; } body.land.short .lb .code-big { margin: 0 0 4px; } body.land.short .lb .sub.small { margin: 0; } body.land.short .lb .seg button { min-height: 38px; }
body.land.short .lb .btn.big { min-height: 48px; }
/* mano en horizontal: espacio para el abanico */
body.land .t-hand { height: calc(var(--cw) * 1.42 + 26px); } body.land .t-hand .fan { top: 10px; }
/* horizontal bajo con 4-5 rivales: fichas más bajas */
body.land.short .t-bar { min-height: 44px; }
body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .rv { padding: 2px 6px; row-gap: 0; grid-template-columns: 32px minmax(0, 1fr); }
body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .rv-av { width: 32px; height: 32px; } body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .rv-av .av { width: 27px; height: 27px; }
body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .rv-nm { line-height: 1.05; font-size: .78rem; } body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .st { font-size: .8rem; } body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .st svg { width: 14px; height: 14px; }
/* hojas de destruir y de ciudad rival en horizontal: cartas en varias filas */
body.land .t-sheet[data-k="destroy"] .cards-row, body.land .t-sheet[data-k="rival"] .cards-row { flex-wrap: wrap; justify-content: center; overflow: visible; }
body.land.short .t-sheet[data-k="destroy"] .cards-row { --cw: 54px; gap: 6px 8px; }

.lb .opts.compact { display: flex; flex-direction: column; gap: 4px; }
body.land.short .lb .lb-a > .sub.small { display: none; }
body.land.short .lobby .card.lb { position: relative; }
body.land.short .lb-b .b-leave { position: absolute; left: 14px; bottom: 10px; width: min(300px, calc(50% - 30px)); }
/* horizontal bajo con 4-5 rivales: ficha en dos filas (nombre; oro, cartas y distritos) */
body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .rv { grid-template-columns: 30px auto minmax(0, 1fr); grid-template-areas: "av nm nm" "av st ds"; column-gap: 5px; padding: 2px 6px; }
body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .rv-av { width: 30px; height: 30px; } body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .rv-av .av { width: 25px; height: 25px; }
body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .st.s, body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .dots { display: none; }
body.land.short .t-riv:is([data-n="4"], [data-n="5"]) .rv-st { gap: 4px; flex-wrap: nowrap; }
/* pantallas estrechas (360 px) */
@media (max-width: 375px) {
  .cc-nm { font-size: .8rem; overflow-wrap: anywhere; }
  .t-gift .chip b, .t-gift .chip svg + b + svg { display: none; }
  .t-last { font-size: .72rem; padding: 3px 8px; }
}
/* mano vacía: una línea fina y el espacio para la ciudad */
.t-hand:has(.empty-hand) { height: 34px !important; }
.t-hand .empty-hand { padding-top: 6px; font-size: .88rem; }
/* hoja de quedarse en vertical bajo: cartas que caben enteras en el 40 % */
@media (max-height: 720px) { body.port .t-sheet .cards-row.big { --cw: 78px; padding: 8px 6px 6px; } body.port .t-sheet[data-k="keep"] .sub { display: none; } body.port .t-sheet .sh-foot .btn.big { min-height: 50px; } }
/* carta ampliada: botones bien visibles sobre la mesa */
.zoom-acts .btn.ghost { --b1: #2c2152; --b2: #221840; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22), 0 4px 0 rgba(0, 0, 0, .35); }
@media (max-height: 720px) { body.port .t-sheet:is([data-k="destroy"], [data-k="rival"], [data-k="reclaim"]) .cards-row { --cw: 66px; padding: 8px 4px 10px; } body.port .t-sheet .sh-body .sub { font-size: .8rem; } }
/* final en vertical: nombre entero y el desglose en una segunda fila */
body.port .final li { display: grid; grid-template-columns: 30px 16px minmax(0, 1fr) auto; grid-template-areas: "pos dot nm tot" "brk brk brk tot"; align-items: center; row-gap: 3px; }
body.port .final .pos { grid-area: pos; } body.port .final .sdot { grid-area: dot; } body.port .final .nm { grid-area: nm; } body.port .final .tot { grid-area: tot; }
body.port .final .brk { grid-area: brk; justify-content: flex-start; flex-wrap: nowrap; padding-left: 4px; }
/* horizontal: los botones del panel de la columna derecha, uno debajo de otro */
body.land .t-act .row:not(.res):not(.main) { flex-direction: column-reverse; align-items: stretch; }
body.land .t-act .row:not(.res):not(.main) .btn { width: 100%; }

/* fichas.py: ficha del juego bajo la pantalla de juego (visible al desplazarse; al jugar la página vuelve arriba y no se mueve) */
html, body { height: auto !important; min-height: 100%; overflow-x: hidden !important; overflow-y: auto !important; }
html:has(body.playing), body.playing { overflow: hidden !important; }
body:not(.playing) { touch-action: pan-y; }
body:not(.playing) #wrap, body:not(.playing) #app, body:not(.playing) #app canvas, body:not(.playing) #app .screen { touch-action: pan-y !important; }   /* fuera de la partida se puede bajar a la ficha deslizando sobre el juego */
#wrap, #app { position: relative !important; inset: auto !important; width: 100% !important; height: 100vh !important; height: 100dvh !important; }
.game-info { max-width: 860px; margin: 0 auto; padding: 26px 18px 40px; font-family: Fredoka, ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif; color: #f4f0ff; line-height: 1.55; user-select: text; -webkit-user-select: text; }
.game-info .crumbs { font-size: .92rem; color: #b9b0d8; margin-bottom: 10px; } .game-info .crumbs a { color: #b9b0d8; } .game-info .crumbs span { margin: 0 6px; opacity: .6; }
.game-info .howto-src { display: block; } .game-info .howto { background: none; color: inherit; padding: 0; border-radius: 0; box-shadow: none; border: 0; }
.game-info h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.15; margin: 0 0 10px; color: #fff; }
.game-info h2 { font-size: 1.3rem; margin: 26px 0 8px; color: #ffd23f; }
.game-info p, .game-info li { color: #e8e2fa; } .game-info ul { padding-left: 1.2em; } .game-info a { color: #ffd23f; }
.game-info details { margin: 8px 0; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(190,160,255,.22); }
.game-info summary { cursor: pointer; font-weight: 600; } .game-info details p { margin: 6px 0 0; }
.game-info .more { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.game-info .more a { display: block; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1.5px rgba(190,160,255,.22); text-decoration: none; color: #fff; }
.game-info .more img { display: block; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; } .game-info .more b { display: block; padding: 8px 10px 0; } .game-info .more span { display: block; padding: 0 10px 10px; font-size: .88rem; color: #c9c0e6; }
.game-info .foot { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(190,160,255,.22); font-size: .92rem; } .game-info .foot a { color: #b9b0d8; }
.howto .t1 { font-size: 1.25rem; font-weight: 700; margin: .67em 0; }
