/* The arcade's home: Orbit's look (the website's docs/design/orbit-theme.md), as approved
   in output/play-home/. Light or dark by the device's setting. */
@font-face {
  font-family: "Inter Arcade";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --tangerine: #f77b45;
  --bg: light-dark(#f8f7f6, #1c1b1a);
  --surface: light-dark(#ffffff, #292724);
  --raised: light-dark(#f3eee6, #302d29);
  --divider: light-dark(#e7e0d6, #413d37);
  --border: light-dark(#ddd5c9, #49443d);
  --text: light-dark(#1c1b1a, #f8f7f6);
  --muted: light-dark(#645e55, #b8b1a8);
  --faint: light-dark(#7b746a, #948d83);
  --accent-text: light-dark(#ac2401, #ff9964);
  --pill: 999px;
  --r-s: 0.85rem; --r-m: 1.25rem; --r-l: 1.75rem;
  --gutter: clamp(1.1rem, 4.4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 "Inter Arcade", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

header.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--divider); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand span { color: var(--muted); font-size: 17px; }

.app { max-width: 82rem; margin: 0 auto; padding: 0 var(--gutter) 40px; }
h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.05; margin: 28px 0 6px; letter-spacing: -0.02em; }
h1 em { color: var(--tangerine); font-style: normal; }
h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 44px 0 14px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
h2 small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.lede { color: var(--muted); margin: 0 0 18px; }

.three { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .three { grid-template-columns: 1.4fr 1fr 1fr; } }
.feature { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; text-decoration: none; transition: transform 0.25s var(--ease); }
.feature:hover { transform: translateY(-3px); }
.feature .art { aspect-ratio: 16 / 10; background: var(--raised); width: 100%; object-fit: cover; }
.feature .art.icon { object-fit: contain; padding: 18px; }
.feature .body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.feature .name { font-weight: 800; font-size: 20px; }
.tag { color: var(--muted); font-size: 14.5px; }
.go { margin-top: 10px; justify-self: start; background: var(--tangerine); color: #1c1b1a; border-radius: var(--pill); padding: 10px 18px; font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.go::before { content: ""; width: 0; height: 0; border-left: 9px solid #1c1b1a; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.badge { position: absolute; top: 12px; left: 12px; background: rgb(28 27 26 / 82%); color: #f8f7f6; border-radius: var(--pill); padding: 5px 11px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.grid { display: grid; gap: 18px 10px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.tile { display: grid; justify-items: center; gap: 7px; text-decoration: none; font-size: 13.5px; font-weight: 600; text-align: center; }
.tile .icon { width: 72px; height: 72px; border-radius: 18px; background: var(--raised); box-shadow: 0 4px 14px rgb(0 0 0 / 18%); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #1c1b1a; position: relative; overflow: visible; }
.tile .icon img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.tile .new { position: absolute; top: -6px; right: -6px; background: var(--tangerine); color: #1c1b1a; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 6px; border-radius: var(--pill); }
.letters.letters-roll-call { background: linear-gradient(135deg, #ffd36e, #f77b45); }
.letters.letters-toybox-turns { background: linear-gradient(135deg, #ffb2d1, #c46bff); }
.letters.letters-out-of-line { background: linear-gradient(135deg, #a9f0c4, #2fb38b); }
.letters.letters-other { background: linear-gradient(135deg, #f3eee6, #b8b1a8); }

.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.shelf .card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; text-decoration: none; }
.shelf .card .art { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--raised); }
.shelf .card .art.icon { object-fit: contain; padding: 12px; }
.shelf .card .body { padding: 12px 14px 14px; }
.shelf .card .name { font-weight: 800; }

.news { display: grid; gap: 10px; max-width: 44rem; }
.item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); padding: 12px 14px; text-decoration: none; }
.item .icon { width: 52px; height: 52px; border-radius: 13px; background: var(--raised); object-fit: cover; }
.item .kind { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.item .what { font-weight: 700; }
.item .more { color: var(--muted); font-size: 14.5px; }

.install { margin-top: 44px; display: grid; gap: 14px; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: 18px; }
@media (min-width: 760px) { .install { grid-template-columns: auto 1fr auto; align-items: center; } }
.install img { width: 64px; height: 64px; border-radius: 15px; }
.install .what { font-weight: 800; font-size: 18px; margin: 0; display: block; }
.install .more { color: var(--muted); font-size: 14.5px; margin: 4px 0 0; }
.cta { background: var(--tangerine); color: #1c1b1a; border: 0; border-radius: var(--pill); padding: 12px 20px; font: 700 15px/1 inherit; cursor: pointer; justify-self: start; }
@media (display-mode: standalone) { .install { display: none; } }

.foot { max-width: 82rem; margin: 16px auto 0; padding: 18px var(--gutter) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }

/* The front door's "not here" page. */
.lost { max-width: 40rem; margin: 0 auto; padding: 3rem 1.25rem; }
.lost h1 { font-size: 1.6rem; }

@media (prefers-reduced-motion: reduce) { .feature { transition: none; } .feature:hover { transform: none; } }
