:root {
  --ink: #05070a;
  --ink-2: #080c11;
  --ink-3: #0c1117;
  --bone: #f1e7d6;
  --bone-soft: rgba(241, 231, 214, 0.72);
  --bone-dim: rgba(241, 231, 214, 0.46);
  --bone-faint: rgba(241, 231, 214, 0.22);
  --line: rgba(241, 231, 214, 0.14);
  --line-soft: rgba(241, 231, 214, 0.075);
  --gold: #e8b45a;
  --gold-light: #f5d28d;
  --gold-deep: #9a6a26;
  --red: #d94a36;
  --red-deep: #7e2118;
  --teal: #29e0c6;
  --teal-dim: rgba(41, 224, 198, 0.5);
  --accent: var(--gold);
  --accent-2: var(--teal);
  --display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SF Mono", "Cascadia Code", "Roboto Mono", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: none;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: rgba(232, 180, 90, 0.28); color: #fff; }
.is-hidden { display: none !important; }

.app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.app.is-ready { opacity: 1; }
.app.is-loading { opacity: 1; }

.gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: none;
}

/* ---------- atmosphere ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 44%, rgba(31, 45, 49, 0.28) 0%, rgba(5, 7, 10, 0) 58%),
    radial-gradient(ellipse at 18% 90%, rgba(126, 33, 24, 0.14) 0%, rgba(5, 7, 10, 0) 52%),
    linear-gradient(150deg, #070a0e 0%, #04060a 54%, #070504 100%);
}
.backdrop__glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  mix-blend-mode: screen;
}
.backdrop__glow--gold {
  right: -24vmax;
  top: -20vmax;
  background: radial-gradient(circle, rgba(232, 180, 90, 0.32), transparent 66%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.backdrop__glow--teal {
  left: -30vmax;
  bottom: -28vmax;
  background: radial-gradient(circle, rgba(41, 224, 198, 0.24), transparent 68%);
  animation: drift-b 28s ease-in-out infinite alternate;
}
.backdrop__glow--model {
  left: 61%;
  top: 47%;
  width: 56vmax;
  height: 56vmax;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  background:
    radial-gradient(circle at 50% 45%, rgba(41, 224, 198, 0.22), transparent 34%),
    radial-gradient(circle at 50% 52%, rgba(232, 180, 90, 0.2), transparent 58%);
  filter: blur(64px);
  animation: model-breathe 8s ease-in-out infinite alternate;
}
@keyframes model-breathe { to { opacity: 0.3; transform: translate(-50%, -50%) scale(1.08); } }
.backdrop__grid {
  position: absolute;
  inset: -20%;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(159, 197, 192, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 197, 192, 0.055) 1px, transparent 1px);
  background-size: 74px 74px;
  transform: perspective(900px) rotateX(62deg) translateY(30%);
  transform-origin: 50% 100%;
  mask-image: radial-gradient(ellipse at 55% 70%, #000 0%, transparent 64%);
  -webkit-mask-image: radial-gradient(ellipse at 55% 70%, #000 0%, transparent 64%);
}
.backdrop__grain {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: soft-light;
}
.backdrop__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 52% 48%, transparent 30%, rgba(0, 0, 0, 0.42) 82%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(2, 4, 6, 0.7), transparent 18%, transparent 78%, rgba(2, 4, 6, 0.82));
}
.scanlines {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 0, 0, 0.24) 3px 4px);
  mix-blend-mode: multiply;
}
@keyframes drift-a { to { transform: translate3d(-8vmax, 6vmax, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(7vmax, -5vmax, 0) scale(0.92); } }

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(24px + var(--safe-top)) 32px 0;
  pointer-events: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--bone);
  text-decoration: none;
  pointer-events: auto;
}
.brand__seal {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: #f7e9d5;
  background: linear-gradient(150deg, #b7392b, #762019);
  border: 1px solid rgba(255, 220, 180, 0.3);
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(190, 56, 40, 0.24), inset 0 0 12px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
}
.brand__text { display: flex; flex-direction: column; gap: 5px; }
.brand__text strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.brand__text small {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.26em;
  color: var(--bone-dim);
  white-space: nowrap;
}
.topbar__actions { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.icon-btn {
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--bone-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 14, 19, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.icon-btn:hover { color: var(--bone); border-color: rgba(232, 180, 90, 0.42); background: rgba(232, 180, 90, 0.08); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn__label { font-size: 10px; letter-spacing: 0.16em; }
.icon-btn[aria-pressed="false"] .wave { opacity: 0.2; }
.ico {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--sound path:first-child { fill: currentColor; stroke: none; }
.icon-btn.is-off { color: var(--bone-faint); }

/* ---------- side code ---------- */
.side-code {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 26vh;
  display: flex;
  align-items: center;
  gap: 14px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.25em;
  color: var(--bone-faint);
  pointer-events: none;
}
.side-code__line { width: 1px; height: 54px; background: linear-gradient(180deg, transparent, var(--line)); }
.side-code__year { color: rgba(232, 180, 90, 0.45); }

/* ---------- stage / hero ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.hero {
  position: absolute;
  left: clamp(24px, 5.6vw, 92px);
  top: 50%;
  width: min(410px, 30vw);
  transform: translateY(-46%);
  pointer-events: auto;
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--bone-dim);
}
.hero__index {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.hero__rule { width: 34px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(62px, 7.2vw, 108px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--bone);
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(232, 180, 90, 0.12);
}
.hero__title--3 { font-size: clamp(56px, 6.4vw, 96px); }
.hero__title--4 { font-size: clamp(50px, 5.6vw, 84px); }
.hero__title--5 { font-size: clamp(44px, 4.7vw, 72px); }
.hero__en {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.38em;
  color: var(--accent);
}
.hero__tagline {
  margin-top: 22px;
  max-width: 280px;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.08em;
  color: var(--bone-soft);
}
.archive-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 31px;
  padding: 12px 0 11px;
  color: var(--bone);
  font-size: 11px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(232, 180, 90, 0.48);
  overflow: hidden;
}
.archive-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.6s var(--ease);
}
.archive-btn:hover::after { transform: translateX(0); }
.archive-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  transition: transform 0.35s var(--ease);
}
.archive-btn:hover svg { transform: translateX(4px); }

.model-metaline {
  position: absolute;
  top: calc(90px + var(--safe-top));
  right: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
  pointer-events: none;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 9px var(--teal);
  animation: blink 2.4s ease-in-out infinite;
}
.metal-divider { width: 18px; height: 1px; background: var(--line); }
@keyframes blink { 0%, 100% { opacity: 0.32; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }

.touch-hint {
  position: absolute;
  right: clamp(24px, 5.4vw, 86px);
  bottom: 17vh;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(8, 12, 16, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  color: var(--bone-dim);
  pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.touch-hint b { color: var(--bone-soft); font-weight: 500; }
.touch-hint__icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(41, 224, 198, 0.08);
}
.touch-hint__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.app.has-interacted .touch-hint { opacity: 0; transform: translateY(6px); }
.app.sheet-open .touch-hint { opacity: 0; }
.fx-btn {
  position: absolute;
  right: clamp(24px, 5.4vw, 86px);
  bottom: calc(17vh - 46px);
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(232, 180, 90, 0.22);
  border-radius: 999px;
  background: rgba(8, 12, 16, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--accent);
  pointer-events: auto;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.fx-btn:hover { border-color: var(--accent); background: rgba(232, 180, 90, 0.08); color: var(--bone); }
.fx-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.fx-btn:active svg { animation: spin 0.5s linear; }
.app.sheet-open .hero { opacity: 0.22; transform: translateY(-48%); }
.app.sheet-open .reticle { opacity: 0.22; }
.hero > * { animation: hero-in 0.7s var(--ease-out) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hand-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.hand-cursor.is-visible { opacity: 1; }
.hand-cursor span {
  position: absolute;
  left: -19px;
  top: -19px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(41, 224, 198, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(41, 224, 198, 0.35), inset 0 0 12px rgba(41, 224, 198, 0.12);
  transition: transform 0.15s, border-color 0.15s;
}
.hand-cursor span::before, .hand-cursor span::after {
  content: "";
  position: absolute;
  background: rgba(41, 224, 198, 0.8);
}
.hand-cursor span::before { left: 50%; top: -5px; width: 1px; height: 8px; }
.hand-cursor span::after { top: 50%; left: -5px; height: 1px; width: 8px; }
.hand-cursor b {
  position: absolute;
  left: 20px;
  top: 16px;
  padding: 3px 6px;
  background: rgba(4, 10, 12, 0.8);
  border: 1px solid rgba(41, 224, 198, 0.4);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.15em;
  color: var(--teal);
  white-space: nowrap;
  opacity: 0;
}
.hand-cursor.is-pinch span { transform: scale(0.62); border-color: var(--gold); box-shadow: 0 0 20px rgba(232, 180, 90, 0.5); }
.hand-cursor.is-pinch b { opacity: 1; border-color: rgba(232, 180, 90, 0.5); color: var(--gold); }

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0.28;
}
.corner::before, .corner::after { content: ""; position: absolute; background: var(--bone); }
.corner::before { width: 1px; height: 100%; }
.corner::after { width: 100%; height: 1px; }
.corner--tl { left: 26px; top: 96px; }
.corner--tl::before { left: 0; top: 0; } .corner--tl::after { left: 0; top: 0; }
.corner--tr { right: 26px; top: 96px; transform: rotate(90deg); }
.corner--br { right: 26px; bottom: 100px; transform: rotate(180deg); }
.corner--bl { left: 26px; bottom: 100px; transform: rotate(270deg); }

/* decorative center reticle */
.reticle {
  position: absolute;
  left: 58%;
  top: 48%;
  width: min(46vw, 510px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(241, 231, 214, 0.05);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
}
.reticle::before, .reticle::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(41, 224, 198, 0.07);
}
.reticle::before { inset: 7%; border-style: dashed; animation: spin 50s linear infinite; }
.reticle::after { inset: 18%; border-color: rgba(232, 180, 90, 0.09); }
.reticle span {
  position: absolute;
  width: 1px;
  height: 10px;
  background: rgba(232, 180, 90, 0.4);
}
.reticle span:nth-child(1) { left: 50%; top: -5px; }
.reticle span:nth-child(2) { left: 50%; bottom: -5px; }
.reticle span:nth-child(3) { left: -5px; top: 50%; width: 10px; height: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- bottom prop nav ---------- */
.prop-nav {
  position: fixed;
  z-index: 15;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 32px calc(22px + var(--safe-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  pointer-events: none;
}
.prop-nav__rail {
  display: flex;
  gap: 0;
  width: min(760px, 72vw);
  pointer-events: auto;
  border-top: 1px solid var(--line-soft);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.prop-nav__rail::-webkit-scrollbar { display: none; }
.prop-item {
  position: relative;
  flex: 1 0 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 13px 14px 0 0;
  text-align: left;
  color: var(--bone-dim);
  scroll-snap-align: center;
  transition: color 0.4s var(--ease);
}
.prop-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.55s var(--ease);
  box-shadow: 0 0 12px var(--accent);
}
.prop-item__index {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  opacity: 0.55;
}
.prop-item__name {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.prop-item__en {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.2em;
  color: var(--bone-faint);
  white-space: nowrap;
}
.prop-item:hover { color: var(--bone-soft); }
.prop-item.is-active { color: var(--bone); }
.prop-item.is-active::before { width: 36px; }
.prop-item.is-active .prop-item__index { color: var(--accent); opacity: 1; }
.prop-nav__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
  white-space: nowrap;
}
.prop-nav__bar { width: 38px; height: 1px; background: var(--line); display: block; overflow: hidden; }
.prop-nav__bar i { display: block; height: 100%; width: 25%; background: var(--accent); transition: width 0.6s var(--ease); }

/* ---------- sheet ---------- */
.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(2, 4, 6, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.sheet-scrim.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  z-index: 25;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: min(460px, 38vw);
  min-width: 390px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(241, 231, 214, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 20, 25, 0.95), rgba(7, 10, 13, 0.97)),
    radial-gradient(ellipse at 80% 0%, rgba(232, 180, 90, 0.15), transparent 50%);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.68s var(--ease-out);
  overflow: hidden;
}
.sheet.is-open { transform: translateX(0); }
.sheet__grab { display: none; }
.sheet__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 26px 18px;
}
.sheet__kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 12px;
}
.sheet__top h2 {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.sheet__en {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.32em;
  color: var(--bone-dim);
}
.round-btn {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--bone-dim);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.round-btn:hover { color: var(--bone); border-color: rgba(232, 180, 90, 0.45); transform: rotate(90deg); }
.round-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.sheet__tabs {
  display: flex;
  gap: 24px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line-soft);
}
.sheet-tab {
  position: relative;
  padding: 11px 0 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
  transition: color 0.3s;
}
.sheet-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.sheet-tab.is-active { color: var(--bone); }
.sheet-tab.is-active::after { transform: scaleX(1); }
.tab-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 7px var(--red);
  vertical-align: middle;
}
.sheet__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 180, 90, 0.25) transparent;
  padding: 22px 26px 32px;
}
.sheet__scroll::-webkit-scrollbar { width: 3px; }
.sheet__scroll::-webkit-scrollbar-thumb { background: rgba(232, 180, 90, 0.25); }
.sheet-panel { animation: panel-in 0.45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sheet-intro {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  color: var(--bone-soft);
}
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.fact {
  padding: 11px 12px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.fact span {
  display: block;
  margin-bottom: 5px;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--bone-faint);
}
.fact b { font-size: 11.5px; font-weight: 500; color: var(--bone-soft); letter-spacing: 0.04em; }
.prose { margin-top: 21px; }
.prose p {
  font-size: 12.5px;
  line-height: 2.03;
  color: var(--bone-dim);
  letter-spacing: 0.025em;
  text-align: justify;
}
.prose p + p { margin-top: 12px; }
.quote {
  position: relative;
  margin: 26px 0 0;
  padding: 18px 0 2px 20px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-left: 1px solid rgba(232, 180, 90, 0.35);
}
.restoration {
  margin-top: 27px;
  padding: 16px 16px 17px;
  border: 1px solid rgba(232, 180, 90, 0.16);
  background: linear-gradient(140deg, rgba(232, 180, 90, 0.06), rgba(255, 255, 255, 0.012));
}
.restoration__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--bone-faint);
}
.restoration__tag {
  padding: 3px 7px;
  color: var(--accent);
  border: 1px solid rgba(232, 180, 90, 0.35);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.restoration p { font-size: 11.5px; line-height: 1.9; color: var(--bone-dim); }

/* play tab */
.game-card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 19px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(41, 224, 198, 0.09), transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(241, 231, 214, 0.045);
  pointer-events: none;
}
.game-card__art {
  position: absolute;
  right: -40px;
  top: -36px;
  width: 170px;
  height: 170px;
  opacity: 0.35;
  pointer-events: none;
}
.game-card__art svg { position: absolute; inset: 31%; fill: none; stroke: var(--teal); stroke-width: 0.8; }
.game-card__ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(41, 224, 198, 0.28);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}
.game-card__ring::after { content: ""; position: absolute; inset: 19%; border: 1px dashed rgba(232, 180, 90, 0.25); border-radius: 50%; }
.game-card__ring--2 { inset: 30%; animation-direction: reverse; animation-duration: 20s; }
.game-card__tag {
  position: relative;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--teal);
}
.game-card h3 {
  position: relative;
  margin-top: 12px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.07em;
}
.game-card > p {
  position: relative;
  margin-top: 11px;
  max-width: 300px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--bone-dim);
}
.game-card__hint {
  font-family: var(--mono);
  font-size: 8px !important;
  letter-spacing: 0.13em;
  color: var(--accent) !important;
}
.game-card__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}
.best-score { display: flex; align-items: baseline; gap: 8px; }
.best-score span { font-size: 8px; letter-spacing: 0.15em; color: var(--bone-faint); }
.best-score b { font-family: var(--mono); font-size: 17px; color: var(--bone-soft); font-weight: 500; }
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 11px 17px;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--bone);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.primary-btn:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 30px rgba(232, 180, 90, 0.24); }
.primary-btn:active { transform: scale(0.97); }
.primary-btn span { font-size: 13px; line-height: 1; }
.primary-btn--full { width: 100%; justify-content: center; }
.ghost-btn {
  padding: 11px 17px;
  border: 1px solid var(--line);
  color: var(--bone-soft);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  transition: border-color 0.25s, color 0.25s;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--bone); }
.play-notes { margin-top: 22px; display: grid; grid-template-columns: 26px 1fr; gap: 11px 10px; align-items: start; }
.play-notes span { font-family: var(--mono); font-size: 8px; color: var(--accent); padding-top: 3px; }
.play-notes p { font-size: 10.5px; line-height: 1.7; color: var(--bone-dim); }

/* ---------- game overlay ---------- */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 5, 7, 0.78);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.game-overlay.is-open { opacity: 1; pointer-events: auto; }
.game-shell {
  position: relative;
  width: min(920px, 94vw);
  height: min(720px, 88vh);
  display: flex;
  flex-direction: column;
  padding: 22px 26px;
  border: 1px solid rgba(241, 231, 214, 0.18);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 180, 90, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(12, 17, 22, 0.97), rgba(5, 8, 11, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.55s var(--ease-out);
}
.game-overlay.is-open .game-shell { transform: none; }
.game-shell::before, .game-shell::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.7;
}
.game-shell::before { left: 8px; top: 8px; border-width: 1px 0 0 1px; }
.game-shell::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.game-head__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.08em;
}
.game-head__stats { display: flex; align-items: center; gap: 22px; }
.game-head__stats > div { display: flex; flex-direction: column; gap: 3px; }
.game-head__stats span { font-family: var(--mono); font-size: 7px; letter-spacing: 0.18em; color: var(--bone-faint); }
.game-head__stats b { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--bone); min-width: 38px; }
.game-stage {
  position: relative;
  flex: 1;
  margin: 14px 0 0;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  touch-action: manipulation;
}
.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 13px;
}
.game-foot p { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: var(--bone-dim); }
.game-timer { width: min(240px, 40%); height: 2px; background: var(--line-soft); overflow: hidden; }
.game-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--accent)); transform-origin: left; transition: transform 0.12s linear; }

.game-result {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: rgba(5, 8, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s;
}
.game-result.is-visible { opacity: 1; }
.game-result__kicker { font-family: var(--mono); font-size: 8px; letter-spacing: 0.3em; color: var(--teal); }
.game-result h3 { margin-top: 12px; font-family: var(--display); font-size: 36px; font-weight: 500; letter-spacing: 0.08em; }
.result-score { display: flex; align-items: baseline; gap: 7px; margin-top: 15px; }
.result-score b { font-family: var(--mono); font-size: 58px; line-height: 1; font-weight: 300; color: var(--accent); }
.result-score span { font-size: 11px; color: var(--bone-dim); }
.game-result > p:not(.game-result__kicker) { margin-top: 13px; font-size: 11.5px; letter-spacing: 0.05em; color: var(--bone-dim); }
.result-actions { display: flex; gap: 10px; margin-top: 25px; }

/* gong game */
.gg-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.gg-gong {
  position: relative;
  width: min(46vh, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  isolation: isolate;
}
.gg-gong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 235, 190, 0.32), transparent 34%),
    radial-gradient(circle, #b98538 0%, #8b5a1f 46%, #4a2a0d 68%, #140c06 72%);
  box-shadow: 0 0 80px rgba(232, 180, 90, 0.22), inset 0 0 30px rgba(0, 0, 0, 0.65);
}
.gg-gong::after {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(255, 227, 166, 0.28);
  box-shadow: inset 0 0 22px rgba(255, 211, 133, 0.15);
}
.gg-zone {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(41, 224, 198, 0.5);
  box-shadow: 0 0 24px rgba(41, 224, 198, 0.18);
  z-index: 2;
}
.gg-zone::after { content: "敲"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 24px; color: rgba(245, 210, 141, 0.7); }
.gg-ring {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px rgba(232, 180, 90, 0.35);
  pointer-events: none;
}
.gg-ring.is-perfect { border-color: var(--teal); box-shadow: 0 0 22px rgba(41, 224, 198, 0.7); }
.gg-hint {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
}
.gg-judge {
  position: absolute;
  top: 20%;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 24px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s, transform 0.3s var(--ease-out);
}
.gg-judge.show { opacity: 1; transform: none; }

/* mallet game */
.mg-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 0 12px; }
.mg-lanes { position: absolute; inset: 0 0 72px; display: grid; grid-template-columns: 1fr 1fr; }
.mg-lane { position: relative; border-left: 1px solid var(--line-soft); overflow: hidden; }
.mg-lane:first-child { border-left: 0; border-right: 1px solid var(--line-soft); }
.mg-lane::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(232, 180, 90, 0.22));
}
.mg-note {
  position: absolute;
  left: 50%;
  width: 66%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(232, 180, 90, 0.22), rgba(232, 180, 90, 0.7), rgba(232, 180, 90, 0.22));
  box-shadow: 0 0 18px rgba(232, 180, 90, 0.16);
  border: 1px solid rgba(245, 210, 141, 0.4);
}
.mg-note::after {
  content: "";
  position: absolute;
  inset: 6px 12px;
  background: repeating-linear-gradient(90deg, rgba(5, 7, 10, 0.4) 0 2px, transparent 2px 6px);
}
.mg-note.is-hit { opacity: 0; transform: translateX(-50%) scale(1.25); transition: opacity 0.18s, transform 0.18s; }
.mg-hitline {
  position: absolute;
  left: 0; right: 0;
  bottom: 72px;
  height: 1px;
  background: rgba(232, 180, 90, 0.3);
  z-index: 1;
}
.mg-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-pad {
  height: 58px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--bone-soft);
  transition: background 0.12s, border-color 0.12s, transform 0.1s;
}
.mg-pad:active, .mg-pad.is-hit { background: rgba(232, 180, 90, 0.18); border-color: var(--accent); transform: scale(0.985); }
.mg-pad small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 7px; letter-spacing: 0.16em; color: var(--bone-faint); }
.mg-judge {
  position: absolute;
  top: 18%;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 24px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s, transform 0.3s var(--ease-out);
  pointer-events: none;
}
.mg-judge.show { opacity: 1; transform: none; }

/* drum memory */
.dm-wrap { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 18px; }
.dm-pad {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--bone-dim);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
}
.dm-pad b { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: 0.12em; }
.dm-pad small { font-family: var(--mono); font-size: 7px; letter-spacing: 0.18em; color: var(--bone-faint); }
.dm-pad::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(241, 231, 214, 0.04); }
.dm-pad.is-lit { background: rgba(232, 180, 90, 0.16); border-color: rgba(232, 180, 90, 0.65); color: var(--bone); box-shadow: inset 0 0 40px rgba(232, 180, 90, 0.12), 0 0 20px rgba(232, 180, 90, 0.08); }
.dm-pad.is-good { background: rgba(41, 224, 198, 0.14); border-color: var(--teal); color: var(--bone); }
.dm-pad.is-bad { background: rgba(217, 74, 54, 0.16); border-color: var(--red); }
.dm-pad:active { transform: scale(0.985); }
.dm-status {
  position: absolute;
  top: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--accent);
  pointer-events: none;
}

/* pearl game */
.ph-wrap { position: absolute; inset: 0; overflow: hidden; }
.ph-pearl {
  position: absolute;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 1px solid rgba(255, 235, 200, 0.5);
  background: radial-gradient(circle at 38% 34%, #fff9ea, #e8b45a 40%, #7d4a16 72%, rgba(30, 17, 7, 0.2) 75%);
  box-shadow: 0 0 16px rgba(232, 180, 90, 0.45), 0 0 40px rgba(232, 180, 90, 0.18);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
  animation: pearl-breathe 1.8s ease-in-out infinite alternate;
}
.ph-pearl:hover { transform: scale(1.12); }
.ph-pearl.is-gone { opacity: 0; transform: scale(1.8); pointer-events: none; }
.ph-pearl::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(41, 224, 198, 0.24);
  border-radius: 50%;
  animation: spin 8s linear infinite;
  border-style: dashed;
}
@keyframes pearl-breathe { to { box-shadow: 0 0 24px rgba(232, 180, 90, 0.7), 0 0 55px rgba(232, 180, 90, 0.25); } }
.ph-score {
  position: absolute;
  left: 0; right: 0;
  bottom: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
}
.ph-judge {
  position: absolute;
  top: 16%;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.15s, transform 0.3s;
}
.ph-judge.show { opacity: 1; }

/* mask color game */
.mk-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; }
.mk-target { position: absolute; top: 8px; right: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 2; }
.mk-target > span { font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.14em; color: var(--bone-faint); }
.mk-target__art { width: 62px; height: 78px; opacity: 0.8; }
.mk-play { position: relative; }
.mk-play__art { width: min(37vh, 245px); height: min(46vh, 305px); }
.mk-play__art svg { filter: drop-shadow(0 0 22px rgba(217, 74, 54, 0.22)); }
.mk-play__hint { display: block; text-align: center; margin-top: 3px; font-family: var(--mono); font-size: 7px; letter-spacing: 0.12em; color: var(--bone-faint); }
.mk-palette { display: flex; align-items: center; gap: 5px; }
.mk-palette i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(241, 231, 214, 0.35); }
.mk-palette span { margin-left: 5px; font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.1em; color: var(--bone-faint); }
.mk-status { font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; color: var(--bone-dim); }
.mk-judge {
  position: absolute;
  top: 20%;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--teal);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.3s;
  pointer-events: none;
}
.mk-judge.show { opacity: 1; transform: none; }

/* cymbal game */
.cy-wrap { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 42px 12px 22px; gap: 12px; }
.cy-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--bone-soft);
  font-family: var(--display);
  letter-spacing: 0.12em;
  font-size: 15px;
  transition: color 0.2s, transform 0.15s;
}
.cy-pad:active { transform: scale(0.97); }
.cy-disc {
  position: relative;
  display: block;
  width: min(28vh, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 240, 195, 0.85), transparent 18%),
    radial-gradient(circle, #f1cc82 0%, #c18b39 30%, #8c5a22 58%, #43260e 72%, #1b0f08 75%);
  box-shadow: 0 0 35px rgba(232, 180, 90, 0.2), inset 0 0 28px rgba(0, 0, 0, 0.62);
  transition: box-shadow 0.15s, filter 0.15s, transform 0.15s;
}
.cy-disc::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 238, 190, 0.32);
  box-shadow: inset 0 0 20px rgba(255, 220, 140, 0.14);
}
.cy-disc::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f7dea5, #a9742d 58%, #4d2a10);
  border: 1px solid rgba(255, 241, 200, 0.35);
}
.cy-pad.is-lit .cy-disc { box-shadow: 0 0 75px rgba(232, 180, 90, 0.75), inset 0 0 28px rgba(0, 0, 0, 0.4); filter: brightness(1.35); transform: scale(1.04); }
.cy-pad.is-good .cy-disc { box-shadow: 0 0 80px rgba(41, 224, 198, 0.7); filter: brightness(1.2); }
.cy-pad.is-bad .cy-disc { box-shadow: 0 0 60px rgba(217, 74, 54, 0.7); filter: saturate(0.6) brightness(0.9); }
.cy-status {
  position: absolute;
  top: 12px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.17em;
  color: var(--accent);
  pointer-events: none;
}
.cy-judge {
  position: absolute;
  top: 27%;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--teal);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.3s;
  pointer-events: none;
}
.cy-judge.show { opacity: 1; transform: none; }

/* ---------- hotspots ---------- */
.hotspots {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.hotspots.is-paused { opacity: 0; display: none; }
.hotspot {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(41, 224, 198, 0.28);
  border-radius: 999px;
  background: rgba(5, 11, 14, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--bone-soft);
  font-size: 9px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, border-color 0.25s, background 0.25s;
  will-change: transform;
}
.hotspot.is-visible { opacity: 1; visibility: visible; }
.hotspot:hover, .hotspot:active { border-color: rgba(232, 180, 90, 0.65); background: rgba(15, 19, 17, 0.85); }
.hotspot__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(41, 224, 198, 0.8);
  flex: none;
}
.hotspot__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(41, 224, 198, 0.35);
  border-radius: 50%;
  animation: hotspot-pulse 2.4s ease-out infinite;
}
.hotspot:nth-child(2) .hotspot__dot { background: var(--gold); box-shadow: 0 0 10px rgba(232, 180, 90, 0.8); }
.hotspot:nth-child(2) .hotspot__dot::after { border-color: rgba(232, 180, 90, 0.4); animation-delay: 0.7s; }
.hotspot:nth-child(3) .hotspot__dot { background: #e8e0cf; box-shadow: 0 0 10px rgba(232, 224, 207, 0.65); }
.hotspot:nth-child(3) .hotspot__dot::after { border-color: rgba(232, 224, 207, 0.32); animation-delay: 1.3s; }
@keyframes hotspot-pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  80%, 100% { transform: scale(1.75); opacity: 0; }
}
.spot-card {
  position: absolute;
  z-index: 19;
  right: clamp(24px, 5.4vw, 86px);
  bottom: calc(17vh + 56px);
  width: min(340px, calc(100vw - 48px));
  padding: 18px 18px 15px;
  border: 1px solid rgba(232, 180, 90, 0.32);
  background: linear-gradient(150deg, rgba(14, 20, 23, 0.96), rgba(6, 10, 12, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-out), visibility 0.35s;
  pointer-events: none;
}
.spot-card.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.spot-card__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--bone-dim);
}
.spot-card__close svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.spot-card__kicker { font-family: var(--mono); font-size: 7px; letter-spacing: 0.2em; color: var(--teal); margin-bottom: 9px; }
.spot-card h3 { padding-right: 20px; font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: 0.05em; }
.spot-card > p:not(.spot-card__kicker) { margin-top: 9px; font-size: 11.5px; line-height: 1.82; color: var(--bone-dim); }
.spot-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.spot-card__hint { font-family: var(--mono); font-size: 7px; letter-spacing: 0.1em; color: var(--bone-faint); }
.sound-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(41, 224, 198, 0.28);
  border-radius: 999px;
  color: var(--teal);
  font-size: 9px;
  letter-spacing: 0.1em;
  transition: background 0.2s, border-color 0.2s;
}
.sound-chip:hover { background: rgba(41, 224, 198, 0.09); border-color: var(--teal); }
.sound-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound-chip svg path:first-child { fill: currentColor; stroke: none; }
.sound-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.sound-row__hint { font-family: var(--mono); font-size: 7px; letter-spacing: 0.08em; color: var(--bone-faint); }
.craft-lead { font-family: var(--display); font-size: 15px; line-height: 1.9; color: var(--bone-soft); }
.craft-list { margin-top: 20px; border-top: 1px solid var(--line-soft); }
.craft-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.craft-item__num { font-family: var(--mono); font-size: 10px; color: var(--accent); padding-top: 2px; }
.craft-item h4 { font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: 0.08em; }
.craft-item p { margin-top: 6px; font-size: 11.5px; line-height: 1.85; color: var(--bone-dim); }

/* ---------- guide ---------- */
.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 7, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.guide-modal.is-open { opacity: 1; pointer-events: auto; }
.guide-shell {
  width: min(960px, 94vw);
  height: min(820px, 88vh);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(241, 231, 214, 0.18);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(232, 180, 90, 0.1), transparent 50%),
    linear-gradient(165deg, rgba(14, 20, 24, 0.99), rgba(5, 8, 11, 0.99));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.55s var(--ease-out);
}
.guide-modal.is-open .guide-shell { transform: none; }
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 25px 27px 14px; }
.guide-head h2 { font-family: var(--display); font-size: 33px; font-weight: 500; letter-spacing: 0.06em; }
.guide-head__sub { margin-top: 7px; font-size: 10.5px; letter-spacing: 0.05em; color: var(--bone-dim); }
.guide-tabs { display: flex; gap: 24px; padding: 0 27px; border-bottom: 1px solid var(--line-soft); }
.guide-tab { position: relative; padding: 11px 0 12px; font-size: 11px; letter-spacing: 0.12em; color: var(--bone-dim); transition: color 0.25s; }
.guide-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.guide-tab.is-active { color: var(--bone); }
.guide-tab.is-active::after { transform: scaleX(1); }
.guide-scroll { flex: 1; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; padding: 22px 27px 34px; scrollbar-width: thin; scrollbar-color: rgba(232, 180, 90, 0.25) transparent; }
.guide-panel { animation: panel-in 0.4s var(--ease) both; }
.guide-intro { max-width: 720px; font-family: var(--display); font-size: 15px; line-height: 2; color: var(--bone-soft); }
.guide-photos { display: grid; grid-template-columns: 1.1fr 0.9fr 0.8fr; gap: 7px; margin-top: 20px; }
.guide-photos figure { position: relative; margin: 0; overflow: hidden; background: #0a0d0f; border: 1px solid var(--line-soft); }
.guide-photos img { display: block; width: 100%; height: 150px; object-fit: cover; filter: saturate(0.8) contrast(1.05); transition: transform 0.5s var(--ease); }
.guide-photos figure:hover img { transform: scale(1.04); }
.guide-photos figcaption { padding: 8px 9px; font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.08em; color: var(--bone-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-timeline { position: relative; margin-top: 22px; padding-left: 23px; }
.guide-timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--accent), rgba(232, 180, 90, 0.08)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 94px 1fr; gap: 14px; padding: 12px 0; }
.timeline-item::before { content: ""; position: absolute; left: -23px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); border: 1px solid var(--accent); }
.timeline-item__year { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--accent); padding-top: 2px; }
.timeline-item h4 { font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: 0.06em; }
.timeline-item p { margin-top: 5px; font-size: 11.5px; line-height: 1.85; color: var(--bone-dim); }
.guide-section-label { margin-top: 26px; padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em; color: var(--bone-faint); }
.guide-props { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.guide-prop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  text-align: left;
  transition: border-color 0.25s, background 0.25s;
}
.guide-prop:hover { border-color: rgba(232, 180, 90, 0.42); background: rgba(232, 180, 90, 0.04); }
.guide-prop b { font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: 0.08em; color: var(--bone-soft); }
.guide-prop span { font-family: var(--mono); font-size: 7px; letter-spacing: 0.15em; color: var(--bone-faint); }
.guide-prop i { font-style: normal; color: var(--accent); font-size: 14px; }
.grammar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 20px; }
.grammar-card { min-height: 128px; padding: 14px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.015); }
.grammar-card__en { font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.18em; color: var(--accent); }
.grammar-card h4 { margin-top: 8px; font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: 0.08em; }
.grammar-card p { margin-top: 7px; font-size: 10.5px; line-height: 1.8; color: var(--bone-dim); }
.formation-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.formation-item { padding: 12px 13px; border-left: 1px solid rgba(232, 180, 90, 0.35); background: linear-gradient(90deg, rgba(232, 180, 90, 0.045), transparent); }
.formation-item b { font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: 0.06em; color: var(--bone-soft); }
.formation-item p { margin-top: 4px; font-size: 10px; line-height: 1.7; color: var(--bone-dim); }
.stamp-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 12px; }
.stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 8px;
  border: 1px solid var(--line-soft);
  color: var(--bone-faint);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.stamp__seal {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--display);
  font-size: 15px;
  opacity: 0.38;
  transform: rotate(-3deg);
}
.stamp span { font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.06em; text-align: center; line-height: 1.4; }
.stamp.is-earned { color: var(--accent); border-color: rgba(232, 180, 90, 0.28); background: rgba(232, 180, 90, 0.045); }
.stamp.is-earned .stamp__seal { opacity: 1; box-shadow: 0 0 16px rgba(232, 180, 90, 0.12); }
.stamp.is-earned span { color: var(--bone-dim); }
.quiz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.quiz-head h3 { font-family: var(--display); font-size: 25px; font-weight: 500; letter-spacing: 0.06em; }
.quiz-score { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.quiz-score span { font-family: var(--mono); font-size: 7px; letter-spacing: 0.18em; color: var(--bone-faint); }
.quiz-score b { font-family: var(--mono); font-size: 24px; font-weight: 400; color: var(--accent); }
.quiz-body { margin-top: 20px; }
.quiz-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.13em; color: var(--bone-faint); }
.quiz-progress__bar { flex: 1; height: 1px; background: var(--line-soft); overflow: hidden; }
.quiz-progress__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.35s var(--ease); }
.quiz-question { font-family: var(--display); font-size: 22px; line-height: 1.55; letter-spacing: 0.04em; color: var(--bone); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.quiz-option {
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
  color: var(--bone-soft);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.quiz-option:hover { border-color: rgba(232, 180, 90, 0.45); background: rgba(232, 180, 90, 0.04); }
.quiz-option.is-right { border-color: var(--teal); background: rgba(41, 224, 198, 0.1); color: var(--bone); }
.quiz-option.is-wrong { border-color: var(--red); background: rgba(217, 74, 54, 0.1); }
.quiz-option:disabled { cursor: default; }
.quiz-explain { margin-top: 14px; padding: 12px 14px; border-left: 1px solid var(--teal); background: rgba(41, 224, 198, 0.045); font-size: 11px; line-height: 1.8; color: var(--bone-dim); }
.quiz-next { margin-top: 14px; }
.sound-quiz { display: grid; gap: 18px; }
.sq-start {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(232,180,90,0.09), transparent 65%);
  text-align: center;
}
.sq-start__badge { font-family: var(--mono); font-size: 8px; letter-spacing: 0.24em; color: var(--accent); }
.sq-start h3 { margin: 12px 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--bone); }
.sq-start p { margin: 0 auto 20px; max-width: 390px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.sq-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--muted); }
.sq-replay {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--accent); font: inherit; letter-spacing: 0.1em;
}
.sq-replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.sq-stage { position: relative; min-height: 116px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(4,9,12,0.45); overflow: hidden; }
.sq-stage p { position: relative; z-index: 2; font-family: var(--serif); font-size: 18px; color: var(--bone); letter-spacing: 0.05em; }
.sq-orb { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.55; }
.sq-orb i { position: absolute; width: 92px; height: 92px; border: 1px solid rgba(232,180,90,0.3); border-radius: 50%; animation: sqPulse 3.2s ease-out infinite; }
.sq-orb i:nth-child(2) { animation-delay: 1s; }
.sq-orb i:nth-child(3) { animation-delay: 2s; }
@keyframes sqPulse { 0% { transform: scale(0.5); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }
.sq-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sq-option {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; text-align: left;
  border: 1px solid var(--line); background: rgba(255,255,255,0.015); color: var(--bone);
}
.sq-option b { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.sq-option span { font-family: var(--mono); font-size: 7px; letter-spacing: 0.12em; color: var(--muted); }
.sq-option:hover { border-color: rgba(232,180,90,0.5); }
.sq-option.is-right { border-color: var(--jade); background: rgba(116,215,196,0.09); }
.sq-option.is-wrong { border-color: #c65b45; background: rgba(198,91,69,0.1); }
.sq-option:disabled { cursor: default; }
.sq-feedback { margin: 0; min-height: 18px; font-size: 10px; letter-spacing: 0.04em; color: var(--muted); }
@media (max-width: 600px) {
  .sq-options { grid-template-columns: 1fr; }
  .sq-start { padding: 22px 16px; }
}
 padding: 26px 0 4px; }
.quiz-finish { padding: 28px 24px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 0%, rgba(232,180,90,0.08), transparent 65%); text-align: center; }
.quiz-finish h3 { font-family: var(--display); font-size: 31px; font-weight: 500; letter-spacing: 0.06em; }
.quiz-finish p { margin-top: 9px; font-size: 11.5px; line-height: 1.8; color: var(--bone-dim); }
.quiz-finish__score { margin-top: 14px; font-family: var(--mono); font-size: 46px; color: var(--accent); }
.quiz-finish__score span { font-size: 11px; color: var(--bone-dim); }
.quiz-finish__actions { display: flex; gap: 9px; margin-top: 18px; }

/* ---------- share modal ---------- */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 5, 7, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.share-modal.is-open { opacity: 1; pointer-events: auto; }
.share-card {
  width: min(400px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  touch-action: pan-y;
  padding: 24px;
  border: 1px solid rgba(241, 231, 214, 0.16);
  background: linear-gradient(160deg, rgba(15, 21, 26, 0.98), rgba(6, 9, 12, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.45s var(--ease-out);
}
.share-modal.is-open .share-card { transform: none; }
.share-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.eyebrow { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.22em; color: var(--teal); margin-bottom: 9px; }
.share-card h2 { font-family: var(--display); font-size: 27px; font-weight: 500; letter-spacing: 0.06em; }
.share-link { display: flex; gap: 7px; margin-top: 19px; }
.share-link input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--bone-soft);
  font-family: var(--mono);
  font-size: 10px;
}
.share-native {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.share-native:hover { color: var(--bone); }
.share-qr-wrap { display: flex; align-items: center; gap: 14px; margin-top: 15px; padding: 13px; border: 1px solid var(--line-soft); }
.share-qr { width: 104px; height: 104px; flex: none; padding: 5px; background: #f1e7d6; }
.share-qr svg, .share-qr img { width: 100%; height: 100%; display: block; }
.share-qr-copy p { font-family: var(--display); font-size: 15px; letter-spacing: 0.06em; color: var(--bone-soft); }
.share-qr-copy small { display: block; margin-top: 6px; font-size: 9px; line-height: 1.7; color: var(--bone-faint); }
.share-note { margin-top: 15px; font-size: 10px; line-height: 1.75; color: var(--bone-faint); }

/* ---------- toast / loader ---------- */
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(105px + var(--safe-bottom));
  transform: translate(-50%, 10px);
  padding: 9px 15px;
  border: 1px solid rgba(232, 180, 90, 0.28);
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bone-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
  white-space: nowrap;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-good { border-color: rgba(41, 224, 198, 0.4); }
.toast.is-bad { border-color: rgba(217, 74, 54, 0.4); }

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(41, 55, 50, 0.34), transparent 55%),
    #040609;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { width: min(320px, 76vw); text-align: center; }
.loader__seal {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 28px;
  background: linear-gradient(150deg, #b7392b, #762019);
  border: 1px solid rgba(255, 220, 180, 0.3);
  box-shadow: 0 0 45px rgba(190, 56, 40, 0.3);
  animation: seal-pulse 2.8s ease-in-out infinite;
}
@keyframes seal-pulse { 50% { box-shadow: 0 0 70px rgba(232, 180, 90, 0.22); } }
.loader__eyebrow { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.28em; color: var(--bone-faint); }
.loader h2 { margin-top: 11px; font-family: var(--display); font-size: 23px; font-weight: 500; letter-spacing: 0.12em; }
.loader__bar { width: 100%; height: 1px; margin-top: 27px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold), var(--teal)); transition: width 0.35s var(--ease); }
.loader__status { margin-top: 12px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.13em; color: var(--bone-dim); }
.noscript { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--ink); color: var(--bone); }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .hero { left: 6vw; width: 330px; }
  .hero__title { font-size: 78px; }
  .sheet { width: 420px; min-width: 0; }
  .prop-nav__rail { width: 70vw; }
}

@media (max-width: 820px) {
  .topbar { padding: calc(17px + var(--safe-top)) 18px 0; }
  .brand { gap: 9px; }
  .brand__seal { width: 30px; height: 30px; font-size: 17px; }
  .brand__text strong { font-size: 12px; letter-spacing: 0.16em; }
  .brand__text small { font-size: 6px; letter-spacing: 0.22em; }
  .icon-btn { height: 32px; min-width: 32px; padding: 0 9px; }
  .icon-btn__label { display: none; }
  .topbar__actions { gap: 6px; }
  .side-code { display: none; }
  .corner { display: none; }
  .reticle { left: 50%; top: 47%; width: 78vw; opacity: 0.55; }
  .backdrop__glow--model { left: 50%; top: 52%; width: 90vmax; height: 90vmax; opacity: 0.22; }

  .hero {
    left: 20px;
    top: calc(84px + var(--safe-top));
    width: calc(100% - 40px);
    transform: none;
  }
  .hero__kicker { margin-bottom: 12px; font-size: 8px; }
  .hero__title { font-size: clamp(48px, 14vw, 68px); letter-spacing: 0.03em; }
  .hero__title--3 { font-size: clamp(46px, 13vw, 62px); }
  .hero__title--4 { font-size: clamp(42px, 11.8vw, 54px); }
  .hero__title--5 { font-size: clamp(36px, 10.2vw, 46px); }
  .hero__en { margin-top: 10px; font-size: 7.5px; letter-spacing: 0.32em; }
  .hero__tagline { margin-top: 13px; font-size: 13.5px; line-height: 1.65; max-width: 260px; }
  .archive-btn { margin-top: 18px; padding: 9px 0; font-size: 10px; }
  .model-metaline { display: none; }
  .model-metaline .metal-divider, #modelStatus { display: none; }
  .touch-hint {
    left: 50%;
    right: auto;
    bottom: calc(142px + var(--safe-bottom));
    transform: translateX(-50%);
    padding: 7px 12px;
    font-size: 8.5px;
    white-space: nowrap;
  }
  .touch-hint__icon { width: 21px; height: 21px; }
  .touch-hint__icon svg { width: 14px; height: 14px; }
  .fx-btn { right: 18px; bottom: calc(184px + var(--safe-bottom)); padding: 6px 9px; font-size: 8px; }
  .app.has-interacted .touch-hint { transform: translate(-50%, 6px); }

  .prop-nav { padding: 0 18px calc(11px + var(--safe-bottom)); }
  .prop-nav__rail { width: 100%; display: flex; overflow-x: auto; }
  .prop-item { flex: 0 0 84px; padding: 9px 7px 0 0; gap: 3px; }
  .prop-item__index { font-size: 6.5px; letter-spacing: 0.16em; }
  .prop-item__name { font-size: 12.5px; letter-spacing: 0.06em; }
  .prop-item__en { display: none; }
  .prop-item.is-active::before { width: 24px; }
  .prop-nav__meta { display: none; }

  .sheet {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    min-width: 0;
    height: min(76vh, 720px);
    border-radius: 22px 22px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    transform: translateY(calc(100% + 20px));
  }
  .sheet.is-open { transform: translateY(0); }
  .sheet__grab {
    display: block;
    width: 38px; height: 3px;
    margin: 9px auto 0;
    border-radius: 99px;
    background: rgba(241, 231, 214, 0.22);
    flex: none;
  }
  .sheet__top { padding: 18px 20px 14px; }
  .sheet__top h2 { font-size: 30px; }
  .sheet__kicker { margin-bottom: 9px; }
  .sheet__tabs { padding: 0 20px; }
  .sheet__scroll { padding: 18px 20px calc(28px + var(--safe-bottom)); }
  .sheet-intro { font-size: 14px; }
  .fact-grid { margin-top: 18px; }
  .prose p { font-size: 12px; line-height: 1.95; }
  .quote { font-size: 17px; }
  .sheet-scrim { background: rgba(2, 4, 6, 0.66); }
  .app.sheet-open .hero { opacity: 1; transform: none; }
  .app.sheet-open .reticle { opacity: 0.4; }
  .app.sheet-open .touch-hint { opacity: 0; }

  .game-overlay { padding: 10px; }
  .game-shell { width: 100%; height: min(90vh, 760px); padding: 15px 14px calc(12px + var(--safe-bottom)); border-radius: 4px; }
  .game-head__title { font-size: 16px; }
  .game-head__stats { gap: 12px; }
  .game-head__stats b { font-size: 14px; min-width: 28px; }
  .game-head__stats > div:nth-child(2) { display: none; }
  .game-stage { margin-top: 10px; }
  .game-foot p { font-size: 7px; }
  .game-timer { width: 35%; }
  .gg-gong { width: min(46vh, 300px); }
  .mg-pad { height: 52px; font-size: 16px; }
  .mg-pads { gap: 7px; }
  .mg-lanes { inset: 0 0 64px; }
  .mg-hitline { bottom: 64px; }
  .dm-wrap { gap: 6px; padding: 12px; }
  .dm-pad b { font-size: 21px; }
  .dm-pad small { font-size: 6px; }
  .ph-pearl { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .mk-play__art { width: min(38vh, 220px); height: min(47vh, 270px); }
  .mk-target__art { width: 52px; height: 66px; }
  .cy-disc { width: min(30vw, 140px); }
  .cy-wrap { padding: 38px 6px 18px; gap: 4px; }
  .cy-pad { gap: 6px; font-size: 13px; }
  .game-result h3 { font-size: 30px; }
  .result-score b { font-size: 48px; }

  .share-modal { padding: 14px; }
  .share-card { padding: 20px; }
  .share-card h2 { font-size: 24px; }
  .hotspot { font-size: 8px; padding: 4px 7px 4px 5px; gap: 5px; }
  .hotspot__dot { width: 7px; height: 7px; }
  .spot-card {
    left: 12px;
    right: 12px;
    bottom: calc(96px + var(--safe-bottom));
    width: auto;
    padding: 16px;
  }
  .spot-card h3 { font-size: 19px; }
  .guide-modal { padding: 0; }
  .guide-shell { width: 100%; height: 92vh; height: 92dvh; border-radius: 16px 16px 0 0; align-self: end; border-left: 0; border-right: 0; border-bottom: 0; }
  .guide-head { padding: 20px 18px 12px; }
  .guide-head h2 { font-size: 28px; }
  .guide-head__sub { font-size: 9.5px; }
  .guide-tabs { gap: 18px; padding: 0 18px; overflow-x: auto; }
  .guide-tab { white-space: nowrap; }
  .guide-scroll { padding: 18px 18px calc(30px + var(--safe-bottom)); }
  .guide-intro { font-size: 13.5px; }
  .guide-photos { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
  .guide-photos::-webkit-scrollbar { display: none; }
  .guide-photos figure { flex: 0 0 68%; }
  .guide-photos img { height: 132px; }
  .timeline-item { grid-template-columns: 74px 1fr; gap: 10px; }
  .timeline-item h4 { font-size: 15px; }
  .timeline-item p { font-size: 10.5px; }
  .guide-props { grid-template-columns: 1fr; }
  .stamp-board { grid-template-columns: repeat(3, 1fr); }
  .grammar-grid { grid-template-columns: 1fr 1fr; }
  .grammar-card { min-height: 0; }
  .formation-list { grid-template-columns: 1fr; }
  .quiz-question { font-size: 19px; }
  .quiz-options { grid-template-columns: 1fr; }
  .share-qr-wrap { margin-top: 12px; }
  .share-qr { width: 88px; height: 88px; }
  .toast { bottom: calc(92px + var(--safe-bottom)); font-size: 9px; max-width: calc(100vw - 40px); white-space: normal; text-align: center; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 46px; }
  .hero__tagline { font-size: 12.5px; max-width: 220px; }
  .archive-btn { margin-top: 12px; }
  .model-metaline { bottom: calc(146px + var(--safe-bottom)); }
  .prop-item__name { font-size: 11.5px; }
}

@media (max-height: 680px) and (max-width: 820px) {
  .hero { top: calc(70px + var(--safe-top)); }
  .hero__title { font-size: 44px; }
  .hero__tagline { display: none; }
  .archive-btn { margin-top: 10px; }
  .touch-hint { display: none; }
  .model-metaline { bottom: calc(126px + var(--safe-bottom)); }
  .sheet { height: 82vh; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .topbar { padding: 10px 20px 0; }
  .brand__seal { width: 28px; height: 28px; font-size: 16px; }
  .brand__text strong { font-size: 11.5px; letter-spacing: 0.12em; }
  .brand__text small { font-size: 5.5px; }
  .icon-btn { height: 29px; min-width: 29px; padding: 0 8px; }
  .icon-btn__label { display: none; }
  .hero {
    left: 26px;
    top: 50%;
    width: 270px;
    transform: translateY(-45%);
  }
  .hero__kicker { margin-bottom: 8px; font-size: 7.5px; }
  .hero__title,
  .hero__title--3,
  .hero__title--4,
  .hero__title--5 { font-size: 52px !important; }
  .hero__en { margin-top: 7px; font-size: 6.5px; }
  .hero__tagline { margin-top: 10px; font-size: 11.5px; line-height: 1.65; max-width: 230px; }
  .archive-btn { margin-top: 11px; padding: 7px 0; font-size: 9px; }
  .model-metaline { top: 52px; right: 20px; font-size: 6px; }
  .touch-hint { right: 20px; bottom: 66px; padding: 6px 10px; font-size: 8px; }
  .touch-hint__icon { display: none; }
  .corner { display: none; }
  .reticle { left: 60%; top: 48%; width: 52vh; }
  .prop-nav { padding: 0 20px 8px; }
  .prop-nav__rail { width: auto; flex: 1; }
  .prop-item { flex: 0 0 80px; padding: 8px 6px 0 0; }
  .prop-item__name { font-size: 11.5px; }
  .prop-item__en { display: none; }
  .prop-nav__meta { font-size: 6.5px; gap: 6px; }
  .sheet {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: auto;
    width: min(46vw, 410px);
    min-width: 0;
    border-radius: 16px;
    transform: translateX(calc(100% + 20px));
  }
  .sheet.is-open { transform: none; }
  .sheet__grab { display: none; }
  .sheet__top { padding: 18px 20px 12px; }
  .sheet__top h2 { font-size: 27px; }
  .sheet__tabs { gap: 18px; padding: 0 20px; overflow-x: auto; }
  .sheet__scroll { padding: 16px 20px 24px; }
  .app.sheet-open .hero { opacity: 0.18; transform: translateY(-45%); }
  .spot-card { right: 20px; bottom: 76px; width: 300px; }
  .guide-modal { padding: 8px; }
  .guide-shell { width: 96vw; height: 94vh; }
  .guide-head { padding: 16px 20px 10px; }
  .guide-head h2 { font-size: 26px; }
  .guide-tabs { padding: 0 20px; }
  .guide-scroll { padding: 16px 20px 24px; }
  .game-overlay { padding: 8px; }
  .game-shell { height: 94vh; padding: 12px 16px; }
  .share-modal { padding: 10px; }
  .share-card { max-height: 94vh; }
}

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