/* 一步一杯 —— 深色木吧台 + 奶油色杯垫 */
:root {
  --bg: #170f0a;
  --wood1: #4b2d1b;
  --wood2: #2c1a10;
  --panel: #231610;
  --panel2: #2f2016;
  --line: #4a3324;
  --text: #f7ecd6;
  --dim: #bfa88c;
  --cream: #f7ecd6;
  --cream2: #eadbbd;
  --cream3: #dcc8a2;
  --ink: #2a1a0f;
  --ink2: #6b5440;
  --amber: #f2b53a;
  --red: #e5534b;
  --teal: #23b5a5;
  --pink: #d6589f;
  --violet: #8a6cf0;
  --sky: #3f9be8;
  --green: #55c271;
  --bronze: #c99257;
  --title: "ZCOOL QingKe HuangYou", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--body);
  font-size: 17px; line-height: 1.5;
  min-height: 100dvh;
  -webkit-user-select: none; user-select: none;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; padding: 0; }
input, textarea { font: inherit; -webkit-user-select: text; user-select: text; }
h1, h2, h3, .ttl { font-family: var(--title); font-weight: 400; margin: 0; letter-spacing: 1px; }
a { color: var(--amber); }

/* ---------- 按钮 ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 10px 18px;
  border-radius: 16px; font-size: 20px; font-weight: 700;
  background: var(--panel2); color: var(--text);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
  transition: transform .08s, filter .15s, opacity .15s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.amber { background: var(--amber); color: #2b1700; }
.btn.green { background: var(--green); color: #052611; }
.btn.red { background: var(--red); color: #2c0303; }
.btn.violet { background: var(--violet); color: #fff; }
.btn.ink { background: var(--ink); color: var(--cream); }
.btn.ghost { background: transparent; border: 2px solid currentColor; box-shadow: none; opacity: .75; }
.btn.sm { min-height: 44px; font-size: 16px; border-radius: 12px; padding: 6px 12px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 棋子 ---------- */
.tok {
  --s: 28px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  color: #fff; font-weight: 800; font-size: calc(var(--s) * .5); line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .55);
}

.dim { color: var(--dim); }
.small { font-size: 14px; }

/* ====================================================================
   首页 / 结算
   ==================================================================== */
body[data-view="home"], body[data-view="end"] {
  background:
    radial-gradient(120% 60% at 50% -5%, #4a2a17 0%, transparent 62%),
    radial-gradient(90% 50% at 100% 100%, #2b1810 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.home, .end { max-width: 520px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom)); }
.hero { text-align: center; padding: 6px 0 4px; }
.logo { width: 108px; height: 108px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.hero h1 { font-size: 56px; color: var(--amber); margin-top: 4px; text-shadow: 0 4px 0 #6a3f12, 0 10px 24px rgba(0,0,0,.5); letter-spacing: 6px; }
.hero .sub { margin: 4px 0 0; color: var(--dim); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-top: 14px; }
.card h3 { font-size: 22px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card h3 .small { font-family: var(--body); letter-spacing: 0; }
.resume { display: flex; align-items: center; gap: 12px; border-color: var(--amber); }
.resume > div { flex: 1; min-width: 0; }
.resume .btn { width: auto; flex: none; padding: 6px 22px; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plist li { display: flex; align-items: center; gap: 10px; }
.plist input {
  flex: 1; min-width: 0; background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 10px 12px; font-size: 17px; outline: none;
}
.plist input:focus { border-color: var(--amber); }
.plist .x { width: 40px; height: 40px; color: var(--dim); font-size: 24px; border-radius: 10px; }
.plist .x[disabled] { opacity: .2; }
.add { width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px; border: 2px dashed var(--line); color: var(--dim); font-weight: 700; }
.opt { display: flex; align-items: center; gap: 12px; }
.opt + .opt-note + .opt { margin-top: 12px; }
.opt > span { width: 40px; color: var(--dim); font-size: 15px; flex: none; }
.seg { flex: 1; display: flex; background: var(--panel2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 9px; color: var(--dim); font-weight: 700; transition: background .15s, color .15s; }
.seg button.on { background: var(--amber); color: #2b1700; }
.opt-note { margin: 6px 0 0 52px; font-size: 13px; color: var(--dim); line-height: 1.5; }
.btn.big { min-height: 66px; font-size: 26px; font-family: var(--title); font-weight: 400; letter-spacing: 3px; margin-top: 18px; border-radius: 20px; box-shadow: 0 5px 0 #a8741c; }
.link { display: block; margin: 14px auto 0; color: var(--dim); text-decoration: underline; text-underline-offset: 4px; padding: 6px 12px; }
footer { margin-top: 26px; text-align: center; color: #8d7760; font-size: 13px; line-height: 2; }
footer a { color: var(--dim); }

/* ====================================================================
   棋盘页
   ==================================================================== */
body[data-view="game"] { background: #120b07; overflow: hidden; }
.game {
  height: 100dvh; max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "bar" "status" "board" "panel";
}
.bar {
  grid-area: bar; display: flex; align-items: center; gap: 8px;
  padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
}
.ib { width: 42px; height: 42px; border-radius: 12px; background: var(--panel2); font-size: 20px; flex: none; }
.bar-t { flex: 1; text-align: center; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.bar-t .ttl { font-size: 24px; color: var(--amber); letter-spacing: 3px; }
.bar-t .round { color: var(--dim); font-size: 14px; }
.status { grid-area: status; display: flex; gap: 6px; padding: 0 10px 6px; overflow-x: auto; scrollbar-width: none; }
.status::-webkit-scrollbar { display: none; }
.status[hidden] { display: none; }
.pill { display: flex; align-items: center; gap: 6px; flex: none; max-width: 100%; background: var(--panel2); border-radius: 12px; padding: 5px 6px 5px 10px; font-size: 14px; white-space: nowrap; }
.pill.rule { flex: 1 0 auto; max-width: none; border: 1px solid #6b4b2a; }
.pill.rule .pt { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.pill.rule button { background: var(--bronze); color: #2a1503; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 9px; flex: none; }
.pill.buddy { padding-right: 10px; color: var(--dim); }

.board-wrap { grid-area: board; position: relative; min-height: 0; min-width: 0; overflow: hidden; }
.board {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: calc(var(--cell) * .35);
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(255, 210, 150, .10), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 27px),
    repeating-linear-gradient(88deg, rgba(0, 0, 0, .06) 0 3px, transparent 3px 61px),
    linear-gradient(180deg, #5b3721, #3e2516);
  box-shadow: 0 0 0 3px #26160c, 0 0 0 6px #6b4528, 0 18px 40px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .08);
}
.road { position: absolute; inset: 0; pointer-events: none; }
.road polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.road .r1 { stroke: rgba(20, 10, 4, .42); }
.road .r2 { stroke: rgba(247, 236, 214, .22); }

.tile { position: absolute; width: var(--cell); height: var(--cell); display: grid; place-items: center; }
.cs {
  width: 86%; height: 86%; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink);
  background: radial-gradient(circle at 50% 38%, #fffaf0 0%, var(--cream) 55%, var(--cream2) 100%);
  border: calc(var(--cell) * .07) solid var(--cc);
  box-shadow: 0 calc(var(--cell) * .05) 0 rgba(0, 0, 0, .4), inset 0 0 0 calc(var(--cell) * .025) rgba(255, 255, 255, .7), inset 0 0 0 calc(var(--cell) * .045) rgba(120, 80, 30, .12);
  transition: transform .2s;
}
.ti { font-size: calc(var(--cell) * .28); line-height: 1.05; }
.tt { font-size: max(8.5px, calc(var(--cell) * .15)); font-weight: 800; line-height: 1.1; white-space: nowrap; letter-spacing: -.3px; margin-top: 1px; }
.c-start .cs, .c-end .cs { background: radial-gradient(circle at 50% 38%, #ffe7a6, var(--amber) 70%, #d89520); border-color: #fff4d6; }
.c-start .tt, .c-end .tt { font-size: max(10px, calc(var(--cell) * .17)); }
.tile:active .cs { transform: scale(.94); }
.tile.hit .cs { transform: scale(1.12); animation: glow .9s ease-in-out infinite alternate; z-index: 3; }
.tile.hit { z-index: 3; }
@keyframes glow { to { box-shadow: 0 0 0 calc(var(--cell) * .05) #fff, 0 0 calc(var(--cell) * .45) calc(var(--cell) * .1) var(--cc); } }

.ptok { position: absolute; left: 0; top: 0; transition: transform .19s cubic-bezier(.3, .7, .4, 1.2); pointer-events: none; will-change: transform; }
.ptok .tok { transition: width .2s, height .2s; }
.ptok.cur .tok { animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.55), 0 0 0 4px rgba(255,255,255,.9), 0 0 14px 5px var(--c); } }
.ptok.hop .tok { animation: hop .2s ease-out; }
@keyframes hop { 40% { transform: translateY(-38%) scale(1.12); } }

.bigdie {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  z-index: 20; pointer-events: none; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .6));
}
.bigdie svg { width: 100%; height: 100%; }
.bigdie b {
  position: absolute; right: -14px; bottom: -14px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: #2b1700; font: 30px var(--title);
  box-shadow: 0 3px 0 #8a5a12;
}
.bigdie.spin { animation: spin .63s linear; }
.bigdie.done { animation: thud .25s ease-out; }
.bigdie.out { opacity: 0; transform: scale(.6); transition: .2s; }
@keyframes spin { from { transform: rotate(0) scale(.5); } 50% { transform: rotate(300deg) scale(1.1); } to { transform: rotate(720deg) scale(1); } }
@keyframes thud { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }

.panel {
  grid-area: panel; background: var(--panel); border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 9px;
}
.turn { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.tw { min-width: 0; }
.tn { font-size: 18px; line-height: 1.25; }
.tn b { font-size: 20px; }
.tb { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roll {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 62px; border-radius: 18px;
  background: linear-gradient(180deg, #ffc955, var(--amber)); color: #2b1700;
  font: 28px var(--title); letter-spacing: 4px;
  box-shadow: 0 5px 0 #a8741c, 0 8px 18px rgba(0, 0, 0, .35);
  transition: transform .08s, opacity .2s;
}
.roll:active { transform: translateY(4px); box-shadow: 0 1px 0 #a8741c; }
.roll[disabled] { opacity: .55; pointer-events: none; }
.roll .die { width: 42px; height: 42px; display: block; }
.roll .die svg { width: 100%; height: 100%; display: block; }
.roll.rolling .die { animation: shake .14s linear infinite; }
@keyframes shake { 25% { transform: rotate(-14deg) translateY(-2px); } 75% { transform: rotate(14deg) translateY(2px); } }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--panel2);
  font-size: 14px; white-space: nowrap; border: 2px solid transparent;
}
.chip.cur { border-color: var(--amber); }
.chip .cm { color: var(--dim); font-size: 12px; }

/* 横屏 / 平板 / 电脑:棋盘在左,面板在右 */
@media (min-aspect-ratio: 1/1) and (min-width: 700px) {
  .game {
    max-width: 1400px;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "bar bar" "board status" "board panel";
  }
  .status { flex-direction: column; overflow: visible; padding: 4px 12px 8px 0; }
  .pill { white-space: normal; }
  .pill.rule { flex: none; }
  .panel { border-radius: 20px; border: 1px solid var(--line); margin: 0 12px 12px 0; justify-content: flex-start; align-self: start; max-height: calc(100% - 12px); overflow-y: auto; }
}
@media (min-aspect-ratio: 1/1) and (min-width: 700px) and (min-height: 600px) {
  .chips { flex-direction: column; overflow: visible; }
  .chip { border-radius: 14px; }
  .chip .cm { margin-left: auto; }
}
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .roll { min-height: 50px; font-size: 22px; }
  .bar { padding-top: 4px; padding-bottom: 2px; }
}

/* ====================================================================
   弹窗卡片
   ==================================================================== */
.sheet-back {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 5, 2, .5);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s;
}
.sheet-back[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  --cc: var(--amber);
  width: min(100%, 460px); max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--cream); color: var(--ink);
  border-radius: 24px 24px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .55);
  animation: up .28s cubic-bezier(.2, .9, .3, 1.15);
}
.sheet.flip { animation: flip .32s ease-out; }
@keyframes up { from { transform: translateY(60%); opacity: .4; } }
@keyframes flip { from { transform: perspective(900px) rotateY(-70deg); opacity: .3; } }
@media (min-width: 700px) {
  .sheet-back { align-items: center; }
  .sheet { border-radius: 24px; }
}
.sh-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px 12px; background: var(--ink); color: var(--cream);
  border-bottom: 6px solid var(--cc);
}
.sh-ic {
  width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 28px; background: var(--cream); border: 5px solid var(--cc);
}
.sh-tt { flex: 1; min-width: 0; }
.sh-k { color: var(--cc); font-size: 13px; font-weight: 700; letter-spacing: 1px; filter: brightness(1.15); }
.sh-head h2 { font-size: 27px; line-height: 1.15; overflow-wrap: anywhere; }
.sh-who { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--cream2); flex: none; max-width: 70px; }
.sh-who span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-body { padding: 16px 18px 4px; }
.sh-body:empty { display: none; }
.sh-d { font-size: 19px; line-height: 1.6; margin: 0 0 12px; font-weight: 600; }
.sh-d.big { font-size: 22px; line-height: 1.55; }
.sh-msg { background: var(--cream2); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font-weight: 700; }
.sh-q { margin: 4px 0 10px; font-weight: 800; color: var(--ink2); }
.sh-act { padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.sh-act .row .btn { font-size: 18px; }
.sheet .btn { box-shadow: 0 4px 0 rgba(42, 26, 15, .35); }
.sheet .btn.ink { background: var(--ink); color: var(--cream); }

.drinks { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.drinks li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 16px; background: #fff8ea; border: 2px solid var(--cream3);
  animation: pop .3s backwards;
}
.drinks li:nth-child(2) { animation-delay: .06s; } .drinks li:nth-child(3) { animation-delay: .12s; }
.drinks li:nth-child(4) { animation-delay: .18s; } .drinks li:nth-child(n+5) { animation-delay: .24s; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.dw { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dw b { font-size: 18px; }
.dw small { color: var(--ink2); font-size: 12px; }
.dn { font-size: 22px; font-weight: 900; color: #b45a12; white-space: nowrap; }
.sbtn { font-size: 13px; font-weight: 700; padding: 7px 10px; border-radius: 999px; background: var(--green); color: #052611; white-space: nowrap; }
.drinks li.shielded { background: #eaf7ee; border-color: #a7dcb6; }
.drinks li.shielded .dn { text-decoration: line-through; opacity: .35; }
.drinks li.waived { opacity: .45; }
.drinks li.waived .dn { text-decoration: line-through; }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-bottom: 8px; }
.pk {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px 10px; border-radius: 16px; background: #fff8ea; border: 2px solid var(--cream3);
  font-weight: 800; font-size: 15px; transition: transform .1s;
}
.pk span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk:active { transform: scale(.95); }
.pk.on { border-color: #d48a12; background: #ffe7ad; }

.rule-in {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--cream3);
  background: #fff; color: var(--ink); font-size: 18px; outline: none;
}
.rule-in:focus { border-color: var(--bronze); }
.sugs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.sug { padding: 7px 11px; border-radius: 999px; background: var(--cream2); font-size: 14px; font-weight: 600; }
.sug:active { background: var(--cream3); }

.stats { list-style: none; margin: 0; padding: 0; }
.stats li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--cream3); }
.stats li span { color: var(--ink2); }
.how { margin: 0 0 12px; padding-left: 22px; line-height: 1.65; font-size: 16px; }
.how li { margin-bottom: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--cc); background: #fff; }
.note { font-size: 13px; color: var(--ink2); margin: 0 0 6px; }
.sheet.gaming .sh-body { padding-bottom: 16px; }

.toast {
  position: fixed; left: 50%; top: calc(58px + env(safe-area-inset-top)); z-index: 60;
  transform: translate(-50%, -10px); opacity: 0; transition: .25s;
  background: rgba(20, 12, 7, .94); color: var(--cream); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 999px; font-weight: 700; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 结算 ---------- */
.end { text-align: center; }
.trophy { font-size: 80px; animation: bob 2.4s ease-in-out infinite; margin-top: 10px; }
.end h1 { font-size: 44px; color: var(--amber); text-shadow: 0 4px 0 #6a3f12; }
.end .card { text-align: left; }
.ranks, .bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ranks li { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.ranks li i { width: 26px; text-align: center; font-style: normal; color: var(--dim); font-size: 16px; }
.ranks li b { font-size: 17px; flex: 1; }
.ranks li .rp { color: var(--dim); font-size: 14px; }
.bars li { display: grid; grid-template-columns: auto 4.5em 1fr auto; align-items: center; gap: 8px; }
.bars b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbar { height: 14px; background: var(--panel2); border-radius: 7px; overflow: hidden; }
.dbar i { display: block; height: 100%; border-radius: 7px; min-width: 4px; animation: grow .8s ease-out backwards; }
@keyframes grow { from { width: 0 !important; } }
.bars em { font-style: normal; font-size: 14px; color: var(--dim); min-width: 3.4em; text-align: right; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.awards div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; background: var(--panel2); border-radius: 14px; padding: 10px 6px; }
.awards span { font-size: 28px; }
.awards small { color: var(--dim); font-size: 12px; }
.end .btn.ghost { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
