:root {
  --bg: #0b101b;
  --bg-elev: #121a2b;
  --surface: #151f33;
  --surface-hover: #1a2740;
  --ink: #f3f6fc;
  --muted: #9aa8c2;
  --accent: #ff6b4a;
  --accent-2: #ff9838;
  --mint: #34d399;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 20px;
  --shadow: 0 18px 44px rgba(3, 7, 18, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(255, 107, 74, 0.16), transparent 60%),
    radial-gradient(820px 500px at 88% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.7 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #7dd3fc; text-underline-offset: 3px; transition: color 0.16s ease; }
a:hover { color: #ffb399; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 840px; margin: 0 auto; }

/* Sticky Glass Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 16, 27, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 19px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(255, 107, 74, 0.35);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 58px 0 36px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb08a;
  background: rgba(255, 107, 74, 0.14);
  border: 1px solid rgba(255, 107, 74, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #fff;
}
h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 46px 0 12px;
  color: #fff;
}
h3 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 18px 0 8px;
  color: #fff;
}
.lead {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--muted);
  max-width: 700px;
  margin: 0 0 26px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 107, 74, 0.32);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 107, 74, 0.45);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Pillars strip */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0 6px;
}
.pillar {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.pillar strong { display: block; font-size: 15px; color: #fff; margin-bottom: 4px; }
.pillar span { font-size: 13.5px; color: var(--muted); }

/* Balanced 5-Game Bento Showcase Grid (Row 1: 2-col Spotlight + 1 card; Row 2: 3 equal cards!) */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0 42px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 152, 56, 0.45);
  box-shadow: 0 24px 54px rgba(3, 7, 18, 0.65);
}
/* First card spans 2 columns on desktop so 5 cards form a completely balanced 2-row bento grid */
.games-grid .game-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.games-grid .game-card:first-child .game-thumb {
  aspect-ratio: auto;
  min-height: 290px;
  height: 100%;
}
.game-thumb {
  aspect-ratio: 16 / 9;
  background: #0d1424;
  overflow: hidden;
  position: relative;
}
.game-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.65), transparent);
  pointer-events: none;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}
.game-card:hover .game-thumb img {
  transform: scale(1.04);
}
.game-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-bottom: 10px;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(125, 211, 252, 0.11);
  color: #93c5fd;
  border: 1px solid rgba(125, 211, 252, 0.2);
  padding: 3px 9px;
  border-radius: 999px;
}
.game-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  color: #fff;
}
.game-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
  flex: 1;
}
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.card-actions .btn { padding: 9px 15px; font-size: 13.5px; }

/* Editorial Panels & Guides */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 24px 0;
}
.panel ul { padding-left: 20px; color: #d5dfef; }
.panel li { margin: 8px 0; }
.panel p { color: #cbd5e7; }

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.dish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.dish-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
}
.dish-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #0d1424;
}
.dish-item h3 { margin: 0 0 4px; font-size: 18px; }
.dish-item small { display: block; color: #ffb08a; font-weight: 700; margin-bottom: 6px; }
.dish-item p { margin: 0; font-size: 14px; color: var(--muted); }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin: 18px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: #d5dfef;
}
th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
  color: #fff;
}
tr:last-child td { border-bottom: 0; }

/* Breadcrumb & Subpage Hero */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0 14px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: #ffb08a; }

.game-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
  margin: 8px 0 30px;
}
.game-hero-art {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: #0d1424;
}
.game-hero-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.meta-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #cbd5e7;
  margin: 14px 0 22px;
}
.meta-list span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}
code {
  background: rgba(255, 255, 255, 0.09);
  color: #fde68a;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

.ad-slot {
  margin: 28px 0;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.ad-slot[hidden] { display: none; }

/* Footer */
.site-footer {
  margin-top: 68px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 21, 0.85);
  padding: 36px 0 46px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a { text-decoration: none; color: #cbd5e7; font-weight: 500; }
.footer-links a:hover { color: #ffb08a; }

@media (max-width: 980px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-grid .game-card:first-child { grid-column: span 2; }
  .game-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .games-grid, .pillars, .two-col, .dish-grid { grid-template-columns: 1fr; }
  .games-grid .game-card:first-child { grid-column: auto; display: flex; flex-direction: column; }
  .games-grid .game-card:first-child .game-thumb { aspect-ratio: 16 / 9; min-height: 0; }
  .dish-item { grid-template-columns: 1fr; }
  .dish-item img { width: 100%; height: 170px; }
  .panel { padding: 20px; }
}
.arcade-library { display:grid; grid-template-rows:minmax(0,1fr) auto; gap:10px; height:calc(100svh - 92px); min-height:215px; padding-block:10px; box-sizing:border-box; }
.library-scene { position:relative; overflow:hidden; border-radius:18px; background:#102722; min-height:0; }
.library-scene>img { width:100%; height:100%; object-fit:cover; display:block; }
.scene-caption { position:absolute; inset:auto 0 0; padding:clamp(10px,2.5vw,34px); color:#fff9ed; background:linear-gradient(transparent,#112722f5); }
.scene-caption h1 { margin:0; color:inherit; font:700 clamp(27px,5vw,68px)/1 Georgia,serif; }
.scene-caption p { margin:.25em 0 .5em; }
.scene-caption>a { color:inherit;margin-right:.7rem; }
.scene-caption .btn-primary { color:#182d26; background:#ffdb88; }
.library-strip { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
.library-pick { min-width:0; text-decoration:none; font-weight:750; color:inherit; border:2px solid transparent; border-radius:9px; padding:3px; font-size:clamp(10px,1.4vw,16px); }
.library-pick img { width:100%; height:clamp(33px,8svh,74px); object-fit:cover; display:block; border-radius:5px; }
.library-pick[aria-current=true] { border-color:#ae7a32; }
.arcade-guide { margin:12px auto 30px; } .arcade-guide>summary { cursor:pointer; font-weight:700; padding:12px; }
.game-hero-art img { width:100%; object-fit:contain; }
@media(max-width:540px) { .arcade-library {height:calc(100svh - 110px)} .library-strip {gap:1px;} .library-pick span {line-height:1.13;display:block;} }
@media(max-height:400px) and (orientation:landscape){ .arcade-library {grid-template-columns:1fr 130px;grid-template-rows:minmax(0,1fr);height:calc(100svh - 55px);}.library-strip {grid-template-columns:1fr;gap:1px}.library-pick{display:flex;align-items:center;gap:5px}.library-pick img{width:35%;height:27px}.scene-caption{padding:8px}.scene-caption h1{font-size:23px} }

body:has(.arcade-library),body:has(.breadcrumb),body:has(main .panel){height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
body>main{min-height:0;overflow:auto;overscroll-behavior:contain}
body:has(.arcade-library)>main{display:flex;flex-direction:column;overflow:hidden}
body:has(.arcade-library) .arcade-library{flex:1;min-height:0;height:auto;width:100%}
body:has(.arcade-library) main>.wrap:has(.arcade-guide){flex:0 0 auto;width:100%}
.arcade-guide{margin:0 auto}.arcade-guide>summary{padding:4px 0;color:#b8ced5}
body:has(.arcade-library) .arcade-guide[open]{position:fixed;left:4%;right:4%;top:12%;bottom:8%;overflow:auto;background:#151f33;padding:0 18px 16px;z-index:45;border:1px solid #48636d;border-radius:14px}
.arcade-guide[open]>summary{position:sticky;top:0;background:#151f33;padding-block:8px;z-index:1}
.site-footer{margin:0;padding:7px 0}.footer-grid>div{display:none}.footer-links{gap:14px}.site-header .header-inner{min-height:48px;padding:4px 0}
.game-hero{align-items:center}.game-hero-art img{max-height:57dvh}.game-hero p{max-width:57ch}
@media(max-width:600px),(max-height:440px){.wrap{padding-inline:8px}.site-header .header-inner{gap:3px 10px;min-height:34px}.site-nav a,.footer-links a{font-size:12px;padding:2px 4px}.brand{font-size:15px;gap:4px}.brand-mark{width:23px;height:23px;font-size:12px}.site-footer{padding:3px 0}.footer-links{gap:4px}.arcade-guide>summary{font-size:12px;min-height:24px}.site-nav{gap:0}.scene-caption p{font-size:12px}.scene-caption .btn{padding:5px 10px}.site-header{position:relative}.game-hero-art img{max-height:33dvh}.breadcrumb{padding-block:3px}}

/* Each detail opens directly onto the playable scene. */
.detail-stage{position:relative;display:grid;min-height:240px;height:clamp(240px,62svh,600px);overflow:hidden;border-radius:14px;background:#121e23;margin:6px 0 14px}
.detail-stage .game-hero-art{position:absolute;inset:0;border:0;border-radius:0}
.detail-stage .game-hero-art img{width:100%;height:100%;max-height:none;object-fit:cover}
.detail-caption{align-self:end;position:relative;padding:clamp(12px,3vw,34px);background:linear-gradient(transparent,#111c22ec 48%);color:#fff8e9;line-height:1.2}
.detail-caption h1{font:700 clamp(25px,5vw,58px)/1 Georgia,serif;margin:0}.detail-caption p{margin:.35em 0 .55em}.detail-caption .btn{min-height:44px;padding:9px 24px;background:#f6d285;color:#322517}
@media(max-width:600px){.detail-stage{height:auto;min-height:0}.detail-stage .game-hero-art{position:relative;aspect-ratio:16/10}.detail-caption{padding:12px;background:#192930}.detail-caption h1{font-size:26px}}
@media(max-height:410px) and (orientation:landscape){.detail-stage{height:58svh;min-height:0;grid-template-columns:60% 1fr}.detail-stage .game-hero-art{position:relative;aspect-ratio:auto;height:100%}.detail-caption{align-self:center;background:transparent;padding:8px}.detail-caption h1{font-size:22px}.detail-caption p{font-size:13px}}

/* Give the tall defense board its own poster composition. Its entrance and exit both matter. */
.library-scene, .detail-stage { isolation:isolate; }
.scene-caption, .detail-caption {
  background:linear-gradient(0deg,rgba(10,16,23,.93),rgba(10,16,23,.66) 48%,transparent);
  padding-top:clamp(38px,7vh,75px);
}
.office-poster {
  background:repeating-linear-gradient(0deg, transparent 0 31px, #d3b57714 31px 32px),
             radial-gradient(ellipse at 70% 30%,#645b3f,#353f37 55%,#182a2a);
}
.office-poster::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(110deg,#0c211fe3,transparent 65%);
}
.library-scene.office-poster>img, .detail-stage.office-poster .game-hero-art {
  position:absolute; inset:0 0 0 auto; width:60%; height:100%;
}
.library-scene.office-poster>img, .detail-stage.office-poster .game-hero-art img {
  object-fit:contain; background:transparent;
}
.detail-stage.office-poster .game-hero-art {box-shadow:none}
.office-poster .scene-caption, .office-poster .detail-caption {
  position:absolute; inset:0 auto 0 0; width:43%; display:flex; flex-wrap:wrap;
  align-content:center; align-items:center; gap:12px; background:none;
  padding:clamp(12px,3vw,42px);
}
.office-poster :is(h1,p) {width:100%;margin:0}
.office-poster h1 {text-wrap:balance}
@media (orientation:portrait) {
  .library-scene {display:flex;flex-direction:column;justify-content:center;background:radial-gradient(ellipse at top,#35404f,#141d2c 72%)}
  .library-scene>img, .library-scene.office-poster>img {position:static;width:100%;height:auto;aspect-ratio:16/10;min-height:0;object-fit:cover}
  .library-scene.office-poster>img {object-fit:contain;background:#c5c7b3}
  .library-scene .scene-caption,.library-scene.office-poster .scene-caption,
  .detail-stage.office-poster .detail-caption {position:static;display:block;width:100%;padding:14px 18px;background:#16222a}
  .library-scene .scene-caption p,.detail-caption p {margin:.35em 0 .55em}
  .detail-stage.office-poster .game-hero-art {position:relative;width:100%;height:auto;aspect-ratio:16/10;background:#c5c7b3}
  body:has(.arcade-library)>main {overflow:auto}
  body:has(.arcade-library) .arcade-library {flex:0 0 auto;display:block;padding-block:10px}
  .library-strip {margin-top:7px}
}
@media (max-height:410px) and (orientation:landscape) {
  .scene-caption,.detail-caption {padding:8px 12px}
  .office-poster .scene-caption,.office-poster .detail-caption {gap:4px;padding:8px 12px}
}

/* Studio, support and policy rooms share the lobby's illuminated cabinet edge. */
@media (max-width:600px) and (orientation:portrait) {
  .guide-cabinet .breadcrumb { margin:5px 0; padding:0 }
  .guide-cabinet .detail-stage {
    display:grid; grid-template-columns:1fr; gap:0;
    height:clamp(200px,49svh,350px);
  }
  .guide-cabinet .detail-stage .game-hero-art {
    position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto;
  }
  .guide-cabinet .detail-stage .detail-caption {
    position:relative; display:block; align-self:end; width:100%; padding:24px 14px 12px;
    background:linear-gradient(transparent,#111c22ee 32%);
  }
  .guide-cabinet .detail-caption h1 { font-size:clamp(22px,7vw,30px) }
}
@media (max-height:410px) and (orientation:landscape) {
  .guide-cabinet .breadcrumb { margin:4px 0; padding:0 }
  .guide-cabinet .detail-stage { gap:8px; margin-block:4px; }
}

main:has(>.wrap.narrow) .breadcrumb a:first-child,
main:has(.detail-stage) .breadcrumb a:first-child{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:3px 12px;border:1px solid #715a42;border-radius:8px;color:#ffe3b0;background:#242434;font-weight:700;text-decoration:none}
main .breadcrumb a:first-child::before{content:"◀";font-size:.75em}
main:has(>.wrap.narrow){background:radial-gradient(ellipse at 82% 0,#32304b77,transparent 53%),linear-gradient(165deg,#131b2b,#0d1221 80%)}
main>.wrap.narrow>.panel{border:1px solid #41445b;border-top:2px solid #8d6b47;background:linear-gradient(135deg,#1b2539,#131c2a);border-radius:8px;padding:clamp(16px,3vw,32px)}
main>.wrap.narrow>h1{max-width:22ch;text-wrap:balance}
main>.wrap.narrow>:is(.lead,.panel p){max-width:75ch}

/* Guide covers carry the player from the reading rooms back to a specific cabinet. */
.cabinet-shelf{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;align-self:center}
.cabinet-shelf a{position:relative;display:grid;align-content:end;min-height:108px;overflow:hidden;isolation:isolate;border:1px solid #6b6e81;border-radius:7px;background:#172338;color:#fff;text-decoration:none}
.cabinet-shelf img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;z-index:-2}
.cabinet-shelf a::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 30%,#0c1425eb)}
.cabinet-shelf span{padding:8px 6px;font:750 .85rem/1.1 system-ui;text-shadow:0 1px 3px #000}
.cabinet-shelf a:is(:focus-visible,:hover){outline:2px solid #ffcd76;outline-offset:1px}
.room-marquee{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(210px,1fr);align-items:center;gap:20px;margin-bottom:18px;padding:clamp(16px,3vw,32px);background:radial-gradient(ellipse at top right,#53455c,#202a41 66%,#141d30);border:1px solid #696079;border-radius:16px}
.room-marquee h1{font-size:clamp(24px,4vw,42px);line-height:1.06;letter-spacing:-.035em;margin:.3em 0;text-wrap:balance}
.room-marquee .lead{font-size:.98rem;line-height:1.48;margin:.5em 0 0}
.arcade-room .wrap.narrow{max-width:1080px}
.room-marquee .cabinet-shelf{min-width:0}.room-marquee .cabinet-shelf a{min-height:135px}
.room-contact .room-marquee{background:linear-gradient(120deg,#1c343c,#222d46)}
.room-terms .room-marquee,.room-privacy .room-marquee{background:linear-gradient(130deg,#293545,#232637)}
.desk-mail{display:inline-flex;align-items:center;gap:10px;max-width:100%;font:650 clamp(14px,2.3vw,19px)/1.5 system-ui;background:#ffe1a2;color:#211c15;padding:10px 14px;border-radius:6px;text-decoration:none}
.topic-list{display:flex;flex-wrap:wrap;gap:5px;margin:14px 0}
.topic-list a{color:#d1deea;background:#17283a;text-decoration:none;border:1px solid #476276;border-radius:6px;padding:7px 10px;font-size:.86rem}
.topic-list a:hover,.topic-list a:focus-visible{color:#ffe3aa;border-color:#e7bc75}
.arcade-room h2[id]{scroll-margin-block:1rem}
.guide-cabinet .detail-stage{border:1px solid color-mix(in srgb,var(--cabinet-accent) 60%,#263445)}
.guide-cabinet .arcade-guide>h2{margin:.5em 0;color:var(--cabinet-accent);font-weight:750}.guide-cabinet #guide{scroll-margin-top:6rem}.guide-cabinet .guide-chapter>summary{min-height:44px}
.guide-cabinet .arcade-guide>h2 span{margin-inline-end:.4em}
.guide-chapter{margin-top:8px;background:#162032;border:1px solid #37495e;border-radius:8px}
.guide-chapter summary{cursor:pointer;color:#e6edf5;padding:11px 16px;font-weight:700}
.guide-chapter[open] summary{color:var(--cabinet-accent);border-bottom:1px solid #34465c}
.chapter-copy{padding:0 16px 12px}
@media(max-width:700px){.room-marquee{grid-template-columns:1fr;gap:12px}.room-marquee .cabinet-shelf a,.cabinet-shelf a{min-height:67px}.cabinet-shelf span{font-size:.68rem;padding:5px 3px}.room-marquee{padding:12px}.cabinet-shelf{gap:3px}.topic-list a{padding:8px;font-size:.82rem}}

.cabinet-shelf { grid-template-columns:repeat(auto-fit,minmax(min(100%,104px),1fr)); }

@media (max-width:600px) and (orientation:portrait) {
  body:has(.arcade-library) .arcade-library {
    display:grid; flex:1 1 auto; grid-template-rows:minmax(0,1fr) auto; padding-block:5px; gap:5px;
  }
  .library-scene>img,.library-scene.office-poster>img { flex:1; height:0; aspect-ratio:auto; }
  .library-scene .scene-caption,.library-scene.office-poster .scene-caption { padding:8px 10px; }
  .library-strip { grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; margin:0; }
  .library-pick { display:grid; align-content:end; position:relative; isolation:isolate; min-height:45px; padding:3px; overflow:hidden; }
  .library-pick img { position:absolute; inset:0; width:100%; height:100%; z-index:-2; }
  .library-pick::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(transparent,#0a101ee6 83%); }
  .library-pick span { color:#fff; font-size:11px; line-height:1.12; }
}
@media (max-height:410px) and (orientation:landscape) {
  .library-strip { min-height:0; grid-template-rows:repeat(5,minmax(0,1fr)); }
  .library-pick { padding:1px 3px; font-size:11px; line-height:1.1; min-height:0; }
  .library-pick img { width:32px; flex:0 0 32px; height:100%; max-height:32px; object-fit:cover; }
  .library-pick span { min-width:0; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
}

/* The lobby can scroll naturally on short and narrow screens. */
.play-home { padding-block: clamp(18px, 4vw, 48px); }
.play-home h1 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.1; }
.play-home-intro { margin: .5rem 0 1.5rem; }
.play-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 20px); }
.play-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #526370; border-radius: 13px; background: #1b263d; }
.play-card > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.play-card-copy { padding: clamp(8px, 1.4vw, 16px); display: flex; flex: 1; flex-direction: column; }
.play-card h2 { margin: 0; color: #fff6e7; font: 700 clamp(16px, 1.55vw, 23px)/1.15 Georgia, serif; overflow-wrap: anywhere; }
.play-card p { flex: 1; margin: .55rem 0 .75rem; color: #d4deec; font-size: .92rem; }
.play-card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.play-card-links .play-game, .play-card-links .play-guide { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 11px; }
.play-card-links .play-game { background: #f6d285; color: #282116; }
.play-card-links .play-guide { color: #f4e7cf; }
@media (max-width: 980px) { .play-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 630px) { .play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
