/* Cartel de fiestas de pueblo: papel amarillo, tinta negra y bermellón a dos tintas, letra de madera condensada
   y una cursiva de imprenta para las palabras de enlace («de», «con»). Bandas a todo lo ancho separadas por
   filetes dobles, como un cartel; la mesa de juego va invertida, en negro. Tema único y claro a propósito. */
:root {
  --paper: #ebdcb2;
  --paper-deep: #c9a24a;
  --ink: #17120c;
  --ink-2: #4a3d26;
  --red: #c8211b;
  --red-bright: #ef4a3c;
  --naipe: #fbf5e6;
  --blue: #1f4fa0;
  --green: #3f8a3a;
  --night-line: #4a3f2c;
  --night-text: #e9d9a8;

  --display: "Big Shoulders Display", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: "Archivo", "Helvetica Neue", "Arial", sans-serif;
  --script: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;

  --rule: 3px solid var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.05rem/1.55 var(--body);
  /* Grano de papel impreso */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] { display: none !important; }

.wrap {
  max-width: 66rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p, dl, dd { margin: 0; }
.tabular { font-variant-numeric: tabular-nums; }
a, button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
em { font-family: var(--script); font-style: italic; font-weight: 600; text-transform: none; letter-spacing: 0; }

/* Botones: tacos de imprenta, sin redondeos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 2px;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease, transform .12s ease;
}
.btn:active { transform: translateY(2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--red); border-color: var(--red); color: var(--naipe); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-red { background: var(--red); border-color: var(--red); color: var(--naipe); }
.btn-red:hover { background: var(--ink); border-color: var(--ink); }
.btn-paper { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn-paper:hover { background: var(--paper); color: var(--ink); }

/* Portada: el cartel, con su marco de filete doble */
.poster { padding-block: clamp(1rem, 4vw, 2.5rem); }
.poster-frame { position: relative; border: var(--rule); }
.poster-frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--ink); pointer-events: none; }
.poster-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .9rem;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
}

.poster-kicker { font-weight: 800; font-stretch: 75%; font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; }
.star { color: var(--red); }
.poster-pre { font: 900 clamp(1.6rem, 6vw, 2.6rem)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.poster-pre em { font-size: .8em; color: var(--red); }
.title {
  font: 900 clamp(5.5rem, 26vw, 13.5rem)/.8 var(--display);
  text-transform: uppercase;
  display: grid;
  justify-items: center;
}
.title span { display: block; }
.t-salta { color: var(--red); text-shadow: .035em .035em 0 var(--ink); }
.poster-count { font: 900 clamp(1.4rem, 5vw, 2.2rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.poster-count em { color: var(--red); font-size: .85em; }

.hero-card { position: absolute; right: 7%; top: 18%; width: 10.5rem; aspect-ratio: 61 / 95; transform: rotate(9deg); }
.hero-card .card { box-shadow: 6px 6px 0 var(--ink); }

.poster-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(46rem, 100%); border-block: var(--rule); margin-top: .5rem; }
.poster-facts > div { padding: .7rem .75rem; display: grid; gap: .1rem; }
.poster-facts > div + div { border-left: 1px solid var(--ink); }
.poster-facts dt { font-weight: 800; font-stretch: 75%; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.poster-facts dd { font-weight: 600; font-stretch: 85%; line-height: 1.25; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .4rem; }

@media (prefers-reduced-motion: no-preference) {
  .title span { animation: stamp .5s cubic-bezier(.2,.9,.3,1.3) both; }
  .t-salta { animation-delay: .1s; } .t-gira { animation-delay: .2s; }
  .hero-card { animation: drop .6s .35s cubic-bezier(.2,.9,.3,1.2) both; }
}
@keyframes stamp { from { transform: scale(1.25); opacity: 0; } }
@keyframes drop { from { transform: translateY(-30px) rotate(-6deg); opacity: 0; } }

/* Bandas, separadas por filete doble */
.band { border-top: var(--rule); }
.band::before { content: ""; display: block; height: 4px; border-bottom: 1px solid var(--ink); }
.band-inner { display: grid; gap: 1.4rem; padding-block: clamp(2rem, 6vw, 3.5rem); }
.band-title { font: 900 clamp(2.6rem, 9vw, 4.5rem)/.9 var(--display); text-transform: uppercase; }
.band-sub { max-width: 60ch; color: var(--ink-2); font-size: 1.1rem; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: step; padding: 0 1rem; color: var(--ink-2); }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font: 900 3rem/1 var(--display); color: var(--red); margin-bottom: .35rem; }
.steps strong { color: var(--ink); }

/* Normas, como el elenco de un cartel */
.rule-list { margin: 0; padding: 0; list-style: none; border-block: var(--rule); }
.row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; padding-block: 1.1rem; }
.row + .row { border-top: 1px solid var(--ink); }
.row-num { display: grid; justify-items: start; }
.row-num span { font: 900 clamp(3.4rem, 10vw, 4.6rem)/.85 var(--display); color: var(--red); }
.row-num small { font-weight: 800; font-stretch: 75%; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-top: .3rem; }
.row-body { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .3rem 1.5rem; align-items: baseline; padding-top: .35rem; }
.row-body h3 { font: 900 clamp(1.7rem, 4.5vw, 2.2rem)/1 var(--display); text-transform: uppercase; }
.row-body p { grid-column: 2; color: var(--ink-2); max-width: 58ch; }
.row-tip { font-family: var(--script); font-style: italic; font-weight: 600; }

/* El 7 */
.rsg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.rsg-item { margin: 0; display: grid; gap: .6rem; justify-items: center; text-align: center; }
.ring svg { width: 100%; max-width: 10rem; height: auto; display: block; }
.rsg-item figcaption { color: var(--ink-2); display: grid; gap: .2rem; }
.rsg-item .word { font: 900 2.4rem/1 var(--display); color: var(--red); text-transform: uppercase; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ink-2); }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.dot-red { background: var(--red); }
.dot-ink { background: var(--ink); margin-left: .8rem; }

/* La mesa: banda invertida en negro */
.table { background: var(--ink); color: var(--night-text); }
.table-inner { display: grid; gap: 1.25rem; padding-block: clamp(2.25rem, 6vw, 3.75rem); }
.table .band-title { color: var(--paper); }
.play-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; }
.counter { font-weight: 700; font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }
.counter span { font: 900 2rem/1 var(--display); color: var(--paper); letter-spacing: 0; margin-right: .2rem; }
.progress { height: 6px; background: var(--night-line); }
.progress span { display: block; height: 100%; width: 100%; background: var(--paper); transition: width .3s ease; }

.board { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.25rem, 5vw, 3.5rem); align-items: center; padding-block: 1.5rem 2.25rem; }

.deck { position: relative; width: clamp(7rem, 20vw, 9rem); aspect-ratio: 61 / 95; border: 0; padding: 0; background: none; cursor: pointer; }
.deck:disabled { cursor: default; opacity: .3; }
.deck-back {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 5px solid var(--naipe);
  background:
    repeating-linear-gradient(45deg, transparent 0 6px, rgb(23 18 12 / .28) 6px 8px),
    repeating-linear-gradient(-45deg, transparent 0 6px, rgb(23 18 12 / .28) 6px 8px),
    var(--red);
}
.deck-back:nth-child(1) { transform: translate(7px, 7px); background: var(--naipe); }
.deck-back:nth-child(2) { transform: translate(3.5px, 3.5px); }
.deck-top { display: grid; place-items: center; transition: transform .15s ease; }
.deck:hover:not(:disabled) .deck-top { transform: translate(-3px, -5px) rotate(-2deg); }
.deck-logo { font: 900 1.7rem/1 var(--display); background: var(--paper); color: var(--ink); padding: .3rem .5rem; border: 2px solid var(--ink); }
.deck-hint { position: absolute; left: 50%; bottom: -2.1rem; translate: -50% 0; white-space: nowrap; font-weight: 800; font-stretch: 75%; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; color: var(--paper); }

.drawn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 4vw, 2.5rem); align-items: center; min-width: 0; }
.card-slot { cursor: pointer; width: clamp(9rem, 25vw, 13rem); aspect-ratio: 61 / 95; perspective: 900px; }
.placeholder { height: 100%; border: 2px dashed var(--night-line); border-radius: 8px; display: grid; place-items: center; text-align: center; padding: 1rem; font-size: .9rem; }

.verdict { display: grid; gap: .5rem; min-width: 0; }
.verdict-tag { font-weight: 800; font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; color: var(--red-bright); }
.verdict-title { font: 900 clamp(2.6rem, 8vw, 4.4rem)/.9 var(--display); text-transform: uppercase; color: var(--paper); }
.verdict-text { font-size: 1.15rem; max-width: 38ch; }

/* Naipe */
.card {
  --suit: var(--paper-deep);
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--naipe);
  color: var(--suit);
  border-radius: 8px;
  border: 2px solid var(--ink);
}
.table .card { box-shadow: 7px 7px 0 var(--red); }
.card[data-suit="copas"] { --suit: var(--red); }
.card[data-suit="espadas"] { --suit: var(--blue); }
.card[data-suit="bastos"] { --suit: var(--green); }
.card .frame { position: absolute; inset: 11% 16%; border: 2px solid var(--suit); }
/* Las pintas: los cortes del marco que dicen el palo (ninguno oros, uno copas, dos espadas, tres bastos). */
.card .pintas { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 8%; }
.card .pintas.top { top: calc(11% - 2px); }
.card .pintas.bottom { bottom: calc(11% - 2px); }
.card .pintas span { width: 9%; height: 6px; background: var(--naipe); }
.card .idx { position: absolute; font: 900 clamp(1.2rem, 3.6vw, 1.7rem)/1 var(--display); }
.card .idx.tl { top: 3%; left: 5%; }
.card .idx.br { bottom: 3%; right: 5%; rotate: 180deg; }
.card .face { position: absolute; inset: 17% 21%; display: grid; place-items: center; }
.card .pips { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; align-content: space-evenly; justify-items: center; gap: 4%; }
.card .pips.one-col { grid-template-columns: 1fr; }
.card .pips svg { width: 100%; max-width: 3.2rem; aspect-ratio: 1; }
.card .pips.one-col svg { max-width: 3.6rem; }
.card .pips .solo { grid-column: 1 / -1; }
.card .pips.ace svg { max-width: 100%; }
.card .figure { display: grid; justify-items: center; gap: .3rem; text-align: center; }
.card .figure .emoji { font-size: clamp(2.6rem, 9vw, 4rem); line-height: 1; }
.card .figure svg { width: 2.6rem; height: 2.6rem; }
.card .figure .name { font: 900 1.1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }

@media (prefers-reduced-motion: no-preference) {
  .card.enter { animation: flip .5s cubic-bezier(.2,.8,.2,1) both; }
  .verdict.enter { animation: rise .4s .12s ease both; }
}
@keyframes flip { from { transform: translateX(-40%) rotateY(-100deg) rotate(-8deg); opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.rule-form { display: grid; gap: .6rem; padding: 1rem 1.25rem; background: var(--paper); color: var(--ink); }
.rule-form label { font: 900 1.4rem/1.1 var(--display); text-transform: uppercase; }
.rule-form-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.rule-form input { flex: 1 1 14rem; min-width: 0; min-height: 50px; padding: 0 1rem; border: 3px solid var(--ink); border-radius: 2px; background: var(--naipe); color: var(--ink); }

.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--night-line); }
.panel { padding: 1.1rem 1.25rem 1.25rem 0; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.panel + .panel { border-left: 1px solid var(--night-line); padding-left: 1.25rem; }
.panel h3 { font-weight: 800; font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; color: var(--paper); }
.empty { font-size: .95rem; opacity: .75; }
.active-rules { margin: 0; padding: 0; list-style: none; display: grid; }
.active-rules li { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed var(--night-line); overflow-wrap: anywhere; }
.active-rules li::before { content: "★"; color: var(--red-bright); }
.active-rules li span { flex: 1; }
.active-rules button { flex: none; width: 36px; height: 36px; border: 0; background: transparent; color: var(--night-text); font-size: 1.4rem; cursor: pointer; }
.active-rules button:hover { color: var(--paper); }
.history { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.history li { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem .25rem .35rem; background: var(--naipe); color: var(--ink); border-radius: 3px; font: 900 1rem/1 var(--display); }
.history svg { width: 1.1rem; height: 1.1rem; }

.play-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.footer { flex: 1; background: var(--ink); color: var(--night-text); border-top: 1px solid var(--night-line); }
.footer-inner { display: grid; gap: .4rem; padding-block: 1.75rem 2.25rem; font-size: .9rem; }
.footer-inner p:first-child { font-family: var(--script); font-style: italic; font-weight: 600; color: var(--paper); font-size: 1rem; }

/* La sala: quién juega, dónde se sienta y a quién le toca */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn-paperfill { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paperfill:hover { background: var(--naipe); border-color: var(--naipe); }

.room { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--night-line); }
.room.has-players { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.room:has(.room-editor:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
.room:has(.room-editor:not([hidden])) .corro { display: none; }
.room-intro { display: grid; gap: .75rem; justify-items: start; align-content: center; }
.room-intro h3 { font-weight: 800; font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; color: var(--paper); }
.room-intro > p { max-width: 46ch; }
.room-now { display: grid; gap: .15rem; }
.room-label { font-weight: 800; font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--red-bright); }
.room-name { font: 900 clamp(3rem, 10vw, 5rem)/.9 var(--display); text-transform: uppercase; color: var(--paper); overflow-wrap: anywhere; }
.room-next { font-size: 1rem; }

.corro { position: relative; width: min(21rem, 82vw); aspect-ratio: 1; max-width: 100%; justify-self: center; }
.corro::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 2px dashed var(--night-line); }
.corro-dir { position: absolute; inset: 0; display: grid; place-items: center; font: 900 3.5rem/1 var(--display); color: var(--night-line); pointer-events: none; }
.seat {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 7.5rem;
  min-height: 40px;
  padding: .35rem .7rem;
  border: 2px solid var(--night-line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--night-text);
  font-weight: 700;
  font-stretch: 85%;
  font-size: .95rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.seat:hover { border-color: var(--paper); }
.seat.is-next { border-color: var(--paper); color: var(--paper); }
.seat.is-turn { background: var(--red); border-color: var(--red); color: var(--naipe); transform: translate(-50%, -50%) scale(1.15); z-index: 1; }

.room-editor { display: grid; gap: .9rem; justify-items: start; }
.room-hint { max-width: 52ch; }
.seat-list { margin: 0; padding: 0; list-style: none; display: grid; width: min(30rem, 100%); }
.seat-list li { display: flex; align-items: center; gap: .25rem; padding: .3rem 0; border-bottom: 1px dashed var(--night-line); }
.seat-n { width: 2rem; font: 900 1.4rem/1 var(--display); color: var(--red-bright); }
.seat-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; color: var(--naipe); }
.seat-list button { flex: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--night-text); font-size: 1.2rem; cursor: pointer; }
.seat-list button:hover:not(:disabled) { color: var(--paper); }
.seat-list button:disabled { opacity: .25; cursor: default; }
.player-form { display: flex; flex-wrap: wrap; gap: .5rem; width: min(30rem, 100%); }
.player-form input { flex: 1 1 10rem; min-width: 0; min-height: 50px; padding: 0 1rem; border: 3px solid var(--paper); border-radius: 2px; background: var(--naipe); color: var(--ink); }

/* Carta a pantalla completa, para enseñarla a la mesa */
.is-revealing, .is-revealing body { overflow: hidden; }
.reveal {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  background: var(--ink);
  color: var(--night-text);
  padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 1.5rem) max(16px, env(safe-area-inset-left, 0px));
}
.reveal-inner { min-height: 100%; max-width: 62rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 1rem; text-align: center; }
.reveal-who { font: 900 clamp(1.5rem, 6vw, 2.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.reveal-who strong { color: var(--paper); }
.reveal-card { height: min(44vh, 30rem); aspect-ratio: 61 / 95; max-width: 72vw; perspective: 1000px; }
.reveal-card .card { box-shadow: 9px 9px 0 var(--red); }
.reveal-card .card .idx { font-size: clamp(1.6rem, 5vh, 2.6rem); }
.reveal-card .card .pips svg { max-width: 5rem; }
.reveal-card .card .pips.one-col svg { max-width: 6rem; }
.reveal-card .card .figure .emoji { font-size: clamp(3.5rem, 12vh, 7rem); }
.reveal-card .card .figure svg { width: 4rem; height: 4rem; }
.reveal-body { display: grid; gap: .6rem; justify-items: center; width: 100%; }
.reveal-title { font: 900 clamp(2.6rem, 11vw, 6rem)/.88 var(--display); text-transform: uppercase; color: var(--paper); }
.reveal-text { font-size: clamp(1rem, 2.4vh, 1.2rem); line-height: 1.45; max-width: 40ch; }
#reveal-form-slot { width: min(32rem, 100%); text-align: left; }
#reveal-form-slot:empty { display: none; }
.reveal:has(#reveal-form-slot:not(:empty)) .reveal-card { height: min(30vh, 30rem); }
.reveal-body .btn { margin-top: .3rem; min-height: 56px; font-size: 1.15rem; }
@media (min-width: 860px) and (min-aspect-ratio: 4/3) {
  .reveal-inner { grid-template-columns: auto minmax(0, 1fr); column-gap: 3.5rem; text-align: left; }
  .reveal-who { grid-column: 1 / -1; justify-self: start; }
  .reveal-card { height: min(70vh, 34rem); }
  .reveal-body { justify-items: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal:not([hidden]) { animation: fade .2s ease both; }
}
@keyframes fade { from { opacity: 0; } }

/* Tableta y móvil */
@media (max-width: 1000px) {
  .hero-card { display: none; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .row-body { grid-template-columns: minmax(0, 1fr); }
  .row-body p { grid-column: 1; }
  .board { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .deck { order: 2; margin-bottom: 2rem; }
  .drawn { order: 1; width: 100%; }
}
@media (max-width: 560px) {
  .room.has-players { grid-template-columns: minmax(0, 1fr); }
  .room.has-players .room-intro { justify-items: center; text-align: center; }
  .poster-kicker { font-size: .78rem; letter-spacing: .12em; }
  .poster-facts { grid-template-columns: minmax(0, 1fr); }
  .poster-facts > div + div { border-left: 0; border-top: 1px solid var(--ink); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li:nth-child(3) { padding: 0; border-left: 0; }
  .row { grid-template-columns: 4.75rem minmax(0, 1fr); gap: .9rem; }
  .rsg-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .rsg-item { grid-template-columns: 6.5rem minmax(0, 1fr); text-align: left; justify-items: start; align-items: center; gap: 1rem; }
  .drawn { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .verdict-text { margin-inline: auto; }
  .card-slot { width: min(13rem, 60vw); }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel, .panel + .panel { padding: 1rem 0; border-left: 0; }
  .panel + .panel { border-top: 1px solid var(--night-line); }
}
