:root {
  --ink: #17323a;
  --ink-deep: #102a32;
  --muted: #5d7073;
  --line: #cededc;
  --sea: #e8f4f0;
  --orange: #b94b2b;
  --white: #fff;
  --page: #fbfcfb;
  --wrap: min(1240px, calc(100% - 52px));
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--font); text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: var(--wrap); 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: 9px 13px; background: var(--orange); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }

.site-header { position: relative; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 9px; width: max-content; white-space: nowrap; }
.brand img { width: 43px; height: 43px; }
.brand span { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 1.48rem; font-weight: 700; letter-spacing: -.065em; line-height: 1; }
.brand strong { font-weight: 900; }
.desktop-nav { display: flex; align-self: stretch; align-items: center; gap: 24px; margin-left: auto; }
.desktop-nav a { display: inline-flex; align-items: center; height: 100%; border-bottom: 3px solid transparent; color: #395059; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--ink); }
.header-search { display: inline-flex; flex: none; align-items: center; justify-content: space-between; gap: 20px; min-height: 41px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 4px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.header-search:hover { background: var(--ink); color: var(--white); }
.header-search span { font-size: 1.08rem; }
.menu-button { display: none; align-items: center; gap: 10px; min-height: 39px; padding: 0 10px; border: 1px solid var(--ink); border-radius: 4px; background: var(--white); color: var(--ink); font-size: .8rem; font-weight: 800; }
.menu-button i, .menu-button i::after { display: block; width: 16px; height: 2px; 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; max-height: calc(100dvh - 66px); overflow-y: auto; padding: 13px 26px 24px; background: var(--white); box-shadow: 0 16px 24px rgb(16 42 50 / .12); }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; font-weight: 800; }

.eyebrow { display: block; color: var(--orange); font-size: .69rem; font-weight: 900; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.orange-dot { color: #df633c; }
.intro-band { background: var(--sea); border-bottom: 1px solid var(--line); }
.intro-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,340px); align-items: end; gap: 36px; padding-block: 52px 49px; }
.intro-inner h1 { margin: 11px 0 0; font-size: clamp(4rem, 7.4vw, 6.6rem); font-weight: 900; letter-spacing: -.085em; line-height: .96; }
.intro-inner > p { max-width: 340px; margin: 0 0 6px; color: #405a60; font-size: 1.09rem; line-height: 1.45; }
.catalog-layout, .collection-layout { display: grid; grid-template-columns: 202px minmax(0,1fr); gap: 46px; padding-block: 43px 95px; }
.catalog-rail { min-width: 0; }
.rail-label { display: block; padding: 0 0 15px; border-bottom: 2px solid var(--ink); color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.category-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 49px; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 800; }
.category-list a span { color: var(--orange); font-size: 1rem; }
.category-list a:hover, .category-list a[aria-current="page"] { color: var(--orange); }
.rail-note { margin-top: 35px; padding: 16px 15px; background: var(--sea); }
.rail-note > span { color: var(--orange); font-size: 1.4rem; line-height: 1; }
.rail-note p { margin: 8px 0 0; color: #405a60; font-size: .79rem; line-height: 1.4; }
.catalog-main, .collection-main { min-width: 0; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.catalog-head h2 { margin: 6px 0 0; font-size: clamp(2.2rem, 3vw, 3.15rem); font-weight: 900; letter-spacing: -.075em; line-height: 1; }
.search-box { position: relative; display: block; width: min(278px,100%); }
.search-box input { width: 100%; min-height: 43px; padding: 0 44px 0 13px; border: 1px solid #708b8e; border-radius: 4px; outline: none; background: var(--white); color: var(--ink); font-size: .87rem; }
.search-box input:focus { border: 2px solid var(--orange); padding-left: 12px; }
.search-box input::placeholder { color: #64787c; }
.search-box svg { position: absolute; top: 11px; right: 13px; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 2; pointer-events: none; }
.result-note { margin: 0; color: var(--muted); font-size: .8rem; }
.result-note:not(:empty) { margin: -10px 0 15px; }
.game-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 29px 18px; }
.game-card { min-width: 0; }
.card-art { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: var(--white); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.game-card:hover .card-art img { transform: scale(1.035); }
.card-detail { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; column-gap: 8px; padding: 10px 1px 0; }
.card-type { grid-column: 1 / -1; width: max-content; color: var(--orange); font-size: .65rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.card-type:hover { text-decoration: underline; }
.card-detail h3 { min-width: 0; margin: 4px 0 0; font-size: 1.12rem; font-weight: 900; letter-spacing: -.04em; line-height: 1.22; }
.card-detail h3 a:hover, .card-arrow:hover { color: var(--orange); }
.card-arrow { font-size: 1rem; font-weight: 800; line-height: 1.2; }
.ad-slot { display: grid; place-items: center; min-height: 96px; border: 1px solid var(--line); background: #f0f5f3; color: #6b7c7c; }
.ad-slot span { font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.grid-ad { grid-column: 1 / -1; margin-block: 4px; }
.detail-ad { min-height: 280px; align-self: start; }
.empty-state { margin-top: 18px; padding: 27px; border: 1px solid var(--line); background: var(--white); }
.empty-state h3 { margin-bottom: 5px; font-size: 1.3rem; }
.empty-state p { margin-bottom: 16px; color: var(--muted); }
.empty-state button { padding: 9px 14px; border: 0; border-radius: 4px; background: var(--ink); color: var(--white); font-weight: 800; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; padding-block: 21px 22px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { font-weight: 800; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 800; }
.page-intro { padding-block: 25px 38px; border-bottom: 1px solid var(--line); }
.page-intro h1 { margin: 12px 0 14px; font-size: clamp(3.7rem, 7vw, 6.2rem); font-weight: 900; letter-spacing: -.082em; line-height: .98; }
.page-intro > p { max-width: 630px; margin: 0; color: #405a60; font-size: 1.13rem; line-height: 1.45; }
.collection-layout { padding-top: 39px; }
.game-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,400px); align-items: center; gap: clamp(40px, 7vw, 100px); padding-block: 13px 58px; }
.game-cover { overflow: hidden; aspect-ratio: 1; border-radius: 15px; background: var(--white); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-summary h1 { margin: 11px 0 17px; font-size: clamp(3.3rem, 6vw, 6rem); font-weight: 900; letter-spacing: -.08em; line-height: 1; overflow-wrap: anywhere; }
.game-summary > p { max-width: 580px; margin-bottom: 24px; color: #405a60; font-size: clamp(1.13rem, 1.9vw, 1.38rem); line-height: 1.45; }
.play-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; min-width: 177px; min-height: 52px; padding: 0 17px; border-radius: 4px; background: var(--orange); color: var(--white); font-size: .95rem; font-weight: 900; }
.play-button:hover { background: var(--ink); }
.play-button span { font-size: 1.2rem; }
.play-detail { display: block; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.game-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,300px); gap: 24px; }
.game-guide { padding: 30px 35px 36px; border-top: 3px solid var(--ink); background: var(--sea); }
.game-guide h2 { margin: 8px 0 15px; font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 900; letter-spacing: -.065em; line-height: 1; }
.game-guide > p { max-width: 690px; margin-bottom: 26px; color: #405a60; font-size: 1.01rem; }
.guide-split { display: grid; grid-template-columns: 1fr 1fr; gap: 27px; padding-top: 22px; border-top: 1px solid #bfd3cf; }
.guide-split h3 { margin-bottom: 8px; font-size: .94rem; font-weight: 900; }
.guide-split ul { margin: 0; padding-left: 19px; color: #405a60; }
.guide-split li + li { margin-top: 7px; }
.guide-split p { margin: 0; color: #405a60; }
.related { padding-block: 72px 94px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(2.15rem, 3vw, 3rem); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.section-head > a { padding-bottom: 4px; border-bottom: 2px solid var(--orange); font-size: .86rem; font-weight: 800; }
.section-head > a:hover { color: var(--orange); }
.prose { max-width: 860px; padding-block: 34px 96px; }
.prose h2 { margin: 32px 0 9px; font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #405a60; }
.prose a { color: #bb4b2b; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.not-found { min-height: 55vh; padding-block: 76px; }
.not-found h1 { margin: 10px 0 14px; font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 900; letter-spacing: -.08em; }
.not-found p { margin-bottom: 25px; color: var(--muted); }

.site-footer { background: var(--ink-deep); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(235px,1.7fr) repeat(3,1fr); gap: 34px; padding-block: 51px 55px; }
.footer-about .brand { color: var(--white); }
.footer-about > p { max-width: 230px; margin: 17px 0 0; color: #b8c9c9; font-size: .86rem; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid h2 { margin: 3px 0 8px; color: #a9c0c0; font-size: .69rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid a:not(.brand) { color: #e1eded; font-size: .83rem; }
.footer-grid a:hover { color: #ffa47e; }
.footer-end { display: flex; justify-content: space-between; gap: 18px; padding-block: 17px 22px; border-top: 1px solid #3b555c; color: #abc1c1; font-size: .74rem; }

.player-page { min-height: 100vh; background: #0b1215; color: var(--white); }
.player-shell { min-height: 100vh; display: flex; flex-direction: column; }
.player-header { min-height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 8px 16px; background: var(--ink-deep); }
.player-back { width: max-content; font-size: .84rem; font-weight: 800; }
.player-back:hover { color: #ffa47e; }
.player-name { max-width: 40vw; overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.player-actions { display: flex; justify-content: flex-end; gap: 8px; }
.player-actions button { min-height: 36px; padding: 0 11px; border: 1px solid #719096; border-radius: 4px; background: transparent; color: var(--white); font-size: .76rem; font-weight: 800; }
.player-actions button:hover { border-color: #ffa47e; color: #ffa47e; }
.player-stage { position: relative; width: 100%; min-height: calc(100vh - 88px); flex: 1; background: #090e10; }
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-loading { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; background: #090e10; color: #d3e0de; font-weight: 800; }
.player-hint { margin: 0; padding: 5px 16px; background: var(--ink-deep); color: #b8c9c9; font-size: .72rem; text-align: center; }

@media (max-width: 1150px) {
  .desktop-nav { gap: 15px; }
  .header-row { gap: 20px; }
  .catalog-layout, .collection-layout { grid-template-columns: 180px minmax(0,1fr); gap: 30px; }
}

@media (max-width: 940px) {
  .desktop-nav, .header-search { display: none; }
  .header-row { min-height: 66px; justify-content: space-between; }
  .menu-button { display: inline-flex; }
  .catalog-layout, .collection-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .rail-label, .rail-note { display: none; }
  .category-list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .category-list::-webkit-scrollbar { display: none; }
  .category-list a { flex: none; min-height: 47px; margin-right: 25px; border-bottom: 3px solid transparent; white-space: nowrap; }
  .category-list a[aria-current="page"] { border-bottom-color: var(--orange); }
  .category-list a span { display: none; }
}

@media (max-width: 680px) {
  :root { --wrap: calc(100% - 30px); }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 1.34rem; }
  .intro-inner { grid-template-columns: 1fr; gap: 13px; padding-block: 36px 33px; }
  .intro-inner h1 { font-size: clamp(3.6rem, 10vw, 5rem); }
  .intro-inner > p { max-width: 530px; font-size: .96rem; }
  .catalog-layout, .collection-layout { padding-bottom: 69px; }
  .catalog-head { display: block; }
  .catalog-head h2 { font-size: 2.5rem; }
  .search-box { width: 100%; margin-top: 19px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 12px; }
  .card-art { border-radius: 10px; }
  .card-detail h3 { font-size: .96rem; }
  .card-arrow { font-size: .84rem; }
  .grid-ad { min-height: 82px; }
  .page-intro { padding-block: 24px 32px; }
  .page-intro h1 { font-size: clamp(3.2rem, 10vw, 4.8rem); overflow-wrap: anywhere; }
  .game-hero { grid-template-columns: 1fr; gap: 29px; padding-block: 1px 44px; }
  .game-cover { max-width: 390px; }
  .game-summary h1 { font-size: clamp(3.1rem, 10vw, 4.9rem); }
  .game-content { grid-template-columns: 1fr; }
  .game-guide { padding: 27px 23px; }
  .detail-ad { min-height: 95px; }
  .related { padding-block: 59px 72px; }
  .section-head { display: block; }
  .section-head > a { display: inline-block; margin-top: 13px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); gap: 33px 18px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-end { display: block; }
  .footer-end span { display: block; }
  .player-header { grid-template-columns: 1fr auto; }
  .player-name, .player-back span { display: none; }
}

@media (max-width: 370px) {
  .header-row { gap: 7px; }
  .brand { gap: 5px; }
  .brand img { width: 33px; height: 33px; }
  .brand span { font-size: 1.16rem; }
  .intro-inner h1 { font-size: 3.25rem; }
  .guide-split { grid-template-columns: 1fr; gap: 23px; }
  .player-actions button { padding-inline: 8px; font-size: .7rem; }
}

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