:root {
  --ink: #132f39;
  --muted: #60747b;
  --line: #d6e3e5;
  --paper: #f5faf9;
  --white: #ffffff;
  --sky: #58b9c2;
  --sky-dark: #176878;
  --navy: #0b2b37;
  --coral: #e5a06f;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", "Noto Sans SC", system-ui, sans-serif; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.sr-only { 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; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--navy); color: var(--white); }
.skip-link:focus { top: 16px; }

.site-header { height: 72px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: rgba(245, 250, 249, .96); position: relative; z-index: 10; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; color: var(--navy); font-size: 14px; font-weight: 700; }
.brand-mark { position: relative; width: 25px; height: 22px; display: inline-block; }
.brand-mark i:first-child { position: absolute; left: 0; top: 4px; width: 24px; height: 7px; border-radius: 50%; border-top: 3px solid var(--sky-dark); transform: rotate(-8deg); }
.brand-mark i:last-child { position: absolute; left: 5px; top: 11px; width: 20px; height: 7px; border-radius: 50%; border-top: 3px solid var(--sky); transform: rotate(7deg); }
.brand-mark::after { content: ""; position: absolute; left: 10px; bottom: 0; width: 12px; height: 5px; border-radius: 50%; border-top: 2px solid var(--coral); }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.site-nav a, .footer-links a { position: relative; }
.site-nav a::after, .footer-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .2s ease; }
.site-nav a:hover::after, .footer-links a:hover::after { right: 0; }
.lang-switch { justify-self: end; min-width: 42px; height: 32px; padding: 0 8px; border: 1px solid var(--navy); border-radius: 3px; background: transparent; color: var(--navy); cursor: pointer; font-size: 12px; font-weight: 600; }
.lang-switch:hover { background: var(--navy); color: var(--white); }

.hero-carousel { min-height: min(720px, calc(100vh - 72px)); height: calc(100vh - 72px); max-height: 860px; position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.carousel-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(.9); transform: scale(1.01); transition: transform 6s ease; }
.hero-slide.is-active > img { transform: scale(1.045); }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 32, 52, .94) 0%, rgba(6, 39, 64, .78) 37%, rgba(6, 39, 64, .22) 72%); }
.slide-content { width: min(610px, 47vw); margin-left: max(72px, calc((100vw - var(--max)) / 2)); position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); }
.eyebrow, .section-number { margin: 0 0 26px; font-size: 12px; line-height: 1.4; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #d9f3ff; }
.status-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(56, 189, 248, .22); }
.slide-content h2 { max-width: 680px; margin: 0; font-size: clamp(45px, 5vw, 72px); line-height: 1.05; font-weight: 600; }
.slide-content > p:not(.eyebrow) { max-width: 520px; margin: 25px 0 32px; color: #d6e9f4; font-size: 17px; line-height: 1.7; }
.button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid currentColor; border-radius: 3px; font-size: 14px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--white); color: var(--navy); }
.carousel-arrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .58); border-radius: 50%; background: rgba(8, 40, 63, .42); color: var(--white); cursor: pointer; font-size: 20px; }
.carousel-arrow:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-status { position: absolute; left: max(72px, calc((100vw - var(--max)) / 2)); right: max(72px, calc((100vw - var(--max)) / 2)); bottom: 27px; z-index: 3; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.carousel-dots { display: flex; gap: 9px; pointer-events: auto; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border: 1px solid var(--white); border-radius: 50%; background: transparent; cursor: pointer; }
.carousel-dots button.is-active { background: var(--sky); border-color: var(--sky); }
.carousel-index { margin: 0; font-size: 11px; font-weight: 700; }

.static-hero { min-height: min(720px, calc(100vh - 72px)); height: calc(100vh - 72px); max-height: 860px; position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.static-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.static-hero-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(6, 35, 47, .94) 0%, rgba(9, 54, 68, .68) 40%, rgba(10, 48, 61, .08) 74%); }
.static-hero-content { width: min(620px, 48vw); position: absolute; top: 50%; right: max(72px, calc((100vw - var(--max)) / 2)); z-index: 2; transform: translateY(-50%); }
.static-hero-content h1 { max-width: 690px; margin: 0; font-size: clamp(48px, 5.3vw, 76px); line-height: 1.05; font-weight: 600; }
.static-hero-content > p:not(.eyebrow) { max-width: 520px; margin: 26px 0 34px; color: #d6e9f4; font-size: 17px; line-height: 1.75; }

.games-main, .about-section { max-width: var(--max); margin: 0 auto; padding: 118px 0; }
.section-heading { display: grid; grid-template-columns: 210px 1fr; gap: 50px; align-items: start; margin-bottom: 54px; }
.section-number { color: var(--sky-dark); }
.section-heading h2, .about-section h2, .contact-band h2 { max-width: 850px; margin: 0; font-size: clamp(38px, 4.4vw, 60px); font-weight: 600; line-height: 1.08; }
.game-feature { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: clamp(45px, 8vw, 100px); align-items: center; padding: 36px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.game-cover { position: relative; display: block; width: min(100%, 390px); overflow: hidden; aspect-ratio: 9 / 16; border-radius: 5px; background: var(--navy); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-cover:hover img { transform: scale(1.025); }
.game-cover > span { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 18px; padding: 9px 11px; background: rgba(255, 255, 255, .94); border-radius: 3px; font-size: 11px; font-weight: 700; }
.wide-cover { width: 100%; aspect-ratio: 1024 / 500; }
.game-meta { margin: 0 0 12px; color: var(--sky-dark); font-size: 11px; font-weight: 700; }
.game-copy h3 { margin: 0 0 22px; color: var(--navy); font-size: clamp(36px, 4vw, 56px); line-height: 1.08; font-weight: 600; }
.game-copy > p:not(.game-meta) { max-width: 570px; margin: 0 0 32px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.status-link { min-height: 62px; max-width: 360px; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--sky-dark); font-size: 15px; font-weight: 600; }
.status-link small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; }
.coming-feature { min-height: 470px; }
.coming-visual { position: relative; width: 100%; aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: #d9f3ff; color: var(--navy); border-radius: 5px; }
.coming-visual span { position: relative; z-index: 2; color: var(--sky-dark); font-size: 12px; font-weight: 700; }
.coming-visual strong { position: relative; z-index: 2; margin-top: 4px; font-size: clamp(42px, 5vw, 70px); line-height: 1; font-weight: 600; }
.coming-visual i { position: absolute; left: -8%; width: 116%; height: 54px; border: 2px solid rgba(2, 132, 199, .24); border-radius: 50%; }
.coming-visual i:nth-of-type(1) { bottom: 74px; }
.coming-visual i:nth-of-type(2) { bottom: 45px; }
.coming-visual i:nth-of-type(3) { bottom: 16px; }

.about-section { display: grid; grid-template-columns: 1.08fr .92fr; gap: 120px; border-top: 1px solid var(--line); }
.about-copy > p:last-child { max-width: 610px; margin: 34px 0 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.studio-facts { margin: 6px 0 0; }
.studio-facts div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.studio-facts div:first-child { padding-top: 0; }
.studio-facts dt { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.studio-facts dd { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.studio-facts a { border-bottom: 1px solid currentColor; }
.contact-band { padding: 105px max(24px, calc((100vw - var(--max)) / 2)); background: var(--navy); color: var(--white); border-top: 8px solid var(--sky); }
.contact-band .section-number { color: #7dd3fc; }
.contact-band h2 { max-width: 760px; }
.contact-band > p:not(.section-number) { max-width: 570px; margin: 28px 0 35px; color: #c8dce8; font-size: 16px; line-height: 1.75; }
.site-footer { min-height: 100px; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: var(--muted); font-size: 12px; }
.footer-links { justify-self: end; display: flex; gap: 24px; }

.support-main, .legal-main { max-width: 860px; margin: 0 auto; padding: 92px 0 120px; }
.page-eyebrow { margin: 0 0 24px; color: var(--sky-dark); font-size: 12px; font-weight: 700; }
.support-main h1, .legal-main h1 { margin: 0; color: var(--navy); font-size: clamp(42px, 5vw, 68px); line-height: 1.08; font-weight: 600; }
.page-lead { max-width: 690px; margin: 24px 0 60px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.support-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 70px; }
.support-option { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.support-option > span { display: inline-block; margin-bottom: 38px; color: var(--sky-dark); font-size: 11px; }
.support-option h2 { margin: 0 0 10px; font-size: 22px; }
.support-option p { min-height: 50px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.support-option a { display: inline-flex; gap: 8px; margin-top: 12px; border-bottom: 1px solid; font-size: 14px; font-weight: 600; }
.faq-item, .legal-section { padding: 30px 0; border-top: 1px solid var(--line); }
.faq-item h2, .legal-section h2 { margin: 0 0 14px; font-size: 21px; }
.faq-item p, .legal-section p, .legal-section li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.legal-section ul { padding-left: 20px; }
.legal-note { padding: 18px 20px; margin-bottom: 56px; border-left: 3px solid var(--sky); background: var(--white); color: var(--muted); font-size: 14px; line-height: 1.7; }

.detail-main { max-width: var(--max); margin: 0 auto; }
.detail-hero { min-height: 720px; padding: 72px 0 92px; display: grid; grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr); gap: clamp(55px, 9vw, 120px); align-items: center; }
.gem-detail-hero { display: block; }
.detail-banner { overflow: hidden; aspect-ratio: 1024 / 500; border-radius: 6px; background: var(--navy); box-shadow: 18px 18px 0 #cce7e9; }
.detail-banner img { width: 100%; height: 100%; object-fit: cover; }
.gem-detail-intro { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 36px; align-items: center; max-width: 900px; margin: 62px auto 0; }
.game-icon { width: 150px; height: 150px; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: 0 18px 38px rgba(23, 16, 51, .18); }
.gem-detail-intro h1 { font-size: clamp(44px, 5vw, 68px); }
.store-link { display: grid; grid-template-columns: auto 1fr auto; padding-right: 4px; }
.detail-body { margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.feature-heading { margin: 0 0 12px; color: var(--navy); font-size: 23px; font-weight: 600; }
.feature-list-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 60px; }
.detail-preview { width: min(100%, 390px); overflow: hidden; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--navy); box-shadow: 24px 24px 0 #c9efff; }
.detail-preview img { width: 100%; height: 100%; object-fit: cover; }
.detail-intro h1 { max-width: 680px; margin: 0; color: var(--navy); font-size: clamp(48px, 6vw, 78px); line-height: 1.04; font-weight: 600; }
.detail-intro > p:not(.page-eyebrow) { max-width: 620px; margin: 28px 0 35px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.detail-status { max-width: 340px; min-height: 62px; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--sky-dark); font-size: 15px; font-weight: 600; }
.detail-status small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; }
.detail-section { padding: 100px 0; border-top: 1px solid var(--line); }
.detail-copy-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 90px; }
.detail-lead { margin: 0; color: var(--navy); font-size: 21px; line-height: 1.7; }
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 23px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.7; }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list strong { display: block; margin-bottom: 5px; color: var(--navy); font-size: 17px; font-weight: 600; }
.portrait-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.portrait-gallery.five-up { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.portrait-gallery figure { margin: 0; overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: 5px; background: var(--navy); }
.portrait-gallery img { width: 100%; height: 100%; object-fit: cover; }
.release-band { padding: 88px max(24px, calc((100vw - var(--max)) / 2)); background: var(--sky); color: var(--navy); }
.release-band .section-number { color: var(--navy); }
.release-band h2 { max-width: 760px; margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; font-weight: 600; }
.release-band > p:not(.section-number) { max-width: 590px; margin: 24px 0 0; font-size: 16px; line-height: 1.75; }
.release-band .store-cta { margin-top: 30px; border-color: var(--navy); background: var(--navy); color: var(--white); }

@media (max-width: 1288px) {
  .games-main, .about-section, .site-footer { margin-left: 24px; margin-right: 24px; }
  .support-main, .legal-main { padding-left: 24px; padding-right: 24px; }
  .detail-main { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .slide-content { width: min(620px, calc(100% - 120px)); margin-left: 60px; }
  .carousel-status { left: 60px; right: 60px; }
  .static-hero-content { width: min(620px, calc(100% - 120px)); right: 60px; }
  .static-hero-shade { background: linear-gradient(270deg, rgba(6, 35, 47, .9), rgba(9, 54, 68, .22)); }
  .game-feature, .about-section { grid-template-columns: 1fr; gap: 44px; }
  .game-cover { margin: 0 auto; }
  .detail-copy-grid { grid-template-columns: 1fr; gap: 38px; }
  .feature-list-wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { height: 64px; padding: 0 18px; }
  .hero-carousel { height: calc(100svh - 64px); min-height: 650px; max-height: 780px; }
  .hero-slide > img { object-position: center 20%; }
  .slide-shade { background: linear-gradient(0deg, rgba(6, 32, 52, .96) 0%, rgba(6, 39, 64, .62) 60%, rgba(6, 39, 64, .2) 100%); }
  .slide-content { width: calc(100% - 36px); margin-left: 18px; top: auto; bottom: 88px; transform: none; }
  .slide-content h2 { font-size: 40px; }
  .slide-content > p:not(.eyebrow) { margin: 18px 0 24px; font-size: 15px; }
  .carousel-arrow { top: 26px; width: 38px; height: 38px; font-size: 17px; }
  .carousel-prev { left: 18px; }
  .carousel-next { right: 18px; }
  .carousel-status { left: 18px; right: 18px; bottom: 22px; }
  .static-hero { height: calc(100svh - 64px); min-height: 650px; max-height: 780px; }
  .static-hero-image { object-position: 38% center; }
  .static-hero-shade { background: linear-gradient(0deg, rgba(6, 35, 47, .96) 0%, rgba(9, 54, 68, .48) 58%, rgba(10, 48, 61, .06) 100%); }
  .static-hero-content { width: calc(100% - 36px); right: 18px; top: auto; bottom: 54px; transform: none; }
  .static-hero-content h1 { font-size: 43px; }
  .static-hero-content > p:not(.eyebrow) { margin: 18px 0 24px; font-size: 15px; }
  .games-main { margin: 0 18px; padding: 78px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 38px; }
  .section-heading h2, .about-section h2, .contact-band h2 { font-size: 38px; }
  .game-feature { padding: 18px; }
  .game-copy h3 { font-size: 36px; }
  .about-section { margin: 0 18px; padding: 78px 0; gap: 50px; }
  .contact-band { padding: 76px 18px; }
  .button-light { width: 100%; }
  .site-footer { margin: 0 18px; grid-template-columns: 1fr; align-items: start; padding: 36px 0; gap: 14px; }
  .footer-links { justify-self: start; }
  .support-main, .legal-main { padding: 70px 18px 90px; }
  .support-options { grid-template-columns: 1fr; }
  .support-option p { min-height: 0; }
  .detail-main { margin: 0 18px; }
  .detail-hero { min-height: 0; padding: 50px 0 78px; grid-template-columns: 1fr; gap: 58px; }
  .detail-preview { width: min(86%, 330px); margin: 0 auto; box-shadow: 14px 14px 0 #c9efff; }
  .detail-banner { box-shadow: 10px 10px 0 #cce7e9; }
  .gem-detail-intro { grid-template-columns: 88px minmax(0, 1fr); gap: 20px; margin-top: 42px; align-items: start; }
  .game-icon { width: 88px; height: 88px; border-radius: 17px; }
  .gem-detail-intro h1 { font-size: 40px; }
  .detail-intro h1 { font-size: 46px; }
  .detail-section { padding: 72px 0; }
  .portrait-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portrait-gallery.five-up { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .portrait-gallery.five-up figure { flex: 0 0 70%; scroll-snap-align: start; }
  .release-band { padding: 72px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
