/* games.mino.mobi — the arcade: a wall of cabinets, each running its own attract loop. */
:root {
  --bg: #07060d; --deep: #0d0b18; --panel: #13101f; --line: #2a2340; --text: #f1eefb; --dim: #8e88a8;
  --neon: #ff3d9a; --neon2: #3df0ff; --gold: #ffd23d;
  --mono: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --c: var(--neon2);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255, 61, 154, 0.16), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(61, 240, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--bg) 40%);
  background-attachment: fixed;
}
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- marquee */
.marquee { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px 10px; max-width: 1400px; margin: 0 auto; }
.logo { font-family: var(--mono); font-weight: 900; font-size: clamp(30px, 6vw, 54px); letter-spacing: 0.14em; line-height: 1; margin: 0;
  color: #fff; text-shadow: 0 0 6px var(--neon), 0 0 18px var(--neon), 0 0 42px rgba(255, 61, 154, 0.7); animation: buzz 7s infinite; }
.logo small { display: block; font-size: 0.26em; letter-spacing: 0.42em; margin-top: 8px; color: var(--neon2); text-shadow: 0 0 8px rgba(61, 240, 255, 0.8); font-weight: 700; }
@keyframes buzz { 0%, 91%, 93.5%, 96%, 100% { opacity: 1; } 92%, 95% { opacity: 0.55; } }
.coin { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; text-align: right; color: var(--gold); text-shadow: 0 0 8px rgba(255, 210, 61, 0.6); line-height: 1.9; white-space: nowrap; }
.coin .blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.coin .keys { color: var(--dim); text-shadow: none; letter-spacing: 0.12em; font-size: 10.5px; }
.coin .tap { display: none; }

/* ----------------------------------------------------------------- layout */
.floor { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 28px; max-width: 1400px; margin: 0 auto; padding: 10px 24px 40px; align-items: start; }

/* the big monitor: whichever cabinet is selected */
.monitor { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.bezel { position: relative; border-radius: 22px; padding: 14px; background: linear-gradient(160deg, #1d1830, #0b0913);
  border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(0,0,0,0.6) inset, 0 0 40px -8px var(--c), 0 30px 60px -30px #000; transition: box-shadow .35s; }
.bezel .screen { aspect-ratio: 3 / 4; border-radius: 12px; }
.monitor .bezel { width: min(100%, calc((100vh - 470px) * 0.75 + 28px)); min-width: 220px; } /* PRESS START stays above the fold */
.monitor .name { font-family: var(--mono); font-weight: 900; font-size: 34px; letter-spacing: 0.12em; margin: 0; color: #fff;
  text-shadow: 0 0 6px var(--c), 0 0 22px var(--c); line-height: 1.05; }
.monitor .meta { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--dim); }
.monitor .meta .genre { color: var(--c); border: 1px solid var(--c); padding: 2px 7px; border-radius: 4px; }
.monitor .blurb { margin: 0; color: #cfc9e3; font-size: 14.5px; line-height: 1.6; min-height: 4.8em; }
.monitor .doors { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--mono); font-size: 12px; min-height: 1.2em; }
.monitor .doors a { color: var(--c); text-decoration: none; border-bottom: 1px dashed currentColor; }
.start { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 900; font-size: 18px;
  letter-spacing: 0.2em; padding: 14px 18px; border-radius: 12px; background: var(--c); color: #0b0913; box-shadow: 0 0 24px -4px var(--c); transition: transform .12s; }
.start:hover { transform: translateY(-1px); }
.start .blink { animation: blink 1.1s steps(2, start) infinite; }

/* ------------------------------------------------------------- the wall */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; grid-auto-flow: dense; }
.cab { --glow: 0; position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: 14px; padding: 8px 8px 0;
  background: linear-gradient(180deg, #1a1629, #100d1a); border: 1px solid var(--line); outline: none;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.cab::before { /* the marquee light at the top of the cabinet */
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px; border-radius: 2px; background: var(--c); opacity: 0.55; box-shadow: 0 0 10px var(--c); }
.cab.on { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 28px -6px var(--c); z-index: 1; }
.cab.on::before { opacity: 1; }
.cab .screen { aspect-ratio: 3 / 4; border-radius: 8px; }
.cab .screen video { filter: saturate(0.75) brightness(0.72); transition: filter .2s; }
.cab.on .screen video { filter: none; }
.plate { padding: 9px 4px 11px; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.plate b { font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; color: #fff; text-shadow: 0 0 10px var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate small { color: var(--dim); font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cab.big { grid-column: span 2; grid-row: span 2; }
.cab.big .plate b { font-size: 22px; }
.cab.big .plate small { font-size: 13.5px; -webkit-line-clamp: 3; line-clamp: 3; color: #cfc9e3; }
.ribbon { position: absolute; z-index: 2; top: 16px; left: 16px; font-family: var(--mono); font-size: 10px; font-weight: 900; letter-spacing: 0.2em;
  background: var(--gold); color: #1a1200; padding: 4px 8px; border-radius: 4px; box-shadow: 0 0 14px rgba(255, 210, 61, 0.6); }

/* a screen: the clip, the poster under it, glass and scanlines over it */
.screen { position: relative; overflow: hidden; background: #000 center / cover no-repeat; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 1px, transparent 1px 3px),
              radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,0.55)); }
.screen .no { position: absolute; z-index: 1; right: 6px; top: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255,255,255,0.85); background: rgba(7, 6, 13, 0.8); padding: 2px 5px; border-radius: 3px; }
.screen .no i { font-style: normal; }
.screen .genre { position: absolute; z-index: 1; left: 8px; bottom: 7px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--c); background: rgba(7, 6, 13, 0.8); padding: 2px 6px; border-radius: 3px; }
.screen.tune video { animation: tune .32s ease-out; }
@keyframes tune { 0% { filter: brightness(2.6) contrast(0.4) blur(2px); transform: scaleY(0.02); } 45% { transform: scaleY(1); } 100% { filter: none; } }

/* ---------------------------------------------------------- party rooms */
.party { max-width: 1400px; margin: 0 auto; padding: 0 24px 30px; }
.party .box { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #16122a, #0e0b19); padding: 20px; display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 24px; }
.party h2 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.24em; color: var(--neon2); text-shadow: 0 0 8px rgba(61, 240, 255, 0.5); margin: 0 0 6px; }
.party p { color: var(--dim); font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.party p b { color: var(--text); }
.slot { display: flex; gap: 8px; }
.slot input { flex: 1; min-width: 0; background: #05040a; border: 1px solid var(--line); color: var(--gold); font-family: var(--mono); font-size: 22px; font-weight: 700;
  padding: 10px 12px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.4em; text-shadow: 0 0 8px rgba(255, 210, 61, 0.5); }
.slot input::placeholder { color: #3b3452; text-shadow: none; }
.slot button, .room button { background: var(--gold); color: #1a1200; border: 0; padding: 0 16px; font-family: var(--mono); font-size: 13px; font-weight: 900; letter-spacing: 0.14em; border-radius: 8px; cursor: pointer; }
.status { margin-top: 10px; color: var(--dim); font-family: var(--mono); font-size: 12px; min-height: 1.2em; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.room { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,0.25); cursor: pointer; text-align: left; color: inherit; font: inherit; }
.room:hover, .room:focus-visible { border-color: var(--neon2); outline: none; box-shadow: 0 0 18px -6px var(--neon2); }
.room b { font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; }
.room small { color: var(--dim); font-size: 12.5px; line-height: 1.45; }
.room i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--neon2); letter-spacing: 0.12em; }

footer { max-width: 1400px; margin: 0 auto; padding: 18px 24px 60px; color: var(--dim); font-family: var(--mono); font-size: 11.5px; line-height: 1.8; border-top: 1px solid var(--line); }
footer a { color: #b9b3d2; }

/* ----------------------------------------------------------------- phone */
@media (max-width: 860px) {
  .floor { grid-template-columns: 1fr; padding: 4px 16px 28px; gap: 0; }
  .monitor { display: none; }
  .party .box { grid-template-columns: 1fr; }
  .marquee { padding: 16px 16px 12px; }
  .party, footer { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 520px) {
  .wall { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cab { padding: 6px 6px 0; }
  .plate b { font-size: 12.5px; letter-spacing: 0.1em; }
  .plate small { font-size: 11.5px; }
  .cab.big .plate b { font-size: 19px; }
  .coin .keys { display: none; }
  .coin .tap { display: block; color: var(--dim); text-shadow: none; letter-spacing: 0.14em; font-size: 10px; }
  .cab.big .screen { aspect-ratio: 1; } /* the clip is centred: a square crop keeps the next row in sight */
}
@media (prefers-reduced-motion: reduce) {
  .logo, .blink, .coin .blink, .start .blink { animation: none !important; }
  .screen.tune video { animation: none; }
  .cab, .cab.on { transform: none; }
}
