@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --ink: #171715;
  --paper: #e9e4d8;
  --muted: #a7a092;
  --gold: #c7a56a;
  --red: #a52e31;
  --line: rgba(233,228,216,.18);
  --header-height: 70px;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100dvh; overflow: hidden; background: var(--ink); color: var(--paper); font-family: "DM Sans", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.site-header {
  position: relative; z-index: 5; width: 100%; height: var(--header-height); padding: 0 4.8vw;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border-bottom: 1px solid var(--line); background: #171715;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.brand-mark { width: 39px; height: 39px; flex: 0 0 auto; border: 1px solid var(--gold); transform: rotate(45deg); display: grid; place-items: center; color: var(--gold); }
.brand-mark span { transform: rotate(-45deg); font: 800 22px "Barlow Condensed", sans-serif; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { font: 700 16px "Barlow Condensed", sans-serif; letter-spacing: .1em; }
.brand-copy small { font-size: 8px; letter-spacing: .16em; color: var(--gold); }
.top-nav { display: flex; align-items: center; gap: 30px; }
.top-nav a { color: #c7c0b2; font-size: 10px; letter-spacing: .12em; font-weight: 700; transition: color .2s; }
.top-nav a:hover { color: var(--gold); }
.menu-toggle { display: none; background: none; color: var(--paper); border: 0; font-size: 24px; cursor: pointer; }
main { width: 100%; }
.worlds {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px;
  width: 100%; height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height));
  min-height: 380px; background: #080808;
}
.world-panel { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; isolation: isolate; background: #242420; }
.panel-art { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.panel-art::before, .panel-art::after { content: ""; position: absolute; inset: 0; }
.art-fantasy {
  background-image: linear-gradient(180deg, rgba(10,10,10,.12), rgba(10,10,10,.04) 42%, rgba(10,10,10,.72)), url("../images/WAR_INTRO_1.png");
  background-size: cover; background-position: center center;
}
.art-fantasy::before { background: linear-gradient(90deg, rgba(15,16,15,.12), transparent 55%); }
.art-fantasy::after { background: linear-gradient(90deg, rgba(15,16,15,.25), transparent 70%); }
.art-daimyo {
  background-image: linear-gradient(180deg, rgba(20,12,12,.08), rgba(20,12,12,.02) 42%, rgba(20,12,12,.72)), url("../images/WAR_INTRO_2.png");
  background-size: cover; background-position: center center;
}
.art-daimyo::before { background: linear-gradient(90deg, rgba(15,12,12,.12), transparent 55%); }
.art-daimyo::after { background: linear-gradient(270deg, rgba(15,12,12,.15), transparent 70%); }
.art-label { position: absolute; top: 28px; left: 30px; z-index: 2; font-size: 10px; letter-spacing: .19em; color: rgba(255,255,255,.82); display: flex; gap: 9px; align-items: center; }
.status-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.art-sigil { position: absolute; right: 12%; top: 17%; width: clamp(100px, 14vw, 200px); aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(52px, 7vw, 100px); color: rgba(239,221,180,.28); border: 1px solid rgba(239,221,180,.28); border-radius: 50%; }
.fantasy-sigil { font-family: Georgia, serif; border-radius: 0; transform: rotate(45deg); }
.sun-disc { position: absolute; width: clamp(120px, 19vw, 270px); aspect-ratio: 1; border-radius: 50%; background: rgba(177,47,46,.65); top: 13%; right: 14%; box-shadow: 0 0 80px rgba(177,47,46,.16); }
.daimyo-sigil { border-color: rgba(246,221,194,.34); color: rgba(246,221,194,.8); font-family: serif; z-index: 1; }
.art-caption { position: absolute; left: clamp(28px, 5vw, 76px); bottom: clamp(130px, 23vh, 250px); z-index: 2; font: 700 clamp(38px, 5vw, 76px)/.92 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0,0,0,.22); }
.art-caption em { color: #e0bd82; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: .74em; }
.art-placeholder-note { position: absolute; bottom: 28px; right: 28px; font-size: 8px; letter-spacing: .17em; color: rgba(255,255,255,.38); }
.panel-content { margin-top: auto; position: relative; z-index: 2; padding: 25px clamp(24px, 4vw, 60px) 28px; background: linear-gradient(180deg, transparent 0%, rgba(16,16,15,.08) 48%, rgba(16,16,15,.32) 100%); }
.panel-index { display: block; color: #c4bba9; font-size: 10px; letter-spacing: .18em; margin-bottom: 12px; }
.panel-index span { color: var(--gold); padding: 0 6px; }
.panel-content h1, .panel-content h2 { font: 700 clamp(36px, 4.1vw, 62px)/.98 "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; letter-spacing: -.025em; margin: 0; }
.panel-content h1 span, .panel-content h2 span { color: var(--gold); }
.panel-button { display: flex; justify-content: space-between; align-items: center; width: min(100%, 390px); padding: 16px 18px; font-size: 10px; letter-spacing: .14em; font-weight: 700; gap: 12px; transition: background .2s, color .2s, transform .2s; }
.button-light { border: 1px solid rgba(233,228,216,.65); background: rgba(20,20,19,.22); }
.button-red { background: var(--red); border: 1px solid var(--red); }
.panel-button span { font-size: 18px; color: var(--gold); }
.button-red span { color: #f2d7b8; }
.world-panel { transition: filter .2s ease; cursor: pointer; }
.world-panel:hover { filter: brightness(1.06); }
.world-panel:focus-visible { outline: 3px solid var(--gold); outline-offset: -5px; }
@media (min-width: 1600px) {
  .site-header { padding-left: 5.2vw; padding-right: 5.2vw; }
  .art-caption { font-size: clamp(68px, 4.6vw, 92px); }
}
@media (max-width: 760px) {
  :root { --header-height: 66px; }
  .site-header { padding: 0 18px; gap: 12px; }
  .brand { min-width: 0; gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark span { font-size: 18px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 7px; letter-spacing: .08em; }
  .menu-toggle { display: block; }
  .top-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; padding: 18px 22px; flex-direction: column; align-items: flex-start; gap: 20px; background: #1d1d1a; border-bottom: 1px solid var(--line); }
  .top-nav.is-open { display: flex; }
  .worlds { grid-template-columns: 1fr 1fr; min-height: 360px; }
  .art-label { top: 18px; left: 16px; font-size: 8px; letter-spacing: .1em; }
  .art-caption { left: 18px; bottom: 150px; font-size: clamp(27px, 5.5vw, 42px); }
  .art-placeholder-note { right: 12px; bottom: 15px; font-size: 6px; }
  .panel-content { padding: 18px 16px 20px; }
  .panel-index { font-size: 8px; letter-spacing: .1em; }
  .panel-content h1, .panel-content h2 { font-size: clamp(26px, 5vw, 38px); margin-bottom: 0; }
}
@media (max-width: 480px) {
  body { overflow: auto; }
  .worlds { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .world-panel { min-height: calc((100dvh - var(--header-height)) / 2); }
  .panel-art { position: absolute; }
  .art-caption { bottom: 125px; font-size: clamp(38px, 10vw, 52px); }
  .panel-content { padding: 16px 22px 20px; }
  .panel-content h1, .panel-content h2 { font-size: clamp(36px, 9vw, 48px); }
}
@media (max-height: 520px) and (min-width: 761px) {
  :root { --header-height: 58px; }
  .brand-mark { width: 30px; height: 30px; }
  .art-caption { bottom: 135px; font-size: clamp(30px, 4vw, 50px); }
  .panel-content { padding-top: 14px; padding-bottom: 16px; }
  .panel-content h1, .panel-content h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 0; }
  .panel-button { padding: 12px 14px; }
}


/* ========================================
   RISE OF THE DAIMYO — RULES PAGE
   ======================================== */

.rules-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 32px 100px;
  color: #e9e4d8;
  line-height: 1.8;
}

.rules-intro {
  max-width: 820px;
  margin-bottom: 64px;
}

.rules-page .eyebrow {
  color: #c7a56a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rules-page h1 {
  margin: 12px 0 24px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.rules-page .lead {
  max-width: 760px;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: #f4f0e7;
}

.rules-section {
  max-width: 820px;
  margin: 0 0 56px;
}

.rules-page h2 {
  margin: 0 0 24px;
  color: #d6b16e;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.rules-page h3 {
  margin: 32px 0 10px;
  color: #f4f0e7;
  font-size: 1.25rem;
  line-height: 1.4;
}

.rules-page p {
  margin: 0 0 18px;
  max-width: 78ch;
}

.rules-page a {
  color: #d6b16e;
  text-underline-offset: 5px;
}

.rules-page a:hover {
  color: #f4f0e7;
}

@media (max-width: 640px) {
  .rules-page {
    padding: 40px 22px 64px;
  }

  .rules-intro {
    margin-bottom: 44px;
  }

  .rules-section {
    margin-bottom: 40px;
  }
}



/* Content pages for individual game worlds */
body.content-page { overflow-x: hidden; overflow-y: auto; background: var(--ink); color: var(--paper); }
.content-page .site-header { position: sticky; top: 0; }
.logo-image {
  width: 150px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  position: relative;
  z-index: 12;
  transform: scale(1.25);
  transform-origin: left center;
}
.site-header {
  min-height: 64px;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: visible;
}
.world-content { max-width: 1440px; margin: 0 auto; }
.world-hero { min-height: min(680px, calc(100vh - var(--header-height))); display: grid; grid-template-columns: 0.9fr 1.1fr; background: #201e19; }
.world-hero-copy { padding: clamp(42px, 7vw, 100px) clamp(24px, 6vw, 86px); align-self: center; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.world-hero h1 { max-width: 720px; margin: 0 0 22px; font: 800 clamp(46px, 6.3vw, 88px)/.9 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.025em; }
.world-hero h1 span, .closing-banner h2 span { color: #d9b576; }
.world-hero-copy > p:not(.eyebrow) { max-width: 560px; color: #d1c9b8; font-size: 16px; line-height: 1.75; }
.world-hero-copy .hero-lead { color: #f2eee5 !important; font-size: clamp(19px, 2vw, 25px) !important; line-height: 1.35 !important; }
.text-link, .outline-link { display: inline-flex; align-items: center; gap: 22px; margin-top: 18px; padding: 13px 0; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .15em; border-bottom: 1px solid var(--gold); }
.world-hero-art { min-height: 420px; background-image: linear-gradient(90deg, rgba(23,23,21,.18), rgba(23,23,21,.02)), url("../images/WAR_INTRO_2.png"); background-size: cover; background-position: center; }
.content-section { padding: clamp(48px, 7vw, 96px) clamp(24px, 7vw, 100px); border-top: 1px solid var(--line); }
.content-section h2, .closing-banner h2 { margin: 0 0 20px; font: 700 clamp(34px, 4.5vw, 58px)/1 "Barlow Condensed", Impact, sans-serif; }
.section-intro { max-width: 850px; color: #cfc7b8; font-size: 17px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 34px; }
.feature-card { padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.feature-number { color: var(--gold); font: 700 13px "Barlow Condensed", sans-serif; letter-spacing: .15em; }
.feature-card h3, .component-list h3 { margin: 16px 0 8px; font: 700 23px "Barlow Condensed", sans-serif; }
.feature-card p, .component-list p, .split-section p { color: #cfc7b8; line-height: 1.75; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 100px); background: #201f1a; }
.steps-list { align-self: center; }
.steps-list > div { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps-list span { color: var(--gold); font: 700 20px "Barlow Condensed", sans-serif; }
.steps-list p { margin: 0; }
.steps-list strong { color: var(--paper); }
.component-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 40px; margin-top: 28px; }
.component-list > div { padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.component-list h3 { margin-top: 8px; }
.closing-banner { padding: clamp(48px, 8vw, 110px) 24px; text-align: center; background: linear-gradient(135deg, #29251c, #171715 70%); }
.closing-banner h2 { font-size: clamp(42px, 6vw, 76px); }
.closing-banner > p:not(.eyebrow) { color: #cfc7b8; }
.outline-link { padding: 14px 20px; border: 1px solid var(--gold); }
.page-footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px clamp(24px, 7vw, 100px); color: #aaa291; font-size: 10px; letter-spacing: .1em; }
.page-footer a { color: var(--gold); }
.placeholder-page { min-height: calc(100vh - var(--header-height)); padding: clamp(60px, 10vw, 140px) clamp(24px, 8vw, 120px); }
.placeholder-page h1 { margin: 0 0 20px; font: 800 clamp(44px, 7vw, 82px)/.95 "Barlow Condensed", Impact, sans-serif; }
.placeholder-page > p:not(.eyebrow) { max-width: 700px; color: #cfc7b8; font-size: 18px; line-height: 1.7; }
.placeholder-note { font-size: 14px !important; color: var(--muted) !important; }
@media (max-width: 900px) { .world-hero { grid-template-columns: 1fr; } .world-hero-art { min-height: 48vw; order: -1; } .feature-grid { grid-template-columns: 1fr; } .split-section { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .content-page .site-header { padding: 0 20px; } .content-page .brand { min-width: 0; } .content-page .brand-copy strong { font-size: 13px; } .content-page .brand-copy small { font-size: 7px; } .content-page .logo-image { width: 44px; height: 44px; } .content-page .menu-toggle { display: block; } .content-page .top-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; padding: 20px; background: #171715; flex-direction: column; align-items: flex-start; gap: 22px; border-bottom: 1px solid var(--line); } .content-page .top-nav.is-open { display: flex; } .world-hero-copy { padding: 38px 24px 48px; } .world-hero-art { min-height: 60vw; } .component-list { grid-template-columns: 1fr; } .page-footer { flex-direction: column; } }
