/* apps365.games v3 - the arcade: playable cabinets, a page for each game, and the tools on the service pages.
   Sits on top of site.css and uses its tokens. Phones first: every rule below starts from a small screen. */

/* ---------- the cabinet ---------- */
.cabinet { --accent: var(--gold); --accent2: var(--pink); position: relative; border-radius: 26px; padding: 8px; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 86%, #fff) 0%, var(--accent) 38%, var(--accent2) 100%); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1), 0 12px 0 rgba(0, 0, 0, .42), 0 36px 70px -18px color-mix(in srgb, var(--accent) 60%, transparent); transition: box-shadow .3s; }
.cab-marquee { display: flex; align-items: center; gap: 10px; padding: 6px 10px 10px; color: #0B1026; }
.cab-icon { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(11, 16, 38, .35); }
.cab-title { font: 400 clamp(1.15rem, 2.4vw, 1.5rem)/1 var(--game); letter-spacing: .01em; }
.cab-tag { margin-left: auto; font: 400 .78rem/1 var(--game); letter-spacing: .08em; text-transform: uppercase; background: #0B1026; color: var(--accent); padding: 7px 10px; border-radius: 999px; }
.cab-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #0B1026; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .55); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.cab-screen.playing { touch-action: none; }
.cab-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cab-poster[hidden] { display: none; }
.cab-canvas, .cab-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }
.cab-canvas { touch-action: none; }
.cab-fallback { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); }
.cab-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 6px; color: #0B1026; font: 700 .82rem/1.2 var(--display); }
.cab-game { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cab-roblox { color: #0B1026; font-weight: 800; white-space: nowrap; }
.cab-roblox:hover { color: #0B1026; }

.cab-start, .cab-end { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 14px 16px; text-align: center; color: #fff; }
.cab-start { background: linear-gradient(180deg, rgba(11, 16, 38, .3) 0%, rgba(11, 16, 38, .84) 72%); }
.cab-start[hidden] { display: none; }
.cab-end { background: rgba(11, 16, 38, .9); animation: cab-in .28s ease; overflow: auto; }
@keyframes cab-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.cab-name { margin: 0; font: 400 clamp(1.6rem, 5vw, 2.5rem)/1 var(--game); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.cab-how { margin: 0; max-width: 42ch; font: 600 clamp(.82rem, 2.2vw, 1rem)/1.35 var(--body); color: #E9ECFB; }
.cab-tease { margin: 0; max-width: 46ch; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, .13); font: 500 clamp(.78rem, 2vw, .92rem)/1.3 var(--body); color: #fff; }
.cab-tease b { color: var(--gold); font: 400 1.08em/1 var(--game); letter-spacing: .02em; }
.cab-after { margin: 2px 0 4px; max-width: 46ch; font: 600 clamp(.82rem, 2.1vw, .98rem)/1.35 var(--body); color: #E9ECFB; }
.cab-best { margin: 0; padding: 0 44px; font: 700 .8rem/1.25 var(--display); color: #BAC0DA; }
.cab-visit { position: relative; z-index: 5; color: #fff; font: 700 .85rem/1.2 var(--display); text-decoration: underline; text-underline-offset: 3px; padding: 4px 44px; }
.cab-visit:hover { color: var(--gold); }
.cab-beat { margin: 0; background: var(--accent, var(--gold)); color: #0B1026; border-radius: 999px; padding: 6px 12px; font: 700 .85rem/1.2 var(--display); }
.cab-beat b { font-family: var(--game); font-weight: 400; }
.cab-play { font-family: var(--game); font-weight: 400; font-size: 1.15rem; letter-spacing: .03em; animation: cab-pulse 1.6s ease-in-out infinite; }
@keyframes cab-pulse { 50% { transform: translateY(-3px) scale(1.04); } }
.cab-tools { position: absolute; right: 8px; bottom: 8px; z-index: 4; display: flex; gap: 6px; }
.cab-tool { width: 38px; height: 38px; padding: 8px; border: 0; border-radius: 12px; background: rgba(11, 16, 38, .62); color: #fff; cursor: pointer; display: grid; place-items: center; }
/* A playable in a frame has its own sound button and its main button sits bottom right. */
.is-frame .cab-tools { top: 8px; right: 8px; bottom: auto; }
.is-frame .cab-tools { display: none; }
.cab-tool:hover { background: rgba(11, 16, 38, .85); }
.cab-tool svg { width: 100%; height: 100%; }
.cab-tool[hidden] { display: none; }
.cab-end-icon { width: 62px; height: 62px; border-radius: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); flex: none; }
.cab-end-main { display: grid; justify-items: center; gap: 5px; }
.cab-rank { margin: 0; font: 400 1.15rem/1 var(--game); letter-spacing: .05em; text-transform: uppercase; color: var(--accent, var(--gold)); }
.cab-score { margin: 0; font: 400 clamp(2.4rem, 9vw, 3.6rem)/1 var(--game); color: var(--gold); }
.cab-score small { font-size: .42em; color: #fff; }
.cab-new { margin: 0; background: var(--pink); color: #fff; padding: 5px 11px; border-radius: 999px; font: 400 .85rem/1 var(--game); letter-spacing: .05em; text-transform: uppercase; }
.cab-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cab-actions .btn { padding: 12px 18px; font-size: .95rem; }
.cab-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; min-height: 24px; }
.cab-link { background: none; border: 0; padding: 4px 2px; color: #fff; font: 700 .85rem/1.2 var(--display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cab-link:hover { color: var(--gold); }
.cab-toast { font: 700 .82rem/1.2 var(--display); color: var(--mint); }
.cabinet-pop { position: fixed; }

/* ---------- the stage: full screen on phones, and for anyone who asks ---------- */
.arcade-stage { position: fixed; inset: 0; z-index: 9999; background: #05070F; display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.arcade-stage[hidden] { display: none; }
.arcade-stage .cab-screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.arcade-stage .cab-full { display: none; }
.stage-close { position: absolute; top: calc(env(safe-area-inset-top) + 58px); right: calc(env(safe-area-inset-right) + 8px); z-index: 10; width: 40px; height: 40px; padding: 9px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.stage-close svg { width: 100%; height: 100%; display: block; }
.stage-close:hover { background: var(--pink); }
body.arcade-lock { overflow: hidden; }
@media (min-width: 900px) and (hover: hover) {
  .arcade-stage { background: rgba(5, 7, 15, .9); backdrop-filter: blur(6px); }
  .arcade-stage .cab-screen { width: min(92vw, calc(88vh * 1.6)); height: auto; aspect-ratio: 16 / 10; border-radius: 22px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .1); }
  .stage-close { top: 18px; right: 18px; }
}

/* ---------- a page for each game ---------- */
.gp-hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip; color: #fff; background: var(--dark); padding: 104px 0 58px; }
.gp-art { position: absolute; inset: -24px; z-index: -2; background-size: cover; background-position: center; filter: saturate(1.3) blur(3px); opacity: .55; animation: gp-drift 26s ease-in-out infinite alternate; }
@keyframes gp-drift { to { transform: scale(1.1) translateX(-1.5%); } }
.gp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 16% 8%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%), linear-gradient(180deg, color-mix(in srgb, var(--dark) 40%, transparent) 0%, color-mix(in srgb, var(--dark) 88%, #05070F) 88%); }
.gp-hero .crumbs { color: #DDE1F5; margin: 0 0 14px; font-size: .9rem; }
.gp-hero .crumbs a { color: #fff; }
.gp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.gp-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.gp-badges .pill-platform { background: rgba(255, 255, 255, .14); color: #fff; }
.pill-live-count, .eyebrow-count { background: var(--mint); color: #05281D; font-weight: 800; }
.pill-live-count[hidden], .eyebrow-count[hidden] { display: none; }
.eyebrow-count { border-radius: 999px; padding: 4px 10px; font-size: .8rem; }
.gp-title { display: flex; align-items: center; gap: 14px; }
.gp-title img { width: 68px; height: 68px; border-radius: 19px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28), 0 6px 0 rgba(0, 0, 0, .3); flex: none; }
.gp-title h1 { margin: 0; color: #fff; font: 400 clamp(2.3rem, 8vw, 4.6rem)/.98 var(--game); letter-spacing: .005em; text-shadow: 0 4px 0 rgba(0, 0, 0, .34); }
.gp-title-long h1 { font-size: clamp(1.9rem, 5.4vw, 3.3rem); }
.gp-tag { margin: 12px 0 8px; font: 400 clamp(1.25rem, 3.4vw, 1.75rem)/1.15 var(--game); color: var(--accent); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.gp-sum { margin: 0 0 20px; max-width: 54ch; color: #E9ECFB; }
.gp-how .gp-num { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(150deg, var(--accent), var(--accent2)); color: #0B1026; font: 400 1.8rem/1 var(--game); box-shadow: 0 5px 0 rgba(0, 0, 0, .18); transform: rotate(-4deg); margin-bottom: 14px; }
.gp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.gp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.gp-steps h3 { font: 400 1.5rem/1.1 var(--game); margin-bottom: 6px; }
.gp-steps p { margin: 0; }
.gallery-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.gallery-strip button { flex: 0 0 min(86vw, 460px); scroll-snap-align: center; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: none; box-shadow: var(--shadow); }
.gallery-strip img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shelf-item { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 18px 12px 16px; text-align: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; color: var(--on-dark-muted); font-size: .9rem; line-height: 1.3; transition: transform .22s, background .22s; }
.shelf-item:hover { transform: translateY(-5px) rotate(-1deg); background: rgba(255, 255, 255, .1); }
.shelf-item img { width: 92px; height: 92px; border-radius: 22px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }
.shelf-item b { color: #fff; font: 400 1.1rem/1.1 var(--game); }
.gp-sticky { position: fixed; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom) + 8px); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 18px; background: rgba(11, 16, 38, .93); box-shadow: 0 0 0 2px var(--accent), 0 14px 30px rgba(0, 0, 0, .4); color: #fff; font: 400 1rem/1.1 var(--game); backdrop-filter: blur(6px); }
.gp-sticky img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.gp-sticky span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body:has(.gp-sticky) { padding-bottom: 76px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; position: relative; z-index: 2; }
.card-actions .btn { padding: 11px 15px; font-size: .92rem; }
.game-card .card-body { display: flex; flex-direction: column; flex: 1; }
.game-card .card-actions { margin-top: auto; padding-top: 14px; }

/* ---------- home: the hall ---------- */
.hero-arcade { padding: 104px 0 56px; }
.hero-arcade .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero-arcade h1 { font-size: clamp(2.4rem, 4.7vw, 4rem); }
.hero-arcade .rot { display: inline-block; min-width: 0; color: var(--gold); font-weight: 700; }
.hero-arcade .rot-word { display: inline-block; }
.hall-picks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 22px; }
.hall-pick { padding: 0; border: 0; border-radius: 15px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), 0 4px 0 rgba(0, 0, 0, .4); transition: transform .16s, box-shadow .16s; }
.hall-pick img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.75); transition: filter .16s; }
.hall-pick:hover { transform: translateY(-3px); }
.hall-pick:hover img, .hall-pick[aria-pressed="true"] img { filter: none; }
.hall-pick[aria-pressed="true"] { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 3px var(--accent), 0 6px 0 rgba(0, 0, 0, .4), 0 12px 24px -6px var(--accent); }

/* ---------- the tools ---------- */
.lab-wrap { scroll-margin-top: 90px; }
.lab { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 20px; box-shadow: var(--shadow); }
.lab-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13); color: var(--on-dark-muted); box-shadow: none; }
.lab-side { display: grid; gap: 12px; align-content: start; }
.lab-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.lab-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 700 .95rem/1.25 var(--display); color: var(--navy); }
.lab-dark .lab-label { color: #fff; }
.lab-label output { font: 400 1.3rem/1 var(--game); color: var(--indigo-dark); white-space: nowrap; }
.lab-dark .lab-label output { color: var(--gold); }
.lab-label output.over { color: #D42A63; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 12px; border-radius: 8px; background: linear-gradient(90deg, var(--gold) var(--fill), #DFE1EE var(--fill)); }
input[type="range"]::-moz-range-track { height: 12px; border-radius: 8px; background: linear-gradient(90deg, var(--gold) var(--fill), #DFE1EE var(--fill)); }
.lab-dark input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--gold) var(--fill), rgba(255, 255, 255, .18) var(--fill)); }
.lab-dark input[type="range"]::-moz-range-track { background: linear-gradient(90deg, var(--gold) var(--fill), rgba(255, 255, 255, .18) var(--fill)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -10px; border-radius: 11px; background: var(--indigo); border: 3px solid #fff; box-shadow: 0 3px 0 var(--indigo-edge), 0 6px 12px rgba(15, 22, 46, .3); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 11px; background: var(--indigo); border: 3px solid #fff; box-shadow: 0 3px 0 var(--indigo-edge); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 15px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: 700 .9rem/1 var(--display); cursor: pointer; }
.chip:hover { border-color: var(--indigo); color: var(--indigo-dark); }
.dark .chip { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile-out { display: grid; align-content: space-between; gap: 8px; min-width: 0; padding: 12px 10px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.tile-out span { font: 700 .76rem/1.15 var(--display); color: var(--muted); }
.tile-out b { font: 400 clamp(1.15rem, 4.6vw, 2rem)/1 var(--game); color: var(--navy); overflow-wrap: anywhere; }
.tile-out.hot { background: var(--night); border-color: var(--night); }
.tile-out.hot span { color: var(--on-dark-muted); }
.tile-out.hot b { color: var(--gold); }
.lab-note { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.lab-note.ok { color: #0B7A55; font-weight: 600; }
.lab-note.over { color: #C21F57; font-weight: 600; }
.stack { display: flex; height: 44px; border-radius: 14px; overflow: hidden; font: 400 .95rem/44px var(--game); text-align: center; }
.stack i { font-style: normal; white-space: nowrap; overflow: hidden; }
.s-roblox { flex: 30; background: #5B6172; color: #fff; }
.s-you { flex: 70; background: var(--mint); color: #05281D; }
.switch { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; font: 600 .95rem/1.3 var(--body); cursor: pointer; }
.dark .switch { color: #fff; }
.switch input { position: absolute; opacity: 0; width: 46px; height: 28px; margin: 0; cursor: pointer; }
.switch span { flex: none; width: 46px; height: 28px; border-radius: 999px; background: #C9CDDC; position: relative; transition: background .16s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .16s; }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.verdict { margin: 0; padding: 12px 14px; border-radius: 14px; font: 700 .98rem/1.35 var(--display); min-height: 3.6em; }
.verdict.good { background: #DFF8EE; color: #075A40; }
.verdict.warn { background: #FFF3CF; color: #6E4F00; }
.verdict.bad { background: #FFE1EA; color: #96123F; }
.chart { height: 160px; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart-cap { margin: 0; font-size: .84rem; color: var(--muted); }
.lab-dark .chart-cap, .lab-dark .lab-note { color: var(--on-dark-muted); }
.lab-input { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; font: 500 1rem/1.35 var(--body); color: var(--navy); background: #fff; resize: vertical; }
.lab-input:focus { outline: 0; border-color: var(--indigo); }
.swatch { width: 44px; height: 44px; border: 3px solid #fff; border-radius: 13px; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--navy); }
.store-mocks { gap: 12px; }
.mock { border-radius: 18px; padding: 12px 14px 14px; border: 1px solid var(--line); background: #fff; }
.mock-android { background: #F4F7F4; }
.mock-label { margin: 0 0 8px; font: 700 .76rem/1 var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mock-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mock-icon { flex: none; width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 400 1.8rem/1 var(--game); text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.mock-icon.round { border-radius: 18px; }
.mock-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mock-text b { font: 700 1rem/1.25 var(--body); color: #111; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock-text small { font: 400 .84rem/1.3 var(--body); color: #555; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mock-get { flex: none; padding: 7px 18px; border-radius: 999px; background: #EEF0F6; color: #1B6FEA; font: 700 .9rem/1 var(--body); }
.feel-grid { display: grid; gap: 28px; align-items: center; }
.feel-switches { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 16px 0; }
.phone-frame { justify-self: center; width: min(100%, 310px); padding: 11px; border-radius: 42px; background: linear-gradient(160deg, #2B3468, #0B1026); box-shadow: 0 0 0 3px rgba(255, 255, 255, .14), 0 34px 60px -20px rgba(0, 0, 0, .7); }
.cabinet-phone { padding: 0; background: none; box-shadow: none; border-radius: 32px; }
.cabinet-phone .cab-screen { aspect-ratio: 9 / 16; border-radius: 32px; }
.cabinet-phone .cab-name { font-size: 2rem; }
.tool-jump { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; }
.tool-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font: 700 .88rem/1 var(--display); }
.tool-jump a:hover { background: var(--gold); color: var(--night); }
.tool-grid { display: grid; gap: 14px; }
.tool-card { display: grid; gap: 5px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--indigo), var(--shadow); color: var(--text); }
.tool-card b { font: 400 1.25rem/1.15 var(--game); color: var(--navy); }
.trends { display: grid; gap: 14px; }
.trend { display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.trend h3 { margin: 0; font: 400 1.3rem/1.15 var(--game); }
.trend p { margin: 0; font-size: .96rem; }
.trend-do { font-weight: 700; color: var(--navy); }
.trend a { font-size: .85rem; font-weight: 700; }
.types { margin-top: 44px; text-align: center; }
.types ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; }
.types li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font: 700 .9rem/1.2 var(--display); }
.roadmap { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.roadmap[hidden] { display: none; }
.roadmap-title { margin: 0 0 8px; font: 700 .92rem/1.3 var(--display); color: #fff; }
.roadmap-title b { color: var(--gold); font-family: var(--game); font-weight: 400; font-size: 1.15em; }
.road-bars { display: flex; gap: 3px; border-radius: 10px; overflow: hidden; }
.road-bars span { min-width: 0; padding: 8px 4px; text-align: center; background: var(--indigo); color: #fff; transition: flex .25s; }
.road-bars span:nth-child(2) { background: var(--violet); }
.road-bars span:nth-child(3) { background: var(--pink); }
.road-bars span:nth-child(4) { background: #0FA877; }
.road-bars b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 .72rem/1 var(--display); }

/* On a phone the game itself is the call to action, so it comes straight after the headline. */
@media (max-width: 640px) {
  .hero-arcade .cta-row, .hero-arcade .trust { display: none; }
  .hero-arcade .lead { font-size: 1rem; line-height: 1.5; margin: 0; }
  .hero-arcade { padding-top: 96px; }
  .gp-sum { display: none; }
}
.arcade-stage::after { content: "Turn your phone sideways for a bigger game"; position: absolute; left: 0; right: 58px; bottom: calc(env(safe-area-inset-bottom) + 18px); text-align: center; color: #BAC0DA; font: 700 .85rem/1.3 var(--display); pointer-events: none; }
@media (orientation: landscape), (min-width: 900px) { .arcade-stage::after { content: none; } }

/* ---------- bigger screens ---------- */
@media (min-width: 640px) {
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .gp-steps { grid-template-columns: repeat(3, 1fr); }
  .tool-grid, .trends { grid-template-columns: repeat(2, 1fr); }
  .feel-switches { grid-template-columns: 1fr 1fr; }
  .lab { padding: 28px; }
  .tile-out { padding: 16px 14px; }
  .tile-out span { font-size: .85rem; }
}
@media (min-width: 981px) {
  .cab-screen { aspect-ratio: 16 / 10; }
  .cabinet-phone .cab-screen { aspect-ratio: 9 / 16; }
  .gp-hero { padding: 116px 0 76px; }
  .gp-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 44px; align-items: center; }
  .gp-sticky { display: none; }
  body:has(.gp-sticky) { padding-bottom: 0; }
  .hero-arcade { padding: 122px 0 84px; }
  .hero-arcade .hero-grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 44px; }
  .lab { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; padding: 34px; }
  .feel-grid { grid-template-columns: 1.1fr .9fr; gap: 50px; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .trends { grid-template-columns: repeat(2, 1fr); }
  .shelf { grid-template-columns: repeat(6, 1fr); }
  .shelf:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); }
  .shelf:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); }
  .shelf:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 240px)); justify-content: center; }
}

/* A landscape phone is the main target: nothing may sit under the fold on the end card or start card. */
@media (max-height: 460px) {
  .gp-hero { padding: 84px 0 34px; }
  .gp-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; }
  .gp-title h1 { font-size: 2.1rem; }
  .gp-title img { width: 48px; height: 48px; border-radius: 14px; }
  .gp-sum { display: none; }
  .hero-arcade { padding: 84px 0 30px; }
  .hero-arcade .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
  .hero-arcade .lead, .hero-arcade .trust { display: none; }
  .hall-picks { margin-top: 12px; }
  .cab-marquee, .cab-foot { display: none; }
  .cab-start, .cab-end { gap: 5px; padding: 6px 12px; }
  .cab-how { display: none; }
  .cab-tease { padding: 4px 10px; }
  .cab-best { display: none; }
  .cab-visit { padding: 2px 44px; }
  .cab-after { flex-basis: 100%; order: 1; margin: 0; }
  .cab-end { flex-direction: row; flex-wrap: wrap; align-content: center; }
  .cab-end-main { order: 1; }
  .cab-end-icon { order: 0; width: 48px; height: 48px; }
  .cab-actions { order: 2; flex-basis: 100%; }
  .cab-links { order: 3; flex-basis: 100%; }
  .cab-score { font-size: 2.1rem; }
  .gp-sticky { display: none; }
  body:has(.gp-sticky) { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-art, .cab-play, .cab-end { animation: none; }
  .road-bars span, .hall-pick, .shelf-item { transition: none; }
}
