/* Hall chrome shared by the home page and the player page. Phone first; a desktop gets a centred column.
   A light cream bakery, the same family as the games' free 'bakery' skin (web/games/cute.js), so stepping from the
   hall into a game stays in one place. The admin page keeps a dark set of these tokens (admin.html). */
:root {
  --bg: #fbf1ea;
  --bg2: #ffe4da;
  --fg: #4a2a33;
  --muted: #806369;                 /* 5:1 on white, 4.6:1 on --bg */
  --panel: #ffffff;
  --panel2: #f6e6df;
  --line: rgba(122, 62, 74, .12);   /* hairlines and quiet borders */
  --shadow: 0 4px 16px rgba(120, 60, 70, .10);
  --shadow-lg: 0 14px 44px rgba(120, 60, 70, .20);
  --dim: rgba(92, 50, 60, .30);     /* the wash behind a sheet or a card */
  --accent: #ffd34d;
  --gold: #a8650a;                  /* the accent as text on a light panel (yellow text would vanish) */
  --pink: #ff6f9c;
  --pink-ink: #c5305d;              /* pink as text */
  --ink: #7a3e5c;
  --safe-top: max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px) + var(--tg-safe-area-inset-top, 0px));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); color-scheme: light; font-family: "Fredoka", "Nunito", "M PLUS Rounded 1c", "SF Pro Rounded", -apple-system, "PingFang SC", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
body { background: radial-gradient(120% 70% at 50% 0%, var(--bg2), var(--bg) 75%); overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
/* Japanese wraps only between phrases (phrase.js puts a zero-width space there), not mid-word; a phrase longer than
   its box still breaks. Chinese keeps per-character breaks, with strict rules so 、。！ never start a line. */
html:lang(ja) { word-break: keep-all; overflow-wrap: break-word; line-break: strict; text-wrap: pretty; }
html:lang(zh) { line-break: strict; text-wrap: pretty; } /* pretty where supported: fewer one-character last lines */
html:lang(ko) { word-break: keep-all; overflow-wrap: break-word; } /* Korean wraps between words, not inside one */
:is(html, body):lang(ko) { font-family: "Fredoka", "Nunito", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", -apple-system, sans-serif; }
/* Fredoka has no Vietnamese and no ğ ş İ: those pages read in Nunito throughout rather than a mix of the two. */
:is(html, body):lang(vi), :is(html, body):lang(tr) { font-family: "Nunito", "Fredoka", "SF Pro Rounded", -apple-system, sans-serif; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
a { color: inherit; }

.col { width: 100%; max-width: 520px; margin: 0 auto; padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bottom) + 24px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 16px; background: var(--panel2); font-weight: 600; font-size: 17px; transition: transform .08s; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--ink); box-shadow: 0 4px 0 #c99a1a; }
.btn.pink { background: #ffe6ee; color: var(--pink-ink); box-shadow: inset 0 0 0 1.5px rgba(255, 111, 156, .55); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .5; box-shadow: none; }
/* Icons (web/hall/icons.js): line icons in the text's own colour and size, the candy in its colours, Mocha's face. */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex: 0 0 auto; overflow: visible; }
.ico.lead { margin-inline-end: .38em; }
.btn .ico { width: 1.12em; height: 1.12em; }
.btn > .ico.lead, .btn > .ico-mocha.lead, .tabs button > .ico.lead { margin-inline-end: 0; } /* the button's gap spaces it */
.ico-candy { width: 1.22em; height: 1.22em; vertical-align: -0.26em; }
.btn .ico-candy { width: 1.3em; height: 1.3em; }
.ico-stars { color: #f5b301; }
.btn.icon { padding: 0 11px; min-width: 40px; }
.btn.icon .ico { width: 21px; height: 21px; }
.ico-mocha { display: inline-block; flex: 0 0 auto; width: 1.55em; height: 1.55em; border-radius: 50%; vertical-align: -0.42em; background: var(--panel2) 50% 13% / 170% auto no-repeat; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--pink); }
.ico-mocha.lead { margin-inline-end: .45em; }
.ico-mocha.friend { display: inline-grid; place-items: center; font-weight: 800; line-height: 1; color: #fff; background: #c79a72; }
.ico-mocha.friend.cocoa { background: #8a5a44; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.card { background: var(--panel); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }

/* Leaderboard sheet (slides up over everything). */
.sheet { position: fixed; inset: auto 0 0 0; max-height: 80%; display: flex; flex-direction: column; background: var(--bg); border-radius: 24px 24px 0 0; padding: 14px 16px calc(var(--safe-bottom) + 16px); box-shadow: 0 -8px 40px rgba(120, 60, 70, .22); z-index: 20; animation: up .22s ease-out; }
@media (min-width: 720px) { .sheet { left: 50%; right: auto; width: 520px; transform: translateX(-50%); border-radius: 24px; bottom: 24px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.dim { position: fixed; inset: 0; background: var(--dim); z-index: 19; }
.tabs { display: flex; gap: 6px; background: var(--panel2); border-radius: 14px; padding: 4px; }
.tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border-radius: 11px; background: transparent; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--panel); color: var(--fg); box-shadow: 0 2px 6px rgba(120, 60, 70, .12); }
.tabs.many { gap: 3px; }
.tabs.many button { min-width: 0; padding: 0 4px; font-size: 14px; }
.tabs.many button .ico { display: none; } /* many tabs in a narrow place: the words alone */
.board-sub { margin: 14px 6px 2px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.board-sub:first-child { margin-top: 4px; }
.list { overflow: auto; margin-top: 10px; }
.rowline { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
.rowline .n { width: 28px; color: var(--muted); font-weight: 600; }
.rowline .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowline .s { font-weight: 700; color: var(--gold); }
.rowline.me { background: rgba(255, 211, 77, .28); border-radius: 10px; }
.toast { position: fixed; width: max-content; left: 50%; bottom: calc(var(--safe-bottom) + 80px); transform: translateX(-50%); max-width: 90vw; text-align: center; background: var(--accent); color: var(--ink); font-weight: 700; padding: 10px 16px; border-radius: 14px; z-index: 30; animation: up .2s ease-out; }
.toast.lvup { background: var(--pink); color: #fff; box-shadow: 0 6px 20px rgba(255, 111, 156, .35); } /* 甜度 level-up */
.toast.lvup .ico.lead { fill: currentColor; }

/* Desktop frame for the player page (web/hall/desk.js adds .desk on <html> at ≥1024px with a mouse).
   The game keeps its own column in the middle; the side columns are fixed so nothing scrolls. */
html.desk #app { left: 300px; right: 320px; max-width: none; margin: 0; padding-top: 16px; }
html.desk-wide #app { left: 16px; right: 336px; }
html.desk #hud { display: none; }
html.desk .sheet, html.desk .dim { display: none !important; }
html.desk #actions { padding-bottom: 20px; }
.desk-left, .desk-right { position: fixed; top: 0; bottom: 0; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 10px; -webkit-user-select: auto; user-select: auto; }
.desk-left { left: 0; width: 300px; background: var(--bg); border-right: 1px solid var(--line); }
.desk-right { right: 0; width: 320px; background: var(--bg); border-left: 1px solid var(--line); }
html.desk-wide .desk-left { display: none; }
.desk-back { color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 14px; }
.desk-back:hover { color: var(--fg); }
.desk-icon { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--panel2) center / cover no-repeat; box-shadow: var(--shadow); }
.desk-left h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.15; }
.desk-left p { margin: 0; font-size: 15px; }
.desk-left h3, .desk-right h3 { margin: 18px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.desk-left ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.desk-brand { margin-top: auto; font-size: 13px; }
.buddy + .desk-brand { margin-top: 10px; }
.desk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.desk-stats div { background: var(--panel); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.desk-stats small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.desk-stats b { font-size: 30px; }
.desk-right .list { margin-top: 6px; overflow: visible; }
.desk-empty { padding: 14px 6px; }
.desk-wide-title { margin: 0 0 4px; font-size: 22px; }
.desk-wide-howto { margin: 0 0 8px; padding-left: 20px; font-size: 14px; line-height: 1.4; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
#d-best-box.target { box-shadow: inset 0 0 0 2px var(--pink); }
#d-best-box.won { box-shadow: inset 0 0 0 2px var(--accent); }
#d-best-box.target #d-best-label, #d-best-box.won #d-best-label { color: var(--fg); text-transform: none; letter-spacing: 0; }
.desk-mute { align-self: flex-start; }
.desk-mute kbd { font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }

/* A player's card (web/hall/card.js): a sheet from the bottom on a phone, a card in the middle on a wider screen.
   Mocha in the outfit the player dressed her in, the name, four numbers, the games they play most, one action. */
.pcard-dim { position: fixed; inset: 0; background: var(--dim); z-index: 26; }
.pcard { position: fixed; inset: auto 0 0 0; z-index: 27; max-height: 90%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 16px 16px calc(var(--safe-bottom) + 18px); background: var(--bg); border-radius: 26px 26px 0 0; box-shadow: 0 -8px 40px rgba(120, 60, 70, .22); animation: up .22s ease-out; }
@media (min-width: 720px) {
  .pcard { inset: 50% auto auto 50%; width: 440px; max-height: calc(100% - 48px); padding: 18px 18px 20px; border-radius: 28px; transform: translate(-50%, -50%); box-shadow: var(--shadow-lg); animation: pc-in .2s ease-out; }
}
@keyframes pc-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); } }
.pc-close { position: absolute; top: 10px; right: 10px; z-index: 1; min-height: 36px; border-radius: 50%; color: var(--ink); }
.pc-head { display: flex; align-items: center; gap: 14px; padding: 12px; padding-inline-end: 40px; border-radius: 22px; background: linear-gradient(135deg, #ffe3ec, #fff1d6); }
.pc-pic { flex: 0 0 auto; width: 92px; height: 108px; border-radius: 18px; background: rgba(255, 255, 255, .75) 50% 5% / 152% auto no-repeat; box-shadow: inset 0 0 0 3px #fff, 0 4px 14px rgba(120, 60, 70, .16); }
.pc-who { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.pc-name { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.pc-pen { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-inline-start: 4px; vertical-align: -4px; border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--ink); }
.pc-pen .ico { width: 15px; height: 15px; }
@media (hover: hover) { .pc-pen:hover { background: #fff; } }
.pc-you { display: inline-block; vertical-align: 3px; padding: 1px 8px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; }
.pc-sub { color: var(--muted); font-size: 13px; }
/* 甜度: the level pill and its title under the name; on your own card a bar to the next level. */
.pc-sweet { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 1px 0 2px; }
.pc-lv { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.pc-lv .ico.lead { width: 12px; height: 12px; margin-inline-end: 3px; fill: currentColor; }
.pc-title { min-width: 0; color: #c2416c; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-xp { align-self: stretch; height: 7px; margin-top: 5px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(255, 111, 156, .25); overflow: hidden; }
.pc-xp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9dbb, var(--pink)); }
.pc-xp-next { color: var(--muted); font-size: 12px; }
.pc-outfit { color: var(--ink); font-size: 13px; font-weight: 600; }
.pc-friend { display: inline-flex; align-items: center; max-width: 100%; margin: 1px 0 2px; padding: 2px 9px 2px 7px; border-radius: 999px; background: #e2f5ea; color: #23744a; font-size: 12.5px; font-weight: 700; }
.pc-friend .ico.lead { width: 14px; height: 14px; margin-inline-end: 4px; }
.pc-streak { display: inline-flex; align-items: center; margin-top: 3px; padding: 3px 10px; border-radius: 999px; background: #fff; color: #d9552b; font-size: 13px; font-weight: 700; box-shadow: 0 1px 4px rgba(120, 60, 70, .1); }
.pc-say { margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--panel); font-size: 16px; line-height: 1.45; box-shadow: var(--shadow); }
.pc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pc-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); text-align: center; }
.pc-stat b { font-size: 21px; line-height: 1.1; }
.pc-stat small { color: var(--muted); font-size: 11.5px; line-height: 1.2; }
.pc-stat small .ico { display: block; margin: 0 auto 3px; width: 15px; height: 15px; color: var(--pink); }
.pc-hrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 2px 2px -6px; }
.pc-h { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.pc-games { display: flex; flex-direction: column; gap: 6px; }
.pc-game { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "art name score" "art played score"; align-items: center; column-gap: 12px; width: 100%; padding: 7px 12px 7px 7px; border-radius: 15px; background: var(--panel); box-shadow: 0 2px 8px rgba(120, 60, 70, .08); color: var(--fg); text-align: start; text-decoration: none; transition: transform .08s, box-shadow .12s; }
.pc-game:active { transform: scale(.98); }
.pc-game[disabled] { opacity: 1; cursor: default; }
.pc-game.on { background: #fff6f9; box-shadow: inset 0 0 0 2.5px var(--pink), 0 2px 10px rgba(255, 111, 156, .18); }
.pc-art { grid-area: art; width: 64px; aspect-ratio: 16 / 9; border-radius: 9px; background: var(--panel2) center / cover no-repeat; }
.pc-gname { grid-area: name; align-self: end; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-played { grid-area: played; align-self: start; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-score { grid-area: score; display: inline-flex; align-items: center; color: var(--gold); font-size: 16px; font-weight: 800; white-space: nowrap; }
.pc-score .ico.lead { width: .85em; height: .85em; margin-inline-end: .3em; }
.pc-none { margin: 0; padding: 14px 4px; text-align: center; }
.pc-hint { font-size: 12.5px; }
/* The action stays in reach at the card's foot while the games scroll under it. */
.pc-actions { position: sticky; z-index: 1; bottom: calc(-18px - var(--safe-bottom)); display: flex; flex-wrap: wrap; gap: 8px; margin: -4px -16px calc(-18px - var(--safe-bottom)); padding: 12px 16px calc(18px + var(--safe-bottom)); background: linear-gradient(rgba(251, 241, 234, 0), var(--bg) 12px); }
@media (min-width: 720px) { .pc-actions { bottom: -20px; margin: -4px -18px -20px; padding: 12px 18px 20px; } }
@media (max-height: 700px) { .pc-pic { width: 76px; height: 90px; border-radius: 16px; } .pc-name { font-size: 20px; } .pcard { gap: 12px; } .pc-stat { padding: 8px 4px 7px; } .pc-stat b { font-size: 19px; } }
.pc-actions:empty { display: none; }
.pc-actions > .btn { flex: 1 1 auto; text-decoration: none; }
.pc-go { min-width: 0; text-align: center; line-height: 1.2; padding-top: 6px; padding-bottom: 6px; }
.pc-target { flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .6); font-size: 14px; font-weight: 800; }
.pc-input { flex: 1 1 140px; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); }
.pc-input:focus { outline: 2px solid var(--pink); outline-offset: -1px; }
.pc-input.bad { animation: pc-shake .3s; }
@keyframes pc-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pc-gone { margin: 30px 10px; text-align: center; }
.pcard.loading .pc-wait { height: 250px; border-radius: 22px; background: linear-gradient(100deg, var(--panel2) 30%, #fff 50%, var(--panel2) 70%) 0 0 / 300% 100%; animation: pc-shine 1.1s linear infinite; }
@keyframes pc-shine { to { background-position: -150% 0; } }
@media (hover: hover) { .pc-game:not([disabled]):hover { box-shadow: 0 4px 14px rgba(120, 60, 70, .16); } .pc-game.on:hover { box-shadow: inset 0 0 0 2.5px var(--pink), 0 4px 14px rgba(255, 111, 156, .22); } }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard.loading .pc-wait { animation: none; } }
/* What opens a card: a name on a leaderboard, a seat at a table. */
.pc-link { cursor: pointer; }
.rowline.pc-link:focus-visible, .seat.pc-link:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
@media (hover: hover) { .rowline.pc-link:hover { background: rgba(255, 111, 156, .08); border-radius: 10px; } .rowline.me.pc-link:hover { background: rgba(255, 211, 77, .38); } }

/* The candy centre (web/hall/wallet.js): what the wallet opens. A sheet from the bottom on a phone, a card in the middle
   on a wider screen, like a player's card. The balance (and Mocha's closet) on a warm card at the top, today's budget as
   a gold bar, 甜度 as the pink one, then the ways to earn and the last days' candy. */
.wl-dim { position: fixed; inset: 0; background: var(--dim); z-index: 26; }
.wl { position: fixed; inset: auto 0 0 0; z-index: 27; max-height: 90%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 16px 16px calc(var(--safe-bottom) + 20px); background: var(--bg); border-radius: 26px 26px 0 0; box-shadow: 0 -8px 40px rgba(120, 60, 70, .22); animation: up .22s ease-out; -webkit-user-select: none; user-select: none; }
@media (min-width: 720px) {
  .wl { inset: 50% auto auto 50%; width: 460px; max-height: calc(100% - 48px); padding: 18px 18px 22px; border-radius: 28px; transform: translate(-50%, -50%); box-shadow: var(--shadow-lg); animation: pc-in .2s ease-out; }
}
.wl-close { position: absolute; top: 10px; right: 10px; z-index: 1; min-height: 36px; border-radius: 50%; color: var(--ink); }
.wl-bal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 14px 12px; border-radius: 22px; background: linear-gradient(135deg, #fff1c4, #ffe3ec); }
.wl-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); opacity: .8; }
.wl-coins { display: inline-flex; align-items: center; gap: 6px; font-size: 32px; line-height: 1.1; color: var(--fg); font-variant-numeric: tabular-nums; }
.wl-coins .ico-candy { width: 34px; height: 34px; vertical-align: 0; }
.wl-closet { flex: 0 0 auto; margin-inline-end: 34px; align-self: flex-start; background: rgba(255, 255, 255, .8); }
.wl-today { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 2px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .72); }
.wl-today-line { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; font-size: 15px; font-weight: 700; color: var(--fg); }
.wl-plus { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.wl-plus .ico-candy { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.wl-bar { height: 10px; border-radius: 999px; background: #f6e6d4; box-shadow: inset 0 0 0 1px rgba(232, 176, 30, .25); overflow: hidden; }
.wl-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffe08a, #ffc93c 60%, #f5a623); transition: width .5s ease-out; }
.wl-today.full .wl-bar i { background: linear-gradient(90deg, #ffc93c, #ff9dbb); }
.wl-full { display: flex; align-items: center; gap: 7px; margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--pink-ink); }
.wl-hint { margin: 0; font-size: 12.5px; line-height: 1.4; }
.wl-tick { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--pink); color: #fff; }
.wl-tick .ico { width: 12px; height: 12px; stroke-width: 3.5; }
.wl-sweet { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.wl-sweet-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wl-sweet-top .pc-title { flex: 1 1 auto; }
.wl-sweet-name { flex: 0 0 auto; font-size: 12px; font-weight: 600; }
.wl-xp { margin-top: 2px; background: #fdeef3; }
.wl-sweet-notes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.wl-next-title { color: #c2416c; font-size: 12px; font-weight: 600; }
.wl-h { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.wl-ways { display: flex; flex-direction: column; gap: 8px; }
.wl-ways > .wl-h { margin: 2px 2px 0; }
.wl-list { display: flex; flex-direction: column; padding: 4px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.wl-way { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 8px 8px 6px; border-radius: 15px; background: none; text-align: start; color: inherit; }
.wl-way + .wl-way::before { content: ''; position: absolute; top: 0; left: 54px; right: 8px; height: 1px; background: var(--line); }
.wl-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.wl-ic .ico { width: 20px; height: 20px; }
.wl-ic .ico-candy { width: 24px; height: 24px; vertical-align: 0; }
.wl-ic.pink { background: #ffe6ee; color: var(--pink-ink); }
.wl-ic.gold { background: #fff3cf; color: var(--gold); }
.wl-ic.mint { background: #e2f5ea; color: #23744a; }
.wl-ic.blue { background: #e4efff; color: #2f63b8; }
.wl-ic.stars { background: #fff6d6; color: #f5b301; }
.wl-ic.grey { background: var(--panel2); color: var(--muted); }
.wl-words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-words b { font-size: 15px; line-height: 1.25; }
.wl-words small { font-size: 12.5px; line-height: 1.35; }
.wl-words small .ico-candy { width: 1.15em; height: 1.15em; vertical-align: -0.22em; }
.wl-side { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 800; font-size: 15px; white-space: nowrap; }
.wl-side .ico-candy { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.wl-count { font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 700; font-size: 14px; }
.wl-extra { padding: 1px 7px; border-radius: 999px; background: #e2f5ea; color: #23744a; font-size: 11px; font-weight: 700; }
.wl-go { width: 16px; height: 16px; color: var(--muted); opacity: .6; }
.wl-way.done .wl-words b { color: var(--muted); }
.wl-way.done .wl-ic { filter: saturate(.55); opacity: .8; }
@media (hover: hover) { .wl-way:hover { background: var(--panel2); } .wl-way:hover::before, .wl-way:hover + .wl-way::before { opacity: 0; } }
.wl-hist { display: flex; flex-direction: column; gap: 8px; }
.wl-hrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 0; }
.wl-hrow small { font-size: 12px; }
.wl-day { padding: 4px 12px 2px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.wl-dayh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px 6px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.wl-net { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-variant-numeric: tabular-nums; }
.wl-net.neg { color: var(--muted); }
.wl-net .ico-candy { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.wl-row { display: flex; align-items: center; gap: 12px; padding: 8px 2px; }
.wl-row + .wl-row { border-top: 1px solid var(--line); }
.wl-row .wl-ic { width: 40px; height: 40px; }
.wl-art { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: var(--panel2) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(122, 62, 74, .08); }
.wl-row .wl-words b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-row .wl-words small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-row.k-other .wl-words small { white-space: normal; }
.wl-n { flex: 0 0 auto; font-size: 16px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.wl-n.neg { color: var(--muted); font-weight: 700; }
.wl-n { display: inline-flex; align-items: center; gap: 8px; }
.wl-held { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 14px; font-weight: 700; }
.wl-held .ico { width: 14px; height: 14px; }
.wl .nowrap { white-space: nowrap; }
.wl-empty { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; }
.wl-empty .ico-candy { width: 28px; height: 28px; flex: 0 0 auto; vertical-align: 0; }
.wl-gone { margin: 20px 10px; text-align: center; }
.wl.loading .wl-wait { height: 320px; border-radius: 22px; background: linear-gradient(100deg, var(--panel2) 30%, #fff 50%, var(--panel2) 70%) 0 0 / 300% 100%; animation: pc-shine 1.1s linear infinite; }
@media (max-width: 374px) { .wl-coins { font-size: 28px; } .wl-coins .ico-candy { width: 30px; height: 30px; } .wl-way { gap: 10px; } .wl-ic { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .wl, .wl.loading .wl-wait, .wl-bar i { animation: none; transition: none; } }
/* Your own card's way into it, under the four numbers. */
.pc-wl { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 -2px; padding: 6px 12px; border-radius: 999px; background: none; color: var(--gold); font-size: 14px; font-weight: 700; }
.pc-wl .ico-candy { width: 1.25em; height: 1.25em; vertical-align: 0; }
.pc-wl .ico-chevron-right { width: 15px; height: 15px; opacity: .7; }
@media (hover: hover) { .pc-wl:hover { background: #fff3cf; } }
