:root {
  --bg: #120e0b;
  --card: #1c1612;
  --line: rgba(243, 230, 200, 0.12);
  --cream: #f3e6c8;
  --mute: #b7a48a;
  --sauce: #d3541a;
  --gold: #e8a23a;
  --ink: #0c0907;
  --font-display: "Cormorant Garamond", "Shippori Mincho", Georgia, serif;
  --font-sans: "DM Sans", "Noto Sans JP", system-ui, sans-serif;
}
html[lang="ja"] {
  --font-display: "Shippori Mincho", "Cormorant Garamond", serif;
  --font-sans: "Noto Sans JP", "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
}
body {
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 22px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(211, 84, 26, 0.45);
}
.nav nav {
  display: flex;
  gap: 22px;
  color: var(--mute);
}
.nav nav a.is-on,
.nav nav a:hover {
  color: var(--cream);
}
.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.lang-short {
  display: none;
}
.lang-btn:hover {
  border-color: var(--gold);
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: #1c1612;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  z-index: 30;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.lang-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button.is-on {
  background: #2a221c;
  color: var(--gold);
}

.btn {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #e36a28, #b63d0f);
  color: #fff8ee;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn.swap {
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  font-size: 16px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stage {
  display: grid;
  grid-template-columns: minmax(300px, 480px) minmax(280px, 420px);
  justify-content: center;
  align-items: start;
  gap: 40px;
  padding: 12px 28px 48px;
  min-height: auto;
}
.swap-col {
  padding: 24px 28px 48px;
}
.kicker {
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  margin: 0 0 10px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.9;
  font-weight: 400;
  margin: 0 0 12px;
}
h1 em {
  font-style: italic;
  color: var(--gold);
}
.lead {
  color: var(--mute);
  max-width: 34ch;
  margin: 0 0 28px;
}

.card {
  background: linear-gradient(180deg, #241c16, #18130f);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.card-head h2 {
  margin: 0;
  font-size: 18px;
}
.icon-btn,
.flip,
.max {
  background: #2a221c;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.icon-btn {
  width: 36px;
  height: 36px;
}

.leg {
  background: #120e0b;
  border-radius: 20px;
  padding: 14px;
  position: relative;
}
.leg-top {
  display: flex;
  justify-content: space-between;
  color: var(--mute);
  font-size: 12px;
}
.leg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.leg-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 32px;
  font-weight: 600;
}
.token {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2a221c;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px 8px 8px;
  cursor: pointer;
}
.token img,
.pick img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.max {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 11px;
  padding: 4px 8px;
  letter-spacing: 0.08em;
}
.flip {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: -12px auto;
  position: relative;
  z-index: 2;
}

.meta {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  color: var(--mute);
  font-size: 13px;
}
.meta div {
  display: flex;
  justify-content: space-between;
}
.meta strong {
  color: var(--cream);
  font-weight: 600;
}
.hint {
  text-align: center;
  color: var(--mute);
  font-size: 12px;
  margin: 12px 0 0;
}

.hero-nft {
  padding-top: 28px;
  position: relative;
}
.hero-nft figure {
  position: relative;
  margin: 0;
  max-width: 380px;
  background: #14100d;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.hero-frame {
  position: relative;
  overflow: hidden;
  background: #000;
}
.hero-nft img.hero-spin {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #000;
  transform-origin: 50% 50%;
  animation: tako-spin 28s linear infinite;
}
.hero-smoke {
  pointer-events: none;
  position: absolute;
  inset: -18% -8% -6%;
  z-index: 2;
  overflow: hidden;
}
.hero-smoke span {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  background: radial-gradient(
    circle,
    rgba(255, 244, 220, 0.55) 0%,
    rgba(243, 230, 200, 0.22) 38%,
    rgba(232, 162, 58, 0.08) 62%,
    transparent 76%
  );
  animation: tako-puff 9s ease-in-out infinite;
}
.hero-smoke span:nth-child(1) {
  width: 190px;
  height: 190px;
  left: 8%;
  bottom: 16%;
  animation-duration: 8s;
}
.hero-smoke span:nth-child(2) {
  width: 250px;
  height: 220px;
  left: 30%;
  bottom: 8%;
  animation-duration: 11s;
  animation-delay: -3s;
}
.hero-smoke span:nth-child(3) {
  width: 170px;
  height: 180px;
  left: 50%;
  bottom: 26%;
  animation-duration: 10s;
  animation-delay: -6s;
}
.hero-smoke span:nth-child(4) {
  width: 210px;
  height: 150px;
  left: 18%;
  bottom: 34%;
  animation-duration: 13s;
  animation-delay: -2s;
}
.hero-smoke span:nth-child(5) {
  width: 140px;
  height: 240px;
  left: 38%;
  bottom: 22%;
  animation-duration: 12s;
  animation-delay: -5s;
}
@keyframes tako-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes tako-puff {
  0%,
  100% {
    transform: translate3d(0, 18px, 0) scale(0.82);
    opacity: 0.12;
  }
  50% {
    transform: translate3d(10px, -56px, 0) scale(1.28);
    opacity: 0.78;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-nft img.hero-spin,
  .hero-smoke span {
    animation: none;
  }
}
.hero-nft figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px 16px;
}
.hero-nft figcaption span {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 12px;
}
.hero-nft figcaption strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}
.hero-nft figcaption em {
  margin-left: auto;
  font-style: normal;
  color: var(--mute);
  font-size: 12px;
}
.hero-ca {
  max-width: 380px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #14100d;
}
.hero-ca span {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  flex-shrink: 0;
}
.hero-ca code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--cream);
}
.hero-ca button {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sauce);
  color: #fff8ee;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 7px 10px;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] {
  display: none;
}
.sheet {
  width: min(420px, 100%);
  background: #1c1612;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}
.sheet.slim {
  width: min(320px, 100%);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sheet-head button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
}
.pick {
  width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #120e0b;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}
.pick small {
  display: block;
  color: var(--mute);
}
.slips {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.slips button {
  flex: 1;
  background: #120e0b;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px;
  cursor: pointer;
}
.slips button.on {
  border-color: var(--sauce);
  color: var(--gold);
}

.story {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 28px 20px;
}
.story-intro {
  max-width: 640px;
  margin-bottom: 48px;
}
.story-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  margin: 8px 0 18px;
}
.story-intro p {
  color: var(--mute);
  line-height: 1.6;
  margin: 0 0 12px;
}
.story-row {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}
.story-row.rev {
  grid-template-columns: 1fr minmax(180px, 280px);
}
.story-row.rev img {
  order: 2;
}
.story-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #000;
}
.story-row h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin: 6px 0 10px;
}
.story-row p:last-child {
  color: var(--mute);
  line-height: 1.55;
  margin: 0;
  max-width: 42ch;
}

.nfts {
  position: relative;
  z-index: 2;
  padding: 56px 28px 80px;
  border-top: 1px solid var(--line);
}
.nfts-head h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  margin: 8px 0 10px;
}
.nfts-head p:last-child {
  color: var(--mute);
  margin: 0 0 28px;
}
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.nft {
  background: #18130f;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.nft img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #000;
}
.nft-meta {
  padding: 10px 12px 12px;
  font-size: 13px;
}
.nft-name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.nft-name span {
  color: var(--gold);
}
.nft-qty,
.nft-price {
  margin: 6px 0 0;
}
.nft-qty {
  color: var(--mute);
}
.nft-price {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav nav {
    display: none;
  }
  .stage {
    grid-template-columns: 1fr;
    padding: 8px 16px 36px;
  }
  .hero-nft {
    order: -1;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-nft figure,
  .hero-ca {
    max-width: 320px;
    width: 100%;
  }
  .swap-col {
    padding: 8px 0 0;
  }
  .nav {
    padding: 12px;
    gap: 8px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .nav-end {
    gap: 6px;
  }
  .lang-btn {
    padding: 6px 8px;
    font-size: 12px;
    letter-spacing: 0;
  }
  .lang-full {
    display: none;
  }
  .lang-short {
    display: inline;
  }
  .btn.ghost {
    padding: 6px 10px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .story {
    padding: 12px 16px 8px;
  }
  .story-row,
  .story-row.rev {
    grid-template-columns: 1fr;
  }
  .story-row.rev img {
    order: 0;
  }
}
