:root {
  --navy-950: #03070d;
  --navy-900: #07101b;
  --navy-820: #0b1724;
  --navy-760: #102133;
  --ivory: #f3ead2;
  --ivory-soft: rgba(243, 234, 210, 0.76);
  --ivory-faint: rgba(243, 234, 210, 0.54);
  --gold: #c7a765;
  --gold-bright: #f2d694;
  --gold-dim: rgba(199, 167, 101, 0.26);
  --blue-glow: rgba(94, 156, 214, 0.18);
  --glass: rgba(8, 17, 28, 0.58);
  --glass-strong: rgba(7, 13, 21, 0.78);
  --line: rgba(242, 214, 148, 0.25);
  --line-bright: rgba(242, 214, 148, 0.62);
  --shadow: rgba(0, 0, 0, 0.54);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% -12%, rgba(242, 214, 148, 0.13), transparent 24rem),
    radial-gradient(circle at 12% 24%, rgba(94, 156, 214, 0.16), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(199, 167, 101, 0.12), transparent 28rem),
    linear-gradient(180deg, #03070d 0%, #07101b 42%, #050b12 100%);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -20;
  pointer-events: none;
}

body::before {
  opacity: 0.62;
  background-image:
    radial-gradient(circle, rgba(243, 234, 210, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(94, 156, 214, 0.34) 0 1px, transparent 1.6px);
  background-position: 12px 18px, 82px 54px;
  background-size: 138px 122px, 214px 188px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.16) 78%, transparent);
}

body::after {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(242, 214, 148, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 214, 148, 0.07) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at 50% 22%, rgba(0, 0, 0, 0.86), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(3, 7, 13, 0.72), rgba(3, 7, 13, 0.08));
  transition: padding 180ms ease, background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 11px;
  padding-bottom: 11px;
  background: rgba(3, 7, 13, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-bright);
  color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(242, 214, 148, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 28px rgba(199, 167, 101, 0.14), inset 0 0 18px rgba(242, 214, 148, 0.08);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
}

.brand-crest img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
}

.brand-crest img.is-missing,
.brand-crest.has-image > span {
  display: none;
}

.brand-crest::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(242, 214, 148, 0.16);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name,
.site-nav a,
.eyebrow,
.gate-meta,
.news-label,
.news-date {
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-name {
  font-size: 12px;
  font-weight: 800;
}

.brand-role {
  color: var(--ivory-faint);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(243, 234, 210, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 1px;
  transform: translateX(-50%) scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--ivory);
}

.site-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.tool-pill,
.sound-button,
.menu-button {
  display: grid;
  place-items: center;
  height: 34px;
  border: 1px solid rgba(242, 214, 148, 0.24);
  color: rgba(243, 234, 210, 0.82);
  background: rgba(3, 7, 13, 0.34);
  backdrop-filter: blur(12px);
}

.tool-pill {
  min-width: 42px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.sound-button,
.menu-button {
  width: 34px;
  appearance: none;
  padding: 0;
  cursor: pointer;
}

.sound-button {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 9px;
}

.sound-button span {
  display: block;
  width: 2px;
  background: var(--gold-bright);
}

.sound-button span:nth-child(1) { height: 7px; }
.sound-button span:nth-child(2) { height: 13px; }
.sound-button span:nth-child(3) { height: 9px; }

.sound-button.is-muted span {
  height: 3px;
  opacity: 0.5;
}

.menu-button {
  gap: 5px;
}

.menu-button span {
  width: 14px;
  height: 1px;
  background: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: 116px clamp(20px, 4.8vw, 72px) 38px;
  background:
    linear-gradient(
      90deg,
      rgba(3, 7, 13, 0.20) 0%,
      rgba(3, 7, 13, 0.04) 48%,
      rgba(3, 7, 13, 0.24) 100%
    ),
    url("../assets/images/hero/hero_world_capitals.png") center center / cover no-repeat !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(3, 7, 13, 0.10) 0%,
      rgba(3, 7, 13, 0.00) 42%,
      rgba(3, 7, 13, 0.18) 100%
    );
}

.hero::after {
  display: none !important;
}

.hero-fallback,
.star-map,
.hero-frame {
  position: absolute;
  pointer-events: none;
}

.hero-fallback {
  inset: 0;
  z-index: 0;
  opacity: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
  display: none !important;
}

.hero-fallback::before {
  content: "";
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

.hero-fallback::after {
  content: "";
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

.hero-image,
.hero-fallback,
.hero-fallback::before,
.hero-fallback::after {
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

.star-map {
  z-index: 2;
  inset: 11vh 7vw auto auto;
  width: min(54vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(242, 214, 148, 0.13);
  border-radius: 50%;
  opacity: 0.02 !important;
  pointer-events: none !important;
  transition: opacity 420ms ease;
  box-shadow: inset 0 0 90px rgba(94, 156, 214, 0.08), 0 0 80px rgba(94, 156, 214, 0.06);
}

body.is-hero-image-loaded .star-map {
  opacity: 0.02 !important;
}

.star-map::before,
.star-map::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(242, 214, 148, 0.12);
  border-radius: 50%;
}

.star-map::after {
  inset: 28%;
  border-style: dashed;
  transform: rotate(28deg);
}

.hero-frame {
  z-index: 3;
  inset: 92px clamp(18px, 3vw, 44px) 24px;
  border: 1px solid rgba(242, 214, 148, 0.16);
  opacity: 0.18 !important;
  pointer-events: none !important;
  transition: opacity 420ms ease, border-color 420ms ease;
}

body.is-hero-image-loaded .hero-frame {
  opacity: 0.18 !important;
  border-color: rgba(242, 214, 148, 0.11);
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-color: rgba(242, 214, 148, 0.42);
  border-style: solid;
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.hero-center {
  position: relative !important;
  z-index: 10 !important;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(60px, 12vh, 126px) 0 clamp(44px, 7vh, 78px);
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
}

.title-mark {
  display: grid;
  grid-template-columns: minmax(42px, 160px) auto minmax(42px, 160px);
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(560px, 100%);
  margin: 24px auto 18px;
  color: var(--gold-bright);
}

.title-mark span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
}

.title-mark span:last-child {
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.title-mark i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 214, 148, 0.56);
  background: rgba(3, 7, 13, 0.34);
  box-shadow: 0 0 34px rgba(199, 167, 101, 0.14), inset 0 0 20px rgba(242, 214, 148, 0.07);
  font-family: var(--serif);
  font-size: 12px;
  font-style: normal;
}

h1,
h2 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  font-size: clamp(68px, 12.6vw, 178px);
  line-height: 0.84;
  text-shadow: 0 22px 78px rgba(0, 0, 0, 0.72), 0 0 52px rgba(94, 156, 214, 0.1);
}

.hero-subtitle {
  max-width: 760px;
  margin: 28px auto 0;
  color: rgba(243, 234, 210, 0.9);
  font-family: var(--serif);
  font-size: clamp(19px, 2.25vw, 30px);
  line-height: 1.75;
}

.hero-quote {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(242, 214, 148, 0.86);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
}

.hero-note {
  width: fit-content;
  margin: 24px auto 0;
  padding: 8px 14px;
  border: 1px solid rgba(242, 214, 148, 0.2);
  color: rgba(243, 234, 210, 0.62);
  background: rgba(3, 7, 13, 0.28);
  font-size: 12px;
  line-height: 1.4;
  backdrop-filter: blur(12px);
}

.hero-gates {
  position: relative !important;
  z-index: 10 !important;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.gate-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.gate-heading h2 {
  font-size: clamp(25px, 3.2vw, 44px);
  line-height: 1.12;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.gate-card {
  position: relative;
  min-height: clamp(310px, 28vw, 430px);
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: clamp(20px, 2vw, 26px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 12%, rgba(242, 214, 148, 0.13), transparent 9rem),
    linear-gradient(150deg, rgba(20, 37, 55, 0.62), rgba(5, 10, 17, 0.88));
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.gate-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(242, 214, 148, 0.12);
}

.gate-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(3, 7, 13, 0.96), rgba(3, 7, 13, 0.44) 58%, rgba(3, 7, 13, 0.78)),
    linear-gradient(135deg, rgba(242, 214, 148, 0.1), transparent 48%);
}

.gate-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.88) contrast(1.08) brightness(0.88);
  transition: opacity 260ms ease, transform 360ms ease;
}

.gate-card img.is-missing {
  display: none;
}

.gate-card > *:not(img) {
  position: relative;
  z-index: 3;
}

.gate-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 214, 148, 0.48);
  color: var(--gold-bright);
  background: rgba(3, 7, 13, 0.42);
  box-shadow: 0 0 26px rgba(199, 167, 101, 0.12), inset 0 0 18px rgba(242, 214, 148, 0.08);
  font-family: var(--serif);
  font-size: 12px;
}

.gate-meta {
  color: rgba(242, 214, 148, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.gate-card strong {
  margin-top: 12px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(35px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 0.94;
}

.gate-title-ja {
  margin-top: 12px;
  color: rgba(243, 234, 210, 0.88);
  font-weight: 800;
  line-height: 1.6;
}

.gate-card p {
  max-width: 19rem;
  min-height: 3.5em;
  margin: 10px 0 0;
  color: rgba(243, 234, 210, 0.68);
  font-size: 14px;
  line-height: 1.75;
}

.gate-arrow {
  align-self: end;
  margin-top: 16px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 18px;
  transition: transform 180ms ease;
}

.gate-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-bright);
  background:
    radial-gradient(circle at 22% 12%, rgba(242, 214, 148, 0.18), transparent 10rem),
    linear-gradient(150deg, rgba(23, 46, 70, 0.72), rgba(5, 10, 17, 0.9));
  box-shadow: 0 34px 72px rgba(0, 0, 0, 0.52), 0 0 42px rgba(94, 156, 214, 0.13), 0 0 30px rgba(199, 167, 101, 0.1);
}

.gate-card:hover img {
  transform: scale(1.06);
  opacity: 0.6;
}

.gate-card:hover .gate-arrow {
  transform: translateX(5px);
}

.news-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px clamp(20px, 4.8vw, 72px);
  border-top: 1px solid rgba(242, 214, 148, 0.34);
  border-bottom: 1px solid rgba(242, 214, 148, 0.12);
  color: var(--ivory-soft);
  background:
    radial-gradient(circle at 14% 50%, rgba(242, 214, 148, 0.08), transparent 18rem),
    linear-gradient(90deg, rgba(8, 17, 28, 0.94), rgba(12, 28, 43, 0.76), rgba(8, 17, 28, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-label,
.news-date {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
}

.news-bar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.restricted-section {
  padding: clamp(42px, 7vw, 92px) clamp(20px, 4.8vw, 72px);
  background:
    linear-gradient(180deg, rgba(3, 7, 13, 0.34), rgba(7, 16, 27, 0.88)),
    radial-gradient(circle at 18% 0%, rgba(242, 214, 148, 0.10), transparent 24rem);
}

.restricted-page-section {
  padding-top: clamp(56px, 8vw, 104px);
}

.restricted-card {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(242, 214, 148, 0.30);
  color: var(--ivory);
  background:
    linear-gradient(145deg, rgba(8, 17, 28, 0.96), rgba(3, 7, 13, 0.90)),
    radial-gradient(circle at 88% 12%, rgba(94, 156, 214, 0.12), transparent 18rem);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.restricted-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(242, 214, 148, 0.12);
}

.restricted-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.restricted-kicker,
.restricted-badge {
  margin: 0;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.restricted-badge {
  padding: 7px 11px;
  border: 1px solid rgba(242, 214, 148, 0.28);
  color: rgba(243, 234, 210, 0.78);
  background: rgba(3, 7, 13, 0.54);
}

.restricted-card h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.08;
}

.restricted-lead,
.restricted-note {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: rgba(243, 234, 210, 0.74);
  font-size: 14px;
  line-height: 1.9;
}

.restricted-lead {
  margin: 18px 0 0;
}

.directive-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.directive-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(242, 214, 148, 0.18);
  background: rgba(3, 7, 13, 0.48);
}

.directive-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(242, 214, 148, 0.36);
  color: var(--gold-bright);
  font-family: var(--serif);
}

.directive-item strong {
  display: block;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.directive-item p {
  margin: 8px 0 0;
  color: rgba(243, 234, 210, 0.72);
  line-height: 1.85;
}

.directive-locked {
  padding: 18px;
  border: 1px dashed rgba(242, 214, 148, 0.30);
  color: rgba(243, 234, 210, 0.62);
  background: repeating-linear-gradient(
    135deg,
    rgba(242, 214, 148, 0.045) 0 8px,
    rgba(3, 7, 13, 0.26) 8px 16px
  );
  text-align: center;
}

.directive-locked-large {
  padding: 24px;
}

.restricted-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 28px;
  padding: 12px 16px;
  border: 1px solid rgba(242, 214, 148, 0.36);
  color: var(--gold-bright);
  background: rgba(3, 7, 13, 0.44);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.qo-directive-card {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4.2vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(196, 211, 224, 0.24);
  color: var(--ivory);
  background:
    linear-gradient(150deg, rgba(2, 6, 12, 0.98), rgba(5, 18, 32, 0.95)),
    radial-gradient(circle at 85% 8%, rgba(84, 132, 178, 0.14), transparent 22rem);
  box-shadow:
    0 32px 86px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.qo-directive-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(242, 214, 148, 0.12);
}

.qo-directive-card::after {
  content: "FIELD WARDEN // INTERNAL MATERIAL";
  position: absolute;
  right: clamp(18px, 3vw, 36px);
  bottom: 16px;
  color: rgba(196, 211, 224, 0.16);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.restricted-archive-card {
  border-color: rgba(242, 214, 148, 0.28);
  background:
    linear-gradient(150deg, rgba(2, 6, 12, 0.98), rgba(4, 16, 31, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(242, 214, 148, 0.09), transparent 24rem);
}

.qo-directive-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(196, 211, 224, 0.18);
}

.qo-directive-label,
.qo-directive-subtitle,
.qo-access-level {
  margin: 0;
  text-transform: uppercase;
}

.qo-directive-label {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.qo-directive-subtitle {
  color: rgba(243, 234, 210, 0.78);
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 25px);
  letter-spacing: 0.08em;
}

.qo-access-level {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(196, 211, 224, 0.26);
  color: rgba(196, 211, 224, 0.82);
  background: rgba(3, 7, 13, 0.54);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.qo-directive-title {
  position: relative;
  z-index: 1;
  margin: 26px 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.qo-archive-subtitle {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(242, 214, 148, 0.86);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.qo-archive-note {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(243, 234, 210, 0.72);
  font-size: 14px;
  line-height: 1.9;
}

.qo-directive-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.qo-directive-item {
  padding: 18px 20px;
  border: 1px solid rgba(196, 211, 224, 0.16);
  background: rgba(3, 7, 13, 0.44);
}

.qo-directive-item p {
  margin: 8px 0 0;
  color: rgba(243, 234, 210, 0.74);
  font-size: 15px;
  line-height: 1.9;
}

.qo-directive-item .qo-rule-heading {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 500;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.qo-access-denied {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid rgba(196, 211, 224, 0.20);
  color: rgba(196, 211, 224, 0.72);
  background:
    linear-gradient(90deg, rgba(196, 211, 224, 0.045), rgba(3, 7, 13, 0.28)),
    rgba(3, 7, 13, 0.50);
  text-align: center;
}

.qo-access-denied p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.qo-access-denied p + p {
  color: rgba(243, 234, 210, 0.60);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.qo-access-denied-large {
  padding: 22px;
}

.qo-restricted-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 26px;
  padding: 12px 16px;
  border: 1px solid rgba(242, 214, 148, 0.32);
  color: var(--gold-bright);
  background: rgba(3, 7, 13, 0.48);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.qo-restricted-link:hover {
  border-color: rgba(242, 214, 148, 0.58);
  color: var(--ivory);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(20px, 4.8vw, 72px);
  color: rgba(243, 234, 210, 0.56);
  background: #03070d;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(3, 7, 13, 0.9);
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
  }

  .header-tools {
    grid-column: 2;
  }

  .gate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 126px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-role {
    display: none;
  }

  .brand-name {
    font-size: 11px;
  }

  .tool-pill {
    display: none;
  }

  .site-nav.is-open {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .hero {
    padding: 106px 16px 28px;
  }

  .hero-frame {
    inset: 76px 10px 18px;
  }

  .hero-center {
    padding-top: 48px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 96px);
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .title-mark {
    gap: 12px;
  }

  .gate-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px;
  }

  .gate-grid {
    grid-template-columns: 1fr;
  }

  .gate-card {
    min-height: 286px;
  }

  .news-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .restricted-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .directive-item {
    grid-template-columns: 1fr;
  }

  .qo-directive-card {
    padding: 24px 18px 42px;
  }

  .qo-directive-label,
  .qo-access-level,
  .qo-access-denied p,
  .qo-restricted-link {
    letter-spacing: 0.10em;
  }

  .qo-directive-subtitle {
    font-size: 18px;
  }

  .qo-directive-title {
    font-size: 34px;
  }

  .site-footer {
    flex-direction: column;
  }
}


/* FIELD WARDEN story reading pages */
.story-page {
  background: #050814;
  color: #e8e1d2;
}

.story-main,
.story-reader {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 72px;
}

.story-reader {
  width: min(900px, calc(100% - 28px));
}

.story-hero-panel {
  border-top: 1px solid rgba(198, 166, 91, 0.48);
  border-bottom: 1px solid rgba(198, 166, 91, 0.24);
  padding: 42px 0 34px;
}

.story-hero-panel h1,
.novel-article h1,
.story-chapter-list h2 {
  color: #d8bd78;
  letter-spacing: 0.08em;
}

.story-hero-panel h1,
.novel-article h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  margin: 0 0 20px;
}

.story-hero-panel p,
.story-status {
  max-width: 760px;
  color: #c9d3e6;
  line-height: 1.9;
}

.story-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.story-link-panel,
.story-chapter-row {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(198, 166, 91, 0.28);
  background: linear-gradient(180deg, rgba(13, 22, 42, 0.92), rgba(5, 8, 20, 0.92));
  padding: 22px;
}

.story-link-panel span,
.story-chapter-row span,
.story-breadcrumb,
.novel-article .eyebrow {
  color: #bca15f;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-link-panel strong,
.story-chapter-row strong {
  display: block;
  margin: 10px 0;
  color: #f1e8d2;
  font-size: 1.12rem;
}

.story-link-panel p {
  color: #b9c4d8;
  line-height: 1.8;
  margin: 0;
}

.story-chapter-list {
  margin-top: 42px;
}

.story-chapter-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.story-chapter-row em {
  color: #d8bd78;
  font-style: normal;
}

.story-breadcrumb {
  margin-bottom: 28px;
}

.story-breadcrumb a,
.chapter-nav a {
  color: #d8bd78;
  text-decoration: none;
}

.novel-article {
  padding-top: 18px;
}

.novel-body {
  margin-top: 36px;
  color: #ece6d9;
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  line-height: 1.95;
}

.novel-body h2,
.novel-body h3,
.novel-body h4 {
  color: #d8bd78;
  margin: 2.6em 0 1em;
  line-height: 1.45;
}

.novel-body p {
  margin: 0 0 1.45em;
}

.novel-body hr {
  border: 0;
  border-top: 1px solid rgba(198, 166, 91, 0.26);
  margin: 2.4em 0;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid rgba(198, 166, 91, 0.26);
  margin-top: 52px;
  padding-top: 22px;
}

@media (max-width: 720px) {
  .story-main,
  .story-reader {
    width: min(100% - 22px, 900px);
    padding-top: 104px;
  }

  .story-index-grid {
    grid-template-columns: 1fr;
  }

  .story-chapter-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* FIELD WARDEN section reading refinement */
.reader-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(5, 8, 20, 0.86);
  border-bottom: 1px solid rgba(198, 166, 91, 0.22);
  backdrop-filter: blur(14px);
}

.reader-brand,
.reader-nav a {
  color: #d8bd78;
  text-decoration: none;
  letter-spacing: 0.12em;
}

.reader-brand {
  font-weight: 700;
}

.reader-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.story-reading-page .story-reader {
  padding-top: 64px;
}

.story-reading-page .novel-body {
  max-width: 860px;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .reader-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* QO observation file: separated from novel body */
.qo-observation-file {
  max-width: 860px;
  margin: 44px 0 0;
  border-top: 1px solid rgba(198, 166, 91, 0.28);
  border-bottom: 1px solid rgba(198, 166, 91, 0.18);
  background: linear-gradient(180deg, rgba(9, 15, 30, 0.72), rgba(5, 8, 20, 0.82));
}

.qo-observation-file details {
  padding: 0;
}

.qo-observation-file summary {
  appearance: none;
  padding: 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  color: #d8bd78;
}

.qo-observation-file summary::-webkit-details-marker {
  display: none;
}

.qo-observation-file summary span {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bca15f;
}

.qo-observation-file summary strong {
  font-size: 0.95rem;
  color: #f1e8d2;
  font-weight: 600;
}

.qo-record-body {
  padding: 8px 0 24px;
  color: #d9e0ee;
  line-height: 1.85;
  font-size: 0.96rem;
}

.qo-record-body p {
  margin: 0 0 1.25em;
}

/* FIELD WARDEN fantasy-home refinement 2026-07-13 */
.site-header {
  border: 1px solid rgba(199, 167, 106, 0.32);
  border-left: 0;
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 11, 0.92), rgba(3, 10, 18, 0.66));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34), inset 0 -1px 0 rgba(216, 189, 122, 0.18);
}

.brand-crest {
  transform: rotate(45deg);
  width: 42px;
  height: 42px;
  border-color: rgba(216, 189, 122, 0.72);
  color: #d8bd7a;
}

.brand-crest span {
  transform: rotate(-45deg);
}

.brand-name {
  color: #d8bd7a;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 34px);
  font-weight: 500;
  text-shadow: 0 0 24px rgba(216, 189, 122, 0.18);
}

.brand-role {
  display: none;
}

.site-nav a {
  color: rgba(243, 234, 216, 0.82);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-top: 96px;
  padding-bottom: 34px;
  background:
    linear-gradient(180deg, rgba(2, 6, 11, 0.05) 0%, rgba(2, 6, 11, 0.08) 42%, rgba(2, 6, 11, 0.72) 100%),
    linear-gradient(90deg, rgba(2, 6, 11, 0.34), rgba(2, 6, 11, 0.02) 48%, rgba(2, 6, 11, 0.30)),
    url("../assets/images/hero/hero_world_capitals.png") center center / cover no-repeat !important;
}

.hero::before {
  background:
    radial-gradient(circle at 50% 32%, rgba(216, 189, 122, 0.10), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 11, 0.16), rgba(2, 6, 11, 0.00) 44%, rgba(2, 6, 11, 0.28));
}

.hero-frame {
  border-color: rgba(216, 189, 122, 0.26);
  opacity: 0.42 !important;
}

.hero-center {
  padding: clamp(54px, 9vh, 96px) 0 clamp(30px, 5vh, 54px);
}

.hero-center .eyebrow {
  color: rgba(216, 189, 122, 0.88);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.title-mark i {
  width: 54px;
  height: 54px;
  color: #d8bd7a;
  border-color: rgba(216, 189, 122, 0.76);
  background: rgba(2, 6, 11, 0.32);
  font-size: 28px;
  box-shadow: 0 0 34px rgba(216, 189, 122, 0.20), inset 0 0 18px rgba(216, 189, 122, 0.08);
}

h1 {
  color: #ecd7a3;
  font-size: clamp(70px, 11vw, 166px);
  text-shadow:
    0 3px 0 rgba(77, 55, 25, 0.55),
    0 22px 80px rgba(0, 0, 0, 0.82),
    0 0 42px rgba(216, 189, 122, 0.30);
}

.hero-subtitle {
  margin-top: 18px;
  color: rgba(243, 234, 216, 0.92);
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 32px);
}

.hero-quote {
  position: relative;
  width: fit-content;
  max-width: min(860px, 100%);
  margin-top: 28px;
  padding: 0 42px;
  color: rgba(243, 234, 216, 0.96);
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 31px);
  line-height: 1.7;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.78);
}

.hero-quote::after {
  content: "";
  display: block;
  width: min(220px, 52vw);
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, rgba(216, 189, 122, 0.74), transparent);
}

.hero-note {
  display: none;
}

.gate-heading {
  display: none;
}

.hero-gates {
  width: min(1160px, 100%);
}

.gate-grid {
  gap: clamp(18px, 2vw, 28px);
}

.gate-card {
  min-height: clamp(190px, 15.5vw, 250px);
  justify-content: center;
  align-items: center;
  padding: clamp(18px, 2.2vw, 30px);
  text-align: center;
  border-color: rgba(216, 189, 122, 0.54);
  background:
    linear-gradient(180deg, rgba(8, 18, 29, 0.72), rgba(3, 8, 14, 0.88));
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(216, 189, 122, 0.08);
}

.gate-card::before {
  inset: 8px;
  border-color: rgba(216, 189, 122, 0.30);
}

.gate-card::after {
  background:
    linear-gradient(180deg, rgba(3, 7, 13, 0.62), rgba(3, 7, 13, 0.82)),
    radial-gradient(circle at 50% 18%, rgba(216, 189, 122, 0.16), transparent 9rem);
}

.gate-card img {
  opacity: 0.18;
  filter: saturate(0.76) contrast(1.05) brightness(0.68);
}

.gate-icon {
  position: relative;
  top: auto;
  left: auto;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #d8bd7a;
  font-size: 30px;
}

.gate-meta,
.gate-card p {
  display: none;
}

.gate-card strong {
  margin-top: 0;
  color: #d8bd7a;
  font-size: clamp(26px, 2.4vw, 38px);
  text-shadow: 0 0 22px rgba(216, 189, 122, 0.18);
}

.gate-title-ja {
  margin-top: 8px;
  color: rgba(243, 234, 216, 0.88);
  font-family: var(--serif);
  font-weight: 500;
}

.gate-arrow {
  align-self: center;
  margin-top: 14px;
}

.gate-card:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 215, 163, 0.86);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.58), 0 0 32px rgba(216, 189, 122, 0.18);
}

.news-bar {
  border-top-color: rgba(216, 189, 122, 0.40);
  background: linear-gradient(90deg, rgba(2, 6, 11, 0.98), rgba(7, 19, 31, 0.96), rgba(2, 6, 11, 0.98));
}

.news-label {
  padding: 6px 14px;
  border: 1px solid rgba(216, 189, 122, 0.38);
  color: #d8bd7a;
  font-family: var(--serif);
}

@media (max-width: 1120px) {
  .site-nav.is-open {
    grid-template-columns: repeat(3, auto);
  }
}

@media (max-width: 720px) {
  .brand-name {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 106px;
  }

  .hero-quote {
    padding: 0;
  }
}

/* FIELD WARDEN fantasy-home v2 2026-07-13 */
.home-page {
  min-height: 100svh;
  overflow-x: hidden;
  background: #02070d;
}

.home-page .site-header {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 100;
  display: grid;
  grid-template-columns: 330px 1fr 210px;
  min-height: 72px;
  padding: 0 clamp(18px, 2.4vw, 38px);
  border: 1px solid rgba(216, 189, 122, 0.36);
  color: #f5ead4;
  background:
    linear-gradient(180deg, rgba(2, 7, 13, 0.92), rgba(3, 12, 22, 0.72));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(240, 217, 155, 0.12),
    inset 0 -1px 0 rgba(216, 189, 122, 0.20);
  backdrop-filter: blur(10px);
}

.home-page .site-header::before,
.home-page .site-header::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(216, 189, 122, 0.58);
  border-style: solid;
  pointer-events: none;
}

.home-page .site-header::before {
  left: 7px;
  top: 7px;
  border-width: 1px 0 0 1px;
}

.home-page .site-header::after {
  right: 7px;
  bottom: 7px;
  border-width: 0 1px 1px 0;
}

.home-page .brand {
  gap: 18px;
}

.home-page .brand-crest {
  width: 46px;
  height: 46px;
  transform: rotate(45deg);
  border-color: rgba(240, 217, 155, 0.72);
  background: radial-gradient(circle, rgba(216, 189, 122, 0.16), rgba(2, 7, 13, 0.54));
  box-shadow: 0 0 26px rgba(216, 189, 122, 0.18), inset 0 0 16px rgba(240, 217, 155, 0.10);
}

.home-page .brand-crest span {
  transform: rotate(-45deg);
  color: #f0d99b;
  font-family: var(--serif);
  font-size: 12px;
}

.home-page .brand-name {
  color: #d8bd7a;
  font-family: var(--serif);
  font-size: clamp(27px, 2.5vw, 39px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.055em;
  text-shadow: 0 0 18px rgba(216, 189, 122, 0.22);
}

.home-page .brand-role {
  display: none;
}

.home-page .site-nav {
  gap: clamp(28px, 4vw, 62px);
}

.home-page .site-nav a {
  color: rgba(245, 234, 212, 0.86);
  font-family: var(--serif);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: none;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.home-page .site-nav a:hover {
  color: #f0d99b;
}

.home-page .header-tools {
  gap: 12px;
}

.home-page .tool-pill,
.home-page .sound-button,
.home-page .menu-button {
  width: 44px;
  height: 44px;
  border-color: rgba(216, 189, 122, 0.46);
  background: rgba(2, 7, 13, 0.36);
}

.home-page .hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto;
  align-items: end;
  padding: 96px clamp(22px, 4vw, 70px) 84px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(240, 217, 155, 0.10), transparent 20rem),
    linear-gradient(180deg, rgba(2, 7, 13, 0.04) 0%, rgba(2, 7, 13, 0.18) 50%, rgba(2, 7, 13, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 7, 13, 0.34), rgba(2, 7, 13, 0.03) 48%, rgba(2, 7, 13, 0.34)),
    url("../assets/images/hero/hero_chatgpt_fantasy_city_20260713.png") center center / cover no-repeat !important;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 7, 13, 0.72) 0%, rgba(2, 7, 13, 0.06) 22%, rgba(2, 7, 13, 0.02) 58%, rgba(2, 7, 13, 0.62) 100%),
    radial-gradient(ellipse at 50% 46%, rgba(2, 7, 13, 0.02), rgba(2, 7, 13, 0.30) 66%, rgba(2, 7, 13, 0.74) 100%);
}

.home-page .hero-image,
.home-page .hero-fallback,
.home-page .star-map {
  display: none !important;
}

.home-page .hero-frame {
  z-index: 4;
  inset: 86px 8px 60px;
  border-color: rgba(216, 189, 122, 0.34);
  opacity: 0.58 !important;
}

.home-page .hero-frame::before,
.home-page .hero-frame::after {
  width: 92px;
  height: 92px;
  border-color: rgba(216, 189, 122, 0.72);
}

.home-page .hero-center {
  z-index: 8 !important;
  align-self: center;
  max-width: 1180px;
  padding: 0 0 clamp(22px, 3vh, 42px);
  margin-top: 54px;
}

.home-page .hero-center .eyebrow {
  min-height: 22px;
  color: transparent;
}

.home-page .title-mark {
  grid-template-columns: minmax(60px, 210px) auto minmax(60px, 210px);
  width: min(620px, 82vw);
  margin: 0 auto 18px;
  gap: 18px;
}

.home-page .title-mark i {
  width: 70px;
  height: 70px;
  border: 0;
  color: #f0d99b;
  background: transparent;
  font-size: 54px;
  text-shadow: 0 0 24px rgba(216, 189, 122, 0.55), 0 10px 28px rgba(0, 0, 0, 0.72);
  box-shadow: none;
}

.home-page .title-mark span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 217, 155, 0.82));
}

.home-page .title-mark span:last-child {
  background: linear-gradient(90deg, rgba(240, 217, 155, 0.82), transparent);
}

.home-page h1 {
  color: #e7c987;
  font-size: clamp(82px, 10.8vw, 176px);
  line-height: 0.84;
  letter-spacing: 0.065em;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 #fff0b8,
    0 4px 0 rgba(89, 61, 26, 0.82),
    0 16px 36px rgba(0, 0, 0, 0.86),
    0 0 52px rgba(216, 189, 122, 0.34);
}

.home-page .hero-subtitle {
  margin-top: 22px;
  color: #f5ead4;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 34px);
  letter-spacing: 0.34em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.8);
}

.home-page .hero-quote {
  width: fit-content;
  max-width: min(900px, 92vw);
  margin-top: 22px;
  padding: 0;
  color: #f5ead4;
  font-family: var(--serif);
  font-size: clamp(22px, 2.05vw, 34px);
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.88);
}

.home-page .hero-quote::before,
.home-page .hero-quote::after {
  content: "";
  display: block;
  width: min(250px, 48vw);
  height: 1px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, rgba(216, 189, 122, 0.88), transparent);
}

.home-page .hero-note,
.home-page .gate-heading,
.home-page .gate-card p,
.home-page .gate-meta {
  display: none;
}

.home-page .hero-gates {
  z-index: 9 !important;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.home-page .gate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
}

.home-page .gate-card {
  min-height: clamp(160px, 15vw, 220px);
  justify-content: center;
  align-items: center;
  padding: 24px 20px 22px;
  border: 1px solid rgba(216, 189, 122, 0.68);
  color: #f5ead4;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(8, 21, 34, 0.66), rgba(3, 10, 18, 0.86));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.54),
    inset 0 0 0 1px rgba(240, 217, 155, 0.08),
    inset 0 18px 42px rgba(216, 189, 122, 0.05);
  backdrop-filter: blur(6px);
}

.home-page .gate-card::before {
  inset: 8px;
  border: 1px solid rgba(216, 189, 122, 0.34);
}

.home-page .gate-card::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(240, 217, 155, 0.12), transparent 7rem),
    linear-gradient(180deg, rgba(2, 7, 13, 0.26), rgba(2, 7, 13, 0.70));
}

.home-page .gate-card img {
  opacity: 0.10;
  filter: saturate(0.7) contrast(1.1) brightness(0.58);
}

.home-page .gate-icon {
  position: relative;
  top: auto;
  left: auto;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border: 0;
  color: #d8bd7a;
  background: transparent;
  box-shadow: none;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(216, 189, 122, 0.28);
}

.home-page .gate-card strong {
  margin: 0;
  color: #d8bd7a;
  font-size: clamp(28px, 2.35vw, 42px);
  letter-spacing: 0.16em;
  text-shadow: 0 0 22px rgba(216, 189, 122, 0.26), 0 10px 24px rgba(0,0,0,0.7);
}

.home-page .gate-title-ja {
  margin-top: 9px;
  color: rgba(245, 234, 212, 0.92);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.home-page .gate-arrow {
  align-self: center;
  margin-top: 12px;
  font-size: 18px;
  color: #d8bd7a;
}

.home-page .gate-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 217, 155, 0.95);
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(216, 189, 122, 0.20),
    inset 0 0 0 1px rgba(240, 217, 155, 0.18);
}

.home-page .news-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  grid-template-columns: auto auto 1fr auto;
  min-height: 56px;
  padding: 12px clamp(24px, 5vw, 72px);
  border-top: 1px solid rgba(216, 189, 122, 0.52);
  border-bottom: 0;
  background: linear-gradient(90deg, rgba(2, 7, 13, 0.98), rgba(7, 21, 34, 0.94), rgba(2, 7, 13, 0.98));
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.42);
}

.home-page .news-label {
  padding: 6px 20px;
  border: 1px solid rgba(216, 189, 122, 0.44);
  color: #d8bd7a;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: none;
}

.home-page .news-date {
  order: 2;
  color: #f0d99b;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.home-page .news-bar p {
  order: 3;
  color: rgba(245, 234, 212, 0.88);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.home-page .news-bar::after {
  content: "ニュース一覧へ →";
  order: 4;
  color: #d8bd7a;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.home-page .site-footer {
  display: none;
}

@media (max-width: 1120px) {
  .home-page .site-header {
    grid-template-columns: 1fr auto;
  }

  .home-page .site-nav.is-open {
    grid-template-columns: repeat(3, auto);
  }

  .home-page .hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 96px;
  }

  .home-page .gate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-page .site-header {
    top: 0;
    left: 0;
    right: 0;
    min-height: 66px;
  }

  .home-page .brand-name {
    font-size: 20px;
  }

  .home-page h1 {
    font-size: clamp(54px, 17vw, 86px);
  }

  .home-page .hero-subtitle {
    letter-spacing: 0.16em;
  }

  .home-page .hero-quote {
    font-size: 18px;
    letter-spacing: 0.06em;
  }

  .home-page .gate-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .home-page .gate-card {
    min-height: 142px;
    padding: 16px 12px;
  }

  .home-page .gate-icon {
    display: none;
  }

  .home-page .gate-card strong {
    font-size: 23px;
  }

  .home-page .news-bar {
    position: relative;
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  .home-page .news-bar::after {
    display: none;
  }
}

/* FIELD WARDEN fantasy-home v2 fit pass */
@media (min-width: 1121px) {
  .home-page .hero {
    height: 100svh;
    min-height: 760px;
    display: block;
    padding: 96px clamp(22px, 4vw, 70px) 96px;
  }

  .home-page .hero-center {
    max-width: 1120px;
    padding: clamp(72px, 11vh, 108px) 0 0;
  }

  .home-page h1 {
    font-size: clamp(76px, 8.6vw, 138px);
    line-height: 0.86;
  }

  .home-page .title-mark {
    margin-bottom: 12px;
  }

  .home-page .title-mark i {
    width: 58px;
    height: 58px;
    font-size: 44px;
  }

  .home-page .hero-subtitle {
    margin-top: 16px;
    font-size: clamp(18px, 1.65vw, 27px);
  }

  .home-page .hero-quote {
    margin-top: 16px;
    font-size: clamp(18px, 1.55vw, 27px);
  }

  .home-page .hero-quote::before,
  .home-page .hero-quote::after {
    margin: 12px auto;
  }

  .home-page .hero-gates {
    position: absolute !important;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
  }

  .home-page .gate-card {
    min-height: 174px;
    padding: 20px 18px 18px;
  }

  .home-page .gate-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    font-size: 28px;
  }

  .home-page .gate-card strong {
    font-size: clamp(24px, 2vw, 34px);
  }

  .home-page .gate-title-ja {
    margin-top: 6px;
  }

  .home-page .gate-arrow {
    margin-top: 8px;
  }
}

/* FIELD WARDEN fantasy-home v2 final alignment */
.home-page,
.home-page * {
  max-width: 100%;
}

.home-page {
  overflow-x: hidden;
}

@media (min-width: 1121px) {
  .home-page .hero-center {
    padding-top: clamp(26px, 6vh, 58px);
  }

  .home-page .hero-quote {
    margin-top: 12px;
  }

  .home-page .hero-gates {
    bottom: 88px;
  }

  .home-page .site-header {
    overflow: hidden;
  }
}

/* FIELD WARDEN fantasy-home v2 overlap correction */
@media (min-width: 1121px) {
  .home-page .hero-center {
    transform: translateY(-54px);
  }
}




/* FIELD WARDEN subpage fantasy backgrounds 2026-07-15 */
.subpage {
  --subpage-bg-image: url("../assets/images/hero/hero_chatgpt_fantasy_city_20260713.png");
  --subpage-bg-position: center center;
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 189, 122, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.72), rgba(2, 7, 13, 0.88));
}

.subpage-story {
  --subpage-bg-image: url("../assets/images/cards/story_chatgpt_bg_20260715.png");
  --subpage-bg-position: center center;
}

.subpage-atlas {
  --subpage-bg-image: url("../assets/images/cards/atlas_chatgpt_bg_20260715.png");
  --subpage-bg-position: center center;
}

.subpage-archive {
  --subpage-bg-image: url("../assets/images/cards/archive_chatgpt_bg_20260715.png");
  --subpage-bg-position: center center;
}

.subpage-gallery {
  --subpage-bg-image: url("../assets/images/cards/gallery_chatgpt_bg_20260715.png");
  --subpage-bg-position: center center;
}

.subpage .hero {
  min-height: min(72vh, 760px);
  background:
    linear-gradient(180deg, rgba(2, 7, 13, 0.28), rgba(2, 7, 13, 0.46) 62%, rgba(2, 7, 13, 0.76)),
    radial-gradient(circle at 50% 26%, rgba(240, 217, 155, 0.18), transparent 28%),
    var(--subpage-bg-image) var(--subpage-bg-position) / cover no-repeat !important;
}

.subpage .hero::before {
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.54), rgba(2, 7, 13, 0.10) 42%, rgba(2, 7, 13, 0.54)),
    linear-gradient(180deg, rgba(2, 7, 13, 0.08), rgba(2, 7, 13, 0.42));
}

.subpage .hero::after {
  border-color: rgba(216, 189, 122, 0.4);
  box-shadow: inset 0 0 0 1px rgba(240, 217, 155, 0.12), inset 0 -96px 112px rgba(2, 7, 13, 0.46);
}

.subpage .hero-center {
  background: rgba(2, 7, 13, 0.36);
  border: 1px solid rgba(216, 189, 122, 0.24);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(3px);
}

.subpage .news-bar,
.subpage .story-index-grid,
.subpage .restricted-section {
  position: relative;
  z-index: 2;
}

.subpage .story-link-panel,
.subpage .qo-directive-card,
.subpage .restricted-archive-card {
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.88), rgba(3, 10, 18, 0.74));
  border-color: rgba(216, 189, 122, 0.42);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

@media (max-width: 760px) {
  .subpage .hero {
    min-height: 620px;
    background-position: center top !important;
  }

  .subpage .hero-center {
    width: calc(100% - 32px);
    padding: 28px 18px;
  }
}


/* FIELD WARDEN story unlock 20260718 */
.story-unlock-panel {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid rgba(216, 189, 122, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(5, 12, 24, 0.92), rgba(13, 24, 40, 0.84));
  color: #f3ead8;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(240, 217, 155, 0.16);
}

.story-unlock-panel--compact {
  margin: 16px 0 0;
  padding: 16px 18px;
}

.story-unlock-panel h2 {
  margin: 4px 0 10px;
  color: #f0d99b;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0;
}

.story-unlock-panel p {
  margin: 8px 0;
}

.story-unlock-kicker {
  color: #c9a76a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-unlock-time strong {
  color: #f5ead4;
  font-weight: 600;
}

.story-locked-link {
  cursor: not-allowed;
  opacity: 0.58;
  filter: saturate(0.7);
}

.story-locked-link:hover {
  border-color: rgba(216, 189, 122, 0.38);
  box-shadow: none;
  transform: none;
}

.story-unlock-inline {
  display: block;
  margin-top: 8px;
  color: #d8bd7a;
  font-size: 0.82rem;
  line-height: 1.5;
}



/* FIELD WARDEN public preparation 20260715-public-prep */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(216, 189, 122, 0.30);
  background: rgba(2, 7, 13, 0.30);
}

.language-switch .tool-pill {
  min-width: 34px;
  width: auto;
  height: 34px;
  appearance: none;
  padding: 0;
  cursor: pointer;
}

.language-switch .tool-pill.is-active {
  color: #02070d;
  border-color: rgba(240, 217, 155, 0.82);
  background: linear-gradient(180deg, rgba(240, 217, 155, 0.96), rgba(201, 167, 106, 0.88));
  box-shadow: 0 0 18px rgba(216, 189, 122, 0.24);
}

.home-page .news-bar::after {
  content: var(--home-news-more, "ニュース一覧へ →");
}

.public-feedback {
  position: relative;
  z-index: 2;
  padding: clamp(54px, 7vw, 88px) clamp(22px, 5vw, 72px) clamp(34px, 5vw, 58px);
  color: #f5ead4;
  background:
    radial-gradient(circle at 18% 0%, rgba(216, 189, 122, 0.10), transparent 24rem),
    linear-gradient(180deg, rgba(2, 7, 13, 0.96), rgba(6, 16, 26, 0.94));
  text-align: center;
}

.public-feedback h2 {
  margin-top: 10px;
  color: #d8bd7a;
  font-size: clamp(28px, 3.6vw, 52px);
}

.public-feedback p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(245, 234, 212, 0.78);
  line-height: 1.9;
}

.feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 11px 24px;
  border: 1px solid rgba(216, 189, 122, 0.58);
  color: #f0d99b;
  background: rgba(3, 10, 18, 0.72);
  box-shadow: inset 0 0 0 1px rgba(240, 217, 155, 0.08), 0 18px 42px rgba(0, 0, 0, 0.26);
  font-family: var(--serif);
  letter-spacing: 0.08em;
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.feedback-button:hover {
  border-color: rgba(240, 217, 155, 0.86);
  color: #fff0b8;
  box-shadow: inset 0 0 0 1px rgba(240, 217, 155, 0.18), 0 0 28px rgba(216, 189, 122, 0.18);
}

.home-page .site-footer.public-notice {
  display: grid;
  gap: 10px;
  padding: 30px clamp(22px, 5vw, 72px) 88px;
  border-top: 1px solid rgba(216, 189, 122, 0.22);
  color: rgba(245, 234, 212, 0.74);
  background: #02070d;
  text-align: center;
}

.home-page .site-footer.public-notice p {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.8;
}

@media (min-width: 1121px) {
  .home-page .hero {
    margin-bottom: 0;
  }
}

@media (max-width: 1120px) {
  .home-page .header-tools {
    gap: 7px;
  }

  .language-switch .tool-pill {
    min-width: 30px;
    height: 32px;
    padding: 0 8px;
  }
}

@media (max-width: 720px) {
  .public-feedback {
    padding-top: 42px;
  }

  .home-page .site-footer.public-notice {
    padding-bottom: 44px;
  }
}


/* FIELD WARDEN intro 20260715-intro */
body.intro-active {
  overflow: hidden;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f5ead4;
  background:
    radial-gradient(circle at 50% 32%, rgba(216, 189, 122, 0.10), transparent 19rem),
    radial-gradient(circle at 24% 22%, rgba(71, 116, 160, 0.14), transparent 22rem),
    linear-gradient(180deg, #010409 0%, #04101b 54%, #010308 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 680ms ease, visibility 680ms ease;
}

body.intro-active .intro-screen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stars {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(245, 234, 212, 0.72) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(216, 189, 122, 0.50) 0 1px, transparent 1.7px);
  background-size: 148px 132px, 232px 204px;
  background-position: 18px 28px, 92px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 86%);
}

.intro-panel {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 34px;
  width: min(820px, calc(100% - 44px));
  padding: clamp(42px, 7vw, 76px) clamp(24px, 5vw, 64px);
  border: 1px solid rgba(216, 189, 122, 0.26);
  background:
    linear-gradient(180deg, rgba(3, 9, 16, 0.52), rgba(3, 9, 16, 0.18)),
    radial-gradient(circle at 50% 10%, rgba(216, 189, 122, 0.10), transparent 15rem);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(240, 217, 155, 0.06);
  backdrop-filter: blur(8px);
}

.intro-panel::before,
.intro-panel::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  border-color: rgba(216, 189, 122, 0.58);
  border-style: solid;
  pointer-events: none;
}

.intro-panel::before {
  top: 10px;
  left: 10px;
  border-width: 1px 0 0 1px;
}

.intro-panel::after {
  right: 10px;
  bottom: 10px;
  border-width: 0 1px 1px 0;
}

.intro-lines {
  display: grid;
  gap: 18px;
  min-height: 190px;
  place-items: center;
  text-align: center;
}

.intro-line {
  margin: 0;
  color: rgba(245, 234, 212, 0.92);
  font-family: var(--serif);
  font-size: clamp(19px, 2.7vw, 34px);
  line-height: 1.7;
  letter-spacing: 0.10em;
  opacity: 0;
  transform: translateY(12px);
  animation: introLineIn 920ms ease forwards;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.82);
}

.intro-line.is-empty {
  display: none;
}

.intro-line-two {
  animation-delay: 1.35s;
}

.intro-line-three {
  color: #d8bd7a;
  font-size: clamp(32px, 5.2vw, 72px);
  letter-spacing: 0.18em;
  animation-delay: 2.72s;
  text-shadow: 0 0 34px rgba(216, 189, 122, 0.26), 0 20px 48px rgba(0, 0, 0, 0.9);
}

.intro-title {
  margin: 2px 0 0;
  color: #d8bd7a;
  font-family: var(--serif);
  font-size: clamp(32px, 5.2vw, 72px);
  line-height: 1.2;
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translateY(14px);
  animation: introLineIn 920ms ease 2.72s forwards;
  text-align: center;
  text-shadow: 0 0 34px rgba(216, 189, 122, 0.26), 0 20px 48px rgba(0, 0, 0, 0.9);
}

.intro-character {
  position: relative;
  width: clamp(92px, 13vw, 138px);
  height: clamp(160px, 22vw, 238px);
  opacity: 0;
  transform: translateY(10px);
  animation: introCharacterIn 1200ms ease 4.05s forwards;
}

.intro-character::before {
  content: "";
  position: absolute;
  inset: 12% 20% 0;
  border: 1px solid rgba(216, 189, 122, 0.30);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(216, 189, 122, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(7, 20, 32, 0.96), rgba(1, 4, 9, 0.16));
  clip-path: polygon(50% 0, 72% 18%, 82% 48%, 100% 100%, 0 100%, 18% 48%, 28% 18%);
  box-shadow: 0 0 44px rgba(216, 189, 122, 0.16), inset 0 0 28px rgba(240, 217, 155, 0.05);
}

.intro-character-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 30%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(216, 189, 122, 0.44);
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 50% 34%, rgba(216, 189, 122, 0.16), rgba(3, 10, 18, 0.82));
}

.intro-character-body {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 62%;
  height: 72%;
  transform: translateX(-50%);
  border-left: 1px solid rgba(216, 189, 122, 0.32);
  border-right: 1px solid rgba(216, 189, 122, 0.22);
  background: linear-gradient(180deg, rgba(216, 189, 122, 0.08), rgba(3, 10, 18, 0.68));
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
}

.intro-character::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 130%;
  height: 18%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(216, 189, 122, 0.18), transparent 70%);
  filter: blur(6px);
}

.intro-skip {
  position: absolute;
  right: clamp(20px, 4vw, 52px);
  bottom: clamp(20px, 4vw, 42px);
  z-index: 3;
  min-width: 86px;
  min-height: 38px;
  border: 1px solid rgba(216, 189, 122, 0.42);
  color: rgba(245, 234, 212, 0.82);
  background: rgba(2, 7, 13, 0.42);
  appearance: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.intro-skip:hover {
  border-color: rgba(240, 217, 155, 0.82);
  color: #f0d99b;
  background: rgba(3, 10, 18, 0.78);
}

@keyframes introLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introCharacterIn {
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-line,
  .intro-character {
    animation-duration: 1ms;
    animation-delay: 0ms;
  }

  .intro-screen {
    transition-duration: 1ms;
  }
}

@media (max-width: 720px) {
  .intro-panel {
    gap: 24px;
  }

  .intro-lines {
    min-height: 170px;
  }

  .intro-line {
    letter-spacing: 0.05em;
  }
}


/* FIELD WARDEN news detail 20260715-news-detail */
.home-page .news-bar {
  display: block;
  padding: 0;
}

.news-toggle {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 56px;
  gap: 18px;
  padding: 12px clamp(24px, 5vw, 72px);
  border: 0;
  color: inherit;
  background: transparent;
  appearance: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.news-toggle:focus-visible {
  outline: 1px solid rgba(240, 217, 155, 0.82);
  outline-offset: -5px;
}

.home-page .news-bar::after {
  display: none;
}

.news-summary-text {
  color: rgba(245, 234, 212, 0.88);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.news-more {
  color: #d8bd7a;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.news-detail {
  border-top: 1px solid rgba(216, 189, 122, 0.24);
  padding: 0 clamp(24px, 5vw, 72px) 16px;
  background: linear-gradient(180deg, rgba(2, 7, 13, 0.34), rgba(2, 7, 13, 0.10));
}

.news-detail[hidden] {
  display: none;
}

.news-detail p {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 14px;
  color: rgba(245, 234, 212, 0.82);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.06em;
  text-align: center;
}

.home-page .site-footer.public-notice {
  justify-items: center;
  text-align: center;
}

.home-page .site-footer.public-notice p {
  width: min(860px, 100%);
  max-width: 860px;
  text-align: center;
}

@media (max-width: 900px) {
  .news-toggle {
    grid-template-columns: auto auto;
    gap: 8px 14px;
  }

  .news-summary-text,
  .news-more {
    grid-column: 1 / -1;
  }

  .news-more {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .home-page .news-bar {
    position: relative;
  }

  .news-toggle {
    padding: 14px 18px;
  }

  .news-detail {
    padding: 0 18px 16px;
  }
}


/* FIELD WARDEN legal center fix 20260715-legal-center-fix */
.home-page .site-footer.public-notice {
  display: block;
  text-align: center;
}

.home-page .site-footer.public-notice .footer-legal {
  display: block;
  width: min(860px, calc(100% - 32px));
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-page .site-footer.public-notice .footer-legal p {
  display: block;
  width: 100%;
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}


/* FIELD WARDEN sequential story unlock 20260715-story-24h-scalable */
.story-complete-panel {
  width: min(860px, calc(100% - 32px));
  margin: 34px auto 22px;
  padding: 22px 24px;
  border: 1px solid rgba(216, 189, 122, 0.48);
  background: linear-gradient(135deg, rgba(5, 12, 24, 0.88), rgba(13, 24, 40, 0.72));
  color: #f3ead8;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(240, 217, 155, 0.12);
}

.story-complete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 11px 22px;
  border: 1px solid rgba(216, 189, 122, 0.62);
  color: #f0d99b;
  background: rgba(3, 10, 18, 0.78);
  appearance: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--serif);
  letter-spacing: 0.08em;
}

.story-complete-button:hover:not(:disabled) {
  border-color: rgba(240, 217, 155, 0.9);
  color: #fff0b8;
  box-shadow: 0 0 26px rgba(216, 189, 122, 0.18);
}

.story-complete-button:disabled {
  cursor: default;
  opacity: 0.64;
}

.story-locked-link {
  cursor: not-allowed;
}


/* FIELD WARDEN scalable 24h story unlock 20260715-story-24h-scalable */
.story-complete-message {
  max-width: 720px;
  margin: 14px auto 0;
  color: rgba(245, 234, 212, 0.78);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

/* FIELD WARDEN gallery uniform card - 20260715-gallery-uniform */
.gallery-section {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 7vw, 92px) clamp(20px, 4.8vw, 72px);
  background:
    linear-gradient(180deg, rgba(2, 7, 13, 0.28), rgba(2, 7, 13, 0.72)),
    radial-gradient(circle at 50% 0%, rgba(216, 189, 122, 0.14), transparent 42%);
}

.gallery-section-head {
  width: min(1120px, 100%);
  margin: 0 auto 24px;
  text-align: center;
}

.gallery-section-head h2 {
  margin: 8px 0 10px;
  color: #f5ead4;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.55);
}

.gallery-section-head p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 680px;
  color: rgba(245, 234, 212, 0.72);
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.gallery-card {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 22px);
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(216, 189, 122, 0.48);
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.9), rgba(3, 10, 18, 0.76));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(240, 217, 155, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(240, 217, 155, 0.78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 34px rgba(216, 189, 122, 0.12);
}

.gallery-card-image {
  display: block;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(216, 189, 122, 0.32);
  background: rgba(2, 7, 13, 0.82);
}

.gallery-card-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 760px);
  object-fit: contain;
  background: rgba(2, 7, 13, 0.96);
  transition: transform 220ms ease;
}

.gallery-card:hover .gallery-card-image img,
.gallery-card:focus-visible .gallery-card-image img {
  transform: scale(1.015);
}

.gallery-card-meta {
  color: #d8bd7a;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-card strong {
  display: block;
  color: #f5ead4;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.gallery-card p {
  margin: 0;
  color: rgba(245, 234, 212, 0.72);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.gallery-card-action {
  justify-self: end;
  color: #d8bd7a;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  .gallery-section {
    padding: 42px 18px 62px;
  }

  .gallery-card-image {
    min-height: 180px;
  }
}
/* FIELD WARDEN Rio intro image - 20260715-rio-intro */
.home-page .intro-panel {
  width: min(1040px, calc(100% - 44px));
  grid-template-columns: minmax(0, 1fr) minmax(170px, 260px);
  align-items: center;
  column-gap: clamp(26px, 5vw, 72px);
}

.home-page .intro-lines {
  position: relative;
  z-index: 2;
}

.home-page .intro-character {
  position: relative;
  z-index: 1;
  width: clamp(180px, 22vw, 292px);
  height: auto;
  justify-self: center;
  align-self: end;
  opacity: 0;
  transform: translateY(14px);
  animation: introCharacterIn 1400ms ease 4.05s forwards;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.68)) drop-shadow(0 0 26px rgba(216, 189, 122, 0.12));
}

.home-page .intro-character::before,
.home-page .intro-character::after {
  content: none;
}

.home-page .intro-character.is-empty {
  display: none;
}

.home-page .intro-character img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: contain;
  opacity: 0.86;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.96) 76%, transparent 100%);
}

.home-page .intro-character::selection {
  background: transparent;
}

@media (max-width: 720px) {
  .home-page .intro-panel {
    grid-template-columns: 1fr;
    width: min(620px, calc(100% - 32px));
    padding-bottom: clamp(30px, 7vw, 54px);
  }

  .home-page .intro-character {
    width: clamp(118px, 34vw, 176px);
    margin-top: -10px;
    opacity: 0;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.68));
  }

  .home-page .intro-character img {
    max-height: 30vh;
    opacity: 0.64;
  }
}
/* FIELD WARDEN section 001 readable fallback - 20260718-section001-readable */
.story-reading-page[data-section-id="section_001"] .novel-article,
.story-reading-page[data-section-id="section_001"] .novel-body {
  display: block;
  visibility: visible;
  opacity: 1;
}

.story-reading-page[data-section-id="section_001"] .novel-body {
  color: #ece6d9;
  background: transparent;
}
/* FIELD WARDEN section 001 force-readable fallback - 20260718-section001-force-readable */
.story-reading-page.section-force-readable .novel-article,
.story-reading-page.section-force-readable .novel-body,
.story-reading-page.section-force-readable .qo-observation-file,
.story-reading-page.section-force-readable .chapter-nav,
.story-reading-page[data-section-id="section_001"] .novel-article,
.story-reading-page[data-section-id="section_001"] .novel-body,
.story-reading-page[data-section-id="section_001"] .qo-observation-file,
.story-reading-page[data-section-id="section_001"] .chapter-nav {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  content-visibility: visible !important;
}

.story-reading-page.section-force-readable .novel-body,
.story-reading-page[data-section-id="section_001"] .novel-body {
  color: #ece6d9 !important;
  background: transparent !important;
}

.story-reading-page.section-force-readable .story-unlock-panel:not(.story-unlock-panel--compact),
.story-reading-page[data-section-id="section_001"] .story-unlock-panel:not(.story-unlock-panel--compact) {
  display: none !important;
}
/* FIELD WARDEN feedback form - 20260718-feedback-form */
.feedback-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(30, 49, 70, 0.48), transparent 48%), #02070d;
  color: var(--ivory);
}

.feedback-main {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 72px;
}

.feedback-hero {
  text-align: center;
  margin: 0 auto 28px;
}

.feedback-hero h1,
.feedback-thanks h1 {
  margin: 10px 0 0;
  color: #f0d99b;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: 0;
}

.feedback-hero p,
.feedback-thanks p {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(245, 234, 212, 0.82);
  line-height: 1.9;
}

.feedback-panel {
  border: 1px solid rgba(216, 189, 122, 0.42);
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.86), rgba(3, 10, 18, 0.72));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(240, 217, 155, 0.06);
  backdrop-filter: blur(18px);
  padding: clamp(22px, 4vw, 42px);
}

.feedback-form {
  display: grid;
  gap: 18px;
}

.feedback-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field span {
  color: #d8bd7a;
  font-family: var(--serif);
  font-size: 15px;
}

.feedback-field em,
.feedback-field strong {
  margin-left: 8px;
  color: rgba(245, 234, 212, 0.62);
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  width: 100%;
  border: 1px solid rgba(216, 189, 122, 0.34);
  border-radius: 0;
  background: rgba(1, 6, 12, 0.78);
  color: #f5ead4;
  font: inherit;
  line-height: 1.6;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(240, 217, 155, 0.04);
}

.feedback-field textarea {
  resize: vertical;
  min-height: 180px;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  outline: 1px solid rgba(240, 217, 155, 0.76);
  outline-offset: 2px;
  border-color: rgba(240, 217, 155, 0.72);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.feedback-submit,
.feedback-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(216, 189, 122, 0.58);
  background: rgba(7, 18, 30, 0.74);
  color: #f0d99b;
  padding: 11px 18px;
  text-decoration: none;
  appearance: none;
  padding: 0;
  cursor: pointer;
}

.feedback-submit:hover,
.feedback-return:hover,
.feedback-submit:focus-visible,
.feedback-return:focus-visible {
  border-color: rgba(240, 217, 155, 0.88);
  color: #fff0b8;
}

.feedback-note {
  margin: 4px 0 0;
  color: rgba(245, 234, 212, 0.62);
  font-size: 13px;
  line-height: 1.8;
}

.feedback-thanks {
  text-align: center;
  margin-top: 52px;
}

@media (max-width: 720px) {
  .feedback-main {
    width: min(100% - 24px, 980px);
    padding-top: 108px;
  }

  .feedback-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-submit,
  .feedback-return {
    width: 100%;
  }
}
/* FIELD WARDEN atlas map viewer - 20260718-atlas-map-viewer */
.atlas-viewer {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: clamp(34px, 5.4vw, 70px) auto clamp(30px, 5vw, 62px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(216, 189, 122, 0.48);
  background:
    linear-gradient(180deg, rgba(4, 12, 21, 0.84), rgba(2, 7, 13, 0.74)),
    radial-gradient(circle at 50% 0%, rgba(201, 167, 106, 0.12), transparent 58%);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(240, 217, 155, 0.06);
  backdrop-filter: blur(14px);
}

.atlas-viewer::before,
.atlas-viewer::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-color: rgba(216, 189, 122, 0.62);
  border-style: solid;
  pointer-events: none;
}

.atlas-viewer::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.atlas-viewer::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.atlas-viewer-heading {
  max-width: 760px;
  margin: 0 auto clamp(22px, 3.8vw, 36px);
  text-align: center;
}

.atlas-viewer-heading h2 {
  margin: 8px 0 12px;
  color: #f0d99b;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.54);
}

.atlas-viewer-heading p:last-child {
  margin: 0;
  color: rgba(245, 234, 212, 0.78);
  line-height: 1.9;
}

.atlas-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.atlas-map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 189, 122, 0.5);
  background: #02070d;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(240, 217, 155, 0.06);
}

.atlas-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, transparent 48%, rgba(2, 7, 13, 0.24) 100%);
  pointer-events: none;
}

.atlas-map-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.05) brightness(0.92);
}

.atlas-point-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.atlas-map-point {
  --x: 50;
  --y: 50;
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 11px;
  height: 11px;
  border: 1px solid rgba(240, 217, 155, 0.92);
  border-radius: 999px;
  background: radial-gradient(circle, #f0d99b 0 24%, rgba(201, 167, 106, 0.58) 25% 54%, rgba(3, 10, 18, 0.72) 55% 100%);
  box-shadow: 0 0 0 4px rgba(216, 189, 122, 0.12), 0 0 22px rgba(240, 217, 155, 0.34);
  appearance: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.atlas-map-point::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(216, 189, 122, 0.24);
  pointer-events: none;
  border-radius: 999px;
}

.atlas-map-point:hover,
.atlas-map-point:focus-visible,
.atlas-map-point.is-active {
  border-color: rgba(255, 236, 173, 1);
  box-shadow: 0 0 0 6px rgba(216, 189, 122, 0.16), 0 0 32px rgba(240, 217, 155, 0.58);
  outline: none;
  transform: translate(-50%, -50%) scale(1.08);
}

.atlas-map-point[data-type="record_mismatch"] {
  background: radial-gradient(circle, #fff0b8 0 20%, rgba(216, 189, 122, 0.45) 21% 52%, rgba(12, 18, 26, 0.8) 53% 100%);
  border-style: double;
}

.atlas-info-panel {
  min-height: 230px;
  border: 1px solid rgba(216, 189, 122, 0.42);
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.88), rgba(4, 14, 24, 0.74));
  color: rgba(245, 234, 212, 0.82);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: inset 0 0 0 1px rgba(240, 217, 155, 0.05);
}

.atlas-info-kicker {
  margin: 0 0 12px;
  color: rgba(216, 189, 122, 0.78);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.atlas-info-panel h3 {
  margin: 0 0 14px;
  color: #f0d99b;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: 0;
}

.atlas-info-panel p:last-child {
  margin: 0;
  line-height: 1.9;
}

.atlas-info-panel.is-error {
  border-color: rgba(216, 189, 122, 0.28);
}

@media (max-width: 860px) {
  .atlas-viewer {
    width: min(100% - 24px, 1180px);
    padding: 18px;
  }

  .atlas-map-shell {
    grid-template-columns: 1fr;
  }

  .atlas-info-panel {
    min-height: auto;
  }

  .atlas-map-point {
    width: 9px;
    height: 9px;
  }
}
/* FIELD WARDEN atlas map only - 20260718-atlas-map-only */
.atlas-map-only {
  width: min(1220px, calc(100% - 32px));
}

.atlas-map-only .atlas-viewer-heading {
  margin-bottom: clamp(18px, 3vw, 30px);
}

.atlas-map-only .atlas-viewer-heading h2 {
  margin-bottom: 0;
}

.atlas-map-frame-only {
  margin: 0 auto;
  max-width: 1120px;
}

.atlas-map-frame-only img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.atlas-map-only .atlas-point-layer,
.atlas-map-only .atlas-map-point,
.atlas-map-only .atlas-info-panel {
  display: none !important;
}

/* FIELD WARDEN gallery categories - 20260718-gallery-categories */
.gallery-catalog {
  padding-top: clamp(48px, 7vw, 86px);
}

.gallery-category-list {
  display: grid;
  gap: clamp(30px, 5vw, 54px);
  width: min(1180px, 100%);
  margin: 34px auto 0;
}

.gallery-loading {
  color: rgba(245, 234, 212, 0.76);
  text-align: center;
}

.gallery-category {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(216, 189, 122, 0.38);
  background:
    linear-gradient(135deg, rgba(5, 15, 27, 0.74), rgba(2, 7, 13, 0.88)),
    rgba(3, 10, 18, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(240, 217, 155, 0.08);
}

.gallery-category::before,
.gallery-category::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(216, 189, 122, 0.55);
  pointer-events: none;
}

.gallery-category::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.gallery-category::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.gallery-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(216, 189, 122, 0.26);
  padding-bottom: 12px;
}

.gallery-category-head h3 {
  margin: 0;
  color: #f3ead8;
  font-family: "Cormorant Garamond", "Yu Mincho", serif;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 500;
}

.gallery-category-en {
  color: #d8bd7a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-category .gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
  grid-auto-flow: row;
  gap: 18px;
  margin-top: 0;
}

.gallery-category .gallery-card {
  min-height: 100%;
  align-self: start;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.gallery-category .gallery-card-image {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 189, 122, 0.08), transparent 44%),
    linear-gradient(145deg, rgba(11, 24, 36, 0.92), rgba(2, 7, 13, 0.98));
}

#gallery-characters .gallery-card-image {
  aspect-ratio: 3 / 4;
}

#gallery-qo-materials .gallery-card-image,
#gallery-archive-materials .gallery-card-image {
  aspect-ratio: 16 / 10;
}

#gallery-world-atlas .gallery-card-image,
#gallery-story-scenes .gallery-card-image {
  aspect-ratio: 16 / 9;
}

.gallery-category .gallery-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.gallery-pending {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border: 1px dashed rgba(216, 189, 122, 0.38);
  background: rgba(2, 7, 13, 0.48);
  color: rgba(245, 234, 212, 0.74);
}

.gallery-pending-label {
  color: #d8bd7a;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .gallery-category {
    padding: 20px 16px;
  }

  .gallery-category-head {
    display: block;
  }

  .gallery-category-en {
    display: block;
    margin-bottom: 6px;
  }
}

/* FIELD WARDEN gallery mobile fit - 20260718-gallery-categories */
.subpage-gallery .hero-center {
  width: min(920px, calc(100% - 32px));
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

.subpage-gallery .hero-center h1,
.gallery-section-head h2 {
  max-width: 100%;
  letter-spacing: 0;
  text-wrap: balance;
}

.subpage-gallery .hero-center h1 {
  font-size: clamp(3.15rem, 12.5vw, 7.2rem);
}

.gallery-section-head h2 {
  font-size: clamp(2rem, 8vw, 3.4rem);
}

@media (max-width: 560px) {
  .subpage-gallery .hero-center {
    width: min(94vw, 520px);
    padding-inline: 10px;
  }

  .subpage-gallery .hero-center h1 {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }

  .subpage-gallery .hero-subtitle,
  .subpage-gallery .hero-quote {
    max-width: 100%;
  }
}

/* FIELD WARDEN gallery strict mobile fit - 20260718-gallery-categories */
@media (max-width: 560px) {
  .subpage-gallery .hero-center h1 {
    font-size: clamp(2.35rem, 10vw, 3rem) !important;
    letter-spacing: 0 !important;
    line-height: 1.04;
  }

  .subpage-gallery .gallery-section-head h2 {
    font-size: clamp(1.72rem, 7.2vw, 2.35rem) !important;
    letter-spacing: 0 !important;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
}

/* FIELD WARDEN gallery h2 wrap fix - 20260718-gallery-categories */
@media (max-width: 560px) {
  .subpage-gallery .gallery-section-head h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
    font-size: clamp(1.42rem, 6.2vw, 2rem) !important;
    line-height: 1.18;
  }
}

/* FIELD WARDEN gallery fixed-card layout - 20260719-gallery-layout-replace */
.gallery-card,
.gallery-card * {
  min-width: 0;
}

.gallery-card strong,
.gallery-card p,
.gallery-card-action {
  overflow-wrap: anywhere;
}

.gallery-card strong {
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .gallery-category .gallery-card {
    padding: 16px;
  }

  .gallery-card strong {
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .gallery-card-action {
    justify-self: start;
  }
}

/* Speaker name toggle */
.speaker-toggle-panel,
#speaker-toggle-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  width: min(840px, 100%);
  min-height: 128px;
  margin: 24px auto 30px;
  padding: 20px;
  border: 1px solid rgba(240, 217, 155, 0.78);
  background:
    linear-gradient(135deg, rgba(9, 24, 42, 0.98), rgba(4, 10, 18, 0.9)),
    rgba(5, 12, 21, 0.92);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(240, 217, 155, 0.08) inset;
  color: rgba(245, 234, 212, 0.96);
}

.speaker-toggle-title {
  color: #f0d99b;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.speaker-toggle-help {
  margin-top: 8px;
  color: rgba(245, 234, 212, 0.82);
  font-size: 0.95rem;
  line-height: 1.75;
}

.speaker-toggle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.speaker-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(216, 189, 122, 0.58);
  border-radius: 0;
  background: rgba(8, 20, 34, 0.76);
  color: #f5ead4;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.speaker-toggle-button:hover,
.speaker-toggle-button:focus-visible {
  border-color: rgba(240, 217, 155, 0.95);
  background: rgba(18, 37, 58, 0.92);
  outline: none;
}

.speaker-toggle-button.is-active {
  border-color: rgba(240, 217, 155, 1);
  background: rgba(216, 189, 122, 0.22);
  color: #f0d99b;
  box-shadow: inset 0 0 0 1px rgba(240, 217, 155, 0.18), 0 0 24px rgba(216, 189, 122, 0.18);
}

.speaker-toggle-status {
  margin-top: 12px;
  color: rgba(245, 234, 212, 0.76);
  font-size: 0.92rem;
  line-height: 1.6;
}

.novel-body p.dialogue {
  position: relative;
}

.speaker-label {
  display: none;
  margin-right: 0.72em;
  padding: 0.12em 0.54em 0.16em;
  border: 1px solid rgba(216, 189, 122, 0.46);
  border-radius: 999px;
  background: rgba(7, 18, 31, 0.78);
  color: #d8bd7a;
  font-size: 0.78em;
  line-height: 1.35;
  vertical-align: 0.08em;
  white-space: nowrap;
}

body.show-speaker-names .novel-body p[data-speaker] .speaker-label {
  display: inline-block;
}

.speaker-name-index-note {
  width: min(760px, 100%);
  margin: 18px auto 0;
  padding: 12px 14px;
  border-top: 1px solid rgba(216, 189, 122, 0.32);
  border-bottom: 1px solid rgba(216, 189, 122, 0.2);
  color: rgba(245, 234, 212, 0.76);
  font-size: 0.94rem;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 640px) {
  .speaker-toggle-panel,
  #speaker-toggle-panel {
    width: 100%;
    min-height: 132px;
    margin: 18px auto 24px;
    padding: 16px;
  }

  .speaker-toggle-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .speaker-toggle-button {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 10px 8px;
  }

  body.show-speaker-names .novel-body p[data-speaker] .speaker-label {
    display: table;
    margin: 0 0 0.34em;
  }
}

/* FIELD WARDEN chapter speaker controls - 20260720-speaker-index-controls */
.story-chapter-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}

.story-chapter-entry .story-chapter-row {
  margin-top: 0;
  min-width: 0;
}

.section-speaker-controls {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 72px;
  height: auto !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 189, 122, 0.56);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(4, 13, 24, 0.94), rgba(14, 28, 45, 0.88));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(240, 217, 155, 0.16);
  color: #f5ead4;
}

.section-speaker-label {
  color: #f0d99b;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  white-space: nowrap;
}

.section-speaker-controls .speaker-toggle-button {
  min-width: 76px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.section-speaker-controls .speaker-toggle-status {
  flex-basis: 100%;
  margin: 2px 0 0;
  text-align: right;
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .story-chapter-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-speaker-controls {
    justify-content: flex-start;
    min-height: 0;
  }

  .section-speaker-controls .speaker-toggle-status {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .section-speaker-controls .speaker-toggle-button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .section-speaker-label,
  .section-speaker-controls .speaker-toggle-status {
    flex-basis: 100%;
  }
}
/* FIELD WARDEN chapter section background images - 20260721 */
.story-section-background {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: #050814;
}

.story-section-background::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(3, 6, 15, 0.66), rgba(3, 6, 15, 0.82)),
    radial-gradient(circle at 50% 20%, rgba(216, 189, 122, 0.16), transparent 42%),
    var(--story-section-background);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}

.story-section-background::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 20, 0.76), rgba(5, 8, 20, 0.34) 48%, rgba(5, 8, 20, 0.76)),
    radial-gradient(circle at 50% 75%, rgba(5, 8, 20, 0.18), rgba(5, 8, 20, 0.72) 72%);
}

.story-section-background .novel-article,
.story-section-background .qo-observation-file {
  border: 1px solid rgba(198, 166, 91, 0.18);
  background: linear-gradient(180deg, rgba(7, 13, 27, 0.78), rgba(5, 8, 20, 0.88));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
}

.story-section-background .novel-article {
  padding: clamp(22px, 4vw, 44px);
}

.story-section-background .novel-body {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.58);
}

@media (max-width: 720px) {
  .story-section-background::before {
    background-position: center top, center, center top;
  }

  .story-section-background .novel-article {
    padding: 20px 16px;
  }
}
