/* Warm copper separates the reel games from the rest of the studio. */
:root { color-scheme: dark; --bg: #101311; --surface: #1b201c; --line: #343b34; --text: #f2f1e9; --muted: #a4aaa1; --accent: #e4b774; }

/* Establish responsive sizing, typography, and keyboard focus. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Avenir Next", Avenir, "Gill Sans", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(100% - 64px, 1380px); margin-inline: auto; }
.accent { color: var(--accent); }

/* Section anchors replace the old multi-page mobile navigation. */
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.brand-mark { color: var(--accent); font-size: 1.5rem; line-height: 1; }
.site-header nav { display: flex; align-items: center; gap: clamp(13px, 2.5vw, 36px); }
.site-header nav a { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav .all-apps { color: var(--text); }

/* The original 480px game capture sits on a warm, theatrical stage. */
.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, 1fr); align-items: center; gap: clamp(35px, 6vw, 90px); padding-block: 74px 105px; }
.hero-copy { z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgb(228 183 116 / 12%); }
h1, h2 { font-weight: 500; letter-spacing: -.075em; line-height: 1; }
h1 { max-width: 690px; margin-bottom: 28px; font-size: clamp(4.2rem, 6.4vw, 7.5rem); }
h1 em { color: var(--accent); font-family: Baskerville, Georgia, serif; font-weight: 400; }
.hero-copy > p:not(.eyebrow, .availability) { max-width: 480px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.06rem, 1.6vw, 1.25rem); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px 26px; }
.primary-link { padding: 15px 21px; border-radius: 9px; background: var(--accent); color: #191814; font-size: .84rem; font-weight: 800; text-decoration: none; transition: transform .2s ease; }
.primary-link:hover { transform: translateY(-3px); }
.secondary-link { padding-bottom: 7px; border-bottom: 1px solid var(--accent); font-size: .84rem; font-weight: 800; text-decoration: none; }
.availability { margin: 26px 0 0; color: #b8aaa0; font-size: .83rem; }
.hero-art { min-height: 470px; display: grid; place-items: center; overflow: hidden; position: relative; border: 1px solid #514634; border-radius: 22px; background: radial-gradient(circle at 50% 50%, #6b5135, #352b23 58%, #24231f); }
.art-orbit { position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid rgb(240 213 166 / 16%); border-radius: 50%; box-shadow: 0 0 0 80px rgb(240 213 166 / 3%); }
.hero-art img { z-index: 1; width: min(87%, 520px); border-radius: 7px; filter: drop-shadow(0 30px 25px rgb(0 0 0 / 42%)); transform: rotate(-4deg); }

/* Shared headings keep the long product page coherent. */
.watch, .features, .guide, .details { padding-block: 75px 125px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.section-heading h2 { max-width: 780px; margin: 0; font-size: clamp(3rem, 5vw, 5.7rem); }
.section-link { flex: none; padding-bottom: 7px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: .86rem; font-weight: 800; text-decoration: none; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Feature cards summarise the actual game controls. */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-grid article { min-height: 290px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.feature-grid article > span { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.feature-grid h3 { margin: 58px 0 14px; font-size: 1.8rem; font-weight: 600; letter-spacing: -.05em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }

/* Ordered instructions replace dense nested jQuery lists. */
.guide { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px, 7vw, 110px); }
.guide h2 { max-width: 570px; margin-bottom: 22px; font-size: clamp(3rem, 5vw, 5.7rem); }
.guide > div > p:last-child { max-width: 360px; color: var(--muted); line-height: 1.6; }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.guide li { position: relative; min-height: 75px; padding: 20px 0 20px 62px; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.55; counter-increment: step; }
.guide li:first-child { border-top: 1px solid var(--line); }
.guide li::before { position: absolute; left: 0; top: 20px; content: counter(step, decimal-leading-zero); color: var(--accent); font-size: .8rem; font-weight: 800; }
.guide strong { color: var(--text); }

/* Scores and FAQ retain their own accessible anchor targets. */
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.details article { padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); scroll-margin-top: 24px; }
.details h2 { margin-bottom: 20px; font-size: clamp(2.5rem, 3.8vw, 4.2rem); }
.details article > p:last-child { max-width: 50ch; margin: 0; color: var(--muted); line-height: 1.65; }
.more { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 105px; padding: 43px; border: 1px solid #50432f; border-radius: 18px; background: radial-gradient(circle at 100% 0, #3f3325, #24231e 65%); }
.more h2 { max-width: 650px; margin: 0; font-size: clamp(2.6rem, 4vw, 4.5rem); }
.more > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.more a { padding-bottom: 6px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: .9rem; font-weight: 800; text-decoration: none; }
.site-footer { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer div { display: flex; gap: 26px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Screenshot page keeps all seven original images in a responsive gallery. */
.gallery-page { padding-block: 80px 120px; }
.gallery-heading { max-width: 850px; margin-bottom: 54px; }
.gallery-heading h1 { margin-bottom: 20px; }
.gallery-heading > p:last-child { max-width: 550px; color: var(--muted); font-size: 1.12rem; line-height: 1.6; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.screenshot-grid a { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.screenshot-grid a:hover, .screenshot-grid a:focus-visible { border-color: var(--accent); transform: translateY(-4px); }
.screenshot-grid img { width: 100%; aspect-ratio: 3 / 2; border-radius: 9px; object-fit: cover; }
.screenshot-grid span { padding: 0 4px 4px; color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.gallery-return { display: inline-block; margin-top: 45px; padding-bottom: 7px; border-bottom: 1px solid var(--accent); font-size: .88rem; font-weight: 800; text-decoration: none; }

/* Native dialog replaces the old PhotoSwipe viewer. */
.lightbox { width: min(95vw, 1100px); max-height: 95vh; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #151a16; color: var(--text); }
.lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 5px 15px; }
.lightbox-top p { margin: 0; color: var(--muted); font-size: .9rem; }
.lightbox button { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.3rem; }
.lightbox button:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-image { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 10px; }
.lightbox-image img { max-width: 100%; max-height: calc(95vh - 105px); margin: auto; object-fit: contain; }

/* Tight screens collapse the grids without changing link order. */
@media (max-width: 1000px) { .site-header nav a:not(.all-apps):not(:first-child) { display: none; } .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .hero { grid-template-columns: 1fr; } .hero-art { min-height: 410px; } .section-heading { display: block; } .section-link { display: inline-block; margin-top: 22px; } .feature-grid { grid-template-columns: 1fr; } .feature-grid article { min-height: 0; } .feature-grid h3 { margin-top: 30px; } .guide { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .shell { width: min(100% - 36px, 1380px); }
  .site-header { min-height: 80px; }
  .brand { font-size: 1.02rem; }
  .site-header nav a:not(.all-apps) { display: none; }
  .site-header nav a { font-size: .68rem; }
  .hero { min-height: 0; gap: 38px; padding-block: 70px 85px; }
  h1 { font-size: clamp(3.5rem, 13vw, 5.7rem); }
  .hero-art { min-height: 310px; }
  .watch, .features, .guide, .details { padding-block: 65px 85px; }
  .details { grid-template-columns: 1fr; }
  .details article { padding: 30px; }
  .more { align-items: flex-start; flex-direction: column; margin-bottom: 85px; padding: 30px; }
  .gallery-page { padding-block: 65px 85px; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 10px; }
  .lightbox-image { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 4px; }
  .lightbox button { width: 34px; height: 34px; }
}

/* Reduced-motion preferences also apply to anchors and hover details. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
