* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --ink: #ffffff;
  --ink-soft: #8a8a8a;
  --line: #1a1a1a;
  --line-strong: #2a2a2a;
  --accent: #ff3b6b;
  --nav-h: 64px;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

html { height: 100%; }

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==== NAVBAR ==== */
.navbar {
  position: relative;
  z-index: 50;
  flex: 0 0 var(--nav-h);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.brand-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn-wallet {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.btn-wallet:hover {
  opacity: 0.85;
}

@media (max-width: 760px) {
  /* Navbar tetap sebagai bar fisik horizontal */
  .navbar {
    padding: 0 18px;
    position: sticky;
    top: 0;
  }

  /* FAB floating tidak dipakai; hamburger ada di dalam navbar */
  .mobile-fab { display: none !important; }
  .nav-toggle { display: inline-flex; }

  /* Sembunyikan teks link dari bar — pindah ke dropdown */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 16px;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.24s ease, visibility 0.24s;
    z-index: 80;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 13px 16px;
    font-size: 15px;
    color: var(--ink);
    border-radius: 10px;
    background: transparent;
  }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.05); }
  .nav-links a.is-active {
    background: rgba(255, 59, 107, 0.14);
    color: var(--accent);
  }

  /* Wallet button when moved into the dropdown */
  .btn-wallet-mobile {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    font-size: 14px;
    border-radius: 12px;
  }
}

/* ==== VIEW SYSTEM ==== */
.view {
  display: none;
}

.view-home.is-active {
  display: flex;
}

.view-collection.is-active {
  display: flex;
  flex-direction: column;
}

.view-roadmap.is-active {
  display: flex;
  flex-direction: column;
}

.view-faq.is-active {
  display: flex;
  flex-direction: column;
}

/* ==== HERO VIDEO ==== */
.hero-video {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  align-items: center;
  justify-content: center;
}

.video-card {
  position: relative;
  /* Set inline by JS to match the video's natural size, capped to viewport */
  background: var(--bg);
  overflow: visible;
}

.mint-video {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 4px;
}

/* Mint panel overlay (bottom center, OUTSIDE video for non-overlap) */
.mint-panel {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: calc(100% - 32px);
}

.panel-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-divider {
  width: 1px;
  height: 28px;
  background: var(--line-strong);
}

.panel-label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.panel-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.btn-mint {
  border: none;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-mint:hover:not(:disabled) {
  opacity: 0.85;
}

.btn-mint:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-mint:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-mint-text {
  font-weight: 800;
}

.btn-mint-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.65;
}

@media (max-width: 600px) {
  .mint-panel {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 10px;
    bottom: 12px;
  }
  .panel-info { gap: 12px; }
  .btn-mint { width: 100%; justify-content: center; }
}

/* ==== RESULT OVERLAY ==== */
.result-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 5;
}

.result-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.result-card {
  text-align: center;
  padding: 32px 44px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

.result-overlay.is-active .result-card {
  transform: scale(1);
}

.result-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 6px;
  margin-bottom: 8px;
}

.result-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.result-sub {
  color: var(--ink-soft);
  margin-bottom: 22px;
  font-size: 14px;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 11px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ==== COLLECTION ==== */
.collection {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 28px 0 0;
  flex-direction: column;
}

.collection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 32px 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.collection-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 6px;
}

.collection-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.collection-sub {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.collection-count {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ==== MARQUEE (disabled — using static grid instead) ==== */

/* ==== GRID ==== */
.collection-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 32px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  align-content: start;
}

.collection-grid::-webkit-scrollbar {
  width: 8px;
}
.collection-grid::-webkit-scrollbar-track {
  background: transparent;
}
.collection-grid::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.collection-grid::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* ==== CARD ==== */
.cipung-card {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cipung-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink-soft);
  background: #111;
}

.cipung-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cipung-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.cipung-card:hover .cipung-card-img {
  transform: scale(1.05);
}

.cipung-card-body {
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.cipung-card-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cipung-card-rarity {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Rarity colors */
.rar-common    { color: #b6b6b6; border-color: #333; }
.rar-uncommon  { color: #79e08b; border-color: rgba(121, 224, 139, 0.4); }
.rar-rare      { color: #6aa9ff; border-color: rgba(106, 169, 255, 0.4); }
.rar-epic      { color: #c89bff; border-color: rgba(200, 155, 255, 0.45); }
.rar-legendary { color: #ffc15c; border-color: rgba(255, 193, 92, 0.45); }
.rar-mythic    { color: #ff6b8a; border-color: rgba(255, 107, 138, 0.5); }
.rar-ancient   { color: #d4b078; border-color: rgba(212, 176, 120, 0.45); }
.rar-celestial { color: #8de7ff; border-color: rgba(141, 231, 255, 0.45); }
.rar-omega     { color: #ff3b6b; border-color: rgba(255, 59, 107, 0.55); }
.rar-void      { color: #9a8cff; border-color: rgba(154, 140, 255, 0.45); }
.rar-viper     { color: #4ade80; border-color: rgba(74, 222, 128, 0.45); }
.rar-special   { color: var(--ink-soft); border-color: var(--line-strong); }

/* ==== LIGHTBOX ==== */
/* ==== ROADMAP — Literal "Road + Map" Joke ==== */
.roadmap {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 28px 0 0;
}

.roadmap-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 32px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.roadmap-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 6px;
}

.roadmap-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.rd-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 24px;
  gap: 24px;
}

.rd-canvas {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1280px;
}

/* Section labels (ROAD / MAP / ROADMAP) */
.rd-road-label,
.rd-map-label,
.rd-result-label {
  font-family: 'Inter', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 5px;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* === Actual road === */
.rd-road-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.rd-road {
  position: relative;
  height: 240px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(
      45deg,
      #2a2a2a 0,
      #2a2a2a 6px,
      #232323 6px,
      #232323 12px
    ),
    #2a2a2a;
  border: 1px solid #1a1a1a;
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* Curbs (top + bottom edges) */
.rd-road-curb {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #555 0, #555 18px,
    #2a2a2a 18px, #2a2a2a 24px
  );
}

.rd-road-curb-top    { top: 0; }
.rd-road-curb-bottom { bottom: 0; }

/* Vehicles driving on the road */
.rd-road-car {
  position: absolute;
  top: 50%;
  left: -60px;
  font-size: 36px;
  transform: translateY(-50%) scaleX(-1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  animation: rdCarDrive 5s linear infinite;
  z-index: 2;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.rd-road-car:hover {
  filter: drop-shadow(0 4px 12px rgba(255, 224, 102, 0.7));
}

/* Speed boost on road hover */
.rd-road:hover .rd-road-car {
  animation-duration: calc(var(--dur, 5s) * 0.5) !important;
}

/* Vehicle bounce on click */
.rd-road-car.rd-bounce {
  animation: rdCarDrive 5s linear infinite, rdVehBounce 0.5s ease;
}

@keyframes rdVehBounce {
  0%   { transform: translateY(-50%) scaleX(-1) scale(1); }
  50%  { transform: translateY(-90%) scaleX(-1) scale(1.3); }
  100% { transform: translateY(-50%) scaleX(-1) scale(1); }
}

/* Honk indicator */
.rd-road-honk {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  font-family: 'Permanent Marker', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffe066;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255, 224, 102, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
}

.rd-road-honk.is-active {
  animation: rdHonkPop 0.8s ease;
}

@keyframes rdHonkPop {
  0%   { transform: translateX(-50%) scale(0)   rotate(-10deg); opacity: 0; }
  30%  { transform: translateX(-50%) scale(1.2) rotate(5deg);   opacity: 1; }
  60%  { transform: translateX(-50%) scale(1)   rotate(-3deg);  opacity: 1; }
  100% { transform: translateX(-50%) scale(0.9) rotate(0deg);   opacity: 0; }
}

/* Stagger vehicles by lane (top/bottom) and delay so they don't overlap */
.rd-veh-1 { top: 35%;  font-size: 48px; animation-duration: 5.0s; animation-delay: 0s;    }
.rd-veh-2 { top: 65%;  font-size: 54px; animation-duration: 6.5s; animation-delay: -1.2s; }
.rd-veh-3 { top: 35%;  font-size: 38px; animation-duration: 4.0s; animation-delay: -2.5s; }
.rd-veh-4 { top: 65%;  font-size: 48px; animation-duration: 5.5s; animation-delay: -3.6s; }
.rd-veh-5 { top: 35%;  font-size: 54px; animation-duration: 7.0s; animation-delay: -4.8s; }

@keyframes rdCarDrive {
  from { left: -60px; }
  to   { left: 100%; }
}

/* Animated road stripes (yellow center line) */
.rd-road-stripe {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    #ffe066 0,    #ffe066 36px,
    transparent 36px, transparent 72px
  );
  box-shadow: 0 0 8px rgba(255, 224, 102, 0.25);
  animation: rdRoadStripe 1.6s linear infinite;
}

@keyframes rdRoadStripe {
  from { background-position: 0 0; }
  to   { background-position: 72px 0; }
}

/* === Actual map === */
.rd-map-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.rd-map {
  position: relative;
  height: 240px;
  border-radius: 4px;
  background:
    /* paper grain */
    radial-gradient(circle at 30% 40%, rgba(0,0,0,0.04), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.04), transparent 50%),
    linear-gradient(135deg, #f5e9c3, #ead9a4 70%, #d8c282);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(120, 90, 30, 0.18),
    inset 0 0 30px rgba(120, 90, 30, 0.12);
  overflow: hidden;
}

/* Fold creases */
.rd-map-fold {
  position: absolute;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18), transparent);
  pointer-events: none;
}

.rd-map-fold-1 { top: 0; bottom: 0; left: 33%; width: 1px; }
.rd-map-fold-2 { top: 0; bottom: 0; left: 66%; width: 1px; }
.rd-map-fold-h {
  left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.18), transparent);
}

.rd-map-svg {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  pointer-events: none;
}

/* Burnt corners (treasure-map look) */
.rd-map-burn {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 38%, rgba(60, 30, 0, 0.35) 60%, rgba(0, 0, 0, 0.6) 90%);
}

.rd-map-burn-tl { top: -8px;    left: -8px;    border-top-left-radius: 30%; }
.rd-map-burn-tr { top: -8px;    right: -8px;   border-top-right-radius: 30%; }
.rd-map-burn-bl { bottom: -8px; left: -8px;    border-bottom-left-radius: 30%; }
.rd-map-burn-br { bottom: -8px; right: -8px;   border-bottom-right-radius: 30%; }

.rd-map-pin {
  position: absolute;
  bottom: 14%;
  right: 28%;
  font-size: 24px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
  animation: rdPinDrop 2.4s ease-in-out infinite;
}

/* X spot is clickable (the one in the SVG) */
.rd-x-spot {
  cursor: pointer;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.rd-x-spot:hover {
  transform: translate(180px, 110px) scale(1.15);
}

.rd-treasure {
  opacity: 0;
  transform: translate(180px, 110px) scale(0);
  transform-origin: center;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rd-treasure.is-active {
  opacity: 1;
  transform: translate(180px, 110px) scale(1);
}

.rd-x-spot.is-found {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Map hover scales up slightly */
.rd-map {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rd-map:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(120, 90, 30, 0.25),
    inset 0 0 30px rgba(120, 90, 30, 0.12);
}

/* Roadmap result is clickable */
.rd-result-text {
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.rd-result-text:hover {
  background: rgba(255, 59, 107, 0.14);
  border-color: rgba(255, 59, 107, 0.7);
  transform: translateY(-2px);
}

.rd-result-text:active {
  transform: scale(0.98);
}

.rd-result-text.is-changing {
  animation: rdResultPop 0.4s ease;
}

@keyframes rdResultPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06) rotate(-1deg); }
  70%  { transform: scale(0.98) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Canvas tilt on mouse move */
.rd-canvas {
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.rd-canvas-inner-tilt {
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes rdPinDrop {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* === Operators (+ and =) === */
.rd-plus,
.rd-equals {
  font-size: 80px;
  font-weight: 900;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

.rd-equals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rd-equals > div {
  width: 42px;
  height: 6px;
  background: var(--ink-soft);
  border-radius: 3px;
}

/* === Result block === */
.rd-result {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.rd-result-text {
  height: 240px;
  border-radius: 16px;
  background: rgba(255, 59, 107, 0.08);
  border: 1px dashed rgba(255, 59, 107, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  user-select: none;
  text-align: center;
  line-height: 1;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
}

/* Footnote */
.rd-footnote {
  display: none;
}

/* === Responsive === */
@media (max-width: 760px) {
  .roadmap-head { margin: 0 18px 12px; }
  .rd-scroll { padding: 0 14px 18px; gap: 18px; }
  .rd-canvas {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rd-plus, .rd-equals { font-size: 42px; }
  .rd-equals > div { width: 26px; height: 4px; }
  .rd-road, .rd-map, .rd-result-text { height: 150px; }
  .rd-result-text { font-size: 32px; }
  .rd-veh-1, .rd-veh-2, .rd-veh-3, .rd-veh-4, .rd-veh-5 { font-size: 32px; }
}

/* ==== LIGHTBOX ==== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox.is-active .lightbox-inner {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-meta {
  text-align: center;
}

.lightbox-rarity {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lightbox-name {
  font-size: 22px;
  font-weight: 800;
  text-transform: capitalize;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.5);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: var(--line-strong);
}

@media (max-width: 600px) {
  .collection { padding-top: 18px; }
  .collection-head { margin: 0 18px 14px; }
  .collection-title { font-size: 22px; }
  .collection-grid { padding: 0 18px 18px; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ==== FAQ — Danantara-Style Landing Page (Dark / Cipung Identity) ==== */
.faq {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

.faq-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: var(--bg);
}

.faq-scroll::-webkit-scrollbar { width: 10px; }
.faq-scroll::-webkit-scrollbar-track { background: var(--bg); }
.faq-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); }
.faq-scroll::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* Announcement bar */
.dn-announce {
  background: #0a0a0a;
  color: var(--ink);
  padding: 10px 32px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.dn-announce-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: dnPulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 59, 107, 0.6);
}
@keyframes dnPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}
.dn-announce-link {
  color: var(--accent) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* HERO */
.dn-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 60px 64px 80px;
  overflow: hidden;
  background: #050505;
}
.dn-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 59, 107, 0.18), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(80, 80, 80, 0.25), transparent 60%),
    linear-gradient(135deg, #000000 0%, #0d0d0d 50%, #1a1a1a 100%);
  background-size: 100% 100%, 100% 100%, 200% 200%;
  animation: dnHeroBg 18s ease infinite;
}
@keyframes dnHeroBg {
  0%,100% { background-position: 0% 0%, 0% 0%, 0% 50%; }
  50%     { background-position: 0% 0%, 0% 0%, 100% 50%; }
}
.dn-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.015) 14px 15px),
    linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
  pointer-events: none;
}
.dn-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--ink);
}
.dn-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 18px;
}
.dn-hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 32px;
  max-width: 780px;
}
.dn-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dn-btn-primary {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}
.dn-btn-primary:hover { background: var(--accent); color: var(--ink) !important; }
.dn-btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.4);
  display: inline-block;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dn-btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--ink); }
.dn-hero-pagination {
  position: absolute;
  bottom: 30px;
  right: 64px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dn-hero-pagination span {
  width: 30px; height: 3px;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s ease;
}
.dn-hero-pagination span.is-active { background: var(--accent); }

/* ABOUT BLOCK */
.dn-about {
  padding: 80px 64px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.dn-about-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.dn-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.dn-about-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.dn-about-aside { display: flex; flex-direction: column; gap: 22px; }
.dn-about-img {
  width: 100%;
  height: 260px;
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.dn-about-img-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,59,107,0.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.04), transparent 50%);
}
.dn-about-img-emoji {
  font-size: 80px;
  filter: drop-shadow(0 4px 12px rgba(255,59,107,0.3)) grayscale(0.2);
}
.dn-about-img-caption {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.dn-about-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.dn-about-link {
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.dn-about-link:hover { color: var(--accent) !important; border-color: var(--ink); }

/* WHAT WE DO */
.dn-what {
  padding: 80px 64px;
  background: #050505;
  border-top: 1px solid var(--line);
}
.dn-what-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.dn-what-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 48px;
}
.dn-what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.dn-what-card {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: default;
}
.dn-what-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-soft);
  background: #111;
}
.dn-what-icon {
  font-size: 38px;
  width: 64px;
  height: 64px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dn-what-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.2px;
}

/* ECOSYSTEM */
.dn-eco {
  padding: 80px 64px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.dn-eco-head {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.dn-eco-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
}
.dn-eco-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.dn-eco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.dn-eco-card {
  position: relative;
  height: 320px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--ink) !important;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.dn-eco-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.dn-eco-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,59,107,0.25), transparent 55%),
    linear-gradient(160deg, #0a0a0a, #000);
  transition: transform 0.6s ease;
}
.dn-eco-card-bg-2 {
  background:
    radial-gradient(circle at 20% 80%, rgba(154,140,255,0.22), transparent 55%),
    linear-gradient(160deg, #0a0a0a, #000);
}
.dn-eco-card:hover .dn-eco-card-bg { transform: scale(1.05); }
.dn-eco-card-inner {
  position: relative;
  z-index: 2;
  padding: 30px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.dn-eco-card-label {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.dn-eco-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 380px;
}
.dn-eco-card-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  transition: transform 0.3s ease, background 0.2s ease;
}
.dn-eco-card:hover .dn-eco-card-arrow { transform: translateX(6px); background: var(--accent); color: var(--ink); }

/* SECTORS */
.dn-sectors {
  padding: 80px 64px;
  background: #050505;
  border-top: 1px solid var(--line);
}
.dn-sectors-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.dn-sectors-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 48px;
  letter-spacing: -0.4px;
}
.dn-sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.dn-sector-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 32px 26px;
  min-height: 320px;
  color: var(--ink);
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: default;
}
.dn-sector-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow, radial-gradient(circle at 80% 0%, rgba(255,59,107,0.10), transparent 55%));
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.7;
}
.dn-sector-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: #111;
}
.dn-sector-card:hover::before { opacity: 1; }
.dn-sector-icon {
  font-size: 36px;
  width: 60px;
  height: 60px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  position: relative;
  z-index: 1;
}
.dn-sector-h {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}
.dn-sector-p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
  flex: 1;
}
.dn-sector-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.dn-sector-tags span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

/* QUOTE */
.dn-quote {
  position: relative;
  padding: 80px 64px;
  overflow: hidden;
  min-height: 420px;
  border-top: 1px solid var(--line);
}
.dn-quote-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,59,107,0.08), transparent 60%),
    repeating-linear-gradient(45deg, #0a0a0a 0 2px, var(--bg) 2px 14px);
}
.dn-quote-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.dn-quote-portrait {
  width: 240px; height: 240px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,59,107,0.18), transparent 60%),
    #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dn-quote-portrait-inner {
  font-size: 130px;
  filter: drop-shadow(0 4px 12px rgba(255,59,107,0.3));
}
.dn-quote-mark {
  font-size: 90px;
  font-weight: 900;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 10px;
  font-family: Georgia, serif;
}
.dn-quote-text {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 22px;
  font-style: italic;
}
.dn-quote-attr {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 580px;
}

/* NEWS */
.dn-news {
  padding: 80px 64px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.dn-news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.dn-news-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.dn-news-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.dn-news-all {
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.dn-news-all:hover { color: var(--accent) !important; }
.dn-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.dn-news-card {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.dn-news-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-soft);
}
.dn-news-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.dn-news-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.06), transparent 60%);
}
.dn-news-meta {
  padding: 18px 20px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.dn-news-card h3 {
  padding: 0 20px 22px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.2px;
}

/* LEGAL FOOTER */
.dn-legal {
  background: #050505;
  color: var(--ink);
  padding: 60px 64px 30px;
  border-top: 1px solid var(--line);
}
.dn-legal-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.dn-legal-col { display: flex; flex-direction: column; gap: 10px; }
.dn-legal-col p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.dn-legal-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.dn-legal-col a {
  color: var(--ink-soft) !important;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.dn-legal-col a:hover { color: var(--ink) !important; }
.dn-legal-copy {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.7;
  opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .dn-hero { padding: 40px 24px 60px; min-height: 420px; }
  .dn-hero-title { font-size: 28px; }
  .dn-hero-pagination { right: 24px; bottom: 18px; }
  .dn-about, .dn-what, .dn-eco, .dn-sectors, .dn-news, .dn-legal { padding: 50px 24px; }
  .dn-about-grid { grid-template-columns: 1fr; gap: 30px; }
  .dn-about-title, .dn-what-title, .dn-sectors-title, .dn-news-title { font-size: 22px; }
  .dn-eco-head { grid-template-columns: 1fr; gap: 16px; }
  .dn-eco-title { font-size: 22px; }
  .dn-eco-grid { grid-template-columns: 1fr; }
  .dn-quote { padding: 50px 24px; }
  .dn-quote-content { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .dn-quote-portrait { width: 160px; height: 160px; margin: 0 auto; }
  .dn-quote-portrait-inner { font-size: 90px; }
  .dn-quote-text { font-size: 18px; }
  .dn-legal { padding: 40px 24px 20px; }
}

/* ==== FOOTER ==== */
.footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  max-width: 100%;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  grid-column: 2;
}

.footer-links a {
  color: var(--ink-soft);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.footer-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.footer-links img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.footer-links a:hover img {
  opacity: 1;
}

.footer-copy {
  color: var(--ink-soft);
  font-size: 12px;
  text-align: right;
  grid-column: 3;
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 16px 18px;
    gap: 10px;
  }
  .footer-links { grid-column: 1; }
  .footer-copy { grid-column: 1; text-align: center; }
}

/* ==== GLOBAL RESPONSIVE: switch to natural document scroll on mobile ==== */
@media (max-width: 760px) {
  :root { --nav-h: 56px; }

  /* Allow body to scroll naturally on small screens */
  html, body {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }
  body { display: block; }

  /* Each view becomes a normal block, not a flex container fighting for height */
  .view {
    flex: none;
    min-height: 0;
    overflow: visible !important;
  }
  .view-collection.is-active,
  .view-roadmap.is-active,
  .view-faq.is-active {
    display: block;
  }
  /* Home stays flex so the video can center within the hero */
  .view-home.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero video adapts */
  .hero-video {
    padding: 16px;
    min-height: calc(100vh - var(--nav-h) - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .video-card {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    aspect-ratio: 9 / 16;
  }
  .mint-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Mint panel mobile */
  .mint-panel {
    flex-direction: column;
    border-radius: 14px;
    padding: 12px;
    gap: 10px;
    bottom: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    max-width: none;
  }
  .panel-info { gap: 12px; justify-content: space-between; width: 100%; }
  .btn-mint { width: 100%; justify-content: center; }

  /* Result overlay */
  .result-card { padding: 24px 20px; margin: 16px; }
  .result-jp { font-size: 28px; letter-spacing: 4px; }
  .result-title { font-size: 22px; }

  /* Collection becomes scrollable as part of page */
  .collection {
    padding: 20px 0 0;
    overflow: visible;
  }
  .collection-head {
    margin: 0 16px 14px;
    padding-bottom: 14px;
    align-items: flex-start;
  }
  .collection-title { font-size: 22px; }
  .collection-grid {
    overflow: visible;
    padding: 0 16px 24px;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Roadmap stacks */
  .roadmap { padding-top: 18px; overflow: visible; }
  .roadmap-head { margin: 0 16px 12px; padding-bottom: 14px; }
  .roadmap-title { font-size: 22px; }
  .rd-scroll {
    padding: 0 14px 20px;
    gap: 14px;
    justify-content: flex-start;
  }
  .rd-canvas {
    grid-template-columns: 1fr;
    gap: 12px;
    perspective: none;
  }
  .rd-canvas-inner-tilt { transform: none !important; }
  .rd-plus, .rd-equals { font-size: 36px; }
  .rd-equals > div { width: 24px; height: 4px; }
  .rd-equals { gap: 6px; }
  .rd-road, .rd-map, .rd-result-text { height: 140px; }
  .rd-road-label, .rd-map-label, .rd-result-label {
    font-size: 10px; letter-spacing: 3px; margin-bottom: 8px;
  }
  .rd-result-text { font-size: 26px; }
  .rd-veh-1, .rd-veh-2, .rd-veh-3, .rd-veh-4, .rd-veh-5 { font-size: 28px; }

  /* Lightbox sizing */
  .lightbox-img { max-height: 60vh; }
  .lightbox-name { font-size: 18px; }
  .lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; }

  /* FAQ — kill internal scroll, let document scroll */
  .faq, .faq-scroll {
    overflow: visible !important;
    flex: none;
  }

  /* Disable canvas tilt on touch */
  .rd-canvas { transform: none !important; }
}

/* Tablet refinement */
@media (max-width: 1024px) and (min-width: 761px) {
  .rd-canvas {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .rd-plus, .rd-equals {
    transform: rotate(0deg);
  }
  .dn-hero { padding: 50px 40px 70px; }
  .dn-about, .dn-what, .dn-eco, .dn-sectors, .dn-news, .dn-legal {
    padding: 60px 40px;
  }
  .dn-eco-head { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand-name { font-size: 16px; }
  .brand-jp { font-size: 12px; }
  .btn-wallet { padding: 7px 10px; font-size: 11px; }
  .collection-grid { grid-template-columns: 1fr; }
  .dn-hero-title { font-size: 24px; }
  .dn-hero-actions a { width: 100%; text-align: center; }
}

/* iOS safe area */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 760px) {
    .footer-inner { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    .dn-legal { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  }
}

/* ==== MINT FLOW MODAL ==== */
body.modal-open { overflow: hidden; }

.result-art {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: none;
}
.result-art[src]:not([src=""]) { display: block; }

.mint-tx-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mint-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mint-modal.is-open { opacity: 1; pointer-events: auto; }

.mint-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 30px 26px 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.mint-modal.is-open .mint-modal-card { transform: translateY(0) scale(1); }

.mint-modal-card::-webkit-scrollbar { width: 8px; }
.mint-modal-card::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

.mint-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.4);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mint-modal-close:hover { background: var(--line-strong); }

.mint-modal-head { margin-bottom: 22px; padding-right: 30px; }
.mint-modal-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 6px;
}
.mint-modal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.mint-modal-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Steps */
.mint-step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
.mint-step.is-active,
.mint-step.is-done { opacity: 1; }

.mint-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.mint-step.is-active .mint-step-num {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 59, 107, 0.12);
}
.mint-step.is-done .mint-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.mint-step.is-done .mint-step-num::after { content: '✓'; }
.mint-step.is-done .mint-step-num { font-size: 0; }
.mint-step.is-done .mint-step-num::after { font-size: 15px; }
.mint-step.is-error .mint-step-num {
  border-color: #ff5252;
  color: #ff5252;
  background: rgba(255, 82, 82, 0.12);
}

.mint-step-body { flex: 1; min-width: 0; }
.mint-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.mint-step-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Buttons in steps */
.mint-btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;
  color: #fff;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.mint-btn-discord:hover { opacity: 0.9; }
.mint-btn-discord img { filter: brightness(0) invert(1); }

.mint-btn-wallet {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.mint-btn-wallet:hover:not(:disabled) { opacity: 0.85; }
.mint-btn-wallet:disabled { opacity: 0.4; cursor: not-allowed; }

.mint-btn-final {
  width: 100%;
  justify-content: center;
}

/* Discord identity card */
.mint-id {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}
.mint-id.is-show { display: flex; }
.mint-id-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.mint-id-name { font-size: 14px; font-weight: 700; }
.mint-id-sub { font-size: 11px; color: var(--ink-soft); }
.mint-id-meta { flex: 1; min-width: 0; }
.mint-id-meta .mint-id-name,
.mint-id-meta .mint-id-sub {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Small round disconnect icon (Discord + wallet) */
.mint-disconnect {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.mint-disconnect:hover {
  color: #ff5252;
  border-color: rgba(255, 82, 82, 0.5);
  background: rgba(255, 82, 82, 0.1);
}

/* Gate message */
.mint-gate-msg {
  display: none;
  font-size: 12px;
  color: #ffb3b3;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Allocation card */
.mint-alloc {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mint-alloc.is-show { display: flex; }
.mint-alloc-art {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.mint-alloc-art img { width: 100%; height: 100%; object-fit: contain; }
.mint-alloc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.mint-alloc-rarity {
  font-size: 18px;
  font-weight: 800;
  text-transform: capitalize;
  margin: 2px 0 4px;
}
.mint-alloc-note { font-size: 11px; color: var(--ink-soft); line-height: 1.4; }

/* Wallet info (connected card) */
.mint-wallet-info {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.mint-wallet-info.is-show { display: flex; }
.mint-wallet-info .mint-id-name { font-family: inherit; }
.mint-wallet-info .mint-id-sub { font-family: monospace; color: var(--accent); }

/* Wallet picker (EIP-6963 multi-wallet) */
.mint-wallet-picker {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.mint-wallet-picker.is-show { display: flex; }
.mint-wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mint-wallet-option:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--ink-soft); }
.mint-wallet-option img { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }

.mint-disclaimer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-style: italic;
}

/* Toast */
.mint-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #141414;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  max-width: 90vw;
  text-align: center;
}
.mint-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.mint-toast-ok { border-color: rgba(121, 224, 139, 0.5); }
.mint-toast-error { border-color: rgba(255, 82, 82, 0.5); }

@media (max-width: 600px) {
  .mint-modal { padding: 14px; }
  .mint-modal-card { padding: 24px 18px 20px; max-height: 92vh; }
  .mint-modal-title { font-size: 20px; }
}

/* ==== INLINE MINT FLOW (hero bubble + dynamic button) ==== */

/* Chat bubble above the mint panel */
.mint-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: min(420px, calc(100vw - 48px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  opacity: 0;
  animation: bubbleIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  z-index: 6;
}
.mint-bubble[hidden] { display: none; }

@keyframes bubbleIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* little tail pointing down to the button */
.mint-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(20, 20, 20, 0.92);
}

.mint-bubble.is-error {
  border-color: rgba(255, 82, 82, 0.55);
  background: rgba(40, 16, 16, 0.92);
}
.mint-bubble.is-error::after { border-top-color: rgba(40, 16, 16, 0.92); }

.mint-bubble-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mint-bubble-avatar[hidden] { display: none; }

.mint-bubble-body { min-width: 0; }
.mint-bubble-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.mint-bubble-text b { color: #fff; }
.mint-bubble.is-error .mint-bubble-text { color: #ffd5d5; }

.mint-bubble-switch {
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(255, 82, 82, 0.5);
  color: #ff8a8a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.mint-bubble-switch:hover { background: rgba(255, 82, 82, 0.15); color: #fff; }
.mint-bubble-switch[hidden] { display: none; }

/* Hero action button: loading spinner state */
.btn-mint.is-loading {
  position: relative;
  color: transparent;
}
.btn-mint.is-loading .btn-mint-text,
.btn-mint.is-loading .btn-mint-jp { opacity: 0.65; color: var(--bg); }
.btn-mint.is-loading::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Navbar wallet button connected state */
.btn-wallet.is-connected {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-family: monospace;
}
.btn-wallet.is-connected:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* Wallet picker overlay (EIP-6963) */
.wallet-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.wallet-picker-overlay.is-show { opacity: 1; pointer-events: auto; }
.wallet-picker-card {
  width: 100%;
  max-width: 320px;
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 20px;
}
.wallet-picker-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  text-align: center;
}
.wallet-picker-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-picker-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.wallet-picker-option:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--ink-soft); }
.wallet-picker-option img { width: 26px; height: 26px; border-radius: 7px; }
.wallet-picker-cancel {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
}
.wallet-picker-cancel:hover { color: var(--ink); }

/* On small screens, make the bubble span more comfortably */
@media (max-width: 600px) {
  .mint-bubble { max-width: calc(100vw - 32px); }
}
