/* Support UI: characters first, one ledger, one primary action. */
.support-note {font-size:12px;color:#587168;line-height:1.65}
.result .you {white-space:nowrap;min-width:32px}
.support-receipt {margin:0 0 14px;padding:16px;border-radius:18px;background:#fff0e3;text-align:left}
.support-receipt h3 {font-size:18px;margin:0 0 10px;color:#294d53}
.support-receipt ul {list-style:none;padding:0;margin:10px 0}
.support-receipt li {display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:13px}
.support-receipt .receipt-total {display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e6cbb2;padding-top:10px}
.receipt-total strong {font-size:26px;color:#c4516a}
.support-board {position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#284c4677;display:flex;align-items:center;justify-content:center;padding:16px}
.support-board[hidden] {display:none}
.support-board-card {background:#fffdf4;border-radius:24px;padding:24px;width:480px;max-width:100%;max-height:90vh;overflow:auto}
.support-board table {width:100%;border-collapse:collapse;margin:16px 0}
.support-board th,.support-board td {padding:8px;text-align:left;border-bottom:1px solid #dde5d6;font-size:14px}
#supportHud {background:#fffdf4e8;border-radius:14px;padding:8px 12px;font-size:13px;color:#5f8076;margin-bottom:12px}
.follow-switch {position:absolute;right:12px;bottom:12px;z-index:6;display:flex;align-items:center;gap:10px;min-height:46px;padding:8px 14px;border:2px solid #9ec8b5;border-radius:18px;background:#fffdf4f5;color:#2c6457;box-shadow:0 3px 0 #42756633;cursor:pointer}
.follow-switch[hidden] {display:none}
.follow-switch span {font-size:12px;color:#657f6e}
.follow-switch strong {font-size:14px}
.follow-switch:focus-visible {outline:3px solid #1b8e9a;outline-offset:3px}
#mobileRankList li {cursor:pointer}

/* v1.3.3 — a content-sized selection dialog above the live map. */
[data-bilibili-only][hidden] {display:none!important}
#picker {
  --ui-ink:#34472d;--ui-paper:#fff4d7;--ui-field:#d2e5a3;
  --ui-leaf:#45633b;--ui-sun:#ffd452;--ui-rust:#be523a;--ui-heart:#ed7258;
  position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;padding:24px;
  background:rgba(28,48,36,.36);backdrop-filter:blur(2px);align-items:center;justify-content:center;
  font-family:'Arial Rounded MT Bold','Microsoft YaHei','PingFang SC',sans-serif;
}
#picker .picker-card {display:flex;flex-direction:column;width:1120px;max-width:100%;height:auto;max-height:100%;min-height:0;padding:0;border:3px solid var(--ui-paper);border-radius:26px;overflow:hidden;isolation:isolate;background:var(--ui-field);box-shadow:0 18px 60px #17332555;text-align:left}
#picker .support-header {position:relative;z-index:1;flex:none;padding:20px 38px 18px;margin:0;border:0;background:var(--ui-paper)}
#picker .support-header::after {content:'';position:absolute;z-index:-1;bottom:-12px;left:-5%;width:110%;height:30px;background:var(--ui-paper);border-radius:0 0 50% 50%}
#picker .support-topline {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
#picker .picker-logo {width:190px!important;max-width:32%;height:auto;margin:0!important;filter:none}
#picker .support-session {display:flex;align-items:center;gap:20px;font-size:16px;color:var(--ui-ink);font-weight:800}
#picker #supportRound {white-space:nowrap;font-variant-numeric:tabular-nums}
#picker #supportBoardOpen {min-height:44px;padding:6px 0 6px 18px;border:0;border-left:2px solid #d6d8b7;border-radius:0;background:none;color:var(--ui-leaf);font-size:16px;font-weight:800;box-shadow:none}
#picker .support-intro {display:flex;align-items:center;justify-content:space-between;gap:28px}
#picker .support-header h2 {display:flex;flex:none;align-items:center;margin:0;font-size:58px;line-height:1.2;letter-spacing:-2px;font-weight:900;text-shadow:none;-webkit-text-stroke:.7px currentColor}
#picker h2 span {display:inline-block;color:#ca482b;transform:rotate(-7deg)}
#picker h2 span:nth-child(2) {color:#45633b;transform:rotate(7deg) translateY(2px)}
#picker h2 span:nth-child(3) {color:#be7b0a;transform:rotate(-5deg)}
#picker h2 span:nth-child(4) {color:#d78404;transform:rotate(4deg) translateY(-3px)}
#picker h2 span:nth-child(5) {color:#e56b52;transform:rotate(-4deg)}
#picker .support-rates {position:relative;display:flex;align-items:center;justify-content:center;gap:22px;margin:0;padding:16px 20px;border:0;border-radius:48% 52% 43% 50%;background:#fffbed;box-shadow:8px -7px 0 #a0bf64;color:var(--ui-ink);width:auto;height:auto}
#picker .support-rates > span {display:flex;align-items:baseline;gap:4px;white-space:nowrap}
#picker .support-rates small {font-size:15px;font-weight:800}
#picker .support-rates b {font-family:'Arial Rounded MT Bold','Trebuchet MS',sans-serif;font-size:25px;font-weight:900;color:var(--ui-rust)}
#picker .support-choices {min-height:0;flex:0 1 auto;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;padding:26px 38px 28px;scrollbar-width:thin;scrollbar-color:#91ad63 transparent;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#picker #pickGrid {display:grid;flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 24px;margin:0;width:100%}
#picker #pickGrid .pick {position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:0;min-width:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none}
#picker #pickGrid .pick.on {background:none;border:0;box-shadow:none;transform:none}
#picker .support-animal {display:flex;flex-direction:column;align-items:center;gap:7px;width:100%;color:var(--ui-ink)}
#picker .support-portrait {position:relative;isolation:isolate;display:grid;place-items:center;width:164px;height:164px;flex:none}
#picker .support-portrait::before {content:'';position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;border-radius:48% 52% 47% 53%;background:var(--ui-sun);transform:scale(.8);opacity:0;transition:transform .16s,opacity .16s}
#picker .pick.on .support-portrait::before {opacity:1;transform:scale(1)}
#picker .support-animal .portrait {display:block;width:142px;height:142px;max-width:100%;flex:none;margin:0;filter:none}
#picker .support-animal .portrait.pale {filter:none}
#picker .support-cheer {display:none;position:absolute;top:2%;left:-16%;width:28%;height:35%;background:url('assets/support-v2/cheer-rays.svg') center/contain no-repeat;pointer-events:none}
#picker .pick.on .support-cheer {display:block}
#picker .pick-name {display:block;height:25px;margin:0;font-size:20px;line-height:25px;white-space:nowrap;text-align:center;letter-spacing:0;font-weight:900}
#picker .support-stepper {display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;gap:3px;width:100%;max-width:184px;height:46px;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
#picker .support-stepper button {box-sizing:border-box;display:grid;place-items:center;width:46px;min-width:46px;max-width:46px;height:46px;min-height:46px;max-height:46px;padding:0;margin:0;border:0;border-radius:50%;background:var(--ui-leaf);color:var(--ui-paper);font-family:Arial,sans-serif;font-size:34px;font-weight:800;line-height:1;box-shadow:none;transform:none;transition:transform .12s,background .12s;touch-action:manipulation}
#picker .support-stepper [data-delta="-1"] {background:var(--ui-rust)}
#picker .support-stepper button:disabled {opacity:1;color:#f4f6e9;background:#a7bd7f;cursor:default}
#picker .support-stepper button:active:not(:disabled) {transform:scale(.9)}
#picker .support-count {display:block;box-sizing:border-box;min-width:0;width:100%;height:44px;margin:0;padding:0;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-family:'Arial Rounded MT Bold','Trebuchet MS','Microsoft YaHei',sans-serif;font-size:34px;font-weight:900;line-height:44px;font-variant-numeric:tabular-nums;color:var(--ui-ink);text-align:center;box-shadow:none}
#picker .support-count:disabled {-webkit-text-fill-color:var(--ui-ink);opacity:1}
#picker .support-count:focus {border-bottom-color:var(--ui-leaf);background:#ffffff40;outline:none}
#picker .pick.on .support-count {color:var(--ui-rust)}
#picker .support-footer {position:relative;flex:none;z-index:3;display:block;margin:0;padding:0 38px 22px;border:0;border-radius:0;background:var(--ui-leaf);box-shadow:none;color:var(--ui-paper)}
#picker .support-footer::before {content:'';position:absolute;z-index:-1;top:-11px;left:-5%;width:110%;height:22px;border-radius:50% 50% 0 0;background:var(--ui-leaf)}
#picker .support-tools {display:flex;justify-content:flex-end;align-items:center;min-height:30px;margin:0 0 3px;padding:0;background:none;border:0}
#picker .support-rules {font-size:12px;color:var(--ui-paper)}
#picker .support-rules summary {display:flex;align-items:center;min-height:32px;margin:0;padding:0;border:0;background:none;color:inherit;font-size:12px;font-weight:700;cursor:pointer;list-style:none}
#picker .support-rules summary::after {content:'?';display:grid;place-items:center;width:16px;height:16px;margin-left:5px;border:1px solid currentColor;border-radius:50%;font-size:11px}
#picker .support-rules summary::-webkit-details-marker {display:none}
#picker .support-rules > div {position:absolute;z-index:4;right:20px;bottom:calc(100% + 12px);width:340px;max-width:calc(100% - 40px);max-height:300px;overflow:auto;padding:20px;border:2px solid var(--ui-leaf);border-radius:18px;background:var(--ui-paper);color:var(--ui-ink);line-height:1.7}
#picker .support-rules > div strong {font-size:17px}
#picker .support-rules > div p {margin:10px 0;font-size:13px;line-height:1.7}
#picker .support-rules > div small {font-size:11px;color:#627248}
#picker .support-confirm {display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:center}
#picker #supportAllocation {margin:0!important;min-width:0;display:flex;align-items:center;gap:22px;color:var(--ui-paper);line-height:1.2}
#picker .support-sent,#picker .support-remaining {display:flex;align-items:baseline;gap:10px;min-width:0}
#picker .support-sent > span {font-size:24px;font-weight:900;white-space:nowrap}
#picker .support-sent > strong {font-size:48px;font-family:'Trebuchet MS',sans-serif;font-weight:900;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#picker .support-sent i {font-size:35px;font-style:normal;color:var(--ui-heart);align-self:center}
#picker .support-remaining {border-left:2px solid #e2e8bd77;padding-left:22px;font-size:19px;white-space:nowrap}
#picker .support-remaining strong {font-size:30px;font-family:'Trebuchet MS',sans-serif;font-variant-numeric:tabular-nums}
#picker #supportAllocation.large-balance {flex-wrap:wrap;gap:4px 15px}
#picker .large-balance .support-sent strong {font-size:26px}
#picker .large-balance .support-remaining {border:0;padding:0}
#picker .large-balance .support-remaining strong {font-size:20px}
#picker #pickGo {min-height:70px;width:100%;padding:14px 25px;border:0;border-radius:0;clip-path:polygon(6% 8%,85% 0,100% 50%,88% 92%,5% 100%,0 48%);background:var(--ui-sun);box-shadow:none;color:#583019;font-size:34px;font-weight:900;letter-spacing:1px;line-height:1.2;transition:transform .12s,background .12s}
#picker #pickGo:disabled {background:#9cab6d;color:#e2e8c9;opacity:1;cursor:default}
#picker #pickGo:active:not(:disabled) {transform:scale(.96)}
#picker button:focus-visible,#picker summary:focus-visible {outline:3px solid #b73921;outline-offset:4px}
#picker #pickGo:focus-visible {background:#ffe694;filter:drop-shadow(0 0 3px #fff4d7)}
@media(hover:hover) {#picker .support-stepper button:hover:not(:disabled) {transform:scale(1.08)} #picker #pickGo:hover:not(:disabled) {background:#ffe17b} #picker #supportBoardOpen:hover {text-decoration:underline}}
@media(min-width:701px) and (max-height:780px) {
  #picker .support-header {padding-top:10px;padding-bottom:12px}
  #picker .support-topline {margin-bottom:7px}
  #picker .picker-logo {width:150px!important}
  #picker .support-header h2 {font-size:44px}
  #picker .support-portrait {width:88px;height:88px}
  #picker .support-animal .portrait {width:78px;height:78px}
  #picker #pickGrid {gap:12px 20px}
  #picker .support-footer {padding-bottom:12px}
}
@media(max-width:1000px) and (min-width:701px) {
  #picker .support-header,#picker .support-choices,#picker .support-footer {padding-left:28px;padding-right:28px}
  #picker .support-header h2 {font-size:44px}
  #picker .support-rates {gap:14px;padding:13px 15px}
  #picker .support-rates small {font-size:12px}
  #picker .support-rates b {font-size:22px}
}
/* Fit the embedded viewport, including the host app's reduced content height. */
@media(max-width:700px) {
  #picker {padding:8px!important}
  #picker .picker-card {width:480px;border-width:2px;border-radius:18px}
  #picker .support-header {padding:6px 14px 6px}
  #picker .support-topline {margin-bottom:3px;gap:8px}
  #picker .picker-logo {width:90px!important;max-width:35%}
  #picker .support-session {gap:8px;font-size:11px}
  #picker #supportBoardOpen {font-size:11px;min-height:30px;padding-left:8px}
  #picker .support-intro {display:block}
  #picker .support-header h2 {justify-content:center;font-size:27px;letter-spacing:0;margin-bottom:4px}
  #picker .support-rates {gap:18px;padding:3px 12px;width:max-content;max-width:100%;margin:0 auto;box-shadow:5px -4px 0 #a0bf64}
  #picker .support-rates small {font-size:11px}
  #picker .support-rates b {font-size:18px}
  #picker .support-choices {padding:14px 18px 14px}
  #picker #pickGrid {grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 22px;margin:0}
  #picker .support-portrait {width:calc((100vh - var(--support-host-height,0px) - 516px)/4);height:calc((100vh - var(--support-host-height,0px) - 516px)/4);min-width:24px;min-height:24px;max-width:68px;max-height:68px}
  #picker .support-animal .portrait {width:88%;height:88%;max-width:100%}
  #picker .support-animal {gap:2px}
  #picker #pickGrid .pick {gap:2px}
  #picker .pick-name {font-size:14px;height:18px;line-height:18px}
  #picker .support-stepper {height:36px;grid-template-columns:36px minmax(0,1fr) 36px;max-width:142px}
  #picker .support-stepper button {width:36px;min-width:36px;max-width:36px;height:36px;min-height:36px;max-height:36px;font-size:24px}
  #picker .support-count {height:36px;line-height:36px;font-size:23px}
  #picker .support-footer {padding:0 14px 10px}
  #picker .support-tools {min-height:20px;margin:0}
  #picker .support-rules summary {min-height:20px;font-size:11px}
  #picker .support-confirm {grid-template-columns:minmax(0,1fr) 136px;gap:10px}
  #picker #supportAllocation {flex-direction:column;align-items:flex-start;gap:1px}
  #picker .support-sent {gap:5px}
  #picker .support-sent > span {font-size:15px}
  #picker .support-sent > strong {font-size:24px}
  #picker .support-sent i {font-size:21px}
  #picker .support-remaining {border:0;padding:0;font-size:12px;gap:5px}
  #picker .support-remaining strong {font-size:17px}
  #picker .large-balance .support-sent strong {font-size:17px}
  #picker .large-balance .support-remaining strong {font-size:15px}
  #picker #pickGo {min-height:50px;font-size:23px;padding:8px 12px;letter-spacing:0}
}
@supports(height:100dvh) {
  @media(max-width:700px) {
    #picker .support-portrait {width:calc((100dvh - var(--support-host-height,0px) - 516px)/4);height:calc((100dvh - var(--support-host-height,0px) - 516px)/4)}
  }
}
@media(max-width:370px) {
  #picker .support-header {padding-left:10px;padding-right:10px}
  #picker .picker-logo {width:88px!important}
  #picker .support-choices {padding-left:12px;padding-right:12px}
  #picker #pickGrid {column-gap:16px}
  #picker .support-confirm {grid-template-columns:minmax(0,1fr) 120px;gap:8px}
  #picker .support-rates {gap:12px}
}
@media(max-width:700px) and (max-height:610px) {
  #picker .support-header {padding-top:6px;padding-bottom:6px}
  #picker .support-topline {margin-bottom:2px}
  #picker .support-header h2 {font-size:25px;margin-bottom:6px}
  #picker .support-choices {padding-top:14px;padding-bottom:14px}
  #picker #pickGrid {row-gap:4px}
  #picker .support-footer {padding-bottom:7px}
  #picker .support-portrait {min-width:20px;min-height:20px}
  #picker .support-stepper {height:32px;grid-template-columns:32px minmax(0,1fr) 32px}
  #picker .support-stepper button {width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px;max-height:32px;font-size:24px}
  #picker .support-count {height:32px;line-height:32px}
}
/* Landscape phones use two rows instead of squeezing four rows vertically. */
@media(min-width:480px) and (max-height:540px) {
  #picker {padding:8px!important}
  #picker .picker-card {width:900px;border-width:2px;border-radius:18px}
  #picker .support-header {padding:6px 20px 8px}
  #picker .support-topline {margin-bottom:3px}
  #picker .picker-logo {width:90px!important}
  #picker .support-session {font-size:11px;gap:10px}
  #picker #supportBoardOpen {font-size:11px;min-height:26px;padding:2px 0 2px 8px}
  #picker .support-intro {display:flex;gap:16px}
  #picker .support-header h2 {font-size:27px;margin:0;letter-spacing:0}
  #picker .support-rates {width:auto;margin:0;padding:5px 10px;gap:12px}
  #picker .support-rates small {font-size:10px}
  #picker .support-rates b {font-size:17px}
  #picker .support-choices {padding:14px 20px 14px}
  #picker #pickGrid {grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 18px}
  #picker .support-portrait {width:calc((100vh - var(--support-host-height,0px) - 310px)/2);height:calc((100vh - var(--support-host-height,0px) - 310px)/2);min-width:24px;min-height:24px;max-width:62px;max-height:62px}
  #picker .support-animal .portrait {width:88%;height:88%}
  #picker .support-animal,#picker #pickGrid .pick {gap:2px}
  #picker .pick-name {font-size:13px;height:17px;line-height:17px}
  #picker .support-stepper {height:32px;grid-template-columns:32px minmax(0,1fr) 32px;max-width:136px}
  #picker .support-stepper button {width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px;max-height:32px;font-size:24px}
  #picker .support-count {height:32px;line-height:32px;font-size:22px}
  #picker .support-footer {padding:0 20px 7px}
  #picker .support-tools {min-height:20px;margin:0}
  #picker .support-rules summary {min-height:20px;font-size:10px}
  #picker .support-confirm {grid-template-columns:minmax(0,1fr) 150px;gap:14px}
  #picker #supportAllocation {flex-direction:row;align-items:center;gap:14px}
  #picker .support-sent,#picker .support-remaining {gap:5px}
  #picker .support-sent > span {font-size:15px}
  #picker .support-sent > strong {font-size:25px}
  #picker .support-sent i {font-size:20px}
  #picker .support-remaining {border:0;padding:0;font-size:12px}
  #picker .support-remaining strong {font-size:18px}
  #picker #pickGo {min-height:40px;padding:5px 12px;font-size:23px}
}
@media(min-width:480px) and (max-height:360px) {
  #picker .support-header {padding:6px 14px 8px}
  #picker .support-topline {margin:0}
  #picker .support-intro {position:absolute;left:92px;right:155px;top:9px;justify-content:center}
  #picker .picker-logo {width:70px!important;order:0}
  #picker .support-header h2 {display:none}
  #picker .support-rates {order:1;gap:8px;padding:4px 8px}
  #picker .support-session {order:2;gap:6px;font-size:10px}
  #picker #supportBoardOpen {font-size:10px}
  #picker .support-choices {padding-top:12px;padding-bottom:14px}
  #picker .support-tools,#picker .support-rules summary {min-height:16px}
  #picker #pickGo {min-height:36px}
}
@media(prefers-reduced-motion:reduce) {#picker button,#picker .support-portrait::before {transition:none}}
