/* お箱 的样式。和 docs/demo-cn.html 同一套：手机优先的单列（最宽 560px），底部五个标签。 */
:root {
  --bg: #f6f3f7;
  --surface: #ffffff;
  --surface-2: #f0ebf2;
  --ink: #1d1a22;
  --muted: #6e6678;
  --line: #e6dfea;
  --accent: #e8194f;
  --accent-ink: #ffffff;
  --accent-soft: #ffe2ea;
  --gold: #c88a00;
  --gold-soft: #fff2cc;
  --good: #128a47;
  --good-soft: #dcf5e6;
  --warn-soft: #fff4e5;
  --shadow: 0 6px 20px rgba(60, 20, 50, .08);
  --f-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-display: "ZCOOL KuaiLe", "Noto Sans SC", "PingFang SC", sans-serif;
  --f-num: "Barlow Condensed", "DIN Alternate", "Arial Narrow", "Noto Sans SC", "PingFang SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131016; --surface: #1d1922; --surface-2: #27212d; --ink: #f2eef5; --muted: #a79eb1;
    --line: #362f3e; --accent: #ff4d79; --accent-ink: #1a0710; --accent-soft: #3d1625;
    --gold: #f3bf45; --gold-soft: #3a2d0e; --good: #4cd68a; --good-soft: #123222; --warn-soft: #33260f;
    --shadow: 0 6px 20px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131016; --surface: #1d1922; --surface-2: #27212d; --ink: #f2eef5; --muted: #a79eb1;
  --line: #362f3e; --accent: #ff4d79; --accent-ink: #1a0710; --accent-soft: #3d1625;
  --gold: #f3bf45; --gold-soft: #3a2d0e; --good: #4cd68a; --good-soft: #123222; --warn-soft: #33260f;
  --shadow: 0 6px 20px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
p a, .note a, .crumb a, .dhead a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2 { text-wrap: balance; }
.wrap { max-width: 560px; margin: 0 auto; padding-inline: 16px; padding-block: 4px calc(96px + env(safe-area-inset-bottom, 0px)); }
.muted { color: var(--muted); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.spacer { flex: 1; }
.sel { user-select: all; }

/* 顶栏 */
/* 往下滚动时整条收起，往上滚动时出现（app.js 加 .tucked） */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: transform .25s ease, border-color .25s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar.tucked { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
.top-in { max-width: 560px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mascot { width: 40px; height: 40px; flex: none; }
.mascot.big { width: 120px; height: 120px; display: block; margin: 0 auto; }
.brand-t { min-width: 0; }
.brand b { font-family: var(--f-display); font-size: 22px; font-weight: 400; line-height: 1; display: block; }
.brand span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; z-index: 30; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 6px 0; border: 1px solid var(--line); }
.menu-head { padding: 8px 14px 10px; border-bottom: 1px solid var(--line); }
.menu-head b { display: block; font-size: 14px; }
.menu-head span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.menu a, .menu-logout { display: block; width: 100%; text-align: left; padding: 9px 14px; font-size: 14px; background: none; border: 0; }
.menu a:hover, .menu-logout:hover { background: var(--surface-2); }

/* 头像：8 种颜色轮流 */
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; background: #8b5cf6; }
.av.a0 { background: #e8194f; } .av.a1 { background: #7c3aed; } .av.a2 { background: #0891b2; } .av.a3 { background: #db2777; }
.av.a4 { background: #16a34a; } .av.a5 { background: #4b5563; } .av.a6 { background: #ea580c; } .av.a7 { background: #2563eb; }

/* 通用 */
.flash { margin: 8px 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-size: 14px; font-weight: 500; }
.flash.warn { background: var(--gold-soft); color: var(--ink); font-weight: 400; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
form.inline { display: inline; }
.err { margin: 8px 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.crumb { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.sec { margin-top: 22px; }
.sec-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.sec-h.top { margin-top: 10px; align-items: center; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 900; }
.sec-h small { color: var(--muted); font-size: 12.5px; }
.card { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.card p { margin: 6px 0 0; }
.card.empty { color: var(--muted); text-align: center; }
.card.warn { background: var(--warn-soft); }
.card.warn .cheer { font-weight: 700; margin-top: 10px; }
.card.warn .btn { margin-top: 10px; }
.empty-state { text-align: center; padding: 28px 16px; margin-top: 16px; }
.empty-state h1 { font-size: 22px; margin: 10px 0 4px; }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 4px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.live { background: var(--accent-soft); color: var(--accent); }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.chip.ok { background: var(--good-soft); color: var(--good); }
.chip.aw-winner { background: var(--gold-soft); color: var(--gold); }
.chip.aw-popular { background: var(--accent-soft); color: var(--accent); }
.chip.aw-rookie { background: var(--good-soft); color: var(--good); }
.chip.aw-special { background: var(--surface-2); color: var(--ink); }
@keyframes blink { 50% { opacity: .25; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 99px; padding: 11px 20px; font-weight: 700; font-size: 15px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.btn.pri { background: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 6px 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }
.btn.voted { background: var(--accent-soft); color: var(--accent); }
.seg { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 99px; overflow-x: auto; margin-bottom: 12px; }
.seg a { flex: 1; text-align: center; border-radius: 99px; padding: 7px 12px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.seg a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ico { width: 14px; height: 14px; vertical-align: -2px; }

/* 公告 */
.notices { list-style: none; padding: 10px 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); font-size: 13.5px; display: grid; gap: 4px; }
.notices .d { color: var(--muted); margin-right: 8px; font-size: 12.5px; }

/* 首页大卡 */
.hero { margin-top: 6px; border-radius: 22px; padding: 20px 18px 18px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #ff7a59 0%, transparent 55%), linear-gradient(140deg, #e8194f 0%, #a3166b 60%, #5b1a7a 100%); }
.hero > * { position: relative; z-index: 1; }
.hero::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgba(255,255,255,.08); }
.hero .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hero .chip { background: rgba(255,255,255,.18); color: #fff; }
.hero h1 { margin: 10px 0 2px; font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.2; }
.hero p { margin: 0; font-size: 13.5px; opacity: .9; }
.cd { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cd small { font-size: 13px; opacity: .85; }
.cd b { font-family: var(--f-num); font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stats { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.stats b { display: block; font-family: var(--f-num); font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats b small { font-size: 13px; opacity: .8; }
.stats span { font-size: 11.5px; opacity: .85; }
.hero-act { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-act form { display: contents; }
.hero-act .btn { background: #fff; color: #c8124a; }
.hero-act .btn.ghost { background: rgba(255,255,255,.16); color: #fff; }

/* 奖品 */
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prize { background: var(--surface); border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); min-width: 0; }
.prize i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); display: block; }
.prize i span { display: block; font-weight: 400; font-size: 11px; }
.prize b { font-family: var(--f-num); font-size: 24px; line-height: 1.2; display: block; }
.prize small { font-size: 11px; color: var(--muted); }
.prize b small { font-family: var(--f-body); font-size: 12px; color: inherit; font-weight: 700; }
.prize.p-winner b { color: var(--gold); }
.prize.p-popular b { color: var(--accent); }

/* 下期预告 */
.next { display: flex; align-items: center; gap: 12px; }
.next .cal { min-width: 60px; flex: none; text-align: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); padding: 6px 4px; }
.next .cal b { display: block; font-size: 15px; line-height: 1.2; }
.next .cal span { font-size: 11px; font-weight: 700; }
.next .t { flex: 1; min-width: 0; }
.next .t b { display: block; }
.next .t span { font-size: 12.5px; color: var(--muted); }

/* 作品卡片（双列） */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ecard { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.cover { position: relative; aspect-ratio: 3 / 4; max-width: 100%; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.cover .song { font-family: var(--f-display); font-size: 22px; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.25); overflow-wrap: anywhere; }
.cover .artist { font-size: 12px; opacity: .9; }
.cover .rankb { position: absolute; left: 10px; top: 10px; }
.cover .plat { position: absolute; right: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.4); }
.cover .play { position: absolute; left: 50%; top: 42%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: rgba(0,0,0,.28); display: grid; place-items: center; }
.c0 { background: linear-gradient(150deg, #7c3aed, #ec4899); } .c1 { background: linear-gradient(150deg, #0ea5e9, #6366f1); }
.c2 { background: linear-gradient(150deg, #059669, #0ea5e9); } .c3 { background: linear-gradient(150deg, #e11d48, #f97316); }
.c4 { background: linear-gradient(150deg, #f59e0b, #ef4444); } .c5 { background: linear-gradient(150deg, #334155, #7c3aed); }
.c6 { background: linear-gradient(150deg, #f472b6, #a855f7); } .c7 { background: linear-gradient(150deg, #1d4ed8, #14b8a6); }
.ebody { padding: 9px 10px 11px; display: grid; gap: 4px; }
.escore { display: flex; align-items: baseline; gap: 4px; }
.escore b { font-family: var(--f-num); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.escore small { font-size: 11px; color: var(--muted); }
.escore .new { margin-left: auto; font-size: 11px; padding: 1px 6px; }
.escore b.word { font-size: 15px; color: var(--muted); font-family: var(--f-body); font-weight: 700; }
.emeta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.emeta .av { width: 20px; height: 20px; font-size: 10px; }
.emeta .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.votes { display: inline-flex; align-items: center; gap: 3px; }
.medal { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--f-num); font-weight: 700; font-size: 15px; color: #fff; flex: none; }
.m1 { background: linear-gradient(135deg, #ffd34d, #c88a00); }
.m2 { background: linear-gradient(135deg, #dfe5ee, #8a94a6); }
.m3 { background: linear-gradient(135deg, #f0b07a, #a85a22); }
.mn { background: var(--surface-2); color: var(--muted); }

/* 步骤 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--f-num); font-weight: 700; }
.steps b { display: block; font-size: 14.5px; }
.steps span { font-size: 13px; color: var(--muted); }

/* 榜单 */
.rlist { display: grid; gap: 2px; background: var(--surface); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); }
.rrow { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; }
.rrow:hover { background: var(--surface-2); }
.rrow .t { flex: 1; min-width: 0; }
.rrow .t b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .t b .chip { font-size: 11px; vertical-align: 1px; }
.rrow .t span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .t .chip { display: inline-flex; width: fit-content; font-size: 11px; margin: 2px 0; }
.rrow .v { text-align: right; }
.rrow .v b { font-family: var(--f-num); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.rrow .v small { font-size: 11px; color: var(--muted); }
.past { display: grid; gap: 10px; }
.past .card { display: grid; gap: 8px; }
.past-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.past-row { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.past-row .chip { flex: none; width: 46px; justify-content: center; }

/* 列表 */
.list { display: grid; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.list > * { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.list > *:first-child { border-top: 0; }
.list .t { flex: 1; min-width: 0; }
.list .t span { display: block; font-size: 12.5px; color: var(--muted); }
.list .t .chip { display: inline-flex; width: fit-content; margin: 2px 0; }
.list .t span span { display: inline; }
.list .t span a { color: var(--accent); }

/* 作品页 */
.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden; background: #000; margin-top: 4px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.off { color: #fff; display: grid; place-items: center; text-align: center; padding: 16px; }
.player.off .big { font-size: 17px; }
.player.off small { opacity: .9; }
.player.off .btn { background: #fff; color: #222; margin-top: 10px; }
.player-link { text-align: right; margin: 6px 2px 0; font-size: 13px; }
.dhead { margin-top: 14px; display: flex; gap: 12px; align-items: flex-start; }
.dhead .av { width: 44px; height: 44px; font-size: 18px; }
.dhead .t { flex: 1; min-width: 0; }
.dhead h1 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.3; }
.dhead p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.scorebox { display: flex; align-items: center; gap: 14px; }
.scorebox .big { font-family: var(--f-num); font-size: 52px; font-weight: 700; line-height: .9; font-variant-numeric: tabular-nums; }
.scorebox .big small { font-size: 18px; margin-left: 2px; }
.scorebox .big.word { font-family: var(--f-body); font-size: 22px; color: var(--good); }
.note.top { margin: 0 4px 10px; }
.scorebox .t { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.checks { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.voteb { margin-top: 14px; }
.voteb form { margin: 0; }
.chat { display: grid; gap: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .av { width: 32px; height: 32px; font-size: 13px; }
.msg .t { flex: 1; min-width: 0; }
.msg .t b { font-size: 13px; }
.msg time { font-size: 11.5px; color: var(--muted); margin-left: 6px; }
.msg p { margin: 2px 0 0; font-size: 14.5px; }
.say { display: flex; gap: 8px; margin-top: 14px; }
.say input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 10px 14px; }
.report { margin-top: 18px; text-align: center; }
.report summary { cursor: pointer; color: var(--muted); font-size: 12.5px; text-decoration: underline; list-style: none; }
.report form { text-align: left; margin-top: 10px; display: grid; gap: 8px; }
.report input[name="detail"] { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--surface); }

/* 表单 */
.form { display: grid; gap: 14px; }
.field label, .field .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 13px; }
.field input:focus { border-color: var(--accent); outline: none; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ticks { display: grid; gap: 8px; }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 400; }
.tick input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.warn-box { background: var(--gold-soft); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.confirm { border: 2px solid var(--accent); box-shadow: none; }
.loginprompt { text-align: center; }
section.card.form { display: block; }

/* 登录 */
.login { margin-top: 10px; display: grid; gap: 14px; }
.login-hero { text-align: center; }
.login-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: 32px; margin: 6px 0 0; }
.login-hero p { margin: 4px 0 0; }

/* 我的 */
.prof { display: flex; gap: 14px; align-items: center; }
.prof .av { width: 60px; height: 60px; font-size: 24px; }
.prof h1 { margin: 0; font-size: 20px; }
.prof p { margin: 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; text-align: center; }
.kv b { display: block; font-family: var(--f-num); font-size: 24px; line-height: 1.1; }
.kv span { font-size: 12px; color: var(--muted); }

/* 确认框 */
.confirm-dialog { border: 0; border-radius: 16px; padding: 20px; width: min(320px, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(0, 0, 0, .4); }
.confirm-dialog p { margin: 0 0 16px; font-size: 16px; font-weight: 700; text-align: center; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 页脚 */
.foot { margin-top: 36px; font-size: 12px; color: var(--muted); }
.foot p { margin: 0 0 4px; }
.foot a { color: inherit; }

/* 底部导航 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 60px; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); height: 60px; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a { position: relative; }
.tabbar a svg { border-radius: 99px; box-sizing: content-box; padding: 3px 12px; transition: background .2s; }
/* 选中的标签：粉色、加粗、图标后面一块浅粉色底、顶部一条短线 */
.tabbar a[aria-current="page"] { color: var(--accent); font-weight: 900; }
.tabbar a[aria-current="page"] svg { background: var(--accent-soft); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 24px; height: 3px; margin-left: -12px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tabbar a.plus svg { padding: 0; background: none !important; }
.tabbar a.plus[aria-current="page"]::before { display: none; }
.tabbar a.plus[aria-current="page"] .c { box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 16px rgba(232, 25, 79, .35); }
.tabbar a.plus .c { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-top: -22px; box-shadow: 0 6px 16px rgba(232, 25, 79, .35); border: 4px solid var(--surface); }
.tabbar a.plus .c svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 380px) { .hero h1 { font-size: 26px; } .cover .song { font-size: 19px; } .row2 { grid-template-columns: 1fr; } }
.empty-state p { margin: 8px 0 0; }
.empty-state form { margin-top: 14px; }
.actions-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.nowcard { margin-top: 10px; }
.nowcard .kv b { font-size: 20px; }
.seg.first { margin-top: 10px; }
.seg.sec { margin-top: 16px; }

/* 奖状 */
.cert { display: block; background: linear-gradient(135deg, #fff8e6, #fff3d6); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); color: #3a2a12; }
/* 几张奖状横着排，左右滑动；只有一张时占满一行 */
.certs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; }
.certs .cert { flex: 0 0 88%; scroll-snap-align: center; }
.certs .cert:only-child { flex-basis: 100%; }
.cert-in { border: 2px solid #d4a63a; outline: 1px solid #d4a63a; outline-offset: -7px; border-radius: 10px; padding: 22px 20px 16px; text-align: center; position: relative; }
.cert-kicker { font-size: 13px; letter-spacing: .6em; color: #b4842a; font-weight: 700; padding-left: .6em; }
.cert-title { font-family: var(--f-display); font-size: 40px; line-height: 1.2; color: #c8102e; margin: 2px 0 10px; }
.cert-body { margin: 0; font-size: 15px; line-height: 1.9; text-align: left; }
.cert-name { font-size: 18px; }
.cert-num { font-family: var(--f-num); font-size: 19px; color: #c8102e; }
.cert-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; }
.cert-cat { width: 76px; height: 76px; }
.cert-sign { font-size: 13px; text-align: right; color: #6b5330; line-height: 1.7; }
.guide-lead p { margin: 0 0 6px; }
.ohako-card { margin: 24px auto 0; max-width: 560px; background: #fff6e8; border: 6px solid var(--accent); border-radius: 28px; padding: 28px 20px 24px; text-align: center; color: var(--ink); }
.ohako-card .mascot { width: 46%; max-width: 220px; height: auto; }
.oc-word { font-family: var(--f-num); font-size: clamp(64px, 22vw, 120px); line-height: 1; letter-spacing: .04em; color: var(--accent); font-weight: 700; }
.oc-date { font-size: clamp(28px, 8.5vw, 48px); font-weight: 900; margin-top: 10px; }
.oc-site { margin-top: 10px; font-size: 14px; color: #8a6a44; }
.oc-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 30px; }
.steps span b, .steps span strong { display: inline; font-size: inherit; color: var(--ink); }
.steps span a, .guide-lead a { color: var(--accent); }
