:root {
  --indigo-950: #11172b;
  --indigo-900: #18213b;
  --indigo-800: #243052;
  --cream-50: #fffdf7;
  --cream-100: #f7f0e2;
  --cream-200: #eadcc3;
  --ink: #292922;
  --muted: #68675e;
  --vermilion: #a94238;
  --vermilion-dark: #7f2e2a;
  --moss: #526b4c;
  --moss-dark: #354936;
  --sakura: #dfa6b0;
  --gold: #c69a4f;
  --line: rgba(52, 49, 40, .16);
  --shadow: 0 18px 50px rgba(29, 29, 25, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(223, 166, 176, .09) 0 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--cream-50), var(--cream-100));
  font: 16px/1.72 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--vermilion-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cream-50);
  color: var(--indigo-950);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(780px, 100%); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--vermilion);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.kicker { color: var(--moss-dark); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.muted { color: var(--muted); }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .85rem; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.meta-line span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(17, 23, 43, .96);
  box-shadow: 0 8px 24px rgba(9, 12, 23, .16);
  backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; gap: 22px; }
.brand {
  display: flex;
  align-items: center;
  min-width: max-content;
  gap: 11px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--indigo-900);
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  font-weight: 800;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  border-radius: 70% 0 0 0;
  background: var(--vermilion);
  transform: rotate(-12deg);
}
.nav-panel { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav > a,
.nav-dropdown > summary {
  border-radius: 8px;
  color: #f8f2e6;
  font-size: .88rem;
  font-weight: 650;
  list-style: none;
  padding: 9px 10px;
  text-decoration: none;
}
.primary-nav > a:hover,
.primary-nav > a[aria-current="page"],
.nav-dropdown > summary:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary { cursor: pointer; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: "⌄"; margin-left: 5px; color: var(--sakura); }
.nav-dropdown[open] > summary { background: rgba(255,255,255,.09); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  width: 225px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: var(--indigo-950);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.dropdown-menu a { display: block; padding: 8px 10px; border-radius: 7px; color: #eee7da; font-size: .87rem; text-decoration: none; }
.dropdown-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-cta { margin-left: 4px; }
.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--vermilion);
  color: #fff;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { background: var(--vermilion-dark); box-shadow: 0 8px 20px rgba(127,46,42,.22); transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: var(--cream-50); color: var(--indigo-900); }
.button.secondary:hover { background: #fff; }
.button.dark { background: var(--indigo-900); }
.button.dark:hover { background: var(--indigo-800); }
.button.ghost { border-color: rgba(255,255,255,.32); background: transparent; color: #fff; }
.button.small { min-height: 38px; padding: 8px 12px; font-size: .84rem; }
.button.danger { border-color: #c97d75; background: #fff7f5; color: #812f29; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 120px) 0 80px;
  background: var(--indigo-900);
  color: #fff;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background:
    repeating-linear-gradient(115deg, transparent 0 25px, rgba(255,255,255,.05) 26px 27px),
    radial-gradient(circle at 20% 30%, rgba(223,166,176,.55), transparent 28%),
    radial-gradient(circle at 76% 20%, rgba(198,154,79,.34), transparent 22%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.home-hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .98;
}
.home-hero h1 em { color: #f1bf91; font-style: normal; }
.hero-copy { max-width: 680px; margin: 22px 0 26px; color: #e6dfd3; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; color: #cac4b9; font-size: .84rem; }
.hero-proof span::before { content: "✓"; margin-right: 7px; color: #d7b15f; font-weight: 900; }

.island-scene {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 44% 44% 18px 18px;
  background: linear-gradient(180deg, #263456 0 54%, #556d67 54% 66%, #273f4d 66% 100%);
  box-shadow: 0 26px 70px rgba(3,8,20,.34);
}
.scene-moon { position: absolute; top: 45px; right: 58px; width: 92px; height: 92px; border-radius: 50%; background: #f6dfab; box-shadow: 0 0 45px rgba(246,223,171,.28); }
.scene-mountain { position: absolute; left: -10%; bottom: 145px; width: 68%; height: 46%; background: #364963; clip-path: polygon(0 100%, 46% 12%, 62% 43%, 76% 18%, 100% 100%); }
.scene-mountain.second { left: 39%; width: 72%; background: #2c4058; clip-path: polygon(0 100%, 28% 38%, 42% 60%, 66% 14%, 100% 100%); }
.scene-torii { position: absolute; z-index: 3; left: 19%; bottom: 118px; width: 94px; height: 135px; border-left: 12px solid #a8493d; border-right: 12px solid #a8493d; }
.scene-torii::before { content: ""; position: absolute; left: -28px; top: 5px; width: 126px; height: 13px; border-radius: 2px; background: #bd574a; box-shadow: 0 23px 0 -3px #8f382f; }
.scene-fields { position: absolute; z-index: 2; inset: auto 0 0; height: 145px; background: repeating-linear-gradient(163deg, #4f6b4e 0 18px, #78906a 19px 26px, #c6a864 27px 31px); transform: skewY(-4deg); transform-origin: right bottom; }
.scene-wave { position: absolute; z-index: 4; right: -40px; bottom: 5px; width: 260px; height: 82px; border-radius: 50% 0 0; border-top: 8px solid rgba(238,242,232,.55); transform: rotate(-4deg); }
.scene-caption { position: absolute; z-index: 6; right: 20px; bottom: 17px; color: rgba(255,255,255,.75); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

.quick-paths { position: relative; z-index: 2; margin-top: -34px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-50); box-shadow: var(--shadow); }
.quick-link { min-height: 150px; padding: 23px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.quick-link:last-child { border-right: 0; }
.quick-link:hover { background: #fff; }
.quick-link strong { display: block; margin: 9px 0 4px; font-family: var(--serif); font-size: 1.3rem; }
.quick-link span:last-child { color: var(--muted); font-size: .88rem; }
.quick-number { color: var(--vermilion); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }

.section { padding: clamp(58px, 8vw, 94px) 0; }
.section.compact { padding-block: 48px; }
.section.indigo { background: var(--indigo-900); color: #fff; }
.section.moss { background: var(--moss-dark); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-head h2,
.article h2,
.article h3,
.related h2,
.planner-shell h2 { font-family: var(--serif); line-height: 1.15; }
.section-head h2 { max-width: 700px; margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 600; }
.section-head p { max-width: 470px; margin: 0; color: var(--muted); }
.indigo .section-head p, .moss .section-head p { color: #d5d1c8; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,247,.88);
  box-shadow: 0 10px 30px rgba(38,36,29,.06);
}
a.card { color: var(--ink); text-decoration: none; }
a.card:hover { border-color: rgba(169,66,56,.42); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 8px 0; font-family: var(--serif); font-size: 1.42rem; line-height: 1.18; }
.card p { margin: 0; color: var(--muted); }
.card .text-link { display: inline-block; margin-top: 14px; color: var(--vermilion-dark); font-weight: 750; }
.indigo .card, .moss .card { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); box-shadow: none; }
.indigo .card p, .moss .card p { color: #d9d5cc; }
.indigo a.card, .moss a.card { color: #fff; }
.indigo .card .text-link, .moss .card .text-link { color: #f3c48c; }
.number-card::before { content: attr(data-step); display: block; color: var(--sakura); font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.fact-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.32rem; }
.fact span { color: var(--muted); font-size: .84rem; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 58px;
  background:
    radial-gradient(circle at 84% 18%, rgba(223,166,176,.25), transparent 24%),
    linear-gradient(135deg, var(--indigo-950), var(--indigo-800));
  color: #fff;
}
.page-hero::after { content: ""; position: absolute; right: -6%; bottom: -75px; width: 340px; height: 170px; border: 18px solid rgba(255,255,255,.045); border-radius: 50%; transform: rotate(-12deg); }
.breadcrumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; color: #bfc2cc; font-size: .8rem; }
.breadcrumbs a { color: #f1c88f; }
.page-hero h1 { position: relative; z-index: 1; max-width: 920px; font-size: clamp(2.25rem, 5vw, 4.3rem); }
.page-summary { position: relative; z-index: 1; max-width: 760px; margin: 18px 0; color: #dedbd4; font-size: 1.08rem; }
.page-hero .meta-line { position: relative; z-index: 1; color: #bfc2cc; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 34px; align-items: start; }
.article {
  padding: clamp(26px, 4.5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,247,.92);
  box-shadow: var(--shadow);
}
.article > :first-child { margin-top: 0; }
.article h2 { margin: 2em 0 .6em; color: var(--indigo-900); font-size: clamp(1.65rem, 3vw, 2.3rem); }
.article h3 { margin: 1.5em 0 .4em; font-size: 1.32rem; }
.article p { max-width: 76ch; }
.article li + li { margin-top: .5em; }
.article blockquote { margin: 24px 0; padding: 18px 20px; border-left: 5px solid var(--vermilion); border-radius: 0 12px 12px 0; background: #f4e8d4; font-family: var(--serif); font-size: 1.16rem; }
.article table { width: 100%; margin: 22px 0; border-collapse: collapse; }
.article th, .article td { padding: 13px; border: 1px solid #d4c6af; text-align: left; vertical-align: top; }
.article th { background: #e9dcc5; color: var(--indigo-900); }
.article tbody tr:nth-child(even) { background: #fbf6ec; }
.article .lede { color: #45483f; font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; }
.sidebar { position: sticky; top: 98px; display: grid; gap: 16px; }
.side-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #ecdfc8; }
.side-card h2, .side-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.18rem; }
.side-card p { margin: .4em 0; color: #55564f; font-size: .88rem; }
.side-card a { display: block; margin: 8px 0; font-size: .9rem; font-weight: 650; }
.verification {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid rgba(82,107,76,.28);
  border-radius: 12px;
  background: #edf1e8;
}
.verification strong { color: var(--moss-dark); }
.notice { margin: 22px 0; padding: 18px 20px; border-left: 5px solid var(--gold); border-radius: 0 12px 12px 0; background: #fff5db; }
.notice.caution { border-left-color: var(--vermilion); background: #fff0ed; }
.checklist { padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--moss); font-weight: 900; }
.route-steps { margin: 24px 0; padding: 0; counter-reset: route; list-style: none; }
.route-steps li { position: relative; min-height: 58px; margin: 0 0 16px; padding-left: 56px; }
.route-steps li::before { counter-increment: route; content: counter(route); position: absolute; top: 0; left: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--indigo-900); color: #fff; font-weight: 800; }
.status-table td:first-child { width: 28%; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: #dbe6d4; color: #365038; font-size: .75rem; font-weight: 800; }
.status-pill.review { background: #fae7c2; color: #744f1c; }
.status-pill.unconfirmed { background: #eee8e2; color: #5f5a55; }

.related { padding: 0 0 76px; }
.related h2 { margin: 0 0 18px; color: var(--indigo-900); font-size: 1.65rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-grid a { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,247,.78); color: var(--indigo-900); font-weight: 700; text-decoration: none; }
.related-grid a:hover { border-color: var(--vermilion); background: #fff; }

.source-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.source-list li { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbf6ec; }
.source-list a { font-weight: 800; }
.source-list span { display: block; margin-top: 5px; color: var(--muted); font-size: .86rem; }
.timeline { position: relative; margin: 28px 0; padding-left: 28px; border-left: 3px solid #d4b476; }
.timeline article { position: relative; padding: 0 0 24px 8px; }
.timeline article::before { content: ""; position: absolute; top: 8px; left: -38px; width: 15px; height: 15px; border: 3px solid var(--cream-50); border-radius: 50%; background: var(--vermilion); box-shadow: 0 0 0 1px var(--vermilion); }
.timeline time { color: var(--vermilion); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.timeline h3 { margin: 4px 0; }

.planner-section { padding: 42px 0 78px; }
.planner-shell { display: grid; gap: 22px; }
.planner-privacy { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; border: 1px solid rgba(82,107,76,.25); border-radius: 12px; background: #edf1e8; color: #344735; }
.planner-privacy strong { font-size: .9rem; }
.planner-dashboard { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.progress-card, .planner-panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,247,.94); box-shadow: 0 12px 35px rgba(36,34,29,.07); }
.progress-card { display: grid; place-items: center; padding: 24px; text-align: center; }
.progress-ring { --progress: 0; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--vermilion) calc(var(--progress) * 1%), #ddd4c4 0); }
.progress-ring::before { content: ""; width: 101px; height: 101px; border-radius: 50%; background: var(--cream-50); }
.progress-value { position: absolute; color: var(--indigo-900); font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.progress-card p { margin: 12px 0 0; color: var(--muted); font-size: .87rem; }
.progress-card progress { width: 100%; height: 18px; accent-color: var(--vermilion); }
.progress-card output { display: block; margin-top: 13px; color: var(--indigo-900); font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.category-progress { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px; }
.category-stat { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbf6ec; }
.category-stat-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: .82rem; font-weight: 750; }
.mini-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #ded5c6; }
.mini-bar span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--moss); }
.planner-category-progress-list { display: grid; gap: 10px; }
.planner-category-progress-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(120px, 2fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbf6ec; }
.planner-category-progress-label { font-size: .82rem; font-weight: 750; }
.planner-category-progress-row progress { width: 100%; height: 12px; accent-color: var(--moss); }
.planner-category-progress-value { color: var(--muted); font-size: .78rem; font-weight: 700; text-align: right; }
.planner-panel { padding: 20px; }
.planner-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 210px auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 6px; }
.field label, .field-label { color: #46483f; font-size: .8rem; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #a9a292;
  border-radius: 8px;
  background: #fffef9;
  color: var(--ink);
}
.field textarea { min-height: 100px; resize: vertical; }
.check-field { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #b8b09f; border-radius: 8px; background: #fffef9; }
.check-field input { width: 20px; height: 20px; accent-color: var(--vermilion); }
.planner-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.planner-status { min-height: 1.6em; margin: 9px 0 0; color: var(--moss-dark); font-size: .87rem; font-weight: 650; }
.planner-status.error, .planner-status.is-error { color: #842d29; }
.goal-groups { display: grid; gap: 16px; }
.goal-group { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,247,.94); }
.goal-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; background: #e9ddc7; }
.goal-group-head h2 { margin: 0; font-size: 1.15rem; }
.goal-group-head span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.goal-list { display: grid; }
.goal-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 58px; padding: 12px 16px; border-top: 1px solid var(--line); }
.goal-item:first-child { border-top: 0; }
.goal-item:hover { background: #fffaf0; }
.goal-check { width: 24px; height: 24px; accent-color: var(--vermilion); }
.goal-label { color: var(--ink); }
.goal-item.completed .goal-label { color: var(--muted); text-decoration: line-through; }
.goal-buttons { display: flex; gap: 6px; }
.icon-button { min-width: 38px; min-height: 38px; padding: 7px; border: 1px solid #c9c0b0; border-radius: 8px; background: #fffdf7; color: var(--indigo-900); font-size: .78rem; font-weight: 750; }
.icon-button:hover { border-color: var(--vermilion); }
.empty-state { padding: 34px 20px; color: var(--muted); text-align: center; }
.planner-goal-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.planner-goal { position: relative; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf7; }
.planner-goal:hover { border-color: rgba(169,66,56,.35); }
.planner-goal-check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.planner-goal-check input { width: 23px; height: 23px; margin: 1px 0 0; accent-color: var(--vermilion); }
.planner-goal-check label { color: var(--ink); font-weight: 720; cursor: pointer; }
.planner-goal.is-complete .planner-goal-check label { color: var(--muted); text-decoration: line-through; }
.planner-goal-meta, .planner-goal-notes { margin: 5px 0 0 34px; color: var(--muted); font-size: .8rem; }
.planner-goal-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.planner-goal-actions { display: flex; gap: 7px; margin: 11px 0 0 34px; }
.planner-goal-actions button { min-height: 38px; padding: 7px 11px; border: 1px solid #c9c0b0; border-radius: 8px; background: #fffaf0; color: var(--indigo-900); font-size: .8rem; font-weight: 750; }
.planner-goal-actions button:hover { border-color: var(--vermilion); }
.dialog-backdrop { position: fixed; z-index: 400; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(9,13,24,.72); }
.dialog-card { width: min(520px, 100%); padding: 25px; border-radius: 16px; background: var(--cream-50); box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.dialog-card h2 { margin-top: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

.site-footer { padding: 50px 0 28px; background: var(--indigo-950); color: #cec9c0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; font-family: var(--serif); }
.site-footer h2 { font-size: 1.45rem; }
.site-footer h3 { font-size: 1rem; }
.site-footer a { color: #f0c587; }
.footer-links { display: grid; gap: 7px; }
.disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: .78rem; line-height: 1.65; }
.disclaimer p { margin: 3px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 20px; color: #938f87; font-size: .75rem; }

@media (max-width: 1020px) {
  .site-header { backdrop-filter: none; }
  .menu-toggle { display: block; }
  .nav-panel {
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    width: min(380px, 100%);
    display: block;
    overflow-y: auto;
    padding: 18px;
    background: var(--indigo-950);
    box-shadow: -18px 20px 40px rgba(0,0,0,.28);
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path .2s ease, visibility .2s ease;
  }
  .nav-panel.is-open { clip-path: inset(0); visibility: visible; }
  .primary-nav { display: grid; align-items: stretch; }
  .primary-nav > a, .nav-dropdown > summary { display: block; padding: 12px; }
  .nav-dropdown { position: static; }
  .dropdown-menu { position: static; width: auto; margin: 5px 0 8px 16px; border: 0; border-left: 2px solid var(--vermilion); border-radius: 0; background: transparent; box-shadow: none; }
  .nav-cta { width: 100%; margin: 12px 0 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .island-scene { min-height: 330px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-link:nth-child(2) { border-right: 0; }
  .quick-link:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 1160px); }
  .brand span:last-child { max-width: 165px; line-height: 1.15; }
  .home-hero { padding-top: 56px; }
  .home-hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .island-scene { min-height: 280px; border-radius: 34% 34% 14px 14px; }
  .scene-torii { transform: scale(.82); transform-origin: bottom; }
  .scene-moon { width: 68px; height: 68px; }
  .quick-grid, .card-grid, .card-grid.two, .related-grid, .fact-band, .footer-grid, .sidebar { grid-template-columns: 1fr; }
  .quick-link { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-link:last-child { border-bottom: 0; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .article { padding: 24px 19px; }
  .article table { display: block; overflow-x: auto; }
  .planner-privacy { align-items: flex-start; flex-direction: column; }
  .planner-dashboard { grid-template-columns: 1fr; }
  .category-progress { grid-template-columns: 1fr; }
  .planner-toolbar { grid-template-columns: 1fr; }
  .planner-category-progress-row { grid-template-columns: 1fr auto; }
  .planner-category-progress-row progress { grid-column: 1 / -1; grid-row: 2; }
  .goal-item { grid-template-columns: auto 1fr; align-items: start; }
  .goal-buttons { grid-column: 2; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .page-hero, .planner-privacy, .planner-toolbar, .planner-actions, .goal-buttons, .related, .skip-link { display: none !important; }
  .planner-section { padding: 0; }
  .shell { width: 100%; }
  .progress-card, .planner-panel, .goal-group, .planner-goal { border: 1px solid #888; box-shadow: none; break-inside: avoid; }
  .planner-dashboard { grid-template-columns: 180px 1fr; }
  .goal-item { min-height: 0; padding: 7px 10px; }
  .goal-check { appearance: none; width: 14px; height: 14px; border: 1px solid #333; }
  .goal-check:checked::after { content: "✓"; position: relative; top: -6px; font-size: 14px; }
}


/* Task 2: real game media and clearer game identity */
.brand-logo { width: 118px; height: auto; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.brand > span:last-child { font-family: var(--sans); font-size: .8rem; letter-spacing: .02em; color: #f7efe2; }
.home-hero { padding-top: clamp(56px,7vw,92px); }
.hero-game-art { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; background:#0a1020; box-shadow: 0 28px 70px rgba(3,8,20,.38); }
.hero-game-art img { width: 100%; min-height: 320px; object-fit: cover; object-position: center; }
.hero-game-art figcaption, .media-credit { padding: 9px 12px; background: rgba(8,14,27,.94); color: #ddd6c9; font-size: .73rem; line-height: 1.4; }
.status-ribbon { display:flex; flex-wrap:wrap; gap:8px; margin: 18px 0 22px; }
.status-ribbon span { padding:7px 10px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(255,255,255,.08); color:#fff7ea; font-size:.78rem; font-weight:800; letter-spacing:.03em; }
.real-game-intro { background: #fffaf0; }
.gameplay-showcase { display:grid; grid-template-columns: 1.15fr .85fr; gap:24px; align-items:stretch; }
.media-feature, .media-card, .page-media { margin:0; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow:var(--shadow); }
.media-feature img { width:100%; height:100%; min-height:430px; object-fit:cover; }
.media-stack { display:grid; grid-template-rows:1fr 1fr; gap:20px; }
.media-card img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.media-card figcaption, .media-feature figcaption { padding:13px 15px; color:var(--muted); font-size:.82rem; background:#fffdf8; }
.media-card strong, .media-feature strong { display:block; color:var(--indigo-900); font-size:.95rem; }
.trailer-grid { display:grid; grid-template-columns:1.35fr .65fr; gap:24px; align-items:start; }
.video-frame { position:relative; overflow:hidden; padding-top:56.25%; border-radius:var(--radius); border:1px solid rgba(255,255,255,.15); box-shadow:0 22px 55px rgba(0,0,0,.28); background:#05070d; }
.video-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.trailer-copy { padding:26px; border:1px solid rgba(255,255,255,.15); border-radius:var(--radius); background:rgba(255,255,255,.07); }
.trailer-copy h2 { margin-top:0; font-family:var(--serif); font-size:clamp(1.9rem,3vw,2.8rem); }
.trailer-copy p, .trailer-copy li { color:#ddd8ce; }
.real-fact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.real-fact { padding:20px; border:1px solid var(--line); border-radius:14px; background:#fffdf8; }
.real-fact h3 { margin:0 0 7px; font-family:var(--serif); color:var(--indigo-900); }
.real-fact p { margin:0; color:var(--muted); }
.page-media-shell { width:min(1160px,calc(100% - 36px)); margin: -26px auto 0; position:relative; z-index:3; }
.page-media { display:grid; grid-template-columns:minmax(0,1fr) 330px; }
.page-media img { width:100%; height:330px; object-fit:cover; }
.page-media-copy { padding:24px; display:flex; flex-direction:column; justify-content:center; background:#fffdf8; }
.page-media-copy h2 { margin:0 0 8px; font-family:var(--serif); color:var(--indigo-900); font-size:1.55rem; }
.page-media-copy p { margin:0; color:var(--muted); }
.fact-callout { margin:24px 0 30px; padding:22px; border-left:5px solid var(--vermilion); border-radius:0 12px 12px 0; background:#f6ead8; }
.fact-callout h2 { margin:0 0 10px !important; font-size:1.45rem !important; }
.fact-callout ul { margin:8px 0 0; padding-left:1.25rem; }
.fact-callout li { margin:.35rem 0; }
.inline-trailer { margin:30px 0; }
.inline-trailer .video-frame { box-shadow:none; border-color:var(--line); }
.media-source-note { margin-top:14px; color:var(--muted); font-size:.82rem; }
.game-media-band { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px; }
.game-media-band .media-card { box-shadow:none; }
.article .game-media-band { grid-template-columns:repeat(2,1fr); }
.article .game-media-band .media-card:last-child:nth-child(odd) { grid-column:1/-1; }

@media (max-width: 900px) {
  .gameplay-showcase, .trailer-grid, .page-media { grid-template-columns:1fr; }
  .media-feature img { min-height:320px; }
  .page-media img { height:auto; max-height:430px; }
  .page-media-copy { padding:18px; }
  .real-fact-grid, .game-media-band { grid-template-columns:1fr 1fr; }
}
@media (max-width: 620px) {
  .brand-logo { width:96px; }
  .brand > span:last-child { display:none; }
  .hero-game-art img { min-height:220px; }
  .media-stack, .real-fact-grid, .game-media-band, .article .game-media-band { grid-template-columns:1fr; grid-template-rows:auto; }
  .page-media-shell { width:min(100% - 20px,1160px); margin-top:-18px; }
  .page-media-copy { padding:16px; }
  .page-media-copy h2 { font-size:1.28rem; }
}
