@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #071221;
  --surface: #101e35;
  --accent: #45b6ff;
  --ink: #f4f6f8;
  --muted: #b3bfd1;
  --line: #243652;
  --secondary: #1b2d48;
  --header-space: 204px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-space) + 24px); }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 16px/1.6 Inter, system-ui, sans-serif; }
body.overlay-active { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
svg { flex-shrink: 0; }
button { color: inherit; }
[hidden] { display: none !important; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(28px, 2.5vw, 36px); letter-spacing: -.7px; text-wrap: initial; }
h2 { font-size: 30px; letter-spacing: -.5px; }
h3 { font-size: 23px; }
h4 { font-size: 18px; }
p { color: var(--muted); }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.frame { width: calc(100% - 64px); max-width: 1280px; margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 10px; padding: 12px 20px; color: var(--page); background: var(--accent); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 28px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #031221; line-height: 24px; font-weight: 700; text-align: center; transition: background-color .2s, transform .2s, box-shadow .2s; }
.action:hover { background: #7bcaff; box-shadow: 0 5px 20px #45b6ff20; transform: translateY(-2px); }
.action:active { transform: translateY(0); }
.action-secondary { color: var(--ink); background: var(--secondary); }
.action-secondary:hover { background: #29425f; box-shadow: none; }
.site-masthead { position: sticky; z-index: 30; top: 0; background: var(--page); padding-top: 24px; transition: box-shadow .2s; }
.site-masthead.is-scrolled { box-shadow: 0 6px 24px #0005; }
.masthead-inner { display: flex; flex-direction: column; align-items: center; }
.masthead-brand { display: flex; align-items: center; justify-content: center; width: 100%; }
.brand-link { display: inline-block; width: 120px; }
.brand-link img { aspect-ratio: 264 / 68; object-fit: contain; }
.account-actions { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }
.account-actions .action { padding-inline: 18px; }
.primary-navigation { margin-top: 32px; width: 100%; }
.menu-list { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; list-style: none; gap: 24px; margin: 0; padding: 12px 0 12px; }
.menu-list > li > a, .submenu-switch { min-height: 44px; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; white-space: nowrap; }
.menu-list a:hover, .menu-list a[aria-current], .submenu-switch:hover, .submenu-switch[aria-expanded="true"] { color: var(--accent); }
.submenu-switch svg { width: 16px; height: 16px; transition: transform .2s; }
.submenu-switch[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-group { position: relative; }
.nav-panel { position: absolute; left: -16px; top: 46px; min-width: 200px; list-style: none; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 30px #0005; animation: menu-appear .18s ease-out; }
.nav-panel a { display: block; padding: 10px 12px; border-radius: 6px; }
.nav-panel a:hover { background: #ffffff06; }
.menu-switch { display: none; }
main { padding-top: 40px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; color: var(--muted); font-size: 14px; }
.breadcrumbs svg { width: 14px; height: 14px; }
.breadcrumbs span { color: var(--accent); }
.opening-panel { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 40px 32px; min-height: 488px; background: var(--surface); border-radius: 28px; }
.opening-copy p { margin-top: 20px; font-size: 16px; line-height: 1.6; }
.opening-art img { max-width: 420px; margin-inline: auto; aspect-ratio: 1; object-fit: contain; }
.opening-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 20px; }
.opening-actions .action { padding-inline: 12px; }
.opening-text-only { display: block; min-height: 0; padding-block: 40px; }
.opening-text-only .opening-copy { max-width: 1180px; }
.page-chapters { padding-top: 88px; padding-bottom: 72px; }
.contents { border: 1px solid #ffffff09; border-radius: 16px; margin-bottom: 88px; }
.contents > summary { display: flex; align-items: center; gap: 12px; padding: 20px 28px; list-style: none; cursor: pointer; }
.contents h2 { font-size: 19px; letter-spacing: 0; flex: 1; }
summary::-webkit-details-marker { display: none; }
.contents > summary > span { font-size: 14px; color: var(--muted); }
.contents > summary > svg { width: 18px; height: 18px; color: var(--muted); }
.contents-label-hide, .contents[open] .contents-label-show { display: none; }
.contents[open] .contents-label-hide { display: inline; }
.contents[open] summary > svg { transform: rotate(180deg); }
.contents ol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; list-style: none; margin: 0; padding: 8px 28px 28px; }
.contents a { display: inline-block; color: var(--muted); font-size: 14px; }
.contents a:hover { color: var(--accent); }
.contents-level-3 { padding-left: 18px; }
.chapter { margin-bottom: 80px; }
.chapter > h2, .chapter > h3 { margin-bottom: 24px; }
.chapter > p { margin-bottom: 24px; }
.chapter-copy p + p { margin-top: 16px; }
.chapter-action { margin-top: 24px; }
.media-copy { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.media-copy figure { align-self: center; }
.media-copy img { max-width: 420px; max-height: 430px; margin-inline: auto; object-fit: contain; }
.bullet-list, .chapter-copy ul { padding-left: 24px; margin: 18px 0 0; color: var(--muted); }
li::marker { color: var(--accent); }
.bullet-list li + li { margin-top: 7px; }
.table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; scrollbar-width: thin; scrollbar-color: #4b566b var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 14px 18px; line-height: 1.6; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; }
td { color: var(--muted); }
tbody th { min-width: 160px; width: 32%; }
thead th { background: #ffffff06; white-space: nowrap; }
tr:nth-child(even) { background: #ffffff04; }
tr:last-child > * { border-bottom: 0; }
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.balance-panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.balance-panel h4 { margin-bottom: 20px; }
.balance-panel ul { list-style: none; padding: 0; margin: 0; }
.balance-panel li { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; color: var(--muted); }
.balance-panel li > span { color: var(--accent); border: 1px solid currentColor; border-radius: 50%; width: 23px; min-width: 23px; height: 23px; text-align: center; line-height: 21px; }
.cons li > span { color: #eda9ac; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.icon-control { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); }
.icon-control:hover { border-color: var(--accent); color: var(--accent); }
.icon-control:disabled { opacity: .35; cursor: default; }
.gallery-track { display: flex; gap: 24px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #4b566b var(--surface); touch-action: pan-x pan-y; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery-thumb { flex: 0 0 calc((100% - 24px) / 2); padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface); scroll-snap-align: start; }
.gallery-thumb img { aspect-ratio: 16 / 9; object-fit: contain; transition: transform .25s; pointer-events: none; }
.gallery-thumb:hover img { transform: scale(1.025); }
.lobby-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lobby-card { min-width: 0; }
.lobby-card > img { border-radius: 14px; aspect-ratio: 8 / 5; object-fit: cover; }
.lobby-card-copy { padding: 20px 0 0; }
.lobby-card h3 { font-size: 19px; margin-bottom: 10px; }
.lobby-card p, .lobby-card ul { font-size: 14px; line-height: 1.65; }
.lobby-card ul { color: var(--muted); padding-left: 20px; margin: 16px 0 0; }
.lobby-card .action { display: flex; margin-top: 20px; }
.sports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sports-grid .lobby-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.sports-grid .lobby-card > img { aspect-ratio: 1; object-fit: contain; border-radius: 14px; }
.sports-grid .lobby-card-copy { display: contents; padding: 0; }
.sports-grid .lobby-card-copy h3 { align-self: center; margin-bottom: 0; }
.sports-grid .lobby-card-copy p, .sports-grid .lobby-card-copy ul { grid-column: 1 / -1; margin: 0; }
.game-more { margin-top: 14px; }
.game-more summary { display: flex; justify-content: center; align-items: center; cursor: pointer; min-height: 44px; list-style: none; border-radius: 8px; color: var(--muted); }
.game-more summary:hover { color: var(--accent); background: #ffffff03; }
.game-more[open] summary > svg { transform: rotate(180deg); }
.game-more .disclosure-body { padding: 12px 0; }
.game-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 16px; background: var(--surface); border-radius: 12px; }
.game-stats dt { color: var(--muted); font-size: 12px; }
.game-stats dd { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
.procedure-cards { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; counter-reset: procedure; padding: 0; margin: 24px 0 0; }
.procedure-cards > li { counter-increment: procedure; display: flex; gap: 16px; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.procedure-cards > li::before { content: counter(procedure); display: flex; align-items: center; justify-content: center; width: 40px; min-width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; }
.procedure-cards h3, .procedure-cards h4, .procedure-list h3, .procedure-list h4 { font-size: 17px; margin-bottom: 10px; }
.procedure-cards p { font-size: 14px; }
.procedure-list { margin: 24px 0 0; padding-left: 24px; }
.procedure-list li { padding-left: 8px; margin-bottom: 20px; }
.procedure-list h3, .procedure-list h4 { margin-bottom: 6px; }
.step-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 28px; }
.step-images img { object-fit: contain; aspect-ratio: 1; max-height: 280px; border-radius: 16px; }
.question-stack { display: grid; gap: 12px; }
.question { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.question summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; font-weight: 700; list-style: none; cursor: pointer; }
.question summary svg { width: 20px; height: 20px; transition: transform .2s; }
.question[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.question .disclosure-body { padding: 0 24px 24px; }
.update-stamp { padding-top: 12px; font-size: 13px; }
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: #11141c; }
.footer-main { display: flex; justify-content: space-between; gap: 48px; margin-top: 28px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 0; margin: 0; list-style: none; max-width: 760px; }
.site-footer nav a { color: var(--muted); font-size: 14px; }
.site-footer nav a:hover { color: var(--accent); }
.footer-actions { display: flex; align-items: flex-start; gap: 8px; }
.footer-actions .action { padding-inline: 18px; }
.footer-bottom { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.footer-bottom p { font-size: 12px; }
.age-label { display: grid; place-items: center; border: 1px solid var(--muted); border-radius: 50%; width: 38px; height: 38px; font-size: 14px; }
.back-top { position: fixed; z-index: 20; right: 24px; bottom: 24px; border-color: var(--accent); box-shadow: 0 8px 24px #0006; }
.media-viewer { width: min(1200px, calc(100vw - 32px)); max-width: none; padding: 16px; margin: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--page); color: var(--ink); }
dialog::backdrop { background: #04070bdd; backdrop-filter: blur(5px); }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.viewer-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.viewer-stage img { width: 100%; height: min(68vh, 640px); object-fit: contain; border-radius: 6px; }
.media-viewer > p { margin-top: 12px; padding-inline: 56px; font-size: 14px; }
.consent-dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: min(560px, calc(100vw - 32px)); }
.consent-dialog p { margin-top: 20px; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.consent-settings { color: var(--muted); background: none; border: none; text-decoration: underline; padding: 10px; }
.utility-frame { min-height: 50vh; padding-block: 40px 80px; }
.utility-frame .action { margin-top: 24px; }
.utility-frame p a { color: var(--accent); }
.error-code { color: var(--accent); font-size: 72px; font-weight: 700; }
@keyframes menu-appear { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .menu-list { gap: 18px; }
  .opening-panel, .media-copy { gap: 32px; }
  .procedure-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sports-grid .lobby-card { grid-template-columns: 90px minmax(0, 1fr); padding: 24px; gap: 18px; }
}

@media (max-width: 999px) {
  :root { --header-space: 128px; }
  .frame { width: calc(100% - 32px); }
  .site-masthead { padding: 16px 0; }
  .masthead-inner { align-items: stretch; }
  .masthead-brand { justify-content: space-between; padding-inline: 16px; }
  .account-actions { margin-top: 16px; padding-inline: 16px; gap: 16px; }
  .account-actions > .action { flex: 1; }
  .menu-switch { display: flex; flex-direction: column; justify-content: center; gap: 5px; border: 0; width: 44px; height: 44px; margin-block: -6px; padding: 7px 10px; background: none; }
  .menu-switch span { display: block; width: 24px; height: 2px; background: var(--accent); transition: transform .2s, opacity .2s; }
  .menu-switch[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-switch[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-switch[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-navigation { display: none; position: fixed; left: 0; right: 0; top: var(--header-space); margin-top: 0; height: calc(100dvh - var(--header-space)); background: var(--page); padding: 8px 32px 24px; overflow-y: auto; }
  .primary-navigation.is-open { display: block; animation: menu-appear .18s; }
  .menu-list { display: block; padding: 0; }
  .menu-list > li > a, .submenu-switch { width: 100%; padding: 14px 0; }
  .submenu-switch { justify-content: space-between; }
  .nav-panel { position: static; box-shadow: none; margin: 0 0 8px; min-width: 0; }
  main { padding-top: 28px; }
  .opening-panel { grid-template-columns: 1fr; padding: 32px; min-height: 0; gap: 32px; }
  .opening-art img { max-width: 380px; max-height: 380px; }
  .opening-actions { grid-auto-flow: row; }
  .opening-copy p { margin-top: 20px; }
  .page-chapters { padding-top: 48px; }
  .contents { margin-bottom: 56px; }
  .media-copy { grid-template-columns: 1fr; }
  .media-copy figure { max-width: 430px; justify-self: center; }
  .lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .sports-grid .lobby-card { display: block; }
  .sports-grid .lobby-card > img { width: 110px; margin-bottom: 20px; }
  .sports-grid .lobby-card-copy p, .sports-grid .lobby-card-copy ul { margin-top: 16px; }
  .chapter { margin-bottom: 56px; }
  .footer-main { flex-direction: column; gap: 24px; }
  .footer-actions .action { flex: 1; }
}

@media (max-width: 600px) {
  h1 { font-size: 28px; letter-spacing: -.5px; }
  h2 { font-size: 25px; }
  h3 { font-size: 22px; }
  .opening-panel { padding: 32px 20px; border-radius: 24px; }
  .opening-copy p { font-size: 15px; line-height: 1.65; }
  .opening-art img { max-width: 320px; max-height: 320px; }
  .breadcrumbs { margin-bottom: 28px; font-size: 13px; }
  .contents > summary { padding: 18px; gap: 8px; }
  .contents h2 { font-size: 17px; }
  .contents > summary > span { font-size: 12px; }
  .contents ol { grid-template-columns: 1fr; padding: 0 18px 24px; gap: 12px; }
  .lobby-grid, .balance-grid, .procedure-cards { grid-template-columns: 1fr; }
  .balance-panel { padding: 22px; }
  .sports-grid .lobby-card { display: grid; grid-template-columns: 80px minmax(0, 1fr); padding: 20px; gap: 16px; }
  .sports-grid .lobby-card > img { width: 80px; margin: 0; }
  .sports-grid .lobby-card h3 { font-size: 18px; }
  .sports-grid .lobby-card-copy p, .sports-grid .lobby-card-copy ul { grid-column: 1 / -1; margin-top: 0; }
  .gallery-track { gap: 16px; }
  .gallery-thumb { flex-basis: 90%; }
  .procedure-cards > li { padding: 22px; }
  .question summary { font-size: 15px; padding: 20px 18px; gap: 16px; }
  .question .disclosure-body { padding: 0 18px 20px; font-size: 15px; }
  th, td { padding: 12px 14px; min-width: 140px; }
  table { font-size: 13px; }
  tbody th { min-width: 130px; }
  .table-scroll { max-width: 100%; }
  .step-images { grid-template-columns: 1fr; }
  .site-footer { padding-top: 32px; }
  .site-footer nav ul { display: grid; gap: 14px; }
  .footer-bottom { gap: 12px; flex-wrap: wrap; }
  .back-top { right: 16px; bottom: 16px; }
  .viewer-stage { grid-template-columns: 1fr 1fr; gap: 12px; }
  .viewer-stage img { grid-column: 1 / -1; grid-row: 1; height: auto; max-height: 60vh; aspect-ratio: 16 / 9; }
  .viewer-stage button { justify-self: center; }
  .media-viewer > p { padding-inline: 4px; }
}

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

/* Brand color and media treatment. */
.opening-panel { background: linear-gradient(135deg,#122440,#0d1c32); border: 1px solid #263e5d; box-shadow: 0 20px 60px #0002; }
.opening-art img { border-radius: 18px; }
.media-copy figure { grid-column: 2; grid-row: 1; }
.media-copy .chapter-copy { grid-column: 1; grid-row: 1; }
.media-copy > * { min-width: 0; max-width: 100%; }
.chapter-copy { min-width: 0; }
.media-copy img { border-radius: 14px; width: 100%; max-width: 600px; }
.chapter-copy a:not(.action), .opening-copy p a, .disclosure-body p a { color: #69c5ff; text-decoration: underline; text-decoration-color: #69c5ff70; text-underline-offset: 3px; }
.chapter-copy a:not(.action):hover { color: #a9dfff; }
.chapter-action { text-align: center; }
.contents { background: #0d1b2f; border-color: #263a55; }
.update-stamp { margin: -50px 0 48px; font-size: 13px; }
.lobby-card > img { border: 1px solid #284361; }
.balance-panel h3 { font-size: 18px; margin-bottom: 20px; }
.site-footer { background: #081629; }
.utility-frame p + p { margin-block: 18px; }
@media (max-width: 767px) {
 .media-copy figure, .media-copy .chapter-copy { grid-column: auto; grid-row: auto; }
 .media-copy figure { margin-bottom: 12px; }
 .update-stamp { margin-top: -48px; }
 .opening-panel { border-radius: 20px; }
}

/* review-portrait-covers: preserve the source game artwork without stretching. */
.games-grid .lobby-card > img{display:block;width:135px;height:180px;object-fit:contain;aspect-ratio:3/4;margin:22px auto 8px;border-radius:10px}
.branded-visual{position:relative}
.branded-visual .visual-brand{position:absolute;left:6%;top:7%;width:26%;max-width:140px;height:auto;filter:drop-shadow(0 2px 6px #0007)}
