/* Relaxed Pixel — base styles and phone-first layout. Desktop overrides in desktop.css. */
:root {
  color-scheme: dark;
  --bg: #090405;
  --ink: #f5eee7;
  --muted: #c4b9b1;
  --secondary: #9c8d83;
  --gold: #e7b64b;
  --gold-soft: #ba8237;
  --red: #81100d;
  --red-hot: #b8291a;
  --line: rgba(208, 123, 39, .52);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
body::before { content:""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 55% 12%, rgba(105, 22, 11, .13), transparent 58%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #ffd570; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: normal; line-height: 1.08; }
.shell { width: min(100% - 36px, 1450px); margin: 0 auto; }
.visually-hidden { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; position: absolute; white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 100; padding: 10px 14px; background: #efcc86; color: #150505; }
.skip-link:focus { top: 10px; }
.eyebrow, .game-genre, .game-subtitle, .hero-tagline, .brand-caption, .news-date { font-size: .74rem; text-transform: uppercase; letter-spacing: .17em; line-height: 1.5; font-weight: 650; color: var(--gold); }
.eyebrow { margin-bottom: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 45px; border: 1px solid #bf7e37; border-radius: 3px; padding: 10px 20px; background: #170807; color: #f4dfb1; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; font-size: .73rem; line-height: 1.25; text-align: center; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.button:hover { border-color: #f4b553; box-shadow: 0 0 22px rgba(195, 45, 19, .18); transform: translateY(-1px); }
.button-primary { color: #fff1d8; background: linear-gradient(180deg,#9c1710,#650b0a); box-shadow: inset 0 1px rgba(255,255,255,.11); }
.button-primary:hover { background: linear-gradient(180deg,#c82e1b,#85110d); }
.button-outline { background: rgba(5, 3, 3, .48); }
.button-outline:hover { background: rgba(101,25,16,.3); }
.button-small { min-height: 39px; padding: 9px 20px; font-size: .7rem; }

/* Header */
.site-header { position: relative; z-index: 20; background: linear-gradient(100deg,#190708 0%,#120707 54%,#1b090a 100%); border-bottom: 1px solid rgba(209, 126, 42, .56); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 75px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-flame { flex: 0 0 auto; width: 43px; height: 55px; object-fit: contain; }
.brand-wordmark { display: flex; flex-direction: column; min-width: 0; }
.brand-title { white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.52rem, 5.8vw, 2.22rem); letter-spacing: -.025em; color: #f2e4cd; line-height: 1.04; }
.brand-caption { margin-top: 4px; font-size: .46rem; letter-spacing: .18em; white-space: nowrap; }
.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center; width: 45px; height: 43px; flex: 0 0 45px; border: 1px solid var(--line); border-radius: 4px; background: #1d0908; color: var(--gold); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px 18px 18px; background: #180908; border-bottom: 1px solid var(--line); box-shadow: 0 18px 24px rgba(0,0,0,.38); }
.primary-nav.is-open { display: flex; }
.nav-link { font-size: .78rem; letter-spacing: .12em; font-weight: 650; text-transform: uppercase; padding: 11px 13px; color: #ddd1c8; }
.nav-link:hover, .nav-link.is-active { color: var(--gold); }
.button-header { margin-top: 7px; }
.button-header img { width: 19px; height: 19px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #0a0505; border-bottom: 1px solid rgba(84,38,16,.15); }
.hero-landscape { position: relative; z-index: -1; height: clamp(200px, 49vw, 300px); background-image: linear-gradient(0deg,#090405 0%,rgba(9,4,5,0) 24%), url('assets/hero-landscape.webp'); background-size: cover; background-position: 50% 54%; }
.hero-content { position: relative; padding-top: 12px; padding-bottom: 27px; }
.hero-copy { max-width: 650px; }
.hero h1 { font-size: clamp(2.78rem, 9vw, 5.5rem); text-transform: uppercase; letter-spacing: -.035em; margin: 0 0 2px; }
.hero-tagline { font-size: .7rem; line-height: 1.9; letter-spacing: .16em; margin-bottom: 16px; }
.hero-description { color: #d1c8c1; font-size: .91rem; line-height: 1.75; margin-bottom: 22px; max-width: 520px; }
.hero-description strong { color: #fff2e0; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero-actions .button { flex: 1 1 160px; }

/* Game cards */
.games-section { position: relative; margin-top: 12px; }
.game-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.game-card { min-width: 0; position: relative; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(ellipse at 90% 90%,rgba(111,34,10,.2),transparent 55%),linear-gradient(135deg,#160b08 0%,#120808 52%,#21100a 100%); box-shadow: 0 12px 20px rgba(0,0,0,.13); }
.game-card::after { position: absolute; z-index: -1; pointer-events: none; content:""; width: 66%; height: 80%; right: -3%; bottom: -29%; opacity: .16; background: repeating-linear-gradient(45deg,transparent,transparent 22px,rgba(226,106,41,.09) 23px,transparent 24px); }
.game-image { position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; background: #0e1711; min-height: 195px; }
.game-image img { display: block; width: 100%; height: 100%; max-height: 250px; object-fit: cover; object-position: center; }
.game-image-phone { background: #0d171a; }
.game-image-phone img { width: auto; max-width: 100%; height: 255px; object-fit: contain; image-rendering: auto; }
.game-details { z-index: 1; padding: 23px 22px 25px; }
.game-genre { margin-bottom: 4px; font-size: .67rem; }
.game-details h3 { font-size: 2.4rem; margin-bottom: 4px; }
.game-subtitle { margin-bottom: 17px; font-size: .64rem; }
.game-description { margin-bottom: 19px; max-width: 290px; color: #cbc4be; font-size: .85rem; line-height: 1.63; }
.card-ornament { position: absolute; z-index: 0; width: 70px; height: 70px; right: 8px; bottom: 120px; opacity: .24; pointer-events: none; }

/* Updates */
.news-section { margin-top: 32px; margin-bottom: 44px; }
.section-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.section-title-row h2 { margin: 0; }
.section-side-link { font-size: .68rem; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.section-side-link:hover, .footer-nav a:hover, .footer-newsletter:hover { color: #ffdc83; }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.news-item { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 19px 6px; border-bottom: 1px solid rgba(168,86,31,.28); }
.news-item:last-child { border-bottom: 0; }
.news-item > img { width: 47px; height: 51px; object-fit: contain; flex: 0 0 47px; image-rendering: pixelated; }
.news-date { color: #aa9990; font-size: .6rem; letter-spacing: .14em; margin-bottom: 2px; }
.news-item h3 { font-family: var(--font-body); font-size: .91rem; font-weight: 650; margin-bottom: 3px; }
.news-item p:last-child { color: #ada49d; font-size: .78rem; line-height: 1.55; margin-bottom: 0; }

/* Newsletter feature */
.newsletter-section { overflow: hidden; position: relative; border-top: 1px solid #9b4023; border-bottom: 1px solid #9b4023; background: radial-gradient(circle at 55% 50%,rgba(119,33,12,.28),transparent 55%),linear-gradient(105deg,#1d0d0a,#150808 65%,#250a09); }
.newsletter-inner { display: grid; grid-template-columns: 1fr; gap: 22px; padding-top: 0; padding-bottom: 28px; }
.newsletter-art { display: grid; place-items: center; height: 160px; min-width: 0; background: linear-gradient(90deg,rgba(11,5,4,.1),rgba(11,5,4,.12)),url('assets/newsletter-ruins.webp') center 56%/cover; border-bottom: 1px solid rgba(227,164,79,.25); }
.newsletter-envelope { width: 110px; height: auto; filter: drop-shadow(0 0 27px rgba(249,141,35,.38)); }
.newsletter-copy h2 { font-size: clamp(2rem,5.5vw,2.85rem); color: #f7e8d3; margin-bottom: 10px; }
.newsletter-copy p:last-child { margin-bottom: 0; color: #cfc2b6; font-size: .9rem; }
.newsletter-form { min-width: 0; }
.signup-controls { display: grid; grid-template-columns: 1fr; gap: 10px; }
.input-wrap { position: relative; display: flex; align-items: center; border: 1px solid rgba(221,166,86,.7); border-radius: 3px; min-height: 46px; background: rgba(7,5,5,.65); }
.input-wrap:focus-within { outline: 2px solid rgba(234,180,82,.65); outline-offset: 2px; }
.input-wrap img { flex: 0 0 auto; margin-left: 13px; opacity: .9; }
.input-wrap input { width: 100%; height: 46px; min-width: 0; border: 0; outline: 0; padding: 0 12px; background: transparent; color: #f9eee0; font-size: .86rem; }
.input-wrap input::placeholder { color: #a59a94; }
.signup-note { min-height: 25px; margin: 9px 0 0; font-size: .73rem; color: #b5a59b; }
.signup-note.is-error { color: #ffb7a1; }
.signup-note.is-success { color: #cce6ab; }

/* About section */
.about-section { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding-top: 45px; padding-bottom: 51px; }
.about-mark { border: 1px solid rgba(222,148,43,.32); background: radial-gradient(circle,rgba(163,44,18,.19),transparent 65%); display: grid; place-items: center; flex: 0 0 74px; width: 74px; height: 74px; }
.about-mark img { height: 62px; width: auto; }
.about-content { max-width: 815px; }
.about-content h2 { font-size: clamp(1.85rem,4vw,2.55rem); margin-bottom: 15px; }
.about-content p:last-child { color: #cbbcb2; font-size: .92rem; line-height: 1.75; margin: 0; }
.about-cta { align-self: stretch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(90deg,#170808,#120606,#190808); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 19px; padding-top: 25px; padding-bottom: 20px; text-align: center; }
.brand-footer .brand-flame { width: 36px; height: 46px; }
.brand-footer .brand-title { font-size: 1.53rem; }
.brand-footer .brand-caption { font-size: .42rem; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 20px; }
.footer-nav a, .footer-newsletter { color: #e0d2c4; text-transform: uppercase; font-size: .69rem; letter-spacing: .1em; }
.footer-newsletter { display: inline-flex; align-items: center; gap: 9px; color: #e3b45e; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 24px; padding: 15px 0 18px; border-top: 1px solid rgba(191,114,46,.28); font-size: .67rem; color: #9e8d84; text-align: center; }
.footer-bottom a { color: #cfa05c; }

/* Functional game info dialogs */
.game-dialog { width: min(calc(100% - 24px), 580px); max-height: min(85vh,850px); overflow-y: auto; padding: 0; color: var(--ink); background: #160a08; border: 1px solid #c18036; border-radius: 5px; box-shadow: 0 20px 70px rgba(0,0,0,.7); }
.game-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 13px; top: 12px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; font-size: 1.85rem; color: white; background: rgba(20,5,5,.88); border: 1px solid var(--line); }
.dialog-image { display: block; max-height: 300px; width: 100%; object-fit: cover; object-position: center; background: #07160d; }
.dialog-image.is-contain { object-fit: contain; background: #140908; }
.dialog-text { padding: 28px; }
.dialog-text h2 { font-size: clamp(1.65rem,5vw,2.5rem); margin-bottom: 17px; }
.dialog-text p:not(.eyebrow) { color: #ddcfc2; font-size: .94rem; }
.dialog-text .dialog-footnote { font-style: italic; color: #ab9c92 !important; font-size: .82rem !important; }

/* Footer: partner link back to GodWinds Studios */
.footer-partner { display: flex; justify-content: center; padding: 2px 0 18px; }
.partner-link { display: inline-flex; align-items: center; gap: 14px; padding: 9px 20px 9px 13px; border: 1px solid rgba(191,114,46,.4); border-radius: 3px; background: rgba(8,4,4,.5); transition: border-color .2s, background .2s; }
.partner-link:hover { border-color: #f4b553; background: rgba(101,25,16,.25); }
.partner-link img { width: 46px; height: auto; flex: 0 0 46px; }
.partner-link small { display: block; font-size: .6rem; letter-spacing: .17em; text-transform: uppercase; color: #a99b94; line-height: 1.4; }
.partner-link strong { display: block; font-family: var(--font-display); font-weight: normal; font-size: 1.18rem; color: #f2e4cd; line-height: 1.2; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* EN | ES switch (the ES link opens the page through Google Translate) */
.footer-lang { display: flex; justify-content: center; padding: 0 0 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 0; border: 1px solid rgba(191,114,46,.4); border-radius: 6px; font-size: .72rem; letter-spacing: .08em; overflow: hidden; }
.lang-switch .lang-label { padding: 6px 10px; color: #9e8466; text-transform: uppercase; font-size: .62rem; letter-spacing: .12em; border-right: 1px solid rgba(191,114,46,.4); }
.lang-switch a { padding: 6px 12px; color: #cfa05c; text-decoration: none; font-weight: 700; }
.lang-switch a + a { border-left: 1px solid rgba(191,114,46,.4); }
.lang-switch a[aria-current="true"] { background: rgba(191,114,46,.22); color: #f2d9a8; }
.lang-switch a:hover, .lang-switch a:focus-visible { background: rgba(191,114,46,.32); color: #fff3d6; }
