:root {
  --ink: #161717;
  --muted: #696b68;
  --line: #d9dcd7;
  --paper: #f7f8f5;
  --white: #ffffff;
  --coral: #f26657;
  --green: #26a879;
  --blue: #315ecb;
  --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(--blue); outline-offset: 4px; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--ink); 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(247, 248, 245, .96);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; font-size: 14px; font-weight: 700; }
.brand-mark { width: 25px; height: 18px; display: flex; align-items: flex-end; gap: 3px; }
.brand-mark i { display: block; width: 6px; background: var(--ink); }
.brand-mark i:nth-child(1) { height: 9px; background: var(--coral); }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 13px; background: var(--green); }
.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(--ink); border-radius: 3px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.lang-switch:hover { background: var(--ink); color: var(--white); }

.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; }
.hero-carousel { min-height: min(720px, calc(100vh - 72px)); height: calc(100vh - 72px); max-height: 860px; position: relative; overflow: hidden; background: #191b1a; 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; transform: scale(1.015); transition: transform 6s ease; }
.hero-slide.is-active > img { transform: scale(1.05); }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 13, 13, .84) 0%, rgba(12, 13, 13, .62) 38%, rgba(12, 13, 13, .08) 74%); }
.slide-content { width: min(620px, 48vw); 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; }
.slide-content .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: rgba(255, 255, 255, .82); }
.status-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(38, 168, 121, .13); }
.slide-content h2 { max-width: 690px; margin: 0; font-size: clamp(45px, 5vw, 72px); line-height: 1.05; font-weight: 600; }
.slide-content > p:not(.eyebrow) { max-width: 530px; margin: 25px 0 0; color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.7; }
.slide-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.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-dark { background: var(--ink); color: var(--white); }
.button-light { background: var(--white); color: var(--ink); }
.slide-store-link, .slide-coming { display: inline-flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid currentColor; color: var(--white); font-size: 14px; font-weight: 600; }
.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, .52); border-radius: 50%; background: rgba(15, 16, 16, .32); color: var(--white); cursor: pointer; font-size: 20px; transition: background .2s ease, border-color .2s ease; }
.carousel-arrow:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.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; align-items: center; justify-content: space-between; pointer-events: none; }
.carousel-dots { display: flex; align-items: center; 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(--white); }
.carousel-index { margin: 0; color: rgba(255, 255, 255, .86); font-size: 11px; font-weight: 700; }

.games-main { max-width: var(--max); margin: 0 auto; padding: 118px 0; }
.page-intro { display: grid; grid-template-columns: 210px 1fr; gap: 50px; align-items: start; margin-bottom: 58px; }
.section-number, .game-number { color: var(--muted); font-size: 11px; font-weight: 700; }
.page-intro .section-number { margin-top: 8px; }
.page-intro 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-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.game-image-link { position: relative; display: block; margin: 18px 18px 0; aspect-ratio: 1; overflow: hidden; background: #eceeeb; border-radius: 4px; }
.game-image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-image-link:hover img { transform: scale(1.025); }
.view-label { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 18px; padding: 9px 11px; background: rgba(255, 255, 255, .94); border-radius: 3px; font-size: 11px; font-weight: 700; }
.game-card-body { padding: 25px 28px 30px; }
.game-number { margin: 0 0 11px; }
.game-card h3 { min-height: 72px; margin: 0 0 30px; font-size: 27px; font-weight: 600; line-height: 1.24; }
.game-card h3 a:hover { color: var(--accent); }
.accent-coral { --accent: var(--coral); }
.accent-green { --accent: var(--green); }
.accent-blue { --accent: var(--blue); }
.store-link { min-height: 62px; 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); font-size: 15px; font-weight: 600; transition: color .2s ease; }
.store-link:hover { color: var(--accent); }
.store-link small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; }
.play-mark { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid var(--ink); }
.status-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(49, 94, 203, .12); }
.coming-link { color: var(--blue); }

.about-section { max-width: var(--max); margin: 0 auto; padding: 118px 0; 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(--ink); color: var(--white); }
.contact-band .section-number { color: #9b9d99; }
.contact-band h2 { max-width: 760px; }
.contact-band > p:not(.section-number) { max-width: 570px; margin: 28px 0 35px; color: #b9bcb8; 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 { max-width: 860px; margin: 0 auto; padding: 92px 0 120px; }
.page-eyebrow { margin: 0 0 24px; color: var(--muted); font-size: 12px; font-weight: 700; }
.support-main h1 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.08; font-weight: 600; }
.page-lead { max-width: 680px; 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(--muted); 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 { padding: 30px 0; border-top: 1px solid var(--line); }
.faq-item h2 { margin: 0 0 14px; font-size: 21px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

@media (max-width: 1288px) {
  .games-main, .about-section, .site-footer { margin-left: 24px; margin-right: 24px; }
  .support-main { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero-carousel { min-height: 700px; }
  .slide-content { width: min(620px, calc(100% - 120px)); margin-left: 60px; }
  .slide-shade { background: linear-gradient(90deg, rgba(12, 13, 13, .78), rgba(12, 13, 13, .28)); }
  .carousel-status { left: 60px; right: 60px; }
  .page-intro, .about-section { grid-template-columns: 1fr; gap: 44px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { display: grid; grid-template-columns: minmax(250px, .9fr) 1.1fr; }
  .game-image-link { margin-bottom: 18px; }
  .game-card-body { align-self: center; }
  .game-card h3 { min-height: 0; }
}
@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; }
  .slide-shade { background: linear-gradient(0deg, rgba(10, 11, 11, .94) 0%, rgba(10, 11, 11, .52) 58%, rgba(10, 11, 11, .16) 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-top: 18px; font-size: 15px; }
  .slide-actions { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 24px; }
  .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; }
  .games-main { margin: 0 18px; padding: 78px 0; }
  .page-intro { gap: 20px; margin-bottom: 38px; }
  .page-intro .section-number { margin: 0; }
  .page-intro h2, .about-section h2, .contact-band h2 { font-size: 38px; }
  .game-card { display: block; }
  .game-card h3 { font-size: 24px; }
  .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 { padding: 70px 18px 90px; }
  .support-options { grid-template-columns: 1fr; }
  .support-option p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
