:root {
  --navy: #0b2438;
  --navy-deep: #071a29;
  --ink: #122b3e;
  --muted: #607486;
  --line: #cdd8df;
  --paper: #f3f7f9;
  --white: #ffffff;
  --orange: #ff5a2f;
  --orange-dark: #d9401c;
  --aqua: #2bc6c0;
  --shell: min(1220px, calc(100% - 48px));
  --sans: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--white); font: 16px/1.55 var(--sans); text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--orange); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

.site-header { position: relative; z-index: 20; color: #fff; background: var(--navy); border-bottom: 4px solid var(--orange); }
.header-row { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
.brand { width: max-content; display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.site-header .brand, .brand-light { color: #fff; }
.brand > img { width: 48px; height: 38px; flex: none; }
.brand-wordmark { display: grid; gap: 3px; white-space: nowrap; text-transform: uppercase; }
.brand-wordmark > span { display: flex; align-items: baseline; gap: 5px; }
.brand small { color: var(--orange); font-size: .52rem; font-weight: 950; letter-spacing: .24em; line-height: 1; }
.brand strong, .brand b { font-size: 1.05rem; font-weight: 950; letter-spacing: -.035em; line-height: .9; }
.brand b { color: var(--aqua); }
.site-header .brand small, .brand-light small { color: var(--orange); }
.desktop-nav { align-self: stretch; display: flex; }
.desktop-nav a { min-width: 100px; display: grid; place-items: center; padding: 0 17px; color: #bdd0dc; border-inline-start: 1px solid #324b5d; font-size: .875rem; font-weight: 800; }
.desktop-nav a:last-child { border-inline-end: 1px solid #324b5d; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #fff; background: #132f44; }
.desktop-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--aqua); }
.header-end { display: flex; align-items: center; gap: 10px; }
.find-link { min-height: 42px; display: inline-flex; align-items: center; padding: 0 17px; color: var(--navy); background: var(--orange); border: 1px solid var(--orange); font-size: .875rem; font-weight: 900; }
.find-link:hover { background: #fff; border-color: #fff; }
.menu-button { min-height: 42px; display: none; align-items: center; gap: 9px; padding: 0 12px; color: #fff; background: transparent; border: 1px solid #6d8291; font-size: .875rem; font-weight: 850; }
.menu-button i, .menu-button i::after { width: 16px; height: 2px; display: block; background: currentColor; content: ""; transition: transform .16s; }
.menu-button i::after { transform: translateY(5px); }
.menu-button[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] i::after { transform: rotate(90deg); }
.mobile-menu { position: absolute; inset: 100% 0 auto; min-height: calc(100vh - 76px); padding: 20px 24px; color: #fff; background: var(--navy-deep); }
.mobile-menu a { display: block; padding: 17px 0; border-bottom: 1px solid #395163; font-size: 1.2rem; font-weight: 850; }

.eyebrow { margin: 0 0 11px; color: var(--orange-dark); font-size: .75rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.catalog-head { min-height: 190px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 60px; padding-block: 48px 36px; border-bottom: 1px solid var(--line); }
.catalog-head h1 { margin: 0; color: var(--navy); font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: .9; letter-spacing: -.07em; }
.catalog-head > p { max-width: 490px; margin: 0 0 6px; color: var(--muted); font-size: 1.05rem; }

.ad-slot { width: var(--shell); display: grid; place-items: center; margin-inline: auto; color: #8797a3; background: repeating-linear-gradient(135deg, #f8fafb 0, #f8fafb 8px, #f2f6f8 8px, #f2f6f8 16px); border: 1px solid var(--line); }
.ad-slot span { font-size: .68rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.ad-leader { min-height: 112px; margin-block: 24px 0; }
.ad-inline { min-height: 122px; margin-block: 44px; }
.ad-rectangle { width: 100%; min-height: 250px; margin: 0; }

.catalog { padding-block: 30px 96px; }
.catalog-tools { min-height: 58px; display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 22px; align-items: center; }
.catalog-tools label { height: 50px; display: grid; grid-template-columns: 42px 1fr; align-items: center; background: #fff; border: 1px solid var(--ink); }
.catalog-tools label:focus-within { box-shadow: 0 0 0 3px rgba(43,198,192,.28); }
.catalog-tools label i { display: grid; place-items: center; color: var(--orange-dark); font-style: normal; font-size: 1.35rem; }
.catalog-tools input { width: 100%; min-width: 0; height: 48px; padding: 0 13px 0 0; background: transparent; border: 0; outline: 0; font-size: 1rem; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.filters button { min-height: 42px; padding: 0 14px; color: #4e6575; background: #fff; border: 1px solid var(--line); font-size: .875rem; font-weight: 850; }
.filters button:hover { color: var(--navy); border-color: var(--navy); }
.filters button.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.result-note { min-height: 26px; margin: 16px 0 18px; color: var(--muted); font-size: .875rem; }

.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 34px 16px; }
.game-card { min-width: 0; }
.game-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: #dfe8ed; border: 1px solid var(--line); border-radius: 20px; }
.game-cover::after { position: absolute; inset: 0; border: 0 solid var(--orange); border-radius: inherit; content: ""; transition: border-width .15s; }
.game-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .18s; }
.game-card:hover .game-cover::after { border-width: 4px; }
.game-card:hover .game-cover img { transform: scale(1.025); }
.play-corner { position: absolute; z-index: 2; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 9px 11px; color: #fff; background: var(--orange); font-size: .75rem; font-weight: 900; text-transform: uppercase; transform: translateY(100%); transition: transform .17s; }
.game-card:hover .play-corner, .game-cover:focus-visible .play-corner { transform: none; }
.game-meta { padding-top: 12px; }
.game-meta > span { color: var(--orange-dark); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.game-meta h2 { margin: 4px 0 0; color: var(--navy); font-size: 1rem; line-height: 1.2; letter-spacing: -.025em; }
.game-meta a:hover { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 70px 20px; color: var(--muted); text-align: center; border: 1px solid var(--line); }
.empty-state strong { color: var(--navy); font-size: 1.4rem; }
.empty-state p { margin: 5px 0 0; }

.breadcrumbs { display: flex; align-items: center; gap: 9px; padding-block: 20px; color: var(--muted); font-size: .875rem; }
.breadcrumbs a:hover { color: var(--orange-dark); }
.breadcrumbs b { overflow: hidden; color: var(--navy); text-overflow: ellipsis; white-space: nowrap; }
.game-detail { min-height: 510px; display: grid; grid-template-columns: minmax(260px, 390px) minmax(330px, 1fr) 300px; gap: 46px; align-items: center; padding-block: 42px 68px; }
.detail-cover { position: relative; }
.detail-cover::before { position: absolute; z-index: -1; inset: 14px -14px -14px 14px; background: var(--aqua); border-radius: 24px; content: ""; }
.detail-cover img { display: block; width: 100%; border: 1px solid var(--ink); border-radius: 24px; }
.detail-copy h1 { margin: 0; color: var(--navy); font-size: clamp(3rem, 5.6vw, 5.3rem); line-height: .9; letter-spacing: -.065em; }
.detail-lede { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 1.12rem; }
.play-button { min-height: 52px; width: max-content; display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; margin-top: 31px; padding: 0 18px; color: #fff; background: var(--orange); border: 1px solid var(--orange); font-size: .875rem; font-weight: 950; }
.play-button:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.detail-copy small { display: block; margin-top: 13px; color: var(--muted); font-size: .8rem; }

.guide { display: grid; grid-template-columns: 1.15fr .85fr .85fr; border: 1px solid var(--ink); }
.guide > div { min-width: 0; padding: 38px; }
.guide > div + div { border-left: 1px solid var(--ink); }
.guide-intro { background: var(--paper); }
.guide h2 { margin: 0; color: var(--navy); font-size: 2.15rem; line-height: 1; letter-spacing: -.05em; }
.guide-intro > p:last-child { margin: 20px 0 0; color: var(--muted); }
.guide-block > span { color: var(--orange-dark); font-size: .75rem; font-weight: 950; }
.guide-block h3 { margin: 42px 0 14px; color: var(--navy); font-size: 1.25rem; }
.guide-block ul { margin: 0; padding-left: 19px; color: var(--muted); }
.guide-block li + li { margin-top: 8px; }
.related { padding-block: 88px 104px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 2.5rem; line-height: 1; letter-spacing: -.055em; }
.section-heading > a { padding-bottom: 3px; border-bottom: 2px solid var(--navy); font-size: .875rem; font-weight: 900; }
.section-heading > a:hover { color: var(--orange-dark); border-color: var(--orange-dark); }
.related-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }

.page-head { max-width: 860px; padding-block: 86px 45px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; color: var(--navy); font-size: clamp(3.4rem, 7vw, 6.2rem); line-height: .9; letter-spacing: -.07em; }
.page-head > p:last-child { max-width: 670px; margin: 28px 0 0; color: var(--muted); font-size: 1.12rem; }
.prose { max-width: 860px; padding-block: 30px 105px; }
.prose h2 { margin: 44px 0 10px; color: var(--navy); font-size: 1.65rem; line-height: 1.15; letter-spacing: -.03em; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 740px; margin: 0; color: #4d6475; }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--orange-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.not-found { min-height: 620px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { max-width: 720px; margin: 0; color: var(--navy); font-size: clamp(3.6rem, 8vw, 7rem); line-height: .87; letter-spacing: -.075em; }
.not-found > p:not(.eyebrow) { margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }

.site-footer { color: #c6d3dc; background: var(--navy-deep); }
.footer-main { min-height: 190px; display: grid; grid-template-columns: auto minmax(240px, 1fr) minmax(380px, auto); align-items: center; gap: 55px; }
.footer-main > p { max-width: 360px; margin: 0; color: #8fa4b3; }
.footer-main nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 22px; }
.footer-main nav a { font-size: .875rem; font-weight: 800; }
.footer-main nav a:hover { color: var(--orange); }
.footer-base { min-height: 56px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #314859; color: #79909f; font-size: .78rem; }

.player-page { min-height: 100vh; overflow: hidden; color: #fff; background: var(--navy-deep); }
.player-page .site-footer { display: none; }
.player-shell { height: 100vh; display: flex; flex-direction: column; padding: 12px; }
.player-header { min-height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.player-header > a { color: #b8c9d4; font-size: .875rem; font-weight: 850; }
.player-header .brand { justify-self: center; }
.player-header > div:last-child { display: flex; justify-content: flex-end; gap: 8px; }
.player-header button { min-height: 38px; padding: 0 12px; color: #fff; background: transparent; border: 1px solid #526979; font-size: .8rem; font-weight: 850; }
.player-header button:hover { color: var(--navy); background: var(--orange); border-color: var(--orange); }
.player-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; border: 1px solid #405766; }
.player-stage iframe { width: 100%; height: 100%; display: block; background: #000; border: 0; }
.player-loading { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--navy-deep); transition: opacity .28s; }
.player-loading.is-hidden { pointer-events: none; opacity: 0; }
.player-loading img { width: 78px; height: 78px; border: 1px solid #536a7b; }
.player-loading strong { font-size: .9rem; }
.player-loading span { width: 116px; height: 3px; overflow: hidden; background: #3c5363; }
.player-loading span::after { width: 45px; height: 100%; display: block; background: var(--orange); content: ""; animation: loading 1s linear infinite; }
.rotate-note { display: none; margin: 7px 0 0; color: #839aa9; text-align: center; font-size: .72rem; }
@keyframes loading { to { transform: translateX(110%); } }

@media (max-width: 1100px) {
  .header-row { gap: 28px; }
  .game-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .game-detail { grid-template-columns: 320px minmax(0,1fr); }
  .game-detail .ad-rectangle { grid-column: 1 / -1; min-height: 120px; }
  .footer-main { grid-template-columns: auto 1fr; gap: 28px 45px; padding-block: 45px; }
  .footer-main nav { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 30px, 720px); }
  .desktop-nav, .find-link { display: none; }
  .header-row { min-height: 68px; grid-template-columns: 1fr auto; }
  .menu-button { display: inline-flex; }
  .catalog-head { min-height: 0; grid-template-columns: 1fr; gap: 20px; padding-block: 48px 35px; }
  .catalog-head > p { margin: 0; }
  .catalog-tools { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .game-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .game-detail { grid-template-columns: minmax(230px, 330px) 1fr; gap: 38px; }
  .detail-copy h1 { font-size: clamp(3rem, 8vw, 4.4rem); }
  .game-detail .ad-rectangle { min-height: 110px; }
  .guide { grid-template-columns: 1fr 1fr; }
  .guide-intro { grid-column: 1 / -1; }
  .guide > div:nth-child(2) { border-left: 0; border-top: 1px solid var(--ink); }
  .guide > div:nth-child(3) { border-top: 1px solid var(--ink); }
}

@media (max-width: 580px) {
  :root { --shell: calc(100% - 24px); }
  .brand { gap: 8px; }
  .brand > img { width: 43px; height: 34px; }
  .brand-wordmark { gap: 3px; }
  .brand small { font-size: .48rem; }
  .brand strong, .brand b { font-size: .96rem; }
  .catalog-head { padding-block: 40px 30px; }
  .catalog-head h1 { font-size: 3.25rem; }
  .catalog-head > p { font-size: 1rem; }
  .ad-leader { width: calc(100% - 24px); min-height: 100px; }
  .catalog { padding-top: 24px; }
  .filters { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
  .filters button { flex: 0 0 auto; }
  .game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 27px 10px; }
  .game-meta h2 { font-size: .94rem; }
  .ad-inline { min-height: 110px; margin-block: 34px; }
  .breadcrumbs { padding-block: 16px; }
  .game-detail { grid-template-columns: 1fr; gap: 38px; padding-block: 25px 55px; }
  .detail-cover { width: min(100% - 14px, 400px); }
  .detail-copy h1 { font-size: clamp(3.2rem, 15vw, 4.2rem); }
  .play-button { width: 100%; }
  .game-detail .ad-rectangle { grid-column: 1; min-height: 250px; }
  .guide { grid-template-columns: 1fr; }
  .guide-intro { grid-column: 1; }
  .guide > div { padding: 28px; }
  .guide > div + div { border-left: 0; border-top: 1px solid var(--ink); }
  .guide-block h3 { margin-top: 30px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .related { padding-block: 68px 82px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-head { padding-block: 64px 38px; }
  .page-head h1 { font-size: 3.45rem; }
  .prose { padding-bottom: 82px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-main nav { grid-column: 1; justify-content: flex-start; }
  .footer-base { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; }
  .player-shell { padding: 7px; }
  .player-header { grid-template-columns: 1fr auto; }
  .player-header .brand { display: none; }
  .player-header > a span { display: none; }
  .player-stage iframe { min-height: calc(100vh - 78px); }
  .rotate-note { display: block; }
}

@media (max-width: 340px) {
  .header-row { gap: 9px; }
  .brand { gap: 7px; }
  .brand > img { width: 39px; height: 31px; }
  .brand small { font-size: .44rem; }
  .brand strong, .brand b { font-size: .88rem; }
  .menu-button { min-height: 40px; padding-inline: 9px; font-size: .8rem; }
}

@media (hover: none) {
  .play-corner { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
