/* =========================================================
   御坂美琴 — RAILGUN  ｜  Light theme
   暖米白纸面 × 紫電 × 栗琥珀 × 银
   ========================================================= */

:root {
  /* —— 色板（亮色，全部来自御坂的主题色）—— */
  --paper:     #f3ecdd;     /* 主底 · 暖米白 / 和纸 */
  --paper-2:   #fbf6ea;     /* 浅纸面板 */
  --paper-3:   #ffffff;     /* 卡片纯白核心 */
  --ink:       #1a1722;     /* 主文字 · 暖近黑 */
  --ink-2:     #4b4456;     /* 次文字 */
  --ink-3:     #8a8194;     /* 弱化 */

  /* 主强调一律琥珀；紫色只用作背景电光氛围 */
  --amber:     #c9712b;     /* 御坂琥珀 · 主强调 */
  --amber-d:   #9c4f17;     /* 琥珀深 · hover / 副标 */
  --amber-soft:#f5e2cb;     /* 琥珀浅 · 卡片高亮底 */

  --volt:      #5b4cdd;     /* 紫電 · 仅背景电光 */
  --volt-deep: #3a2db0;
  --volt-soft: #ece9ff;

  --silver:    #b9bfcc;     /* 银（硬币）*/
  --silver-d:  #6a7184;

  --rule:      #e2d9c8;     /* 分隔线 · 纸边 */
  --rule-2:    #cfc4ad;

  /* —— 字体 —— */
  --f-display: "Shippori Mincho B1", "Zen Kaku Gothic New", serif;
  --f-jp:      "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-mono:    "Space Grotesk", ui-monospace, monospace;

  --ease:      cubic-bezier(0.32, 0.72, 0, 1);
  --maxw:      1240px;
  --pad-sec:   clamp(4.5rem, 3rem + 7vw, 9rem);
}

/* —— reset —— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-jp);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
::selection { background: var(--amber); color: #fff; }

/* =========================================================
   背景层：纸纹底 + 学園都市淡蓝图网格 + canvas 电光 + 颗粒
   ========================================================= */
.bg-paper {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 10%, rgba(91,76,221,0.10), transparent 70%),
    radial-gradient(45% 50% at 10% 90%, rgba(201,113,43,0.08), transparent 70%),
    var(--paper);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45;
  background-image:
    linear-gradient(to right,  rgba(74,68,86,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(74,68,86,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, #000 55%, transparent 100%);
}
#railgun-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
  mix-blend-mode: multiply; /* 暗墨环境电弧 */
}
#railgun-beam {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
  /* 蓝白电磁炮主光束：不用 multiply，让亮色直接发光 */
}
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.scroll-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: rgba(26,23,34,0.06); display: block;
}
#scroll-progress {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--amber-d), var(--ink));
  transition: width 0.1s linear;
}

main, .footer, .nav, .nav-overlay { position: relative; z-index: 5; }

/* =========================================================
   顶栏 — 杂志风：左 logo / 中导航 / 右动作
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: 0.85rem clamp(1.25rem, 3vw, 2.6rem);
  background: rgba(243,236,221,0.86);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.nav.scrolled { background: rgba(243,236,221,0.95); }

.brand { display: inline-flex; align-items: baseline; gap: 0.65rem; }
.brand-coin { width: 30px; height: 30px; align-self: center;
  filter: drop-shadow(0 2px 4px rgba(26,23,34,0.18));
  transition: transform 0.6s var(--ease); }
.brand:hover .brand-coin { transform: rotate(-90deg); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.brand-sub  { font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: 0.3em;
              color: var(--amber); text-transform: uppercase; }

.nav-links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); justify-self: center; }
.nav-links a { font-family: var(--f-jp); font-size: 0.92rem; color: var(--ink-2);
  display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.3rem 0;
  transition: color 0.4s var(--ease); }
.nav-links a i { font-family: var(--f-display); font-style: normal; font-size: 0.78rem;
  color: var(--amber); }
.nav-links a:hover { color: var(--amber-d); }
.nav-links a:hover i { color: var(--amber); }

.nav-fire { font-family: var(--f-jp); font-weight: 700; font-size: 0.85rem;
  padding: 0.55rem 1.1rem; border-radius: 4px;
  color: #fff; background: var(--ink);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease); }
.nav-fire:hover { background: var(--amber-d); transform: translateY(-1px); }
.nav-fire:active { transform: translateY(0) scale(0.97); }

.nav-toggle { display: none; width: 36px; height: 36px; position: relative; }
.nav-toggle span { position: absolute; left: 6px; width: 24px; height: 1.6px; background: var(--ink);
  transition: transform 0.45s var(--ease); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 39;
  display: flex; flex-direction: column; justify-content: center; gap: 1.4rem;
  padding: 2rem clamp(1.5rem, 8vw, 5rem);
  background: rgba(243,236,221,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.nav.open ~ .nav-overlay { opacity: 1; visibility: visible; }
.nav-overlay a {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 12vw, 4rem);
  line-height: 1.1; display: flex; align-items: baseline; gap: 1rem;
  border-top: 1px solid var(--rule); padding-top: 1rem;
  transform: translateY(40px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.nav-overlay a em { font-family: var(--f-mono); font-style: normal; font-size: 0.7rem;
  letter-spacing: 0.25em; color: var(--amber); }
.nav.open ~ .nav-overlay a { transform: translateY(0); opacity: 1; }
.nav.open ~ .nav-overlay a:nth-child(1) { transition-delay: 0.06s; }
.nav.open ~ .nav-overlay a:nth-child(2) { transition-delay: 0.12s; }
.nav.open ~ .nav-overlay a:nth-child(3) { transition-delay: 0.18s; }

/* =========================================================
   滚动揭示
   ========================================================= */
.reveal { opacity: 0; transform: translateY(20px); filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }
.reveal[data-d="6"] { transition-delay: 0.48s; }

/* =========================================================
   HERO — 杂志封面式（左字 / 右大图 / 竖排日文）
   ========================================================= */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 3vw, 2.6rem) clamp(3rem, 5vw, 5rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative; min-height: 86vh;
}
.hero-side {
  position: absolute; top: 50%; right: -0.6rem; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.35em;
  color: var(--ink-3);
}
.hero-text { position: relative; z-index: 2; }
.kicker { display: inline-block; font-family: var(--f-mono); font-size: 0.72rem;
  letter-spacing: 0.22em; color: var(--amber-d);
  padding-bottom: 0.45rem; border-bottom: 1px solid var(--amber); }
.hero h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3.4rem, 0.8rem + 11vw, 9rem); line-height: 0.96;
  letter-spacing: 0.01em; margin: 1.4rem 0 0.5rem;
  color: var(--ink); white-space: nowrap;
}
.romaji { font-family: var(--f-mono); font-size: 0.85rem; letter-spacing: 0.4em;
  color: var(--ink-3); margin-bottom: 1.4rem; }
.hero-railgun { font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.5rem, 0.8rem + 2vw, 2.4rem); color: var(--amber-d);
  display: inline-flex; align-items: baseline; gap: 0.7rem; }
.hero-railgun span { font-family: var(--f-jp); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.32em; color: var(--ink-3);
  padding: 0.25rem 0.55rem; border: 1px solid var(--amber);
  border-radius: 2px; }
.hero-lead { margin-top: 1.5rem; max-width: 34ch; color: var(--ink-2);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem); }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-jp); font-weight: 700; font-size: 0.92rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  color: #fff; background: var(--ink);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease); }
.btn::after { content: "→"; font-family: var(--f-mono); transition: transform 0.4s var(--ease); }
.btn:hover { background: var(--amber-d); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn.ghost { color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 0.75rem 1.4rem; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.link-fire { font-family: var(--f-jp); font-weight: 500; font-size: 0.9rem;
  color: var(--ink); border-bottom: 1px solid var(--amber);
  padding: 0.4rem 0.1rem 0.35rem; transition: color 0.4s var(--ease); }
.link-fire:hover { color: var(--amber-d); }

.hero-data { margin-top: 2.6rem; font-family: var(--f-mono); font-size: 0.78rem;
  color: var(--ink-3); letter-spacing: 0.04em; line-height: 1.7; }
.hero-data b { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem;
  color: var(--ink); margin-right: 0.3rem; letter-spacing: 0.02em; }
.hero-data span { margin: 0 0.85rem; color: var(--rule-2); }

/* hero 视觉：人物图带书页/印刷邊框，硬币漂浮 */
.hero-visual { position: relative; }
.hero-photo {
  position: relative; padding: 10px; background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule-2), 0 30px 60px -40px rgba(26,23,34,0.5);
  transform: perspective(1200px) rotateY(var(--ry,-3deg)) rotateX(var(--rx,1.5deg)) rotate(1.2deg);
  transition: transform 0.5s var(--ease);
}
.hero-photo img {
  width: 100%; height: clamp(440px, 64vh, 600px); object-fit: cover; object-position: 50% 14%;
  filter: contrast(1.04) saturate(1.04);
}
.hero-photo::after {
  content: "MISAKA MIKOTO · No.3";
  position: absolute; left: 18px; bottom: -10px;
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.34em;
  background: var(--paper); padding: 0.25rem 0.6rem; color: var(--amber-d);
  border: 1px solid var(--rule);
}

.hero-coin { position: absolute; pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(26,23,34,0.28));
}
.hero-coin.coin-front {
  width: 116px; height: 116px;
  top: -28px; right: -14px;
  animation: coin-spin 7s cubic-bezier(0.5,0.05,0.5,0.95) infinite;
}
.hero-coin.coin-back {
  width: 86px; height: 86px;
  bottom: -22px; left: -22px;
  opacity: 0.85;
  animation: coin-float 6s ease-in-out infinite;
}
@keyframes coin-spin {
  0%,100% { transform: rotate(-6deg) translateY(0); }
  50%     { transform: rotate(8deg)  translateY(-10px); }
}
@keyframes coin-float {
  0%,100% { transform: translateY(0)   rotate(4deg); }
  50%     { transform: translateY(-10px) rotate(-6deg); }
}
.biribiri {
  position: absolute; bottom: 28%; right: -28px;
  writing-mode: vertical-rl;
  font-family: var(--f-display); font-weight: 800; font-size: 1.4rem;
  letter-spacing: 0.45em; color: var(--amber);
  -webkit-text-stroke: 1px var(--amber-d);
  opacity: 0.85;
}

/* =========================================================
   QUOTE — 横排两栏，纸面卡
   ========================================================= */
.quote {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 3vw, 2.6rem);
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.quote-media {
  background: #fff; padding: 8px; border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule-2);
  transform: rotate(-1.5deg);
}
.quote-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 22%;
  filter: contrast(1.04); }
.quote blockquote { position: relative; padding-left: 1.4rem; border-left: 3px solid var(--amber); }
.quote p { font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); line-height: 1.36; }
.quote p span { color: var(--amber); }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal;
  font-family: var(--f-mono); font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--ink-2); }
.quote cite span { color: var(--ink-3); }

/* =========================================================
   SECTION 通用
   ========================================================= */
.section { max-width: var(--maxw); margin: 0 auto;
  padding: var(--pad-sec) clamp(1.25rem, 3vw, 2.6rem); }
.s-head { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem); padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule); }
.s-num { font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3rem, 1rem + 7vw, 6rem); line-height: 0.9;
  color: var(--amber); letter-spacing: -0.02em; }
.s-head h2 { font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.2rem, 1.2rem + 3.5vw, 4rem); line-height: 1; letter-spacing: 0.01em; }
.s-sub { margin-top: 0.6rem; font-family: var(--f-mono); font-size: 0.78rem;
  letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }

/* =========================================================
   PROFILE — bento
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  grid-auto-rows: 150px; }
.cell { position: relative;
  background: var(--paper-2); border: 1px solid var(--rule);
  padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.18rem;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.cell:hover { transform: translateY(-3px); border-color: var(--amber); background: #fff; }
.cell .k { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.22em;
  color: var(--ink-3); text-transform: uppercase; }
.cell strong { font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.7rem, 1rem + 1.4vw, 2.4rem); line-height: 1; color: var(--ink); }
.cell strong.sm { font-size: clamp(1.2rem, 0.9rem + 0.8vw, 1.7rem); }
.cell .sub { font-size: 0.78rem; color: var(--ink-2); }

.cell-photo { grid-column: span 2; grid-row: span 3; padding: 0; overflow: hidden;
  background: #fff; }
.cell-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }

.cell-title { grid-column: span 2; grid-row: span 2;
  background: linear-gradient(140deg, var(--amber-soft), var(--paper-2));
  border-color: var(--amber); padding: 1.6rem 1.8rem; }
.cell-title .v-title { font-family: var(--f-display); font-weight: 800;
  font-size: clamp(3rem, 1.4rem + 5vw, 5rem); color: var(--amber-d);
  line-height: 1; letter-spacing: 0.02em; }
.cell-title .sub { color: var(--amber); font-family: var(--f-mono); letter-spacing: 0.2em;
  font-size: 0.7rem; }
.cell-coin { position: absolute; right: 1.4rem; top: 1.4rem; width: 64px; height: 64px;
  opacity: 0.85; filter: drop-shadow(0 6px 10px rgba(91,76,221,0.25)); }
.cell-title:hover .cell-coin { transform: rotate(180deg); transition: transform 1s var(--ease); }

/* =========================================================
   ABILITY
   ========================================================= */
.ability-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: start; }
.ability-photo { position: sticky; top: 6rem;
  background: #fff; padding: 10px; border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule-2); }
.ability-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 18%; }
.ability-photo .btn { margin-top: 1rem; width: 100%; justify-content: center; }
.ability-list { display: flex; flex-direction: column; }
.ability-list li { padding: 1.6rem 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.6rem; align-items: baseline; }
.ability-list li:last-child { border-bottom: 1px solid var(--rule); }
.ability-list .no { grid-row: span 2;
  font-family: var(--f-mono); font-size: 1rem; letter-spacing: 0.2em; color: var(--amber);
  padding-top: 0.4rem; }
.ability-list h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem;
  letter-spacing: 0.02em;
  display: flex; align-items: baseline; gap: 0.7rem; }
.ability-list h3 em { font-family: var(--f-mono); font-style: normal; font-size: 0.62rem;
  letter-spacing: 0.26em; color: var(--ink-3); padding: 0.2rem 0.4rem;
  border: 1px solid var(--rule); }
.ability-list p { font-size: 0.95rem; color: var(--ink-2); max-width: 50ch; }
.ability-list b { color: var(--amber); font-weight: 700; }
.ability-list li:hover h3 { color: var(--amber-d); }
.ability-list li { transition: padding 0.4s var(--ease); }
.ability-list li:hover { padding-left: 0.6rem; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem;
  grid-auto-rows: 1fr; }
.gallery figure { position: relative; background: #fff; padding: 10px;
  border: 1px solid var(--rule); overflow: hidden;
  transition: transform 0.5s var(--ease); }
.gallery figure:hover { transform: translateY(-4px); }
.gallery figure img { width: 100%; height: 100%; min-height: 280px; object-fit: cover;
  transition: transform 0.9s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-tall img { min-height: 600px; }
.gallery figcaption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.gallery figcaption span { font-family: var(--f-mono); font-size: 0.6rem;
  letter-spacing: 0.28em; color: rgba(255,255,255,0.85); }
.gallery figure::after { content: ""; position: absolute; inset: 10px;
  background: linear-gradient(0deg, rgba(26,23,34,0.55), transparent 50%);
  pointer-events: none; opacity: 0.85;
  transition: opacity 0.5s var(--ease); }
.gallery figure:hover::after { opacity: 1; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 3vw, 2.6rem) 4rem;
  border-top: 1px solid var(--rule); }
.footer-quote { font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.2rem, 0.8rem + 1.2vw, 1.8rem); color: var(--ink);
  max-width: 30ch; margin-bottom: 2.5rem; }
.footer-row { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: end; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-display); font-weight: 800; font-size: 1rem; }
.foot-coin { width: 22px; height: 22px; }
.footer-fine { font-size: 0.74rem; color: var(--ink-3); line-height: 1.7; justify-self: end;
  max-width: 50ch; text-align: right; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0;
    padding-top: clamp(2rem, 5vw, 4rem); }
  .hero-side { display: none; }
  .hero-visual { max-width: 420px; margin-top: 1rem; }
  .quote { grid-template-columns: 1fr; }
  .quote-media { max-width: 360px; }
  .ability-grid { grid-template-columns: 1fr; }
  .ability-photo { position: static; max-width: 460px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-tall { grid-row: span 1; }
  .gallery .g-tall img { min-height: 320px; }
  .footer-row { grid-template-columns: 1fr; }
  .footer-fine { text-align: left; justify-self: start; }
}
@media (max-width: 720px) {
  .nav-links, .nav-fire { display: none; }
  .nav-toggle { display: block; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-photo, .cell-title { grid-column: span 2; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3rem, 12vw, 4.8rem); }
  .hero-data b { font-size: 1.2rem; }
  .hero-data span { margin: 0 0.5rem; }
  .ability-list li { grid-template-columns: 1fr; }
  .ability-list .no { grid-row: auto; }
}
@media (max-width: 460px) {
  .bento { grid-template-columns: 1fr; }
  .cell-photo, .cell-title { grid-column: span 1; }
  .footer-quote { font-size: 1.1rem; }
}

/* 放电时镜头回震 */
@keyframes recoil {
  0% { transform: translate3d(0,0,0); }
  18% { transform: translate3d(-3px, 1px, 0); }
  40% { transform: translate3d(2px, -1px, 0); }
  100% { transform: translate3d(0,0,0); }
}
body.recoil main, body.recoil .footer { animation: recoil 0.32s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
