/* Salón Retro. Only these two screens and the new Feria marquee opt in. */
#arcade #arcade-retro {
  position:relative;
  grid-column:1/-1;
  width:100%;
  margin:4px 0 7px;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #684950;
  border-radius:12px;
  background:linear-gradient(180deg,#815366,#593c58);
  color:#fff6dc;
  box-shadow:0 3px #4c3549;
  font:850 clamp(.94rem,4vw,1.14rem)/1.2 system-ui,sans-serif;
  letter-spacing:.02em;
}
#arcade #arcade-retro:active{transform:translateY(2px);box-shadow:0 1px #4c3549}
#arcade #arcade-retro:focus-visible{outline:2px solid #362646;outline-offset:3px}
#retro-hall,#retro-game {
  --retro-cream:#fff0d6;
  --retro-ink:#2c293a;
  --retro-plum:#4a374f;
  --retro-dark:#282332;
  --retro-frame:#9a6d55;
  --retro-gold:#f3be75;
  --retro-aqua:#c4e6d3;
  color:var(--retro-cream);
  z-index:7;
}
#retro-hall {
  background:radial-gradient(ellipse at 50% 24%,#604759f0,#262333f9 78%);
}
#retro-hall .retro-hall-card {
  position:relative;
  width:min(calc(100% - 28px),440px);
  max-height:calc(100% - 24px);
  overflow:auto;
  overscroll-behavior:contain;
  margin:auto;
  padding:clamp(13px,3.8vw,22px);
  border:1px solid #b98f6c;
  border-block-start:5px solid var(--retro-gold);
  border-radius:19px;
  box-shadow:0 7px #302937,0 16px 27px #140f1d8a;
  background:linear-gradient(155deg,#5a4058,#392f47 76%);
  color:var(--retro-cream);
  text-align:left;
}
#retro-hall .retro-kicker,#retro-game .retro-kicker {
  margin:0;
  color:#ffcb8b;
  font:850 clamp(.68rem,2.7vw,.78rem)/1.25 system-ui,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}
#retro-hall .retro-hall-card h1 {
  margin:4px 0 8px;
  line-height:1.04;
  font-size:clamp(1.65rem,6.9vw,2.25rem);
}
#retro-hall .retro-hall-card h1:focus,#retro-game h1:focus {outline:none}
#retro-hall .retro-hall-card > p:not(.retro-kicker) {
  margin:0 0 12px;
  color:#fbebdc;
  font:650 clamp(.87rem,3.5vw,1rem)/1.35 system-ui,sans-serif;
}
#retro-hall .retro-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin:0 0 14px;
}
#retro-hall .retro-tile {
  --retro-tile:#ffe4a9;
  --retro-tile-base:#ead49b;
  width:100%;
  margin:0;
  min-width:0;
  min-height:clamp(105px,25vw,140px);
  padding:9px;
  border:1px solid #fef5d29a;
  border-radius:12px;
  display:grid;
  grid-template-rows:auto auto 1fr;
  align-content:start;
  justify-items:start;
  gap:4px;
  background:linear-gradient(150deg,var(--retro-tile),var(--retro-tile-base));
  color:#2d2b37;
  text-align:left;
  box-shadow:0 3px #201d2daa;
  touch-action:manipulation;
}
#retro-hall .retro-tile:nth-child(2) {--retro-tile:#d6eed9;--retro-tile-base:#abd8be}
#retro-hall .retro-tile:nth-child(3) {--retro-tile:#fae3cb;--retro-tile-base:#efc5ae}
#retro-hall .retro-tile:nth-child(4) {--retro-tile:#e3ddf8;--retro-tile-base:#cdc4ee}
#retro-hall .retro-tile:active {transform:translateY(2px);box-shadow:0 1px #201d2daa}
#retro-hall .retro-tile:hover:not(:active) {filter:brightness(1.04)}
#retro-hall .retro-tile .retro-icon {
  display:grid;
  place-items:center;
  min-width:30px;
  min-height:27px;
  padding:2px 6px;
  border-radius:7px;
  font:800 clamp(1.1rem,5vw,1.55rem)/1 system-ui,sans-serif;
  background:#fffaf0a0;
}
#retro-hall .retro-tile .retro-name {
  font:860 clamp(.88rem,3.6vw,1.03rem)/1.12 system-ui,sans-serif;
  overflow-wrap:anywhere;
}
#retro-hall .retro-tile .retro-blurb {
  color:#3e3a46;
  font:620 clamp(.72rem,3.2vw,.86rem)/1.26 system-ui,sans-serif;
  overflow-wrap:anywhere;
}
#retro-hall .retro-hall-card > button:not(.retro-tile),#retro-game .retro-return,#retro-game header button {
  min-height:44px;
  width:auto;
  border:1px solid #fff9e040;
  border-radius:9px;
  padding:6px 12px;
  margin:0;
  background:#e8cfaa;
  color:#302d3b;
  box-shadow:none;
  font:800 clamp(.82rem,3.5vw,.95rem)/1.15 system-ui,sans-serif;
}
#retro-hall button:focus-visible,#retro-game button:focus-visible {
  outline:3px solid #fff6cf;
  outline-offset:2px;
}
#retro-game {
  position:absolute;
  inset:0;
  display:block;
  overflow:auto;
  overscroll-behavior:contain;
  background:linear-gradient(150deg,#443650,#231f2f 68%);
}
#retro-game .retro-game-shell {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  gap:8px;
  width:100%;
  max-width:480px;
  margin:0 auto;
  padding:clamp(9px,3vw,16px);
  color:var(--retro-cream);
}
#retro-game .retro-game-shell > header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  column-gap:9px;
}
#retro-game header > :first-child {min-width:0}
#retro-game header button {flex-shrink:0}
#retro-game header h1 {
  margin:2px 0 0;
  white-space:normal;
  overflow-wrap:anywhere;
  font-size:clamp(1.2rem,5.55vw,1.72rem);
  line-height:1.08;
}
#retro-game .retro-help,#retro-game .retro-game-shell > p {
  margin:0;
  color:#fff2df;
  font:650 clamp(.79rem,3.2vw,.92rem)/1.3 system-ui,sans-serif;
}
#retro-game .retro-stats {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  padding:6px 8px;
  border:1px solid #ffffff22;
  border-radius:9px;
  background:#1f2332;
  color:#fce3ad;
  font:780 clamp(.76rem,3.3vw,.93rem)/1.18 system-ui,sans-serif;
  font-variant-numeric:tabular-nums;
}
#retro-game .retro-stats strong {color:#bcead3}
#retro-game .retro-stage,#retro-game .retro-screen,#retro-game .retro-board-wrap {
  position:relative;
  width:min(100%,57dvh);
  margin-inline:auto;
  border:2px solid #bc9271;
  border-radius:13px;
  overflow:hidden;
  box-shadow:0 3px #211b2b;
  background:#1b2737;
}
#retro-game .retro-board {
  width:100%;
  max-width:100%;
  max-height:57dvh;
  display:block;
  margin-inline:auto;
  object-fit:contain;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  background:#1b2737;
}
#retro-game .retro-overlay {
  position:absolute;
  inset:0;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:8px;
  overflow:auto;
  padding:clamp(7px,3vw,16px);
  background:#242333e8;
  color:#fff6df;
  text-align:center;
}
#retro-game .retro-overlay p,#retro-game .retro-overlay h2 {
  margin:0;
  line-height:1.24;
}
#retro-game .retro-overlay p{font-size:clamp(.81rem,3.45vw,.98rem)}
#retro-game .retro-overlay h2{color:#ffd48d;font-size:clamp(1.12rem,4.7vw,1.5rem)}
#retro-game .retro-overlay button {
  width:auto;
  min-height:44px;
  padding:6px 14px;
  border:1px solid #fbda9b;
  border-radius:9px;
  background:#f3bc75;
  color:#342b34;
  box-shadow:0 2px #87563d;
  font:850 clamp(.84rem,3.6vw,.99rem)/1.15 system-ui,sans-serif;
}
#retro-game .retro-controls {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(44px,1fr));
  align-items:stretch;
  gap:6px;
  width:min(100%,57dvh);
  margin-inline:auto;
}
#retro-game .retro-controls button {
  width:100%;
  min-width:0;
  min-height:48px;
  padding:4px 3px;
  border:1px solid #c1e8d4;
  border-radius:10px;
  background:#b9dfcd;
  color:#223738;
  box-shadow:0 3px #44675c;
  font:850 clamp(.83rem,3.55vw,1rem)/1.14 system-ui,sans-serif;
  overflow-wrap:anywhere;
  touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
}
#retro-game .retro-controls button:active,#retro-game .retro-controls button[aria-pressed=true] {
  background:#f2ca89;
  color:#423237;
  transform:translateY(2px);
  box-shadow:0 1px #705341;
}
#retro-game .retro-controls button:disabled{opacity:.52}
@media (max-width:350px) {
  #retro-hall .retro-hall-card {width:calc(100% - 20px)}
  #retro-hall .retro-grid{gap:7px}
  #retro-hall .retro-tile{padding:7px}
  #retro-game .retro-game-shell{gap:6px}
}
@media (max-height:620px) {
  #retro-game .retro-stage,#retro-game .retro-screen,#retro-game .retro-board-wrap,#retro-game .retro-controls {
    width:min(100%,53dvh);
  }
  #retro-game .retro-board{max-height:53dvh}
}
@media (forced-colors:active) {
  #retro-hall .retro-tile,#retro-game .retro-controls button{border:2px solid ButtonText}
}
