:root {
  --bg-dark: #1a1a0e;
  --text-main: #f5e6c8;
  --ink-on-parchment: #2a1c0f;
  --accent-gold: #8b6914;
  --ornament-gold: rgba(198, 168, 98, 0.72);
  --accent-red: #c0392b;
  --card-bg: rgba(26, 58, 26, 0.85);
  --dialogue: #e74c3c;
  --nav-bg: #12311f;
  --nav-bg-scrolled: #12311f;
  --border: rgba(245, 230, 200, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', 'Noto Serif JP', serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image:
    radial-gradient(ellipse at 18% 24%, rgba(223, 183, 111, 0.08) 0%, transparent 52%),
    radial-gradient(ellipse at 84% 78%, rgba(94, 61, 26, 0.12) 0%, transparent 56%),
    linear-gradient(180deg, rgba(92, 66, 34, 0.16) 0%, rgba(72, 50, 24, 0.2) 100%),
    repeating-linear-gradient(
      40deg,
      rgba(255, 236, 199, 0.014) 0px,
      rgba(255, 236, 199, 0.014) 1px,
      transparent 1px,
      transparent 3px
    ),
    url('../images/back.webp');
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat-y;
  background-position: center top, center bottom, center, center, center top;
  background-size: auto, auto, auto, auto, 100% auto;
  min-height: 100vh;
}

a {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  text-decoration-color: currentColor;
  font-weight: 700;
  font-style: italic;
}

a:hover {
  color: #fff5db;
  text-decoration-color: var(--accent-gold);
}

a:visited {
  color: #f0dfba;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: none;
  border-bottom: none;
  transition: background 0.28s ease;
}

.site-header.scrolled {
  background: var(--nav-bg-scrolled);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(130, 98, 35, 0.35), rgba(226, 195, 114, 0.95), rgba(130, 98, 35, 0.35));
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.logo {
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  margin-left: -10px;
}

.logo img {
  display: block;
  height: clamp(34px, 4vw, 52px);
  width: auto;
  max-width: 260px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (min-width: 769px) {
  .nav-main {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, max-content);
    grid-template-rows: repeat(2, auto);
    column-gap: 16px;
    row-gap: 6px;
    justify-content: start;
    align-content: center;
  }

  .nav-main a[data-nav-key='home'] { grid-column: 1; grid-row: 1; }
  .nav-main a[data-nav-key='characters'] { grid-column: 2; grid-row: 1; }
  .nav-main a[data-nav-key='tokenomics'] { grid-column: 3; grid-row: 1; }
  .nav-main a[data-nav-key='roadmap'] { grid-column: 4; grid-row: 1; }

  .nav-main a[data-nav-key='howtobuy'] { grid-column: 1; grid-row: 2; }
  .nav-main a[data-nav-key='nft'] { grid-column: 2; grid-row: 2; }
  .nav-main a[data-nav-key='goods'] { grid-column: 3; grid-row: 2; }
  .nav-main a[data-nav-key='meme'] { grid-column: 4; grid-row: 2; }
  .nav-main a[data-nav-key='contact'] { grid-column: 5; grid-row: 2; }
}

.nav-main a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}

.nav-main a.active,
.nav-main a:hover {
  border-bottom-color: var(--accent-gold);
}

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

.lang-toggle,
.bgm-toggle,
.hamburger {
  border: 1px solid var(--border);
  background: rgba(30, 30, 14, 0.8);
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
}

.lang-toggle {
  padding: 6px 8px;
  min-width: 44px;
}

.lang-toggle.active {
  border-color: var(--accent-gold);
  color: #ffe8a8;
  text-decoration: underline;
}

.bgm-toggle {
  padding: 6px 10px;
  min-width: 84px;
  font-size: 0.78rem;
}

.bgm-toggle.disabled {
  opacity: 0.45;
  cursor: default;
}

.hamburger {
  display: none;
  padding: 5px 8px;
  font-size: 1.1rem;
  line-height: 1;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.45);
}

main {
  padding-top: 72px;
}

.section {
  padding: 72px 0;
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.03em;
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--ink-on-parchment);
}

.center-title {
  text-align: center;
}

.section-subtitle {
  margin: 0 0 24px;
  color: rgba(42, 28, 15, 0.86);
}

.hero {
  padding: 0 0 30px;
}

.hero-content {
  width: min(920px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.hero h2 {
  font-size: clamp(1rem, 2.3vw, 1.4rem);
  margin: 12px 0 24px;
  color: var(--ink-on-parchment);
  font-weight: 700;
}

.hero h2.hero-tagline {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin: 12px 0 24px;
  font-weight: 700;
  color: var(--ink-on-parchment);
}

.hero-image-wrap {
  margin: 0 0 6px;
  position: relative;
}

.hero-image-wrap::before,
.hero-image-wrap::after {
  content: none;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
}

.hero-media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 0;
}

.hero-image-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.info-card,
.ca-card,
.card,
.goal-card,
.step-card,
.contact-card,
.story-panel,
.disclaimer-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0;
}

.info-card,
.ca-card {
  margin: 16px auto;
  padding: 16px;
  text-align: left;
  width: min(760px, 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 14px;
  font-size: 0.97rem;
}

.info-card-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: center;
  gap: 14px;
}

.info-coin-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 22px;
}

.info-coin-image {
  width: min(200px, 100%);
  height: auto;
  display: block;
}

.label-red {
  color: var(--accent-red);
  font-weight: 700;
}

.ca-main {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  margin: 10px 0;
}

.ca-card-simple {
  text-align: center;
}

.ca-card-simple .ca-main {
  color: var(--text-main);
}

.ca-card-simple .ca-main-label {
  font-size: clamp(1.02rem, 2.6vw, 1.45rem);
  font-weight: 700;
}

.small-alert {
  color: var(--accent-red);
  font-size: 0.88rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.btn,
button.btn,
a.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid rgba(245, 230, 200, 0.5);
  text-decoration: none;
  color: var(--text-main);
  background: linear-gradient(125deg, rgba(139, 105, 20, 0.35), rgba(26, 58, 26, 0.6));
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  border-color: var(--accent-gold);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.page-hero {
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #1a1a0e;
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
}

.page-hero > .container {
  display: none;
}

.page-hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4.4vw, 3.3rem);
  margin: 0;
  color: var(--text-main);
}

.page-hero p {
  margin: 12px 0 0;
  color: var(--text-main);
}

/* Text directly on parchment background should use dark ink */
.section .container > p,
.section .container > h3,
.section .container > ul,
.section .container > ol {
  color: var(--ink-on-parchment);
}

.section .container > p a,
.section .container > ul a,
.section .container > ol a {
  color: #3a2512;
  text-decoration-color: rgba(58, 37, 18, 0.45);
}

.storyboard {
  margin: 20px auto 0;
}

.storybook-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border: 3px solid #8b6914;
  outline: 1px solid rgba(139, 105, 20, 0.3);
  outline-offset: 6px;
  box-shadow:
    0 0 0 8px #1a1a0e,
    0 0 0 10px #8b6914,
    0 0 40px rgba(0, 0, 0, 0.8),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
  background: #1a1a0e;
}

.storybox {
  display: flex;
  flex-direction: column;
}

.scene-image-wrap,
.story-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.scene-image-wrap img,
.story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.scene-image-wrap img.is-visible,
.story-visual img.is-visible {
  opacity: 1;
}

.scene-image-wrap::after,
.story-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 8, 3, 0.6) 100%);
  pointer-events: none;
}

.scene-image-wrap .corner {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 3;
}

.corner-tl { top: 8px; left: 8px; border-top: 2px solid #8b6914; border-left: 2px solid #8b6914; }
.corner-tr { top: 8px; right: 8px; border-top: 2px solid #8b6914; border-right: 2px solid #8b6914; }
.corner-bl { bottom: 8px; left: 8px; border-bottom: 2px solid #8b6914; border-left: 2px solid #8b6914; }
.corner-br { bottom: 8px; right: 8px; border-bottom: 2px solid #8b6914; border-right: 2px solid #8b6914; }

.corner::before {
  content: '';
  position: absolute;
  color: #8b6914;
  font-size: 10px;
  top: -2px;
  left: -2px;
}

.scene-text-area,
.story-dialog {
  position: relative;
  background: linear-gradient(to bottom, rgba(20, 15, 5, 0.97), rgba(15, 10, 3, 0.99));
  padding: 20px 32px 16px;
  border-top: 1px solid rgba(139, 105, 20, 0.5);
  min-height: 240px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
}

.scene-text-area::before,
.story-dialog::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(139, 105, 20, 0.6) 20%, rgba(139, 105, 20, 0.6) 80%, transparent);
  margin-bottom: 14px;
}

.scene-speaker,
.speaker-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #8b6914;
  text-transform: uppercase;
  margin-bottom: 6px;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-speaker::before,
.scene-speaker::after,
.speaker-name::before,
.speaker-name::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(139, 105, 20, 0.4));
}

.scene-speaker::after,
.speaker-name::after {
  background: linear-gradient(to left, transparent, rgba(139, 105, 20, 0.4));
}

.scene-text,
.story-text {
  font-family: 'Lora', 'Noto Serif JP', serif;
  font-size: 16px;
  line-height: 1.85;
  color: #f0ddb8;
  min-height: 3.7em;
  margin: 0;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.scene-text.is-dialogue,
.story-text.dialogue {
  color: #e74c3c;
  font-style: italic;
}

.scene-text.is-emphasis,
.story-text.emphasis {
  color: #e74c3c;
  font-size: 20px;
  font-family: 'Cinzel Decorative', serif;
  text-align: center;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.scene-controls,
.story-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 24px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 105, 20, 0.2);
  width: 100%;
}

.story-actions {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.scene-counter {
  font-family: 'Cinzel Decorative', serif;
  font-size: 10px;
  color: rgba(232, 204, 132, 0.9);
  letter-spacing: 2px;
  justify-self: start;
  align-self: end;
  padding-bottom: 2px;
}

.scene-next-btn,
.story-back,
.story-next {
  font-family: 'Cinzel Decorative', serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #f0ddb8;
  background: transparent;
  border: 1px solid rgba(139, 105, 20, 0.5);
  padding: 7px 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 2px 2px 0 rgba(139, 105, 20, 0.3), inset -2px -2px 0 rgba(139, 105, 20, 0.3);
}

.scene-next-btn:hover,
.story-back:hover,
.story-next:hover {
  background: rgba(139, 105, 20, 0.15);
  border-color: #8b6914;
  color: #8b6914;
  box-shadow:
    0 0 12px rgba(139, 105, 20, 0.3),
    inset 2px 2px 0 rgba(139, 105, 20, 0.5),
    inset -2px -2px 0 rgba(139, 105, 20, 0.5);
}

.story-dialog.is-chapter {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 40px 32px;
  text-align: center;
  background: rgba(10, 8, 3, 0.96);
  min-height: 200px;
}

.story-dialog.is-chapter .speaker-name,
.story-dialog.is-chapter .story-text {
  display: none;
}

.story-dialog.is-chapter .story-controls {
  align-self: end;
}

.chapter-title-scene {
  display: none;
}

.chapter-label {
  font-family: 'Cinzel Decorative', serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: #e8c775;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(232, 199, 117, 0.35);
}

.chapter-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(26px, 3.2vw, 36px);
  color: #f6e8c8;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(246, 232, 200, 0.24);
}

.story-dialog.is-chapter::before,
.story-dialog.is-chapter::after {
  content: '';
  width: min(280px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 199, 117, 0.75), transparent);
  margin: 4px 0;
}

@keyframes sceneFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.scene-text.typing-start,
.story-text.typing-start {
  animation: sceneFadeIn 0.4s ease forwards;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #8b6914;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

.char-card {
  padding: 14px;
  transition: transform 0.25s ease;
}

.char-card:hover {
  transform: translateY(-4px);
}

.char-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 10px;
  border: 1px solid rgba(245, 230, 200, 0.18);
}

.char-role {
  color: rgba(245, 230, 200, 0.83);
  font-size: 0.94rem;
}

.char-catch {
  color: #ffe4a0;
  font-style: italic;
  margin: 8px 0;
}

.allocation-manuscript {
  margin-top: 18px;
  padding: clamp(18px, 3.2vw, 30px);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 236, 195, 0.08), transparent 36%),
    radial-gradient(circle at 90% 88%, rgba(255, 229, 176, 0.07), transparent 34%),
    rgba(38, 26, 12, 0.62);
  border: 1px solid rgba(171, 133, 66, 0.9);
  outline: 1px solid rgba(217, 183, 109, 0.58);
  outline-offset: -7px;
  box-shadow: inset 0 0 0 1px rgba(67, 47, 19, 0.95);
  position: relative;
}

.allocation-manuscript::before,
.allocation-manuscript::after {
  content: none;
  display: none;
}

.allocation-title {
  margin: 0 0 24px;
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  letter-spacing: 0.04em;
  color: #f3e6ca;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.allocation-bar-wrap {
  position: relative;
  display: flex;
  width: 100%;
  height: clamp(76px, 10vw, 108px);
  border: 1px solid rgba(43, 28, 12, 0.95);
  box-shadow: inset 0 0 0 1px rgba(243, 214, 151, 0.18);
  overflow: visible;
}

.allocation-segment {
  height: 100%;
  min-width: 0;
  border-right: 1px solid rgba(40, 27, 13, 0.8);
  position: relative;
}

.allocation-segment:last-child {
  border-right: 0;
}

.allocation-fair {
  flex: 0 0 98%;
  background: #c8a96e;
}

.allocation-ops {
  flex: 0 0 1%;
  background: #a0522d;
}

.allocation-airdrop {
  flex: 0 0 0.5%;
  background: #7a8c5e;
}

.allocation-liquidity {
  flex: 0 0 0.5%;
  background: #8b6347;
}

.allocation-label {
  position: absolute;
  font-family: 'Cinzel Decorative', serif;
  color: #f6edd8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.allocation-label-large {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1rem, 2.6vw, 2rem);
  white-space: nowrap;
}

.allocation-legend-table {
  width: min(760px, 100%);
  margin-top: 14px;
  border-collapse: collapse;
  background: rgba(35, 24, 12, 0.48);
}

.allocation-legend-table td {
  border: 1px solid rgba(227, 197, 125, 0.45);
  padding: 10px 14px;
  font-family: 'Lora', 'Noto Serif JP', serif;
  color: #f1e5cd;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
}

.allocation-legend-table td:last-child {
  width: 128px;
  text-align: right;
  font-weight: 700;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  border: 1px solid rgba(33, 22, 11, 0.75);
  vertical-align: -2px;
}

.legend-dot-fair {
  background: #c8a96e;
}

.legend-dot-ops {
  background: #a0522d;
}

.legend-dot-airdrop {
  background: #7a8c5e;
}

.legend-dot-liquidity {
  background: #8b6347;
}

.legend-dot-lock {
  background: #6f5a33;
}

.allocation-total {
  margin: 18px 0 0;
  text-align: right;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.08rem, 2.8vw, 2rem);
  color: #f6e8cb;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.allocation-scale-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: rgba(244, 228, 194, 0.86);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid rgba(245, 230, 200, 0.26);
  padding: 8px 10px;
  text-align: left;
}

.table th {
  background: rgba(68, 48, 24, 0.42);
}

.list-clean {
  margin: 14px 0;
  padding-left: 18px;
}

.list-clean li {
  margin: 8px 0;
}

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

.roadmap-categories {
  margin-bottom: 16px;
  padding: 14px;
}

.roadmap-categories .section-title {
  margin-bottom: 10px;
  color: var(--text-main);
}

.roadmap-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roadmap-lead {
  margin: 0 0 12px;
  color: var(--text-main);
  font-size: 1rem;
}

.roadmap-category-strip span {
  border: 1px solid rgba(198, 168, 98, 0.68);
  background: rgba(24, 50, 24, 0.62);
  color: var(--text-main);
  padding: 6px 10px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.goal-card {
  padding: 14px;
}

.goal-card h3 {
  margin-top: 0;
}

.goal-item {
  margin: 12px 0;
}

.goal-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(245, 230, 200, 0.15);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.progress-bar-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to right,
    rgba(245, 230, 200, 0.18) 0,
    rgba(245, 230, 200, 0.18) 1px,
    transparent 1px,
    transparent 10%
  );
  pointer-events: none;
  z-index: 2;
}

.progress-bar {
  position: relative;
  z-index: 1;
  height: 100%;
  background: linear-gradient(90deg, #8b6914, #c0392b);
  border-radius: 0;
  transition: width 1s ease;
}

.progress-note {
  margin: 6px 0 0;
  font-size: 0.84rem;
  opacity: 0.86;
}

.steps {
  display: grid;
  gap: 14px;
}

.step-card {
  padding: 14px;
}

.step-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: start;
}

.step-card-media {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.step-card-media img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.launchpad-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
}

.launchpad-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.step-num {
  font-family: 'Cinzel Decorative', serif;
  color: #ffe0a1;
}

.goods-info-card {
  padding: 16px;
  margin-bottom: 18px;
}

.goods-info-title {
  margin: 0 0 12px;
  color: var(--text-main);
}

.goods-info-card p {
  margin: 0 0 10px;
  line-height: 1.72;
}

.goods-subtitle {
  margin: 12px 0 8px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: #ffe0a1;
}

.goods-category-title {
  margin: 0 0 12px;
  font-family: 'Cinzel Decorative', serif;
  color: var(--text-main);
  text-align: center;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.04em;
}

.goods-category-title-sub {
  margin-top: 26px;
}

.goods-series-note {
  padding: 14px 16px;
  margin-bottom: 12px;
}

.goods-series-note p {
  margin: 0 0 10px;
  line-height: 1.72;
}

.goods-series-note ul {
  margin: 0 0 10px 20px;
  padding: 0;
}

.goods-series-note li {
  margin: 0 0 6px;
}

.goods-shop-grid {
  display: flex;
  gap: 18px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  max-width: 1120px;
  margin: 0 auto;
}

.goods-carousel {
  position: relative;
  margin: 0 auto;
}

.goods-shop-grid::-webkit-scrollbar {
  height: 10px;
}

.goods-shop-grid::-webkit-scrollbar-track {
  background: rgba(26, 58, 26, 0.32);
}

.goods-shop-grid::-webkit-scrollbar-thumb {
  background: rgba(245, 230, 200, 0.34);
  border-radius: 999px;
}

.goods-shop-slot {
  flex: 0 0 clamp(260px, 32vw, 360px);
  padding: 12px 12px 14px;
  min-height: 0;
  scroll-snap-align: start;
}

.goods-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 235, 210, 0.88);
  background: rgba(20, 20, 20, 0.72);
  color: #fff4da;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  border-radius: 999px;
  z-index: 8;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.goods-carousel-btn:hover {
  background: rgba(35, 35, 35, 0.9);
}

.goods-carousel-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.goods-carousel-prev {
  left: -12px;
}

.goods-carousel-next {
  right: -12px;
}

.goods-shop-slot-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  height: auto;
  overflow: visible;
}

.goods-shop-slot .shopify-buy__product {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.goods-shop-slot .shopify-buy__layout-horizontal,
.goods-shop-slot .shopify-buy__product-img-wrapper,
.goods-shop-slot .shopify-buy__layout-vertical {
  width: 100% !important;
  max-width: 100% !important;
}

.goods-shop-slot .shopify-buy__product-img-wrapper {
  margin-bottom: 12px !important;
}

.goods-shop-slot .shopify-buy__layout-vertical {
  display: block !important;
}

.goods-shop-slot .shopify-buy__product__variant-img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.goods-shop-slot .shopify-buy__btn {
  background: #6b1e2f !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 235, 210, 0.9) !important;
  border-radius: 0 !important;
  letter-spacing: 0.02em !important;
}

.goods-shop-slot .shopify-buy__btn:hover,
.goods-shop-slot .shopify-buy__btn:focus {
  background: #531625 !important;
  color: #ffffff !important;
}

.goods-shop-slot .shopify-buy__btn-wrapper {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto 8px !important;
}

.goods-shop-slot .shopify-buy__btn-wrapper .shopify-buy__btn {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 190px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.goods-shop-slot .shopify-buy__btn {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.goods-shop-slot .shopify-buy__product-form,
.goods-shop-slot form[class*='shopify-buy'] {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 8px;
}

.goods-shop-slot .shopify-buy__product,
.goods-shop-slot .shopify-buy__product * {
  color: #f5e6c8 !important;
}

.goods-shop-slot .shopify-buy__product-title,
.goods-shop-slot .shopify-buy__product__title,
.goods-shop-slot .shopify-buy__product p,
.goods-shop-slot .shopify-buy__product label,
.goods-shop-slot .shopify-buy__product .shopify-buy__product__variant-title,
.goods-shop-slot .shopify-buy__product .shopify-buy__option-select__label,
.goods-shop-slot .shopify-buy__product .shopify-buy__product__actual-price,
.goods-shop-slot .shopify-buy__product .shopify-buy__product__compare-price {
  color: var(--text-main) !important;
}

.goods-shop-slot .shopify-buy__product__title,
.goods-shop-slot .shopify-buy__product-title,
.goods-shop-slot .shopify-buy__product__price,
.goods-shop-slot .shopify-buy__product__actual-price,
.goods-shop-slot .shopify-buy__product__compare-price,
.goods-shop-slot .shopify-buy__option-select__label,
.goods-shop-slot .shopify-buy__quantity,
.goods-shop-slot .shopify-buy__product-description,
.goods-shop-slot .shopify-buy__product-variant-title,
.goods-shop-slot .shopify-buy__select-icon {
  color: #f5e6c8 !important;
}

.goods-shop-slot .shopify-buy__product__title,
.goods-shop-slot .shopify-buy__product-title {
  margin-top: 8px !important;
  margin-bottom: 6px !important;
  font-size: 1.45rem !important;
  line-height: 1.2 !important;
}

.goods-shop-slot .shopify-buy__product__actual-price {
  font-size: 1.7rem !important;
  margin-bottom: 6px !important;
}

.goods-shop-slot .shopify-buy__product select,
.goods-shop-slot .shopify-buy__option-select select,
.goods-shop-slot .shopify-buy__product option {
  color: #1c1c1c !important;
}

.goods-shop-slot [class*='previous'],
.goods-shop-slot [class*='next'],
.goods-shop-slot button[aria-label*='Previous'],
.goods-shop-slot button[aria-label*='Next'],
.goods-shop-slot button[aria-label*='previous'],
.goods-shop-slot button[aria-label*='next'] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border: 1px solid rgba(255, 235, 210, 0.92) !important;
  background: rgba(20, 20, 20, 0.55) !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 5 !important;
}

.goods-shop-slot [class*='previous'] img,
.goods-shop-slot [class*='next'] img,
.goods-shop-slot button[aria-label*='Previous'] img,
.goods-shop-slot button[aria-label*='Next'] img,
.goods-shop-slot button[aria-label*='previous'] img,
.goods-shop-slot button[aria-label*='next'] img {
  display: none !important;
}

.goods-shop-slot .shopify-buy__product-img-wrapper button img,
.goods-shop-slot .main-image-wrapper button img {
  display: none !important;
}

.goods-shop-slot .shopify-buy__product-img-wrapper button,
.goods-shop-slot .main-image-wrapper button {
  display: none !important;
}

.goods-shop-slot .shopify-buy__product-img-wrapper button::before,
.goods-shop-slot .main-image-wrapper button::before {
  content: none !important;
}

.goods-shop-slot [class*='previous']::before,
.goods-shop-slot button[aria-label*='Previous']::before,
.goods-shop-slot button[aria-label*='previous']::before {
  content: '‹';
  color: #fff4da;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.goods-shop-slot [class*='next']::before,
.goods-shop-slot button[aria-label*='Next']::before,
.goods-shop-slot button[aria-label*='next']::before {
  content: '›';
  color: #fff4da;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.investor-intro-card {
  padding: 16px;
  margin-bottom: 18px;
}

.investor-intro-title {
  margin: 0 0 10px;
  color: var(--text-main);
}

.investor-intro-card p {
  margin: 0;
  line-height: 1.72;
}

.investor-download-row {
  justify-content: flex-start;
  margin-top: 18px;
}

.investor-deck {
  display: grid;
  gap: 22px;
}

.investor-slide {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px 12px 14px;
}

.investor-slide-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 1px solid rgba(245, 230, 200, 0.24);
  overflow: hidden;
}

.investor-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.investor-slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 34, 17, 0.92), rgba(37, 56, 27, 0.92));
  color: #fff4da;
  letter-spacing: 0.02em;
}

.investor-slide-placeholder strong {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
}

.investor-slide-placeholder span {
  font-size: 0.96rem;
  opacity: 0.82;
}

.investor-slide-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: rgba(245, 230, 200, 0.82);
}

.investor-slide.is-loaded .investor-slide-placeholder {
  opacity: 0;
  pointer-events: none;
}

.investor-slide.is-missing .investor-slide-img {
  opacity: 0;
}

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

.meme-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  border: 1px solid rgba(245, 230, 200, 0.2);
  border-radius: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

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

.nft-collection-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  padding: 18px;
  text-decoration: none;
}

.nft-collection-label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9c58e;
  margin-bottom: 10px;
}

.nft-collection-name {
  display: block;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: var(--text-main);
}

.nft-collection-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #f0dfba;
}

.nft-image-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.nft-collection-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.nft-collection-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.nft-collection-copy {
  padding: 0 2px;
  color: #111111;
}

.nft-collection-kicker {
  margin-bottom: 8px;
  color: #111111;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nft-collection-title {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  color: #111111;
}

.nft-collection-desc {
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #111111;
}

.nft-image-link {
  display: block;
  padding: 10px;
  border: 3px solid #d9c58e;
  background: rgba(42, 66, 30, 0.16);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nft-image-link:hover {
  transform: translateY(-2px);
  border-color: #f0dfba;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.12) inset;
}

.nft-image-link img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.55);
  text-align: center;
  font-size: 0.86rem;
}

.media-list a {
  display: block;
  margin: 8px 0;
}

.media-kit-grid {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.media-kit-item {
  display: block;
  border: 1px solid rgba(245, 230, 200, 0.2);
  text-decoration: none;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.media-kit-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.media-kit-name {
  display: block;
  padding: 8px 10px;
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.media-kit-policy {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: 0.94rem;
  line-height: 1.72;
}

.site-footer {
  border-top: none;
  padding: 18px 0 22px;
  margin-top: 36px;
  background: #12311f;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(130, 98, 35, 0.35), rgba(226, 195, 114, 0.95), rgba(130, 98, 35, 0.35));
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.footer-center {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.disclaimer-toggle {
  border: 1px solid var(--border);
  background: rgba(20, 30, 14, 0.9);
  color: var(--text-main);
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 0;
}

/* Green frame cards: subtle gold ornamental outer frame */
.info-card,
.ca-card,
.card:not(.token-card),
.goal-card,
.step-card,
.contact-card,
.disclaimer-panel {
  position: relative;
}

.info-card::after,
.ca-card::after,
.card:not(.token-card)::after,
.goal-card::after,
.step-card::after,
.contact-card::after,
.disclaimer-panel::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--ornament-gold);
  pointer-events: none;
}

.disclaimer-panel {
  margin-top: 10px;
  padding: 12px;
  display: none;
  font-size: 0.9rem;
  line-height: 1.65;
}

.disclaimer-panel.open {
  display: block;
}

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .characters-grid,
  .gallery-grid,
  .media-kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goods-shop-slot {
    flex-basis: clamp(250px, 55vw, 330px);
  }

  .goods-carousel-prev {
    left: -8px;
  }

  .goods-carousel-next {
    right: -8px;
  }

  .nft-collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nft-collection-stack {
    gap: 28px;
  }

  .nft-collection-title {
    font-size: clamp(1.55rem, 4vw, 2.15rem);
  }

  .nft-collection-desc {
    font-size: 0.98rem;
  }

  .nft-image-links {
    gap: 14px;
  }

  .nft-image-link {
    padding: 8px;
    border-width: 2px;
  }
}

@media (max-width: 768px) {
  .characters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .characters-grid.fade-in {
    opacity: 1;
    transform: none;
  }

  .char-card {
    padding: 12px;
  }

  .char-card h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
  }

  .char-role,
  .char-catch,
  .char-card p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .allocation-manuscript {
    padding: 16px 14px;
  }

  .allocation-title {
    margin-bottom: 16px;
  }

  .allocation-bar-wrap {
    height: 70px;
  }

  .allocation-label-large {
    font-size: clamp(0.86rem, 3.3vw, 1.06rem);
  }

  .allocation-legend-table {
    margin-top: 14px;
  }

  .allocation-legend-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .allocation-legend-table td:last-child {
    width: 78px;
  }

  .allocation-total {
    margin-top: 14px;
    font-size: 1.06rem;
  }

  .nav-wrap {
    min-height: 64px;
  }

  .step-card-inner {
    grid-template-columns: 1fr;
  }

  .step-card-media img {
    max-width: 180px;
  }

  main {
    padding-top: 64px;
  }

  .hamburger {
    display: inline-block;
  }

  .nav-main {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 20, 10, 0.97);
    padding: 14px;
    gap: 10px;
    border-bottom: 1px solid rgba(245, 230, 200, 0.16);
    z-index: 950;
  }

  .nav-main.open {
    display: flex;
  }

  .nav-main a {
    font-size: 0.92rem;
    padding: 4px 0;
  }

  .mobile-overlay.open {
    display: block;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-center,
  .footer-right {
    justify-content: center;
  }

  .info-grid {
    grid-template-columns: 104px 1fr;
    font-size: 0.9rem;
  }

  .info-card-layout {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
    align-items: center;
  }

  .info-coin-image {
    width: 112px;
    max-width: 112px;
  }

  .info-coin-wrap {
    justify-content: flex-end;
    padding-right: 10px;
  }

  .logo {
    margin-left: 0;
  }

  .logo img {
    height: 46px;
    max-width: 320px;
  }

  .investor-intro-card {
    padding: 14px;
  }

  .investor-deck {
    gap: 16px;
  }

  .investor-slide {
    padding: 10px 10px 12px;
  }

}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .meme-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goods-shop-grid {
    gap: 14px;
  }

  .goods-shop-slot {
    flex-basis: clamp(260px, 78vw, 340px);
  }

  .goods-carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .goods-carousel-prev {
    left: 2px;
  }

  .goods-carousel-next {
    right: 2px;
  }

  .investor-slide-placeholder strong {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }

  .investor-slide-placeholder span {
    font-size: 0.88rem;
  }

  .media-kit-grid {
    grid-template-columns: 1fr;
  }

  .nft-collections-grid {
    grid-template-columns: 1fr;
  }

  .nft-collection-stack {
    gap: 24px;
  }

  .nft-collection-desc {
    font-size: 0.95rem;
    line-height: 1.78;
  }

  .nft-image-links {
    gap: 12px;
  }

  .nft-image-link {
    padding: 6px;
  }

  .story-dialog {
    padding: 12px;
    min-height: 300px;
  }

  .story-text {
    font-size: 1rem;
    line-height: 1.7;
  }
}
