/* Hockey One Vision — ice-rink social play */
:root {
  --ink: #1b2430;
  --ink-soft: #4a5563;
  --muted: #6b7785;
  --line: #d7e0ea;
  --paper: #ffffff;
  --frost: #f3f7fb;
  --ice: #e8f1f8;
  --accent: #c23b3b;
  --accent-deep: #9e2f2f;
  --accent-soft: #f6e4e4;
  --blue-line: #3d6fad;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px rgba(27, 36, 48, 0.06);
  --max: 1120px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--frost);
  line-height: 1.6;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
}

.skip-link:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 3px solid var(--blue-line);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
.brand-mark {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-size: 1.15rem;
}

.brand-mark span {
  color: var(--accent);
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-badge img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 560;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-on-media {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid transparent;
}

.btn-on-media:hover {
  color: var(--accent-deep);
}

.hero {
  position: relative;
  min-height: min(42vh, 420px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(27, 36, 48, 0.42);
}

.hero-copy {
  padding: 3rem 0 2rem;
  color: #fff;
  max-width: 34rem;
  animation: rise 0.7s ease both;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 0.6rem;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 36rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 0 0.75rem;
}

.section-head h2 em {
  font-style: normal;
  color: var(--accent);
}

.section-head p {
  margin: 0;
}

.section--ice {
  background: var(--ice);
}

.section--safe {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.games-grid,
.games-mosaic {
  display: grid;
  gap: 1rem;
}

.games-grid {
  grid-template-columns: repeat(2, 1fr);
}

.games-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.games-grid--4 .game-card-body {
  padding: 1rem 1rem 1.15rem;
}

.games-grid--4 .game-card h3 {
  font-size: 1.1rem;
}

.games-grid--4 .game-card p {
  font-size: 0.88rem;
  min-height: 2.6em;
}

.games-grid--4 .btn {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
}

.games-mosaic {
  grid-template-columns: 1.2fr 0.9fr;
  grid-template-rows: repeat(3, minmax(0, auto));
  align-items: stretch;
}

.game-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
}

.game-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--ice);
}

.game-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.game-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.game-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.game-card--feature {
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.game-card--feature img {
  flex: 1 1 auto;
  aspect-ratio: 3 / 4;
  min-height: 280px;
  max-height: none;
}

.game-card--feature .game-card-body {
  margin-top: auto;
}

.game-card--row {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  align-items: stretch;
}

.game-card--row img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.game-card--row .game-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.1rem;
}

.game-card--row .game-card-body p {
  margin-bottom: 0.75rem;
}

.game-card--row .btn {
  align-self: flex-start;
}

.featured-play {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-play-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.featured-play-head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.game-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 420px;
  background: var(--ice);
  overflow: hidden;
}

.game-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

.game-frame-wrap[data-game-facade] {
  display: grid;
  place-items: center;
  background-color: #1b2430;
  background-size: cover;
  background-position: center;
}

.game-frame-wrap[data-game-facade]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 0;
}

.game-frame-wrap.is-playing {
  display: block;
  background: #0f1720;
}

.game-frame-wrap.is-playing::before {
  display: none;
}

.facade-panel {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.35rem 1.4rem;
  max-width: 22rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

.facade-panel p {
  color: var(--ink);
  margin: 0 0 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.facade-panel .btn {
  min-width: 180px;
}

.disclaimer {
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.disclaimer a {
  font-weight: 650;
}

.path-grid,
.path-rail,
.why-grid,
.why-list,
.faq-list,
.partner-grid,
.partner-strip {
  display: grid;
  gap: 1rem;
}

.path-grid {
  grid-template-columns: repeat(4, 1fr);
}

.path-rail {
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.5rem;
  position: relative;
}

.path-rail::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--line);
  pointer-events: none;
}

.path-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem;
  text-align: left;
}

.path-rail .path-item:nth-child(even) {
  margin-top: 2.75rem;
}

.path-item strong {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
}

.path-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.path-item p {
  margin: 0;
  font-size: 0.93rem;
}

.why-grid {
  grid-template-columns: repeat(3, 1fr);
}

.why-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.why-band__intro {
  position: sticky;
  top: 5.5rem;
}

.why-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.why-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.15rem 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.why-list .why-item:last-child {
  border-bottom: 1px solid var(--line);
}

.why-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
}

.why-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.why-item p {
  margin: 0;
  font-size: 0.93rem;
}

.safe-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.safe-split h2,
.safe-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.safe-stack {
  display: grid;
  gap: 1.75rem;
}

.partner-strip {
  grid-template-columns: repeat(4, 1fr);
}

.note-bar {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.25rem 0 1.4rem;
}

.note-bar::before {
  content: "";
  width: 5px;
  background: var(--accent);
  flex-shrink: 0;
}

.note-bar p {
  margin: 0;
  padding: 0.95rem 1rem;
  font-weight: 650;
  color: var(--ink);
  font-size: 0.95rem;
}

.partner-grid {
  grid-template-columns: repeat(2, 1fr);
}

.partner-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-height: 96px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s ease;
}

.partner-card:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.partner-card strong {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.partner-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.2rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.95rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  color: var(--accent-deep);
}

.faq-item p {
  margin: 0 0 1rem;
}

.about-hero {
  padding: 2.5rem 0 1rem;
}

.about-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.about-hero__copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-hero__copy p {
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.about-hero__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--ice);
}

.about-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.about-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
}

.about-panel p {
  margin: 0 0 0.85rem;
}

.about-panel .btn {
  margin-top: 0.35rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.about-value {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.about-value img {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
}

.about-value h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.about-value p {
  margin: 0;
  font-size: 0.93rem;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  max-width: 40rem;
  margin: 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--frost);
  color: var(--ink);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #e8f5ee;
  color: #1f4d36;
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.contact-card p {
  margin: 0 0 0.55rem;
}

.site-footer {
  margin-top: 3rem;
  background: #15202b;
  color: #d7dee7;
  padding: 3.5rem 0 2rem;
}

.site-footer a {
  color: #f0f4f8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffb3b3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand-mark {
  color: #fff;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p,
.site-footer li,
.footer-meta {
  color: #aeb8c4;
  font-size: 0.93rem;
}

.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
  letter-spacing: 0.02em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #93a0ae;
}

.age-gate,
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(27, 36, 48, 0.16);
  padding: 1.2rem;
}

.age-gate {
  inset: 0;
  max-width: none;
  border-radius: 0;
  display: none;
  place-items: center;
  background: rgba(21, 32, 43, 0.72);
}

.age-gate.is-open {
  display: grid;
}

.age-panel,
.cookie-banner {
  max-width: 420px;
}

.age-panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--line);
}

.age-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.cookie-banner {
  display: none;
  left: auto;
  right: 1rem;
  bottom: 1rem;
}

.cookie-banner.is-open {
  display: block;
}

.game-shell {
  min-height: 100vh;
  background: var(--frost);
  padding: 1rem;
}

.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.game-stage {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  width: min(100%, 860px);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--ice);
}

.game-stage-body {
  padding: 0.9rem 1rem 1.1rem;
}

.game-stage canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: #c5e3f4;
  touch-action: manipulation;
  image-rendering: auto;
  box-shadow: inset 0 0 0 1px rgba(27, 36, 48, 0.08);
}

.page-hero--game {
  padding: 1.25rem 0 0.65rem;
}

.page-hero--game h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin-bottom: 0.35rem;
}

.page-hero--game p {
  font-size: 0.95rem;
}

.section--game {
  padding: 0.5rem 0 1.5rem;
}

.game-stage--fit {
  width: min(100%, 720px);
}

.game-stage--fit .game-stage-body {
  padding: 0.7rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.game-stage--fit canvas {
  margin-inline: auto;
  max-width: 100%;
  flex: 0 0 auto;
}

.game-hint {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.game-toolbar--compact {
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.game-controls .btn {
  min-height: 42px;
  padding: 0.45rem 0.85rem;
}

.game-hud--inline {
  margin-top: 0;
  margin-left: auto;
}

.game-hud--inline span {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

.game-stage--fit .game-hint {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

html.embed-mode,
body.embed-mode {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body.embed-mode {
  position: fixed;
  inset: 0;
  width: 100%;
  margin: 0;
}

body.embed-mode main {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}

body.embed-mode .section--game,
body.embed-mode .section {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  padding: 0;
}

body.embed-mode .section .container {
  height: 100%;
  max-height: 100dvh;
}

body.embed-mode .game-stage--fit {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}

body.embed-mode .game-stage--fit .game-stage-body {
  padding: 0.3rem 0.4rem;
  height: 100%;
  min-height: 0;
  max-height: 100dvh;
  justify-content: center;
  gap: 0.35rem;
  overflow: hidden;
}

body.embed-mode .game-stage--fit .game-hint {
  display: none;
}

body.embed-mode .game-toolbar--compact {
  margin-bottom: 0;
  flex-shrink: 0;
}

body.embed-mode .game-stage--fit canvas {
  width: auto !important;
  max-width: 100%;
  max-height: calc(100dvh - 56px);
  flex: 0 1 auto;
}

body.game-fit .game-banner {
  display: none;
}

@media (max-width: 760px) {
  .game-toolbar--compact {
    flex-direction: column;
    align-items: stretch;
  }

  .game-hud--inline {
    margin-left: 0;
  }

  .game-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .game-controls .btn {
    width: 100%;
  }

  .game-stage--fit canvas {
    max-width: 100%;
  }
}

.game-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.game-hud span {
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-weight: 650;
  color: var(--ink);
  font-size: 0.92rem;
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .btn {
    min-height: 48px;
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.path-item,
.why-item,
.game-card {
  animation: rise 0.55s ease both;
}

.path-item:nth-child(2),
.why-item:nth-child(2),
.game-card:nth-child(2) {
  animation-delay: 0.06s;
}

.path-item:nth-child(3),
.why-item:nth-child(3),
.game-card:nth-child(3) {
  animation-delay: 0.12s;
}

.path-item:nth-child(4),
.why-item:nth-child(4),
.game-card:nth-child(4) {
  animation-delay: 0.18s;
}

@media (max-width: 1100px) {
  .games-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .about-hero__grid,
  .about-split,
  .about-values {
    grid-template-columns: 1fr 1fr;
  }

  .about-hero__copy {
    grid-column: 1 / -1;
  }

  .games-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .game-card--feature {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .game-card--feature img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .path-grid,
  .path-rail,
  .why-grid,
  .footer-grid,
  .safe-split,
  .why-band,
  .partner-strip,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .path-rail::before {
    display: none;
  }

  .path-rail .path-item:nth-child(even) {
    margin-top: 0;
  }

  .why-band__intro {
    position: static;
    grid-column: 1 / -1;
  }

  .why-list {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .about-hero__grid,
  .about-split,
  .about-values,
  .games-grid,
  .games-grid--4,
  .games-mosaic,
  .path-grid,
  .path-rail,
  .why-grid,
  .why-band,
  .partner-grid,
  .partner-strip,
  .safe-split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .game-card--feature,
  .game-card--row {
    grid-column: auto;
    display: block;
  }

  .game-card--feature img,
  .game-card--row img {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  .hero {
    min-height: min(38vh, 340px);
  }

  .hero-copy {
    padding: 2.25rem 0 1.5rem;
  }

  .game-frame-wrap {
    aspect-ratio: 4 / 5;
    min-height: min(62dvh, 420px);
    max-height: 72dvh;
    overflow: hidden;
  }

  .game-frame-wrap.is-playing,
  .game-frame-wrap iframe {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .game-stage {
    width: 100%;
  }

  .game-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .game-toolbar .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
