/* 咱清謠：貼紙風、短劇字幕感 */
:root {
  --bg: #fff6e6; --dot: #f3dfbd; --card: #fffdf8; --ink: #2b2233; --muted: #7a6d62; --line: #2b2233; --soft: #f1e6d2;
  --brand: #e2483d; --brand-d: #b5322a; --brand-ink: #fff; --gold: #ffc93c; --teal: #19a39a;
  --ok: #1f8a4c; --bad: #d8382c; --check: #1d7fd6;
  --skin: #ffe6d8; --hair: #2b2233; --blush: #ff9e9e;
  --c-life: #19a39a; --c-culture: #8a5cd6; --c-law: #2f6fd6; --c-family: #e0569b; --c-custom: #ee8a1d; --c-traffic: #5d7f12; --c-medical: #d63c3c; --c-work: #7a5a3f;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1d1a21; --dot: #2a2530; --card: #27232c; --ink: #f4ecdf; --muted: #b3a89b; --line: #0c0a0e; --soft: #34303a;
          --brand: #ff6a5c; --brand-d: #c9473b; --gold: #ffd25e; --ok: #5fd08f; --bad: #ff7a6b; --check: #6db7ff; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(var(--dot) 1.5px, transparent 1.5px); background-size: 18px 18px;
  font: 16px/1.7 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* 頁首 */
.top { background: var(--ink); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 900; font-size: 22px; color: var(--gold); text-decoration: none; letter-spacing: 3px; }
.logo small { font-size: 12px; font-weight: 400; color: #d8cfc2; margin-left: 8px; letter-spacing: 0; }
nav { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 15px; }
nav a { color: #fff6e6; text-decoration: none; padding: 2px 10px; border-radius: 20px; }
nav a:hover { background: rgba(255, 255, 255, .12); }
nav a.admin { color: var(--ink); background: var(--gold); font-weight: 700; }
@media (prefers-color-scheme: dark) { .top { background: #0f0d12; } }
main.wrap { padding-top: 26px; padding-bottom: 40px; }

h1 { font-size: 28px; margin: 0 0 12px; font-weight: 900; }
h2 { font-size: 21px; margin: 26px 0 12px; font-weight: 900; }
.card h2:first-child, .card h1:first-child { margin-top: 0; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0 0 18px; box-shadow: 5px 5px 0 var(--line); }
.card.narrow { max-width: 440px; margin: 20px auto; }
.center { text-align: center; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.check { color: var(--check); font-weight: 900; }
/* 勾勾：有色小圓底＋白色勾，底色依職業別（--vc） */
.vbadge { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--vc, #4b5563); vertical-align: -0.16em; flex: none; box-shadow: 0 0 0 1.5px #fff; }
.vbadge svg { width: 72%; height: 72%; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.kind-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; }
.kind-legend li { display: flex; align-items: center; gap: 6px; }
.dot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 12px; text-align: center; line-height: 18px; margin-left: 2px; }

/* 按鈕 */
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 2px solid var(--line); border-radius: 12px; padding: 8px 18px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--line); transition: transform .08s, box-shadow .08s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.danger { background: var(--card); color: var(--bad); }
.btn.small { padding: 3px 12px; font-size: 14px; box-shadow: 0 3px 0 var(--line); border-radius: 10px; }
.btn.big { font-size: 22px; padding: 12px 36px; border-radius: 16px; box-shadow: 0 6px 0 var(--line); }
.btn.pop { background: var(--gold); color: #2b2233; }
.btn:disabled { opacity: .5; }

/* 表單 */
label { display: block; margin: 0 0 12px; font-size: 14px; color: var(--muted); font-weight: 700; }
label.inline, .inline { display: inline-block; margin: 0 6px 6px 0; vertical-align: middle; font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.inline input, .inline select, label.inline input, input[type=radio], input[type=checkbox] { display: inline-block; width: auto; margin: 0 4px 0 0; }
input[type=file] { border-style: dashed; }
textarea { min-height: 64px; }
fieldset { border: 2px dashed var(--muted); border-radius: 12px; margin: 0 0 14px; padding: 10px 14px; }
legend { font-size: 14px; color: var(--ink); padding: 0 6px; font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row > label { flex: 1 1 140px; } .row .grow { flex: 3 1 240px; }
.opt { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.opt span { font-weight: 900; color: var(--ink); width: 16px; } .opt input[name="opt[]"] { margin: 0; flex: 1; }

.flash { padding: 10px 14px; border-radius: 12px; margin: 0 0 14px; border: 2px solid var(--line); background: #dff3e6; color: #164a2c; }
.flash.err { background: #fde2dd; color: #7c2117; } .flash.warn { background: #fff0c9; color: #614307; }
.flash.dev { background: #dde9fa; color: #163f69; word-break: break-all; }

/* 標籤 */
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 20px; background: var(--soft); color: var(--ink); margin-right: 4px; }
.c-生活 { background: var(--c-life); color: #fff; } .c-文化 { background: var(--c-culture); color: #fff; } .c-法律 { background: var(--c-law); color: #fff; }
.c-家庭 { background: var(--c-family); color: #fff; } .c-習俗 { background: var(--c-custom); color: #fff; }
.c-交通 { background: var(--c-traffic); color: #fff; } .c-醫療 { background: var(--c-medical); color: #fff; } .c-職場 { background: var(--c-work); color: #fff; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 6px; border: 2px solid var(--line); margin-right: 6px; color: #2b2233; }
.pill.tf { background: #c9f0e3; } .pill.mc { background: #ffe08a; } .pill.spot { background: #ffc9d6; }
.qtype { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.explain { background: var(--bg); border: 2px solid var(--line); border-left-width: 6px; border-left-color: var(--ok); padding: 8px 12px; border-radius: 10px; margin: 10px 0; }
.explain.small { font-size: 14px; }

/* 首頁主視覺 */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 10px 0 6px; }
.kicker { display: inline-block; margin: 0; background: var(--ink); color: var(--gold); padding: 2px 12px; border-radius: 6px; font-weight: 700; font-size: 14px; transform: rotate(-2deg); }
.title { font-size: 76px; line-height: 1.1; margin: 10px 0 8px; letter-spacing: 6px; }
.title span { display: inline-block; color: #fff; background: var(--brand); border: 3px solid var(--line); border-radius: 14px; padding: 0 12px; margin-right: 8px;
  box-shadow: 5px 5px 0 var(--line); transform: rotate(-4deg); }
.title span:nth-child(2) { background: var(--teal); transform: rotate(3deg) translateY(6px); }
.title span:nth-child(3) { background: var(--gold); color: #2b2233; transform: rotate(-2deg); }
.subtitle { display: inline-block; background: #111; color: #ffe14d; font-weight: 700; padding: 8px 16px; border-radius: 6px; font-size: 17px; line-height: 1.6;
  text-shadow: 0 2px 0 #000; transform: rotate(-1deg); }
.subtitle b { color: #fff; }
.lead { font-size: 17px; }
.rules-inline { margin-top: 4px; }
.stats { text-align: center; margin: 6px 0 22px; }
.stats .tag { margin: 2px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-host { order: -1; }
  .title { font-size: 54px; }
}
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* 出題官 */
.mascot-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mascot-fig { flex: none; position: relative; width: 110px; text-align: center; animation: bob 3s ease-in-out infinite; }
.mascot-wrap.big .mascot-fig { width: 170px; }
.mascot { width: 100%; height: auto; display: block; overflow: visible; }
.mascot-name { display: inline-block; margin-top: -6px; position: relative; background: var(--ink); color: var(--gold); font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 10px; white-space: nowrap; }
.mascot .hair { fill: var(--hair); } .mascot .skin { fill: var(--skin); } .mascot .coat { fill: var(--brand); } .mascot .tie { fill: var(--gold); }
.mascot .badge { fill: var(--gold); stroke: #2b2233; stroke-width: 1.2; } .mascot .badge-t { font-size: 8px; font-weight: 900; fill: #2b2233; }
.mascot .blush { fill: var(--blush); opacity: .65; } .mascot .ink { fill: #2b2233; } .mascot .mouth { fill: #c8463a; }
.mascot .line, .mascot .brow { fill: none; stroke: #2b2233; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mascot .brow { stroke-width: 2.4; }
.mascot .pin circle { fill: #e2483d; } .mascot .pin line { stroke: #ffc93c; stroke-width: 3; stroke-linecap: round; }
.mascot .q-mark { font-size: 34px; font-weight: 900; fill: var(--brand); }
.mascot .spark { fill: var(--gold); }
.mascot .m { display: none; }
.mascot[data-mood=normal] .m-normal, .mascot[data-mood=happy] .m-happy, .mascot[data-mood=oops] .m-oops,
.mascot[data-mood=think] .m-think, .mascot[data-mood=smug] .m-smug { display: inline; }
.mascot.bounce { animation: bounce .5s; } .mascot.shake { animation: shake .45s; }
.bubble { min-width: 0; position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; font-weight: 700; box-shadow: 4px 4px 0 var(--line); max-width: 320px; }
.bubble::before { content: ""; position: absolute; left: -12px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right: 12px solid var(--line); border-left: 0; }
.bubble::after { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 9px solid var(--card); border-left: 0; }
.bubble.pop-in { animation: popin .3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes bounce { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-14px) scale(1.05); } 100% { transform: translateY(0) scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-3deg); } 40% { transform: translateX(6px) rotate(3deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes popin { 0% { transform: scale(.85); opacity: .3; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mascot-fig, .mascot.bounce, .mascot.shake, .bubble.pop-in, .game.flip { animation: none !important; } }

/* 排行、公告 */
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 2px dashed var(--soft); }
.rank li b { margin-left: auto; font-size: 18px; }
.rank .no { width: 28px; height: 28px; line-height: 24px; text-align: center; border-radius: 50%; background: var(--soft); font-size: 13px; font-weight: 900; border: 2px solid var(--line); }
.rank li:nth-child(1) .no { background: var(--gold); } .rank li:nth-child(2) .no { background: #d9dde3; } .rank li:nth-child(3) .no { background: #e8b07a; }
.prize { margin: 6px 0; background: #fff0c9; color: #4a3407; border: 2px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.prize .muted { color: #6b5a3a; }
.ann { padding: 7px 0; border-bottom: 2px dashed var(--soft); }
.kind { font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 6px; color: #fff; background: #777; }
.kind.season { background: var(--brand); } .kind.rule { background: var(--c-custom); } .kind.verified { background: var(--check); } .kind.general { background: var(--teal); }
.how { padding-left: 22px; } .how li { margin-bottom: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { padding: 3px 14px; border-radius: 20px; border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 700; background: var(--card); }
.tabs a.on { background: var(--ink); color: var(--bg); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
.list th, .list td { text-align: left; padding: 8px 6px; border-bottom: 2px dashed var(--soft); vertical-align: top; }
.list tr.me { background: rgba(255, 201, 60, .25); } .rank-table tr.podium td:first-child { font-weight: 900; color: var(--brand); font-size: 18px; }
@media (max-width: 640px) { table.list { display: block; overflow-x: auto; } }
.st { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--soft); white-space: nowrap; }
.st.approved { background: #c9f0d8; color: #164a2c; } .st.needs_revision { background: #ffe9a8; color: #5c4006; }
.st.escalated, .st.removed, .st.rejected { background: #fdd5ce; color: #7c2117; }
.opts li.ok { font-weight: 900; color: var(--ok); }
.review-form textarea { margin-bottom: 8px; }
.report { margin-top: 10px; font-size: 14px; } .report summary { cursor: pointer; color: var(--muted); }
.report select, .report textarea { margin: 6px 0; }
.right-item { padding: 10px 0; border-bottom: 2px dashed var(--soft); }
.rev { margin: 8px 0 2px; font-size: 14px; }
details > summary { cursor: pointer; font-weight: 700; }
.card.wrong { border-left-width: 8px; border-left-color: var(--bad); }
.foot { color: var(--muted); font-size: 13px; padding: 20px 16px 40px; text-align: center; }

/* 圖片題 */
.qfig { margin: 10px 0; }
.qimg { position: relative; display: inline-block; max-width: 100%; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; line-height: 0; background: #fff; }
.qimg img { max-width: 100%; max-height: 460px; display: block; user-select: none; -webkit-user-drag: none; }
.qimg .spot { position: absolute; border: 3px dashed var(--ok); background: rgba(31, 138, 76, .18); border-radius: 8px; }
.qimg .spot.editable { cursor: pointer; } .qimg .spot.editable:hover { background: rgba(216, 56, 44, .3); border-color: var(--bad); }
.qimg .click { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--bad); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--bad); }
.qimg.drawing { cursor: crosshair; touch-action: none; }
.qimg.play.clickable { cursor: crosshair; }
.spot-editor { margin-top: 10px; }

/* 答題 */
.stage-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.stage-wrap .host .mascot-wrap { flex-direction: column; position: sticky; top: 80px; }
.stage-wrap .host .bubble::before, .stage-wrap .host .bubble::after { display: none; }
@media (max-width: 760px) {
  .stage-wrap { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stage-wrap .host .mascot-wrap { flex-direction: row; position: static; }
  .stage-wrap .host .mascot-wrap.big .mascot-fig { width: 96px; }
  .stage-wrap .host .bubble::before, .stage-wrap .host .bubble::after { display: block; }
}
.game { text-align: center; min-height: 420px; }
.sub-title { font-size: 34px; }
.rules { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 18px; }
.hud { display: flex; justify-content: space-between; align-items: center; font-size: 18px; gap: 8px; }
.timer { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; background: var(--ink); color: var(--gold); border-radius: 10px; padding: 0 12px; }
.timer.hurry { background: var(--bad); color: #fff; animation: shake .5s infinite; }
.score b { display: inline-block; font-size: 26px; color: var(--brand); }
.score b.bump { animation: bounce .4s; }
.bar { height: 12px; background: var(--soft); border: 2px solid var(--line); border-radius: 8px; overflow: hidden; margin: 10px 0 18px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); width: 100%; transition: width .25s linear; }
.qbody { font-size: 23px; line-height: 1.55; margin: 6px 0 16px; text-align: left; }
.game.flip { animation: popin .25s; }
.choices { display: grid; gap: 12px; margin-top: 14px; }
.choices.tf { grid-template-columns: 1fr 1fr; }
.choice { font: inherit; font-size: 18px; font-weight: 700; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer; text-align: left; box-shadow: 0 5px 0 var(--line); transition: transform .08s, box-shadow .08s; }
.choices.tf .choice { text-align: center; font-size: 30px; font-weight: 900; }
.choices.tf .choice:first-child { background: #c9f0e3; color: #134c3e; } .choices.tf .choice:last-child { background: #fdd5ce; color: #6e1d14; }
.choice:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--line); }
.choice:active, .choice.picked { transform: translateY(4px); box-shadow: 0 1px 0 var(--line); }
.choice.good { background: var(--ok) !important; color: #fff !important; }
.choice.bad { background: var(--bad) !important; color: #fff !important; }
.feedback { height: 34px; margin-top: 14px; font-size: 22px; font-weight: 900; opacity: 0; transition: opacity .15s; }
.feedback.good { color: var(--ok); opacity: 1; } .feedback.bad { color: var(--bad); opacity: 1; }

/* 成績 */
.result-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.result-hero .card { margin: 0; }
@media (max-width: 760px) { .result-hero { grid-template-columns: minmax(0, 1fr); } }
.bigscore { font-size: 84px; font-weight: 900; color: var(--brand); line-height: 1.05; text-shadow: 4px 4px 0 var(--gold); }
.bigscore small { font-size: 24px; margin-left: 4px; text-shadow: none; }
.score-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 4px 0 6px; }
.score-row > div { display: flex; flex-direction: column; align-items: center; }
.bigscore.acc { color: var(--teal); text-shadow: 4px 4px 0 var(--gold); }
.rank li .muted { margin-left: auto; } .rank li .muted + b { margin-left: 10px; }

/* 隱私權聲明、使用條款 */
.doc { line-height: 1.8; }
.doc h2 { margin-top: 1.4em; font-size: 1.15rem; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: .3em 0; }
.doc table.list td { vertical-align: top; }
.mascot-wrap.mini .mascot-fig { width: 80px; }
.notice { background: #fff8e1; border: 2px dashed #e8c35a; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check-line input { width: auto; margin-top: 5px; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; }
.foot-links a { color: inherit; }

/* 公益 */
.cause { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 20px; color: #fff; background: var(--cc, #6b7280); white-space: nowrap; }
.cause.none { background: var(--soft); color: var(--muted); font-weight: 400; }
.pledge-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 12px 16px;
  background: #fff0c9; color: #4a3407; border: 2px solid var(--line); border-radius: 14px; }
.pledge-total > div { display: flex; flex-direction: column; }
.pledge-total b { font-size: 30px; font-weight: 900; line-height: 1.2; }
.pledge-total .muted { color: #6b5a3a; }
.cause-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cause-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--card); border: 2px solid var(--line); border-left: 8px solid var(--cc); border-radius: 12px; padding: 8px 10px; }
.cause-btn b { font-size: 16px; }
.cause-btn small { font-size: 12px; line-height: 1.4; }
.cause-btn:hover { background: var(--soft); }
.cause-btn.on { background: var(--cc); color: #fff; }
.cause-btn.on .muted { color: rgba(255, 255, 255, .85); }
.pledge-row { border-top: 1px dashed var(--soft); padding-top: 6px; margin-top: 6px; }
.row.donation { align-items: flex-end; margin: 4px 0 8px 12px; }

/* 勳章與戰績 */
.medal-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0; }
.medal { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  background: var(--card); border: 2px solid var(--mc); border-radius: 14px; padding: 8px 10px; }
.medal-icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; background: var(--mc); display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55); }
.medal b { font-size: 14px; line-height: 1.3; }
.medal small { font-size: 11px; line-height: 1.35; color: var(--muted); }
.medal.locked { border-style: dashed; border-color: var(--soft); opacity: .75; }
.medal.locked .medal-icon { background: var(--soft); filter: grayscale(1); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.stat-grid > div { background: var(--soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.stat-grid b { font-size: 26px; font-weight: 900; line-height: 1.2; }
.stat-grid span { font-size: 12px; color: var(--muted); }
.new-medals { margin: 10px 0; text-align: left; }
.share-btns { margin-top: 14px; }
.card-box { margin-top: 10px; }
.card-box img { width: 100%; max-width: 360px; border: 2px solid var(--line); border-radius: 12px; display: block; margin: 0 auto 8px; }
a.plink { color: inherit; text-decoration: none; }
a.plink:hover { text-decoration: underline; }
