/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

:root {
  color-scheme: dark;
  --background: #1f2128;
  --foreground: #ffffff;
  --accent: #ff5722;
  --surface: #242731;
  --muted: #b2b3bd;
  --border: #36383e;
  --font-ui: "PingFangSC-Regular", "Microsoft YaHei", "Microsft YaHei", Arial, sans-serif;
  --font-number: "DIN Medium", "PingFang SC", "Microsoft YaHei", sans-serif;
  --content-width: 1312px;
  --header-height: 80px;
  --radius: 8px;
  --ease: 180ms ease-out;
}

@font-face {
  font-family: "DIN Medium";
  src: url("assets/home/fonts/DIN-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

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

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(var(--content-width), calc(100% - 128px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 0;
  background: var(--background);
}

.header-inner {
  display: flex;
  width: 100%;
  height: 100%;
  margin-inline: auto;
  padding-right: 36px;
  padding-left: 0;
  align-items: center;
}

.brand {
  display: flex;
  width: 228px;
  height: 80px;
  flex: none;
  align-items: center;
}

.brand img {
  display: block;
  width: 228px;
  height: 80px;
  object-fit: cover;
}

.primary-nav {
  display: flex;
  height: 100px;
  margin-left: 0;
  align-items: stretch;
  gap: 0;
}

.nav-link,
.game-trigger {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--ease);
}

.nav-link::after,
.game-trigger::after {
  position: absolute;
  right: auto;
  bottom: 24px;
  left: 50%;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(.4);
  transition: opacity var(--ease), transform var(--ease);
}

.nav-link[aria-current="page"] {
  color: var(--foreground);
}

.nav-link[aria-current="page"]::after,
.game-nav.is-open .game-trigger::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.game-nav {
  position: relative;
  display: flex;
}

.game-trigger {
  gap: 8px;
}

.game-trigger img {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform var(--ease);
}

.game-nav.is-open .game-trigger img {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 16px;
}

.utility-link,
.utility-button {
  display: flex;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.utility-link img,
.utility-button img {
  display: block;
  width: 24px;
  height: 24px;
}

.utility-link {
  margin-right: 12px;
}

.utility-button {
  margin-right: 6px;
}

.auth-link {
  display: flex;
  width: 72px;
  min-width: 72px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(270deg, rgba(255, 144, 71, 0) 0%, rgba(255, 87, 34, .1) 100%);
  transition: background var(--ease), color var(--ease);
}

.auth-link--primary {
  background: linear-gradient(180deg, #ff9047 0%, var(--accent) 100%);
  color: var(--foreground);
}

.member-header-actions {
  display: none;
  margin-right: 12px;
  align-items: center;
  gap: 20px;
}

body[data-auth-state="member"] [data-auth-only="guest"] {
  display: none !important;
}

body[data-auth-state="member"] .member-header-actions {
  display: flex;
}

.member-utility-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.member-utility-group .utility-link,
.member-utility-group .utility-button {
  position: relative;
  margin-right: 0;
}

.member-utility-group .utility-link img,
.member-utility-group .utility-button img {
  width: 24px;
  height: 24px;
}

.member-notice::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--background);
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.member-account {
  position: relative;
}

.member-account-trigger {
  display: grid;
  width: 156px;
  height: 48px;
  padding: 4px 12px 4px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--foreground);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 12px;
  gap: 8px;
  cursor: pointer;
}

.member-account-copy {
  display: grid;
  min-width: 0;
  gap: 0;
  text-align: left;
}

.member-name {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}

.member-balance {
  display: block;
  font-family: var(--font-number);
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.member-chevron {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--ease);
}

.member-account.is-open .member-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.member-menu {
  position: absolute;
  z-index: 1010;
  top: 128px;
  right: -10px;
  width: 176px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--background) 78%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--ease), transform var(--ease);
}

.member-account.is-open .member-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.member-menu-list {
  display: grid;
  gap: 8px;
}

.member-menu-link {
  display: flex;
  width: 144px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--background);
  color: var(--muted);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.member-deposit {
  display: flex;
  width: 98px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--accent);
  color: var(--foreground);
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.member-deposit-plus {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.member-deposit-plus::before,
.member-deposit-plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--foreground);
  content: "";
  transform: translate(-50%, -50%);
}

.member-deposit-plus::before {
  width: 20px;
  height: 3px;
}

.member-deposit-plus::after {
  width: 3px;
  height: 20px;
}

.game-mega {
  position: fixed;
  z-index: 990;
  top: var(--header-height);
  right: 0;
  left: 0;
  padding: 24px 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity var(--ease), transform var(--ease);
}

.game-nav.is-open .game-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-grid {
  display: grid;
  width: min(var(--content-width), calc(100% - 128px));
  margin-inline: auto;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
}

.mega-item {
  display: grid;
  min-height: 128px;
  padding: 8px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--muted);
  cursor: pointer;
  grid-template-rows: 80px auto;
  align-items: center;
  justify-items: center;
  transition: border-color var(--ease), color var(--ease), transform var(--ease);
}

.mega-item img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.main-content {
  padding-top: var(--header-height);
}

.hero-banner {
  position: relative;
  height: 625px;
  margin-bottom: 40px;
  background: var(--surface);
}

.hero-image {
  display: block;
  width: 100%;
  height: 625px;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 140ms ease-out;
}

.hero-image.is-changing {
  opacity: .18;
}

.hero-thumbs {
  position: absolute;
  right: 64px;
  bottom: 48px;
  display: grid;
  width: 445px;
  height: 68px;
  grid-template-columns: repeat(4, 111.25px);
  gap: 0;
}

.hero-thumb {
  display: block;
  width: auto;
  height: 68px;
  padding: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  transition: border-color var(--ease), opacity var(--ease), transform var(--ease);
}

.hero-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 8px;
}

.hero-thumb.is-active {
  background: var(--surface);
  opacity: 1;
  transform: none;
}

.home-overview {
  height: 218px;
  min-height: 218px;
  padding: 0 0 20px;
  background: var(--background);
}

.announcement {
  display: flex;
  width: 1200px;
  height: 48px;
  min-height: 48px;
  margin: 0 auto 28px;
  padding: 0 40px;
  border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
  border-radius: 8px;
  background: #15171b;
  color: var(--muted);
  align-items: center;
  gap: 16px;
}

.announcement-mark {
  display: flex;
  width: 36px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: #e1a100;
  font-family: var(--font-number);
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

.announcement p {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 48px;
  text-overflow: clip;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  width: 1352px;
  height: 120px;
  padding: 10px 0;
  grid-template-columns: repeat(9, 140px);
  gap: 12px;
}

.category-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background-color: var(--surface);
  background-image: url("assets/home/images/category-card.png");
  background-position: center;
  background-size: cover;
  color: var(--foreground);
  cursor: pointer;
  align-items: center;
  justify-content: flex-start;
  transition: transform 150ms ease-out, filter 150ms ease-out;
}

.category-card img {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 100px;
  height: 100px;
  margin-left: 0;
  object-fit: contain;
  z-index: 1;
  transition: transform 150ms ease-out;
}

.category-copy {
  position: relative;
  z-index: 2;
  display: flex;
  margin-left: 1vw;
  flex-direction: column;
  align-content: center;
  gap: 0;
  line-height: 1.8;
  text-align: left;
}

.category-copy strong {
  display: block;
  max-width: none;
  overflow: visible;
  font-family: Impact, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.8;
  text-overflow: clip;
  white-space: nowrap;
}

.category-copy span {
  display: block;
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.8;
}

.category-copy em {
  display: block;
  height: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  line-height: 24px;
  opacity: 0;
  transition: height 150ms ease-out, opacity 150ms ease-out;
}

.download-section {
  padding: 0 0 64px;
  background: var(--background);
}

.download-stage {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.download-scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.qr-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 208px;
  height: 249px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(128, 129, 145, .1);
  background: var(--surface);
  color: var(--foreground);
  bottom: 75px;
  margin: auto;
  transform: translateX(-50%);
}

.qr-card strong {
  display: block;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.qr-card img {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 6px;
}

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

.venue-stage {
  position: relative;
  height: 819px;
  width: min(var(--content-width), calc(100% - 128px));
  margin-inline: auto;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
}

.venue-image {
  display: block;
  width: 100%;
  height: 819px;
  object-fit: cover;
  object-position: center;
}

.venue-tabs {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: 90px;
  border-bottom: 0;
  border-radius: 8px;
  background: var(--surface);
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.venue-tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--ease);
}

.venue-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  content: "";
  opacity: 0;
}

.venue-tab.is-active {
  color: var(--accent);
}

.venue-tab.is-active::after {
  opacity: 1;
}

.enter-game {
  position: absolute;
  z-index: 2;
  bottom: 154px;
  left: 18%;
  display: flex;
  width: 228px;
  min-width: 228px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 32px;
  background: var(--accent);
  color: var(--foreground);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: 600;
  box-shadow: none;
  transition: transform var(--ease), filter var(--ease);
}

.site-footer {
  min-height: 0;
  padding: 0;
  border-top: 0;
  background: var(--background);
  color: var(--muted);
}

.site-footer > .page-shell {
  width: 100%;
}

.footer-statement {
  width: 100%;
  max-width: none;
  height: 120px;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
  font-size: 14px;
  line-height: 160px;
  text-align: center;
}

.footer-rule {
  display: none;
}

.regulators {
  display: flex;
  max-width: none;
  margin: 18px 0 0;
  align-items: center;
  justify-content: space-around;
  gap: 0;
}

.regulator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.regulator img {
  display: block;
  width: auto;
  height: auto;
}

.regulator-copy {
  display: grid;
  width: 120px;
  margin-top: 8px;
  gap: 0;
  text-align: center;
}

.regulator-copy strong,
.regulator-copy span {
  display: block;
}

.regulator-copy strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.regulator-copy span {
  font-size: 14px;
  line-height: 20px;
}

.copyright {
  margin: 30px auto 60px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 1200;
  top: 108px;
  left: 50%;
  display: flex;
  max-width: min(460px, calc(100% - 32px));
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--foreground);
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px color-mix(in srgb, var(--background) 76%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity var(--ease), transform var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (hover: hover) {
  .nav-link:hover,
  .game-trigger:hover {
    color: var(--foreground);
  }

  .utility-link:hover,
  .utility-button:hover {
    filter: brightness(1.2);
  }

  .auth-link:hover {
    background: var(--accent);
    color: var(--foreground);
  }

  .auth-link--primary:hover,
  .enter-game:hover,
  .member-deposit:hover {
    filter: brightness(1.08);
  }

  .member-menu-link:hover {
    color: var(--foreground);
  }

  .mega-item:hover {
    border-color: var(--accent);
    color: var(--foreground);
    transform: translateY(-3px);
  }

  .hero-thumb:hover {
    border-color: var(--foreground);
    opacity: 1;
  }

  .category-card:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
  }

  .category-card:hover img {
    transform: scale(1.16);
  }

  .category-card:hover .category-copy em {
    height: 24px;
    opacity: 1;
  }

  .venue-tab:hover {
    color: var(--foreground);
  }

  .enter-game:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 1180px) {
  .primary-nav {
    margin-left: 38px;
    gap: 24px;
  }

  .header-actions {
    gap: 10px;
  }

  .auth-link {
    min-width: 70px;
  }

  .member-header-actions {
    gap: 12px;
  }

  .member-utility-group {
    gap: 12px;
  }

  .member-account-trigger {
    width: 146px;
  }

  .member-deposit {
    width: 84px;
  }

  .category-grid,
  .mega-grid {
    overflow-x: auto;
    grid-template-columns: repeat(9, 140px);
    scrollbar-width: none;
  }

  .category-grid {
    width: auto;
    gap: 8px;
  }

  .category-grid::-webkit-scrollbar,
  .mega-grid::-webkit-scrollbar {
    display: none;
  }

  .venue-tab {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .header-inner,
  .page-shell {
    width: calc(100% - 32px);
  }

  .primary-nav {
    margin-left: 24px;
    gap: 18px;
  }

  .primary-nav > .nav-link:nth-last-child(-n+2) {
    display: none;
  }

  .header-actions .utility-button {
    display: none;
  }

  .member-utility-group {
    display: none;
  }

  .hero-banner,
  .hero-image {
    height: min(52vw, 460px);
    min-height: 360px;
  }

  .hero-thumbs {
    right: 16px;
    bottom: 16px;
  }

  .hero-thumb {
    width: 84px;
    height: 50px;
  }

  .announcement {
    width: calc(100% - 32px);
  }

  .download-stage {
    height: 480px;
  }

  .venue-stage,
  .venue-image {
    height: 660px;
  }

  .venue-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(9, 124px);
  }

  .enter-game {
    bottom: 92px;
    left: 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    width: calc(100% - 24px);
  }

  .brand,
  .brand img {
    width: 94px;
  }

  .primary-nav {
    margin-left: 16px;
    gap: 12px;
  }

  .primary-nav > .nav-link:not([aria-current="page"]) {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .utility-link,
  .auth-link:not(.auth-link--primary) {
    display: none;
  }

  .member-deposit {
    display: none;
  }

  .member-header-actions {
    margin-right: 0;
  }

  .member-account-trigger {
    width: 124px;
    padding-left: 12px;
  }

  .auth-link {
    min-width: 64px;
    height: 40px;
  }

  .mega-grid {
    width: calc(100% - 24px);
  }

  .hero-banner,
  .hero-image {
    height: 390px;
    min-height: 0;
  }

  .hero-image {
    object-position: center;
  }

  .hero-thumbs {
    right: 12px;
    left: 12px;
    overflow-x: auto;
    justify-content: flex-end;
  }

  .hero-thumb {
    width: 76px;
    height: 46px;
    flex: none;
  }

  .home-overview {
    padding-top: 16px;
  }

  .announcement {
    width: calc(100% - 24px);
    padding: 10px 14px;
    border-radius: 12px;
    align-items: start;
  }

  .announcement p {
    font-size: 13px;
  }

  .page-shell {
    width: calc(100% - 24px);
  }

  .category-grid {
    margin-right: -12px;
    grid-template-columns: repeat(9, 140px);
  }

  .download-section {
    padding-bottom: 32px;
  }

  .download-stage {
    height: 430px;
    border-radius: 6px;
  }

  .download-scene {
    object-position: center;
  }

  .qr-card {
    width: 176px;
    height: 217px;
    padding: 16px;
    border-radius: 18px;
    grid-template-rows: auto 144px;
    gap: 13px;
  }

  .qr-card img {
    width: 144px;
    height: 144px;
  }

  .venue-stage,
  .venue-image {
    height: 560px;
  }

  .venue-image {
    object-position: 58% center;
  }

  .venue-tabs {
    height: 72px;
    grid-template-columns: repeat(9, 112px);
  }

  .venue-tab {
    font-size: 14px;
  }

  .enter-game {
    bottom: 42px;
    left: 24px;
    min-width: 148px;
    height: 52px;
    border-radius: 26px;
    font-size: 17px;
  }

  .site-footer {
    min-height: 0;
    padding: 36px 20px 28px;
  }

  .regulators {
    max-width: 420px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .regulator {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .regulator img {
    width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
