:root {
  color-scheme: dark;
  --bg: #141613;
  --surface: #1b1d18;
  --ink: #ece5d2;
  --muted: #c2baaa;
  --line: #414238;
  --accent: #b38879;
  --title: Cinzel, Georgia, serif;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; }
body.modal-open { overflow: hidden; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 3; padding: .6rem 1rem; background: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.15rem max(5vw, 1.25rem); }
.header { position: absolute; inset: 0 0 auto; z-index: 1; background: linear-gradient(#141612eb, #14161200); }
.header nav, .footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.header a, .footer a { text-decoration: none; }
.wordmark img { width: 2.5rem; height: 2.5rem; border-radius: .35rem; }
.header a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font: 600 1.15rem var(--title); white-space: nowrap; }
#language { background: #141613aa; border: 1px solid #d0c6ad59; padding: .3rem .75rem; }
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(825px, 94svh); padding: 9rem max(7vw, 1.25rem) clamp(4rem, 10vh, 8rem); overflow: hidden; }
.hero-image { position: absolute; z-index: -2; inset: 0; background: url('assets/screenshots/e1.jpg') 58% center / cover no-repeat; filter: saturate(.63); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg), #14161350 63%, #14161326), linear-gradient(90deg, #141613bc, #1416131a 77%); }
.hero-content { width: min(100%, 65rem); }
h1, h2 { font-family: var(--title); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(3.25rem, 10.2vw, 9rem); line-height: .98; text-shadow: 0 3px 35px #0009; }
h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.12; }
.hero-content > p { max-width: 32rem; margin-top: 1.3rem; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; }
.steam-button { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.55rem; padding: .7rem 1.25rem; background: #ded4b9; color: #201d18; text-decoration: none; font-weight: 600; }
.steam-button svg { width: 1.15rem; height: 1.15rem; flex: none; }
.steam-button:hover { background: #f1e8d5; }
.section { width: min(86%, 76rem); margin-inline: auto; }
.story { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: 4rem; }
.story-copy p { margin-top: 1.2rem; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.story img { border: 1px solid var(--line); }
.screenshots { border-top: 1px solid var(--line); padding-block: 3.5rem 5rem; }
.screenshots h2 { margin-bottom: 1.5rem; }
.footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); }
.footer p + p { margin-top: .25rem; }
@media (max-width: 700px) {
  .header { display: grid; grid-template-columns: 1fr auto; }
  .header nav { grid-column: 1 / -1; grid-row: 2; }
  #language { grid-column: 2; grid-row: 1; }
  .hero { min-height: 77svh; }
  .hero-image { background-position: 62% center; }
  .hero::after { background: linear-gradient(0deg, var(--bg), #14161372 70%, #14161336); }
  .story { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.game-gallery{grid-column:1/-1;border-top:1px solid var(--line);padding:36px;min-width:0;background:#121516}.game-gallery:focus-visible{outline:2px solid var(--red);outline-offset:-3px}.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.gallery-heading h4{font:600 clamp(30px,3.5vw,48px)/1 var(--display);margin:12px 0 8px}.gallery-stage{position:relative;background:#080e10}.gallery-main{display:block;width:100%;padding:0;background:none;position:relative;cursor:zoom-in}.gallery-image{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;max-height:650px;touch-action:pan-y}.gallery-enlarge{position:absolute;right:18px;bottom:18px;width:40px;height:40px;display:grid;place-items:center;background:#0b1014aa;border:1px solid #ffffff60;font-size:26px;transition:background .2s}.gallery-main:hover .gallery-enlarge{background:var(--red)}.gallery-arrow{display:grid;place-items:center;width:44px;height:44px;background:#0b1014cc;border:1px solid #ffffff55;font-size:24px;flex-shrink:0;transition:background .2s,border-color .2s}.gallery-arrow:hover{background:var(--red);border-color:var(--red)}.gallery-prev,.gallery-next{position:absolute;top:50%;transform:translateY(-50%)}.gallery-prev{left:18px}.gallery-next{right:18px}.gallery-caption{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;padding:16px 0}.gallery-caption p{color:#c4c9c9}.gallery-caption>span{color:var(--red);font-size:11px;letter-spacing:1px;white-space:nowrap}.gallery-thumbnails{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.gallery-thumb{position:relative;padding:0;background:#080e10;border:2px solid transparent;min-width:0;overflow:hidden}.gallery-thumb img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;opacity:.55;transition:opacity .25s,transform .4s}.gallery-thumb:hover img,.gallery-thumb.selected img{opacity:1}.gallery-thumb:hover img{transform:scale(1.05)}.gallery-thumb.selected{border-color:var(--red)}.gallery-thumb>span{position:absolute;left:6px;bottom:4px;font-size:9px;color:#fff;text-shadow:0 1px 4px #000;background:#0008;padding:0 4px}.gallery-help{font-size:10px;color:var(--muted);margin-top:15px}#gallery-dialog{width:min(1500px,96vw);max-height:96svh;padding:18px;background:#0b1012;border-color:#ffffff30;overflow:auto}#gallery-dialog::backdrop{background:#05090bf5}.lightbox-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}.lightbox-top>.tiny{color:#bcc4c5}.gallery-close{width:38px;height:38px;background:#ffffff09;border:1px solid var(--line);font-size:20px}.gallery-close:hover{background:var(--red)}.lightbox-stage{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}.lightbox-stage img{min-width:0;width:calc(100% - 112px);height:auto;max-height:calc(96svh - 150px);object-fit:contain;touch-action:pan-y}.lightbox-caption{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 56px 0;font-size:12px;color:var(--muted)}#lightbox-count{white-space:nowrap;color:var(--red);letter-spacing:1px}@media(max-width:800px){.game-gallery{padding:24px}.gallery-heading{margin-bottom:18px}.gallery-heading h4{font-size:34px}.gallery-thumbnails{grid-template-columns:repeat(7,85px);gap:8px;overflow-x:auto;padding-bottom:8px;scrollbar-color:var(--red) #222;scrollbar-width:thin}.gallery-arrow{width:36px;height:36px;font-size:20px}.gallery-prev{left:9px}.gallery-next{right:9px}.gallery-enlarge{right:10px;bottom:10px;width:30px;height:30px;font-size:22px}.gallery-caption{font-size:10px;gap:12px}.gallery-caption>span{font-size:10px}.gallery-help{font-size:9px}#gallery-dialog{padding:12px;width:96vw}.lightbox-stage{position:relative;display:block}.lightbox-stage img{width:100%;max-height:calc(96svh - 160px)}.lightbox-stage .gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.lightbox-stage .gallery-arrow:first-child{left:6px}.lightbox-stage .gallery-arrow:last-child{right:6px}.lightbox-caption{padding:14px 0 0;font-size:11px;gap:15px}.gallery-close{width:36px;height:36px}.lightbox-top>.tiny{font-size:9px}}


:root { --red: var(--accent); }
.game-gallery { padding: 0; border: 0; background: transparent; }
.gallery-stage { border: 1px solid var(--line); }
.gallery-caption, .gallery-help, .lightbox-caption { font-size: .95rem; }
.gallery-caption > span { color: var(--muted); }
#gallery-dialog { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
#gallery-dialog::backdrop { background: #10100eea; }

.gallery-thumbnails { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: clamp(5.25rem, 10vw, 8rem); overflow-x: auto; padding: 4px 4px 10px; scrollbar-color: var(--accent) var(--surface); }

.gameplay, .requirements {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem;
}
.gameplay h2, .requirements h2 { margin-bottom: 1.5rem; }
.gameplay-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  padding-block: 1.25rem;
}
.gameplay-feature + .gameplay-feature { border-top: 1px solid var(--line); }
.gameplay-feature img { width: 100%; border: 1px solid var(--line); }
.gameplay-feature h3 { margin: 0 0 .55rem; font: 600 clamp(1.2rem, 2.4vw, 1.85rem) var(--title); }
.gameplay-feature p { color: var(--muted); font-size: 1.1rem; line-height: 1.55; }
.requirements table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.requirements th, .requirements td { border-bottom: 1px solid var(--line); padding: .75rem .6rem; vertical-align: top; overflow-wrap: anywhere; }
.requirements th:first-child, .requirements td:first-child { padding-left: 0; width: 25%; }
.requirements tbody td { color: var(--muted); }
.requirements > a { display: inline-block; margin-top: 1.25rem; text-underline-offset: .2em; }
@media (max-width: 700px) {
  .gameplay-feature { grid-template-columns: 1fr; }
  .requirements th, .requirements td { padding-inline: .35rem; }
}

.footer { flex-wrap: wrap; }
.content-notice {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .85rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}
.content-notice strong { color: var(--ink); }
.social-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; }
.social-link svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--ink); }

.age-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid var(--accent);
  border-radius: .45rem;
  color: var(--ink);
  background: var(--surface);
  font: 600 1.1rem var(--title);
  font-variant-numeric: lining-nums;
}
.content-notice-copy { display: grid; gap: .1rem; }
#language { font: inherit; color: var(--ink); cursor: pointer; max-width: 100%; }
#language option { background: var(--surface); color: var(--ink); }
[dir="rtl"] .requirements table { text-align: right; }
[dir="rtl"] .requirements th:first-child, [dir="rtl"] .requirements td:first-child { padding-left: .6rem; padding-right: 0; }
[dir="rtl"] .game-gallery, [dir="rtl"] .lightbox-stage { direction: ltr; }
[dir="rtl"] .gallery-caption p, [dir="rtl"] .gallery-help, [dir="rtl"] #lightbox-description { direction: rtl; }
[dir="rtl"] .hero::after { transform: scaleX(-1); }
