@font-face { font-family: "Cubic"; src: url("assets/Cubic_11.woff2") format("woff2"); font-display: swap; }
:root { --navy:#27466b; --navy2:#1c3350; --dark:#0c1622; --cream:#fff6dc; --ink:#3a2a14; --muted:#6b5a3a; --gold1:#ffd76a; --gold2:#f0a020; --edge:#8a5412; --good:#2f8f3b; --bad:#c2453b; --sky:#6fb2f2; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #14202f; }
body { font-family: "Cubic", "PingFang TC", sans-serif; color: var(--ink); }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
#app { max-width: 430px; min-height: 100%; margin: 0 auto; position: relative; padding-bottom: 20px; background: var(--navy);
  background-image: linear-gradient(var(--navy2) 2px, transparent 2px), linear-gradient(90deg, var(--navy2) 2px, transparent 2px); background-size: 24px 24px; }
.px { border: 4px solid var(--ink); box-shadow: inset -4px -4px 0 rgba(58,42,20,.22), inset 4px 4px 0 rgba(255,255,255,.55), 0 4px 0 rgba(0,0,0,.35); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 6px; color: var(--cream); font-size: 15px; min-height: 40px; }
.top b { font-weight: normal; color: var(--gold1); }
.ava { --s: 5; --o: 0; width: calc(16px * var(--s)); height: calc(22px * var(--s)); margin: 0 auto; image-rendering: pixelated; background-repeat: no-repeat; background-color: transparent;
  background-size: calc(96px * var(--s)) auto; background-position-y: calc((var(--o) * -32px - 10px) * var(--s)); background-position-x: 0; animation: idle 1s steps(6) infinite; flex: none; }
@keyframes idle { from { background-position-x: 0; } to { background-position-x: calc(-96px * var(--s)); } } }
.ava.hop { animation: idle 1s steps(6) infinite, hop .45s; } .ava.shake { animation: idle 1s steps(6) infinite, shake .4s; }
@keyframes hop { 40% { transform: translateY(-16px); } } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.rank { display: inline-block; background: var(--gold1); color: var(--ink); border: 2px solid var(--ink); padding: 0 6px; font-size: 12px; margin-top: 2px; }
.rank.b { background: #bfe0ff; }
.btn { display: block; width: 100%; color: var(--ink); font-family: inherit; background: var(--gold1); padding: 12px 10px 14px; font-size: 21px; text-align: center; }
.btn:active { transform: translateY(3px); box-shadow: inset -4px -4px 0 rgba(58,42,20,.22), inset 4px 4px 0 rgba(255,255,255,.55); }
.btn.blue { background: #bfe0ff; } .btn.cream { background: var(--cream); } .btn.small { font-size: 15px; padding: 6px 8px 8px; width: auto; display: inline-block; }
.btn small { display: block; font-size: 13px; color: var(--muted); }
/* 首頁 */
.home { padding: 6px 14px; text-align: center; color: var(--cream); }
.home h1 { font-size: 34px; font-weight: normal; margin: 8px 0 0; color: var(--gold1); text-shadow: 4px 4px 0 var(--dark); letter-spacing: 2px; }
.home .sub { font-size: 14px; margin-bottom: 8px; color: #cfe0f5; }
.me { background: rgba(12,22,34,.5); border: 3px solid var(--ink); padding: 10px 10px 12px; margin: 8px 0 12px; }
.me input { font: inherit; font-size: 20px; text-align: center; width: 150px; background: var(--cream); border: 3px solid var(--ink); padding: 2px 4px; color: var(--ink); outline: none; }
.me .pts { font-size: 13px; color: #cfe0f5; margin-top: 4px; }
.pbar { height: 12px; background: var(--dark); border: 3px solid var(--ink); margin: 4px 30px 0; } .pbar i { display: block; height: 100%; background: var(--gold2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 12px; }
.chip { border: 3px solid var(--ink); background: #556b85; color: var(--cream); padding: 2px 10px 4px; font-size: 15px; } .chip.on { background: #8fd18f; color: var(--ink); }
.stack { display: grid; gap: 12px; }
.note { font-size: 12px; color: #a9bfd8; margin-top: 12px; line-height: 1.5; }
/* 對決 */
.vs { display: grid; grid-template-columns: 1fr 76px 1fr; align-items: end; padding: 0 10px; }
.who { text-align: center; color: var(--cream); font-size: 14px; position: relative; }
.who .name { font-size: 17px; }
.who .done { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); background: var(--cream); color: var(--ink); border: 2px solid var(--ink); font-size: 12px; padding: 0 5px; }
.score { font-size: 30px; color: var(--gold1); text-shadow: 3px 3px 0 var(--dark); line-height: 1.1; }
.bar { height: 14px; background: var(--dark); border: 3px solid var(--ink); margin: 2px 6px 0; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold2); box-shadow: inset 0 -3px 0 var(--edge); transition: width .3s; }
.bar.b i { background: var(--sky); box-shadow: inset 0 -3px 0 #2a6bb0; }
.timer { width: 64px; height: 64px; margin: 0 auto 18px; background: var(--cream); display: grid; place-items: center; font-size: 32px; }
.timer.hot { background: #f6c8c0; }
.tag { display: inline-block; margin: 12px 0 0 14px; background: #8fd18f; border: 3px solid var(--ink); padding: 1px 10px 2px; font-size: 14px; }
.q { margin: 8px 12px 0; background: var(--cream); padding: 14px 14px 16px; font-size: 20px; line-height: 1.5; min-height: 100px; }
.opts { display: grid; gap: 10px; margin: 14px 12px 0; }
.opt { position: relative; background: #fff; padding: 11px 12px 13px; font-size: 19px; display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; }
.opt .k { width: 28px; height: 28px; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-size: 16px; border: 2px solid var(--ink); flex: none; }
.opt.sel { background: var(--gold1); } .opt.ok { background: #c9f0c0; } .opt.no { background: #f6c8c0; }
.opt .pick { position: absolute; right: 8px; top: -14px; background: var(--gold1); border: 2px solid var(--ink); font-size: 12px; padding: 0 6px; }
.opt .pick.b { background: #bfe0ff; } .opt .pick + .pick { right: 96px; }
.opt .pts { margin-left: auto; color: var(--good); font-size: 18px; }
.foot { padding: 12px 12px 4px; color: var(--cream); font-size: 13px; text-align: center; min-height: 58px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 6px; }
.dots i { width: 22px; height: 14px; border: 3px solid var(--ink); background: #556b85; }
.dots i.w { background: var(--gold2); } .dots i.l { background: var(--sky); } .dots i.t { background: #b8c4d2; } .dots i.now { background: var(--cream); } .dots i.x2 { outline: 2px solid var(--gold1); }
.big { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12,22,34,.72); color: var(--gold1); font-size: 96px; text-shadow: 6px 6px 0 var(--dark); z-index: 5; }
.big small { display: block; font-size: 22px; color: var(--cream); text-align: center; }
/* 結算 */
.res { padding: 8px 14px; text-align: center; color: var(--cream); }
.res h2 { font-size: 40px; font-weight: normal; margin: 6px 0; color: var(--gold1); text-shadow: 4px 4px 0 var(--dark); }
.res .delta { font-size: 18px; margin: 4px 0 10px; }
.wrong { text-align: left; background: var(--cream); color: var(--ink); padding: 10px 12px 12px; margin: 10px 0; font-size: 15px; line-height: 1.5; }
.wrong b { font-weight: normal; color: var(--good); } .wrong i { font-style: normal; color: var(--muted); display: block; }
/* 小遊戲 */
.h2 { color: var(--cream); text-align: center; font-size: 24px; margin: 4px 0 0; }
.subt { color: #cfe0f5; text-align: center; font-size: 14px; margin-bottom: 8px; min-height: 20px; }
.tbar { height: 16px; margin: 0 14px 6px; background: var(--dark); border: 3px solid var(--ink); } .tbar i { display: block; height: 100%; background: #8fd18f; box-shadow: inset 0 -3px 0 #3c8a45; }
.card { margin: 10px 14px 0; background: var(--cream); padding: 12px 12px 14px; font-size: 18px; display: flex; align-items: center; gap: 10px; touch-action: none; user-select: none; -webkit-user-select: none; position: relative; }
.card .n { width: 30px; height: 30px; background: var(--gold1); border: 2px solid var(--ink); display: grid; place-items: center; flex: none; }
.card .grip { margin-left: auto; color: var(--muted); letter-spacing: -2px; }
.card.drag { background: #fff; z-index: 3; box-shadow: inset -4px -4px 0 rgba(58,42,20,.22), inset 4px 4px 0 rgba(255,255,255,.55), 0 12px 0 rgba(0,0,0,.35); }
.card.ok { background: #c9f0c0; } .card.no { background: #f6c8c0; }
.pad { margin: 14px 14px 0; }
.stmt { margin: 14px 14px 0; background: var(--cream); padding: 22px 14px; font-size: 22px; line-height: 1.5; min-height: 150px; display: grid; place-items: center; text-align: center; }
.stmt.ok { background: #c9f0c0; } .stmt.no { background: #f6c8c0; } .stmt small { display: block; font-size: 16px; color: var(--bad); margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 14px 0; }
.two .btn { font-size: 26px; padding: 18px 0 20px; } .two .x { background: #f6c8c0; } .two .o { background: #c9f0c0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 14px 0; }
.tile { height: 74px; background: var(--navy); color: transparent; font-size: 16px; display: grid; place-items: center; text-align: center; padding: 2px; line-height: 1.2; border-color: var(--ink); }
.tile::before { content: '?'; color: var(--gold1); font-size: 28px; position: absolute; } .tile { position: relative; }
.tile.up, .tile.gone { background: var(--cream); color: var(--ink); } .tile.up::before, .tile.gone::before { content: ''; }
.tile.gone { background: #c9f0c0; opacity: .55; }
.mini2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 14px 0; }
.mini2 div { background: rgba(12,22,34,.55); border: 3px solid var(--ink); color: var(--cream); padding: 6px; font-size: 13px; text-align: center; }
.mini2 b { display: block; font-weight: normal; font-size: 24px; color: var(--gold1); }
#snd, #bk { width: 34px; height: 30px; background: var(--cream); border: 3px solid var(--ink); font-size: 16px; color: var(--ink); }

/* 心算、分類、估算 */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 14px 0; } .quad .btn { font-size: 24px; padding: 14px 6px 16px; }
.buckets { display: grid; gap: 10px; margin: 12px 14px 0; } .buckets.n2 { grid-template-columns: 1fr 1fr; } .buckets.n3 { grid-template-columns: 1fr 1fr 1fr; } .buckets.n4 { grid-template-columns: 1fr 1fr; } .buckets.n4 .btn { padding: 12px 2px 14px; } .buckets .btn { font-size: 19px; padding: 18px 2px 20px; }
.btn.ok { background: #c9f0c0; } .btn.no { background: #f6c8c0; }
.est { margin: 12px 14px 0; color: var(--cream); text-align: center; } .est .val { font-size: 26px; color: var(--gold1); min-height: 36px; } .est .val b { color: #fff; }
.est .track { position: relative; margin: 6px 6px 0; } .est .ends { display: flex; justify-content: space-between; font-size: 14px; color: #cfe0f5; margin: 2px 6px 0; }
.est input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; touch-action: none; }
.est input[type=range]::-webkit-slider-runnable-track { height: 12px; background: var(--dark); border: 3px solid var(--ink); }
.est input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 38px; margin-top: -16px; background: var(--gold1); border: 3px solid var(--ink); border-radius: 0; }
.est input[type=range]::-moz-range-track { height: 12px; background: var(--dark); border: 3px solid var(--ink); } .est input[type=range]::-moz-range-thumb { width: 22px; height: 34px; background: var(--gold1); border: 3px solid var(--ink); border-radius: 0; }
.est #mark { display: none; position: absolute; top: 2px; width: 4px; height: 40px; margin-left: -2px; background: #7dff8a; pointer-events: none; }
/* 段位表、練習、捏造型、排行榜 */
#rk { cursor: pointer; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .row2 .btn { font-size: 19px; padding: 9px 4px 11px; }
.btn:disabled { opacity: .45; }
.modal { position: fixed; inset: 0; background: rgba(8,14,24,.78); display: grid; place-items: center; z-index: 30; padding: 12px; overflow: auto; }
.modal .box { background: var(--cream); color: var(--ink); width: 100%; max-width: 380px; padding: 12px 12px 14px; max-height: 92vh; overflow: auto; }
.modal h3 { margin: 0 0 6px; font-weight: normal; font-size: 22px; text-align: center; } .rules { font-size: 14px; line-height: 1.6; margin-bottom: 8px; color: var(--muted); }
.rrow { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 8px; padding: 3px 6px; font-size: 14px; } .rrow .rank { margin: 0; text-align: center; } .rrow b { font-weight: normal; color: var(--bad); }
.rrow.me { background: var(--gold1); outline: 3px solid var(--ink); }
.promo { font-size: 26px; color: var(--gold1); text-shadow: 3px 3px 0 var(--dark); margin: 6px 0 2px; animation: hop .5s 2; }
.dl { color: var(--gold1); font-size: 16px; text-align: left; margin: 12px 2px 4px; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.dopt { background: rgba(12,22,34,.5); border: 3px solid var(--ink); padding: 4px 0 2px; } .dopt.on { background: var(--gold1); }
.bd { margin: 10px 14px 20px; } .bd .note, .home .note { color: #cfe0f5; }
.brow { display: grid; grid-template-columns: 30px 36px 1fr auto; align-items: center; gap: 8px; background: var(--cream); color: var(--ink); padding: 4px 10px 6px; margin-bottom: 8px; font-size: 17px; }
.brow.me { background: var(--gold1); } .brow .no { font-weight: normal; text-align: center; } .brow .v { font-size: 16px; }
.gbox { margin: 12px 14px 0; background: var(--cream); color: var(--ink); padding: 12px; text-align: center; font-size: 16px; }
.gbox .code { font-size: 26px; letter-spacing: 3px; font-weight: normal; } .gbox input { font: inherit; font-size: 20px; width: 120px; text-align: center; border: 3px solid var(--ink); background: #fff; color: var(--ink); padding: 2px 4px; text-transform: uppercase; }
/* 個人資料 */
.radar { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
.radar .rg { fill: none; stroke: #7f9cc0; stroke-width: 1.5; } .radar .rv { fill: rgba(255,215,106,.45); stroke: var(--gold1); stroke-width: 3; stroke-linejoin: miter; } .radar .rd { fill: var(--gold1); stroke: var(--ink); stroke-width: 1.5; }
.radar .rl { fill: var(--cream); font-size: 15px; font-family: inherit; } .radar .rs { fill: var(--gold1); font-size: 12px; font-family: inherit; }
.stbl { background: var(--cream); color: var(--ink); margin: 6px 0 0; padding: 6px 8px 8px; font-size: 15px; }
.sth, .str { display: grid; grid-template-columns: 1fr 1.6fr 1fr .8fr; gap: 6px; padding: 3px 4px; text-align: center; } .sth { color: var(--muted); font-size: 13px; border-bottom: 2px solid var(--ink); } .str.sum { border-top: 2px solid var(--ink); margin-top: 2px; }
.rank { white-space: nowrap; }
/* 矩陣 */
.mx { display: inline-grid; gap: 0 10px; vertical-align: middle; margin: 0 3px; padding: 1px 7px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); border-radius: 6px / 50%; line-height: 1.25; text-align: center; } .mx i { font-style: normal; }
/* 觀念清單 */
.clist { margin: 12px 0 0; display: grid; gap: 6px; }
.crow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; text-align: left; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); border: 3px solid var(--ink); padding: 7px 10px 9px; }
.crow .cm { font-size: 13px; white-space: nowrap; } .crow.ok { background: #c9f0c0; } .crow.ok .cm { color: var(--good); } .crow.miss { background: #f6c8c0; } .crow.miss .cm { color: var(--bad); } .crow.new .cm { color: var(--muted); }
.crow.later { opacity: .45; }

/* v16 御藍教育商標與置入 */
.lvh { margin: 0 0 6px; font-size: 14px; color: #cfe0f5; text-align: center; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px auto 8px; color: #e6efff; text-decoration: none; text-align: left; font-size: 16px; }
.brand img { width: 64px; height: 80px; }
.brand small { display: block; font-size: 12px; color: #a9bfd8; margin-top: 4px; }
.plug { display: block; margin: 14px 14px 0; padding: 10px 12px; border: 2px dashed #6f8fc0; color: #e6efff; text-decoration: none; font-size: 14px; line-height: 1.5; text-align: left; }
.adc { display: flex; gap: 12px; align-items: center; margin: 16px 14px 0; padding: 8px 12px; background: #132238; color: #e6efff; border: 3px solid var(--gold1); box-shadow: 4px 4px 0 rgba(12,22,34,.6); text-decoration: none; text-align: left; font-size: 14px; line-height: 1.45; animation: adin .45s .7s both; }
.adc img { flex: none; } .adc small { display: block; font-size: 11px; color: #9fb6d6; } .adc b { display: block; font-weight: normal; color: #ffd35c; margin-top: 2px; }
@keyframes adin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.plug b { display: block; color: #ffd35c; font-weight: normal; margin-top: 2px; }

/* v18 主持人、漫畫對話格、爆炸 */
.host { display: flex; align-items: center; gap: 8px; margin: 6px 12px 0; min-height: 70px; }
.host .hava { flex: 0 0 52px; text-align: center; color: #cfe0f5; font-size: 11px; line-height: 1; }
.host.fin { margin: 4px 14px 10px; text-align: left; }
.bub { position: relative; flex: 1; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 12px 9px; font-size: 16px; line-height: 1.35; min-height: 22px; box-shadow: 3px 3px 0 var(--dark); transform-origin: left center; }
.bub::before { content: ''; position: absolute; left: -13px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right: 12px solid var(--ink); border-left: 0; }
.bub::after { content: ''; position: absolute; left: -8px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-right: 8px solid #fff; border-left: 0; }
.bub.pop { animation: bubpop .22s; }
@keyframes bubpop { from { transform: scale(.7); } 70% { transform: scale(1.06); } to { transform: scale(1); } }
.who .say { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; font-size: 14px; padding: 2px 8px 3px; z-index: 3; animation: saypop .2s; box-shadow: 2px 2px 0 var(--dark); }
.who .say::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -6px; border: 6px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; }
.who .say.good { background: #fff3c4; } .who .say.bad { background: #e3e9f2; }
@keyframes saypop { from { transform: translateX(-50%) scale(.5); } to { transform: translateX(-50%) scale(1); } }
.boom { position: absolute; width: 0; height: 0; z-index: 9; pointer-events: none; }
.boom .star { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; background: #ffd35c; clip-path: polygon(50% 0, 61% 30%, 90% 12%, 74% 40%, 100% 50%, 74% 60%, 90% 88%, 61% 70%, 50% 100%, 39% 70%, 10% 88%, 26% 60%, 0 50%, 26% 40%, 10% 12%, 39% 30%); animation: boomstar .55s ease-out forwards; }
.boom .star.s2 { background: #ff5a4a; transform: rotate(22deg); animation: boomstar2 .55s ease-out forwards; z-index: -1; }
.boom b { position: absolute; left: -60px; width: 120px; top: -15px; text-align: center; font-weight: normal; font-size: 22px; color: var(--ink); animation: boomtxt .7s ease-out forwards; }
.boom u { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; text-decoration: none; animation: boombit .6s ease-out forwards; }
.boom.big .star { left: -90px; top: -90px; width: 180px; height: 180px; } .boom.big b { font-size: 30px; top: -20px; } .boom.big u { width: 12px; height: 12px; }
@keyframes boomstar { from { transform: scale(.2); opacity: 1; } 60% { transform: scale(1.1); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@keyframes boomstar2 { from { transform: rotate(22deg) scale(.2); opacity: 1; } 60% { transform: rotate(22deg) scale(1.3); opacity: .9; } to { transform: rotate(22deg) scale(1.5); opacity: 0; } }
@keyframes boomtxt { from { transform: scale(.4); opacity: 1; } 30% { transform: scale(1.2); } 80% { opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }
@keyframes boombit { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.quake { animation: quake .4s; }
@keyframes quake { 20% { transform: translate(-5px, 3px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, -2px); } 80% { transform: translate(3px, 2px); } }

/* v19 聲音詢問、右上角段位、結算加減分 */
.sask { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(400px, calc(100% - 24px)); box-sizing: border-box; display: flex; align-items: center; gap: 8px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--dark); padding: 8px 10px; font-size: 16px; z-index: 20; }
.sask span { flex: 1; line-height: 1.3; } .sask small { display: block; font-size: 12px; color: #6b5a3a; } .sask .btn { margin: 0; white-space: nowrap; }
.top .tr { display: flex; align-items: center; gap: 8px; }
.rankbig { background: var(--gold1); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--dark); font-family: inherit; font-size: 18px; padding: 3px 10px 4px; cursor: pointer; white-space: nowrap; }
.dd { font-size: 16px; margin-top: 2px; } .dd.up { color: #8fe08f; } .dd.dn { color: #ff9a8a; }

/* v24 長題（真題、改編題）字小一點 */
.q.long { font-size: 16px; line-height: 1.45; min-height: 0; }
.tag { max-width: calc(100% - 28px); box-sizing: border-box; }

/* v34：選學校、說明頁、好友對戰房號 */
.slist { max-height: 46vh; overflow-y: auto; background: rgba(12,22,34,.5); border: 3px solid var(--ink); padding: 6px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.slist .dl { width: 100%; } .slist .chip { font-size: 16px; padding: 4px 10px 6px; }
.help { text-align: left; } .hp { background: rgba(12,22,34,.5); border: 3px solid var(--ink); padding: 8px 12px 10px; margin: 10px 0; }
.hp h3 { margin: 0 0 4px; font-size: 19px; font-weight: normal; color: var(--gold1); } .hp p { margin: 4px 0; font-size: 15px; line-height: 1.6; color: #e6eefa; } .hp b { color: var(--gold1); font-weight: normal; }
.roomcode { font-size: 46px; letter-spacing: 6px; color: var(--gold1); text-shadow: 3px 3px 0 var(--dark); margin: 8px 0 12px; }

/* v35：金幣、商店與寵物 */
.pet { display: inline-block; position: relative; vertical-align: bottom; animation: petbreath 1.6s steps(2) infinite; transform-origin: 50% 100%; }
.pet .pl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.pet .eb, .pet .ej, .pet .es { opacity: 0; } .pet .eo { animation: peteye 4.2s steps(1) infinite; } .pet .eb { animation: petblink 4.2s steps(1) infinite; }
.petw.joy .eo, .petw.joy .eb, .petw.sad .eo, .petw.sad .eb { animation: none; opacity: 0; } .petw.joy .ej { opacity: 1; } .petw.sad .es { opacity: 1; }
@keyframes petbreath { 50% { transform: scaleY(.96); } } @keyframes peteye { 0%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } } @keyframes petblink { 0%, 92% { opacity: 0; } 93%, 100% { opacity: 1; } }
.pcard:nth-child(3n+2) .pet .eo, .pcard:nth-child(3n+2) .pet .eb { animation-delay: -1.4s; } .pcard:nth-child(3n) .pet .eo, .pcard:nth-child(3n) .pet .eb { animation-delay: -2.9s; }
.petw { display: inline-block; } .petw.hop { animation: hop .45s; }
.mepet { display: flex; justify-content: center; align-items: flex-end; gap: 4px; } .mepet .ava { margin: 0; }
.who .petw.dp { position: absolute; left: calc(50% + 32px); top: 58px; }
.coinbar { font-size: 20px; color: var(--gold1); margin: 8px 0; } .coinbar b { font-weight: normal; font-size: 26px; }
.coinline { color: var(--gold1); font-size: 17px; margin: 6px 0; } .coinline small { color: #cfe0f5; font-size: 13px; }
.cn { font-weight: normal; color: #a86a00; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 10px 0; }
.pcard { background: rgba(12,22,34,.5); border: 3px solid var(--ink); padding: 8px 2px; font-size: 15px; } .pcard.on { border-color: var(--gold1); }
.pcard .btn { margin-top: 4px; font-size: 13px; padding: 4px 6px 6px; } .pcard .btn[disabled] { opacity: .45; }
.bub2 { display: inline-block; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 2px 10px 4px; margin-top: 8px; font-size: 15px; }

/* v41：每日任務、成就、配件 */
.achline { color: #9fe0a0; font-size: 15px; margin: 4px 0; }
.qrow { display: flex; align-items: center; gap: 8px; background: rgba(12,22,34,.5); border: 3px solid var(--ink); padding: 8px 10px; margin: 8px 0; text-align: left; }
.qrow .qt { flex: 1; font-size: 16px; } .qrow small { display: block; font-size: 12px; color: #cfe0f5; margin: 2px 0 4px; } .qrow .btn[disabled] { opacity: .45; } .qok { color: #9fe0a0; font-size: 14px; }
.agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.acard { background: rgba(12,22,34,.5); border: 3px solid var(--ink); padding: 6px 8px; text-align: left; opacity: .62; } .acard.on { opacity: 1; border-color: var(--gold1); }
.achg { font-size: 15px; color: var(--gold1); text-align: left; margin: 12px 0 0; border-bottom: 2px solid rgba(255,255,255,.18); padding-bottom: 2px; } .acard .pbar { margin: 4px 0 0; height: 10px; }
.acard b { font-weight: normal; font-size: 15px; display: block; } .acard.on b { color: var(--gold1); } .acard small { display: block; font-size: 12px; color: #cfe0f5; }

/* v42：每日挑戰、戰帖 */
.btn.daily { background: #9fe0a0; } .emo { font-size: 26px; letter-spacing: 2px; margin: 8px 0 2px; }

/* v44：學校榜的列沒有頭像，少一欄 */
.brow.sch { grid-template-columns: 30px 1fr auto; padding: 6px 10px 8px; }
/* v48 雲端存檔 */
.cloudbox { text-align: center; } .cloudbox .cl { font-size: 14px; margin: 6px 0; line-height: 1.5; } .cloudbox .code { margin: 2px 0 4px; user-select: all; -webkit-user-select: all; } .cloudbox .btn.small { margin-top: 4px; }
/* v50 排行榜：暱稱下面的段位與學校、寵物榜的寵物圖 */
.brow .bsub { display: block; font-size: 12px; opacity: .78; line-height: 1.35; margin-top: 1px; } .brow .tier { font-style: normal; background: var(--ink); color: var(--gold1); padding: 0 5px 1px; margin-right: 2px; } .brow.me .tier { color: #fff; } .brow .v { text-align: right; } .brow .bpet { width: 36px; display: flex; justify-content: center; }
/* v53 求救卷軸 */
.scbar { display: flex; gap: 6px; align-items: stretch; margin: 6px 12px 0; } .scbar + .opts { margin-top: 8px; }
.scb { background: var(--gold1); border: 3px solid var(--ink); color: var(--ink); font: inherit; font-size: 14px; padding: 1px 4px 3px; display: flex; align-items: baseline; justify-content: center; gap: 4px; line-height: 1.2; flex: 1; cursor: pointer; white-space: nowrap; }
.scb small { font-size: 11px; opacity: .85; } .scb:disabled { background: #8d9aa8; color: #2b3540; opacity: .6; cursor: default; }
.scby { font-size: 10px; line-height: 1.25; color: #cfe1f5; align-self: center; text-align: right; flex: none; }
.scby2 { font-size: 12px; color: var(--navy); text-decoration: underline; }
.opt.gone { opacity: .25; text-decoration: line-through; pointer-events: none; }
.opt .poll { margin-left: auto; font-size: 14px; background: var(--navy); color: #fff; padding: 0 6px 2px; flex: none; }
.scico { width: 44px; height: 44px; margin: 4px auto; display: grid; place-items: center; background: var(--gold1); border: 3px solid var(--ink); font-size: 22px; color: var(--ink); }
.wrong .scmark { background: var(--gold1); color: var(--ink); padding: 0 5px 1px; font-size: 12px; }
/* 戰帖卡（v62）：贏了之後，結算頁按鈕上面那一張 */
.chcard { margin: 12px 0 12px; padding: 10px 12px 12px; border: 3px solid var(--gold1); background: rgba(12,22,34,.55); box-shadow: 4px 4px 0 rgba(12,22,34,.6); animation: adin .45s .5s both; }
.chcard b { display: block; font-weight: normal; font-size: 26px; color: var(--gold1); text-shadow: 3px 3px 0 var(--dark); line-height: 1.2; }
.chcard span { display: block; font-size: 15px; color: #e6efff; margin: 2px 0 8px; }

/* v66 鉤子題 */
.hookh { text-align: center; color: var(--gold1); font-size: 20px; margin: 14px 12px 4px; }
.hookg { margin: 14px 12px 0; }
.hookt { font-size: 19px; margin-bottom: 10px; color: var(--gold1); text-align: center; }
