:root {
  color-scheme: dark;
  --night: #070817;
  --panel: #121225;
  --ink: #fff1df;
  --muted: #c7bdd0;
  --amber: #ffc274;
  --violet: #ba91ff;
  --coral: #ff806b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
.skip-link { position: absolute; z-index: 100; top: -5rem; left: 1rem; padding: .7rem 1rem; background: #fff; color: #111; }
.skip-link:focus { top: 1rem; }
.site-shell { overflow: hidden; }
.site-header, .hero, .section, .site-footer { max-width: 1600px; margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-height: 86px;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid #76567a;
  background: #080918ec;
  box-shadow: 0 6px 0 #0707109e;
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark, .footer-brand img { display: block; object-fit: contain; image-rendering: pixelated; }
.brand-mark { width: 44px; height: 44px; }
.brand-name, .footer-brand { font: 900 15px Arial, sans-serif; letter-spacing: .05em; white-space: nowrap; }
.brand-name span, .footer-brand span { color: #8cdef0; }
.header-status { display: flex; align-items: center; gap: 9px; color: #cbb5d1; font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; white-space: nowrap; }
.header-status span { width: 8px; height: 8px; background: #71d7be; box-shadow: 0 0 12px #71d7be; }
.site-nav { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.site-nav a { padding: 10px 12px; border: 2px solid transparent; }
.site-nav a:hover { color: var(--amber); }
.site-nav .nav-contact { border-color: #a1767d; background: #21182a; box-shadow: 4px 4px 0 #513447; }
.nav-contact span { margin-left: 10px; }

.hero {
  position: relative;
  min-height: 800px;
  padding: 166px 5% 112px;
  background-color: #0d0e20;
  background-image:
    linear-gradient(90deg, #070817ed 0%, #070817ce 30%, #07081780 54%, #0708172b 100%),
    linear-gradient(0deg, #070817 0%, transparent 20%),
    url("assets/pixel-forest-clearing.jpg");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero:before { content: ""; position: absolute; inset: 87px 0 0; z-index: -1; background: linear-gradient(#b58ac80c 1px, transparent 1px), linear-gradient(90deg, #b58ac80c 1px, transparent 1px); background-size: 34px 34px; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: min(50%, 590px); }
.eyebrow, .section-kicker, .game-overline, .image-tag, .hero-bottom, .hero-party figcaption, .studio-aside-label, .hero-worlds-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: .1em;
}
.eyebrow { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; color: var(--amber); font-size: 12px; white-space: nowrap; }
.eyebrow-line { width: 7px; height: 7px; background: var(--amber); box-shadow: 10px 0 var(--amber), 20px 0 var(--amber); }
.eyebrow-index { color: #d5c4b1; }
.hero h1 { margin: 0; font-size: clamp(48px, 5.3vw, 82px); line-height: 1.2; letter-spacing: -.075em; text-shadow: 4px 5px 0 #130d27, 0 8px 30px #04040b; }
.hero h1 span { color: var(--amber); }
.hero-description { max-width: 540px; margin: 28px 0 30px; color: #e0d3d6; font-size: 17px; line-height: 1.8; text-shadow: 0 2px 9px #04040b; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 54px; font-size: 15px; font-weight: 800; }
.button-primary { min-width: 178px; padding: 0 18px; color: #251725; background: var(--amber); border: 3px solid #ffe5af; box-shadow: 6px 6px 0 #a7584d; transition: transform .18s, box-shadow .18s; }
.button-primary:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #a7584d; }
.button-text { border-bottom: 3px solid #b7858e; color: #fff1e5; }
.button-text:hover { color: var(--amber); }
.hero-worlds { position: absolute; z-index: 2; left: 5%; bottom: 77px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(46%, 570px); padding-top: 20px; border-top: 2px solid #a484915c; }
.hero-worlds-title { grid-column: 1 / -1; margin-bottom: 2px; color: #ccb3d7; font-size: 12px; }
.hero-worlds a { display: flex; align-items: center; gap: 11px; min-height: 70px; padding: 10px 12px; border: 2px solid #725a86; background: #141024e8; box-shadow: 4px 4px 0 #382442; transition: transform .18s; }
.hero-worlds a:last-child { border-color: #925258; background: #27141feb; box-shadow: 4px 4px 0 #4d2736; }
.hero-worlds a:hover { transform: translateY(-4px); }
.hero-worlds a > span:last-child { margin-left: auto; color: var(--amber); }
.hero-worlds strong, .hero-worlds small { display: block; }
.hero-worlds strong { font-size: 15px; }
.hero-worlds small { margin-top: 3px; color: #c8b8c9; font-size: 12px; }
.world-glyph { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 2px solid currentColor; font-size: 18px; }
.dungeon-glyph { color: var(--violet); background: #281b40; }
.bloodlands-glyph { color: var(--coral); background: #421e2a; }
.hero-party { position: absolute; z-index: 1; right: 0; bottom: 98px; width: 52%; margin: 0; text-align: right; }
.hero-party img { display: block; width: 100%; height: auto; max-height: 660px; object-fit: contain; object-position: right bottom; image-rendering: pixelated; filter: drop-shadow(0 12px 0 #090916ad) drop-shadow(0 0 28px #e98a6048); }
.hero-party figcaption { display: inline-block; margin: 4px 7% 0 0; padding: 7px 10px; color: #e7d7d2; background: #080817d9; border: 1px solid #806573; font-size: 12px; }
.hero-bottom { position: absolute; bottom: 22px; left: 5%; right: 5%; display: flex; justify-content: space-between; gap: 10px; color: #d5c4d2; font-size: 12px; }
.hero-bottom a:hover { color: var(--amber); }
.hero-bottom a span { margin-left: 8px; }

.section { padding: 104px 5%; }
.games { border-top: 4px solid #6e5165; background-color: #100e1e; background-image: linear-gradient(#ad8baf0d 1px, transparent 1px), linear-gradient(90deg, #ad8baf0d 1px, transparent 1px), linear-gradient(#100e1ed7, #100e1ef3), url("assets/pixel-night-grove.jpg"); background-size: 30px 30px, 30px 30px, cover, cover; background-position: center, center, center, center top; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 44px; }
.section-kicker { margin: 0 0 19px; color: var(--amber); font-size: 12px; }
.section-kicker:before { content: "▣"; margin-right: 10px; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 4.1vw, 58px); letter-spacing: -.06em; }
.period { color: var(--amber); }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.game-card { position: relative; display: grid; grid-template-columns: 1.12fr 1fr; min-height: 430px; margin-bottom: 38px; border: 4px solid #6b578c; background: var(--panel); box-shadow: 10px 10px 0 #332546; }
.game-card:last-child { margin-bottom: 0; }
.game-card:before { content: "■ ■ ■"; position: absolute; z-index: 2; right: 13px; top: 10px; color: #b79ada; font: 12px ui-monospace, monospace; letter-spacing: 4px; }
.game-image-wrap { position: relative; min-height: 422px; overflow: hidden; background: #211b2f; }
.game-image-wrap:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, #11101e8f); pointer-events: none; }
.game-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-card:hover .game-image-wrap img { transform: scale(1.025); }
.image-tag { position: absolute; z-index: 1; bottom: 15px; left: 15px; padding: 8px 11px; color: #fff1e6; background: #0a091be8; border-left: 5px solid var(--violet); font-size: 12px; letter-spacing: .02em; }
.game-details { display: flex; flex-direction: column; justify-content: center; padding: 43px 45px; background: radial-gradient(circle at 92% 15%, #45315d, transparent 58%), #181426; }
.game-overline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #c9b2e6; font-size: 12px; }
.status { color: #f5e8ef; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; white-space: nowrap; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--violet); vertical-align: middle; }
.game-details h3 { margin: 35px 0 22px; font: 900 clamp(43px, 4.2vw, 68px)/1 Arial, sans-serif; letter-spacing: -.055em; text-shadow: 4px 4px 0 #0b0b1a; }
.game-details p { max-width: 430px; margin: 0 0 32px; color: #d4c8d5; font-size: 16px; line-height: 1.8; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.game-tags span { padding: 7px 10px; border: 2px solid #776384; color: #ddd0e2; background: #171124; font-size: 13px; }
.bloodlands { border-color: #a65d60; box-shadow: -10px 10px 0 #4d2838; }
.bloodlands:before { left: 13px; right: auto; color: #e89689; }
.bloodlands .game-image-wrap { order: 2; }
.bloodlands .game-image-wrap:after { background: linear-gradient(90deg, #1c111b9c, transparent 35%); }
.bloodlands .game-details { order: 1; background: radial-gradient(circle at 10% 15%, #5e2938, transparent 60%), #23151f; }
.bloodlands .image-tag { border-color: var(--coral); }
.bloodlands .game-overline { color: #eeaaa9; }
.bloodlands .status-dot { background: var(--coral); }
.bloodlands .game-tags span { border-color: #9b5d65; background: #27151f; }

.studio { display: grid; grid-template-columns: minmax(300px, .9fr) 1.3fr; gap: 8%; align-items: center; border-top: 4px solid #59436d; border-bottom: 4px solid #5d4b69; background-color: #121526; background-image: linear-gradient(90deg, #131228ad 0%, #111827e3 52%, #0e1827f0 100%), url("assets/pixel-night-grove.jpg"); background-size: cover; background-position: center 65%; }
.studio-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 440px; padding: 23px; border: 4px solid #976e87; background: linear-gradient(#ffc87913 1px, transparent 1px), linear-gradient(90deg, #ffc87913 1px, transparent 1px), #1d182aab; background-size: 22px 22px, 22px 22px, auto; box-shadow: 10px 10px 0 #3a283b; }
.studio-aside .section-kicker { margin-bottom: 0; }
.studio-mascot { align-self: center; display: block; width: min(84%, 330px); height: 310px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(7px 8px 0 #140e1e) drop-shadow(0 0 20px #f4935766); }
.studio-aside-label { color: #e7c8bf; font-size: 12px; line-height: 1.5; }
.studio-copy h2 { margin: 0 0 30px; font-size: clamp(41px, 4.2vw, 64px); line-height: 1.28; letter-spacing: -.065em; }
.studio-copy h2 em { color: var(--amber); font-style: normal; }
.studio-copy p { max-width: 630px; margin: 0 0 17px; color: #d2c8d2; font-size: 17px; line-height: 1.85; }

.contact { position: relative; min-height: 450px; background-color: #111526; background-image: linear-gradient(90deg, #171327f2 0%, #121626d9 62%, #11182791 100%), url("assets/pixel-night-grove.jpg"); background-size: cover; background-position: center 80%; }
.contact:after { content: "■ ■ ■"; position: absolute; right: 5%; top: 96px; color: #a76a76; font: 20px ui-monospace, monospace; letter-spacing: 15px; }
.contact-content { display: flex; align-items: end; justify-content: space-between; gap: 45px; }
.contact h2 { margin: 10px 0 22px; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.23; letter-spacing: -.07em; }
.contact h2 span { color: var(--amber); }
.contact p:not(.section-kicker) { color: #d0c5d1; font-size: 16px; line-height: 1.85; }
.contact-notice { display: flex; align-items: center; gap: 15px; min-width: 330px; margin-bottom: 10px; padding: 19px; border: 3px solid #b5756b; background: #31202fe8; box-shadow: 7px 7px 0 #5a3340; }
.notice-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; color: var(--amber); background: #4c2a3b; border: 2px solid #d39777; font-size: 24px; }
.contact-notice strong, .contact-notice span:last-child { display: block; }
.contact-notice strong { margin-bottom: 7px; font-size: 16px; }
.contact-notice span:last-child { color: #dbc9cd; font-size: 13px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 5%; color: #b5a8bb; font-size: 13px; }
.footer-brand { font-size: 14px; color: var(--ink); }
.footer-brand img { width: 28px; height: 28px; }
.site-footer a:last-child:hover { color: var(--amber); }

@media (max-width: 1120px) {
  .header-status { display: none; }
  .hero-copy { width: min(55%, 590px); }
  .hero-party { width: 55%; }
  .hero h1 { font-size: clamp(48px, 5.1vw, 68px); }
}
@media (max-width: 900px) {
  .hero { min-height: 790px; padding-top: 135px; }
  .hero-copy { width: min(62%, 570px); }
  .hero-party { right: -2%; width: 53%; }
  .game-card { grid-template-columns: 1fr; }
  .game-image-wrap { min-height: 0; aspect-ratio: 16 / 9; }
  .bloodlands .game-image-wrap, .bloodlands .game-details { order: initial; }
  .game-details { min-height: 310px; }
  .studio { gap: 7%; }
}
@media (max-width: 680px) {
  .site-header { min-height: 68px; padding: 10px 5%; gap: 8px; }
  .brand { gap: 5px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 11px; }
  .site-nav { gap: 0; font-size: 12px; }
  .site-nav a { padding: 7px; }
  .site-nav a:nth-child(2) { display: none; }
  .site-nav .nav-contact { box-shadow: 3px 3px 0 #513447; }
  .nav-contact span { margin-left: 3px; }
  .hero {
    min-height: 0;
    padding: 112px 5% 70px;
    background-image: linear-gradient(180deg, #070817e8 0%, #070817c5 45%, #07081750 72%, #070817b3 100%), url("assets/pixel-forest-clearing.jpg");
    background-size: 100% 100%, auto 90%;
    background-position: center, 93% bottom;
    background-repeat: no-repeat;
  }
  .hero:before { inset: 68px 0 0; }
  .hero-copy { width: 100%; max-width: none; }
  .eyebrow { gap: 16px; margin-bottom: 20px; font-size: 11px; }
  .eyebrow-index { display: none; }
  .hero h1 { font-size: clamp(38px, 9.1vw, 58px); }
  .hero-description { max-width: 480px; margin: 22px 0 25px; font-size: 16px; line-height: 1.75; }
  .hero-actions { gap: 21px; }
  .button { min-height: 48px; gap: 13px; font-size: 14px; }
  .button-primary { min-width: 145px; padding-inline: 12px; box-shadow: 4px 4px 0 #a7584d; }
  .hero-worlds { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 25px; padding-top: 17px; }
  .hero-worlds a { gap: 7px; min-height: 64px; padding: 7px; }
  .hero-worlds strong { font-size: 13px; }
  .hero-worlds small { font-size: 11px; }
  .world-glyph { width: 27px; height: 27px; flex-basis: 27px; font-size: 15px; }
  .hero-worlds a > span:last-child { display: none; }
  .hero-party { position: relative; right: auto; bottom: auto; width: calc(100% + 10vw); margin: 28px -5vw 0; }
  .hero-party img { max-height: none; }
  .hero-party figcaption { margin-right: 5%; font-size: 11px; }
  .hero-bottom { bottom: 17px; font-size: 11px; }
  .section { padding: 75px 5%; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2 { font-size: 39px; }
  .section-heading > p { margin-top: 14px; font-size: 15px; }
  .game-card { margin-bottom: 28px; border-width: 3px; box-shadow: 6px 6px 0 #332546; }
  .bloodlands { box-shadow: -6px 6px 0 #4d2838; }
  .game-details { min-height: 0; padding: 35px 23px 32px; }
  .game-details h3 { margin: 27px 0 20px; font-size: 48px; }
  .game-details p { font-size: 15px; }
  .game-overline { font-size: 11px; }
  .image-tag { left: 10px; bottom: 10px; font-size: 11px; }
  .game-tags span { font-size: 12px; }
  .studio { display: block; background-image: linear-gradient(180deg, #121526a8 0%, #101827da 60%, #0e1827ed 100%), url("assets/pixel-night-grove.jpg"); background-position: center, left center; }
  .studio-aside { min-height: 380px; margin-bottom: 50px; }
  .studio-mascot { height: 280px; }
  .studio-copy h2 { font-size: 42px; }
  .studio-copy p { font-size: 16px; }
  .contact { min-height: 0; background-image: linear-gradient(180deg, #141527d7, #101726c2), url("assets/pixel-night-grove.jpg"); background-position: center, right center; }
  .contact:after { display: none; }
  .contact-content { display: block; }
  .contact h2 { font-size: 49px; }
  .contact-notice { min-width: 0; margin-top: 45px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer > span { order: 3; width: 100%; }
}
@media (max-width: 390px) {
  .site-nav a:first-child { display: none; }
  .hero h1 { font-size: 37px; }
  .hero-worlds strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button-primary, .hero-worlds a, .game-image-wrap img { transition: none; }
  .button-primary:hover, .hero-worlds a:hover, .game-card:hover .game-image-wrap img { transform: none; }
}

.flock { border-top: 2px solid #76567a; background: #0b0d20; }
.flock .section-heading { align-items: end; }
.flock-controls { max-width: 330px; }
.flock-controls p { margin: 0 0 16px; }
.flock-toggle { font: inherit; font-size: 13px; color: var(--ink); background: #21182a; border: 1px solid #806573; padding: 10px 16px; cursor: pointer; }
.flock-toggle:hover { border-color: var(--amber); color: var(--amber); }
.flock-toggle:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
.flock-stage { position: relative; height: clamp(320px, 40vw, 520px); overflow: hidden; border: 1px solid #76567a; background: radial-gradient(ellipse at 50% 45%, #17243e, #080b19 75%); touch-action: pan-y; }
.flock-stage canvas, .flock-still { display: block; width: 100%; height: 100%; }
.flock-stage [hidden], .flock-controls [hidden] { display: none; }
.flock-still { object-fit: cover; }
.flock-caption { position: absolute; bottom: 20px; left: 24px; right: 24px; color: #c7bdd0; font-size: 12px; pointer-events: none; }
@media (max-width: 700px) {
  .flock .section-heading { display: block; }
  .flock-controls { margin-top: 24px; max-width: none; }
  .flock-caption { left: 16px; right: 16px; bottom: 16px; }
}
