/* ============================================================
   BE LEGEND // ビーレジェンド  —  manga dojo supplement store
   ============================================================ */

:root {
  --ink: #0a0a0c;
  --ink-2: #121216;
  --ink-3: #1a1a20;
  --panel: #16161b;
  --bone: #f2efe6;
  --bone-dim: #b9b5a8;
  --blood: #ff2b1f;
  --blood-deep: #c4140b;
  --gold: #f5c518;
  --line: rgba(242, 239, 230, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --maxw: 1200px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: "Oswald", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle halftone over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: radial-gradient(rgba(242, 239, 230, 0.05) 1px, transparent 1.4px);
  background-size: 6px 6px;
  mix-blend-mode: screen;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: min(100% - 40px); max-width: var(--maxw); margin-inline: auto; position: relative; z-index: 2; }

/* ---------- display type ---------- */
h1, h2, h3, h4 { font-family: "Anton", "Oswald", sans-serif; font-weight: 400; letter-spacing: 0.01em; line-height: 0.95; text-transform: uppercase; }

.stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--blood);
  text-stroke: 2px var(--blood);
  text-shadow: 3px 3px 0 rgba(255, 43, 31, 0.18);
}

.eyebrow {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.32em;
  font-size: 0.95rem;
  color: var(--bone-dim);
  margin-bottom: 14px;
}
.eyebrow.red { color: var(--blood); }
.eyebrow .spark { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.14em;
  font-size: 1.1rem;
  padding: 15px 30px;
  border: 2px solid var(--bone);
  color: var(--bone);
  background: transparent;
  position: relative;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--blood); }
.btn:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--blood); }
.btn--blood { background: var(--blood); border-color: var(--blood); color: #fff; }
.btn--blood:hover { box-shadow: 4px 4px 0 var(--bone); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 10px 18px; font-size: 0.95rem; }
.btn--full { width: 100%; }

/* ---------- ticker ---------- */
.ticker {
  background: var(--blood);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 60;
  border-bottom: 2px solid var(--ink);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 8px 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.18em;
  font-size: 0.92rem;
  animation: scrollX 26s linear infinite;
}
.ticker .dot { opacity: 0.6; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled { background: rgba(10, 10, 12, 0.96); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--blood); color: #fff;
  font-family: "Anton", sans-serif; font-size: 1.1rem;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.brand__text { font-family: "Anton", sans-serif; font-size: 1.5rem; letter-spacing: 0.02em; line-height: 1; }
.brand__text em { color: var(--blood); font-style: normal; }
.brand__text.big { font-size: 2.4rem; }
.brand__jp { font-family: "Noto Sans JP", sans-serif; font-size: 0.7rem; color: var(--bone-dim); letter-spacing: 0.1em; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  color: var(--bone-dim);
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--blood); transition: width 0.22s ease;
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav-account {
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.12em; font-size: 1rem; color: var(--bone-dim);
  border: 2px solid var(--line); padding: 7px 14px; transition: color 0.15s ease, border-color 0.15s ease; white-space: nowrap;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.nav-account:hover { color: var(--bone); border-color: var(--blood); }
.cart { position: relative; color: var(--bone); display: grid; place-items: center; }
.cart:hover { color: var(--blood); }
.cart__count {
  position: absolute; top: -8px; right: -10px;
  background: var(--blood); color: #fff;
  font-family: "Bebas Neue", sans-serif; font-size: 0.72rem;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 10px;
  transform: scale(0); transition: transform 0.2s cubic-bezier(.3,1.4,.5,1);
}
.cart__count.show { transform: scale(1); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 26px; height: 2.5px; background: var(--bone); transition: transform 0.25s ease, opacity 0.2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section__title { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.section__sub { color: var(--bone-dim); margin-top: 18px; font-size: 1.08rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero__fx {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.74) 0%, rgba(10, 10, 12, 0.88) 60%, var(--ink) 100%),
    radial-gradient(60% 60% at 72% 34%, rgba(255, 43, 31, 0.28), transparent 70%),
    url("../assets/img/hero-rooftop.jpg") center 20% / cover no-repeat,
    var(--ink);
}
/* speed lines */
.hero__lines {
  position: absolute; inset: -20% -40%; z-index: 0; opacity: 0.4;
  background: repeating-conic-gradient(from 0deg at 72% 38%,
    transparent 0deg, transparent 1.4deg,
    rgba(242, 239, 230, 0.06) 1.6deg, rgba(242, 239, 230, 0.06) 1.8deg);
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero__title { font-size: clamp(3.4rem, 11vw, 8rem); }
.hero__title .line { display: block; }
.hero__title .stroke { font-size: 1.12em; }
.hero__jp { font-family: "Noto Sans JP", sans-serif; color: var(--gold); letter-spacing: 0.06em; margin: 16px 0 10px; font-size: 1rem; }
.hero__lead { color: var(--bone-dim); max-width: 46ch; font-size: 1.1rem; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0 34px; }

.hero__trust { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: "Anton", sans-serif; font-size: 2rem; color: var(--bone); line-height: 1; }
.hero__trust span { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); }

.hero__scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.3em; font-size: 0.8rem;
  color: var(--bone-dim); z-index: 3; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* fighter panel */
.hero__art { position: relative; display: grid; place-items: center; }
.fighter-panel {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,43,31,0.12), transparent 60%),
    var(--panel);
  border: 3px solid var(--bone);
  box-shadow: 10px 10px 0 var(--blood), var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.fighter-panel::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,0.18) 14px 15px);
  pointer-events: none;
}
.panel-tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: "Noto Sans JP", sans-serif; font-weight: 900;
  background: var(--blood); color: #fff; padding: 5px 12px;
  letter-spacing: 0.06em; font-size: 0.78rem;
}
.fighter { width: 80%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)); position: relative; z-index: 2; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-6px); } }
.spark-burst {
  position: absolute; inset: 0; z-index: 1;
  background: repeating-conic-gradient(from 0deg at 50% 38%,
    rgba(245,197,24,0.0) 0deg 6deg, rgba(245,197,24,0.14) 6deg 7deg);
  animation: spin 40s linear infinite reverse;
}

.float-badge {
  position: absolute; z-index: 4;
  background: var(--ink-2); border: 2px solid var(--blood);
  color: var(--bone); font-family: "Anton", sans-serif;
  padding: 10px 14px; line-height: 1; font-size: 1.3rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 3px;
}
.float-badge small { font-family: "Bebas Neue", sans-serif; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--bone-dim); }
.badge--1 { top: 8%; right: -6%; animation: floaty 5s ease-in-out infinite; }
.badge--2 { bottom: 16%; left: -8%; border-color: var(--gold); animation: floaty 6s ease-in-out infinite 0.5s; }
.badge--3 { bottom: -4%; right: 6%; animation: floaty 5.5s ease-in-out infinite 0.2s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- marquee ---------- */
.marquee {
  background: var(--bone); color: var(--ink);
  border-block: 3px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  transform: rotate(-1.4deg) scaleX(1.05);
  margin: -10px 0 0;
  position: relative; z-index: 3;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 26px;
  padding: 12px 0; font-family: "Anton", sans-serif; font-size: 1.8rem;
  animation: scrollX 22s linear infinite;
}
.marquee__track i { color: var(--blood); font-style: normal; }

/* ============================================================
   SHOP
   ============================================================ */
.shop { background: linear-gradient(180deg, rgba(10, 10, 12, 0.86) 0%, rgba(18, 18, 22, 0.9) 100%); }
.grid { display: grid; gap: 26px; }
.grid--products { grid-template-columns: repeat(3, 1fr); }

.product {
  background: var(--panel);
  border: 2px solid var(--line);
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.product:hover { transform: translateY(-6px); border-color: var(--blood); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.product__tag {
  position: absolute; top: 0; left: 0; z-index: 3;
  background: var(--blood); color: #fff; font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em; font-size: 0.8rem; padding: 5px 14px;
}
.product__tag.gold { background: var(--gold); color: var(--ink); }
.product__media {
  aspect-ratio: 1 / 1; position: relative; display: grid; place-items: center;
  overflow: hidden;
}
.product__media::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: radial-gradient(rgba(0,0,0,0.3) 1.3px, transparent 1.4px);
  background-size: 7px 7px; opacity: 0.35;
}
.product__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transition: transform 0.4s ease;
}
.product:hover .product__media img { transform: scale(1.06); }
.tub {
  width: 56%; aspect-ratio: 3 / 4; position: relative; z-index: 2;
  display: grid; grid-template-rows: 22% 1fr; filter: drop-shadow(0 16px 20px rgba(0,0,0,0.6));
  transition: transform 0.3s ease;
}
.product:hover .tub { transform: scale(1.06) rotate(-2deg); }
.tub__lid { background: #0b0b0d; border: 2px solid rgba(0,0,0,0.6); border-radius: 50% / 70% 70% 0 0; }
.tub__body {
  border: 3px solid var(--ink); border-top: none;
  display: grid; place-items: center; text-align: center; padding: 10px;
  position: relative;
}
.tub__body span { font-family: "Anton", sans-serif; font-size: 1.5rem; color: #fff; line-height: 0.9; text-shadow: 2px 2px 0 rgba(0,0,0,0.4); }
.tub__body small { font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: 0.7rem; opacity: 0.85; margin-top: 4px; }

.product__info { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__cat { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.18em; color: var(--blood); font-size: 0.85rem; }
.product__name { font-size: 1.5rem; }
.product__flavor { color: var(--gold); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; }
.product__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; padding: 0; }
.product__chips li {
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.08em; font-size: 0.72rem;
  background: var(--ink-3); border: 1px solid var(--line); color: var(--bone-dim); padding: 4px 9px;
}
.product__desc { color: var(--bone-dim); font-size: 0.92rem; line-height: 1.45; flex: 1; }
.product__rating { color: var(--gold); font-size: 0.95rem; letter-spacing: 0.06em; }
.product__rating span { color: var(--bone-dim); font-size: 0.82rem; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.product__price { font-family: "Anton", sans-serif; font-size: 1.7rem; }
.product__price del { font-family: "Oswald"; font-size: 0.95rem; color: var(--bone-dim); margin-left: 8px; }

/* ============================================================
   THE LEGEND
   ============================================================ */
.legend { background: rgba(10, 10, 12, 0.72); overflow: hidden; }
.legend__bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.6;
  background:
    radial-gradient(50% 70% at 20% 50%, rgba(255,43,31,0.18), transparent 70%),
    repeating-linear-gradient(100deg, transparent 0 22px, rgba(242,239,230,0.03) 22px 23px);
}
.legend__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }

.legend__frame {
  position: relative; aspect-ratio: 3 / 4; width: min(100%, 420px);
  border: 3px solid var(--bone); background: var(--ink-2);
  box-shadow: -12px 12px 0 var(--blood); overflow: hidden;
  display: grid; place-items: center;
}
.kanji-bg {
  position: absolute; font-family: "Noto Sans JP", sans-serif; font-weight: 900;
  font-size: 22rem; color: rgba(255,43,31,0.12); line-height: 1; z-index: 0; user-select: none;
}
.kanji-bg.big { font-size: 30rem; color: rgba(255,43,31,0.06); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.legend__silhouette {
  position: relative; z-index: 2; width: 70%; height: 82%;
  background:
    radial-gradient(circle at 50% 22%, #35353b, #0b0b0d 70%);
  clip-path: polygon(50% 0,62% 10%,66% 26%,82% 34%,74% 50%,80% 72%,66% 70%,60% 100%,40% 100%,34% 70%,20% 72%,26% 50%,18% 34%,34% 26%,38% 10%);
  box-shadow: inset 0 -20px 40px rgba(0,0,0,0.6);
  animation: breathe 5s ease-in-out infinite;
}
.legend__tag {
  position: absolute; bottom: 16px; z-index: 3;
  background: var(--ink); border: 2px solid var(--blood); color: var(--bone);
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.18em; padding: 6px 16px; font-size: 0.95rem;
}

.legend__list { list-style: none; margin: 26px 0 34px; display: grid; gap: 14px; }
.legend__list li { display: flex; gap: 14px; align-items: baseline; font-size: 1.08rem; color: var(--bone-dim); }
.legend__list span { font-family: "Anton", sans-serif; color: var(--blood); font-size: 1.3rem; }

/* ============================================================
   CODE (pillars)
   ============================================================ */
.code { background: linear-gradient(180deg, rgba(18, 18, 22, 0.86), rgba(10, 10, 12, 0.82)); }
.grid--code { grid-template-columns: repeat(4, 1fr); }
.code-card {
  background: var(--panel); border: 2px solid var(--line); padding: 32px 24px;
  text-align: center; transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative; overflow: hidden;
}
.code-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blood); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.code-card:hover { transform: translateY(-6px); border-color: var(--blood); background: var(--ink-3); }
.code-card:hover::after { transform: scaleX(1); }
.code-card__ico {
  font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: 2.6rem;
  color: var(--blood); margin-bottom: 14px; line-height: 1;
}
.code-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.code-card p { color: var(--bone-dim); font-size: 0.95rem; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--blood); color: #fff; padding: 56px 0; border-block: 3px solid var(--ink); }
.grid--stats { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num, .stat .plus { font-family: "Anton", sans-serif; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.stat .plus { display: inline; }
.stat p { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.14em; font-size: 1rem; margin-top: 6px; opacity: 0.9; }
.stat + .stat { position: relative; }

/* ============================================================
   STACKS
   ============================================================ */
.stacks { background: rgba(10, 10, 12, 0.8); }
.grid--stacks { grid-template-columns: repeat(3, 1fr); }
.stack-card {
  background: var(--panel); border: 2px solid var(--line); padding: 34px 28px;
  position: relative; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.stack-card:hover { transform: translateY(-6px); border-color: var(--blood); }
.stack-card--hot { border-color: var(--blood); box-shadow: 0 0 0 1px var(--blood), 0 20px 50px rgba(255,43,31,0.18); }
.stack-card__badge {
  align-self: flex-start; font-family: "Bebas Neue", sans-serif; letter-spacing: 0.14em;
  background: var(--ink-3); color: var(--bone-dim); padding: 5px 14px; font-size: 0.82rem;
}
.stack-card__badge.hot { background: var(--blood); color: #fff; }
.stack-card h3 { font-size: 2rem; }
.stack-card p { color: var(--bone-dim); flex: 1; }
.stack-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.stack-card .price { font-family: "Anton", sans-serif; font-size: 1.8rem; line-height: 1; }
.stack-card .price small { display: block; font-family: "Bebas Neue", sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold); margin-top: 3px; }

/* ============================================================
   VOICES
   ============================================================ */
.voices { background: linear-gradient(180deg, rgba(10, 10, 12, 0.82), rgba(18, 18, 22, 0.86)); }
.grid--voices { grid-template-columns: repeat(3, 1fr); }
.bubble {
  background: var(--bone); color: var(--ink); padding: 28px; position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 70% 78%, 62% 100%, 54% 78%, 0 78%);
  padding-bottom: 60px;
}
.bubble blockquote { font-size: 1.05rem; line-height: 1.5; font-weight: 500; }
.bubble figcaption { margin-top: 16px; display: flex; flex-direction: column; }
.bubble figcaption strong { font-family: "Anton", sans-serif; font-size: 1.15rem; letter-spacing: 0.02em; }
.bubble figcaption span { color: #6a6a6a; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================================
   DOJO / NEWSLETTER
   ============================================================ */
.dojo { background: rgba(10, 10, 12, 0.72); overflow: hidden; text-align: center; }
.dojo__lines {
  position: absolute; inset: -30% -40%; z-index: 0; opacity: 0.35;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    transparent 0 1.4deg, rgba(255,43,31,0.08) 1.6deg 1.8deg);
}
.dojo__inner { position: relative; max-width: 680px; margin: 0 auto; }
.dojo__form { display: flex; gap: 12px; max-width: 520px; margin: 30px auto 0; flex-wrap: wrap; }
.dojo__form input {
  flex: 1; min-width: 220px; background: var(--ink-2); border: 2px solid var(--line);
  color: var(--bone); padding: 15px 18px; font-family: "Oswald"; font-size: 1rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.dojo__form input:focus { outline: none; border-color: var(--blood); }
.dojo__msg { margin-top: 16px; font-family: "Bebas Neue", sans-serif; letter-spacing: 0.1em; color: var(--gold); min-height: 1.2em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-2); border-top: 3px solid var(--blood); padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 50px; padding-bottom: 40px; }
.footer__brand p { color: var(--bone-dim); margin-top: 14px; max-width: 40ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer__cols h4 { color: var(--bone); font-size: 1.1rem; margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--bone-dim); padding: 5px 0; font-size: 0.95rem; transition: color 0.2s ease; }
.footer__cols a:hover { color: var(--blood); }
.footer__bar {
  border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  width: min(100% - 40px); max-width: var(--maxw); margin-inline: auto;
}
.footer__bar p { color: var(--bone-dim); font-size: 0.85rem; }
.footer__socials a { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.1em; margin-left: 16px; color: var(--bone-dim); }
.footer__socials a:hover { color: var(--blood); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,0.6); opacity: 0; transition: opacity 0.25s ease; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(100%, 400px); z-index: 2;
  background: var(--ink-2); border-left: 3px solid var(--blood);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s cubic-bezier(.3,.8,.3,1);
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.4rem; }
.drawer__close { font-size: 1.2rem; color: var(--bone-dim); }
.drawer__close:hover { color: var(--blood); }
.drawer__items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.drawer__empty { color: var(--bone-dim); text-align: center; margin-top: 40px; }
.cart-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cart-item__img { width: 54px; height: 54px; object-fit: cover; border: 1px solid var(--line); flex: none; background: var(--ink); }
.cart-item__main { flex: 1; min-width: 0; }
.cart-item__name { font-family: "Oswald"; font-weight: 600; line-height: 1.2; }
.cart-item__meta { color: var(--bone-dim); font-size: 0.82rem; margin-bottom: 8px; }
.cart-item__price { font-family: "Anton", sans-serif; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty__btn {
  width: 26px; height: 26px; display: grid; place-items: center; line-height: 1;
  border: 1.5px solid var(--line); color: var(--bone); font-size: 1.1rem; background: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.qty__btn:hover { border-color: var(--blood); color: var(--blood); }
.qty__n { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.08em; min-width: 18px; text-align: center; font-size: 1.05rem; }
.cart-item__rm { color: var(--bone-dim); font-size: 0.78rem; text-decoration: underline; margin-left: 6px; }
.cart-item__rm:hover { color: var(--blood); }
.drawer__foot { padding: 22px; border-top: 1px solid var(--line); }
.drawer__summary { margin: 2px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.sum-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--bone-dim); letter-spacing: 0.01em; }
.sum-row--off { color: var(--gold); }
.coupon { display: flex; gap: 8px; margin-bottom: 8px; }
.coupon input {
  flex: 1; min-width: 0; background: var(--ink); border: 2px solid var(--line); color: var(--bone);
  padding: 10px 12px; font-family: "Oswald"; text-transform: uppercase; letter-spacing: 0.06em;
}
.coupon input:focus { outline: none; border-color: var(--blood); }
.coupon__msg { min-height: 1em; font-size: 0.82rem; color: var(--gold); margin-bottom: 10px; letter-spacing: 0.02em; }
.coupon__msg.err { color: var(--blood); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.drawer__total strong { font-family: "Anton", sans-serif; font-size: 1.8rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 140%);
  background: var(--blood); color: #fff; padding: 14px 26px; z-index: 120;
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.1em; font-size: 1.05rem;
  box-shadow: var(--shadow); transition: transform 0.3s cubic-bezier(.3,1.3,.5,1);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   GLOBAL MANGA BACKGROUND TEXTURE  (image 3 effect)
   ============================================================ */
.site-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("../assets/img/manga-flex.jpg") center / cover no-repeat;
  opacity: 0.07; filter: grayscale(1) contrast(1.3);
}

/* ============================================================
   HERO SLIDESHOW  (replaces the SVG fighter panel)
   ============================================================ */
.slider {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  border: 3px solid var(--bone);
  box-shadow: 10px 10px 0 var(--blood), var(--shadow);
  overflow: hidden;
  background: var(--ink-2);
}
.slider__viewport { position: absolute; inset: 0; overflow: hidden; z-index: 2; }
.slider__track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(.6, .05, .2, 1); }
.slide { position: relative; min-width: 100%; height: 100%; margin: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.slide figcaption {
  position: absolute; left: 0; bottom: 0; width: 100%;
  padding: 46px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  font-family: "Anton", sans-serif; font-size: 1.35rem; letter-spacing: 0.02em;
  line-height: 1; color: var(--bone); display: flex; flex-direction: column; gap: 4px;
}
.slide__jp { font-family: "Noto Sans JP", sans-serif; font-weight: 900; color: var(--blood); font-size: 0.85rem; letter-spacing: 0.12em; }

.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: rgba(10, 10, 12, 0.66); border: 2px solid var(--bone); color: var(--bone);
  font-size: 1.7rem; line-height: 1; padding-bottom: 4px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.slider__nav:hover { background: var(--blood); border-color: var(--blood); color: #fff; }
.slider__nav.prev { left: 10px; }
.slider__nav.next { right: 10px; }

.slider__dots { position: absolute; top: 14px; right: 14px; z-index: 5; display: flex; gap: 7px; }
.slider__dots button {
  width: 11px; height: 11px; border-radius: 50%; padding: 0;
  background: rgba(242, 239, 230, 0.45); border: 1px solid rgba(0, 0, 0, 0.4);
  cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.slider__dots button.active { background: var(--blood); transform: scale(1.35); }

/* ============================================================
   THE LEGEND  —  real art in the frame
   ============================================================ */
.legend__art { position: relative; width: min(100%, 420px); }
.legend__img {
  position: relative; z-index: 2; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; filter: contrast(1.05) saturate(1.05);
}
.legend__chip {
  position: absolute; right: -14px; bottom: -22px; z-index: 5;
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--blood); background: var(--ink); box-shadow: var(--shadow);
}
.legend__chip img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ============================================================
   CINEMATIC BANNER
   ============================================================ */
.banner {
  position: relative; min-height: clamp(340px, 54vh, 560px);
  display: grid; place-items: center; text-align: center; overflow: hidden;
  border-block: 3px solid var(--ink);
}
.banner__media {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(rgba(10, 10, 12, 0.6), rgba(10, 10, 12, 0.84)),
    url("../assets/img/hero-rooftop.jpg") center / cover no-repeat;
  background-attachment: fixed;
}
.banner__inner { position: relative; z-index: 2; max-width: 920px; padding: 70px 0; }
.banner__jp { display: block; color: var(--gold); font-size: 1.1rem; margin-bottom: 18px; letter-spacing: 0.24em; }
.banner__quote { font-family: "Anton", sans-serif; font-size: clamp(1.8rem, 4.6vw, 3.5rem); line-height: 1.04; text-transform: uppercase; }
.banner__by { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.22em; color: var(--bone-dim); margin-top: 22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .legend__inner { grid-template-columns: 1fr; }
  .legend__art { display: grid; place-items: center; }
  .grid--products { grid-template-columns: repeat(2, 1fr); }
  .grid--code { grid-template-columns: repeat(2, 1fr); }
  .grid--stacks { grid-template-columns: 1fr; }
  .grid--voices { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; background: var(--ink-2);
    flex-direction: column; gap: 0; padding: 10px 20px 20px;
    border-bottom: 2px solid var(--blood); transform: translateY(-120%);
    transition: transform 0.3s ease; z-index: 49;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; }
  .burger { display: flex; }
  .grid--stats { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .section { padding: 80px 0; }
  .marquee__track { font-size: 1.4rem; }

  /* mobile hero background = image 5 (demon back, portrait) */
  .hero__fx {
    background:
      linear-gradient(180deg, rgba(10, 10, 12, 0.6) 0%, rgba(10, 10, 12, 0.82) 55%, var(--ink) 100%),
      url("../assets/img/demon-back.png") center top / cover no-repeat,
      var(--ink);
  }
  .hero { padding-top: 40px; }
  /* parallax is janky on mobile — pin it */
  .banner__media { background-attachment: scroll; }
  .legend__chip { width: 92px; height: 92px; right: 6px; bottom: -16px; }
  .slider__nav { width: 36px; height: 36px; font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .grid--products { grid-template-columns: 1fr; }
  .grid--code { grid-template-columns: 1fr; }
  .hero__trust { gap: 20px; }
  .float-badge { transform: scale(0.85); }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05ms !important; }
  html { scroll-behavior: auto; }
}
