/* GenZ Play Studios: one stylesheet for every page. Each game passes --c (colour) and --d (deep shade). */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --night: #120a33;
  --indigo: #24135f;
  --ink: #1b1140;
  --body: #564e72;
  --paper: #ffffff;
  --mist: #f6f4fd;
  --line: #e5e1f3;
  --marigold: #ffb627;
  --rani: #d31a70;
  --violet: #6a3df0;
  --on-dark: #d9d4f0;
  --display: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --text: "Segoe UI", Roboto, "Noto Sans", system-ui, -apple-system, sans-serif;
  --page: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --lift: 0 2px 4px rgba(27, 17, 64, 0.05), 0 18px 40px -18px rgba(27, 17, 64, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--body); font: 17px/1.65 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.28rem; line-height: 1.2; }
p { margin: 0; }
a { color: var(--rani); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .foot :focus-visible { outline-color: var(--marigold); }

.wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
.section { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { margin-top: 14px; font-size: 1.14rem; }
.mist { background: var(--mist); }

/* Dark backdrop shared by heroes */
.dark { color: var(--on-dark); background-color: var(--night); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark a:not(.btn) { color: #ffd47a; }
.dark a:not(.btn):hover { color: #fff; }
.night-sky {
  background-image:
    radial-gradient(760px 520px at 78% 18%, rgba(211, 26, 112, 0.42), transparent 70%),
    radial-gradient(820px 620px at 18% 110%, rgba(106, 61, 240, 0.6), transparent 72%),
    url("pattern.svg"),
    linear-gradient(160deg, #1d0f52, var(--night) 70%);
}

/* Buttons and status */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px;
  border: 0; border-radius: 14px; background: var(--ink); color: #fff; font: 600 1.05rem var(--display);
  text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(27, 17, 64, 0.6); }
.btn.gold { background: linear-gradient(180deg, #ffc64d, #ffa914); color: var(--ink); box-shadow: 0 10px 26px -10px rgba(255, 170, 20, 0.85); }
.btn.gold:hover { color: var(--ink); }
.btn.ghost { background: rgba(255, 255, 255, 0.09); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.34); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.17); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.soon {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px;
  background: #fff1cf; color: #5d3d00; font: 600 0.84rem/1.6 var(--display); white-space: nowrap;
}
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e89400; }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); color: #fff; font: 500 0.98rem var(--display);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px rgba(255, 182, 39, 0.25); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.93); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font: 600 1.24rem var(--display); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand span span { color: var(--rani); }
.links { display: flex; align-items: center; gap: 6px; }
.links a { padding: 8px 14px; border-radius: 10px; color: var(--ink); font: 500 1.02rem var(--display); text-decoration: none; }
.links a:hover { background: var(--mist); color: var(--ink); }
.links a[aria-current="page"] { background: var(--mist); color: var(--rani); }
.links a.nav-action { margin-left: 8px; padding: 9px 18px; background: var(--ink); color: #fff; }
.links a.nav-action:hover { background: var(--rani); color: #fff; }
.menu { display: none; position: relative; }
.menu summary { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--mist); color: var(--ink); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu .links { position: absolute; right: 0; top: 56px; display: grid; width: 230px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: var(--lift), 0 0 0 1px var(--line); }
.menu .links a.nav-action { margin: 4px 0 0; text-align: center; }

/* Phone mockup: --w sets its size */
.phone {
  --w: 260px; position: relative; flex: none; width: var(--w); padding: calc(var(--w) * 0.026);
  border-radius: calc(var(--w) * 0.125); background: linear-gradient(145deg, #47445a, #15131f 42%, #0b0a12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 34px 60px -20px rgba(6, 2, 30, 0.75);
}
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: calc(var(--w) * 0.1); }

/* Home hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 660px; padding-top: 56px; padding-bottom: 84px; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(2.9rem, 5.6vw, 4.9rem); line-height: 1.02; text-wrap: balance; }
.hero-copy > p { max-width: 50ch; font-size: 1.2rem; }
.hero .btn-row { margin-top: 32px; }
.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; top: 50%; left: 50%; }
.hero-phones .a { --w: 212px; transform: translate(-124%, -47%) rotate(-8deg); }
.hero-phones .c { --w: 212px; transform: translate(24%, -47%) rotate(8deg); }
.hero-phones .b { --w: 262px; z-index: 2; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 44px 80px -18px rgba(4, 0, 26, 0.95); }

/* Facts that overlap the hero */
.strip-holder { position: relative; z-index: 3; margin-top: -48px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; background: #fff; box-shadow: var(--lift), 0 0 0 1px var(--line); }
.strip > div { padding: 24px 28px; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip b { display: block; color: var(--ink); font: 600 1.55rem/1.15 var(--display); }
.strip span { font-size: 0.97rem; }

/* Game cards */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; grid-column: span 4; overflow: hidden;
  border-radius: 22px; background: #fff; box-shadow: var(--lift), 0 0 0 1px rgba(27, 17, 64, 0.06); transition: transform 0.2s, box-shadow 0.2s;
}
.card.wide { grid-column: span 6; }
.card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(27, 17, 64, 0.06), 0 30px 54px -22px rgba(27, 17, 64, 0.45); }
.card-art { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 24px 24px; }
.card .kind { color: var(--c); font: 600 0.95rem var(--display); }
.card h3 { margin: 3px 0 8px; font-size: 1.5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 3px solid var(--violet); outline-offset: -3px; }
.card p { flex: 1; font-size: 1rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card-foot .more { color: var(--ink); font: 600 0.98rem var(--display); }
.card:hover .more { color: var(--rani); }
.section-action { margin-top: 40px; text-align: center; }

/* Spotlights */
.spot { overflow: hidden; background-image: radial-gradient(700px 500px at 80% 30%, color-mix(in srgb, var(--c) 72%, #fff 8%), transparent 74%), url("pattern.svg"), linear-gradient(150deg, var(--c), var(--d)); }
.spot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 80px); padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.spot.flip .spot-copy { order: 2; }
.spot-copy .kind { color: #ffd47a; font: 600 1.05rem var(--display); }
.spot h2 { margin: 8px 0 16px; }
.spot-copy > p { max-width: 50ch; font-size: 1.13rem; color: #f1eefb; }
.spot ul { margin: 22px 0 28px; padding: 0; list-style: none; color: #fff; }
.spot li { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.spot li svg { flex: none; width: 21px; height: 21px; color: var(--marigold); }
.spot-phones { display: flex; justify-content: center; align-items: center; }
.spot-phones .phone { --w: 234px; z-index: 2; }
.spot-phones .phone + .phone { --w: 204px; z-index: 1; margin-left: -34px; transform: rotate(6deg); }

/* Families */
.family { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.family .lead { margin: 16px 0 26px; font-size: 1.14rem; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trust > div { padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--lift); }
.trust h3 { margin: 14px 0 6px; font-size: 1.16rem; }
.trust p { font-size: 0.98rem; }
.badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, var(--violet), var(--rani)); color: #fff; }
.badge svg { width: 24px; height: 24px; }

/* Closing call */
.closing .wrap { text-align: center; }
.closing-box { padding: clamp(44px, 7vw, 76px) clamp(20px, 5vw, 60px); border-radius: 30px; overflow: hidden; }
.closing h2 { max-width: 20ch; margin: 0 auto 14px; }
.closing p { max-width: 54ch; margin: 0 auto; font-size: 1.12rem; }
.closing .icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.closing .icons img { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.closing .btn-row { justify-content: center; margin-top: 28px; }

/* Page heroes */
.page-hero { padding-top: clamp(52px, 8vw, 92px); padding-bottom: clamp(60px, 8vw, 92px); }
.page-hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.6rem); }
.page-hero .status + h1 { margin-top: 20px; }
.page-hero p { max-width: 56ch; margin-top: 16px; font-size: 1.2rem; }
.page-hero .btn-row { margin-top: 28px; }

/* All games */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button { min-height: 44px; padding: 8px 20px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 500 1rem var(--display); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.filters button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shelf-item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; min-height: 340px; overflow: hidden; border-radius: 24px;
  background-image: radial-gradient(420px 320px at 85% 10%, color-mix(in srgb, var(--c) 78%, #fff 12%), transparent 72%), linear-gradient(150deg, var(--c), var(--d));
  color: #f1eefb; box-shadow: var(--lift); transition: transform 0.2s;
}
.shelf-item:hover { transform: translateY(-5px); }
.shelf-text { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 0 28px 28px; }
.shelf-text img { width: 74px; height: 74px; border-radius: 19px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); }
.shelf-text .kind { margin-top: 16px; color: #ffd47a; font: 600 0.95rem var(--display); }
.shelf-text h2 { margin: 2px 0 8px; color: #fff; font-size: 1.85rem; }
.shelf-text h2 a { color: inherit; text-decoration: none; }
.shelf-text h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.shelf-text h2 a:focus-visible { outline: none; }
.shelf-text h2 a:focus-visible::after { outline: 3px solid var(--marigold); outline-offset: -4px; }
.shelf-text p { flex: 1; font-size: 0.99rem; }
.shelf-text .soon { margin-top: 16px; }
.shelf-item .phone { --w: 184px; align-self: start; margin: 30px 0 -60px; transform: rotate(5deg); }

/* One game */
.game-hero { overflow: hidden; background-image: radial-gradient(780px 560px at 76% 22%, color-mix(in srgb, var(--c) 76%, #fff 12%), transparent 74%), url("pattern.svg"), linear-gradient(150deg, var(--c), var(--d)); }
.game-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: center; padding-top: 28px; padding-bottom: 56px; }
.crumb { grid-column: 1 / -1; font-size: 0.96rem; }
.game-hero .icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.game-hero h1 { margin-top: 20px; font-size: clamp(2.8rem, 6.6vw, 4.8rem); }
.game-hero .sub { margin-top: 4px; color: #ffd47a; font: 500 1.35rem var(--display); }
.game-hero .line { max-width: 46ch; margin: 16px 0 22px; color: #f4f1fc; font-size: 1.17rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li { padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 500 0.95rem var(--display); }
.store-status { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 26px; border-radius: 14px; background: linear-gradient(180deg, #ffc64d, #ffa914); color: var(--ink); font: 600 1.1rem var(--display); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55); }
.store-status svg { width: 22px; height: 22px; }
.status-note { margin-top: 12px; color: #f1eefb; font-size: 0.95rem; }
.game-phones { display: flex; justify-content: center; align-items: center; }
.game-phones .phone { --w: 262px; z-index: 2; }
.game-phones .phone + .phone { --w: 214px; z-index: 1; margin-left: -56px; transform: rotate(7deg); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { padding: 26px; border-radius: 20px; background: #fff; box-shadow: var(--lift), 0 0 0 1px var(--line); }
.tile .badge { background: linear-gradient(145deg, var(--c), var(--d)); }
.tile h3 { margin: 16px 0 6px; font-size: 1.2rem; }
.tile p { font-size: 0.99rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 26px; border-radius: 20px; background: #fff; box-shadow: var(--lift); color: var(--ink); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: linear-gradient(145deg, var(--c), var(--d)); color: #fff; font: 600 1.25rem var(--display); }
.gallery { overflow: hidden; padding-top: clamp(64px, 9vw, 104px); background-image: url("pattern.svg"), linear-gradient(160deg, var(--d), var(--night)); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.gallery-controls { display: flex; gap: 10px; }
.gallery-controls button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.13); color: #fff; cursor: pointer; }
.gallery-controls button:hover { background: rgba(255, 255, 255, 0.26); }
.gallery-track { display: flex; gap: 26px; overflow-x: auto; padding: 8px max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter))) 56px; scroll-snap-type: x proximity; scrollbar-color: rgba(255, 255, 255, 0.35) transparent; }
.gallery-track .phone { --w: 262px; scroll-snap-align: center; }
.gallery-track:focus-visible { outline-offset: -4px; }

/* Contact */
.contact-card { position: relative; z-index: 2; margin-top: -44px; padding: clamp(26px, 4vw, 40px); border-radius: 24px; background: #fff; box-shadow: var(--lift), 0 0 0 1px var(--line); }
.contact-card p { margin-bottom: 4px; }
.mail { display: inline-block; font: 600 clamp(1.25rem, 4vw, 2.3rem) var(--display); overflow-wrap: anywhere; }
.contact-card .btn { margin-top: 18px; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.topic { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border-radius: 20px; background: var(--mist); }
.topic h3 { margin: 16px 0 6px; }
.topic p { flex: 1; font-size: 0.99rem; }
.topic a { margin-top: 14px; font: 600 1rem var(--display); }
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; color: var(--ink); font: 500 1.16rem var(--display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--rani); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 44px 22px 2px; }
.studio-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; margin: 0; }
.studio-info dt { font-size: 0.93rem; }
.studio-info dd { margin: 0; color: var(--ink); font: 600 1.1rem var(--display); overflow-wrap: anywhere; }
.studio-info dd a { color: inherit; }

/* Privacy */
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc summary { display: none; }
.toc-title { margin-bottom: 8px; color: var(--ink); font: 600 1.08rem var(--display); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--body); font-size: 0.94rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { background: var(--mist); color: var(--ink); }
.doc { max-width: 720px; min-width: 0; }
.doc h2 { margin: 40px 0 10px; font-size: 1.5rem; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc li { margin-bottom: 4px; }
.doc .meta { color: var(--ink); }
.doc .summary { margin: 22px 0; padding: 22px 26px; border-radius: 20px; background: var(--mist); }
.doc a { overflow-wrap: anywhere; }

/* Footer */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-top: 60px; padding-bottom: 40px; }
.foot .brand { color: #fff; }
.foot .brand span span { color: #ffd47a; }
.foot-about { max-width: 34ch; margin-top: 14px; font-size: 0.98rem; }
.foot h2 { margin-bottom: 12px; color: #fff; font-size: 1.08rem; letter-spacing: 0; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin-top: 6px; }
.foot a:not(.brand) { color: var(--on-dark); font-size: 0.97rem; text-decoration: none; overflow-wrap: anywhere; }
.foot a:not(.brand):hover { color: #ffd47a; text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 20px; padding-bottom: 26px; font-size: 0.88rem; }
.foot-base::before { content: ""; flex-basis: 100%; height: 1px; margin-bottom: 14px; background: rgba(255, 255, 255, 0.14); }

@media (max-width: 1200px) {
  .hero-phones .b { --w: 220px; }
  .hero-phones .a, .hero-phones .c { --w: 170px; }
}

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-phones { height: 470px; }
  .hero-phones .b { --w: 232px; }
  .hero-phones .a, .hero-phones .c { --w: 190px; }
  .card, .card.wide { grid-column: span 6; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .spot .wrap, .family, .game-hero .wrap, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .spot.flip .spot-copy { order: 0; }
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .toc { position: static; max-height: none; padding: 4px 18px; border-radius: 14px; background: var(--mist); }
  .toc summary { display: block; padding: 12px 0; color: var(--ink); font: 600 1.05rem var(--display); cursor: pointer; }
  .toc-title { display: none; }
  .toc ol { padding-bottom: 10px; }
}
@media (max-width: 760px) {
  .links-wide { display: none; }
  .menu { display: block; }
  .card, .card.wide { grid-column: 1 / -1; }
  .tiles, .steps, .topics, .studio-info { grid-template-columns: minmax(0, 1fr); }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .strip > div { padding: 18px; }
  .strip b { font-size: 1.28rem; }
  .gallery-head { align-items: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .top .wrap { min-height: 62px; }
  .brand { font-size: 1.08rem; gap: 9px; }
  .brand img { width: 34px; height: 34px; }
  .hero .wrap { padding-top: 40px; }
  .hero-phones { height: 372px; margin: 0 calc(var(--gutter) * -1); }
  .hero-phones .b { --w: 178px; }
  .hero-phones .a, .hero-phones .c { --w: 142px; }
  .spot-phones .phone { --w: 176px; }
  .spot-phones .phone + .phone { --w: 150px; margin-left: -28px; }
  .game-phones .phone { --w: 182px; }
  .game-phones .phone + .phone { --w: 148px; margin-left: -40px; }
  .gallery-track .phone { --w: 214px; }
  .shelf-item { grid-template-columns: minmax(0, 1fr) 112px; min-height: 310px; }
  .shelf-text { padding: 22px 0 22px 20px; }
  .shelf-item .phone { --w: 136px; margin-top: 30px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .closing-box { border-radius: 22px; }
}
