/* ==========================================================================
   Me'Ani — anime store
   A beige washi sky with ink-wash mountains and a crimson hanafuda sun,
   frosted cream glass panels, iOS-style spring motion, logo crimson as the accent.
   ========================================================================== */

:root {
  --bg: #F1E8DA;           /* beige washi page */
  --bg-2: #E9DECD;         /* deeper beige */
  --bg-3: #FBF6EE;         /* raised cream */
  --ink: #2A2024;          /* text */
  --ink-2: #5E5257;        /* secondary text */
  --ink-3: #85787B;        /* quiet text */
  --beni: #B3242B;         /* logo crimson */
  --beni-btn: #B3242B;     /* crimson button */
  --beni-ink: #8E1B21;     /* crimson hover / error text */
  --sun: #C7363E;          /* hanafuda sun */
  --sakura: #E893A7;
  --wa: #1FAF5A;           /* WhatsApp green */
  --line: rgba(42, 32, 36, .11);
  --line-2: rgba(42, 32, 36, .2);
  --glass: rgba(255, 251, 245, .58);
  --glass-strong: rgba(251, 246, 238, .86);

  /* paper tones, used by the shoji loading screen */
  --paper: #F8F3EC;
  --paper-ink: #8B8384;
  --logo-red: #B3242B;

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 28px;

  /* iOS-like springs (fallbacks first, real springs below where supported) */
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --spring-soft: cubic-bezier(.25, 1.05, .4, 1);
  --ease-out: cubic-bezier(.22, .7, .2, 1);
  --ease-in: cubic-bezier(.45, 0, .85, .3);
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);   /* calm, no overshoot: big surfaces */
  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0.0, 0.0256, 0.0935, 0.1912, 0.3074, 0.4324, 0.5581, 0.6781, 0.7879, 0.8841, 0.9652, 1.0303, 1.0797, 1.1145, 1.136, 1.1462, 1.147, 1.1404, 1.1283, 1.1126, 1.0947, 1.0761, 1.0577, 1.0406, 1.0252, 1.0118, 1.0009, 0.9922, 0.9858, 0.9815, 0.9791, 0.9782, 0.9786, 0.9799, 0.982, 0.9844, 0.9872, 0.9899, 0.9926, 0.995, 0.9971, 0.999, 1.0004, 1.0016, 1);
    --spring-soft: linear(0.0, 0.0114, 0.042, 0.0869, 0.142, 0.204, 0.2699, 0.3374, 0.4048, 0.4705, 0.5335, 0.5931, 0.6486, 0.6997, 0.7462, 0.7882, 0.8257, 0.8589, 0.8879, 0.9131, 0.9346, 0.953, 0.9683, 0.981, 0.9914, 0.9997, 1.0062, 1.0112, 1.0148, 1.0173, 1.0189, 1.0197, 1.0199, 1.0197, 1.019, 1.0181, 1.017, 1.0157, 1.0144, 1.0131, 1.0117, 1.0104, 1.0092, 1.008, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
html.is-loading { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .18 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--beni); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
main, .site-footer { position: relative; z-index: 2; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.04; letter-spacing: -.012em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -.005em; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 32em; }
.jp { font-family: var(--serif); font-weight: 600; letter-spacing: .08em; }

/* ---------- motion helpers ---------- */
.press { transition: transform .55s var(--spring), background-color .2s, color .2s, border-color .2s, box-shadow .3s; }
.press:active { transform: scale(.95); transition-duration: .08s; }

html.js .intro { opacity: 0; transform: translate3d(0, 24px, 0) scale(.97); }
html.js.is-ready .intro {
  opacity: 1; transform: none;
  transition: opacity .55s ease calc(var(--i, 0) * 80ms), transform 1s var(--spring) calc(var(--i, 0) * 80ms);
}
html.js .reveal { opacity: 0; transform: translate3d(0, 30px, 0) scale(.97); }
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease calc(var(--d, 0) * 70ms), transform 1s var(--spring) calc(var(--d, 0) * 70ms);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 15.5px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--beni-btn); color: #fff; box-shadow: 0 12px 28px -14px rgba(179, 36, 43, .75), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { background: #C42E37; box-shadow: 0 16px 34px -14px rgba(179, 36, 43, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-quiet { border-color: var(--line-2); background: rgba(42, 32, 36, .04); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-quiet:hover { background: rgba(42, 32, 36, .09); border-color: rgba(42, 32, 36, .31); }
.btn-light { background: #FFF7EC; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 30px -12px rgba(31, 175, 90, .7); }
.btn-wa:hover { background: #22BF62; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { color: var(--beni); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ==========================================================================
   Night scene (fixed behind the page) + effects canvas
   ========================================================================== */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 12%, rgba(240, 160, 140, .32), rgba(240, 160, 140, 0) 70%),
    radial-gradient(55% 40% at 6% 96%, rgba(214, 150, 150, .22), rgba(214, 150, 150, 0) 70%),
    linear-gradient(180deg, #F7F0E5 0%, #F2E8D9 40%, #EBDDC9 75%, #E4D3BC 100%);
}
.kanji span {
  position: absolute; writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--serif); font-weight: 700; letter-spacing: .25em;
  font-size: clamp(40px, 5.5vw, 84px); line-height: 1; color: rgba(42, 32, 36, .05);
}
.kanji span:nth-child(1) { left: 1.2vw; top: 18vh; }
.kanji span:nth-child(2) { right: 1.2vw; top: 40vh; color: rgba(179, 36, 43, .08); }
.kanji, .mtn { will-change: transform; }
.kanji { position: absolute; inset: 0; }
.mtn { position: absolute; left: -10%; width: 120%; height: clamp(170px, 34vh, 390px); }
.mtn-far { bottom: 9vh; opacity: .95; }
.mtn-mid { bottom: 3vh; }
.mtn-near { bottom: -3vh; }
.mist { position: absolute; left: 0; right: 0; bottom: 8vh; height: 24vh; background: linear-gradient(180deg, rgba(251, 246, 238, 0), rgba(251, 246, 238, .55), rgba(251, 246, 238, 0)); }
.veil { position: absolute; inset: 0; background: var(--bg); opacity: 0; }   /* faded in as you scroll (effects.js) */
.scene-lite .veil { opacity: .2; }
.fx { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ==========================================================================
   Loading screen: shoji doors + the logo drawing itself
   ========================================================================== */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: auto; }
.shoji {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 80% at var(--glow-x) 50%, rgba(255, 236, 214, .75), rgba(255, 236, 214, 0) 70%),
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), rgba(122, 93, 72, .22) calc(25% - 2px) 25%),
    repeating-linear-gradient(0deg, transparent 0 calc(12.5vh - 2px), rgba(122, 93, 72, .22) calc(12.5vh - 2px) 12.5vh);
  transition: transform 1.1s cubic-bezier(.75, 0, .18, 1) .12s;
  will-change: transform;
}
.shoji-l { left: 0; --glow-x: 100%; box-shadow: inset -6px 0 0 #8A6B55, inset -7px 0 0 rgba(0, 0, 0, .15); }
.shoji-r { right: 0; --glow-x: 0%; box-shadow: inset 6px 0 0 #8A6B55, inset 7px 0 0 rgba(0, 0, 0, .15); }
.shoji::after { content: ""; position: absolute; top: 74%; width: 14px; height: 44px; margin-top: -22px; border-radius: 8px; background: rgba(122, 93, 72, .18); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25); }
.shoji-l::after { right: 26px; }
.shoji-r::after { left: 26px; }
.loader-stage { position: relative; z-index: 2; width: min(72vw, 440px); transition: opacity .45s ease, transform .6s var(--ease-out); }
.loader-stage::before { content: ""; position: absolute; inset: -45% -35%; border-radius: 50%; background: radial-gradient(closest-side, #FBF7F1 0%, rgba(251, 247, 241, .96) 45%, rgba(251, 247, 241, 0) 100%); }
.loader-bloom { position: absolute; inset: -30% -25%; border-radius: 50%; background: radial-gradient(closest-side, rgba(179, 36, 43, .10), rgba(179, 36, 43, 0)); opacity: 0; transform: scale(.7); animation: bloom 2.4s var(--ease-out) .2s forwards; }
.loader-logo { position: relative; width: 100%; height: auto; overflow: visible; }
.loader-logo .lg-mark, .loader-logo .lg-word path, .loader-logo .lg-kana path { fill: var(--logo-red); }
.loader-logo .draw path { fill: none; stroke: #fff; stroke-width: 96; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.loader-logo .draw .d1 { animation: draw .95s cubic-bezier(.5, .05, .35, 1) .25s forwards; }
.loader-logo .draw .d2 { animation: draw .42s cubic-bezier(.4, .05, .3, 1) 1.2s forwards; }
.loader-logo .draw .d3 { animation: draw .22s ease-out 1.62s forwards; }
.loader-logo .lg-word path { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(26%); filter: blur(5px); animation: rise .7s var(--ease-out) forwards; animation-delay: calc(1.35s + var(--i) * 70ms); }
.loader-logo .lg-kana path { opacity: 0; transform-box: fill-box; transform: translateX(calc((var(--i) - 2.5) * 40%)); animation: gather .85s var(--ease-out) forwards; animation-delay: calc(1.75s + var(--i) * 40ms); }
.loader-note { position: absolute; left: 0; right: 0; bottom: -56px; text-align: center; font-size: 13.5px; color: var(--paper-ink); letter-spacing: .04em; opacity: 0; animation: fadein .8s ease 2.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes gather { to { opacity: 1; transform: none; } }
@keyframes bloom { 50% { opacity: 1; } to { opacity: .6; transform: scale(1); } }
@keyframes fadein { to { opacity: 1; } }
.loader.is-quick .draw path { animation: none; stroke-dashoffset: 0; }
.loader.is-quick .lg-word path, .loader.is-quick .lg-kana path { animation: none; opacity: 1; transform: none; filter: none; }
.loader.is-quick .loader-bloom, .loader.is-quick .loader-note { animation: none; opacity: 0; }
.loader.is-open { pointer-events: none; }
.loader.is-open .loader-stage { opacity: 0; transform: scale(.94); }
.loader.is-open .shoji-l { transform: translateX(-101%); }
.loader.is-open .shoji-r { transform: translateX(101%); }

/* ==========================================================================
   Header: floating glass bar
   ========================================================================== */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding: 12px var(--gutter) 0; }
.header-bar {
  max-width: calc(var(--wrap) - 2 * 24px); margin: 0 auto; height: 66px;
  display: flex; align-items: center; gap: 26px; padding: 0 10px 0 16px;
  border-radius: 20px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 18px 40px -26px rgba(74, 50, 40, .45);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled .header-bar { background: var(--glass-strong); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav button { font-size: 14.5px; border: 0; background: none; cursor: pointer; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; transition: background-color .2s, color .2s, transform .5s var(--spring); }
.nav button:hover { color: var(--ink); background: rgba(42, 32, 36, .06); }
.nav button:active { transform: scale(.94); transition-duration: .08s; }
.bag-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 46px; padding: 0 12px 0 14px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(42, 32, 36, .05); cursor: pointer; font-size: 15px;
}
.bag-btn:hover { background: rgba(42, 32, 36, .09); }
.bag-btn svg { width: 20px; height: 20px; }
.bag-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--beni-btn); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 24px; text-align: center; }
.bag-count[data-empty="true"] { background: rgba(42, 32, 36, .11); color: var(--ink-2); }
.bag-count.bump { animation: bump .6s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 100% { transform: scale(1); } }
.bag-btn.bump { animation: bagbump .7s var(--spring); }
@keyframes bagbump { 0% { transform: scale(1); } 25% { transform: scale(1.12) rotate(-4deg); } 100% { transform: scale(1); } }
.back-link { margin-left: auto; font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.back-link:hover { color: var(--ink); background: rgba(42, 32, 36, .06); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(28px, 4.5vw, 64px) 0 clamp(20px, 3vw, 40px); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero-kana { color: var(--beni); font-size: 15px; letter-spacing: .5em; margin-bottom: 18px; padding: 6px 14px 6px 16px; border-radius: 999px; background: rgba(179, 36, 43, .1); border: 1px solid rgba(179, 36, 43, .28); }
.hero-copy h1 { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; color: var(--ink-3); }
.hint svg { width: 18px; height: 18px; color: var(--beni); animation: spin 8s linear infinite; }
.hero-meta { list-style: none; margin: 8px auto 0; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 2; }
.hero-meta li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); background: rgba(255, 251, 245, .55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-meta svg { width: 17px; height: 17px; color: var(--beni); }

.hero-visual { position: relative; display: grid; justify-items: center; padding: 20px 0 4px; }
.sun {
  position: absolute; z-index: 0; top: 46%; left: 50%;
  width: min(430px, 96%); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-30%, -58%);
  background: radial-gradient(circle at 38% 34%, #E3525A 0%, #C9373F 42%, #B32B33 75%, #A1252C 100%);
  box-shadow: 0 0 90px 12px rgba(214, 70, 70, .2), 0 0 240px 50px rgba(240, 170, 120, .16);
  animation: sunbreathe 8s ease-in-out infinite;
}
.sun i { position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 45%),
  repeating-radial-gradient(circle at 50% 50%, rgba(120, 20, 26, 0) 0 9px, rgba(120, 20, 26, .05) 9px 10px);
}

.hero-card { position: relative; z-index: 1; margin: 0; width: min(320px, 78vw); perspective: 1000px; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes sunbreathe { 50% { scale: 1.025; } }
.tilt-inner { position: relative; display: block; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .8s var(--spring); will-change: transform; border-radius: inherit; }
[data-tilt].is-tilting .tilt-inner { transition: transform .14s ease-out; }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); }
[data-tilt].is-tilting .glare { opacity: 1; }
.hero-card .tilt-inner { border-radius: 30px; }
.hero-card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; cursor: pointer;
  border-radius: 30px; overflow: hidden; background: #0B0A0E;
  box-shadow: 0 0 0 1px rgba(42, 32, 36, .12), 0 50px 80px -40px rgba(60, 30, 25, .7), 0 20px 40px -26px rgba(60, 30, 25, .5);
}
.toko-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s ease, transform 1.4s var(--spring-soft); -webkit-mask-image: radial-gradient(118% 92% at 50% 46%, #000 60%, transparent 100%); mask-image: radial-gradient(118% 92% at 50% 46%, #000 60%, transparent 100%); }
.toko-img.is-active { opacity: 1; transform: scale(1); }
.hero-card-cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 16px; border-radius: 18px; pointer-events: none;
  background: rgba(255, 251, 245, .8); border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.3; transform: translateZ(40px);
  transition: opacity .22s ease;
}
.hero-card-cap.is-swap { opacity: 0; transition-duration: .12s; }
.hero-card-cap.cta-only { left: auto; padding: 0; border: 0; background: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-card-cap.cta-only .price.cta { padding: 8px 10px 8px 15px; font-size: 14px; box-shadow: 0 10px 24px -10px rgba(20, 5, 5, .8); }
.cap-main { display: grid; min-width: 0; }
.cap-main small { font-family: var(--sans); font-weight: 400; font-size: 13px; line-height: 1.4; color: var(--ink-2); margin-top: 2px; }
.hero-card-cap .price { font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.hero-card-cap .price.cta { align-self: center; display: inline-flex; align-items: center; gap: 2px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--beni-btn); color: #fff; font-size: 13.5px; }
.hero-card-cap .price.cta svg { width: 15px; height: 15px; }

/* ---------- featured card: swipe across it to slash to the next slide ---------- */
.toko { position: relative; z-index: 1; display: grid; justify-items: center; }
.hero-card-media { touch-action: pan-y; -webkit-user-select: none; user-select: none; }   /* sideways swipes come to us, scrolling still works */
.hero-card-media.no-link { cursor: grab; }
.hero-card-media.is-aiming { cursor: grabbing; }
.toko-img.is-instant { transition: none !important; }
.toko-half {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  -webkit-mask-image: radial-gradient(118% 92% at 50% 46%, #000 60%, transparent 100%); mask-image: radial-gradient(118% 92% at 50% 46%, #000 60%, transparent 100%);
}
.toko-img.is-plain, .toko-half.is-plain { -webkit-mask-image: none; mask-image: none; }   /* promo pictures keep their own edges */
.toko-blade, .toko-aim {
  position: absolute; left: 0; top: 0; z-index: 3; height: 3px; margin-top: -1.5px; border-radius: 2px; pointer-events: none; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 16%, #FFEDEE 50%, #fff 84%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 8px 1px rgba(236, 70, 80, .9), 0 0 22px 5px rgba(199, 54, 62, .45);
}
.toko-aim { height: 2px; margin-top: -1px; opacity: .85; background: linear-gradient(90deg, rgba(255, 255, 255, .15), #fff); box-shadow: 0 0 8px 1px rgba(236, 70, 80, .75); }
.toko-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(60% 50% at var(--fx, 50%) var(--fy, 50%), rgba(255, 244, 240, .55), rgba(255, 244, 240, 0) 70%); }

.toko-hint {
  position: absolute; top: 46%; left: 50%; z-index: 4; display: inline-flex; align-items: center; gap: 7px; overflow: hidden;
  padding: 6px 13px 6px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: .01em; color: var(--ink);
  background: rgba(255, 251, 245, .86); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 8px 20px -12px rgba(30, 10, 10, .6);
  transform: translate(-50%, -50%) translateZ(30px); transition: opacity .35s ease, transform .45s var(--ease-smooth);
}
.toko-hint svg { width: 15px; height: 15px; color: var(--beni); flex: none; }
.toko-hint > * { position: relative; z-index: 1; }
.toko-hint::after { content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: -45%; width: 45%; background: linear-gradient(100deg, rgba(232, 147, 167, 0), rgba(232, 147, 167, .38), rgba(232, 147, 167, 0)); animation: gleam 2.8s ease-in-out 1.4s 5 both; }
@keyframes gleam { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(340%); } }
.toko-hint.is-gone { opacity: 0; transform: translate(-50%, -50%) scale(.94); }

.toko-nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 16px; max-width: 100%; }
.toko-arrow {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 251, 245, .78); color: var(--ink);
}
.toko-arrow:hover { background: #fff; border-color: rgba(42, 32, 36, .3); }
.toko-arrow svg { width: 18px; height: 18px; }
.toko-dots { display: flex; gap: 2px; min-width: 0; }
.toko-dots button { position: relative; flex: 0 1 28px; width: 28px; min-width: 12px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.toko-dots button::before, .toko-dots button::after { content: ""; position: absolute; left: 3px; right: 3px; top: 12.5px; height: 3px; border-radius: 2px; }
.toko-dots button::before { background: rgba(42, 32, 36, .17); }
.toko-dots button::after { background: var(--beni); transform: scaleX(0); transform-origin: 0 50%; }
.toko-dots button[aria-current="true"]::after { animation: tokofill var(--dur, 6s) linear forwards; }
.toko.is-paused .toko-dots button[aria-current="true"]::after { animation-play-state: paused; }
.toko.no-auto .toko-dots button[aria-current="true"]::after { animation: none; transform: none; }
@keyframes tokofill { to { transform: scaleX(1); } }

/* ---------- moving banner along the top ---------- */
.ticker { position: relative; z-index: 3; overflow: hidden; height: 36px; background: var(--tk-bg); color: var(--tk-ink); --tk-bg: var(--beni); --tk-ink: #FBF1E6; --tk-sep: #F4B7BE; }
.ticker-ink { --tk-bg: #2A2024; --tk-ink: #F1E8DA; --tk-sep: #E8737B; }
.ticker-cream { --tk-bg: #FBF6EE; --tk-ink: var(--ink); --tk-sep: var(--beni); box-shadow: inset 0 -1px 0 var(--line-2); }
.ticker-inner { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
button.ticker-inner { cursor: pointer; }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; will-change: transform; }
.ticker-run { display: flex; align-items: center; flex: none; }
.ticker-run > span { padding: 0 16px; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; line-height: 36px; white-space: nowrap; }
.ticker-sep { display: block; width: 11px; height: 11px; flex: none; color: var(--tk-sep); }
.ticker-sep svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.ticker.is-static { height: auto; min-height: 36px; }
.ticker.is-static .ticker-track { width: 100%; flex-wrap: wrap; justify-content: center; padding: 6px var(--gutter); }
.ticker.is-static .ticker-run { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; row-gap: 2px; }
.ticker.is-static .ticker-run > span { line-height: 1.5; white-space: normal; text-align: center; }
.ticker.is-static .ticker-run > .ticker-sep:last-child { display: none; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(26px, 4vw, 42px); }
.section-head p { color: var(--ink-2); max-width: 34em; margin-top: 10px; }

/* the dark display niche every piece sits in */
.alcove {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md);
  background: #0B0A0E;
  box-shadow: 0 0 0 1px rgba(42, 32, 36, .1), 0 28px 44px -28px rgba(60, 30, 25, .65);
  transition: box-shadow .4s;
}
.alcove img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--spring-soft); -webkit-mask-image: radial-gradient(118% 94% at 50% 46%, #000 60%, transparent 100%); mask-image: radial-gradient(118% 94% at 50% 46%, #000 60%, transparent 100%); }

/* collections */
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); }
.coll { position: relative; display: block; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; perspective: 900px; }
.coll .tilt-inner { border-radius: var(--r-lg); }
.coll-card { position: relative; display: block; padding: 14px 14px 18px; border-radius: var(--r-lg); background: rgba(255, 251, 245, .60); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden; }
.coll-mark { position: absolute; right: -6px; top: -18px; font-family: var(--serif); font-weight: 700; font-size: 150px; line-height: 1; color: rgba(179, 36, 43, .1); pointer-events: none; transition: transform .9s var(--spring), color .3s; }
.coll .alcove { aspect-ratio: 5 / 4; border-radius: 16px; }
.coll-label { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; padding: 0 4px; }
.coll-title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.3; }
.coll-jp { font-family: var(--serif); color: var(--beni); font-size: 14px; letter-spacing: .15em; }
.coll-count { display: block; font-size: 13.5px; color: var(--ink-3); padding: 0 4px; }
.coll:hover .coll-mark { transform: translate(-8px, 8px) scale(1.08); color: rgba(179, 36, 43, .18); }
.coll:hover .alcove img { transform: scale(1.06); }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; border-radius: 16px; background: rgba(255, 251, 245, .60); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.chip { height: 38px; padding: 0 16px; border-radius: 12px; cursor: pointer; border: 0; background: transparent; font-size: 14.5px; color: var(--ink-2); transition: background-color .3s, color .2s, transform .55s var(--spring); }
.chip:hover { color: var(--ink); }
.chip:active { transform: scale(.94); transition-duration: .08s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 6px 16px -8px rgba(42, 32, 36, .6); }
.chip small { font-size: 12px; opacity: .65; margin-left: 5px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.sort select { height: 46px; padding: 0 36px 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 251, 245, .60) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232A2024' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 13px center; -webkit-appearance: none; appearance: none; font: inherit; color: var(--ink); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(28px, 4vw, 44px) clamp(14px, 2.4vw, 26px); }
.card { position: relative; display: flex; flex-direction: column; }
.card-open { display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; margin-bottom: 14px; perspective: 900px; }
.card-open .tilt-inner { border-radius: var(--r-md); }
.card-open:hover .alcove { box-shadow: 0 0 0 1px rgba(179, 36, 43, .35), 0 34px 60px -28px rgba(179, 36, 43, .45); }
.card-open:hover .alcove img { transform: scale(1.05); }
.card-open:hover .card-name { color: var(--beni); }
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; margin-top: 16px; align-items: baseline; }
.card-name { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.3; transition: color .2s; }
.card-price { font-size: 15.5px; font-weight: 500; }
.card-short { grid-column: 1 / -1; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.card-add {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(42, 32, 36, .05); cursor: pointer; font-size: 14.5px;
}
.card-add svg { width: 16px; height: 16px; }
.card-add:hover { background: var(--beni-btn); border-color: var(--beni-btn); color: #fff; }
.card-add.is-added { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 251, 245, .87); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card.is-sold .alcove img { filter: grayscale(.6) brightness(.65); }
.empty-note { padding: 40px 0; color: var(--ink-2); }

/* how to order */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 26px); list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 28px 26px 30px; border-radius: var(--r-lg); background: rgba(255, 251, 245, .60); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden; }
.step-num { display: block; font-size: 52px; line-height: 1; color: var(--beni); margin-bottom: 20px; text-shadow: 0 6px 18px rgba(179, 36, 43, .25); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* community */
.community { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 5vw, 64px); background: linear-gradient(125deg, #A3222A 0%, #6E1C2A 52%, #3B1A26 100%); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -40px rgba(90, 30, 30, .7); }
.community .btn-quiet { color: #fff; border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); }
.community .btn-quiet:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.community .speed { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; pointer-events: none; }
.community-kanji { position: absolute; right: -20px; bottom: -70px; font-size: 320px; line-height: 1; color: rgba(255, 255, 255, .05); pointer-events: none; }
.community-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.community h2 { color: #fff; margin-bottom: 16px; }
.community p { color: #E3CDD2; max-width: 32em; }
.community-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.community-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.community-list li { display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(14, 10, 18, .35); border: 1px solid rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.community-list .jp { font-size: 24px; color: #FFB0A8; text-align: center; }
.community-list strong { display: block; color: #fff; font-weight: 500; font-size: 16.5px; }
.community-list span { font-size: 14.5px; color: #D6BEC4; }

/* help */
.faq { max-width: 780px; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: rgba(255, 251, 245, .60); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden; transition: background-color .3s; }
.faq details[open] { background: rgba(255, 252, 247, .82); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-family: var(--serif); font-size: 18.5px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .6s var(--spring); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); max-width: 40em; animation: faqin .5s var(--spring-soft); }
@keyframes faqin { from { opacity: 0; transform: translateY(-8px); } }

/* footer */
.site-footer { padding: 56px 0 40px; margin-top: 20px; background: linear-gradient(180deg, rgba(233, 222, 205, 0), rgba(233, 222, 205, .92) 30%); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-grid img { height: 64px; width: auto; margin-bottom: 14px; }
.footer-grid p { color: var(--ink-2); font-size: 15px; max-width: 26em; }
.footer-grid h4 { font-family: var(--serif); font-size: 16px; margin: 0 0 12px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--beni); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* ==========================================================================
   Home: mini windows that open into full pages
   ========================================================================== */
.windows { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); padding-bottom: 24px; }
.win {
  position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0;
  padding: 18px; border-radius: 26px; border: 1px solid var(--line); text-align: left; cursor: pointer;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 22px 44px -32px rgba(60, 30, 25, .55); overflow: hidden;
  transition: transform .7s var(--spring), box-shadow .4s, background-color .3s;
}
.win:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -34px rgba(60, 30, 25, .6); background: rgba(255, 252, 247, .72); }
.win:active { transform: scale(.97); transition-duration: .1s; }
.win-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.win-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; }
.win-sub { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.win-text { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.win-go { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: rgba(42, 32, 36, .07); color: var(--ink); transition: background-color .3s, color .3s; }
.win-go svg { width: 16px; height: 16px; transition: transform .6s var(--spring); }
.win:hover .win-go { background: var(--ink); color: var(--bg); }
.win:hover .win-go svg { transform: translateX(3px); }

.win-shop { grid-column: span 2; grid-row: span 2; }
.win-shop .win-title { font-size: 28px; }
.win-mini { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.win-mini .alcove { aspect-ratio: 1 / 1; border-radius: 16px; }
.win-mini .alcove:nth-child(odd) { transform: translateY(0); }
.win-shop:hover .win-mini .alcove img { transform: scale(1.05); }
.win-coll { grid-column: span 2; }
.win-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.win-cat { display: block; min-width: 0; }
.win-cat .alcove { aspect-ratio: 1 / 1; border-radius: 14px; }
.win-cat-label { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 8px; font-size: 14.5px; font-weight: 500; }
.win-cat-label .jp { font-size: 11.5px; color: var(--beni); letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-steps { display: grid; gap: 8px; margin-top: auto; }
.win-steps > span { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.win-steps b { width: 30px; text-align: center; font-size: 22px; line-height: 1; color: var(--beni); }
.win-comm { background: linear-gradient(135deg, #A3222A 0%, #6E1C2A 60%, #3B1A26 100%); border-color: rgba(255, 255, 255, .12); color: #fff; }
.win-comm:hover { background: linear-gradient(135deg, #B02830 0%, #7A1F2E 60%, #42202A 100%); }
.win-comm .win-text { color: #F2D7D9; margin-top: auto; }
.win-comm .win-go { background: rgba(255, 255, 255, .14); color: #fff; }
.win-comm:hover .win-go { background: #fff; color: #6E1C2A; }
.win-kanji { position: absolute; right: -10px; bottom: -36px; font-size: 140px; line-height: 1; color: rgba(255, 255, 255, .08); pointer-events: none; transition: transform .9s var(--spring); }
.win-comm:hover .win-kanji { transform: rotate(-6deg) scale(1.08); }
.win-help { grid-column: span 4; padding: 18px 18px 18px 22px; }
.win-help .win-head { align-items: center; }

/* ==========================================================================
   Page views: grow out of their window, shrink back when closed
   ========================================================================== */
html.has-view { overflow: hidden; }
html.has-view body { overflow: hidden; }
.view { position: fixed; inset: 0; z-index: 61; overflow: hidden; background: var(--bg); will-change: clip-path; }
.view::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 45% at 85% 0%, rgba(240, 160, 140, .26), rgba(240, 160, 140, 0) 70%),
  linear-gradient(180deg, #F6EEE2 0%, #F1E8DA 50%, #ECE0CE 100%); }
.view-scroll { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.view-bar {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px;
  background: rgba(244, 236, 224, .8); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.view-back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 16px 0 8px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .45); cursor: pointer; font-size: 15px; }
.view-back svg { width: 20px; height: 20px; }
.view-back:hover { background: rgba(255, 255, 255, .75); }
.view-title { font-size: 21px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-bar .bag-btn { justify-self: end; }
.view-inner { padding-top: 28px; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.view-lede { color: var(--ink-2); font-size: 17px; margin-bottom: 22px; max-width: 36em; }
.view .toolbar { margin-bottom: 26px; }
.view-cta { margin-top: 28px; }
.help-more { margin-top: 26px; padding: 24px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.help-more h3 { margin-bottom: 6px; }
.help-more p { color: var(--ink-2); }
.help-more .community-actions { margin-top: 18px; }

/* everything inside a page pops in, one after another, each time it opens */
.pop { animation: popin .85s var(--spring) both; animation-delay: calc(var(--d, 0) * 55ms + 140ms); }
@keyframes popin { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.94); } }
.win.landed { animation: landed .8s var(--spring); }
@keyframes landed { 0% { transform: scale(.95); } 100% { transform: none; } }

/* ==========================================================================
   Product view: fades up (modal on desktop, sheet on phones, drag down to close)
   ========================================================================== */
.pd { padding: 0; margin: 0; border: 0; background: transparent; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; overflow: hidden; color: var(--ink); }
.pd[open] { display: grid; place-items: center; }
.pd::backdrop { background: rgba(42, 32, 36, .33); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadein .3s ease; }
.pd.is-out::backdrop { animation: fadeout .28s ease forwards; }
@keyframes fadeout { to { opacity: 0; } }
.pd-sheet {
  position: relative; width: min(960px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); overflow: auto;
  border-radius: var(--r-lg); background: rgba(255, 251, 245, .90); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 50px 100px -40px rgba(60, 30, 25, .6);
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: transform .5s var(--ease-smooth), opacity .34s ease-out;
  overscroll-behavior: contain;
}
.pd.is-in .pd-sheet { opacity: 1; transform: none; }
.pd.is-out .pd-sheet { opacity: 0; transform: translate3d(0, 14px, 0); transition: transform .24s ease-in, opacity .2s ease-in; }
.pd-grab { display: none; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pd-media { padding: 18px; }
.pd-info { padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 44px) clamp(24px, 4vw, 40px) 12px; display: flex; flex-direction: column; }
.pd-cat { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.pd-cat .jp { color: var(--beni); }
.pd-info h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 8px; padding-right: 40px; }
.pd-price { font-size: 21px; font-weight: 500; margin-bottom: 20px; }
.pd-desc { color: var(--ink-2); }
.pd-details { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 7px; font-size: 15px; }
.pd-details li { display: flex; gap: 10px; }
.pd-details li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--beni); }
.pd-buy { display: flex; gap: 12px; margin-top: auto; padding-top: 28px; }
.pd-buy .btn { flex: 1; }
.pd-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.pd-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 251, 245, .82); cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pd-close:hover { background: rgba(40, 33, 54, .9); }
.pd-close svg { width: 18px; height: 18px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); height: 50px; background: rgba(42, 32, 36, .04); }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink); border-radius: var(--r-sm); transition: background-color .2s, transform .5s var(--spring); }
.qty button:hover { background: rgba(42, 32, 36, .07); }
.qty button:active { transform: scale(.88); transition-duration: .08s; }
.qty output { min-width: 28px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.qty-sm { height: 36px; border-radius: 11px; }
.qty-sm button { width: 34px; font-size: 16px; border-radius: 11px; }
.qty-sm output { min-width: 22px; font-size: 14.5px; }

/* ==========================================================================
   Bag drawer, toast, fly-to-bag
   ========================================================================== */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(42, 32, 36, .30); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.bag {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 100; width: min(430px, calc(100vw - 20px));
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: rgba(250, 246, 239, .96); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: -30px 0 80px -30px rgba(60, 30, 25, .5);
  transform: translateX(calc(100% + 24px)); visibility: hidden;
  transition: transform .34s var(--ease-in), visibility 0s linear .34s;
}
.bag.is-open { transform: none; visibility: visible; transition: transform .7s var(--spring-soft), visibility 0s; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 16px 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 24px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(42, 32, 36, .05); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(42, 32, 36, .09); }
.icon-btn svg { width: 18px; height: 18px; }
.bag-items { flex: 1; overflow: auto; padding: 8px 24px; list-style: none; margin: 0; }
.bag-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; animation: itemin .6s var(--spring); }
@keyframes itemin { from { opacity: 0; transform: translateX(24px); } }
.bag-item .alcove { width: 72px; border-radius: 12px; }
.bag-item-name { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.3; }
.bag-item-unit { font-size: 13.5px; color: var(--ink-3); margin: 2px 0 10px; }
.bag-item-line { font-weight: 500; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.bag-remove { display: block; margin-top: 8px; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.bag-remove:hover { color: var(--beni); }
.bag-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: rgba(232, 220, 204, .35); }
.bag-row { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; font-variant-numeric: tabular-nums; }
.bag-row strong { font-weight: 600; }
.bag-foot .muted { font-size: 13.5px; color: var(--ink-3); margin: 6px 0 16px; }
.bag-empty { padding: 56px 28px; text-align: center; color: var(--ink-2); }
.bag-empty .jp { display: block; font-size: 34px; color: var(--beni); margin-bottom: 12px; }
.bag-empty p { margin-bottom: 22px; }

.toast {
  visibility: hidden; position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(42, 32, 36, .94); color: var(--bg); font-size: 14.5px; font-weight: 500;
  box-shadow: 0 20px 50px -16px rgba(60, 30, 25, .55);
  transform: translate(-50%, 160%) scale(.9); transition: transform .3s var(--ease-in), visibility 0s .3s;
  max-width: calc(100vw - 32px);
}
.toast.is-on { visibility: visible; transform: translate(-50%, 0) scale(1); transition: transform .7s var(--spring), visibility 0s; }
.toast button { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--beni-btn); color: #fff; cursor: pointer; font-size: 14px; white-space: nowrap; }
.fly { position: fixed; z-index: 130; pointer-events: none; border-radius: 16px; object-fit: cover; box-shadow: 0 20px 40px -10px rgba(60, 30, 25, .55), 0 0 0 1px rgba(255, 255, 255, .5); }

/* ==========================================================================
   Checkout + status pages
   ========================================================================== */
.panel { background: rgba(255, 251, 245, .67); border: 1px solid var(--line); border-radius: var(--r-lg); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.checkout { padding: clamp(24px, 4vw, 48px) 0 96px; }
.checkout h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 8px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin-top: 30px; }
#checkoutForm { display: grid; gap: 16px; }
.fieldset { border: 0; margin: 0; padding: 22px clamp(18px, 3vw, 28px) 26px; min-width: 0; }
.fieldset legend { float: left; width: 100%; padding: 0; margin: 0 0 16px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.fieldset legend + * { clear: both; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
#addressFields { margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  height: 52px; padding: 0 15px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .65);
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .3s, background-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field select { -webkit-appearance: none; appearance: none; background: rgba(255, 255, 255, .65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232A2024' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 15px center; padding-right: 38px; }
.field textarea { height: 100px; padding: 13px 15px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--beni); box-shadow: 0 0 0 4px rgba(179, 36, 43, .18); background: rgba(255, 255, 255, .85); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--beni); background: rgba(179, 36, 43, .06); animation: shake .45s var(--spring); }
@keyframes shake { 20% { translate: -6px 0; } 45% { translate: 5px 0; } 70% { translate: -3px 0; } }
.hint-txt { font-size: 13px; color: var(--ink-3); }
.field-err { font-size: 13.5px; color: var(--beni); }
.field input[aria-invalid="true"] ~ .hint-txt { display: none; }
.options { display: grid; gap: 10px; }
.option { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .55); cursor: pointer; transition: border-color .25s, box-shadow .3s, background-color .25s, transform .5s var(--spring); }
.option:hover { border-color: rgba(42, 32, 36, .31); }
.option:active { transform: scale(.98); transition-duration: .08s; }
.option input { width: 20px; height: 20px; accent-color: var(--beni); margin: 0; }
.option:has(input:checked) { border-color: var(--beni); background: rgba(179, 36, 43, .1); box-shadow: 0 0 0 1px var(--beni), 0 12px 30px -16px rgba(179, 36, 43, .6); }
.option strong { display: block; font-weight: 500; }
.option span { font-size: 14px; color: var(--ink-2); }
.option b { font-weight: 500; }
.option-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(42, 32, 36, .06); }
.option-icon svg { width: 20px; height: 20px; }
.option-icon.wa { background: rgba(31, 175, 90, .14); color: #178A47; }
.option-icon.pf { background: rgba(179, 36, 43, .16); color: var(--beni); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { position: sticky; top: 100px; padding: 26px; }
.summary h2 { font-size: 22px; margin-bottom: 14px; }
.summary-items { list-style: none; margin: 0 0 12px; padding: 0; }
.summary-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-items .alcove { width: 56px; border-radius: 10px; box-shadow: none; }
.summary-items small { display: block; color: var(--ink-3); font-size: 13px; }
.summary .bag-row { padding: 6px 0; font-size: 15.5px; color: var(--ink-2); }
.summary .bag-row.total { color: var(--ink); font-size: 19px; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line-2); }
.pay-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.pay-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--beni); }
.form-error { display: none; padding: 14px 18px; border-radius: 16px; background: rgba(179, 36, 43, .14); border: 1px solid rgba(179, 36, 43, .4); color: var(--beni-ink); font-size: 15px; }
.form-error.is-on { display: block; animation: pop .6s var(--spring); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.paybtn { min-height: 56px; font-size: 16.5px; margin-top: 4px; }

.redirecting { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(232, 220, 204, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.redirecting.is-on { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.redirecting p { margin-top: 18px; color: var(--ink-2); }
.spinner { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; border: 2px solid rgba(179, 36, 43, .2); border-top-color: var(--beni); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { padding: clamp(48px, 9vw, 110px) 0; text-align: center; }
.status > .jp { display: inline-block; font-size: 15px; color: var(--beni); letter-spacing: .4em; padding: 6px 14px 6px 18px; border-radius: 999px; background: rgba(179, 36, 43, .1); border: 1px solid rgba(179, 36, 43, .28); }
.status h1 { font-size: clamp(36px, 5vw, 58px); margin: 18px 0 16px; }
.status p { color: var(--ink-2); max-width: 32em; margin: 0 auto; }
.status-send { max-width: 420px; margin: 30px auto 0; }
.status-card { max-width: 520px; margin: 30px auto 0; padding: 22px 24px; text-align: left; }
.status-card .bag-row { padding: 5px 0; font-size: 15px; color: var(--ink-2); }
.status-card .bag-row strong { color: var(--ink); }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.prose { max-width: 760px; margin: clamp(28px, 5vw, 56px) auto 96px; padding: clamp(24px, 5vw, 48px); }
.prose h1 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 16px; }
.prose h2 { font-size: 25px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose .todo { padding: 14px 16px; border-radius: 14px; background: rgba(179, 36, 43, .14); border: 1px solid rgba(179, 36, 43, .35); color: var(--beni-ink); font-size: 15px; }

/* redeem code box + sale prices */
.code-box { margin: 14px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.code-box.shake { animation: shake .45s var(--spring); }
.code-form label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .8); font: inherit; font-size: 15.5px; text-transform: uppercase; letter-spacing: .04em; }
.code-row input:focus { outline: none; border-color: var(--beni); box-shadow: 0 0 0 4px rgba(179, 36, 43, .14); }
.code-row .btn { min-height: 46px; padding: 0 16px; }
.code-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: rgba(179, 36, 43, .08); border: 1px dashed rgba(179, 36, 43, .4); animation: pop .6s var(--spring); font-size: 14.5px; }
.code-applied b { letter-spacing: .04em; }
.code-applied button { border: 0; background: none; cursor: pointer; font-size: 14px; padding: 0; }
.code-msg { min-height: 1.3em; margin-top: 6px; font-size: 13.5px; color: #1E7A47; }
.code-msg.bad { color: var(--beni-ink); }
.summary .bag-row.disc { color: var(--beni); }
s.was { color: var(--ink-3); font-weight: 400; font-size: .86em; margin-left: 4px; }
.badge-sale { background: var(--beni-btn); color: #fff; }
.badge-low { background: rgba(255, 251, 245, .95); color: var(--beni-ink); }
.pd-left { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--beni-ink); background: rgba(179, 36, 43, .1); vertical-align: middle; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding-top: 10px; }
  .community-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .bag-btn { margin-left: auto; }
}
@media (max-width: 760px) {
  .header-bar { height: 58px; border-radius: 18px; padding: 0 8px 0 12px; }
  .brand img { height: 42px; }
  .site-header { padding-top: 8px; }
  .collections { gap: 10px; }
  .coll-card { padding: 8px 8px 12px; border-radius: 20px; }
  .coll .alcove { aspect-ratio: 1 / 1; border-radius: 13px; }
  .coll-label { flex-direction: column; gap: 0; margin-top: 10px; }
  .coll-title { font-size: 16.5px; }
  .coll-jp { font-size: 12px; }
  .coll-count { font-size: 12.5px; }
  .coll-mark { font-size: 90px; }
  .steps { grid-template-columns: 1fr; }
  .community { border-radius: 26px; }
  .community-kanji { font-size: 220px; }

  .pd[open] { place-items: end center; }
  .pd-sheet { width: 100vw; max-height: 92dvh; border-radius: 26px 26px 0 0; border-bottom: 0; background: #FBF7F0; -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 0; transform: translate3d(0, 48px, 0); transition: transform .46s var(--ease-smooth), opacity .3s ease-out; }
  .pd.is-in .pd-sheet { opacity: 1; transform: translate3d(0, var(--drag, 0px), 0); }
  .pd-sheet.is-dragging { transition: none; }
  .pd.is-out .pd-sheet { opacity: 0; transform: translate3d(0, calc(var(--drag, 0px) + 40px), 0); transition: transform .26s ease-in, opacity .22s ease-in; }
  .pd-grab { display: block; position: sticky; top: 0; z-index: 4; height: 26px; margin-bottom: -26px; cursor: grab; touch-action: none; }
  .pd-grab::before { content: ""; position: absolute; left: 50%; top: 9px; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: rgba(42, 32, 36, .32); }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-media { padding: 22px 14px 0; touch-action: pan-x; }
  .pd-media .alcove { aspect-ratio: 1 / 1; }
  .pd-info { padding: 22px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .pd-buy { position: sticky; bottom: 0; padding: 16px 0 4px; margin-top: 22px; background: linear-gradient(rgba(255, 251, 245, .05), rgba(255, 251, 245, .90) 30%); }
  .pd-close { top: 18px; }
  .bag { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 86dvh; transform: translateY(calc(100% + 24px)); }
  .bag.is-open { transform: none; transition: transform .46s var(--ease-smooth), visibility 0s; }
  .fields { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 26px; }
  .hero-kana { font-size: 13px; letter-spacing: .4em; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hint { font-size: 13.5px; }
  .hero-meta { gap: 8px; }
  .hero-meta li { font-size: 13px; padding: 8px 13px; }
  .sun { width: 104%; transform: translate(-44%, -54%); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .card-body { grid-template-columns: 1fr; }
  .card-name { font-size: 16px; }
  .card-price { font-size: 15px; }
  .card-short { display: none; }
  .card-add { width: 100%; justify-content: center; padding: 0 10px; }
  .toolbar { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .shoji::after { display: none; }
  .kanji { display: none; }
}

@media (max-width: 960px) {
  .windows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win-shop { grid-column: span 2; grid-row: auto; }
  .win-coll { grid-column: span 2; }
  .win-help { grid-column: span 2; }
  .win-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .win { padding: 14px; border-radius: 22px; gap: 12px; }
  .win-title { font-size: 19px; }
  .win-shop .win-title { font-size: 23px; }
  .win-mini { grid-template-columns: 1fr 1fr; gap: 8px; }
  .win-cats { gap: 8px; }
  .win-cat-label { flex-direction: column; gap: 0; font-size: 13.5px; }
  .win-how .win-go, .win-comm .win-go { display: none; }
  .win-steps > span { font-size: 13.5px; gap: 8px; }
  .win-steps b { width: 22px; font-size: 18px; }
  .win-text { font-size: 13.5px; }
  .win-kanji { font-size: 110px; }
  .view-title { font-size: 17px; }
  .view-back span { display: none; }
  .view-back { padding: 0 10px 0 8px; }
  .view-bar .bag-label { display: none; }
  .view-lede { font-size: 16px; margin-bottom: 18px; }
  .hero-card { width: min(250px, 62vw); }
  .hero-card-cap { left: 10px; right: 10px; bottom: 10px; padding: 10px 13px; font-size: 15.5px; }
  .cap-main small { font-size: 12.5px; }
  .toko-hint { font-size: 12px; }
  .toko-nav { margin-top: 14px; }
  .ticker { height: 34px; }
  .ticker-run > span { font-size: 13px; line-height: 34px; padding: 0 13px; }
  .sun { width: 96%; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 14.5px; }
  .hero-copy h1 { margin-bottom: 14px; }
  .hero-actions { margin-top: 22px; }
  .hint { margin-top: 16px; }
  .hero-meta { padding-bottom: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid img { height: 52px; }
  .site-footer { padding-top: 36px; }
}

/* ==========================================================================
   Reviews: stars in the product view, rating on cards, the review page
   ========================================================================== */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { display: block; width: 15px; height: 15px; color: rgba(42, 32, 36, .2); }
.stars i.on { color: var(--beni); }
.stars svg { width: 100%; height: 100%; fill: currentColor; }
.card-rating { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-rating b { color: var(--beni); font-weight: 400; }
.card-rating small { color: var(--ink-3); font-size: 12.5px; }
.pd-reviews { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.pd-rev-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pd-rev { margin: 0; padding: 14px 16px; border-radius: 16px; background: rgba(42, 32, 36, .04); }
.pd-rev .stars i { width: 13px; height: 13px; }
.pd-rev blockquote { margin: 8px 0 6px; font-size: 15px; line-height: 1.55; }
.pd-rev figcaption { font-size: 13px; color: var(--ink-3); }

.review { max-width: 560px; margin: 0 auto; }
.review-form { margin-top: 30px; padding: clamp(20px, 4vw, 30px); display: grid; gap: 20px; text-align: left; }
.rv-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-items li { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; }
.rv-items .alcove { width: 52px; flex: none; border-radius: 10px; }
.rv-stars-field { border: 0; margin: 0; padding: 0; text-align: center; }
.rv-stars-field legend { padding: 0; margin: 0 auto 10px; font-size: 14px; color: var(--ink-2); }
.rv-stars { display: flex; justify-content: center; gap: 6px; }
.rv-stars button { width: 52px; height: 52px; padding: 6px; border: 0; border-radius: 14px; background: none; cursor: pointer; color: rgba(42, 32, 36, .18); transition: color .2s, transform .35s var(--ease-smooth); }
.rv-stars button svg { width: 100%; height: 100%; fill: currentColor; }
.rv-stars button.on { color: var(--beni); }
.rv-stars button:active { transform: scale(.88); transition-duration: .08s; }
.rv-stars button:focus-visible { outline: 3px solid rgba(179, 36, 43, .35); outline-offset: 1px; }
.rv-word { margin-top: 6px !important; font-size: 15px; min-height: 1.5em; }
.rv-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.rv-check input { width: 20px; height: 20px; accent-color: var(--beni); }
.review .status-actions { margin-top: 26px; }
@media (max-width: 560px) { .rv-stars button { width: 48px; height: 48px; } }

/* ==========================================================================
   Phones and older devices: the same look, much lighter on the graphics chip.
   html.touch = any phone or tablet. html.lite = older or slower devices
   (set in the page head, or after the shop measures a slow frame rate).
   ========================================================================== */
/* frosted-glass blur is the costliest effect on phones: keep it only on the bars */
html.touch .win, html.touch .coll-card, html.touch .chips, html.touch .step, html.touch .faq details,
html.touch .hero-meta li, html.touch .badge, html.touch .pd-close, html.touch .btn-quiet, html.touch .hero-card-cap,
html.touch .community-list li, html.touch .panel, html.touch .bag, html.touch .pd-sheet, html.touch .scrim,
html.touch .redirecting, html.touch .pd::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.touch .win, html.touch .coll-card, html.touch .chips, html.touch .step, html.touch .faq details, html.touch .hero-meta li { background: rgba(255, 251, 245, .84); }
html.touch .win-comm { background: linear-gradient(135deg, #A3222A 0%, #6E1C2A 60%, #3B1A26 100%); }
html.touch .hero-card-cap, html.touch .badge, html.touch .pd-close, html.touch .toko-hint { background: rgba(255, 251, 245, .97); }
html.touch .community-list li { background: rgba(14, 10, 18, .5); }
html.touch .panel { background: rgba(255, 251, 245, .92); }
html.touch .bag { background: #FAF6EF; }
html.touch .redirecting { background: rgba(232, 220, 204, .96); }

/* Phones and tablets: as smooth as possible. No canvas effects (falling petals, the ink trail
   when you swipe across the sky), no looping background motion, no frosted blur and no
   paper-grain layer. The slash on the featured card stays. */
html.touch *, html.touch *::before, html.touch *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.touch .pd::backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.touch .header-bar, html.touch .site-header.is-scrolled .header-bar { background: rgba(250, 245, 237, .97); }
html.touch .view-bar { background: rgba(244, 236, 224, .98); }
html.touch .fx, html.touch body::after { display: none; }
html.touch .sun, html.touch .hero-card, html.touch .hint svg { animation: none; }
html.touch .sun { box-shadow: 0 0 70px 10px rgba(214, 70, 70, .16); }
html.touch .kanji, html.touch .mtn, html.touch .tilt-inner, html.touch .view { will-change: auto; }
html.touch .loader-logo .lg-word path { filter: none; }
html.touch .pop { animation: fadeup .42s var(--ease-smooth) both; animation-delay: calc(min(var(--d, 0), 6) * 40ms + 60ms); }
html.touch.js .intro { transform: translate3d(0, 14px, 0); }
html.touch.js.is-ready .intro { transition: opacity .45s ease calc(var(--i, 0) * 60ms), transform .55s var(--ease-smooth) calc(var(--i, 0) * 60ms); }
html.touch.js .reveal { transform: translate3d(0, 16px, 0); }
html.touch.js .reveal.is-in { transition: opacity .45s ease calc(var(--d, 0) * 50ms), transform .55s var(--ease-smooth) calc(var(--d, 0) * 50ms); }
html.touch .win, html.touch .bag-item, html.touch .code-applied, html.touch .form-error.is-on { animation: none; }

/* older devices: no blur at all, no looping motion, simple fades */
html.lite *, html.lite *::before, html.lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .pd::backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .header-bar, html.lite .site-header.is-scrolled .header-bar { background: rgba(250, 245, 237, .97); }
html.lite .view-bar { background: rgba(244, 236, 224, .98); }
html.lite .sun, html.lite .hero-card, html.lite .hint svg { animation: none; }
html.lite .sun { box-shadow: 0 0 70px 10px rgba(214, 70, 70, .16); }
html.lite .kanji, html.lite .mtn, html.lite .tilt-inner, html.lite .view { will-change: auto; }
html.lite .toko-img { transform: none; transition: opacity .6s ease; }
html.lite .toko-half { -webkit-mask-image: none; mask-image: none; }
html.lite .toko-blade, html.lite .toko-aim { box-shadow: 0 0 6px 1px rgba(236, 70, 80, .8); }
html.lite .toko-hint::after { display: none; }
html.lite .ticker-track { will-change: auto; }
html.lite .loader-logo .lg-word path { filter: none; }
html.lite .loader-bloom { display: none; }
html.lite .pop { animation: fadeup .42s var(--ease-smooth) both; animation-delay: calc(min(var(--d, 0), 6) * 40ms + 60ms); }
html.lite.js .intro { transform: translate3d(0, 14px, 0); }
html.lite.js.is-ready .intro { transition: opacity .45s ease calc(var(--i, 0) * 60ms), transform .55s var(--ease-smooth) calc(var(--i, 0) * 60ms); }
html.lite.js .reveal { transform: translate3d(0, 16px, 0); }
html.lite.js .reveal.is-in { transition: opacity .45s ease calc(var(--d, 0) * 50ms), transform .55s var(--ease-smooth) calc(var(--d, 0) * 50ms); }
html.lite .win, html.lite .bag-item, html.lite .code-applied, html.lite .form-error.is-on { animation: none; }
html.lite .win:hover { transform: none; }
html.lite .bag.is-open { transition: transform .4s var(--ease-smooth), visibility 0s; }
@keyframes fadeup { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader .draw path { animation: none; stroke-dashoffset: 0; }
  .loader .lg-word path, .loader .lg-kana path { animation: none; opacity: 1; transform: none; filter: none; }
  .loader-bloom, .loader-note { animation: none; }
  .loader { transition: opacity .4s ease; }
  .loader.is-open { opacity: 0; }
  .loader.is-open .shoji-l, .loader.is-open .shoji-r { transform: none; }
  html.js .intro, html.js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
