.hilo-body { background: #0f212e; }
.hilo-stage { display: grid; gap: 0; }
.hilo-bet-panel { display: grid; gap: 12px; }
.hilo-bet-panel .button { width: 100%; min-height: 44px; border-radius: 6px; }
.hilo-bet-panel .button:disabled { cursor: not-allowed; opacity: .5; }
.hilo-body .hilo-bet-panel .button.secondary { background: #3b5667; color: #fff; border: 0; font-size: 14px; font-weight: 700; }
.hilo-body .hilo-bet-panel .button.secondary:hover:not(:disabled) { background: #49697b; }
.call-button { display: flex; justify-content: center; align-items: center; gap: 8px; }
.call-button strong { white-space: nowrap; font-size: 14px; }
.call-arrow { font-size: 21px; line-height: 1; }
.call-arrow.higher { color: #f9c669; }
.call-arrow.lower { color: #b9a4ee; }
.hilo-profit-box { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: #b1c3d1; }
.hilo-profit-box > strong { display: block; padding: 10px; min-height: 42px; border: 1px solid #415969; border-radius: 6px; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.hilo-note { display: grid; gap: 6px; margin-top: 16px; padding: 12px; border-radius: 6px; background: #14303e; color: #b1c3d1; font-size: 13px; line-height: 1.5; }
.hilo-note strong { color: #fff; }
.hilo-table-panel {
  position: relative; display: grid; grid-template-rows: 302px auto 172px;
  gap: 16px; min-height: 638px; padding: 16px; border: 0; border-radius: 0 8px 0 0;
  overflow: hidden; background: #0f212e; box-shadow: none;
}
.hilo-card-area { position: relative; display: grid; place-items: center; min-width: 0; }
.hilo-current-deck { position: relative; width: 120px; height: 190px; isolation: isolate; }
.hilo-current-deck::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 8px; background: #f1f3f3;
  box-shadow: 0 3px 0 #d9dedd, 0 6px 0 #f6f7f7, 0 9px 0 #d5dbdb, 0 12px 0 #f2f5f4, 0 15px 0 #ccd3d3, 0 18px 0 #f5f6f6;
}
.current-card-wrap { position: relative; width: 100%; height: 100%; perspective: 800px; }
.hilo-card { position: relative; width: 80px; height: 126px; padding: 5px 12px; flex: 0 0 auto; border-radius: 5px; background: #fff; color: #263540; text-align: left; box-sizing: border-box; }
.hilo-card.red { color: #d80040; }
.hilo-card.current { width: 100%; height: 100%; padding: 12px 24px; border-radius: 8px; }
.hilo-card .rank { display: block; font-size: 38px; line-height: 1.2; font-weight: 650; letter-spacing: -1px; }
.hilo-card .suit-centre { display: block; width: 38px; height: 38px; margin-top: 10px; }
.hilo-card .suit-centre svg { display: block; width: 100%; height: 100%; }
.hilo-card.current .rank { font-size: 50px; }
.hilo-card.current .suit-centre { width: 48px; height: 48px; margin-top: 10px; margin-left: -6px; }
.hilo-card.loss { outline: 3px solid #e90049; outline-offset: -3px; }
.hilo-card.dimmed { opacity: .56; }
.hilo-card.back { display: grid; place-items: center; padding: 8px; color: #fff; background: #0789fa; border: 3px solid #fff; }
.hilo-card.back::before { content: ""; position: absolute; inset: 9px; border: 1px solid #b8e6ff; border-radius: 2px; }
.hilo-card.back::after { content: "SS"; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #fff; transform: rotate(-35deg); font-size: 23px; font-style: italic; font-weight: 800; }
.hilo-card-skip { position: absolute; top: -18px; right: -26px; z-index: 2; width: 52px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: #3e596b; color: #fff; box-shadow: 0 2px 6px #06182155; font-size: 25px; cursor: pointer; }
.hilo-card-skip:hover:not(:disabled) { background: #4f7185; }
.hilo-card-skip:disabled { opacity: .45; cursor: not-allowed; }
.hilo-extreme-note { position: absolute; top: 72px; display: grid; justify-items: center; gap: 12px; color: #617581; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; text-transform: uppercase; }
.hilo-extreme-note.left { left: 9%; }
.hilo-extreme-note.right { right: 9%; }
.ghost-card { width: 86px; height: 126px; padding: 9px 14px; border: 2px solid #233945; border-radius: 9px; color: #253d49; text-align: left; font-size: 32px; }
.ghost-card b { font-weight: 700; }
.ghost-card > span { display: block; line-height: .7; margin-top: 10px; font-size: 34px; }
.hilo-cashout-popup { position: absolute; top: calc(50% + 84px); left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-width: 150px; min-height: 132px; padding: 18px; border: 5px solid #00e701; border-radius: 16px; background: #172e3a; color: #00e701; font-size: 18px; text-align: center; box-shadow: 0 6px 20px #0a1c2555; }
.hilo-cashout-popup > strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.hilo-cashout-popup small { font-size: 11px; }
.cashout-divider { width: 60px; height: 3px; background: #3d5462; }
.hilo-projections { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; padding: 16px; border-radius: 8px; background: #213743; }
.hilo-projections > div { display: grid; gap: 7px; min-width: 0; align-content: center; }
.hilo-projections span { color: #b1c3d1; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hilo-projections span strong { font-weight: inherit; }
.hilo-projections output { display: block; min-height: 42px; padding: 10px; border: 1px solid #415969; border-radius: 6px; color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hilo-card-rail { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 8px 8px 28px; overflow-x: auto; overflow-y: hidden; border-radius: 6px; background: #091c26; scrollbar-color: #405865 #091c26; scrollbar-width: thin; }
.card-badge { position: absolute; left: 0; right: 0; bottom: -25px; display: grid; place-items: center; height: 23px; padding: 2px; border-radius: 3px; background: #00e701; color: #123012; font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-badge.loss { background: #e90049; color: #fff; }
.card-badge.skip { background: #405a6a; color: #fff; }
.card-action { position: absolute; left: -24px; top: 44px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid #d6d9da; border-radius: 6px; background: #fff; color: #00dc16; font-size: 23px; line-height: 1; }
.card-action.loss { color: #e90049; }
.card-action.skip { color: #617b8c; }
.empty-note { color: #8ba4b4; font-size: 13px; }
@media (min-width: 761px) {
  .hilo-game-layout, .hilo-game-layout.stats-open { grid-template-columns: 18rem minmax(0,1fr); }
}
@media (max-width: 980px) and (min-width: 761px) {
  .hilo-extreme-note { display: none; }
  .hilo-projections { gap: 10px; padding: 12px; }
  .hilo-projections span { font-size: 12px; }
}
@media (max-width: 760px) {
  .hilo-body.originals-body .hilo-table-panel { grid-template-rows: 244px auto 149px; min-height: 0; padding: 12px; gap: 12px; border-radius: 8px; }
  .hilo-current-deck { width: 100px; height: 158px; }
  .hilo-card.current { padding: 10px 18px; }
  .hilo-card.current .rank { font-size: 42px; }
  .hilo-card.current .suit-centre { width: 40px; height: 40px; margin-top: 8px; margin-left: -4px; }
  .hilo-card-skip { width: 40px; height: 30px; top: -14px; right: -20px; font-size: 22px; }
  .hilo-extreme-note { top: 62px; gap: 9px; font-size: 9px; }
  .hilo-extreme-note.left { left: 0; }
  .hilo-extreme-note.right { right: 0; }
  .ghost-card { width: 55px; height: 82px; padding: 6px 8px; font-size: 22px; border-radius: 6px; }
  .ghost-card > span { font-size: 22px; margin-top: 5px; }
  .originals-body .hilo-projections { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 10px; gap: 10px; }
  .hilo-projections span { font-size: 10px; }
  .hilo-projections output { min-height: 38px; padding: 8px; font-size: 13px; }
  .hilo-card-rail .hilo-card { width: 64px; height: 101px; padding: 4px 10px; }
  .hilo-card-rail .rank { font-size: 31px; }
  .hilo-card-rail .suit-centre { width: 30px; height: 30px; margin-top: 5px; }
  .card-badge { font-size: 11px; }
  .card-action { left: -18px; top: 38px; width: 28px; height: 28px; font-size: 18px; }
  .hilo-cashout-popup { top: calc(50% + 65px); min-width: 128px; min-height: 110px; padding: 14px; gap: 11px; font-size: 15px; border-width: 4px; border-radius: 13px; }
  .hilo-cashout-popup > strong { font-size: 23px; }
}

.hilo-body.originals-body .current-card-wrap { min-height: 0; }

.hilo-body .shared-tool-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hilo-body .text-button { min-height: 32px; padding: 6px 9px; border: 0; border-radius: 5px; background: #2f4a5b; color: #d6e5ef; font-size: 12px; font-weight: 700; cursor: pointer; }
.hilo-body .text-button[aria-pressed="true"] { background: #1678e5; color: #fff; }
