:root {
  --wine: #511d27;
  --wine-deep: #39121a;
  --card: #fff4da;
  --paper: #f6e7c9;
  --evergreen: #203d32;
  --evergreen-hover: #152b23;
  --gold: #e6bb7e;
  --gold-ink: #8f6321;
  --muted: #5a4e3f;
  --muted-light: #e6d1b1;
  --border: #d8c39d;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --shadow-card: 0 12px 30px color-mix(in srgb, var(--wine-deep) 45%, transparent);
  --container: 1200px;
  --narrow: 860px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--wine);
}

body {
  margin: 0;
  background-color: var(--wine);
  background-image: repeating-linear-gradient(130deg, transparent 0 10px, color-mix(in srgb, var(--gold) 3%, transparent) 10px 12px);
  color: var(--card);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--evergreen);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--wine);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--wine-deep);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: var(--narrow);
}

/* Header */
.site-header {
  background: var(--wine-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--card);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--white);
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-emblem img,
.brand-emblem svg {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--card);
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--muted-light);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted-light);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--wine);
  color: var(--card);
}

/* Full-bleed Seamless Game Stage */
.studio-band {
  padding: 0 0 10px;
}

.studio-stage {
  position: relative;
  width: 100%;
  height: clamp(740px, 88vh, 920px);
  overflow: hidden;
  background: var(--wine);
  border: 0;
  border-radius: 0;
}

.studio-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--wine);
}

.stage-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wine);
  z-index: 3;
}

.stage-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74);
}

.stage-cover-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}

.play-btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: var(--evergreen);
  color: var(--card);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.14s ease, background 0.14s ease;
}

.play-btn:hover {
  background: var(--evergreen-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.cover-caption {
  display: inline-block;
  background: var(--wine-deep);
  color: var(--card);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}

.stage-loading {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--wine);
  color: var(--card);
  z-index: 4;
}

.studio-stage[data-gf-state="loading"] .stage-loading {
  display: flex;
}

.studio-stage[data-gf-state="loading"] .stage-cover,
.studio-stage[data-gf-state="playing"] .stage-cover {
  display: none;
}

.snow-spinner {
  font-size: 2rem;
  color: var(--gold);
  animation: gentle-spin 2.4s linear infinite;
}

@keyframes gentle-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted-light);
  margin-bottom: 10px;
}

.crumbs-stage {
  margin-top: 16px;
  margin-bottom: 6px;
}

.crumbs a {
  text-decoration: none;
  color: var(--muted-light);
}

.crumbs a:hover {
  color: var(--card);
  text-decoration: underline;
}

.stage-meta-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0 8px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
}

.hero-title-group {
  flex: 1 1 420px;
}

.hero-title-group h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  margin: 0 0 6px;
  color: var(--card);
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.96rem;
  max-width: 64ch;
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bar-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--evergreen);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.bar-btn:hover {
  background: var(--paper);
  color: var(--wine-deep);
}

.bar-btn[data-gf-liked] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--wine-deep);
}

.bar-btn-primary {
  background: var(--evergreen);
  border-color: var(--gold);
  color: var(--card);
}

.bar-btn-primary:hover {
  background: var(--evergreen-hover);
  color: var(--white);
}

.bar-btn-subtle {
  background: var(--paper);
  color: var(--evergreen);
}

.bar-count {
  font-variant-numeric: tabular-nums;
}

.share-toast {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 600;
}

/* Signature Snow-Star Divider */
.snow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 320px;
  margin: 28px auto;
  color: var(--gold);
  font-size: 0.88rem;
}

.snow-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Companion 3D Studio Banner */
.companion-section {
  padding: 6px 0 24px;
}

.companion-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  color: var(--evergreen);
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, background 0.16s ease;
}

.companion-card:hover {
  background: var(--paper);
  transform: translateY(-2px);
  color: var(--evergreen);
}

.companion-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--evergreen);
}

.companion-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 6px;
}

.eyebrow-light {
  color: var(--gold);
}

.companion-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--evergreen);
}

.companion-copy p:not(.companion-title) {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.companion-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--wine);
  font-size: 0.94rem;
}

/* Highlights Grid */
.highlights-section {
  padding: 8px 0 26px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.highlight-card {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  color: var(--evergreen);
  box-shadow: var(--shadow-card);
}

.highlight-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--card);
  background: var(--evergreen);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--evergreen);
}

.highlight-card p:not(.highlight-title) {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Gallery */
.gallery-section {
  padding: 6px 0 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Prose Article */
.article-section {
  padding: 8px 0 32px;
}

.prose-card {
  background: var(--card);
  color: var(--evergreen);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow-card);
}

.prose-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 28px 0 12px;
  color: var(--evergreen);
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin: 22px 0 8px;
  color: var(--evergreen);
}

.prose-card p {
  margin: 0 0 14px;
  color: var(--evergreen);
}

.prose-card ul,
.prose-card ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose-card li {
  margin-bottom: 8px;
}

.prose-card strong {
  color: var(--wine-deep);
}

/* FAQ */
.faq-section {
  padding: 8px 0 28px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0;
  color: var(--card);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  color: var(--evergreen);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 0 20px;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--evergreen);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--wine);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--evergreen);
}

.faq-answer {
  padding: 0 0 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.faq-answer p {
  margin: 12px 0 0;
}

/* Comments */
.comments-section {
  padding: 6px 0 48px;
}

.comments-card {
  background: var(--card);
  color: var(--evergreen);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.comments-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  color: var(--evergreen);
}

.comments-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--card);
  background: var(--evergreen);
  padding: 4px 12px;
  border-radius: 999px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.comment-form[data-gf-replying] {
  margin: 12px 0 6px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--evergreen);
  font-weight: 600;
}

.reply-cancel {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  text-decoration: underline;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--evergreen);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}

.form-row textarea {
  resize: vertical;
  min-height: 84px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.submit-btn,
.cta-primary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--evergreen);
  color: var(--card);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.submit-btn:hover,
.cta-primary:hover {
  background: var(--evergreen-hover);
  color: var(--white);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--evergreen);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.cta-secondary:hover {
  border-color: var(--evergreen);
  color: var(--wine-deep);
}

.comment-msg {
  font-size: 0.88rem;
  color: var(--evergreen);
  font-weight: 500;
}

.comment-empty-note {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.comment-list[data-gf-empty] .comment-empty-note {
  display: block;
}

.comment-list[data-gf-off] {
  display: none;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comment-item[data-gf-owner] {
  background: var(--paper);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  margin: 8px 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.comment-meta time {
  color: var(--muted);
  font-size: 0.82rem;
}

.owner-tag {
  display: none;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--wine);
  color: var(--card);
  padding: 2px 8px;
  border-radius: 999px;
}

.comment-item[data-gf-owner] .owner-tag {
  display: inline-block;
}

.comment-body {
  margin: 0 0 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

.reply-target {
  color: var(--wine);
  font-weight: 600;
  margin-right: 6px;
}

.reply-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.reply-btn:hover {
  color: var(--evergreen);
}

.comment-replies {
  margin-left: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

/* Standalone Pages & 404 */
.page-band {
  padding: 30px 0 56px;
}

.page-header {
  margin-bottom: 22px;
}

.page-header .eyebrow {
  color: var(--gold);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.18;
  margin: 0 0 8px;
  color: var(--card);
}

.page-lead {
  margin: 0;
  color: var(--muted-light);
  font-size: 1.04rem;
}

.page-cta-strip {
  margin-top: 24px;
  background: var(--card);
  color: var(--evergreen);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-cta-strip p {
  margin: 0;
  font-weight: 600;
}

.page-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.not-found-card {
  background: var(--card);
  color: var(--evergreen);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.not-found-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 6px 0 12px;
  color: var(--evergreen);
}

.not-found-card p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 22px;
}

.not-found-card .page-cta-actions {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--wine-deep);
  color: var(--card);
  padding: 42px 0 28px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card);
  margin: 0 0 10px;
}

.footer-note {
  margin: 0;
  color: var(--muted-light);
  font-size: 0.92rem;
  max-width: 44ch;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--card);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--muted-light);
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .companion-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-nav {
    width: 100%;
    gap: 4px;
  }

  .site-nav a {
    font-size: 0.86rem;
    padding: 5px 10px;
  }

  .studio-stage {
    height: 82vh;
    min-height: 600px;
  }

  .stage-actions {
    width: 100%;
  }

  .stage-actions .bar-btn {
    flex: 1;
  }

  .highlights-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .prose-card,
  .comments-card {
    padding: 22px 18px;
  }
}
