.stake-wallet {color:#536553;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}
.stake-wallet:empty {display:none}
#bet-editor .chips button:disabled {opacity:.55;cursor:default}
#stake-label {font-weight:inherit}

@media (max-width:800px) {
  /* Keep the list of athletes in the separate information view when acting on a ticket. */
  .app-shell .ticket #sports-analysis {display:none}
  .app-shell .ticket:has(#betting-panel:not(.hidden)) {
    display:flex;
    flex-direction:column;
    overflow:hidden;
    max-height:calc(var(--ticket-view-height,100dvh) - var(--arena-safe-top,0px) - 8px);
    bottom:var(--ticket-view-bottom,0px);
    padding:18px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
    background:#fbfcf6;
    border-radius:22px 22px 0 0;
  }
  .app-shell .ticket:has(#betting-panel:not(.hidden)) > h2 {
    flex:none;
    min-height:27px;
    margin:3px 42px 6px 0;
    padding:0;
    font-size:17px;
    line-height:26px;
    color:#253b2c;
  }
  .app-shell .ticket:has(#betting-panel:not(.hidden)) .ticket-close {
    width:44px;height:44px;top:6px;right:8px;background:transparent
  }
  .app-shell .ticket #betting-panel:not(.hidden) {
    display:flex;flex-direction:column;min-height:0;
  }
  .app-shell .ticket .bet-editor {
    overflow-y:auto;overscroll-behavior:contain;min-height:0;
  }
  .app-shell .ticket .bet-checkout {flex:none;padding-top:8px}
  .app-shell .ticket:has(#betting-panel:not(.hidden)) #mobile-rules,
  .app-shell .ticket:has(#betting-panel:not(.hidden)) .ticket-bottom,
  .app-shell .ticket .bet-editor .selected-animal,
  .app-shell .ticket .bet-editor #selected-profile,
  .app-shell .ticket .bet-editor #add-bet,
  .app-shell .ticket .bet-editor .roster-heading,
  .app-shell .ticket .bet-checkout .stake-breakdown,
  .app-shell .ticket .bet-checkout .bet-total {display:none!important}
  .app-shell .ticket .bet-editor #animal-roster {margin:0 0 10px}
  .app-shell .ticket .bet-editor #animal-grid:not(.hidden),
  .app-shell .ticket .bet-editor #sports-roster:not(.hidden) {
    display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
    gap:4px;margin:0;padding:0;overflow:visible;
  }
  .app-shell .ticket .bet-editor #sports-roster:has(>button:nth-child(2):last-child) {grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-shell .ticket .bet-editor .animal-card,
  .app-shell .ticket .bet-editor .sports-participant {
    position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
    width:100%;min-width:0;height:64px;min-height:64px;gap:0;padding:2px 1px;
    border:1px solid #dce3d5;border-radius:10px;background:#f5f7ef;color:#344b39;box-shadow:none;
  }
  .app-shell .ticket .bet-editor .animal-card.selected,
  .app-shell .ticket .bet-editor .sports-participant.selected {border-color:#416646;background:#e4eddb;box-shadow:inset 0 0 0 1px #416646}
  .app-shell .ticket .bet-editor #animal-roster .animal-card canvas {flex:none;width:32px;height:29px;margin:0}
  .app-shell .ticket .bet-editor #animal-roster .animal-card {height:64px;min-height:64px}
  .app-shell .ticket .bet-editor #animal-roster .animal-card>p {display:none!important}
  .app-shell .ticket .bet-editor .animal-info {display:flex;flex-direction:column;align-items:center;gap:1px}
  .app-shell .ticket .bet-editor .animal-info strong,
  .app-shell .ticket .bet-editor .sports-participant-info strong {font-size:11px;line-height:14px}
  .app-shell .ticket .bet-editor .animal-info b,
  .app-shell .ticket .bet-editor .sports-card-odds {font-size:10px;line-height:13px;font-weight:600;color:#536b55}
  .app-shell .ticket .bet-editor .sports-participant-info {display:block;flex:none;text-align:center}
  .app-shell .ticket .bet-editor .sports-participant-info small,
  .app-shell .ticket .bet-editor .animal-check,
  .app-shell .ticket .bet-editor .animal-card .bet-badge,
  .app-shell .ticket .bet-editor .sports-card-amount {display:none}
  .app-shell .ticket .bet-editor .sports-avatars {display:flex;min-width:0;height:29px;justify-content:center}
  .app-shell .ticket .bet-editor .sports-avatar {width:30px;height:29px;border:0;background:transparent;margin:0}
  .app-shell .ticket .bet-editor .sports-avatar+.sports-avatar {margin-left:-5px}
  .app-shell .ticket .bet-editor .sports-avatar canvas {width:30px;height:29px}
  .app-shell .ticket .bet-editor .amount-label {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 5px;color:#314b35;font-size:14px}
  .app-shell .ticket .bet-editor #stake-label {font-weight:750}
  .app-shell .ticket .bet-editor .stake-wallet {display:inline;color:#536553;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}
  .app-shell .ticket .bet-editor .amount-input {min-height:45px;padding:4px 11px;border:1px solid #c5d2bf;border-radius:10px;background:#fff}
  .app-shell .ticket .bet-editor .amount-input input {font-size:23px;min-height:34px}
  .app-shell .ticket .bet-editor .amount-input:focus-within {outline:2px solid #536f4e;outline-offset:-2px}
  .app-shell .ticket .bet-editor .chips {margin:6px 0 0;gap:5px}
  .app-shell .ticket .bet-editor .chips button {min-height:44px;padding:4px;font-size:14px;font-weight:650}
  .app-shell .ticket .bet-editor .bets-list {display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 0;padding:2px 0;border:0}
  .app-shell .ticket .bet-editor .bets-list.single-draft:not(.show-only-pick) {display:none}
  .app-shell .ticket .bet-editor .bet-row {display:inline-flex;align-items:center;gap:4px;margin:0;padding:1px 2px 1px 7px;border:1px solid #dbe1d4;border-radius:7px;font-size:11px}
  .app-shell .ticket .bet-editor .bet-row .dot {display:none}
  .app-shell .ticket .bet-editor .bet-row button {height:30px;width:30px}
  .app-shell .ticket .bet-checkout .possible-return {display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin:0 0 8px;font-size:12px;color:#536553}
  .app-shell .ticket .bet-checkout .possible-return strong {font-size:13px;font-weight:700;color:#314b35}
  .app-shell .ticket .bet-checkout #start-btn {display:flex;align-items:center;justify-content:space-between;min-height:48px;margin:0;border-radius:12px;padding:10px 16px;font-size:16px;font-weight:750}
  .app-shell .ticket .bet-checkout #start-btn:disabled {background:#e4e8de;color:#647162;box-shadow:none;opacity:1}
  .app-shell .ticket .bet-checkout #confirm-stake {font-size:14px;font-variant-numeric:tabular-nums}
  .app-shell .ticket .bet-checkout .confirm-note.connection-issue {margin:5px 0 0;font-size:11px}
  .app-shell .ticket:has(#betting-panel:not(.hidden)) .sports-context-note {flex:none;margin:0 0 6px;padding:0 8px}
  .app-shell .ticket:has(#betting-panel:not(.hidden)) .sports-context-note button {min-height:38px}
  .app-shell .ticket.ticket-keyboard .bet-editor #animal-roster,
  .app-shell .ticket.ticket-keyboard .bet-editor .chips {display:none}
  .app-shell .ticket.ticket-keyboard:has(#betting-panel:not(.hidden)) {padding-bottom:8px}
}
@media (max-width:800px) and (max-height:420px) and (orientation:landscape) {
  .app-shell .ticket .bet-editor #animal-roster {margin-bottom:5px}
  .app-shell .ticket .bet-editor #animal-roster .animal-card,.app-shell .ticket .bet-editor .sports-participant {height:46px;min-height:46px}
  .app-shell .ticket .bet-editor #animal-roster .animal-card canvas,.app-shell .ticket .bet-editor .sports-avatars {display:none}
  .app-shell .ticket .bet-editor .amount-label {margin-bottom:2px}
}

#quick-order {border-top:1px solid #cfdbcd;margin-top:4px;padding-top:5px}
#quick-bets [hidden],#quick-note:empty,.quick-faces small:empty {display:none!important}
.quick-submit,.quick-edit,.quick-edit label,.quick-actions {display:flex;align-items:center;gap:6px}
.quick-submit button,.quick-edit button {min-height:44px;border:0;border-radius:9px;padding:6px 14px;font:650 14px system-ui;cursor:pointer}
#quick-confirm {flex:1;min-width:0;background:#345840;color:white}
#quick-change,.quick-edit button {flex:none;background:#e4ebdd;color:#354d3b}
#quick-confirm:disabled {background:#dce2d7;color:#566252}
.quick-edit {margin-bottom:5px}
.quick-edit label {flex:1;padding-left:6px;font:600 12px system-ui;color:#405646}
.quick-edit input {width:0;flex:1;min-height:40px;border:1px solid #afbfac;border-radius:8px;padding:0 8px;font:600 16px system-ui}
.quick-quote {display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;column-gap:8px;row-gap:2px;padding:1px 4px 5px;color:#435a47;font:500 11px/1.35 system-ui}
.quick-quote>span {white-space:nowrap}
.quick-quote strong {color:#294b32;font-size:12px;font-variant-numeric:tabular-nums}
#quick-note {display:block;color:#873b2d;padding:3px 5px;font-size:12px}
#quick-wallet {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 5px;color:#873b2d}
#quick-wallet-status {font-size:12px;line-height:1.4}
#quick-wallet #quick-refill {width:auto;min-height:44px;margin:0;padding:6px 10px;flex:none;font-size:12px;font-weight:650}
#refill-status {margin:8px 0 4px;color:#873b2d;font-size:12px;line-height:1.4}
#quick-return {border-top:1px solid #cfdbcd;margin-top:4px;padding:3px 4px 0;color:#425448}
#quick-roster[hidden]~#quick-return {border:0;margin:0}
#quick-return-note {margin:2px 0 4px;font:600 12px/1.45 system-ui}
#quick-return>div {display:flex;align-items:center;justify-content:flex-end;gap:6px}
#quick-return button {min-height:44px;border:0;border-radius:9px;padding:5px 12px;background:#e4ebdd;color:#354d3b;font:650 12px system-ui;cursor:pointer}
#quick-return #quick-cheer {flex:1;background:#345840;color:white}
@media(max-width:800px) {
  .app-shell:has(#quick-bets:not(.hidden)) :is(.sports-board-panel,#live-standings) {bottom:max(calc(var(--arena-floor) + 191px),calc(var(--arena-floor) + 72px + var(--quick-bet-height,0px)))}
  .app-shell.round-result #quick-bets:has(#quick-roster[hidden]) {bottom:calc(var(--arena-floor) + 198px)}
}
.quick-actions {gap:12px}
.app-shell .scene-result-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.app-shell #scene-next {grid-column:1/-1;min-height:40px;font-size:14px}
.app-shell .scene-result-actions>button:not(#scene-next) {background:transparent;border-color:transparent}
@media(min-width:801px) {
  .app-shell .quick-bets:not(.hidden) {display:block;margin:10px 0;padding:10px 0}
  .quick-title,.quick-faces,.quick-heads {display:flex;align-items:center}
  .quick-title {justify-content:space-between;font:650 14px system-ui;color:#405a46;margin-bottom:7px}
  .quick-title button {background:transparent;border:0;color:#48664f;cursor:pointer}
  .quick-faces {gap:3px}
  .quick-faces>button {flex:1;min-width:0;display:grid;justify-items:center;gap:2px;border:1px solid transparent;border-radius:9px;padding:4px 0;background:transparent;color:#354b39;cursor:pointer}
  .quick-faces>button.selected {border-color:#d2a568;background:#fff2d9}
  .quick-faces canvas {width:32px;height:34px}
  .quick-faces canvas+canvas {margin-left:-5px}
  .quick-faces strong,.quick-faces small {font-size:11px}
  .app-shell:not(.advanced-ticket):has(.quick-bets:not(.hidden)) :is(#animal-roster,#sports-analysis,#betting-panel,#auth-panel) {display:none!important}
  .app-shell:not(.advanced-ticket) #ticket:has(#quick-wallet:not([hidden])) :is(#refill-status,#refill-btn) {display:none}
}

.fan-heart {display:inline-block;margin-inline-start:2px;color:#aa4c58;font:750 .8em/1 system-ui;vertical-align:middle}
.app-shell .athlete-identity #profile-support {margin-top:4px;border:1px solid #c5d4bc;border-radius:20px;background:#f2f6e9;color:#36533e;padding:6px 12px;min-height:34px;font:650 12px system-ui;cursor:pointer}
.app-shell #scene-feed {justify-self:start;align-self:start;margin-top:4px;border:1px solid #d7e6c652;border-radius:7px;background:#dae6ca16;color:#e6efcf;min-height:32px;padding:3px 8px;font:600 11px system-ui;cursor:pointer}
.app-shell #scene-feed[hidden] {display:none!important}

.rank-switch {display:flex;align-items:center;justify-content:space-between;gap:8px;color:#526950;font-size:13px;margin-bottom:8px}
.rank-switch button {font:650 13px system-ui;color:#34553a;background:#edf1e6;border:1px solid #ccd8c6;border-radius:8px;min-height:36px;padding:5px 10px;cursor:pointer}

#spot-from-short {display:inline-flex;align-items:center;min-height:30px;padding:3px 7px;border:1px solid #65796240;border-radius:7px;background:#f5f6ec;color:#405a44;font:650 11px system-ui;cursor:pointer}
@media(min-width:801px){.app-shell dialog.spot-page {width:min(690px,90vw);max-width:90vw}}

/* The first bet shares one surface with the animal choices and confirmation. */
#play-dock { display: contents; }
#guest-entry:has(> [hidden] + [hidden]) { display: none; }
#guest-entry [hidden] { display: none !important; }
#guest-first-play, #guest-trial-status {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.guest-entry-copy { min-width: 0; }
.guest-entry-copy > strong { display: block; font-size: 17px; line-height: 1.35; font-weight: 750; color: #203c30; }
.guest-entry-copy p { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: #3e574a; }
#quick-note.informational { color: #506755; }
#guest-start-context { display: block; font-variant-numeric: tabular-nums; }
#guest-trial-start, #guest-trial-login, #guest-trial-dismiss {
  border: 0; border-radius: 8px; padding: 8px 10px; flex: none;
  font: 650 13px/1.3 system-ui; text-decoration: none; cursor: pointer;
}
#guest-trial-start, #guest-trial-login { color: #fffdf2; background: #345840; }
#guest-trial-dismiss { color: #435a48; background: transparent; }
.guest-trial-actions { display: flex; flex-flow: column; align-items: center; }
.guest-trial-actions:has(> [hidden] + [hidden]) { display: none; }
#play-dock :is(button, a):focus-visible { outline: 2px solid #875900; outline-offset: 1px; }
.guest-first-run :is(#scene-result, #result-panel) { display: none !important; }

@media (min-width: 801px) {
  .app-shell #play-dock.includes-guest { display: block; }
  .app-shell #guest-entry:not(:has(> [hidden] + [hidden])) { padding-block: 3px 12px; border-bottom: 1px solid #d9e1d2; }
  .app-shell.guest-first-run:not(.advanced-ticket) #ticket > h2 { display: none; }
  .app-shell #play-dock .quick-faces > button { min-height: 48px; }
  .app-shell #play-dock .quick-faces > button[aria-pressed=true] { border-color: #537546; background: #e8efde; }
}
@media (max-width: 800px) {
  .app-shell #play-dock.includes-guest {
    position: fixed; z-index: 18; display: block;
    left: var(--arena-safe-left); right: var(--arena-safe-right); bottom: calc(var(--arena-floor) + 64px);
    padding: 8px 9px; border: 1px solid #fff9; border-radius: 16px; background: #f9fbf2fa;
    box-shadow: 0 4px 18px #223d2d1c;
  }
  .app-shell #play-dock.includes-guest #quick-bets {
    position: static; width: auto; margin: 0; padding: 4px 0 0;
    background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
  }
  #play-dock.includes-guest:has(#quick-bets:not(.hidden)) #guest-entry { padding-bottom: 5px; border-bottom: 1px solid #d6dfcf; }
  #guest-entry { padding-inline: 3px; }
  #guest-first-play p { display: flex; flex-wrap: wrap; gap: 0 8px; }
  #guest-start-context { font-weight: 650; }
  #guest-first-play strong { font-size: 16px; }
  .app-shell:has(#play-dock.includes-guest) .mobile-action-bar { display: none; }
  .app-shell.ticket-open #play-dock.includes-guest { visibility: hidden; }
  .app-shell:has(#play-dock.includes-guest) :is(#live-standings, #sports-board-panel) {
    bottom: calc(var(--arena-floor) + 72px + var(--quick-bet-height, 0px));
  }
  .app-shell:has(#play-dock.includes-guest) .scene-result {
    bottom: calc(var(--arena-floor) + 72px + var(--quick-bet-height, 0px));
  }
  .app-shell #quick-confirm { min-height: 44px; }
}
@media (max-width: 800px) and (max-height: 500px) and (orientation: landscape) {
  .app-shell #play-dock.includes-guest { left: auto; width: min(360px, 52vw); max-height: calc(100dvh - 130px); overflow: auto; }
}

#free-prediction {
  display:flex;align-items:center;gap:7px;padding:6px 4px 2px;color:#314f3a;
}
#quick-roster:not([hidden])~#free-prediction {border-top:1px solid #d6dfcf;margin-top:4px}
.free-prediction-copy {flex:1;min-width:0;overflow-wrap:anywhere}
.free-prediction-copy strong,.free-prediction-copy small {display:block;line-height:1.35}
.free-prediction-copy strong {font-size:12px;font-weight:750}
.free-prediction-copy small {color:#4b6452;font-size:11px;margin-top:2px}
#free-prediction button,.quick-title [data-quick-mode] {
  flex:none;min-height:44px;border:0;border-radius:9px;padding:5px 8px;background:#e4ebdd;
  color:#354d3b;font:650 12px system-ui;cursor:pointer;
}
#free-prediction #free-prediction-confirm {background:#345840;color:white}
#free-prediction #free-prediction-confirm:disabled {background:#dce2d7;color:#566252}
@media(max-width:800px) {
  .quick-title:has(+.quick-faces [data-free-pick])>span {
    overflow:visible;white-space:normal;color:#345840;font-size:11px;font-weight:750;
  }
  .quick-title [data-quick-mode] {min-height:32px;font-size:11px}
  .app-shell.round-result #quick-bets.shows-free-prediction:has(#quick-roster[hidden]) {
    bottom:calc(var(--arena-floor) + 64px);
  }
  .app-shell:has(#quick-bets.shows-free-prediction) .scene-result {
    bottom:calc(var(--arena-floor) + 72px + var(--quick-bet-height,0px));
  }
  .app-shell:has(#quick-bets.shows-free-prediction) .toast {
    bottom:max(calc(var(--arena-floor) + 198px),calc(var(--arena-floor) + 72px + var(--quick-bet-height,0px)));
  }
}
#free-prediction-stats:empty {display:none}
