/* ============================================================================
   五十音 · 标准日本语初级
   视觉重构 —— 「和モダン · 墨夜」深色高级感
   墨夜底色 / 青海波纹 / 朱印落款 / 金箔细线 / 玻璃质感卡片 / 组子角饰
   全部功能图标仍为内联 SVG 线条，不使用表情符号
   ============================================================================ */

/* ============================================================================
   1. 设计令牌
   ============================================================================ */
:root{
  color-scheme: dark;

  /* 底色 · 藍色の夜（深靛 / 竹炭） */
  --bg-0:#0A0E1C;
  --bg-1:#0F1426;
  --bg-2:#18203A;

  /* 面 · 玻璃 */
  --surface:rgba(255,255,255,.055);
  --surface-2:rgba(255,255,255,.09);
  --surface-3:rgba(255,255,255,.135);
  --solid:#131A2E;
  --solid-2:#1A2338;
  --deep:rgba(4,6,14,.62);

  /* 线 */
  --line:rgba(255,255,255,.095);
  --line-2:rgba(255,255,255,.18);
  --line-3:rgba(255,255,255,.32);
  --hair:rgba(230,196,127,.24);
  --rule:var(--line);
  --rule-2:var(--line-2);

  /* 字 */
  --text:#F3EEE2;
  --text-2:#C2BBAE;
  --text-3:#8A8577;
  --ink:var(--text);
  --ink-2:var(--text-2);
  --ink-3:var(--text-3);

  /* 传统色 · 朱 / 金 / 藍 / 桜 / 抹茶 / 薄柿 */
  --shu:#E2562F;
  --shu-2:#FF8154;
  --shu-deep:#A93618;
  --shu-tint:rgba(226,86,47,.16);
  --kin:#E6C47F;
  --kin-2:#F8E5B7;
  --kin-tint:rgba(230,196,127,.14);
  --ai:#8FB0E8;
  --ai-2:#B4CEF5;
  --ai-tint:rgba(143,176,232,.16);
  --sakura:#F1A3B6;
  --matcha:#8FBE9B;
  --usugaki:#F0B49A;
  --ok:#8FBE9B;
  --ok-tint:rgba(143,190,155,.15);
  --no:var(--shu);

  /* 点缀 · 荧光日本色（用于高亮 / 核心交互） */
  --neon:#FF4A1C;
  --neon-2:#4C8DFF;
  --neon-tint:rgba(255,74,28,.16);

  /* 背景光晕 */
  --aura-1:rgba(226,110,72,.17);
  --aura-2:rgba(96,146,226,.16);
  --aura-3:rgba(126,96,186,.16);
  --aura-4:rgba(230,196,127,.10);
  --pattern-op:.20;
  --lattice:rgba(255,255,255,.032);
  --illus-op:.85;

  /* 旧变量别名（保持兼容） */
  --paper:var(--bg-1);
  --paper-2:var(--surface);
  --card:var(--surface);
  --ver:var(--shu);
  --ver-deep:var(--shu-deep);
  --ver-tint:var(--shu-tint);

  /* 字体 */
  --serif:"Yu Mincho","YuMincho","Hiragino Mincho ProN","Songti SC","Source Han Serif SC","Noto Serif SC","SimSun",serif;
  --sans:"HarmonyOS Sans SC","HarmonyOS Sans","PingFang SC","MiSans","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  /* 假名：现代日系无衬线，线条利落、观感摩登 */
  --gothic:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Yu Gothic","Noto Sans JP","Meiryo","Noto Sans SC","HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  /* 罗马音 / 拉丁标注：宽字距 + 粗字重，杂志感 */
  --latin:"Helvetica Neue",Helvetica,Arial,"Segoe UI",system-ui,sans-serif;

  /* 形状 */
  --r:14px;
  --r-lg:20px;
  --r-xl:28px;
  --r-pill:999px;
  --tap:52px;

  /* 阴影 · 光 */
  --sh:0 1px 0 rgba(255,255,255,.05) inset, 0 12px 30px rgba(0,0,0,.40);
  --sh-2:0 1px 0 rgba(255,255,255,.07) inset, 0 22px 54px rgba(0,0,0,.55);
  --sh-shu:0 10px 28px rgba(226,86,47,.30);
  --sh-kin:0 10px 26px rgba(230,196,127,.22);
  --glow-shu:0 0 0 1px rgba(226,86,47,.45), 0 0 26px rgba(226,86,47,.35);
  --glow-kin:0 0 0 1px rgba(230,196,127,.40), 0 0 24px rgba(230,196,127,.25);

  /* 装饰纹理 */
  --seigaiha:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke='%23D8B678' stroke-width='.75' stroke-opacity='.85'%3E%3Ccircle cx='30' cy='0' r='29'/%3E%3Ccircle cx='30' cy='0' r='23'/%3E%3Ccircle cx='30' cy='0' r='17'/%3E%3Ccircle cx='30' cy='0' r='11'/%3E%3Ccircle cx='0' cy='30' r='29'/%3E%3Ccircle cx='0' cy='30' r='23'/%3E%3Ccircle cx='0' cy='30' r='17'/%3E%3Ccircle cx='0' cy='30' r='11'/%3E%3Ccircle cx='60' cy='30' r='29'/%3E%3Ccircle cx='60' cy='30' r='23'/%3E%3Ccircle cx='60' cy='30' r='17'/%3E%3Ccircle cx='60' cy='30' r='11'/%3E%3C/g%3E%3C/svg%3E");
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  --train-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 12'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M1 10.5V5C1 2.8 2.6 1.8 5 1.8h13.6c6.6 0 10.6 2.8 13.4 6.4L33 10.5zM5.6 4h11.4v2.2H5.6z'/%3E%3C/svg%3E");
  /* 掌握标记：认下 / 熟练（花丸） */
  --mark-known:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10.4' fill='none' stroke='%236E8F5F' stroke-width='1.6'/%3E%3Cpath d='M7.4 12.4 10.6 15.6 16.8 8.8' fill='none' stroke='%236E8F5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mark-master:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23E6C47F'%3E%3Cellipse cx='20' cy='4.6' rx='3.3' ry='5.8'/%3E%3Cellipse cx='20' cy='4.6' rx='3.3' ry='5.8' transform='rotate(72 20 20)'/%3E%3Cellipse cx='20' cy='4.6' rx='3.3' ry='5.8' transform='rotate(144 20 20)'/%3E%3Cellipse cx='20' cy='4.6' rx='3.3' ry='5.8' transform='rotate(216 20 20)'/%3E%3Cellipse cx='20' cy='4.6' rx='3.3' ry='5.8' transform='rotate(288 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='12.6' fill='none' stroke='%23E6C47F' stroke-width='2.4' stroke-linecap='round' stroke-dasharray='60 19' transform='rotate(-24 20 20)'/%3E%3Cpath d='M14.6 20.6 18.3 24.3 25.8 15.8' fill='none' stroke='%23E6C47F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* 格子（組子）底纹 */
  --koushi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23E6C47F' stroke-width='.4' stroke-opacity='.9'%3E%3Cpath d='M20 0v40M0 20h40M0 0l40 40M40 0 0 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- 浅色「和紙の昼」主题（跟随系统） ---------- */
@media (prefers-color-scheme: light){
  :root{
    color-scheme: light;
    /* 胡桃米 · 象牙白 —— 温润高质感浅色，久看不累 */
    --bg-0:#F0EADE;
    --bg-1:#FAF7F0;
    --bg-2:#FFFFFF;

    --surface:rgba(255,255,255,.72);
    --surface-2:#FFFFFF;
    --surface-3:rgba(255,255,255,.94);
    --solid:#FFFDF8;
    --solid-2:#FFFFFF;
    --deep:rgba(38,34,28,.28);

    --line:rgba(46,40,32,.10);
    --line-2:rgba(46,40,32,.16);
    --line-3:rgba(46,40,32,.26);
    --hair:rgba(169,138,52,.34);

    --text:#1F1C16;
    --text-2:#565040;
    --text-3:#8B8474;

    --shu:#D2481F;
    --shu-2:#E85C2C;
    --shu-deep:#A8350F;
    --shu-tint:rgba(210,72,31,.10);
    --kin:#A9822F;
    --kin-2:#8C6A1E;
    --kin-tint:rgba(169,130,47,.12);
    --ai:#2F5A87;
    --ai-2:#25496F;
    --ai-tint:rgba(47,90,135,.09);
    --matcha:#5F7F52;
    --usugaki:#D98F6B;
    --sakura:#DB7E97;
    --ok:#5F7F52;
    --ok-tint:rgba(95,127,82,.12);

    --neon:#FF4A1C;
    --neon-2:#1F6FEB;
    --neon-tint:rgba(255,74,28,.10);

    --aura-1:rgba(240,188,164,.32);
    --aura-2:rgba(47,90,135,.11);
    --aura-3:rgba(216,196,158,.46);
    --aura-4:rgba(255,255,255,.70);
    --pattern-op:.30;
    --lattice:rgba(46,40,32,.03);
    --illus-op:.95;

    --sh:0 1px 2px rgba(38,34,28,.05), 0 12px 28px rgba(38,34,28,.07);
    --sh-2:0 2px 6px rgba(38,34,28,.07), 0 22px 50px rgba(38,34,28,.10);
    --sh-shu:0 10px 26px rgba(200,70,42,.22);
  }
}

/* ============================================================================
   2. 基础
   ============================================================================ */
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

html,body{
  margin:0; height:100%; overflow:hidden;
  background-color:var(--bg-0); color:var(--text);
  font-family:var(--sans); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  touch-action:manipulation;
}
body{
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

:focus-visible{ outline:2px solid var(--kin); outline-offset:2px; }

#app{ position:relative; height:100%; z-index:1; }

/* ---------- 背景：光晕 · 青海波 · 组子网格 · 颗粒 ---------- */
body::before{
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(58% 44% at 10% 2%, var(--aura-1), transparent 66%),
    radial-gradient(50% 40% at 94% 0%, var(--aura-2), transparent 68%),
    radial-gradient(72% 52% at 86% 104%, var(--aura-3), transparent 72%),
    radial-gradient(56% 42% at 2% 98%, var(--aura-4), transparent 70%),
    linear-gradient(158deg, var(--bg-1) 0%, var(--bg-0) 58%, var(--bg-1) 100%);
}
body::after{
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    var(--seigaiha),
    repeating-linear-gradient(45deg, var(--lattice) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(-45deg, var(--lattice) 0 1px, transparent 1px 44px),
    var(--grain);
  background-size:104px 52px, auto, auto, 180px 180px;
  background-position:center, center, center, center;
  opacity:var(--pattern-op);
  -webkit-mask-image:radial-gradient(120% 100% at 50% 0%, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%);
  mask-image:radial-gradient(120% 100% at 50% 0%, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%);
}

/* 装饰层：花瓣 · 光斑 */
.bg-art{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.bg-art .orb{
  position:absolute; border-radius:50%; filter:blur(38px); opacity:.55;
  animation:orbDrift 26s ease-in-out infinite alternate;
}
.bg-art .o1{ width:280px; height:280px; left:-90px; top:-60px; background:rgba(226,86,47,.35); }
.bg-art .o2{ width:240px; height:240px; right:-80px; top:12%; background:rgba(127,168,222,.30); animation-duration:32s; }
.bg-art .o3{ width:320px; height:320px; right:-120px; bottom:-90px; background:rgba(140,92,200,.30); animation-duration:38s; }
@keyframes orbDrift{
  from{ transform:translate3d(0,0,0) scale(1); }
  to{ transform:translate3d(24px,30px,0) scale(1.12); }
}

.bg-art .petal{
  position:absolute; top:-8%; width:18px; height:18px;
  color:rgba(240,168,188,.60);
  opacity:.5;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.35));
  animation:petalFall linear infinite;
}

/* 淡色插画背景：贴着视口底部的和风景色，上缘淡出 */
.bg-art .scene{
  position:absolute; left:0; right:0; bottom:0;
  width:100%; height:auto; display:block;
  opacity:var(--illus-op);
  -webkit-mask-image:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 34%, #000 62%, #000 100%);
  mask-image:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 34%, #000 62%, #000 100%);
}
@media (max-width:640px){
  .bg-art .scene{ width:190%; left:-45%; bottom:-2%; }
}
.bg-art .p1{ left:6%;  width:20px; height:20px; animation-duration:21s; animation-delay:-2s; }
.bg-art .p2{ left:21%; width:13px; height:13px; animation-duration:27s; animation-delay:-9s;  color:rgba(244,190,205,.5); opacity:.36; }
.bg-art .p3{ left:38%; width:22px; height:22px; animation-duration:24s; animation-delay:-15s; color:rgba(226,86,47,.55); opacity:.30; }
.bg-art .p4{ left:55%; width:11px; height:11px; animation-duration:31s; animation-delay:-5s;  opacity:.30; }
.bg-art .p5{ left:70%; width:15px; height:15px; animation-duration:26s; animation-delay:-18s; opacity:.28; }
.bg-art .p6{ left:84%; width:19px; height:19px; animation-duration:29s; animation-delay:-11s; opacity:.34; }
.bg-art .p7{ left:92%; width:12px; height:12px; animation-duration:34s; animation-delay:-22s; opacity:.26; }
.bg-art .p8{ left:46%; width:16px; height:16px; animation-duration:36s; animation-delay:-26s; opacity:.24; }
@keyframes petalFall{
  0%{ transform:translate3d(0,0,0) rotate(0deg); }
  50%{ transform:translate3d(38px,55vh,0) rotate(220deg); }
  100%{ transform:translate3d(-16px,112vh,0) rotate(460deg); }
}
@media (prefers-color-scheme: light){
  .bg-art .petal{ opacity:.26; }
  .bg-art .orb{ opacity:.35; }
}

/* ============================================================================
   3. 图标
   ============================================================================ */
#sprite{ position:absolute; width:0; height:0; overflow:hidden; }
.ic{ width:20px; height:20px; flex:0 0 auto; color:inherit; }
.ic-sm{ width:15px; height:15px; }
.ic-lg{ width:26px; height:26px; }

/* ============================================================================
   4. 屏幕
   ============================================================================ */
.screen{
  position:absolute; inset:0; z-index:1;
  display:none; flex-direction:column; align-items:center;
  padding:28px 22px calc(24px + env(safe-area-inset-bottom));
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.screen.active{ display:flex; animation:screenIn .36s cubic-bezier(.22,.72,.2,1); }
/* 纵向 flex 滚动容器：子块保持自然高度，只有 .options / .match-board 例外（它们显式 flex:1） */
.screen > *{ width:100%; max-width:880px; flex:0 0 auto; min-width:0; }
.screen::-webkit-scrollbar{ width:8px; }
.screen::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.12); border-radius:8px; }
.hidden{ display:none !important; }
.invisible{ visibility:hidden; }
.pb{ padding-bottom:14px; }

@keyframes screenIn{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:none; }
}

/* ============================================================================
   5. 按钮
   ============================================================================ */
.btn{
  position:relative; overflow:hidden;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:var(--tap); padding:0 22px;
  border:1px solid var(--line-2); border-radius:var(--r-pill);
  background:var(--surface); color:var(--text);
  font-family:inherit; font-size:16px; font-weight:600; letter-spacing:.6px;
  cursor:pointer; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .14s ease, background .2s, border-color .2s, box-shadow .24s, color .2s;
}
/* 光泽扫过 */
.btn::after{
  content:''; position:absolute; top:0; bottom:0; left:-60%; width:45%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.20), transparent);
  transform:skewX(-18deg); transition:left .55s ease; pointer-events:none;
}
.btn:hover::after{ left:120%; }
.btn:active{ transform:translateY(1px) scale(.995); }

.btn-primary{
  background:linear-gradient(140deg, var(--shu-2), var(--shu) 46%, var(--shu-deep));
  border-color:rgba(255,255,255,.22); color:#FFF6F1;
  box-shadow:var(--sh-shu), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover{ box-shadow:0 14px 34px rgba(226,86,47,.42), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:active{ background:linear-gradient(140deg, var(--shu), var(--shu-deep)); }

.btn-soft{ background:var(--surface); }
.btn-soft:hover{ background:var(--surface-2); border-color:var(--line-3); }
.btn-soft:active{ background:var(--surface-3); }

.btn-teal{
  background:linear-gradient(140deg, var(--ai-2), var(--ai) 50%, #35618F);
  border-color:rgba(255,255,255,.22); color:#F3F8FF; box-shadow:0 10px 26px rgba(127,168,222,.28);
}
.btn-danger{
  background:transparent; border-color:var(--line-2); color:var(--shu-2);
  width:100%; margin-top:26px;
}
.btn-danger:hover{ background:var(--shu-tint); border-color:var(--shu); }
.btn-fav .ic{ color:var(--line-3); }
.btn-fav.on{ border-color:var(--kin); color:var(--kin); box-shadow:var(--sh-kin); }
.btn-fav.on .ic{ color:var(--kin); }
.btn-wide{ width:100%; margin-top:20px; }
.btn-round{
  width:46px; min-width:46px; height:46px; min-height:46px; padding:0;
  border-radius:50%; color:var(--text); background:var(--surface);
}
.btn-round:hover{ background:var(--surface-2); border-color:var(--line-3); }

/* ============================================================================
   6. 页眉 · 标题 · 印章
   ============================================================================ */
.masthead{
  position:relative;
  display:flex; align-items:center; gap:16px;
  padding:4px 0 18px; margin-bottom:22px;
  border-bottom:1px solid var(--line);
}
/* 青海波分隔线 */
.masthead::after{
  content:''; position:absolute; left:0; right:0; bottom:-9px; height:16px;
  background-image:var(--seigaiha); background-size:44px 22px; background-repeat:repeat-x;
  opacity:.5; pointer-events:none;
}
.masthead-text{ flex:1; min-width:0; }
.masthead-text h1{
  margin:0; font-family:var(--serif); font-size:31px; font-weight:600;
  letter-spacing:9px; line-height:1.2;
  background:linear-gradient(120deg, var(--text) 30%, var(--kin-2) 60%, var(--text) 92%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
/* 杂志封面式拉丁主标 + 日文并置 */
.masthead-latin{
  display:flex; align-items:baseline; gap:9px;
  margin:6px 0 0;
  font-family:var(--latin); font-size:13px; font-weight:800;
  letter-spacing:4.5px; text-transform:uppercase; color:var(--neon);
}
.masthead-latin span{
  font-family:var(--serif); font-size:11.5px; font-weight:400;
  letter-spacing:2.5px; color:var(--text-3); text-transform:none;
}
.masthead-sub{
  margin:5px 0 0; font-size:12.5px; letter-spacing:1.8px; color:var(--text-3);
}
/* 折り鶴 */
.origami{
  flex:0 0 auto; width:60px; height:52px; margin-left:2px;
  color:var(--kin); opacity:.55;
  animation:craneFloat 8s ease-in-out infinite;
}
@keyframes craneFloat{
  0%,100%{ transform:translateY(0) rotate(-2deg); }
  50%{ transform:translateY(-5px) rotate(2deg); }
}

.seal{
  position:relative; flex:0 0 auto;
  width:48px; height:48px; border-radius:13px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(148deg, var(--shu-2), var(--shu) 48%, var(--shu-deep));
  color:#FFF4EE; font-family:var(--serif); font-size:27px; font-weight:600; line-height:1;
  box-shadow:0 8px 22px rgba(226,86,47,.34), inset 0 1px 0 rgba(255,255,255,.34), inset 0 -10px 18px rgba(0,0,0,.20);
}
.seal::after{
  content:''; position:absolute; inset:4px; border-radius:9px;
  border:1px solid rgba(255,255,255,.34); pointer-events:none;
}
.seal-lg{ width:58px; height:58px; font-size:33px; }
/* 首页印章：白色樱花 + 金花芯 */
.seal-mark svg{
  display:block; width:32px; height:32px; color:#FFF7F2;
  filter:drop-shadow(0 1px 2px rgba(120,30,10,.35));
}
.seal-mark::before{
  content:''; position:absolute; z-index:2; left:50%; top:50%;
  width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%;
  background:radial-gradient(circle at 38% 32%, #F8E5B7, #D9B26A);
  box-shadow:0 0 0 1px rgba(255,255,255,.35); pointer-events:none;
}
.seal-mark.seal-lg svg{ width:36px; height:36px; }

.section-label{
  display:flex; align-items:center; gap:11px;
  margin:30px 0 13px; font-size:12.5px; letter-spacing:4px; color:var(--text-3);
}
.section-label > span{ padding-left:2px; }
.section-label::before{
  content:''; width:9px; height:9px; flex:0 0 auto;
  border:1px solid var(--kin); border-radius:2px; transform:rotate(45deg);
}
.section-label::after{
  content:''; flex:1; height:1px;
  background:linear-gradient(90deg, var(--hair), transparent);
}

.topbar{ display:flex; align-items:center; gap:14px; margin-bottom:20px; flex:0 0 auto; }
.topbar-title{
  flex:1; font-family:var(--serif); font-size:21px; font-weight:600; letter-spacing:2.5px;
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* ============================================================================
   7. 语音包提示
   ============================================================================ */
.voice-card{
  position:relative; overflow:hidden;
  padding:17px 18px; margin-bottom:22px;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-lg);
  box-shadow:var(--sh); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
}
.voice-card::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg, var(--shu-2), var(--shu-deep));
}
.vc-head{ display:flex; align-items:center; gap:10px; }
.vc-head .ic{ color:var(--shu-2); }
.vc-title{ flex:1; font-size:15.5px; font-weight:700; letter-spacing:.7px; }
.vc-close{
  border:0; background:transparent; color:var(--text-3); cursor:pointer;
  padding:5px; display:flex; align-items:center; border-radius:50%;
  transition:background .2s, color .2s;
}
.vc-close:hover{ background:var(--surface-2); color:var(--text); }
.vc-desc{ margin:10px 0 14px; font-size:13.5px; color:var(--text-2); }
.vc-actions{ display:flex; gap:10px; }
.vc-actions .btn{ flex:1; text-decoration:none; }
.vc-help{
  margin-top:15px; padding-top:14px; border-top:1px dashed var(--line-2);
  font-size:13px; color:var(--text-2);
}
.vc-help p{ margin:0 0 9px; }
.vc-help p:last-child{ margin-bottom:0; }
.vc-help b{ color:var(--text); }
.vc-foot{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:14px; padding-top:12px; border-top:1px solid var(--line);
  font-size:12.5px; color:var(--text-3);
}
.vc-retry{
  border:0; background:transparent; color:var(--ai-2); font-family:inherit;
  font-size:12.5px; font-weight:600; text-decoration:underline; text-underline-offset:3px;
  cursor:pointer; padding:4px 2px;
}

/* ============================================================================
   8. 首页 · 假名主卡
   ============================================================================ */
.hero-card{
  position:relative; overflow:hidden; isolation:isolate;
  margin:4px 0 6px; padding:34px 24px 26px;
  border:1px solid var(--line-2); border-radius:var(--r-xl);
  background:
    radial-gradient(120% 88% at 50% -18%, rgba(226,86,47,.26), transparent 62%),
    radial-gradient(90% 70% at 110% 120%, rgba(127,168,222,.20), transparent 66%),
    linear-gradient(158deg, var(--surface-2), var(--surface) 46%, rgba(255,255,255,.03));
  text-align:center; cursor:pointer;
  box-shadow:var(--sh-2);
  backdrop-filter:blur(16px) saturate(140%); -webkit-backdrop-filter:blur(16px) saturate(140%);
  transition:transform .16s ease, box-shadow .26s ease, border-color .26s;
}
.hero-card:hover{ border-color:var(--line-3); transform:translateY(-2px); }
.hero-card:active{ transform:scale(.994); }
/* 组子金箔角饰 */
.hero-card::before{
  content:''; position:absolute; inset:11px; border-radius:calc(var(--r-xl) - 11px); pointer-events:none;
  background:
    linear-gradient(var(--kin),var(--kin)) left 0 top 0/16px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) left 0 top 0/1px 16px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 top 0/16px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 top 0/1px 16px no-repeat,
    linear-gradient(var(--kin),var(--kin)) left 0 bottom 0/16px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) left 0 bottom 0/1px 16px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 bottom 0/16px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 bottom 0/1px 16px no-repeat;
  opacity:.60;
}
/* 浮光 */
.hero-card::after{
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(104deg, transparent 36%, rgba(255,255,255,.14) 50%, transparent 64%);
  transform:translateX(-40%); animation:sheen 7.5s ease-in-out infinite;
}
@keyframes sheen{
  0%,58%{ transform:translateX(-70%); opacity:0; }
  72%{ opacity:1; }
  100%{ transform:translateX(70%); opacity:0; }
}
.hero-label{ font-size:11.5px; letter-spacing:5px; color:var(--text-3); }
.hero-kana{
  font-family:var(--serif); font-size:134px; font-weight:500; line-height:1.02;
  letter-spacing:2px; margin-top:2px;
  background:linear-gradient(168deg, #FFFFFF 12%, var(--kin-2) 52%, var(--shu-2) 108%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 12px 32px rgba(226,86,47,.28));
}
.hero-romaji{
  font-family:var(--serif); font-size:19px; letter-spacing:6px;
  color:var(--shu-2); margin-top:2px;
}
.hero-hint{
  display:inline-flex; align-items:center; gap:7px; margin-top:17px;
  padding:7px 15px; border:1px solid var(--line); border-radius:var(--r-pill);
  font-size:12.5px; letter-spacing:1.4px; color:var(--text-3); background:var(--surface);
}
/* 右侧竖排假名水印 */
.hero-side{
  position:absolute; right:13px; top:50%; transform:translateY(-50%);
  writing-mode:vertical-rl; text-orientation:upright;
  font-family:var(--serif); font-size:12px; letter-spacing:5px;
  color:var(--kin); opacity:.34; pointer-events:none; user-select:none;
}

/* ============================================================================
   9. 首页 · 练习入口
   ============================================================================ */
.game-grid{ display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.game-card{
  position:relative; overflow:hidden;
  display:flex; flex-direction:column; align-items:flex-start; gap:3px;
  padding:18px 18px 16px; text-align:left; cursor:pointer;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-lg);
  font-family:inherit; color:var(--text); box-shadow:var(--sh);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  transition:transform .14s ease, border-color .22s, box-shadow .26s, background .22s;
}
.game-card::before{
  content:''; position:absolute; left:0; right:0; top:0; height:2px;
  background:linear-gradient(90deg, var(--shu), var(--kin), var(--ai));
  opacity:.34; transition:opacity .24s;
}
.game-card:hover{
  transform:translateY(-3px); border-color:var(--line-3); background:var(--surface-2);
  box-shadow:0 18px 40px rgba(0,0,0,.45);
}
.game-card:hover::before{ opacity:1; }
.game-card:active{ transform:translateY(-1px) scale(.995); }
.gc-no{
  position:absolute; right:14px; top:12px;
  font-family:var(--serif); font-size:13px; color:var(--line-3);
}
.gc-badge{
  display:flex; align-items:center; min-height:46px;
  font-family:var(--serif); font-size:39px; line-height:1.05;
  color:var(--text);
  filter:drop-shadow(0 6px 16px rgba(0,0,0,.35));
}
.gc-badge.latin{
  font-size:34px;
  background:linear-gradient(150deg, var(--ai-2), var(--ai));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.gc-badge.small{ font-size:23px; letter-spacing:2px; color:var(--kin-2); }
.gc-badge .ic{ width:30px; height:30px; color:var(--ai-2); }
.gc-name{ font-size:17px; font-weight:700; letter-spacing:2.5px; margin-top:5px; }
.gc-desc{ font-size:12.5px; color:var(--text-3); }

/* ============================================================================
   10. 首页 · 课本入口
   ============================================================================ */
.course-entry{
  position:relative; overflow:hidden;
  display:flex; align-items:center; gap:15px; width:100%;
  padding:19px 18px; margin-top:14px; text-align:left; cursor:pointer;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(230,196,127,.14), transparent 60%),
    var(--surface);
  border:1px solid var(--line-2); border-radius:var(--r-lg);
  font-family:inherit; color:var(--text); box-shadow:var(--sh);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  transition:transform .14s ease, border-color .22s, box-shadow .24s;
}
.course-entry::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg, var(--kin-2), var(--shu));
}
.course-entry:hover{ transform:translateY(-2px); border-color:var(--line-3); box-shadow:0 18px 40px rgba(0,0,0,.45); }
.ce-ico{ color:var(--kin); }
.ce-text{ flex:1; display:flex; flex-direction:column; gap:4px; min-width:0; }
.ce-text b{ font-family:var(--serif); font-size:18px; font-weight:600; letter-spacing:1.8px; }
.ce-text i{ font-style:normal; font-size:12.5px; color:var(--text-3); }
.ce-arrow{ color:var(--text-3); }

.home-actions{ display:flex; gap:12px; margin-top:14px; }
.home-actions .btn{ flex:1; }

/* ============================================================================
   11. 首页 · 学习计数
   ============================================================================ */
.stats{
  display:grid; grid-template-columns:repeat(3,1fr); margin-top:26px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
}
.stat{ padding:17px 8px; text-align:center; }
.stat + .stat{ border-left:1px solid var(--line); }
.stat b{
  display:block; font-family:var(--serif); font-size:27px; font-weight:600;
  line-height:1.2; font-variant-numeric:tabular-nums;
  background:linear-gradient(150deg, var(--text), var(--kin-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat i{
  display:inline-flex; align-items:center; gap:5px; font-style:normal;
  font-size:11.5px; letter-spacing:1.3px; color:var(--text-3); margin-top:5px;
}
.stat i .ic{ color:var(--kin); opacity:.75; }

/* ============================================================================
   12. 版权
   ============================================================================ */
.copyright{
  position:relative;
  display:flex; flex-direction:column; align-items:center; gap:4px;
  margin-top:32px; padding-top:16px; border-top:1px solid var(--line);
  text-align:center; font-size:12px; letter-spacing:.8px; color:var(--text-3);
}
.copyright::before{
  content:''; position:absolute; top:-1px; left:50%; transform:translateX(-50%);
  width:56px; height:1px; background:var(--kin); opacity:.7;
}
.copyright .cp-book{ color:var(--text-2); }
.copyright .cp-org{ font-family:var(--serif); letter-spacing:1px; }
/* 页脚版本号：V2.06 + 已注册学习码数量（由 app.js 填） */
.copyright .cp-ver{
  margin-top:2px; font-family:var(--latin); font-size:11px;
  letter-spacing:1.8px; color:var(--text-3); opacity:.9;
}

/* ============================================================================
   13. 五十音表
   ============================================================================ */
.seg{
  display:inline-flex; padding:3px; border:1px solid var(--line-2); border-radius:var(--r-pill);
  overflow:hidden; background:var(--surface); cursor:pointer;
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.seg-item{
  padding:7px 15px; border-radius:var(--r-pill);
  font-family:var(--serif); font-size:15px; color:var(--text-2);
  letter-spacing:1px; transition:background .22s, color .22s, box-shadow .22s;
}
.seg-item.on{
  background:linear-gradient(140deg, var(--neon), var(--shu-deep));
  color:#FFF6F1; box-shadow:0 4px 14px rgba(255,74,28,.35);
}

/* 分页签：切换时如「水引」般掠过一道光 */
.tabs{
  display:flex; gap:24px; margin:2px 0 22px; overflow-x:auto;
  border-bottom:1px solid var(--line); flex:0 0 auto;
  scrollbar-width:none;
}
.tabs::-webkit-scrollbar{ display:none; height:0; }
.tab{
  position:relative; padding:0 2px 12px; border:0; background:transparent;
  font-family:inherit; font-size:14.5px; letter-spacing:1.6px; color:var(--text-3);
  cursor:pointer; white-space:nowrap; transition:color .2s;
}
.tab:hover{ color:var(--text-2); }
.tab.active{ color:var(--text); font-weight:600; }
.tab.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  border-radius:2px; transform-origin:left center;
  background:linear-gradient(90deg, transparent, var(--neon) 18%, var(--kin) 50%, var(--neon-2) 82%, transparent);
  background-size:230% 100%;
  box-shadow:0 0 14px rgba(226,86,47,.45);
  animation:mizuhiki 1.5s cubic-bezier(.22,.72,.2,1) both;
}
@keyframes mizuhiki{
  0%{ transform:scaleX(.18); background-position:130% 0; opacity:0; }
  35%{ opacity:1; }
  100%{ transform:scaleX(1); background-position:-10% 0; opacity:1; }
}

/* ---------- 便当盒网格（Bento Grid） ---------- */
.chart-body{ position:relative; padding:6px 0 34px; }
/* 組子（格子）底纹：只在网格背后若隐若现 */
.chart-body::before{
  content:''; position:absolute; inset:0 -6px 20px; z-index:0; pointer-events:none;
  border-radius:26px;
  background-image:var(--koushi); background-size:44px 44px;
  opacity:.30;
  -webkit-mask-image:radial-gradient(96% 74% at 50% 34%, #000 0%, rgba(0,0,0,.45) 62%, transparent 88%);
  mask-image:radial-gradient(96% 74% at 50% 34%, #000 0%, rgba(0,0,0,.45) 62%, transparent 88%);
}
.chart-grid{ position:relative; z-index:1; display:grid; gap:9px; }
.chart-grid.basic{ grid-template-columns:.58fr repeat(5,minmax(0,1fr)); }
.chart-grid.yoon{ grid-template-columns:.58fr repeat(3,minmax(0,1fr)); }

/* 列头：宽字距拉丁字母 */
.chart-head{
  display:flex; align-items:center; justify-content:center;
  font-family:var(--latin); font-size:10.5px; font-weight:700;
  letter-spacing:2.6px; text-transform:uppercase; color:var(--text-3);
  padding:8px 0 6px;
}

/* 行标签：竖排，可点击听整行 */
.chart-rowlabel{
  position:relative; cursor:pointer;
  writing-mode:vertical-rl; text-orientation:upright;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-size:16px; letter-spacing:3px;
  color:var(--text-2); background:transparent;
  border:1px solid transparent; border-radius:16px; padding:10px 0;
  transition:color .2s, background .2s, border-color .2s;
}
.chart-rowlabel:hover{ background:var(--surface); color:var(--text); border-color:var(--line); }
.chart-rowlabel:active{ color:var(--neon); }
.chart-rowlabel.clear{ color:var(--matcha); border-color:rgba(110,143,95,.35); background:var(--ok-tint); }
.chart-rowlabel.clear::after{
  content:''; order:-1; width:15px; height:15px; margin-bottom:7px;
  background:var(--mark-known) center/contain no-repeat;
}

/* 假名卡片：圆角悬浮 + 磨砂玻璃 + 罗马音底纹 */
.chart-cell{
  position:relative; overflow:hidden; isolation:isolate;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; min-height:84px; padding:10px 4px 12px; cursor:pointer;
  background:var(--surface); border:1px solid var(--line); border-radius:18px;
  font-family:inherit; color:var(--text);
  box-shadow:var(--sh);
  -webkit-backdrop-filter:blur(10px) saturate(130%);
  backdrop-filter:blur(10px) saturate(130%);
  transition:transform .2s cubic-bezier(.2,.8,.3,1), border-color .22s, background .22s, box-shadow .26s;
}
/* 悬停：水墨 / 和纸晕染 */
.chart-cell::before{
  content:''; position:absolute; inset:0; z-index:-1; opacity:0;
  background:
    radial-gradient(82% 72% at 28% 16%, var(--shu-tint), transparent 62%),
    radial-gradient(74% 64% at 84% 92%, var(--ai-tint), transparent 66%);
  transition:opacity .32s ease;
}
/* 罗马音水印：即使关闭「显示罗马音」也保留淡淡底纹 */
.chart-cell::after{
  content:attr(data-rm);
  position:absolute; right:6px; bottom:-12px; z-index:-1;
  font-family:var(--latin); font-size:46px; font-weight:800;
  letter-spacing:-2px; text-transform:lowercase;
  color:var(--text); opacity:.055; pointer-events:none; white-space:nowrap;
  transition:opacity .32s ease, transform .32s ease;
}
.chart-cell:hover{
  transform:translateY(-4px); border-color:var(--line-3);
  box-shadow:0 20px 40px rgba(0,0,0,.30), 0 0 0 1px var(--line);
}
.chart-cell:hover::before{ opacity:1; }
.chart-cell:hover::after{ opacity:.12; transform:translateY(-3px); }
.chart-cell:active{ transform:translateY(-1px) scale(.985); }

.chart-cell .kana{
  font-family:var(--gothic); font-size:31px; font-weight:600; line-height:1.1;
  letter-spacing:0; transition:transform .2s ease;
}
.chart-cell .rs{
  font-family:var(--latin); font-size:10px; font-weight:600;
  letter-spacing:1.8px; text-transform:uppercase; color:var(--text-3);
}

/* 正在发音 */
.chart-cell.playing{
  border-color:var(--kin); background:var(--kin-tint);
  box-shadow:var(--glow-kin);
}
.chart-cell.playing::before{ opacity:1; }
.chart-cell.playing .kana{ transform:scale(1.06); }

/* 已掌握：角上盖印 */
.chart-cell.known{
  background-image:var(--mark-known);
  background-repeat:no-repeat; background-position:7px 7px; background-size:14px 14px;
}
.chart-cell.master{
  background-image:var(--mark-master);
  background-repeat:no-repeat; background-position:5px 5px; background-size:18px 18px;
  border-color:rgba(230,196,127,.45);
  box-shadow:var(--sh), inset 0 0 0 1px rgba(230,196,127,.18);
}
.chart-cell.empty{
  background:transparent; border-color:transparent; box-shadow:none; pointer-events:none;
}

/* ============================================================================
   14. 假名详情（底部抽屉）
   ============================================================================ */
.detail{
  position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:min(880px, 100%); z-index:20;
  padding:22px 22px calc(24px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg, var(--solid-2), var(--solid));
  border-top:1px solid var(--hair);
  border-radius:var(--r-xl) var(--r-xl) 0 0;
  box-shadow:0 -26px 60px rgba(0,0,0,.55);
  text-align:center; animation:sheetUp .3s cubic-bezier(.22,.72,.2,1);
}
@keyframes sheetUp{ from{ transform:translate(-50%,100%); } to{ transform:translate(-50%,0); } }
.detail-handle{
  width:42px; height:3px; background:var(--line-3); border-radius:3px;
  margin:0 auto 14px;
}
.detail-close{ position:absolute; right:14px; top:14px; }
.detail-kana{
  font-family:var(--serif); font-size:80px; font-weight:500; line-height:1.05;
  background:linear-gradient(160deg, #FFFFFF, var(--kin-2) 60%, var(--shu-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:inkReveal .6s cubic-bezier(.2,.8,.2,1) both;
}
/* 抽屉展开时，假名像墨迹一样被写出来 */
@keyframes inkReveal{
  from{ clip-path:inset(0 100% 0 0); opacity:.35; filter:blur(7px); }
  to{ clip-path:inset(0 0 0 0); opacity:1; filter:blur(0); }
}
.detail-romaji{
  font-family:var(--serif); font-size:18px; letter-spacing:5px; color:var(--shu-2); margin-top:2px;
}
.detail-word{
  margin-top:15px; padding-top:15px; border-top:1px solid var(--line);
  font-family:var(--serif); font-size:26px; font-weight:500;
}
.detail-mean{ font-size:13.5px; color:var(--text-2); margin-top:3px; }
.detail-note{
  margin-top:12px; padding:10px 13px; background:var(--ai-tint); color:var(--ai-2);
  border:1px solid rgba(127,168,222,.28); border-radius:var(--r); font-size:12.5px; text-align:left;
}

/* ============================================================================
   15. 练习 / 游戏
   ============================================================================ */
.progress{
  flex:1; height:4px; background:rgba(255,255,255,.10);
  border-radius:4px; overflow:hidden;
}
.progress-bar{
  height:100%; width:0; border-radius:4px;
  background:linear-gradient(90deg, var(--kin), var(--shu));
  box-shadow:0 0 14px rgba(226,86,47,.55);
  transition:width .32s cubic-bezier(.3,.8,.3,1);
}
.score-pill{
  min-width:56px; text-align:right; font-family:var(--serif); font-size:19px;
  font-variant-numeric:tabular-nums; color:var(--kin-2);
}
.combo{
  align-self:center; display:inline-flex; align-items:baseline; gap:8px;
  margin:6px 0 2px; padding:8px 18px;
  border:1px solid var(--shu); border-radius:var(--r-pill); color:var(--shu-2);
  background:var(--shu-tint); box-shadow:0 0 22px rgba(226,86,47,.28);
  animation:popIn .22s ease-out;
}
.combo b{ font-family:var(--serif); font-size:19px; }
.combo span{ font-size:12.5px; letter-spacing:2.5px; }
@keyframes popIn{ from{ transform:scale(.9); opacity:0; } to{ transform:scale(1); opacity:1; } }

.prompt-area{
  display:flex; flex-direction:column; align-items:center; gap:16px;
  margin:16px 0 26px; flex:0 0 auto;
}
.prompt-card{
  position:relative; overflow:hidden; width:100%; padding:36px 20px 32px; text-align:center;
  background:
    radial-gradient(110% 80% at 50% -10%, rgba(127,168,222,.20), transparent 62%),
    linear-gradient(158deg, var(--surface-2), var(--surface));
  border:1px solid var(--line-2); border-radius:var(--r-xl);
  box-shadow:var(--sh-2);
  backdrop-filter:blur(16px) saturate(140%); -webkit-backdrop-filter:blur(16px) saturate(140%);
}
.prompt-card::before{
  content:''; position:absolute; inset:11px; border-radius:calc(var(--r-xl) - 11px); pointer-events:none;
  background:
    linear-gradient(var(--kin),var(--kin)) left 0 top 0/16px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) left 0 top 0/1px 16px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 top 0/16px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 top 0/1px 16px no-repeat,
    linear-gradient(var(--kin),var(--kin)) left 0 bottom 0/16px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) left 0 bottom 0/1px 16px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 bottom 0/16px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 bottom 0/1px 16px no-repeat;
  opacity:.55;
}
.prompt-kana{
  font-family:var(--gothic); font-size:96px; font-weight:600; line-height:1.05;
  display:flex; align-items:center; justify-content:center; min-height:106px;
  background:linear-gradient(166deg, #FFFFFF 14%, var(--kin-2) 58%, var(--ai-2) 110%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 10px 26px rgba(127,168,222,.28));
}
.prompt-kana .ic{ width:62px; height:62px; color:var(--ai-2); }
.prompt-text{
  font-family:var(--latin); font-size:40px; font-weight:800; letter-spacing:3px;
  text-transform:lowercase; color:var(--shu-2); margin-top:4px;
}

.options{ flex:1; display:grid; grid-template-columns:1fr 1fr; gap:13px; align-content:start; }
.option{
  position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  min-height:84px; padding:12px; cursor:pointer;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-lg);
  font-family:var(--gothic); font-size:34px; font-weight:600; color:var(--text);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:border-color .2s, background .2s, opacity .2s, transform .14s, box-shadow .24s, color .2s;
}
.option:hover{ transform:translateY(-2px); border-color:var(--line-3); background:var(--surface-2); }
.option.small{ font-size:26px; letter-spacing:2px; }
.option:active{ background:var(--surface-3); }
.option.right{
  border-color:var(--ok); background:var(--ok-tint); color:#CFF3DE;
  box-shadow:0 0 0 1px rgba(121,199,156,.35), 0 12px 30px rgba(121,199,156,.22);
}
.option.wrong{
  border-color:var(--shu); background:var(--shu-tint); color:#FFD6C7;
  box-shadow:0 0 0 1px rgba(226,86,47,.35), 0 12px 30px rgba(226,86,47,.22);
  animation:shake .36s;
}
.option.dim{ opacity:.30; }

.match-board{
  position:relative; flex:1; display:grid;
  /* 两列刻意拉开距离，让连线有呼吸感 */
  grid-template-columns:1fr 1fr; gap:16px 72px; align-content:start;
}
.match-col{ display:flex; flex-direction:column; gap:10px; }
.match-card{
  min-height:62px; padding:10px; cursor:pointer;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r);
  font-family:var(--gothic); font-size:24px; font-weight:600; color:var(--text);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  transition:border-color .18s, background .18s, box-shadow .22s, transform .12s;
}
.match-card:hover{ transform:translateY(-2px); border-color:var(--line-3); }
.match-card:active{ background:var(--surface-3); }
.match-card.sel{
  border-color:var(--ai); background:var(--ai-tint); color:#E4EFFF;
  box-shadow:0 0 0 1px rgba(127,168,222,.4), 0 10px 26px rgba(127,168,222,.22);
}
.match-card.done{ opacity:.34; border-style:dashed; }
.match-card.bad{ animation:shake .36s; }
@keyframes shake{ 0%,100%{ transform:translateX(0); } 25%{ transform:translateX(-7px); } 75%{ transform:translateX(7px); } }

/* ---------- 连连看 · 连线反馈 ---------- */
.match-lines{
  position:absolute; left:0; top:0; width:100%; height:100%;
  pointer-events:none; z-index:3; overflow:visible;
}
.match-link{ fill:none; stroke-width:2.4; stroke-linecap:round; }
/* 配对成功：绿色连线，从左卡右缘画到右卡左缘 */
.match-link.ok{
  stroke:var(--ok);
  stroke-dasharray:1; stroke-dashoffset:1;
  filter:drop-shadow(0 0 7px rgba(143,190,155,.55));
  animation:linkDraw .44s cubic-bezier(.2,.8,.3,1) forwards;
}
.match-dot{
  fill:var(--ok); opacity:0;
  filter:drop-shadow(0 0 6px rgba(143,190,155,.7));
  animation:dotIn .3s ease-out .3s forwards;
}
/* 配对失败：红色连线 + 中点红叉 */
.match-link.bad{
  stroke:var(--shu);
  stroke-dasharray:1; stroke-dashoffset:1;
  filter:drop-shadow(0 0 7px rgba(226,86,47,.5));
  animation:linkDraw .3s ease-out forwards;
}
.match-x-line{
  stroke:var(--shu); stroke-width:3.4; stroke-linecap:round; fill:none;
  filter:drop-shadow(0 0 7px rgba(226,86,47,.6));
}
.match-mark.bad{ animation:badMark .85s ease-out forwards; }
@keyframes linkDraw{ to{ stroke-dashoffset:0; } }
@keyframes dotIn{ from{ opacity:0; transform:scale(.4); } to{ opacity:1; transform:scale(1); } }
@keyframes badMark{
  0%{ opacity:0; transform:scale(.7); }
  22%{ opacity:1; transform:scale(1.06); }
  42%{ opacity:1; transform:scale(1); }
  100%{ opacity:0; }
}
.match-mark{ transform-box:fill-box; transform-origin:center; }

.feedback{
  position:absolute; left:50%; bottom:58px; transform:translateX(-50%); z-index:30;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:17px 32px; border-radius:var(--r-lg);
  background:linear-gradient(160deg, rgba(28,30,42,.96), rgba(14,15,22,.96));
  border:1px solid var(--line-2); box-shadow:var(--sh-2);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  animation:toastUp .24s cubic-bezier(.22,.72,.2,1);
}
.fb-icon{ display:flex; }
.fb-icon .ic{ width:42px; height:42px; }
.fb-icon .ic.ok{ color:var(--ok); filter:drop-shadow(0 0 14px rgba(121,199,156,.5)); }
.fb-icon .ic.no{ color:var(--shu-2); filter:drop-shadow(0 0 14px rgba(226,86,47,.5)); }
.fb-text{ font-family:var(--serif); font-size:19px; letter-spacing:1.5px; }
.screen > .feedback{ width:auto; max-width:calc(100% - 44px); }
@keyframes toastUp{ from{ transform:translate(-50%,14px); opacity:0; } to{ transform:translate(-50%,0); opacity:1; } }

/* ============================================================================
   16. 结算
   ============================================================================ */
#screen-result{ justify-content:center; }
.result-card{
  position:relative; overflow:hidden; width:100%; padding:38px 26px 30px; text-align:center;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(230,196,127,.22), transparent 62%),
    radial-gradient(100% 80% at 50% 120%, rgba(226,86,47,.18), transparent 66%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border:1px solid var(--line-2); border-radius:var(--r-xl);
  box-shadow:var(--sh-2);
  backdrop-filter:blur(16px) saturate(140%); -webkit-backdrop-filter:blur(16px) saturate(140%);
}
.result-card::before{
  content:''; position:absolute; inset:12px; border-radius:calc(var(--r-xl) - 12px); pointer-events:none;
  background:
    linear-gradient(var(--kin),var(--kin)) left 0 top 0/18px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) left 0 top 0/1px 18px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 top 0/18px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 top 0/1px 18px no-repeat,
    linear-gradient(var(--kin),var(--kin)) left 0 bottom 0/18px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) left 0 bottom 0/1px 18px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 bottom 0/18px 1px no-repeat,
    linear-gradient(var(--kin),var(--kin)) right 0 bottom 0/1px 18px no-repeat;
  opacity:.6;
}
.result-card > *{ position:relative; }

/* 结算页品牌标识：花丸外环 + 朱印白樱 + 等级字 */
.result-mark{
  position:relative; width:124px; height:124px; margin:0 auto 2px;
  display:flex; align-items:center; justify-content:center;
}
.rm-ring{
  position:absolute; inset:0; width:100%; height:100%;
  color:var(--kin); pointer-events:none;
  animation:rmRingIn .7s cubic-bezier(.2,.9,.3,1) both;
  transform-origin:center;
}
.result-mark .seal{
  width:58px; height:58px;
  animation:rmSealIn .5s cubic-bezier(.2,1.5,.4,1) .12s both;
}
.result-grade{
  display:inline-block; margin:10px auto 0; padding:3px 14px;
  font-family:var(--serif); font-size:15px; font-weight:600; letter-spacing:5px;
  color:var(--shu-2); border:1px solid var(--hair); border-radius:var(--r-pill);
  background:var(--surface);
  animation:fadeUp .5s ease-out .34s both;
}
@keyframes rmRingIn{ from{ opacity:0; transform:rotate(-40deg) scale(.7); } to{ opacity:.92; transform:rotate(0) scale(1); } }
@keyframes rmSealIn{ from{ opacity:0; transform:scale(.6); } to{ opacity:1; transform:scale(1); } }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.stars{ display:flex; justify-content:center; gap:16px; margin:20px 0 4px; }
.star{ color:var(--line-2); display:flex; transition:color .34s ease, transform .34s ease, filter .34s; }
.star.on{
  color:var(--kin);
  transform:scale(1.06);
  filter:drop-shadow(0 0 16px rgba(230,196,127,.65));
}
.star .ic{ width:34px; height:34px; }
.result-card h2{
  margin:16px 0 6px; font-family:var(--serif); font-size:28px; font-weight:600; letter-spacing:3px;
}
.result-sub{ margin:0; font-size:13.5px; color:var(--text-2); }
.learned{
  display:flex; flex-wrap:wrap; gap:9px; justify-content:center;
  margin:24px 0 4px; padding-top:20px; border-top:1px solid var(--line);
}
.learned .chip{
  display:flex; flex-direction:column; align-items:center; min-width:78px;
  padding:10px 13px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
}
.learned .chip .kb{ font-family:var(--gothic); font-size:19px; font-weight:600; line-height:1.2; }
.learned .chip .rw{
  font-family:var(--latin); font-size:10px; font-weight:600;
  letter-spacing:1.2px; text-transform:uppercase; color:var(--text-3); margin-top:4px;
}
.result-actions{ display:flex; gap:12px; margin-top:26px; }
.result-actions .btn{ flex:1; }

/* ============================================================================
   17. 设置
   ============================================================================ */
.setting-list{ width:100%; }
.setting-row{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:17px 2px; border-bottom:1px solid var(--line); font-size:15.5px;
}
.setting-row:first-child{ border-top:1px solid var(--line); }
.hint{ margin:9px 2px 20px; font-size:12.5px; color:var(--text-3); line-height:1.75; }
.switch{
  appearance:none; -webkit-appearance:none; position:relative; flex:0 0 auto;
  width:48px; height:27px; border-radius:var(--r-pill); cursor:pointer;
  background:rgba(255,255,255,.10); border:1px solid var(--line-2);
  transition:background .24s, border-color .24s, box-shadow .24s;
}
.switch::after{
  content:''; position:absolute; top:2px; left:2px; width:21px; height:21px;
  border-radius:50%; background:linear-gradient(160deg,#FFFFFF,#D9D3C6);
  box-shadow:0 2px 6px rgba(0,0,0,.35);
  transition:transform .24s cubic-bezier(.3,.8,.3,1);
}
.switch:checked{
  background:linear-gradient(120deg, var(--ok), #4FA37A);
  border-color:transparent; box-shadow:0 0 18px rgba(121,199,156,.35);
}
.switch:checked::after{ transform:translateX(21px); }
.select{
  appearance:none; -webkit-appearance:none;
  font-family:inherit; font-size:14.5px; color:var(--text);
  background-color:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-pill);
  padding:9px 34px 9px 15px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23E6C47F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 13px center;
  transition:border-color .2s, background-color .2s;
}
.select:hover{ border-color:var(--line-3); }
.select option{ background:var(--solid); color:var(--text); }
.status-text{ font-size:13.5px; color:var(--text-2); }

/* ============================================================================
   18. 课本课程
   ============================================================================ */
.unit-head{ display:flex; align-items:center; gap:12px; margin:26px 0 13px; }
.unit-head::after{
  content:''; flex:1; height:1px;
  background:linear-gradient(90deg, var(--hair), transparent);
}
.uh-no{
  font-family:var(--serif); font-size:12.5px; letter-spacing:1.8px; color:var(--shu-2);
  border:1px solid rgba(226,86,47,.55); border-radius:var(--r-pill); padding:3px 11px;
  white-space:nowrap; background:var(--shu-tint);
}
.uh-name{ font-family:var(--serif); font-size:16px; font-weight:600; letter-spacing:1.8px; white-space:nowrap; }

.intro-grid{ display:grid; gap:11px; }
.intro-card{
  position:relative; overflow:hidden;
  display:flex; flex-direction:column; gap:4px;
  padding:17px 18px; text-align:left; cursor:pointer;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-lg);
  font-family:inherit; color:var(--text); box-shadow:var(--sh);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .14s ease, border-color .2s, box-shadow .24s;
}
.intro-card:hover{ transform:translateY(-2px); border-color:var(--line-3); box-shadow:0 18px 40px rgba(0,0,0,.45); }
.intro-card:active{ transform:translateY(0); }
.intro-card b{ font-family:var(--serif); font-size:17px; font-weight:600; letter-spacing:1.2px; }
.intro-card i{ font-style:normal; font-size:12.5px; color:var(--text-3); }
.intro-card .ic-play{
  display:inline-flex; align-items:center; gap:7px; margin-top:10px;
  font-size:12.5px; letter-spacing:1px; color:var(--shu-2);
}
.intro-card .ic-play .ic{ width:16px; height:16px; }
.ls-done{ position:absolute; right:16px; top:16px; color:var(--ok); display:flex; }
.ls-done .ic{ width:18px; height:18px; }

.ls-row{
  position:relative; overflow:hidden;
  display:flex; align-items:center; gap:14px; width:100%;
  padding:16px; margin-bottom:10px; text-align:left; cursor:pointer;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-lg);
  font-family:inherit; color:var(--text); box-shadow:var(--sh);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  transition:transform .14s ease, border-color .2s, box-shadow .24s;
}
.ls-row:hover{ transform:translateY(-2px); border-color:var(--line-3); box-shadow:0 16px 36px rgba(0,0,0,.42); }
.ls-row:active{ transform:translateY(0); }
.ls-row.done{ border-left:2px solid var(--ok); }
.ls-no{
  width:42px; min-width:42px; height:42px; border-radius:var(--r);
  display:flex; align-items:center; justify-content:center;
  background:var(--surface-2); border:1px solid var(--line);
  font-family:var(--serif); font-size:17px; color:var(--text-2);
  font-variant-numeric:tabular-nums;
}
.ls-row.done .ls-no{ color:var(--ok); border-color:rgba(121,199,156,.5); background:var(--ok-tint); }
.ls-main{ flex:1; display:flex; flex-direction:column; gap:4px; min-width:0; }
.ls-main b{ font-family:var(--serif); font-size:16.5px; font-weight:500; line-height:1.45; }
.ls-main i{ font-style:normal; font-size:12px; color:var(--text-3); letter-spacing:.6px; }
.ls-go{ color:var(--line-3); display:flex; }
.ls-row.done .ls-go{ color:var(--ok); }
.ls-fav{ color:var(--kin); display:flex; }
.ls-fav .ic{ width:15px; height:15px; }

.course-foot{
  margin:24px 0 4px; padding-top:16px; border-top:1px solid var(--line);
  font-size:12.5px; letter-spacing:.8px; color:var(--text-3); text-align:center;
}

/* ============================================================================
   19. 单课
   ============================================================================ */
.ls-head{ margin:2px 0 22px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.lh-no{
  display:inline-block; font-family:var(--serif); font-size:12.5px; letter-spacing:2.5px;
  color:var(--shu-2); border:1px solid rgba(226,86,47,.55); border-radius:var(--r-pill);
  padding:3px 12px; background:var(--shu-tint);
}
.lh-title{
  margin:14px 0 6px; font-family:var(--serif); font-size:26px; font-weight:600;
  line-height:1.45; letter-spacing:1.2px;
}
.lh-sub{ margin:0; font-size:12.5px; color:var(--text-3); letter-spacing:.6px; }

.audio-card{
  position:relative; overflow:hidden;
  padding:19px 18px 17px; margin-bottom:15px;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-xl);
  box-shadow:var(--sh); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  transition:border-color .24s, box-shadow .24s;
}
.audio-card::before{
  content:''; position:absolute; left:0; right:0; top:0; height:1px;
  background:linear-gradient(90deg, transparent, var(--hair), transparent);
}
.audio-card.playing{ border-color:rgba(230,196,127,.55); box-shadow:var(--sh-2), var(--glow-kin); }
.ac-head{ display:flex; align-items:center; gap:11px; }
.ac-ico{ color:var(--kin); }
.ac-head .ic{ width:22px; height:22px; }
.ac-title{ font-family:var(--serif); font-size:17px; font-weight:600; letter-spacing:1.8px; }
.ac-title i{
  display:block; font-style:normal; font-family:var(--sans); font-size:11.5px;
  font-weight:400; letter-spacing:.4px; color:var(--text-3); margin-top:3px;
}
.ac-row{ display:flex; align-items:center; gap:12px; margin:16px 0 13px; }
.ac-play{
  flex:1; min-height:54px; gap:10px; cursor:pointer;
  border:1px solid rgba(255,255,255,.20); border-radius:var(--r-pill);
  background:linear-gradient(140deg, var(--shu-2), var(--shu) 48%, var(--shu-deep));
  color:#FFF6F1; font-family:inherit; font-size:16px; font-weight:600; letter-spacing:2.5px;
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow:var(--sh-shu), inset 0 1px 0 rgba(255,255,255,.26);
  transition:box-shadow .24s, transform .14s;
}
.ac-play:hover{ box-shadow:0 14px 34px rgba(226,86,47,.42), inset 0 1px 0 rgba(255,255,255,.3); }
.ac-play:active{ transform:translateY(1px); }
.ac-play .ic{ width:18px; height:18px; }
.ac-pico{ display:flex; }
.ac-time{
  font-family:var(--serif); font-size:13.5px; color:var(--text-2);
  font-variant-numeric:tabular-nums; min-width:94px; text-align:center; letter-spacing:.5px;
}
.ac-speed{
  border:1px solid var(--line-2); border-radius:var(--r-pill); background:var(--surface);
  color:var(--text-2); font-family:var(--serif); font-size:13.5px;
  padding:10px 14px; cursor:pointer; font-variant-numeric:tabular-nums;
  transition:border-color .2s, color .2s;
}
.ac-speed:hover{ border-color:var(--line-3); color:var(--text); }
.ac-bar{ height:4px; background:rgba(255,255,255,.10); border-radius:4px; cursor:pointer;
  touch-action:none; position:relative; transition:height .12s ease; }
/* 拖拽时整条加粗、露出圆点，手指/鼠标更好按 */
.ac-bar::before{ content:''; position:absolute; left:0; right:0; top:-10px; bottom:-10px; }
.ac-bar:hover, .ac-bar.drag{ height:8px; }
.ac-fill::after{ content:''; position:absolute; right:-6px; top:50%; width:12px; height:12px;
  margin-top:-6px; border-radius:50%; background:#FFF6F1; box-shadow:0 1px 6px rgba(0,0,0,.45);
  opacity:0; transition:opacity .12s ease; }
.ac-bar:hover .ac-fill::after, .ac-bar.drag .ac-fill::after{ opacity:1; }
.ac-bar.drag .ac-fill{ transition:none; }

/* 课本卡片里的字幕：未读深灰，读过的走幻彩，正在读的从左扫过 */
.ac-subs{ margin:10px 0 2px; min-height:52px; text-align:center; }
.ac-subs .ln{ font-family:"Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif; font-weight:700;
  line-height:1.5; letter-spacing:.02em; }
.ac-subs .ln.cur{ font-size:21px; color:var(--text-2); }
.ac-subs .ln.next{ font-size:15px; color:var(--text-3); opacity:.85; margin-top:3px; }
.ac-subs .w{ position:relative; display:inline-block; white-space:pre; }
.ac-subs .w.sung>i.sh,
.ac-subs .w.now>i.sh{
  background-image:linear-gradient(100deg,#E8469B,#8B5CF6,#3B82F6,#14B8A6,#84CC16,#EAB308);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.ac-subs .w>i.sh{ font-style:normal; }
.ac-subs rt{ font-size:.44em; font-weight:600; letter-spacing:0; color:var(--text-3); }
.ac-subs .w.sung rt, .ac-subs .w.now rt{ color:var(--kin); }

/* 入门「五十音・发音」：念到哪个假名就悬浮显示哪个（樱花粉） */
.ac-subs.ac-kana{ min-height:76px; display:flex; align-items:center; justify-content:center; }
.ac-kana .kn{ display:flex; align-items:baseline; justify-content:center; gap:12px; }
.ac-kana .kn b{ font-family:"Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif;
  font-size:46px; line-height:1; font-weight:700; color:#C95C82; }
.ac-kana .kr{ font-size:15px; font-weight:650; color:var(--text-2); letter-spacing:.5px; }
.ac-kana .ke{ font-size:13px; color:var(--text-3); }
.ac-fill{
      position:relative; height:100%; width:0; border-radius:4px;
  background:linear-gradient(90deg, var(--kin), var(--shu));
  box-shadow:0 0 12px rgba(226,86,47,.5);
  transition:width .18s linear;
}
.ac-tools{ display:flex; gap:9px; margin-top:14px; }
.ac-mini{
  flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:12px 6px; cursor:pointer; border-radius:var(--r-pill);
  background:var(--surface); border:1px solid var(--line);
  font-family:inherit; font-size:12.5px; letter-spacing:.9px; color:var(--text-2);
  transition:border-color .2s, background .2s, color .2s;
}
.ac-mini:hover{ border-color:var(--line-3); background:var(--surface-2); color:var(--text); }
.ac-mini .ic{ width:15px; height:15px; }
.ac-mini.on{
  border-color:rgba(121,199,156,.5); background:var(--ok-tint); color:#CFF3DE;
}
.ac-resume{
  width:100%; margin-top:12px; padding:12px; cursor:pointer;
  background:var(--ai-tint); border:1px solid rgba(127,168,222,.4); border-radius:var(--r-pill);
  color:var(--ai-2); font-family:inherit; font-size:13px; letter-spacing:.9px;
}

.ls-tips{
  padding:15px 17px; margin-bottom:17px;
  background:var(--surface); border:1px solid var(--line); border-left:2px solid var(--ai);
  border-radius:var(--r-lg); font-size:13px; line-height:1.85; color:var(--text-2);
}
.ls-acts{ display:flex; gap:12px; }
.ls-acts .btn{ flex:1; font-size:15px; }
.ls-nav{ display:flex; gap:12px; margin:20px 0 4px; }
.ls-navbtn{
  flex:1; min-height:52px; cursor:pointer;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-pill);
  font-family:inherit; font-size:14.5px; letter-spacing:.9px; color:var(--text);
  transition:background .2s, border-color .2s, transform .14s;
}
.ls-navbtn:hover{ background:var(--surface-2); border-color:var(--line-3); transform:translateY(-1px); }
.ls-navbtn.ghost{ display:none; }

/* ============================================================================
   20. 彩带
   ============================================================================ */
#confetti-layer{ position:fixed; inset:0; pointer-events:none; z-index:60; overflow:hidden; }
.confetti-piece{
  position:absolute; top:-14px; width:9px; height:9px;
  /* 花瓣形状的彩带 */
  border-radius:100% 0 100% 0;
  box-shadow:0 0 0 .5px rgba(255,255,255,.22);
  animation:confettiFall linear forwards;
}
@keyframes confettiFall{
  from{ transform:translateY(-20px) rotate(0deg); opacity:1; }
  to{ transform:translateY(105vh) rotate(540deg); opacity:.15; }
}

/* ============================================================================
   21. 响应式 · 无动画偏好
   ============================================================================ */
@media (max-width:430px){
  .screen{ padding:22px 16px calc(20px + env(safe-area-inset-bottom)); }
  .masthead-text h1{ font-size:27px; letter-spacing:7px; }
  .masthead-latin{ font-size:12px; letter-spacing:3.6px; }
  .hero-kana{ font-size:114px; }
  .hero-side{ display:none; }
  .game-card{ padding:16px 15px; }
  .gc-badge{ font-size:33px; min-height:41px; }
  .prompt-kana{ font-size:84px; min-height:94px; }
  .option{ min-height:74px; font-size:29px; }
  .tabs{ gap:19px; }
  /* 便当盒网格：小屏更紧凑 */
  .chart-grid{ gap:7px; }
  .chart-cell{ min-height:74px; border-radius:15px; padding:8px 3px 10px; }
  .chart-cell .kana{ font-size:27px; }
  .chart-cell::after{ font-size:38px; right:4px; bottom:-10px; }
  .chart-rowlabel{ font-size:14px; letter-spacing:2px; border-radius:13px; }
  .chart-cell.known{ background-position:5px 5px; background-size:12px 12px; }
  .chart-cell.master{ background-position:4px 4px; background-size:16px 16px; }
}

@media (min-width:920px){
  .screen{ padding:42px 56px calc(32px + env(safe-area-inset-bottom)); }
  .masthead-text h1{ font-size:36px; }
  .hero-kana{ font-size:152px; }
  .game-grid{ grid-template-columns:repeat(4,1fr); }
  .options{ max-width:560px; margin:0 auto; width:100%; }
  .match-board{ max-width:560px; margin:0 auto; width:100%; }
  .match-board{ gap:20px 96px; }
  .chart-grid.basic{ grid-template-columns:.6fr repeat(5,minmax(86px,1fr)); }
  .chart-grid.yoon{ grid-template-columns:.6fr repeat(3,minmax(96px,1fr)); }
  .ls-acts .btn{ flex:0 1 220px; }
  .ls-acts{ justify-content:center; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001s !important; animation-iteration-count:1 !important; transition-duration:.001s !important; }
  .bg-art .petal{ display:none; }
}

/* ============================================================================
   22. 日本元素与教材式细节
   —— ふりがな / 学習ステップ / レベルタグ / 花丸 / 富士と桜と新幹線 / 達磨
   ============================================================================ */

/* ---------- 桜の「ホーム」ボタン（各页右上角，与全站同一套玻璃＋金线风格） ---------- */
.btn-home{
  position:relative; color:var(--sakura);
  border-color:var(--line-2); background:var(--surface);
  box-shadow:var(--sh);
}
.btn-home .ic{
  width:21px; height:21px; color:currentColor;
  filter:drop-shadow(0 0 6px rgba(241,163,182,.35));
  transition:transform .32s cubic-bezier(.2,.8,.3,1), color .24s;
}
/* 花芯：一枚淡金小点，呼应印章与花丸 */
.btn-home::after{
  content:''; position:absolute; left:50%; top:50%;
  width:4px; height:4px; margin:-2px 0 0 -2px; border-radius:50%;
  background:var(--kin); opacity:.85; pointer-events:none;
}
.btn-home:hover{
  color:var(--shu-2); border-color:var(--kin);
  box-shadow:var(--sh), 0 0 0 1px rgba(230,196,127,.35);
}
.btn-home:hover .ic{ transform:rotate(72deg) scale(1.06); }
.btn-home:active .ic{ transform:rotate(72deg) scale(.96); }

/* 结算页没有顶栏，樱花按钮贴右上角 */
.btn-home-float{
  position:absolute; right:22px; top:calc(22px + env(safe-area-inset-top)); z-index:5;
  width:46px;
}

/* ---------- ふりがな（振假名） ---------- */
.furigana{
  display:block; margin-bottom:3px;
  font-family:var(--serif); font-size:10.5px; letter-spacing:6px;
  color:var(--kin); opacity:.9;
}

/* ---------- 章节标题的日语小注 ---------- */
.section-label .sl-ja{
  font-style:normal; margin-left:9px;
  font-family:var(--serif); font-size:10.5px; letter-spacing:2.5px;
  color:var(--kin); opacity:.78;
}
.topbar-title .sl-ja{
  font-style:normal; margin-left:10px;
  font-family:var(--serif); font-size:11px; letter-spacing:2.5px;
  color:var(--kin); opacity:.7;
}

/* ---------- レベルタグ（NEW / 録音つき など） ---------- */
.ce-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.tag{
  display:inline-flex; align-items:center; height:20px; padding:0 9px;
  border:1px solid var(--line-2); border-radius:var(--r-pill);
  background:var(--surface); color:var(--text-3);
  font-size:10.5px; letter-spacing:.9px; white-space:nowrap;
}
.tag-new{
  background:linear-gradient(140deg, var(--shu-2), var(--shu-deep));
  border-color:transparent; color:#FFF4EE; font-weight:700; letter-spacing:1.4px;
  box-shadow:0 4px 12px rgba(226,86,47,.35);
}
.tag-jp{ color:var(--kin-2); border-color:var(--hair); }

/* ---------- 花丸印章（满分时盖章） ---------- */
.result-card > .hanamaru{
  position:absolute; right:14px; top:16px; width:76px;
  color:var(--shu); text-align:center; pointer-events:none;
  opacity:0; transform:rotate(-17deg) scale(.72);
  transition:opacity .5s ease, transform .55s cubic-bezier(.2,1.4,.4,1);
}
.hanamaru em{
  display:inline-block; font-style:normal; padding:4px 7px;
  border:1.5px solid currentColor; border-radius:4px;
  font-family:var(--serif); font-size:10.5px; line-height:1.35; letter-spacing:1.6px;
  writing-mode:vertical-rl; text-orientation:upright;
}
#screen-result:has(#star3.on) .hanamaru{ opacity:.95; transform:rotate(-12deg) scale(1); }

/* ---------- 結果画面：富士山と達磨 ---------- */
.result-scene{
  display:block; width:100%; max-width:430px; height:auto;
  margin:24px auto 2px;
}
.result-scene .rs-sun{ animation:rsSun 6.5s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
@keyframes rsSun{ 0%,100%{ opacity:.85; } 50%{ opacity:1; } }
.result-scene .rs-cloud{ animation:rsCloud 34s linear infinite; }
@keyframes rsCloud{ from{ transform:translateX(-150px); } to{ transform:translateX(430px); } }

/* 達磨の目：獲得した星の数だけ目が入る */
.result-scene .eye{ transition:fill .55s ease; }
#screen-result:has(#star1.on) .result-scene .eye-l{ fill:#221F1A; }
#screen-result:has(#star2.on) .result-scene .eye-r{ fill:#221F1A; }

/* ---------- 富士と桜と新幹線（絵葉書パネル） ---------- */
.postcard{
  position:relative; margin:28px 0 4px; padding:10px 10px 4px;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-xl);
  box-shadow:var(--sh);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
}
.pc-frame{
  position:relative; overflow:hidden;
  border:1px solid var(--line); border-radius:calc(var(--r-xl) - 9px);
  background:#0A1020;
}
.pc-art{ display:block; width:100%; height:auto; aspect-ratio:360 / 200; }

/* 新幹線が海岸線を走り抜ける */
.pc-art .pc-train{ animation:pcTrain 15s linear infinite; }
@keyframes pcTrain{
  0%{ transform:translateX(-70px); opacity:0; }
  8%{ opacity:1; }
  92%{ opacity:1; }
  100%{ transform:translateX(400px); opacity:0; }
}
.pc-art .pc-cloud{ animation:pcCloud linear infinite; }
@keyframes pcCloud{ from{ transform:translateX(-130px); } to{ transform:translateX(420px); } }
.pc-art .pc-c1{ animation-duration:34s; animation-delay:-4s; }
.pc-art .pc-c2{ animation-duration:44s; animation-delay:-22s; }
.pc-art .pc-c3{ animation-duration:54s; animation-delay:-38s; }

/* 日の出の呼吸 */
.pc-art .pc-sun{ animation:pcSun 7s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
@keyframes pcSun{ 0%,100%{ opacity:.82; } 50%{ opacity:1; } }

/* 桜の揺れ */
.pc-art .pc-blossom{ animation:pcSway 6.5s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
.pc-art .pc-blossom.b2{ animation-duration:8.5s; animation-delay:-3s; }
@keyframes pcSway{
  0%,100%{ transform:rotate(-2.5deg) translateY(0); }
  50%{ transform:rotate(2.5deg) translateY(-2px); }
}
.pc-art .pc-birds{ animation:pcBirds 11s ease-in-out infinite; }
@keyframes pcBirds{ 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(-8px,-4px); } }
.pc-art .pc-torii{ animation:pcTorii 6s ease-in-out infinite; }
@keyframes pcTorii{ 0%,100%{ opacity:.92; } 50%{ opacity:.62; } }

.pc-cap{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  padding:10px 8px 6px;
}
.pc-jp{ font-family:var(--serif); font-size:14px; letter-spacing:4px; color:var(--kin-2); }
.pc-cn{ font-size:11.5px; letter-spacing:1.4px; color:var(--text-3); }

/* 切手（邮票角标） */
.pc-stamp{
  position:absolute; right:18px; top:18px; z-index:2;
  padding:4px 6px; text-align:center;
  font-family:var(--serif); font-size:8px; line-height:1.35; letter-spacing:1.1px;
  color:#FFF4EE; border-radius:3px; transform:rotate(3deg);
  background:linear-gradient(140deg, var(--shu-2), var(--shu-deep));
  box-shadow:0 5px 16px rgba(0,0,0,.45);
  outline:1px dashed rgba(255,255,255,.5); outline-offset:-3px;
  user-select:none;
}

/* ---------- 插画框里的日本直播播放器 ---------- */
.pc-art{ transition:opacity .45s ease, transform .6s ease; }
.pc-frame.playing-tv .pc-art{ opacity:0; transform:scale(1.02); }
.pc-video{
  position:absolute; inset:0; z-index:2;
  width:100%; height:100%; object-fit:cover; background:#05070E;
}
.pc-badge{
  position:absolute; left:10px; top:10px; z-index:4;
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 9px 3px 7px; border-radius:var(--r-pill);
  background:rgba(226,86,47,.92); color:#FFF4EE;
  font-family:var(--latin); font-size:9.5px; font-weight:800; letter-spacing:1.6px;
  box-shadow:0 4px 14px rgba(226,86,47,.45);
}
.pc-badge::before{
  content:''; width:6px; height:6px; border-radius:50%;
  background:#FFF4EE; animation:livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }
/* 电台：保留插画，只出现声波 */
.pc-eq{
  position:absolute; left:12px; bottom:46px; z-index:4;
  display:flex; align-items:flex-end; gap:3px; height:26px;
}
.pc-eq i{
  display:block; width:3px; border-radius:2px;
  background:linear-gradient(180deg, var(--shu-2), var(--kin));
  box-shadow:0 0 8px rgba(230,196,127,.45);
  animation:eqBar 1.05s ease-in-out infinite;
}
.pc-eq i:nth-child(1){ height:10px; animation-delay:-.1s; }
.pc-eq i:nth-child(2){ height:20px; animation-delay:-.45s; }
.pc-eq i:nth-child(3){ height:14px; animation-delay:-.25s; }
.pc-eq i:nth-child(4){ height:24px; animation-delay:-.6s; }
.pc-eq i:nth-child(5){ height:12px; animation-delay:-.35s; }
@keyframes eqBar{ 0%,100%{ transform:scaleY(.35); } 50%{ transform:scaleY(1); } }

/* 播放控制条 */
.pc-bar{
  position:absolute; left:0; right:0; bottom:0; z-index:3;
  display:flex; align-items:center; gap:9px;
  padding:26px 11px 9px;
  background:linear-gradient(180deg, transparent, rgba(6,8,16,.55) 42%, rgba(6,8,16,.86));
}
.pc-play{
  flex:0 0 auto; width:34px; height:34px; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.34); border-radius:50%;
  background:linear-gradient(140deg, var(--neon), var(--shu-deep));
  color:#FFF6F1; cursor:pointer; box-shadow:0 6px 18px rgba(226,86,47,.42);
  transition:transform .16s ease, box-shadow .22s;
}
.pc-play .ic{ width:15px; height:15px; }
.pc-play:active{ transform:scale(.94); }
.pc-play.on{ background:linear-gradient(140deg, var(--kin-2), var(--kin)); color:#3A2A0A; border-color:rgba(255,255,255,.5); }
.pc-now{
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-size:11.5px; letter-spacing:.6px; color:#F3EEE2;
  text-shadow:0 1px 3px rgba(0,0,0,.7);
}
.pc-open{
  flex:0 0 auto; width:26px; height:26px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color:#F3EEE2; text-decoration:none; background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
}
.pc-open:hover{ background:rgba(255,255,255,.26); }
.pc-open .ic{ width:13px; height:13px; }

/* 频道按钮 */
.pc-live{ padding:11px 8px 0; }
.pc-cats{ display:flex; gap:6px; margin-bottom:9px; }
.pc-cat{
  flex:1; min-height:32px; cursor:pointer;
  border:1px solid var(--line-2); border-radius:var(--r-pill);
  background:var(--surface); color:var(--text-2);
  font-family:inherit; font-size:12.5px; letter-spacing:1.4px;
  transition:background .2s, color .2s, border-color .2s, box-shadow .22s;
}
.pc-cat:hover{ border-color:var(--line-3); color:var(--text); }
.pc-cat.on{
  background:linear-gradient(140deg, var(--neon), var(--shu-deep));
  border-color:transparent; color:#FFF6F1; font-weight:600;
  box-shadow:0 6px 18px rgba(226,86,47,.30);
}
.pc-list{
  display:flex; gap:7px; overflow-x:auto; padding:2px 2px 6px;
  scrollbar-width:none; -webkit-overflow-scrolling:touch;
}
.pc-list::-webkit-scrollbar{ display:none; height:0; }
.pc-ch{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:7px;
  min-height:38px; padding:0 13px; cursor:pointer;
  border:1px solid var(--line-2); border-radius:13px;
  background:var(--surface); color:var(--text);
  font-family:inherit; font-size:12.5px; letter-spacing:.4px; white-space:nowrap;
  transition:transform .14s ease, border-color .2s, box-shadow .24s, color .2s;
}
.pc-ch:hover{ transform:translateY(-2px); border-color:var(--line-3); }
.pc-ch.on{
  border-color:var(--kin); color:var(--kin-2);
  box-shadow:var(--glow-kin); background:var(--kin-tint);
}
.pc-ch .dot{
  width:6px; height:6px; border-radius:50%; flex:0 0 auto;
  background:var(--shu-2); box-shadow:0 0 6px rgba(226,86,47,.6);
}
.pc-ch[data-type="radio"] .dot{ background:var(--ai-2); box-shadow:0 0 6px rgba(143,176,232,.6); }
.pc-ch .cn{ color:var(--text-3); font-size:11px; }
.pc-ch.on .cn{ color:var(--kin); opacity:.8; }
.pc-note{
  margin:4px 2px 0; font-size:10.5px; line-height:1.6; letter-spacing:.3px;
  color:var(--text-3);
}

/* ---------- 練習の進捗を走る新幹線マーカー ---------- */
.progress{ overflow:visible; }

/* ---------- 卡片悬停：淡彩晕染（Bento 微动效） ---------- */
.game-card::after,
.course-entry::after,
.intro-card::after,
.ls-row::after{
  content:''; position:absolute; inset:0; z-index:0; opacity:0; pointer-events:none;
  background:
    radial-gradient(70% 60% at 12% 8%, var(--shu-tint), transparent 60%),
    radial-gradient(64% 56% at 90% 100%, var(--ai-tint), transparent 64%);
  transition:opacity .34s ease;
}
.game-card:hover::after,
.course-entry:hover::after,
.intro-card:hover::after,
.ls-row:hover::after{ opacity:1; }
/* 子元素都在同一 flex 上下文里，直接抬升层级即可（不改变 .ls-done 等绝对定位） */
.game-card > *, .course-entry > *, .intro-card > *, .ls-row > *{ z-index:1; }
.progress-bar{ position:relative; }
.progress-bar::after{
  content:''; position:absolute; right:0; top:50%;
  width:30px; height:11px; margin:-5.5px -15px 0 0;
  background:linear-gradient(180deg, var(--kin-2), var(--kin));
  -webkit-mask-image:var(--train-mask); mask-image:var(--train-mask);
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-size:contain; mask-size:contain;
  -webkit-mask-position:center; mask-position:center;
  filter:drop-shadow(0 0 7px rgba(230,196,127,.65));
  animation:trainBob 1.6s ease-in-out infinite;
}
@keyframes trainBob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-1.2px); } }

/* ---------- 窄屏微调 ---------- */
@media (max-width:640px){
  .origami{ width:48px; height:42px; opacity:.42; }
}
@media (max-width:430px){
  .pc-cap{ flex-direction:column; gap:2px; align-items:flex-start; padding:9px 4px 8px; }
  .result-card > .hanamaru{ width:70px; right:8px; top:8px; }
  .hanamaru svg{ width:52px; height:52px; }
  .progress-bar::after{ width:24px; height:9px; margin:-4.5px -12px 0 0; }
}

/* ============================================================================
   § 登录 / 注册闸门（手机号 + 密码）
   ============================================================================ */
body.gated{ overflow:hidden; }

.gate{
  position:fixed; inset:0; z-index:90;
  display:flex; align-items:center; justify-content:center;
  padding:24px 18px calc(24px + env(safe-area-inset-bottom));
  overflow-y:auto;
  background:
    radial-gradient(58% 44% at 12% 4%, var(--aura-1), transparent 66%),
    radial-gradient(50% 40% at 92% 2%, var(--aura-2), transparent 68%),
    linear-gradient(158deg, var(--bg-1) 0%, var(--bg-0) 60%, var(--bg-1) 100%);
}
.gate::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image:var(--seigaiha), var(--grain);
  background-size:104px 52px, 180px 180px;
  opacity:calc(var(--pattern-op) * .85);
}
.gate-card{
  position:relative; width:100%; max-width:420px; padding:24px 20px 20px;
  background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-xl);
  box-shadow:var(--sh-2);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  animation:screenIn .36s cubic-bezier(.22,.72,.2,1);
}
.gate-brand{ display:flex; align-items:center; gap:14px; padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid var(--line); }
.gate-brand-text{ min-width:0; }
.gate-brand h2{ margin:2px 0 0; font-family:var(--serif); font-size:26px; font-weight:600; letter-spacing:7px; color:var(--text); }
.gate-sub{ margin:4px 0 0; font-size:12px; letter-spacing:1.4px; color:var(--text-3); }

.gate-tabs{ display:flex; gap:8px; margin-bottom:16px; }
.gate-tab{
  flex:1; min-height:40px; cursor:pointer;
  border:1px solid var(--line-2); border-radius:var(--r-pill);
  background:var(--surface); color:var(--text-2);
  font-family:inherit; font-size:14px; letter-spacing:2px;
  transition:background .2s, color .2s, border-color .2s, box-shadow .22s;
}
.gate-tab:hover{ border-color:var(--line-3); color:var(--text); }
.gate-tab.on{
  background:linear-gradient(140deg, var(--shu-2), var(--shu) 46%, var(--shu-deep));
  border-color:transparent; color:#FFF6F1; font-weight:600; box-shadow:var(--sh-shu);
}

.gate-field{ display:block; margin-bottom:12px; }
.gate-label{ display:block; margin-bottom:6px; font-size:12.5px; letter-spacing:1.6px; color:var(--text-3); }
.gate-input{
  width:100%; min-height:var(--tap); padding:0 14px;
  font-family:inherit; font-size:16px;              /* 16px：iOS 聚焦时不会自动放大 */
  color:var(--text); background:var(--surface-2);
  border:1px solid var(--line-2); border-radius:var(--r);
  transition:border-color .2s, box-shadow .2s;
}
.gate-input::placeholder{ color:var(--text-3); }
.gate-input:focus{ outline:none; border-color:var(--kin); box-shadow:var(--glow-kin); }
.gate-msg{ min-height:20px; margin:2px 0 10px; font-size:12.5px; letter-spacing:.6px; color:var(--shu-2); }
.gate-msg.ok{ color:var(--ok); }
.gate-submit{ width:100%; }
.gate-note{ margin:14px 0 0; font-size:11.5px; line-height:1.75; letter-spacing:.8px; color:var(--text-3); }
.gate-fair{ margin:8px 0 0; font-size:11px; line-height:1.7; letter-spacing:.6px; color:var(--text-3); opacity:.85; }
.gate-agree{ display:flex; gap:9px; align-items:flex-start; margin:2px 0 10px; font-size:12px;
  line-height:1.6; letter-spacing:.4px; color:var(--text-2); cursor:pointer; }
.gate-agree input{ flex:0 0 auto; width:16px; height:16px; margin:2px 0 0; cursor:pointer; accent-color:var(--kin); }
.gate-agree a{ color:var(--kin); text-decoration:none; border-bottom:1px solid currentColor; }
.gate-agree b{ color:var(--shu-2); font-weight:600; }
.gate-agree.warn{ color:var(--shu-2); }
.gate-agree.warn input{ outline:2px solid var(--shu-2); outline-offset:1px; border-radius:3px; }
.copyright .cp-fair{ font-size:11px; letter-spacing:.5px; color:var(--text-3); opacity:.9; }
.copyright .cp-fair b{ color:var(--shu-2); font-weight:600; }
.copyright .cp-fair a{ color:inherit; text-decoration:none; border-bottom:1px solid currentColor; }

/* 单课页：练习与游戏入口 */
.ls-ex{ margin:16px 0 4px; }
.ls-ex-head{ display:flex; align-items:baseline; gap:8px; margin:0 2px 8px; }
.ls-ex-head b{ font-size:14px; letter-spacing:.5px; }
.ls-ex-head i{ font-size:11.5px; font-style:normal; color:var(--text-3); letter-spacing:.6px; }
.ls-ex-row{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit;
  background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:12px 14px; margin-bottom:9px; }
.ls-ex-row:active{ transform:scale(.995); }
.ls-ex-row.lock{ opacity:.55; }
.ls-ex-txt{ flex:1; min-width:0; }
.ls-ex-txt b{ display:block; font-size:14.5px; font-weight:650; letter-spacing:.4px; }
.ls-ex-txt i{ display:block; font-style:normal; font-size:11.5px; color:var(--text-3); margin-top:3px; letter-spacing:.5px; }
.ls-ex-go{ flex:0 0 auto; font-size:12px; letter-spacing:.6px; color:var(--kin); }
.ls-ex-row.lock .ls-ex-go{ color:var(--text-3); }

@media (max-width:420px){
  .gate-card{ padding:20px 16px 16px; border-radius:var(--r-lg); }
  .gate-brand h2{ font-size:23px; letter-spacing:6px; }
}

/* ============================================================================
   § 直播卡片：手机专用标记 + 连接状态
   ============================================================================ */
.pc-foot{
  display:flex; align-items:flex-start; gap:10px; margin-top:2px;
}
.pc-note{ flex:1; min-width:0; }
.pc-redetect{
  flex:0 0 auto; min-height:26px; padding:0 10px; margin-top:1px; cursor:pointer;
  border:1px solid var(--line-2); border-radius:var(--r-pill);
  background:var(--surface); color:var(--text-3);
  font-family:inherit; font-size:10.5px; letter-spacing:1.2px;
  transition:color .2s, border-color .2s, background .2s;
}
.pc-redetect:hover{ color:var(--text); border-color:var(--line-3); background:var(--surface-2); }

/* 「手机」标记：第三方转发源电脑浏览器播不了 */
.pc-ch .pc-mob{
  flex:0 0 auto; padding:1px 6px; border-radius:var(--r-pill);
  font-size:9.5px; letter-spacing:1px;
  color:var(--ai-2); background:var(--ai-tint);
  border:1px solid rgba(143,176,232,.35);
}

/* 清晰度标签（实测值） */
.pc-ch .pc-res{
  flex:0 0 auto; padding:1px 6px; border-radius:var(--r-pill);
  font-family:var(--latin); font-size:9.5px; font-weight:700; letter-spacing:.8px;
  color:var(--kin); background:var(--kin-tint);
  border:1px solid rgba(230,196,127,.38);
}

/* 连通性：检测中 / 在线 / 连不上 */
.pc-ch .pc-st{ flex:0 0 auto; font-size:10px; letter-spacing:.4px; color:var(--text-3); }
.pc-ch .pc-st:empty{ display:none; }
.pc-ch .pc-st.checking{ color:var(--text-3); animation:livePulse 1.4s ease-in-out infinite; }
.pc-ch .pc-st.ok{ color:var(--matcha); }
.pc-ch .pc-st.bad{ color:var(--shu-2); opacity:.85; }

@media (prefers-color-scheme: light){
  .pc-ch .pc-st.ok{ color:#3F7A52; }
  .pc-ch .pc-st.bad{ color:#C0392B; }
  .pc-ch .pc-mob{ color:#2F5A87; background:rgba(47,90,135,.08); border-color:rgba(47,90,135,.28); }
}
