/* ==========================================================================
   RoninGT — "Blade & Ember"
   Black lacquer, chrome steel, blood red, ember orange.
   ========================================================================== */
@view-transition { navigation: auto; }

:root {
  --void: #060608;
  --lacquer: #0d0c10;
  --steel-900: #121217;
  --steel-800: #1a1a21;
  --steel-700: #24242d;
  --steel-500: #4a4b55;
  --silver-400: #8b8f99;
  --silver: #c9ccd3;
  --silver-100: #eef0f3;
  --blood: #d0161f;
  --crimson: #7a0a10;
  --ember: #ff6a13;
  --flare: #ffa040;
  --live: #ff2a36;

  --chrome: linear-gradient(180deg, #ffffff 0%, #d9dce2 28%, #8d929c 50%, #e9ebef 66%, #5b5f69 100%);
  --heat: linear-gradient(100deg, var(--blood) 0%, var(--ember) 55%, var(--flare) 100%);
  --glow: 1;

  --f-display: "Archivo", "Arial Black", sans-serif;
  --f-body: "Familjen Grotesk", "Helvetica Neue", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;
  --f-kanji: "Shippori Mincho B1", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 2px;
  --cut: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-snap: cubic-bezier(.7, 0, .2, 1);
  --header-h: 72px;
  color-scheme: dark;
}
:root[data-glow="medium"] { --glow: .6; }
:root[data-glow="low"] { --glow: .3; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--void); color: var(--silver);
  font: 400 1.0625rem/1.65 var(--f-body); letter-spacing: .005em;
  overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blood); color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 10000; background: var(--ember); color: #000; padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase;
  line-height: .9; letter-spacing: -.01em; color: var(--silver-100); margin: 0;
}
h1 { font-size: clamp(2.6rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 4.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.05; }
p { margin: 0 0 1em; }
.chrome {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heat { background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--silver-400); }
.hud {
  font: 500 .6875rem/1.2 var(--f-mono); font-stretch: 87.5%; letter-spacing: .22em; text-transform: uppercase; color: var(--silver-400);
}
.hud b { color: var(--ember); font-weight: 600; }
.kanji { font-family: var(--f-kanji); font-weight: 800; line-height: 1; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--silver); max-width: 60ch; }
.muted { color: var(--silver-400); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--silver-100); --bd: var(--steel-500);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em; border: 0; cursor: pointer; isolation: isolate;
  font: 800 .8125rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg); background: var(--bg);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .25s var(--ease), filter .25s var(--ease), color .2s;
}
.btn::before { /* hairline border that respects the clipped corners */
  content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; background: var(--bd);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  clip-path: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn-ember { --bg: var(--heat); --fg: #120604; --bd: transparent; filter: drop-shadow(0 0 calc(22px * var(--glow)) rgba(255, 90, 20, calc(.45 * var(--glow)))); }
.btn-ember:hover { filter: drop-shadow(0 0 calc(34px * var(--glow)) rgba(255, 90, 20, calc(.7 * var(--glow)))) brightness(1.06); }
.btn-steel { --bd: linear-gradient(135deg, #fff, #6b6f79 40%, #d4d7dd 60%, #4a4d55); background: rgba(255,255,255,.03); }
.btn-steel:hover { --fg: #fff; background: rgba(255,255,255,.07); }
.btn-blood { --bg: var(--blood); --fg: #fff; --bd: transparent; }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .6875rem; --cut: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font: 700 .75rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ember); }
.link-arrow:hover { color: var(--flare); }
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* ---------- announcement + live banner ---------- */
.announce { position: relative; z-index: 60; background: var(--heat); color: #140603; text-align: center; font: 700 .75rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 9px var(--gutter); }
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.livebar {
  display: none; position: relative; z-index: 61; background: #120203; border-bottom: 1px solid var(--blood);
  font: 600 .75rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}
.livebar.is-live { display: block; }
.livebar a { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px var(--gutter); }
.livebar .title { color: var(--silver-100); text-transform: none; letter-spacing: .02em; font-family: var(--f-body); font-size: .9rem; max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,42,54,.7); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,42,54,0); } 100% { box-shadow: 0 0 0 0 rgba(255,42,54,0); } }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--steel-700); font: 600 .625rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--silver); background: rgba(10,10,14,.6); }
.pill-live { border-color: var(--blood); color: #fff; background: rgba(208,22,31,.18); }
.pill-ember { border-color: rgba(255,106,19,.5); color: var(--flare); }
.pill-lock { border-color: rgba(255,106,19,.45); color: var(--flare); background: rgba(255,106,19,.08); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid { background: rgba(6,6,8,.78); backdrop-filter: blur(14px) saturate(1.3); border-color: rgba(255,255,255,.06); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 900 1.45rem/1 var(--f-display); font-stretch: 125%; letter-spacing: -.02em; flex: none; view-transition-name: brand; }
.brand .mark { width: 34px; height: 34px; }
.brand .gt { background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 10px 12px; font: 600 .75rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--silver-400); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--heat); transform: scaleX(0) skewX(-30deg); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--silver-100); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1) skewX(-30deg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--steel-700); background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--silver-400); background: rgba(255,255,255,.06); }
.icon-btn .ico { width: 20px; height: 20px; }
.badge-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ember); color: #000; font: 700 .6875rem/20px var(--f-mono); text-align: center; transform: scale(0); transition: transform .3s var(--ease); }
.badge-count.has { transform: scale(1); }
.badge-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-toggle { display: none; }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: rgba(6,6,8,.97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: circle(0 at calc(100% - 44px) 36px); transition: clip-path .6s var(--ease-snap); visibility: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
.mobile-menu a.big { font: 900 clamp(2.2rem, 11vw, 4rem)/1 var(--f-display); font-stretch: 125%; text-transform: uppercase; color: var(--silver-100); padding: 8px 0; display: flex; align-items: baseline; gap: 14px; }
.mobile-menu a.big span { font: 500 .7rem/1 var(--f-mono); color: var(--ember); letter-spacing: .2em; }
.mobile-menu .socials-row { margin-top: auto; }
.menu-close { position: absolute; top: 14px; right: var(--gutter); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background:
  radial-gradient(60% 70% at 72% 40%, rgba(208,22,31,.28), transparent 70%),
  radial-gradient(40% 50% at 20% 85%, rgba(255,106,19,.16), transparent 70%),
  linear-gradient(180deg, #08070a, var(--void)); }
#embers { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: calc(.55 + .45 * var(--glow)); }
.hero-kanji { position: absolute; z-index: -1; right: 2vw; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-size: clamp(9rem, 26vw, 24rem); color: transparent; -webkit-text-stroke: 1px rgba(201,204,211,.08); user-select: none; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(20px, 4vw, 60px); align-items: center; padding-block: clamp(28px, 5vh, 70px); }
.hero-title { font-size: clamp(3.1rem, 7.2vw, 7.6rem); line-height: .8; letter-spacing: -.035em; margin: 14px 0 24px; position: relative; z-index: 3; width: max-content; white-space: nowrap; display: flex; align-items: baseline; max-width: calc(100vw - 2 * var(--gutter)); }
.hero-title .line { display: inline-block; position: relative; width: max-content; padding-right: .04em; }
.hero-title .line-2 { padding-left: 0; }
/* the katana slash: a red blade line that cuts through the wordmark on load */
.slash { position: absolute; left: -6%; right: -14%; top: 52%; height: 3px; background: linear-gradient(90deg, transparent, var(--blood) 15%, #fff 50%, var(--ember) 85%, transparent);
  transform: rotate(-8deg) scaleX(0); transform-origin: left; box-shadow: 0 0 calc(24px * var(--glow)) rgba(255,40,30,.9); z-index: 2; pointer-events: none; }
.is-loaded .slash { animation: slash 1.1s .55s var(--ease-snap) forwards; }
@keyframes slash { 0% { transform: rotate(-8deg) scaleX(0); opacity: 1; } 55% { transform: rotate(-8deg) scaleX(1); opacity: 1; } 100% { transform: rotate(-8deg) scaleX(1); opacity: .0; } }
.hero-title .half { display: block; }
.is-loaded .hero-title .line-1 { animation: cut-a 1.1s .9s var(--ease) both; }
.is-loaded .hero-title .line-2 { animation: cut-b 1.1s .9s var(--ease) both; }
@keyframes cut-a { 0% { transform: translate(0,0); } 30% { transform: translate(-1.2%, -2%); filter: brightness(1.8); } 100% { transform: translate(0,0); } }
@keyframes cut-b { 0% { transform: translate(0,0); } 30% { transform: translate(1.6%, 2%); filter: brightness(1.8); } 100% { transform: translate(0,0); } }
.hero .lede { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { position: relative; aspect-ratio: 4 / 5; max-height: 74vh; justify-self: end; width: 100%; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 42%, #000 55%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 42%, #000 55%, transparent 100%);
  filter: contrast(1.08) saturate(1.05); }
.hero-figure::before { /* red rim light */ content: ""; position: absolute; inset: 8% 0 10% 10%; z-index: -1; background: radial-gradient(closest-side, rgba(208,22,31,.55), transparent); filter: blur(30px); }
.hero-figure .frame { position: absolute; inset: 0; border: 1px solid rgba(201,204,211,.14); clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%); pointer-events: none; }
.hero-figure .tag { position: absolute; left: -18px; bottom: 12%; transform: rotate(-90deg); transform-origin: left bottom; white-space: nowrap; }
.hero-live { position: absolute; inset: 0; display: none; }
.hero-live iframe { width: 100%; height: 100%; border: 0; }
.hero-figure.is-live img { opacity: 0; }
.hero-figure.is-live .hero-live { display: block; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1px; margin-top: 34px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); max-width: 720px; }
.stat { flex: 1 1 120px; padding: 16px 18px; background: rgba(6,6,8,.82); }
.stat strong { display: block; font: 900 1.7rem/1 var(--f-display); font-stretch: 125%; color: var(--silver-100); margin-bottom: 6px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--ember), transparent); animation: drip 2s infinite var(--ease); transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* next-up countdown card (hero) */
.next-up { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 18px; padding: 14px 16px; max-width: 720px; background: linear-gradient(90deg, rgba(208,22,31,.14), rgba(255,255,255,.02)); border-left: 3px solid var(--blood); }
.countdown { display: flex; gap: 10px; font: 700 1.25rem/1 var(--f-mono); color: var(--silver-100); }
.countdown span small { display: block; font-size: .55rem; letter-spacing: .2em; color: var(--silver-400); margin-top: 4px; }

/* ---------- marquee (caution tape X) ---------- */
.tape { position: relative; height: 170px; overflow: hidden; margin-block: clamp(20px, 3vw, 40px) 0; }
.tape + .section { padding-top: clamp(30px, 5vw, 70px); }
.tape-band { position: absolute; left: -5%; width: 110%; top: 50%; display: flex; overflow: hidden; padding: 14px 0; white-space: nowrap; }
.tape-band.a { background: var(--ember); color: #120502; transform: translateY(-50%) rotate(-3.2deg); z-index: 2; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.tape-band.b { background: var(--steel-800); color: var(--silver); transform: translateY(-50%) rotate(2.6deg); border-block: 1px solid var(--steel-700); }
.tape-track { display: flex; flex: none; gap: 34px; padding-right: 34px; animation: tape 40s linear infinite; font: 900 1.6rem/1 var(--f-display); font-stretch: 125%; text-transform: uppercase; }
.tape-band.b .tape-track { animation-direction: reverse; animation-duration: 55s; }
.tape-track span { display: inline-flex; align-items: center; gap: 34px; }
.tape-track span::after { content: "✦"; font-size: .8em; }
@keyframes tape { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 130px); }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px 28px; margin-bottom: clamp(30px, 4vw, 54px); }
.sec-head .num { display: grid; justify-items: center; gap: 6px; padding-right: 22px; border-right: 1px solid var(--steel-700); }
.sec-head .num .kanji { font-size: 2.2rem; color: var(--blood); }
.sec-head h2 { max-width: 14ch; }
.sec-head p { grid-column: 2; max-width: 52ch; margin: 0; color: var(--silver-400); }
.sec-head .link-arrow { grid-row: 1; grid-column: 3; align-self: end; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--steel-700) 20%, var(--steel-700) 80%, transparent); border: 0; margin: 0; }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-snap); }
[data-reveal="clip"].in { clip-path: inset(0 0 0 0); }

/* ---------- grids ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 26px); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* ---------- panels / steel ---------- */
.panel { position: relative; background: linear-gradient(160deg, var(--steel-800), var(--steel-900) 60%); border: 1px solid rgba(255,255,255,.06);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.panel-pad { padding: clamp(20px, 3vw, 34px); }

/* ---------- product card ---------- */
.product-card { position: relative; display: flex; flex-direction: column; gap: 14px; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.product-card .media { position: relative; aspect-ratio: 1; overflow: hidden; background: radial-gradient(80% 80% at 50% 35%, #26262e, #121216);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.product-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.12) 50%, transparent 65%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.product-card:hover .media::after { transform: translateX(100%); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.product-card .alt-img { position: absolute; inset: 0; opacity: 0; }
.product-card:hover img { transform: scale(1.05); }
.product-card:hover .alt-img { opacity: 1; }
.product-card .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.product-card h3 { font-size: 1rem; font-stretch: 112%; letter-spacing: .01em; }
.price { font: 700 .95rem/1 var(--f-mono); color: var(--flare); white-space: nowrap; }
.price s { color: var(--silver-400); font-weight: 400; margin-right: 6px; }
.product-card .flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.product-card .quick { position: absolute; right: 12px; bottom: 12px; z-index: 2; opacity: 0; transform: translateY(10px); transition: .35s var(--ease); }
.product-card:hover .quick, .product-card:focus-within .quick { opacity: 1; transform: none; }

/* ---------- story card ---------- */
.story-card { position: relative; display: flex; flex-direction: column; min-height: 100%; background: var(--steel-900); border: 1px solid rgba(255,255,255,.06); transition: border-color .3s, transform .5s var(--ease); overflow: hidden; }
.story-card:hover { border-color: rgba(255,106,19,.45); transform: translateY(-4px); }
.story-card .cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0e0e12; }
.story-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; filter: saturate(.85) contrast(1.05); }
.story-card:hover .cover img { transform: scale(1.06); filter: saturate(1.05); }
.gen-cover { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center;
  background: radial-gradient(120% 90% at 85% 10%, rgba(208,22,31,.45), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(255,106,19,.25), transparent 60%), #0c0b0f; }
.gen-cover .kanji { position: absolute; right: -4%; bottom: -14%; font-size: 9rem; color: rgba(255,255,255,.04); }
.gen-cover span { font: 900 clamp(1.3rem, 2.4vw, 1.9rem)/.95 var(--f-display); font-stretch: 125%; text-transform: uppercase; color: var(--silver-100); }
.story-card .body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.story-card h3 { font-size: 1.2rem; }
.story-card .dek { color: var(--silver-400); font-size: .95rem; margin: 0; }
.story-card .foot { margin-top: auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 6px; }
.story-card .lockflag { position: absolute; top: 12px; right: 12px; z-index: 2; }
.story-card.feature { grid-column: span 2; }
.story-card.feature .cover { aspect-ratio: 21 / 10; }
.story-card.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }

/* ---------- event rows ---------- */
.events { display: grid; gap: 10px; }
.event-row { position: relative; display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; padding: 16px 20px 16px 0; background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.05); transition: border-color .3s, background .3s; }
.event-row:hover { border-color: rgba(255,106,19,.35); background: linear-gradient(90deg, rgba(255,106,19,.08), rgba(255,255,255,.01)); }
.event-row.irl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ember); }
.event-row.stream::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blood); }
.event-row.cancelled { opacity: .5; }
.event-row.cancelled h3 { text-decoration: line-through; text-decoration-color: var(--blood); }
.date-block { display: grid; justify-items: center; gap: 2px; border-right: 1px solid var(--steel-700); padding: 4px 0; }
.date-block .dow { font: 600 .625rem/1 var(--f-mono); letter-spacing: .24em; color: var(--ember); text-transform: uppercase; }
.date-block .day { font: 900 2.4rem/1 var(--f-display); font-stretch: 125%; color: var(--silver-100); }
.date-block .mon { font: 500 .625rem/1 var(--f-mono); letter-spacing: .24em; color: var(--silver-400); text-transform: uppercase; }
.event-row h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.event-row .where { color: var(--silver-400); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.event-row .where .ico { color: var(--ember); }
.event-row .acts { display: flex; gap: 8px; align-items: center; }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; align-items: stretch; }
.tier { --c: var(--ember); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.07); transition: transform .5s var(--ease), border-color .3s; overflow: hidden; }
.tier::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); box-shadow: 0 0 calc(24px * var(--glow)) var(--c); }
.tier:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.tier.featured { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, transparent), rgba(255,255,255,.01) 60%); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.tier .flag { position: absolute; top: 14px; right: -34px; transform: rotate(40deg); background: var(--c); color: #120502; font: 800 .5625rem/1 var(--f-mono); letter-spacing: .2em; padding: 6px 40px; }
.tier h3 { font-size: 1.15rem; }
.tier .amount { white-space: nowrap; font: 900 clamp(2.2rem, 3.2vw, 3rem)/1 var(--f-display); font-stretch: 125%; color: var(--silver-100); }
.tier .amount small { font: 500 .75rem/1 var(--f-mono); color: var(--silver-400); letter-spacing: .12em; margin-left: 6px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.perks li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.perks li::before { content: ""; width: 10px; height: 10px; margin-top: 7px; background: var(--c); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.tier .btn { margin-top: auto; }

/* ---------- socials ---------- */
.socials-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-chip { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--steel-700); color: var(--silver); transition: color .2s, border-color .2s, transform .3s var(--ease), background .2s; }
.social-chip:hover { color: #fff; border-color: var(--ember); background: rgba(255,106,19,.1); transform: translateY(-3px) rotate(-4deg); }
.social-chip .ico { width: 20px; height: 20px; }
.social-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.social-tile { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--steel-900); border: 1px solid rgba(255,255,255,.06); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.social-tile::after { content: ""; position: absolute; inset: 0; background: var(--heat); opacity: 0; transition: opacity .35s; z-index: 0; mix-blend-mode: color; }
.social-tile:hover { border-color: rgba(255,106,19,.5); transform: translateY(-3px); }
.social-tile > * { position: relative; z-index: 1; }
.social-tile .ico-wrap { display: grid; place-items: center; width: 52px; height: 52px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.social-tile .ico-wrap .ico { width: 24px; height: 24px; color: var(--silver-100); }
.social-tile strong { display: block; font: 800 1rem/1.1 var(--f-display); font-stretch: 112%; text-transform: uppercase; color: var(--silver-100); }
.social-tile span { font-size: .85rem; color: var(--silver-400); }
.social-tile.featured { border-color: rgba(255,106,19,.25); }

/* ---------- about ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 15%; clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%); filter: grayscale(.25) contrast(1.1); }
.portrait::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; border-right: 2px solid var(--blood); border-bottom: 2px solid var(--blood); pointer-events: none; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); }
.role { padding: 28px 24px; background: var(--void); transition: background .3s; }
.role:hover { background: #0e0c0d; }
.role .n { font: 600 .6875rem/1 var(--f-mono); color: var(--ember); letter-spacing: .2em; }
.role h3 { margin: 14px 0 10px; }
.role p { margin: 0; color: var(--silver-400); font-size: .95rem; }
.prose { font-size: 1.125rem; line-height: 1.75; color: var(--silver); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose a { color: var(--flare); text-decoration: underline; text-decoration-color: rgba(255,160,64,.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--flare); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--blood); font: 600 1.35rem/1.45 var(--f-body); color: var(--silver-100); }
.prose img, .prose iframe { width: 100%; margin-block: 1.6em; }
.prose iframe { aspect-ratio: 16/9; height: auto; border: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; height: 22px; margin: 2.2em 0; background: center / 60px 2px no-repeat linear-gradient(90deg, var(--blood), var(--ember)); }
.prose strong { color: var(--silver-100); }
.prose code { font: .9em var(--f-mono); background: var(--steel-800); padding: 2px 6px; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose.dropcap > p:first-of-type::first-letter { float: left; font: 900 4.6em/.8 var(--f-display); font-stretch: 125%; margin: .06em .12em 0 0; color: var(--ember); }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.book { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.book .cover { aspect-ratio: 2/3; background: linear-gradient(160deg, var(--steel-700), var(--steel-900)); box-shadow: 10px 10px 0 rgba(208,22,31,.35); overflow: hidden; display: grid; place-items: center; text-align: center; padding: 10px; font: 900 .9rem/1 var(--f-display); text-transform: uppercase; color: var(--silver); }
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
/* Books: a physical-looking 3D cover (front, spine shade, page block) that squares up on hover */
.book-3d { display: block; perspective: 1400px; width: min(100%, 380px); justify-self: center; }
.book-3d-sm { width: min(100%, 250px); }
.book-3d-inner { position: relative; display: block; aspect-ratio: 2 / 3; transform: rotateY(-24deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .7s var(--ease);
  box-shadow: 26px 30px 50px rgba(0,0,0,.7), 0 0 calc(70px * var(--glow)) rgba(208,22,31,.28); }
.book-3d:hover .book-3d-inner, .book-3d:focus-visible .book-3d-inner { transform: rotateY(-6deg) rotateX(1deg) translateY(-6px); }
.book-3d-inner img, .book-3d-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px 5px 5px 2px; }
.book-3d-fallback { display: grid; place-items: center; padding: 18px; text-align: center; background: linear-gradient(160deg, var(--steel-700), var(--void)); font: 900 1.4rem/1 var(--f-display); text-transform: uppercase; color: var(--silver-100); }
.book-3d-inner::before { /* spine crease + gloss */ content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 2px 5px 5px 2px;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0, rgba(255,255,255,.18) 2.5%, rgba(0,0,0,.25) 5%, transparent 9%), linear-gradient(115deg, rgba(255,255,255,.14), transparent 40%); }
.book-3d-inner::after { /* page block */ content: ""; position: absolute; top: 1.5%; bottom: 1.5%; right: 0; width: 34px; transform-origin: right; transform: translateX(100%) rotateY(90deg) translateX(-100%) translateX(17px);
  background: repeating-linear-gradient(90deg, #e9e4d8 0 1px, #cfc8b8 1px 2px); }
.book-title { display: grid; gap: .1em; font-size: clamp(2.1rem, 4.6vw, 4.2rem); line-height: .92; margin: 12px 0 10px; }
.book-title .heat { font-size: .52em; letter-spacing: .02em; }
.book-by { font: 600 .75rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--silver-400); margin: 0 0 22px; }
.book-blurb p { font-size: 1.05rem; color: var(--silver); max-width: 62ch; }
.book-feature-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.book-spot { position: relative; padding-block: clamp(60px, 9vw, 120px); overflow: hidden; isolation: isolate; border-block: 1px solid var(--steel-800);
  background: radial-gradient(50% 80% at 18% 50%, rgba(208,22,31,.22), transparent 70%), radial-gradient(40% 60% at 85% 30%, rgba(255,106,19,.08), transparent 70%), #08070a; }
.book-spot::before { content: "書"; position: absolute; z-index: -1; right: -2vw; bottom: -12vw; font: 400 clamp(14rem, 34vw, 30rem)/1 "Shippori Mincho B1", serif; color: transparent; -webkit-text-stroke: 1px rgba(201,204,211,.07); pointer-events: none; }
.book-spot-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.book-spot .lede { max-width: 58ch; }
@media (max-width: 860px) {
  .book-feature-grid, .book-spot-grid { grid-template-columns: 1fr; }
  .book-3d { width: min(70%, 300px); }
  .book-3d-sm { width: min(56%, 220px); }
}
@media (prefers-reduced-motion: reduce) { .book-3d-inner { transition: none; } }

/* ---------- inner page header ---------- */
.page-head { position: relative; padding: clamp(60px, 10vw, 140px) 0 clamp(36px, 5vw, 60px); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 0%, rgba(208,22,31,.25), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(255,106,19,.08), transparent 70%); }
.page-head .kanji-bg { position: absolute; right: var(--gutter); top: 30px; font-size: clamp(6rem, 18vw, 15rem); color: transparent; -webkit-text-stroke: 1px rgba(201,204,211,.07); z-index: -1; pointer-events: none; }
.page-head h1 { margin: 16px 0 18px; }
.crumbs { display: flex; gap: 10px; align-items: center; }
.crumbs a:hover { color: var(--silver-100); }

/* ---------- story reading ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; background: var(--heat); transform-origin: left; transform: scaleX(0); }
.story-head { padding-top: clamp(50px, 8vw, 110px); }
.story-head h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); margin: 18px 0 20px; view-transition-name: var(--vt, none); }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.story-cover { margin: clamp(30px, 5vw, 56px) auto; max-width: 1100px; aspect-ratio: 21/9; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); }
.story-cover img { width: 100%; height: 100%; object-fit: cover; }
.cw { margin-block: 26px; padding: 14px 18px; border: 1px dashed rgba(255,106,19,.45); color: var(--flare); font-size: .95rem; }
.gate { position: relative; margin-top: -120px; padding-top: 140px; }
.gate::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; background: linear-gradient(transparent, var(--void) 85%); pointer-events: none; }
.gate-ghost { filter: blur(6px); opacity: .35; user-select: none; pointer-events: none; }
.gate-ghost i { display: block; height: 14px; margin: 14px 0; background: var(--steel-700); }
.gate-card { position: relative; text-align: center; padding: clamp(28px, 5vw, 54px); background: radial-gradient(90% 120% at 50% 0%, rgba(208,22,31,.22), transparent 70%), var(--steel-900); border: 1px solid rgba(255,106,19,.3); }
.gate-card .lock { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid rgba(255,106,19,.5); color: var(--ember); transform: rotate(45deg); }
.gate-card .lock .ico { transform: rotate(-45deg); width: 26px; height: 26px; }
.gate-card h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.gate-card .tiers { margin: 26px 0 8px; text-align: left; }
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 50px; }
.series-nav a { padding: 18px 20px; border: 1px solid var(--steel-700); transition: border-color .2s; }
.series-nav a:hover { border-color: var(--ember); }
.series-nav a.next { text-align: right; grid-column: 2; }
.admin-ribbon { position: fixed; bottom: 16px; left: 16px; z-index: 85; display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #000; border: 1px solid var(--ember); font: 600 .6875rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.admin-ribbon a { color: var(--flare); }

/* ---------- store ---------- */
.store-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; margin-bottom: 28px; border-block: 1px solid var(--steel-800); position: sticky; top: var(--header-h); z-index: 20; background: rgba(6,6,8,.9); backdrop-filter: blur(10px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border: 1px solid var(--steel-700); font: 600 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--silver-400); transition: .2s; }
.chip:hover { color: var(--silver-100); border-color: var(--silver-400); }
.chip.on { color: #120502; background: var(--ember); border-color: var(--ember); }
.demo-note { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 22px; border: 1px dashed rgba(255,160,64,.5); color: var(--flare); font-size: .92rem; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
.gallery { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h) + 20px); }
.gallery .main { aspect-ratio: 1; background: radial-gradient(80% 80% at 50% 35%, #26262e, #111115); overflow: hidden; cursor: zoom-in; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.gallery .main.zoom img { transform: scale(1.8); cursor: zoom-out; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 1px solid var(--steel-700); background: #15151a; cursor: pointer; opacity: .6; transition: .2s; }
.thumbs button.on, .thumbs button:hover { opacity: 1; border-color: var(--ember); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 14px 0 16px; }
.buy .price { font-size: 1.6rem; }
.opt-group { margin-top: 26px; }
.opt-group legend { margin-bottom: 10px; padding: 0; }
.opt-group { border: 0; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: grid; place-items: center; min-width: 52px; height: 46px; padding: 0 14px; border: 1px solid var(--steel-700); font: 600 .8rem/1 var(--f-mono); transition: .2s; }
.opt input:checked + span { border-color: var(--ember); color: #fff; background: rgba(255,106,19,.14); box-shadow: inset 0 0 0 1px var(--ember); }
.opt input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.opt input:disabled + span { opacity: .35; text-decoration: line-through; }
.opt .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: inline-block; margin-right: 8px; }
.opt span:has(.sw) { display: inline-flex; }
.qty { display: inline-flex; border: 1px solid var(--steel-700); height: 52px; }
.qty button { width: 46px; background: none; border: 0; cursor: pointer; font-size: 1.2rem; color: var(--silver); }
.qty input { width: 52px; text-align: center; background: none; border: 0; font: 700 1rem var(--f-mono); }
.buy-row { display: flex; gap: 10px; margin-top: 26px; }
.buy-row .btn { flex: 1; }
.accordion details { border-top: 1px solid var(--steel-800); }
.accordion summary { cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; font: 700 .75rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.accordion summary::after { content: "+"; color: var(--ember); font-size: 1.1rem; }
.accordion details[open] summary::after { content: "−"; }
.accordion .prose { font-size: .98rem; padding-bottom: 16px; }

/* ---------- cart drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: .35s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--lacquer); border-left: 1px solid rgba(255,106,19,.25); transform: translateX(100%); transition: transform .5s var(--ease-snap); }
.cart-open .drawer { transform: none; }
.cart-open .drawer-scrim { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--steel-800); }
.drawer-head h2 { font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.drawer-foot { padding: 20px 22px 24px; border-top: 1px solid var(--steel-800); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--steel-800); align-items: start; }
.line img, .line .ph { width: 74px; height: 74px; object-fit: cover; background: #16161b; }
.line h4 { margin: 0 0 4px; font: 800 .9rem/1.2 var(--f-display); text-transform: uppercase; color: var(--silver-100); }
.line .v { font-size: .82rem; color: var(--silver-400); }
.line .qty { height: 34px; margin-top: 10px; }
.line .qty button { width: 32px; font-size: 1rem; }
.line .qty input { width: 34px; font-size: .85rem; }
.line .rm { background: none; border: 0; color: var(--silver-400); cursor: pointer; font: 600 .625rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
.line .rm:hover { color: var(--blood); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.1rem var(--f-display); text-transform: uppercase; }
.empty { text-align: center; padding: 60px 10px; color: var(--silver-400); }
.empty .kanji { font-size: 4.5rem; color: var(--steel-700); margin-bottom: 14px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font: 600 .6875rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--silver-400); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; background: rgba(255,255,255,.03); border: 1px solid var(--steel-700); border-radius: 0; color: var(--silver-100);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,106,19,.18); background: rgba(255,255,255,.05); }
.hp { position: absolute; left: -9999px; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 11px 14px; border: 1px solid var(--steel-700); font: 600 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.segmented input:checked + span { background: var(--ember); color: #120502; border-color: var(--ember); }
.segmented input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------- flash / toast ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 95; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #0f0f13; border: 1px solid var(--steel-700); border-left: 3px solid var(--ember); box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: toast-in .5s var(--ease) both; font-size: .95rem; }
.flash.error { border-left-color: var(--blood); }
.flash.success { border-left-color: #2bd46f; }
.flash.out { animation: toast-out .4s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 50px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--steel-700); font: 600 .8rem var(--f-mono); }
.pager .on { background: var(--ember); color: #120502; border-color: var(--ember); }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: clamp(60px, 8vw, 120px); padding: 0 0 30px; border-top: 1px solid var(--steel-800); overflow: hidden; }
.footer-word { display: block; font: 900 clamp(4rem, 17vw, 17rem)/.8 var(--f-display); font-stretch: 125%; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(201,204,211,.16); margin: 40px 0 10px; text-align: center; transition: -webkit-text-stroke-color .5s; user-select: none; }
.footer-word:hover { -webkit-text-stroke-color: rgba(255,106,19,.6); }
.footer-word em { font-style: normal; -webkit-text-stroke: 0; background: var(--heat); -webkit-background-clip: text; background-clip: text; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; padding-top: 30px; }
.footer-grid h4 { margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--silver-400); transition: color .2s; }
.footer-grid a:hover { color: var(--flare); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--steel-800); }

/* ---------- misc ---------- */
.center { text-align: center; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.error-page .code { font: 900 clamp(7rem, 30vw, 20rem)/.8 var(--f-display); font-stretch: 125%; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { position: absolute; inset: 0 -10% 0 auto; width: 70%; max-height: none; z-index: -1; opacity: .38; }
  .hero-figure .tag { display: none; }
  .about-hero, .product-layout { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-card.feature { grid-column: auto; }
}
@media (max-width: 680px) {
  :root { --header-h: 64px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .num { display: none; }
  .sec-head p, .sec-head .link-arrow { grid-column: 1; grid-row: auto; }
  .event-row { grid-template-columns: 72px 1fr; padding-right: 14px; }
  .event-row .acts { grid-column: 1 / -1; padding-left: 14px; }
  .date-block .day { font-size: 1.9rem; }
  .next-up { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tape { height: 130px; }
  .tape-track { font-size: 1.15rem; }
  .book { grid-template-columns: 90px 1fr; }
  .series-nav { grid-template-columns: 1fr; }
  .series-nav a.next { grid-column: 1; }
  .hero-figure { width: 100%; right: -30%; opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  body::after { animation: none; }
}

/* ---------- weekly rotation ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06); }
.week-day { display: grid; align-content: start; gap: 6px; min-height: 120px; padding: 16px 14px; background: var(--void); }
.week-day.on { background: linear-gradient(180deg, rgba(208,22,31,.16), var(--void) 80%); box-shadow: inset 0 2px 0 var(--blood); }
.week-day strong { font: 800 .9rem/1.15 var(--f-display); text-transform: uppercase; color: var(--silver-100); margin-top: 6px; }
.week-day .muted { font-size: .8rem; }
@media (max-width: 900px) { .week { grid-template-columns: repeat(2, 1fr); } .week-day { min-height: 0; } }
