:root {
  --surface: #131314;
  --surface-dim: #0e0e0f;
  --surface-container: #1a191a;
  --primary: #ffb2bb;
  --primary-container: #891634;
  --primary-burgundy: #71152b;
  --on-surface: #f2edeb;
  --on-surface-variant: #b8a9ab;
  --parchment: #f4ede4;
  --outline: #4a3b3d;
  --outline-subtle: #2e2527;
}
*, *::before, *::after { box-sizing: border-box; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; padding: 0; background: var(--surface); color: var(--on-surface); font-family: Roboto, sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body::selection, body *::selection { background: var(--primary-container); color: var(--primary); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Roboto, sans-serif; font-weight: 700; }
p { font-family: Marcellus, serif; font-weight: 400; }
a { color: inherit; text-decoration: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img, video, svg { display: block; vertical-align: middle; }
img, video { max-width: 100%; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #2a2225; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-burgundy); }

/* Shared containers and headings. */
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
.section { width: 100%; position: relative; border-bottom: 1px solid var(--outline-subtle); }
.section-gameplay, .section-characters { padding-block: 5rem; }
.section-gameplay, .section-game-overview { background: var(--surface-dim); }
.section-eyebrow { color: var(--primary); font: 500 .75rem/1rem Roboto, sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.section-title { margin-top: .25rem; color: var(--parchment); font-size: 1.5rem; line-height: 2rem; letter-spacing: normal; }


/* Top navigation. */
.site-header { position: fixed; z-index: 50; top: 0; right: 0; left: 0; background: rgb(19 19 20 / 85%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--outline-subtle); transition: all 300ms; }
.header-inner { height: 5rem; display: flex; align-items: center; justify-content: space-between; }
.brand-link { display: flex; align-items: center; gap: .75rem; }
.brand-mark { display: inline-block; padding: .25rem .625rem; border: 1px solid var(--outline-subtle); border-radius: .125rem; background: var(--surface-container); color: rgb(255 178 187 / 90%); font: 500 11px/1.5 Roboto, sans-serif; letter-spacing: .25em; text-transform: uppercase; }
.brand-logo {
  display: block;
  max-width: 160px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.primary-nav { display: none; align-items: center; gap: 2.5rem; font: 500 .75rem/1rem Roboto, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--on-surface-variant); }
.nav-link { transition: color 150ms; }
.nav-link:hover { color: var(--parchment); }
.header-actions { display: flex; align-items: center; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; padding: .625rem 1.25rem; font: 500 .75rem/1rem Roboto, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--parchment); background: var(--primary-container); border: 1px solid rgb(255 178 187 / 30%); border-radius: .125rem; box-shadow: 0 0 20px rgb(137 22 52 / 35%); transition: all 150ms; }
.header-cta:hover { background: var(--primary-burgundy); box-shadow: 0 0 24px rgb(137 22 52 / 60%); }
.site-main { width: 100%; padding-top: 5rem; }


/* Loading Stuff and placehodlers */
.gameplay-inner { display: flex; flex-direction: column; gap: 2rem; }
.section-topline { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.media-frame { position: relative; overflow: hidden; background: var(--surface-container); border: 1px solid var(--outline-subtle); border-radius: .125rem; }
.combat-frame, .dialogue-frame { width: 100%; aspect-ratio: 16 / 9; }
.combat-frame { border-color: rgb(74 59 61 / 70%); box-shadow: 0 20px 50px rgb(0 0 0 / 80%); }
.dialogue-frame, .art-frame { transition: all 150ms; }
.dialogue-frame:hover, .art-frame:hover { border-color: rgb(255 178 187 / 40%); }
.media-element { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.media-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.combat-frame > .media-placeholder { padding: 2rem; }
.media-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(19 19 20 / 40%), transparent, rgb(19 19 20 / 80%)); pointer-events: none; }
.media-placeholder-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.media-placeholder-content-small { gap: .75rem; }
.media-symbol { display: flex; align-items: center; justify-content: center; color: var(--primary); border: 1px solid var(--outline); border-radius: 50%; }
.media-symbol-large { width: 4rem; height: 4rem; background: rgb(14 14 15 / 80%); box-shadow: 0 0 20px rgb(137 22 52 / 35%); }
.media-symbol-medium { width: 3rem; height: 3rem; background: rgb(14 14 15 / 90%); }
.icon-large { font-size: 1.875rem; line-height: 2.25rem; }
.icon-medium { font-size: 1.5rem; line-height: 2rem; }
.media-placeholder-title { font-family: Roboto, sans-serif; font-weight: 600; color: var(--parchment); text-transform: uppercase; }
.media-placeholder-title-large { font-size: 1rem; line-height: 1.5rem; letter-spacing: .25em; }
.media-placeholder-title-medium { font-size: .875rem; line-height: 1.25rem; letter-spacing: .2em; }
.section-caption { max-width: 36rem; margin-inline: auto; color: rgb(184 169 171 / 80%); font-size: 1rem; line-height: 1.25rem; text-align: center; }
.media-status { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 500 11px/1.4 Roboto, sans-serif; letter-spacing: .04em; color: var(--on-surface-variant); }
.media-status-indicator { display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; border: 2px solid rgb(255 178 187 / 22%); border-top-color: var(--primary); border-radius: 50%; animation: media-indicator-spin .9s linear infinite; }
[data-media-placeholder][data-state="empty"] .media-status-indicator { animation: none; border-style: dashed; opacity: .7; }
[data-media-placeholder][data-state="error"] .media-status-indicator { animation: none; border-color: var(--primary-container); opacity: .85; }
@keyframes media-indicator-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .media-status-indicator { animation: none; } }

/* Characters & dialogue. */
.characters-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.character-intro { max-width: 36rem; }
.section-subtitle { margin-top: .5rem; color: rgb(184 169 171 / 70%); font-size: .75rem; line-height: 1rem; letter-spacing: .025em; text-transform: uppercase; }
.characters-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 2rem; }
.dialogue-column { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.dialogue-caption { padding-left: .25rem; font-size: .75rem; line-height: 1rem; color: rgb(184 169 171 / 70%); font-style: italic; }
.character-art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; min-width: 0; }
.art-frame { aspect-ratio: 3 / 4; text-align: center; }
.art-placeholder { padding: 1rem; }
.art-placeholder-content { gap: .5rem; }
.art-icon { font-size: 1.875rem; line-height: 2.25rem; color: rgb(255 178 187 / 60%); transition: color 150ms; }
.art-frame:hover .art-icon { color: var(--primary); }
.art-placeholder-title { font-size: .75rem; line-height: 1rem; letter-spacing: .2em; }

/* Character artwork lightbox. */
.character-art-grid img[data-media-element] { cursor: zoom-in; }
.character-art-grid img[data-media-element]:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.image-lightbox { max-width: 95vw; max-height: 95vh; padding: 0; overflow: visible; background: var(--surface-container); border: 1px solid var(--outline); border-radius: .125rem; }
.image-lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.image-lightbox img { width: auto; height: auto; max-width: 90vw; max-height: 90vh; object-fit: contain; }
.image-lightbox-close { position: absolute; top: .5rem; right: .5rem; width: 2rem; height: 2rem; background: var(--surface-container); color: var(--parchment); border: 1px solid var(--outline); border-radius: .125rem; font-size: 1.25rem; line-height: 1; }
.image-lightbox-close:hover, .image-lightbox-close:focus-visible { background: var(--primary-burgundy); }

/* Game overview. */
.section-game-overview { display: flex; align-items: center; min-height: 0; padding-block: 6rem; scroll-margin-top: 5rem; }
.game-overview-content { display: flex; flex-direction: column; gap: 2.5rem; }
.game-overview-header { max-width: 48rem; }
.game-overview-title { margin-top: .25rem; color: white; font-size: 1.5rem; line-height: 2rem; letter-spacing: -.025em; }
.game-overview-description { margin-top: 1.25rem; color: var(--on-surface-variant); font-size: .875rem; line-height: 1.625; }
.game-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.game-overview-card { display: flex; flex-direction: column; gap: 1rem; min-height: 175px; padding: 1.5rem; background: var(--surface-container); border: 1px solid var(--outline-subtle); border-radius: .125rem; }
.game-overview-card-accent { width: 2rem; height: .125rem; background: var(--primary-container); }
.game-overview-card-title { color: var(--parchment); font-size: 1.125rem; line-height: 1.75rem; letter-spacing: normal; }
.game-overview-card-description { color: var(--on-surface-variant); font-size: .875rem; line-height: 1.625; }

/* Ways to FOllow us Section */
.section-follow { overflow: hidden; padding-block: 6rem; background: #260d16; border-bottom: 0; }
.follow-content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 3rem; max-width: 56rem; margin-inline: auto; padding-inline: 1.5rem; text-align: center; }
.follow-header { max-width: 36rem; }
.follow-title { margin-top: .25rem; color: white; font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -.025em; text-transform: uppercase; }
.follow-description { margin-top: .75rem; color: var(--on-surface-variant); font-size: .875rem; line-height: 1.5rem; }
.signup-wrap { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 100%; max-width: 32rem; }
.signup-form { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
.signup-input { flex: 1 1 0%; min-width: 0; padding: .75rem 1rem; background: var(--surface-container); color: var(--on-surface); font: 500 .875rem/1.25rem Roboto, sans-serif; border: 1px solid var(--outline-subtle); border-radius: .125rem; outline: 2px solid transparent; outline-offset: 2px; transition: color 150ms, border-color 150ms, background-color 150ms; }
.signup-input::placeholder { color: rgb(184 169 171 / 50%); opacity: 1; }
.signup-input:focus { border-color: rgb(255 178 187 / 60%); outline: none; }
.signup-button { padding: .75rem 1.75rem; background: var(--primary-container); color: var(--parchment); font: 500 .75rem/1rem Roboto, sans-serif; text-transform: uppercase; letter-spacing: .2em; white-space: nowrap; border: 1px solid rgb(244 237 228 / 30%); border-radius: .125rem; box-shadow: 0 0 20px rgb(137 22 52 / 40%); transition: all 150ms; }
.signup-button:hover { background: var(--primary-burgundy); }
.signup-confirmation { margin-top: .5rem; padding: .5rem 1rem; background: var(--surface-container); border: 1px solid rgb(255 178 187 / 30%); border-radius: .125rem; color: var(--primary); font: 500 .75rem/1rem Roboto, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.signup-form.opacity-60 { opacity: .6; } /* Original inline signup handler adds this class. */
.signup-fineprint { margin-top: .25rem; color: rgb(184 169 171 / 60%); font-size: .75rem; line-height: 1rem; }
.social-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; width: 100%; max-width: 42rem; padding-top: 2rem; border-top: 1px solid var(--outline-subtle); }
.social-link { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; background: rgb(26 25 26 / 70%); border: 1px solid rgb(244 237 228 / 20%); border-radius: .125rem; box-shadow: 0 0 0 1px rgb(244 237 228 / 4%); color: var(--parchment); font: 500 .75rem/1rem Roboto, sans-serif; letter-spacing: .025em; text-transform: uppercase; transition: all 150ms; }
.social-link:hover { border-color: rgb(244 237 228 / 35%); background: var(--surface-container); }
.social-icon, .steam-icon { width: 1rem; height: 1rem; fill: currentColor; }
.social-icon { color: var(--primary); }
.steam-teaser { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .75rem; background: rgb(26 25 26 / 30%); border: 1px solid rgb(244 237 228 / 12%); border-radius: .125rem; box-shadow: 0 0 0 1px rgb(244 237 228 / 3%); opacity: .5; cursor: not-allowed; user-select: none; text-align: center; }
.steam-row { display: flex; align-items: center; gap: .5rem; color: var(--on-surface-variant); font: 500 .75rem/1rem Roboto, sans-serif; letter-spacing: .025em; text-transform: uppercase; }
.steam-date { margin-top: .25rem; color: rgb(184 169 171 / 70%); font-size: 11px; line-height: 1.5; letter-spacing: -.025em; }

/* Footer. */
.site-footer { width: 100%; padding-block: 3rem; background: var(--surface-dim); border-top: 1px solid var(--outline-subtle); font-size: .75rem; line-height: 1rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-left { display: flex; align-items: center; gap: .75rem; color: rgb(184 169 171 / 70%); }
.footer-brand-mark { padding: .125rem .5rem; background: var(--surface-container); border: 1px solid var(--outline-subtle); border-radius: .125rem; color: rgb(255 178 187 / 80%); font: 500 11px/1.5 Roboto, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.footer-copyright { margin: 0; color: rgb(184 169 171 / 70%); font-size: .75rem; line-height: 1rem; }


@media (min-width: 640px) {
  .section-topline { flex-direction: row; align-items: flex-end; }
  .section-title { font-size: 1.875rem; line-height: 2.25rem; }
  .media-placeholder-title-medium { font-size: 1rem; line-height: 1.5rem; }
  .game-overview-title { font-size: 2.25rem; line-height: 2.5rem; }
  .game-overview-description { font-size: 1rem; line-height: 1.625; }
  .follow-title { font-size: 3rem; line-height: 1; }
  .follow-description { font-size: 1rem; line-height: 1.5rem; }
  .signup-form { flex-direction: row; }
  .footer-inner { flex-direction: row; }
}
@media (min-width: 768px) {
  .container { padding-inline: 3rem; }
  .primary-nav { display: flex; }
  .section-gameplay, .section-characters { padding-block: 7rem; }
  .section-game-overview { min-height: 650px; padding-block: 8rem; }
  .game-overview-content { gap: 3rem; }
  .game-overview-grid, .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-overview-grid { gap: 1.5rem; }
  .game-overview-card { min-height: 235px; padding: 1.75rem; }
  .section-follow { padding-block: 8rem; }
}
@media (min-width: 1024px) {
  .characters-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .dialogue-column { grid-column: span 7 / span 7; }
  .character-art-grid { grid-column: span 5 / span 5; }
}
