.practice-miss-dialog{box-sizing:border-box;width:min(360px,calc(100% - 24px));max-height:calc(100% - 24px);inset:auto 0 max(16px,env(safe-area-inset-bottom));margin:0 auto;padding:14px;border:1px solid var(--sr-ui-border);border-left:3px solid var(--sr-ui-accent);background:var(--sr-ui-row);color:var(--sr-ui-text);box-shadow:0 8px 30px #0009;font-family:var(--sr-ui-font, sans-serif)}.practice-miss-dialog::backdrop{background:#0004}.practice-miss-dialog header{display:flex;align-items:center;gap:12px}.practice-miss-dialog h2{margin:0;font-size:17px;line-height:1.2}.practice-miss-dialog p{margin:4px 0 0;color:var(--sr-ui-muted);font-size:12px}.practice-miss-clock{--miss-remaining: 1;flex:0 0 44px;width:44px;height:44px;padding:3px;box-sizing:border-box;border-radius:50%;background:conic-gradient(var(--sr-ui-accent) calc(var(--miss-remaining) * 1turn),var(--sr-ui-border) 0);font:700 17px/1 var(--sr-ui-font, sans-serif);font-variant-numeric:tabular-nums}.practice-miss-clock span{display:grid;place-items:center;height:100%;border-radius:50%;background:var(--sr-ui-row)}.practice-miss-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:12px}.practice-miss-actions .hud-action{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:44px;padding:6px;border:1px solid var(--sr-ui-border);border-radius:0;background:var(--sr-ui-panel, var(--sr-ui-row));color:var(--sr-ui-text);font:700 12px/1.2 var(--sr-ui-font, sans-serif);cursor:pointer}.practice-miss-actions .practice-rewind-icon{width:16px;height:16px;flex:0 0 16px}.practice-miss-actions [data-miss-rewind]:not(:disabled){background:var(--sr-ui-accent);border-color:var(--sr-ui-accent);color:var(--sr-ui-ink)}.practice-miss-actions button:disabled{opacity:.55;cursor:default}.practice-miss-actions button:focus-visible{outline:2px solid var(--sr-ui-accent);outline-offset:2px}.community-publish-dialog .community-clearance-setting{padding:10px 12px;border:1px solid #889e7a77;background:#0b1d15}.community-clearance-summary,.community-clearance-scale{display:flex;align-items:center;justify-content:space-between;gap:8px}.community-publish-dialog .community-clearance-summary label{display:flex;align-items:center;gap:6px;margin:0}.community-clearance-summary svg,.community-result-awards svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.community-clearance-summary output,.community-clearance-scale b{color:#f5d588;font-weight:700;font-variant-numeric:tabular-nums}.community-clearance-scale{color:#bbc9b7;font-size:11px}.community-publish-dialog input[type=range]{display:block;min-height:34px;margin:2px 0;padding:0;border:0;background:transparent;accent-color:#edc875;cursor:pointer}.community-publish-dialog input[type=range]:disabled{cursor:default}.community-publish-dialog #community-clearance-help{margin:8px 0 0;font-size:11px}.app-shell .community-run-hud .community-progress{grid-column:1/-1;display:grid;gap:1px;margin:2px 5px 0;padding:0 10px;font-variant-numeric:tabular-nums}.community-progress-track{position:relative;display:grid;align-items:center;height:22px}.community-progress-meter{height:6px;overflow:hidden;border:1px solid #ffffff26;border-radius:3px;background:#333a32;box-sizing:border-box}.community-progress-meter>span{display:block;width:var(--community-progress,0%);height:100%;background:var(--sr-ui-accent,#ffda00);transition:width .18s ease-out}.community-trophy-marker{position:absolute;left:var(--community-target,100%);top:50%;display:grid;place-items:center;width:22px;height:22px;box-sizing:border-box;transform:translate(-50%,-50%);border:1px solid #b9a16b;border-radius:3px;color:#f1d89e;background:#27271d}.app-shell .community-run-hud .community-trophy-marker svg{width:15px;height:15px}.community-progress[data-trophy=true] .community-trophy-marker{color:#17160e;background:var(--sr-ui-accent,#ffda00);border-color:transparent}.community-progress-labels{display:flex;justify-content:space-between;gap:8px;color:var(--sr-ui-muted,#b5b8ae);font-size:10px}.community-progress[data-trophy=true] [data-community-trophy-label],.community-progress[data-maximum=true] [data-community-maximum-label]{color:var(--sr-ui-accent,#ffda00);font-weight:700}.community-result-awards{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.community-result-awards>span{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid #ad9057;color:#f1d89e;font-weight:700;font-size:11px}.community-result-awards>span[hidden]{display:none}.community-stat-line [data-community-personal-award]{color:#f5d588}@media(max-width:950px){.app-shell .community-run-hud .community-progress{grid-row:3}.app-shell .table-panel .community-run-hud .community-stage-status{grid-row:4}}@media(orientation:landscape)and (max-height:500px){.app-shell .community-run-hud .community-progress{grid-row:2}.app-shell .table-panel .community-run-hud .community-stage-status{grid-row:3}.community-progress-track{height:18px}.community-trophy-marker{width:18px;height:18px}.app-shell .community-run-hud .community-trophy-marker svg{width:12px;height:12px}}@media(prefers-reduced-motion:reduce){.community-progress-meter>span{transition:none}}
body.community-stage-playing .app-shell.immersive .table-panel .game-topbar > #practice-rewind-button { display: none; }@media(pointer:fine){.app-shell:not(.mobile-game-hud) .community-run-hud .community-progress{padding-inline:14px}.app-shell:not(.mobile-game-hud) .community-progress-track{height:28px}.app-shell:not(.mobile-game-hud) .community-progress-meter{height:10px}.app-shell:not(.mobile-game-hud) .community-trophy-marker{width:28px;height:28px}.app-shell:not(.mobile-game-hud) .community-run-hud .community-trophy-marker svg{width:19px;height:19px}}.tour-node-awards{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:5px 7px;border:1px solid #ab935d;border-radius:6px;background:#13291f;color:#eed7a1;pointer-events:none}.facet-node .tour-node-awards{position:absolute;z-index:3;inset-inline-start:calc(100% + 10px);inset-block-start:50%;transform:translateY(-50%);box-shadow:0 2px 5px #071a11a6}.tour-node-awards svg{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tour-node-awards svg+svg{color:#ffdf80;fill:currentColor;stroke:none}.facet-node[data-state=complete] .facet-tip{top:auto;bottom:calc(100% + 12px);left:50%;transform:translate(-50%)}@media(max-width:400px){.facet-node .tour-node-awards{flex-direction:column;gap:4px;padding:5px}}.community-run-result[data-tour-complete=true] :is(.community-result-close,.community-result-actions,.community-result-back,[data-community-result-status]){display:none}.tour-result-actions{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;margin:22px 0 6px}.tour-result-actions[hidden]{display:none}.tour-result-actions .tour-result-continue,.tour-result-actions button{display:flex;align-items:center;justify-content:center;min-height:48px;box-sizing:border-box;font:700 13px var(--sr-ui-font,sans-serif)}.tour-result-actions .tour-result-continue{background:var(--sr-ui-accent,#ffda00);border:1px solid var(--sr-ui-accent,#ffda00);color:var(--sr-ui-ink,#14150c);text-decoration:none}.tour-result-actions button{padding:0;border:1px solid #ffffff38;background:#1a1d18;color:#f5f5ef;cursor:pointer}.tour-result-actions button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.community-run-hud>.community-run-readout{display:contents}.community-run-hud .community-progress{order:1}.community-run-hud .community-stage-status{order:2}html.mobile-portrait-play .app-shell .game-topbar>.community-run-readout{flex:1 1 0;min-width:0;padding:2px 10px 1px;color:var(--sr-ui-text,#f5f5ef);background:#141612de;font:650 10px/1.2 var(--sr-ui-font,sans-serif);font-variant-numeric:tabular-nums}html.mobile-portrait-play .community-run-readout .community-run-score{display:flex;justify-content:center;gap:4px;margin:0;color:inherit}html.mobile-portrait-play .community-run-readout .community-run-score b{font:inherit;color:inherit}html.mobile-portrait-play .community-run-readout .community-run-score span{font:inherit;color:var(--sr-ui-muted,#b5b8ae)}html.mobile-portrait-play .community-run-readout .community-progress-track{height:18px}html.mobile-portrait-play .community-run-readout .community-progress-labels{display:none}html.mobile-portrait-play .community-run-readout .community-trophy-marker{width:17px;height:17px}html.mobile-portrait-play .community-run-readout .community-trophy-marker svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}html.mobile-portrait-play .app-shell .table-panel .community-run-hud{display:flex;align-items:center;gap:4px;width:max-content;max-width:calc(100% - 20px);right:auto;padding:4px 8px}html.mobile-portrait-play .app-shell .table-panel .community-run-hud:not([data-ball-on=true],[data-feedback=true]){display:none}html.mobile-portrait-play .community-run-hud :is(.community-table-back,.community-run-heading),html.mobile-portrait-play .community-run-hud:not([data-ball-on=true]) .community-ball-on,html.mobile-portrait-play .community-run-hud:not([data-feedback=true]) .community-stage-status{display:none}#game-menu .community-run-actions{display:flex;gap:8px;margin-top:8px}#game-menu .community-run-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1;min-height:44px;padding:6px;background:#17221a;color:var(--sr-ui-text,#f5f5ef);border:1px solid #ffffff38;font:650 12px var(--sr-ui-font,sans-serif)}#game-menu .community-run-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.computer-opponent-status{gap:7px;padding:0 3px;border:0;background:transparent;white-space:nowrap}.computer-opponent-status>[hidden]{display:none}.app-shell.immersive .table-panel .game-topbar #table-notices>#online-hud:has(#online-hud-text:empty):has(#online-hud-compact:empty):not(:has(#online-queue-hud-button:not([hidden]))){display:none}



/* Compact desktop challenge header */
.app-shell.immersive .table-panel .game-topbar > .community-run-hud {
  position: relative;
  inset: auto;
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
  height: var(--game-header-height, 44px);
  margin: 0 auto;
  padding: 0;
  border: 1px solid #c2ccac42;
  border-radius: 5px;
  background: #101c16f5;
  box-shadow: 0 2px 8px #0004;
  pointer-events: auto;
}
.app-shell.immersive .game-topbar:has(> .community-run-hud) .game-header-controls { margin-left: 0; }
.app-shell .game-topbar > .community-run-hud .community-table-back {
  flex: none;
  width: 42px;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 4px 0 0 4px;
  color: #d4d9cd;
  background: transparent;
}
.game-topbar > .community-run-hud .community-table-back:hover { background: #ffffff12; }
.app-shell .game-topbar > .community-run-hud .community-run-heading {
  max-width: 17ch;
  padding-right: 14px;
}
.app-shell .game-topbar > .community-run-hud .community-run-heading > span { display: none; }
.app-shell .game-topbar > .community-run-hud .community-run-heading strong {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}
.game-topbar > .community-run-hud > .community-run-readout {
  display: grid;
  align-content: center;
  flex: 0 1 146px;
  width: 146px;
  min-width: 76px;
  padding: 0 16px;
  border-inline: 1px solid #e0e9cc26;
  box-sizing: content-box;
  font-variant-numeric: tabular-nums;
}
.app-shell .game-topbar > .community-run-hud .community-run-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0;
  line-height: 1;
}
.app-shell .game-topbar > .community-run-hud .community-score-label,
.app-shell .game-topbar > .community-run-hud [data-community-target] { font-size: 12px; color: #cad1c4; }
.app-shell .game-topbar > .community-run-hud [data-community-score] { font-size: 15px; }
.app-shell .game-topbar > .community-run-hud .community-progress { display: block; margin: 0; padding: 0 8px; }
.app-shell .game-topbar > .community-run-hud .community-progress-track { height: 16px; }
.app-shell .game-topbar > .community-run-hud .community-progress-meter { height: 5px; background: #444f44; }
.app-shell .game-topbar > .community-run-hud .community-trophy-marker { width: 17px; height: 17px; }
.app-shell .game-topbar > .community-run-hud .community-trophy-marker svg { width: 12px; height: 12px; }
.game-topbar > .community-run-hud .community-progress-labels { display: none; }
.app-shell .game-topbar > .community-run-hud .community-ball-on {
  flex: none;
  max-width: none;
  padding: 0 13px;
  font-size: 12px;
}
.game-topbar > .community-run-hud .community-ball-on:has(> [hidden] + [hidden]) { display: none; }
.game-topbar > .community-run-hud [data-community-on-label]:not([hidden]) { display: inline-flex; align-items: center; gap: 4px; }
.game-topbar > .community-run-hud [data-community-on-label]::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 2px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  background: var(--challenge-ball, #b3282b);
}
.game-topbar > [data-next-ball="yellow"] { --challenge-ball: #ebc536; }
.game-topbar > [data-next-ball="green"] { --challenge-ball: #33805e; }
.game-topbar > [data-next-ball="brown"] { --challenge-ball: #98643e; }
.game-topbar > [data-next-ball="blue"] { --challenge-ball: #3779bc; }
.game-topbar > [data-next-ball="pink"] { --challenge-ball: #e49aad; }
.game-topbar > [data-next-ball="black"] { --challenge-ball: #151515; }
.app-shell .game-topbar > .community-run-hud .community-nomination { gap: 6px; font-size: 11px; }
.app-shell .game-topbar > .community-run-hud .community-nomination select { min-height: 32px; }
.app-shell .game-topbar > .community-run-hud .community-stage-status {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 6px 10px;
  border-radius: 4px;
  background: #101c16f5;
  font-size: 12px;
}
.app-shell .game-topbar > .community-run-hud .community-stage-status:has([role="status"]:empty):has(button[hidden]) { display: none; }
@media (max-width: 800px) {
  .app-shell.immersive .table-panel .game-topbar > .community-run-hud {
    position: absolute;
    inset: calc(100% + 6px) 0 auto;
  }
  .app-shell.immersive .game-topbar:has(> .community-run-hud) .game-header-controls { margin-left: auto; }
}

/* Challenge miss choices */
.practice-miss-dialog [hidden] { display: none !important; }
.practice-miss-actions:has([data-miss-continue][hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.practice-miss-actions:has([data-miss-rewind][hidden]) { grid-template-columns: 1fr; }
.practice-miss-actions [data-miss-rewind][hidden] ~ [data-miss-restart] { background: var(--sr-ui-accent); border-color: var(--sr-ui-accent); color: var(--sr-ui-ink); }
.community-run-result[data-restart-only=true] :is(.community-result-close,.community-result-back,[data-community-result-rewind]){display:none}

/* Challenge results use the same surfaces, typography and action colours as the table HUD. */
dialog.community-run-result[data-tour-complete="true"] {
  --result-pad: clamp(16px, 4vw, 24px);
  position: fixed;
  inset: 0;
  width: min(440px, calc(100% - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right))));
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  box-sizing: border-box;
  margin: auto;
  padding: var(--result-pad);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--sr-ui-border, #ffffff26);
  border-top: 3px solid var(--sr-ui-accent, #ffda00);
  border-radius: 0;
  background: var(--sr-ui-bg, #090a09f5);
  color: var(--sr-ui-text, #f5f5ef);
  box-shadow: 0 10px 36px #0009;
  font: 14px/1.4 var(--sr-ui-font, 'DM Sans Variable', sans-serif);
  font-variant-numeric: tabular-nums;
  text-align: left;
}
dialog.community-run-result[data-tour-complete="true"]::backdrop { background: #000a; backdrop-filter: none; }
.community-run-result[data-tour-complete="true"][open] { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.community-run-result[data-tour-complete="true"] > :is(.community-result-stage, h2, .tour-result-reward, .tour-result-actions) { grid-column: 1 / -1; }
.community-run-result[data-tour-complete="true"] .community-result-stage {
  margin: 0;
  color: var(--sr-ui-muted, #b5b8ae);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.community-run-result[data-tour-complete="true"] h2 {
  margin: 4px 0 16px;
  color: var(--sr-ui-text, #f5f5ef);
  font: 750 clamp(26px, 6vw, 36px)/1.12 var(--sr-ui-font, 'DM Sans Variable', sans-serif);
  letter-spacing: -.035em;
}
.community-run-result[data-tour-complete="true"] .tour-result-reward {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(60px, 20%, 88px);
  align-items: center;
  gap: 0 10px;
  padding: 12px 16px;
  border: 1px solid var(--sr-ui-border, #ffffff26);
  border-left: 3px solid var(--sr-ui-accent, #ffda00);
  background: var(--sr-ui-row, linear-gradient(#1b1d1a, #060706));
}
.community-run-result[data-tour-complete="true"] .tour-result-reward[hidden] { display: none; }
.tour-result-reward img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  max-height: 68px;
  object-fit: contain;
}
.tour-result-reward-copy { grid-column: 1; grid-row: 1; display: grid; gap: 3px; }
.tour-result-reward-copy strong { color: var(--sr-ui-accent, #ffda00); font-size: 37px; font-weight: 750; line-height: 1; }
.tour-result-reward-copy span { color: var(--sr-ui-text, #f5f5ef); font-size: 14px; font-weight: 650; }
.community-run-result .tour-result-reward p { grid-column: 1 / -1; margin: 7px 0 0; color: var(--sr-ui-muted, #b5b8ae); font-size: 12px; }
.community-run-result[data-tour-complete="true"] .community-result-break { grid-column: 1; align-self: center; margin: 14px 8px 0 0; gap: 2px; color: var(--sr-ui-muted, #b5b8ae); font-size: 12px; }
.community-run-result[data-tour-complete="true"] .community-result-break strong { color: var(--sr-ui-text, #f5f5ef); font: 700 28px/1 var(--sr-ui-font, 'DM Sans Variable', sans-serif); }
.community-run-result[data-tour-complete="true"] .community-result-awards { grid-column: 2; justify-content: flex-end; align-self: center; align-items: center; gap: 6px; margin-top: 14px; }
.community-run-result[data-tour-complete="true"] .community-result-awards > span { padding: 4px 7px; border: 1px solid var(--sr-ui-border, #ffffff26); background: #1b1d1a; color: var(--sr-ui-text, #f5f5ef); font-size: 11px; }
.community-run-result[data-tour-complete="true"] .community-result-awards svg { color: var(--sr-ui-accent, #ffda00); }
.community-run-result[data-tour-complete="true"] .tour-result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 6px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--sr-ui-border, #ffffff26);
}
.community-run-result[data-tour-replay-view="summary"] .tour-result-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
.community-run-result[data-tour-complete="true"] .tour-result-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--sr-ui-border, #ffffff26);
  border-radius: 0;
  background: var(--sr-ui-row, linear-gradient(#1b1d1a, #060706));
  color: var(--sr-ui-text, #f5f5ef);
  font: 650 13px/1.2 var(--sr-ui-font, 'DM Sans Variable', sans-serif);
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}
.community-run-result[data-tour-complete="true"] .tour-result-actions .tour-result-continue {
  border-color: var(--sr-ui-accent, #ffda00);
  background: var(--sr-ui-accent, #ffda00);
  color: var(--sr-ui-ink, #14150c);
  font-weight: 750;
}
.community-run-result .tour-result-actions [data-tour-watch-replay][hidden] { display: none; }
.community-run-result .tour-result-actions [data-tour-watch-replay] svg { width: 14px; height: 14px; flex: none; fill: currentColor; stroke: none; }
.community-run-result[data-tour-complete="true"] .tour-result-actions :is(a,button):focus-visible { outline: 2px solid var(--sr-ui-text, #f5f5ef); outline-offset: 2px; }
@media (hover: hover) {
  .community-run-result[data-tour-complete="true"] .tour-result-actions button:hover { background: #292c27; }
  .community-run-result[data-tour-complete="true"] .tour-result-continue:hover { background: #ffe75a; }
}
body:has(> .community-run-result[data-tour-replay-view][open]) .table-panel > :not(#stage) { visibility: hidden; }

/* The compact scoreboard is only shown after the player chooses Watch replay. */
dialog.community-run-result:is([data-tour-replay-view="watching"], [data-tour-replay-view="finished"]) {
  inset: auto 0 max(10px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)));
  margin: 0 auto;
  padding: 5px;
  border: 1px solid var(--sr-ui-border, #ffffff26);
  border-left: 3px solid var(--sr-ui-accent, #ffda00);
  background: var(--sr-ui-bg, #090a09f5);
  box-shadow: 0 3px 14px #0006;
}
dialog.community-run-result:is([data-tour-replay-view="watching"], [data-tour-replay-view="finished"])::backdrop { background: transparent; }
.community-run-result:is([data-tour-replay-view="watching"], [data-tour-replay-view="finished"]) > :not(.tour-result-actions),
.community-run-result:is([data-tour-replay-view="watching"], [data-tour-replay-view="finished"]) .tour-result-actions [data-tour-result-retry] { display: none; }
.community-run-result:is([data-tour-replay-view="watching"], [data-tour-replay-view="finished"]) .tour-result-actions {
  grid-template-columns: auto auto auto;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}
.community-run-result #tour-replay-status { padding: 0 6px; font-size: 12px; font-weight: 650; color: var(--sr-ui-text, #f5f5ef); }
@media (max-height: 460px) {
  dialog.community-run-result[data-tour-complete="true"]:not([data-tour-replay-view="watching"],[data-tour-replay-view="finished"]) { padding: 12px 16px; }
  .community-run-result[data-tour-complete="true"] h2 { margin-bottom: 8px; font-size: 25px; }
  .community-run-result[data-tour-complete="true"] .tour-result-reward { padding-block: 6px; }
  .tour-result-reward img { max-height: 42px; }
  .tour-result-reward-copy strong { font-size: 28px; }
  .community-run-result[data-tour-complete="true"] :is(.community-result-break, .community-result-awards) { margin-top: 8px; }
}

.tour-rewind-bank {
  width: min(392px, calc(100% - 24px));
  padding: 18px;
  overflow: auto;
}
.tour-rewind-bank .tour-rewind-balances {
  margin-top: 9px;
  color: var(--sr-ui-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tour-rewind-bank .tour-rewind-help, .tour-rewind-bank .tour-rewind-message { line-height: 1.5; }
.tour-rewind-bank .tour-rewind-message:not(:empty) { margin-top: 10px; color: var(--sr-ui-text); }
.tour-rewind-packs:not(:empty) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.tour-rewind-pack {
  display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 62px;
  padding: 7px 3px; border: 1px solid var(--sr-ui-border); background: var(--sr-ui-panel);
  color: var(--sr-ui-text); font: inherit; cursor: pointer;
}
.tour-rewind-pack strong { font-size: 14px; }
.tour-rewind-pack span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #e1baff; }
.tour-rewind-pack svg { width: 16px; height: 16px; fill: currentColor; }
.tour-rewind-pack:focus-visible { outline: 2px solid var(--sr-ui-accent); outline-offset: 2px; }
.tour-rewind-bank .practice-miss-actions { grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); }
.tour-rewind-bank .practice-miss-actions [data-primary] {
  color: var(--sr-ui-ink); background: var(--sr-ui-accent); border-color: var(--sr-ui-accent);
}

/* Explicit shape colours keep this shared art intact inside broad control/SVG resets. */
.sr-currency-pile { display: inline-block; width: 34px; height: 28px; flex: 0 0 34px; overflow: visible; vertical-align: middle; fill: none; stroke: none; }
.sr-currency-pile .sr-currency-pile-edge { fill: #9bafb8; stroke: #e6f2f6; stroke-width: 1; }
.sr-currency-pile .sr-currency-pile-face { fill: #dce7eb; stroke: #748c98; stroke-width: .9; }
.sr-currency-pile .sr-currency-pile-ridges { fill: none; stroke: #617e8c; stroke-width: 1; }
.sr-currency-pile .sr-currency-pile-mark { fill: none; stroke: #456270; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sr-currency-pile .sr-currency-pile-glint { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.sr-currency-pile .sr-currency-pile-crown-back { fill: #8750d9; stroke: #d5b2ff; stroke-width: 1; stroke-linejoin: round; }
.sr-currency-pile .sr-currency-pile-crown-face { fill: #bc83ff; stroke: #f0dfff; stroke-width: 1; stroke-linejoin: round; }
.sr-currency-pile .sr-currency-pile-crown-rim { fill: #713cc1; stroke: #dcb7ff; stroke-width: .9; stroke-linejoin: round; }
.sr-currency-pile .sr-currency-pile-crown-shine { fill: none; stroke: #f6eaff; stroke-width: 1.2; stroke-linecap: round; }
.sr-currency-pile .sr-currency-pile-crown-jewel { fill: #ebd7ff; stroke: #f7edff; stroke-width: .7; }
.sr-currency-pile-crowns { filter: drop-shadow(0 0 4px #ae66ff70); }

/* The local clubhouse bank uses the same forest, ivory and brass as its bento.
   Scoped type and SVG rules also beat Home's broad heading/control resets. */
.sr-currency-bank {
  --sr-bank-cream: #f3eddf;
  --sr-bank-muted: #b2c2a5;
  --sr-bank-gold: #e6c98c;
  --sr-bank-rule: #b4c99b38;
  position: fixed;
  inset: 0;
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #b3c79b57;
  border-top: 3px solid #dc4a3b;
  border-radius: 8px;
  background: #0b1d14;
  color: var(--sr-bank-cream);
  box-shadow: 0 30px 110px #000a, inset 0 1px #e1edcd0a;
  font: 400 13px/1.5 'Inter', Arial, sans-serif;
  color-scheme: dark;
  touch-action: manipulation;
}
.sr-currency-bank::backdrop { background: #020b08de; backdrop-filter: blur(7px); }
.sr-currency-bank[open] { display: flex; flex-direction: column; }
.sr-currency-bank [hidden] { display: none !important; }
.sr-currency-bank *, .sr-currency-bank *::before, .sr-currency-bank *::after { box-sizing: border-box; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) button { font: inherit; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) :is(button, a):focus-visible { outline: 2px solid #f1dab0; outline-offset: 3px; }
.sr-bank-dialog {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: calc(100dvh - 36px);
  overflow: hidden;
}
.sr-bank-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  gap: 24px;
  padding: 26px 30px 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--sr-bank-rule);
  background: linear-gradient(115deg, #233e2a, #0d2117 78%);
}
.sr-bank-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(120deg, transparent 64%, #c7d6ac08 64% 84%, #dc262617 84% 84.3%, transparent 84.3%);
  pointer-events: none;
}
.sr-bank-header > div { flex: 1 1 auto; min-width: 0; }
.sr-bank-checkout-currency{display:flex;align-items:center;gap:7px;flex:0 0 auto;color:#d9c99e;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.sr-bank-checkout-currency[hidden]{display:none}.sr-bank-checkout-currency select{background:#0b2117;color:#f6e9c3;border:1px solid #d7b46188;border-radius:4px;padding:7px 8px;font-size:12px}
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-eyebrow { margin: 0 0 7px; color: #bdc89e; font-size: 9px; line-height: 1.4; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header h2 { margin: 0; color: var(--sr-bank-cream); font: 550 clamp(30px, 4vw, 42px)/1.08 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: .2px; text-transform: uppercase; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header h2 > span { color: #ed493b; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header h2:focus { outline: none; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header p:not(.sr-bank-eyebrow) { margin: 10px 0 0; color: #c0cdb2; font-size: 12px; line-height: 1.5; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #b4c99b4d;
  border-radius: 4px;
  background: #14291c;
  color: #e9edda;
  font: 400 27px/1 Arial, sans-serif;
  cursor: pointer;
}
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-close svg { display: block; width: 20px; height: 20px; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-close:hover { border-color: #d4dcac99; background: #2c472e; }
.sr-bank-balances {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 30px 0;
}
.sr-bank-balances > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 30px; padding: 0; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-balances > span > svg { display: block; flex: 0 0 24px; width: 24px; height: 24px; }
.sr-bank-balances strong { color: #f2f0e7; font-size: 15px; line-height: 1.2; font-weight: 750; font-variant-numeric: tabular-nums; }
.sr-bank-balances small { color: #b0c09f; font-size: 9px; line-height: 1.3; font-weight: 650; letter-spacing: .6px; text-transform: uppercase; }
.sr-bank-header .sr-bank-balances { align-self: center; justify-content: flex-end; margin-left: auto; padding: 0; }
.sr-bank-header .sr-bank-balances + .sr-bank-close { margin-left: 0; }
.sr-bank-panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 22px 30px 24px;
  overflow: visible;
}
.sr-bank-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #5b7049 #0b1d14; scrollbar-width: thin; }
.sr-bank-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-intro h3 { flex-shrink: 0; margin: 0; color: #f0ecd9; font: 500 23px/1.2 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: .15px; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-intro p { max-width: 490px; margin: 0; color: var(--sr-bank-muted); font-size: 11px; line-height: 1.6; text-align: right; }
.sr-bank-packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.sr-bank-pack {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 18px 13px 14px;
  overflow: hidden;
  border: 1px solid #b4c99b3d;
  border-radius: 5px;
  background: linear-gradient(150deg, #233b28, #11271b 72%);
  box-shadow: inset 0 1px #edf5d70a;
  text-align: center;
}
.sr-bank-pack::before { position: absolute; z-index: -1; top: 43px; right: -25px; left: -25px; height: 125px; content: ''; background: radial-gradient(ellipse, #b7cc9412, transparent 65%); pointer-events: none; }
.sr-bank-pack:is([data-featured='true'], [data-featured='']) { border-color: #dfbf7c99; background: linear-gradient(150deg, #4c4a27, #1b3320 72%); box-shadow: inset 0 3px #e6c98c, inset 0 1px #edf5d70a; }
.sr-bank-pack-label { display: flex; align-items: center; justify-content: center; min-height: 22px; max-width: 100%; margin: 0; color: #bbc8a9; font-size: 9px; line-height: 1.3; font-weight: 700; letter-spacing: .85px; text-transform: uppercase; overflow-wrap: anywhere; }
.sr-bank-pack:is([data-featured='true'], [data-featured='']) .sr-bank-pack-label { color: #f0dca4; }
.sr-bank-pack-art { display: grid; place-items: center; width: 100%; --sr-bank-art-height: 148px; height: 148px; margin: 6px 0 7px; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack-art > img {
  display: block;
  width: 100%;
  height: var(--sr-bank-art-height, 148px);
  max-height: var(--sr-bank-art-height, 148px);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 7px 5px #0004);
}
.sr-bank-pack:nth-child(1) .sr-bank-pack-art > img { scale: .82; }
.sr-bank-pack:nth-child(3) .sr-bank-pack-art > img { scale: .9; }
.sr-bank-pack-amount { display: block; max-width: 100%; margin: 0; color: #f5efdc; font: 550 clamp(28px, 3vw, 36px)/1.1 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.sr-bank-pack-unit { display: block; margin: 5px 0 0; color: #b5c4a4; font-size: 9px; line-height: 1.35; font-weight: 650; letter-spacing: 1.1px; text-transform: uppercase; }
.sr-bank-pack-bonus { display: flex; align-items: center; justify-content: center; min-height: 27px; margin: 9px 0 13px; padding: 3px 6px; border: 1px solid #b5c78f35; border-radius: 3px; background: #9cb9760c; color: #d2ddb9; font-size: 9px; line-height: 1.4; font-weight: 650; }
.sr-bank-pack:is([data-featured='true'], [data-featured='']) .sr-bank-pack-bonus { border-color: #ddc4834d; background: #d6b66012; color: #f1dda9; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 8px;
  border: 1px solid #9dbb8673;
  border-radius: 3px;
  background: #304c30;
  color: #f4eedc;
  font: 700 13px/1.4 'Inter', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack-price:disabled { background: #2b442b; color: #e4e9d1; cursor: default; opacity: 1; -webkit-text-fill-color: currentColor; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack:is([data-featured='true'], [data-featured='']) .sr-bank-pack-price { border-color: #dfc58999; background: #dac18a; color: #1a2a1a; }
.sr-bank-pack-note { min-height: 1.5em; margin: 8px 0 0; color: #b6c4a5; font-size: 9px; line-height: 1.5; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack .sr-bank-pack-price:enabled { background: #d52b24; border-color: #ff7d63; color: #fff5df; cursor: pointer; box-shadow: inset 0 1px #ffffff30; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack .sr-bank-pack-price:enabled:hover { background: #eb3930; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack .sr-bank-pack-price:enabled:active { transform: translateY(1px); }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack .sr-bank-pack-price:disabled { background: #1d3023; border-color: #78926a42; color: #a9b59c; }
.sr-bank-earn-note { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #b4c99b30; border-radius: 4px; background: #13291c; color: #b9c9a9; font-size: 10px; line-height: 1.6; }
.sr-bank-earn-note strong { color: #e2cc98; font-weight: 650; }
.sr-bank-footer { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; flex-wrap: wrap; gap: 8px 18px; padding: 14px 30px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--sr-bank-rule); background: #091a12; color: #aebf9e; font-size: 10px; line-height: 1.5; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-footer p { margin: 0; }
.sr-bank-footer strong { color: #ded4b4; font-weight: 650; }
.sr-bank-footer a { color: #e2cc98; text-underline-offset: 3px; }
.sr-bank-notice { margin: 0; padding: 12px 30px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid #b4c99b1a; background: #091a12; color: #adbd9e; font-size: 10px; line-height: 1.6; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-footer .sr-bank-notice { margin: 0; padding: 0; border: 0; background: transparent; }
.sr-bank-panel .sr-bank-notice { margin-top: 19px; padding: 13px 15px; border: 1px solid #b4c99b2b; border-radius: 4px; background: #102419; }

/* Existing wallet vectors stay fully styled when used inside the dialog. */
.sr-currency-bank .sr-player-wallet-coin-rim { fill: #9daeb4; stroke: #e6eef0; stroke-width: 1.2; }
.sr-currency-bank .sr-player-wallet-coin-face { fill: #ccd8dc; stroke: #647e88; stroke-width: 1; }
.sr-currency-bank .sr-player-wallet-coin-mark { fill: none; stroke: #405e66; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-currency-bank .sr-player-wallet-coin-shine { fill: none; stroke: #f5fbfc; stroke-width: 1.4; stroke-linecap: round; }
.sr-currency-bank .sr-player-wallet-crown-face { fill: #bc83ff; stroke: #f0dfff; stroke-width: 1.1; stroke-linejoin: round; }
.sr-currency-bank .sr-player-wallet-crown-rim { fill: #713cc1; stroke: #dcb7ff; stroke-width: 1; stroke-linejoin: round; }
.sr-currency-bank .sr-player-wallet-crown-shine { fill: none; stroke: #f6eaff; stroke-width: 1.3; stroke-linecap: round; }
.sr-currency-bank .sr-player-wallet-crown-jewel { fill: #ebd7ff; stroke: #f7edff; stroke-width: 1; }
.sr-currency-bank[data-currency='crowns'] { border-top-color: #ba86ff; }
.sr-currency-bank[data-currency='crowns'] .sr-bank-balances svg { filter: drop-shadow(0 0 5px #ae66ff8c); }
.sr-currency-bank[data-currency='crowns'] .sr-bank-pack { border-color: #b88be84d; background: linear-gradient(150deg, #302540, #17231e 76%); }
.sr-currency-bank[data-currency='crowns'] .sr-bank-pack::before { background: radial-gradient(ellipse, #a25eff2b, transparent 68%); }
.sr-currency-bank[data-currency='crowns'] .sr-bank-pack:is([data-featured='true'], [data-featured='']) { border-color: #c69bff99; background: linear-gradient(150deg, #46315a, #1d2924 78%); box-shadow: inset 0 3px #bd8bff, inset 0 1px #f4eaff0a; }
.sr-currency-bank[data-currency='crowns'] .sr-bank-pack:is([data-featured='true'], [data-featured='']) .sr-bank-pack-label { color: #e5ceff; }
.sr-currency-bank[data-currency='crowns'] .sr-bank-pack:is([data-featured='true'], [data-featured='']) .sr-bank-pack-bonus { border-color: #bf94f74d; background: #a96aff12; color: #e6d2ff; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank)[data-currency='crowns'] .sr-bank-header h2 > span { color: #c28bff; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack-price .sr-currency-pile { width: 29px; height: 25px; flex-basis: 29px; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack-price > span { min-width: 0; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank)[data-currency='crowns'] .sr-bank-pack .sr-bank-pack-price:enabled { background: #7138b3; border-color: #c493ff; color: #fff2ff; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank)[data-currency='crowns'] .sr-bank-pack .sr-bank-pack-price:enabled:hover { background: #8648ca; }
:is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank)[data-currency='crowns'] .sr-bank-pack .sr-bank-pack-price:disabled { background: #30213e; border-color: #b88be842; color: #ccbbde; }

@media (max-width: 880px) {
  .sr-bank-header { gap: 16px; padding: 23px 24px 20px; }
  .sr-bank-balances { padding-right: 24px; padding-left: 24px; }
  .sr-bank-header .sr-bank-balances { gap: 8px; }
  .sr-bank-header .sr-bank-balances > span { gap: 6px; padding: 7px 9px; }
  .sr-bank-balances small { font-size: 8px; }
  .sr-bank-panel { padding-right: 24px; padding-left: 24px; }
  .sr-bank-packs { gap: 9px; }
  .sr-bank-pack { padding-right: 9px; padding-left: 9px; }
  .sr-bank-pack-label { font-size: 8px; letter-spacing: .5px; }
  .sr-bank-pack-art { --sr-bank-art-height: 120px; height: 120px; }
  .sr-bank-pack-amount { font-size: 29px; }
  .sr-bank-footer, .sr-bank-notice { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 650px) {
  .sr-currency-bank { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 6px; }
  .sr-bank-dialog { max-height: calc(100dvh - 28px); }
  .sr-bank-header { flex-wrap: nowrap; gap: 13px; padding: 19px 18px 16px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header h2 { font-size: 30px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header p:not(.sr-bank-eyebrow) { margin-top: 7px; font-size: 11px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-eyebrow { margin-bottom: 6px; font-size: 8px; letter-spacing: 1.3px; }
  .sr-bank-header .sr-bank-balances { order: 3; justify-content: flex-start; width: 100%; margin: 0; }
  .sr-bank-header .sr-bank-balances + .sr-bank-close { margin-left: auto; }
  .sr-bank-balances { gap: 8px; padding: 12px 18px 0; }
  .sr-bank-balances > span { gap: 7px; min-height: 30px; padding: 0; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-balances > span > svg { flex-basis: 22px; width: 22px; height: 22px; }
  .sr-bank-balances strong { font-size: 13px; }
  .sr-bank-panel { padding: 17px 18px 18px; }
  .sr-bank-intro { display: block; margin-bottom: 13px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-intro h3 { font-size: 21px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-intro p { margin-top: 5px; font-size: 10px; line-height: 1.5; text-align: left; }
  .sr-bank-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sr-bank-pack { padding: 13px 11px 11px; }
  .sr-bank-pack-label { font-size: 8px; letter-spacing: .7px; }
  .sr-bank-pack-art { --sr-bank-art-height: 112px; height: 112px; margin: 3px 0 5px; }
  .sr-bank-pack-amount { font-size: 29px; }
  .sr-bank-pack-unit { margin-top: 4px; font-size: 8px; }
  .sr-bank-pack-bonus { min-height: 24px; margin: 7px 0 10px; font-size: 8px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-pack-price { font-size: 12px; }
  .sr-bank-pack-note { margin-top: 6px; font-size: 8px; }
  .sr-bank-footer { gap: 5px 12px; padding: 11px 18px max(11px, env(safe-area-inset-bottom)); font-size: 9px; }
  .sr-bank-notice { padding: 10px 18px max(12px, env(safe-area-inset-bottom)); font-size: 9px; }
}
@media (max-width: 370px) {
  .sr-currency-bank { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .sr-bank-dialog { max-height: calc(100dvh - 20px); }
  .sr-bank-header { padding: 16px 13px 13px; gap: 10px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header h2 { font-size: 30px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header p:not(.sr-bank-eyebrow) { max-width: 24ch; font-size: 10px; }
  .sr-bank-balances { padding-right: 13px; padding-left: 13px; }
  .sr-bank-balances > span { gap: 5px; padding-right: 7px; padding-left: 7px; }
  .sr-bank-balances small { font-size: 7px; letter-spacing: .25px; }
  .sr-bank-panel { padding-right: 13px; padding-left: 13px; }
  .sr-bank-packs { gap: 8px; }
  .sr-bank-pack { padding-right: 9px; padding-left: 9px; }
  .sr-bank-pack-label { letter-spacing: .3px; }
  .sr-bank-pack-amount { font-size: 26px; }
  .sr-bank-footer, .sr-bank-notice { padding-right: 13px; padding-left: 13px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .sr-currency-bank { width: calc(100vw - 24px); max-height: calc(100dvh - 20px); }
  .sr-bank-dialog { max-height: calc(100dvh - 24px); }
  .sr-bank-header { flex-wrap: nowrap; align-items: center; gap: 15px; padding: 11px 20px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-eyebrow { margin-bottom: 3px; font-size: 7px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header h2 { font-size: 27px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header p:not(.sr-bank-eyebrow) { margin-top: 4px; font-size: 10px; }
  .sr-bank-header .sr-bank-balances { order: 0; justify-content: flex-end; width: auto; margin-left: auto; }
  .sr-bank-balances { gap: 8px; padding-top: 8px; }
  .sr-bank-panel { padding-top: 13px; padding-bottom: 15px; }
  .sr-bank-intro { margin-bottom: 12px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-intro h3 { font-size: 20px; }
  .sr-bank-pack-art { --sr-bank-art-height: 90px; height: 90px; }
  .sr-bank-footer { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .sr-bank-notice { padding-top: 8px; padding-bottom: max(9px, env(safe-area-inset-bottom)); }
}
/* Keep the pack amounts and prices together on a phone held sideways. */
@media (orientation: landscape) and (min-width: 651px) and (max-height: 500px) {
  .sr-currency-bank { max-height: calc(100dvh - 12px); }
  .sr-bank-dialog { max-height: calc(100dvh - 16px); }
  .sr-bank-header { padding: 8px 16px; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-eyebrow,
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) .sr-bank-header p:not(.sr-bank-eyebrow),
  .sr-bank-intro, .sr-bank-earn-note { display: none; }
  .sr-bank-balances { display: flex; min-height: 30px; padding: 0 16px; }
  .sr-bank-panel { padding: 8px 16px 10px; }
  .sr-bank-packs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .sr-bank-pack { padding: 10px 8px; }
  .sr-bank-pack-label { min-height: 14px; font-size: 8px; }
  .sr-bank-pack-art { --sr-bank-art-height: 80px; height: 80px; margin: 2px 0; }
  .sr-bank-pack-amount { font-size: 26px; }
  .sr-bank-pack-unit { margin-top: 3px; font-size: 8px; }
  .sr-bank-pack-bonus { min-height: 17px; margin: 5px 0 7px; padding: 1px 4px; font-size: 8px; }
  .sr-bank-footer { padding: 6px 16px max(6px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-transparency: reduce) {
  .sr-currency-bank::backdrop { background: #020b08f5; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .sr-currency-bank, .sr-bank-header, .sr-bank-pack, .sr-bank-earn-note, .sr-bank-footer { border-color: CanvasText; background: Canvas; color: CanvasText; box-shadow: none; }
  :is(.home-v3-theme .sr-home .sr-currency-bank, .sr-currency-bank) :is(.sr-bank-close, .sr-bank-pack-price:disabled) { border-color: ButtonText; background: ButtonFace; color: ButtonText; box-shadow: none; }
  .sr-bank-header::before, .sr-bank-pack::before { display: none; }
  .sr-bank-pack:is([data-featured='true'], [data-featured='']) { border: 2px solid Highlight; }
  .sr-currency-bank :is(h2, h3, p, strong, small, .sr-bank-eyebrow, .sr-bank-pack-label, .sr-bank-pack-unit, .sr-bank-pack-bonus, .sr-bank-pack-note) { color: CanvasText; }
}

.sr-bank-insufficient { flex: 0 0 auto; margin: 18px 30px 0; padding: 13px 15px; border: 1px solid #e8bd7066; border-left: 3px solid #e8bd70; border-radius: 4px; color: #f7e6bf; background: #493b1d55; }
.sr-bank-insufficient strong { display: block; font-size: 14px; line-height: 1.4; }
.sr-bank-insufficient p { margin: 5px 0 0; color: #d5d4b6; font-size: 12px; line-height: 1.5; }
@media (max-width: 600px) { .sr-bank-insufficient { margin: 12px 16px 0; padding: 11px 12px; } }
@media (orientation: landscape) and (max-height: 500px) {
  .sr-bank-insufficient { display: flex; align-items: center; gap: 12px; margin: 8px 16px 0; padding: 8px 10px; }
  .sr-bank-insufficient strong { flex: 0 0 auto; font-size: 12px; }
  .sr-bank-insufficient p { margin: 0; font-size: 10px; }
}

.sr-shop-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:32px 24px 24px;color:#f6f2d9;background:linear-gradient(135deg,#193527,#0b1d15);border:1px solid #52604b;border-top:3px solid #c32d2c;border-radius:12px;font-family:inherit;box-shadow:0 24px 80px #0008}
.sr-shop-dialog::backdrop{background:#03110bd9}
.sr-shop-dialog h2{font-family:'Bebas Neue',sans-serif;font-size:2rem;margin:0 36px 12px 0}
.sr-shop-dialog p{line-height:1.5;color:#c4c9b4}
.sr-shop-dialog button{min-height:48px;padding:12px 20px;border:1px solid #ffffff30;border-radius:6px;background:#c52125;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.sr-shop-dialog button:disabled{opacity:.55;cursor:wait}
.sr-shop-dialog .sr-shop-close{position:absolute;right:12px;top:12px;background:#ffffff15;padding:0;min-width:44px;font-size:28px}
.sr-shop-history{display:grid;gap:12px;margin:16px 0 24px}
.sr-shop-history article{display:grid;gap:6px;padding:16px;background:#ffffff08;border:1px solid #ffffff1c;border-left:3px solid #dcc889}
.sr-shop-history small{font-size:11px;overflow-wrap:anywhere;color:#bbc4ad}
.sr-shop-history span{color:#ddd4ab}
.sr-bank-history{border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer;padding:12px;font:inherit}

.sr-supporter-dialog{width:min(650px,calc(100vw - 24px));border-top-color:#d7b461;background:radial-gradient(ellipse at top right,#5c4a2738,transparent 65%),#10271c}
.sr-supporter-dialog h2{font-size:2.5rem;color:#f0d99b}.sr-supporter-dialog .sr-shop-history{gap:18px}
.sr-supporter-hero{display:grid;grid-template-columns:minmax(125px, .8fr) minmax(0, 1.2fr);align-items:center;gap:18px;min-width:0;padding:18px;background:radial-gradient(ellipse at 20% 50%,#a8964c35,transparent 52%),linear-gradient(130deg,#29442c,#0c1d14);border:1px solid #d5b86b55;border-radius:8px}
.sr-supporter-hero-art{position:relative;min-width:0;aspect-ratio:1;}
.sr-supporter-hero-art img{position:absolute;object-fit:contain;filter:drop-shadow(0 8px 12px #0008)}
.sr-supporter-hero-art .sr-supporter-coins-art{inset:0;width:100%;height:100%}
.sr-supporter-hero-art .sr-supporter-crowns-art{right:-8%;bottom:-5%;width:52%;height:52%;filter:drop-shadow(0 0 12px #a850c888) drop-shadow(0 5px 8px #0009)}
.sr-supporter-hero-copy{display:grid;gap:5px;min-width:0}.sr-supporter-hero-copy small{font-size:9px;font-weight:700;letter-spacing:1.3px;color:#d9c28b}.sr-supporter-hero-copy>strong{font:2.4rem/1 'Bebas Neue',sans-serif;color:#f2daa2}.sr-supporter-hero-copy>span{font-size:12px;color:#d0daca}
.sr-supporter-rewards{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.sr-supporter-rewards>div{display:grid;gap:1px;min-width:0;padding:8px;border:1px solid #d5c28b55;border-radius:4px;background:#071b12bd}.sr-supporter-rewards>div:last-child{border-color:#a971c4aa;background:#251734ba}.sr-supporter-rewards b{font:1.65rem/1 'Bebas Neue',sans-serif;color:#f2e1b1;font-variant-numeric:tabular-nums}.sr-supporter-rewards>div:last-child b{color:#edc7ff}.sr-supporter-rewards span{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.sr-supporter-benefits{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sr-supporter-benefits article{padding:14px;border-radius:5px}.sr-supporter-benefits article:last-child{grid-column:1/-1}.sr-supporter-benefits span{font-size:13px;line-height:1.5}
.sr-supporter-benefits .sr-supporter-frame-benefit{position:relative;padding-right:80px;min-height:100px}.sr-supporter-frame-benefit img{position:absolute;right:10px;top:8px;height:84px;width:63px;object-fit:contain;filter:drop-shadow(0 5px 6px #0008)}
.sr-supporter-future{font-size:12px;margin:0}.sr-supporter-frame-options{display:flex;gap:10px;flex-wrap:wrap}.sr-supporter-frame-options button{flex:1;background:#11231a}.sr-supporter-frame-options button[aria-pressed='true']{background:#d8bd76;color:#122119;border-color:#f2dca3}
.sr-supporter-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.sr-supporter-dialog>h2,.sr-supporter-dialog>p{flex-shrink:0}
.sr-supporter-dialog .sr-shop-history{min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:10px 0 0;padding:0 0 18px;scrollbar-width:thin;scrollbar-color:#8c7946 #10271c}
.sr-supporter-footer{flex-shrink:0;margin:0 -24px -24px;padding:14px 24px 20px;background:#10271c;border-top:1px solid #d7b46140}
.sr-supporter-footer .sr-supporter-checkout-note{margin:0 0 10px;font-size:12px;text-align:center;line-height:1.5}
.sr-shop-currency-choice{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 10px;color:#d9c99e;font-size:12px;font-weight:700}.sr-shop-currency-choice[hidden]{display:none}.sr-shop-currency-choice select{background:#0b2117;color:#f6e9c3;border:1px solid #d7b46188;border-radius:4px;padding:7px 10px}
.sr-supporter-dialog .sr-supporter-buy{width:100%;background:linear-gradient(120deg,#f2dca3,#cba34d);border-color:#f5dfab;color:#182418}
.sr-supporter-dialog .sr-supporter-buy:hover:enabled{filter:brightness(1.08)}
.sr-supporter-dialog .sr-supporter-buy:active:enabled{transform:translateY(1px)}
.sr-supporter-dialog button:focus-visible{outline:2px solid #fff0bf;outline-offset:3px}
.sr-supporter-dialog[data-supporter-active='true']>p{color:#a7e3b9}
@media(max-width:440px){.sr-supporter-dialog{padding:28px 16px 18px}.sr-supporter-hero{grid-template-columns:minmax(100px,.75fr) minmax(0,1.25fr);gap:10px;padding:12px}.sr-supporter-hero-copy>strong{font-size:2rem}.sr-supporter-rewards{grid-template-columns:1fr;gap:5px;margin-top:5px}.sr-supporter-rewards>div{grid-template-columns:auto 1fr;align-items:baseline;gap:6px;padding:5px 7px}.sr-supporter-rewards b{font-size:1.4rem}.sr-supporter-benefits{grid-template-columns:1fr}.sr-supporter-dialog h2{font-size:2rem}}
@media(max-width:440px){.sr-supporter-footer{margin:0 -16px -18px;padding:12px 16px 16px}}

.sr-shop-dialog[data-energy-dialog] .sr-shop-history:empty {display:none}
.sr-shop-dialog[data-energy-dialog] article {gap:12px;border-radius:6px}
.sr-shop-dialog[data-energy-dialog] article h3 {margin:0;color:#f8f2dc;font-family:inherit;font-size:1.1rem;font-weight:700;line-height:1.25}
.sr-shop-dialog[data-energy-dialog] article ul {margin:0;padding-left:1.2em;color:#d0d9ca;line-height:1.5}
.sr-shop-dialog[data-energy-dialog] article button {justify-self:stretch;background:#e3c275;color:#142219;border-color:#edd490}
.sr-shop-dialog[data-energy-dialog] button:focus-visible {outline:2px solid #fff0bf;outline-offset:3px}

.sr-currency-bank[data-rewind-funding] .sr-rewind-founder-slot:empty { display:none; }
.sr-currency-bank[data-rewind-funding] .sr-rewind-founder {
  display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center;
  padding:12px 16px;margin:4px 0 10px;border:1px solid #cfac68;border-radius:5px;
  background:linear-gradient(115deg,#313023,#17281e);color:#f3eddf;
}
.sr-rewind-founder strong { font-size:17px; }
.sr-rewind-founder p {grid-column:1;margin:2px 0;color:#d5d1ba;line-height:1.4;}
.sr-rewind-founder button {grid-column:2;grid-row:1/3;min-height:44px;padding:0 16px;border:1px solid #f1d39a;border-radius:4px;background:#e8cf91;color:#15190f;font-weight:700;cursor:pointer;}
.sr-currency-bank[data-rewind-funding] .sr-bank-footer {flex-wrap:wrap;}
