/*==================================================
    Fish Fish - The Casino
    The full-screen 3D floor, its HUD and pause card,
    and the felt panels for each game.
==================================================*/

[data-icon="dice"] { --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='11' height='11' rx='2'/><path d='M10 8V6a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-5'/><circle cx='6.5' cy='11.5' r='.7' fill='black'/><circle cx='10.5' cy='15.5' r='.7' fill='black'/><circle cx='17.5' cy='7.5' r='.7' fill='black'/></svg>"); }

#casinoButton.is-revealed {
    animation: cs-reveal 1.6s ease-out 2;
}

@keyframes cs-reveal {
    0%, 100% { box-shadow: none; }
    40% { box-shadow: 0 0 0 3px #facc15, 0 0 22px 6px rgba(250, 204, 21, 0.6); }
}

.cs-shell {
    --cs-gold: #d4a94a;
    --cs-gold-soft: #f5d08a;
    --cs-felt: #0f4f33;
    --cs-felt-dark: #0a3a25;
    --cs-ink: #fff8e7;
    z-index: 70;
    padding: 0;
    display: block;
    background: #0d0812;
    color: var(--cs-ink);
    font-family: var(--font-body, system-ui, sans-serif);
    user-select: none;
}

.cs-stage,
.cs-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.cs-canvas {
    cursor: grab;
    outline: none;
}

.cs-shell.is-locked .cs-canvas {
    cursor: none;
}


/* HUD */

.cs-hud {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    pointer-events: none;
}

.cs-hud > * {
    pointer-events: auto;
}

/* Who else is in the casino, under the wallet. */
.cs-roster {
    position: absolute;
    top: 68px;
    left: 14px;
    display: grid;
    gap: 6px;
    width: 220px;
    max-height: calc(100% - 140px);
    overflow-y: auto;
    padding: 10px 12px;
    border: 1px solid rgba(212, 169, 74, 0.4);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(14, 8, 20, 0.72);
    color: #fff7ed;
    font-size: 13px;
    pointer-events: none;
}

.cs-roster:empty {
    display: none;
}

.cs-roster > strong {
    display: flex;
    justify-content: space-between;
    color: #d4a94a;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cs-roster > small {
    color: rgba(255, 247, 237, 0.6);
}

.cs-roster ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-roster li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
}

.cs-roster li i {
    grid-row: span 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.cs-roster li span {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-roster li small {
    color: #facc15;
    font-size: 11px;
}

@media (max-width: 760px) {
    .cs-roster {
        width: 170px;
        font-size: 12px;
    }
}

.cs-wallet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 14px;
    border: 1px solid rgba(212, 169, 74, 0.55);
    border-radius: var(--ff-r-pill, 999px);
    background: rgba(14, 8, 20, 0.78);
    font-weight: 800;
    font-size: 15px;
}

.cs-wallet small {
    margin-left: 6px;
    font-weight: 700;
    color: #d6c8a4;
}

.cs-coin,
.cs-pearl {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.cs-coin {
    background: radial-gradient(circle at 35% 30%, #fff5b8, #facc15 45%, #a16207);
    box-shadow: inset 0 0 0 1.5px #92400e;
}

.cs-pearl {
    margin-left: 6px;
    background: radial-gradient(circle at 35% 30%, #ffffff, #e0e7ff 45%, #a5b4fc);
    box-shadow: inset 0 0 0 1px #6366f1;
}

.is-up { color: #4ade80; }
.is-down { color: #f87171; }

.cs-shell.is-locked .cs-leave {
    visibility: hidden;
}

.cs-crosshair {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: rgba(255, 248, 231, 0.85);
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.cs-prompt {
    position: absolute;
    left: 50%;
    bottom: 16%;
    transform: translateX(-50%);
    padding: 10px 18px;
    border: 1px solid var(--cs-gold);
    border-radius: var(--ff-r-lg, 12px);
    background: rgba(14, 8, 20, 0.85);
    font-weight: 800;
    font-size: 17px;
    white-space: nowrap;
    pointer-events: none;
}

.cs-shell kbd {
    display: inline-block;
    min-width: 1.7em;
    margin-right: 4px;
    padding: 1px 6px;
    border: 1px solid var(--cs-gold);
    border-bottom-width: 3px;
    border-radius: var(--ff-r-md, 6px);
    background: #2a1a36;
    color: var(--cs-gold-soft);
    font: 800 13px/1.5 Nunito, system-ui, sans-serif;
    text-align: center;
}

.cs-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    text-align: center;
    font: 700 22px Fredoka, system-ui, sans-serif;
    color: var(--cs-gold-soft);
    background: radial-gradient(circle at 50% 40%, #2a1236, #0d0812 70%);
}

.cs-loading[hidden],
.cs-pause[hidden],
.cs-panel[hidden],
.cs-prompt[hidden] {
    display: none;
}


/* The pause card */

.cs-pause {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(8, 4, 12, 0.55);
    backdrop-filter: blur(2px);
}

.cs-pause section {
    width: min(460px, 100%);
    max-height: calc(100% - 8px);
    overflow: auto;
    padding: 24px 26px;
    border: 2px solid var(--cs-gold);
    border-radius: var(--ff-r-lg, 18px);
    background: linear-gradient(180deg, #24122e, #140a1a);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.cs-pause h2 {
    margin: 0 0 6px;
    font: 700 30px Fredoka, system-ui, sans-serif;
    color: #fb7185;
    text-shadow: 0 0 14px rgba(251, 113, 133, 0.65);
}

.cs-pause p {
    margin: 0 0 14px;
    color: #e7dcc0;
}

.cs-keys {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    text-align: left;
}

.cs-keys li {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.cs-keys li > span {
    text-align: right;
    color: #d6c8a4;
}

.cs-sens {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 700;
    color: #d6c8a4;
}

.cs-sens input {
    accent-color: var(--cs-gold);
}

.cs-pause-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}


/* Buttons */

.cs-go,
.cs-ghost,
.cs-action {
    min-height: 40px;
    padding: 8px 18px;
    border-radius: var(--ff-r-md, 10px);
    font: 800 15px Nunito, system-ui, sans-serif;
    cursor: pointer;
}

.cs-go {
    border: 1px solid #fde68a;
    background: linear-gradient(180deg, #f5c451, #c48a1c);
    color: #2a1405;
    box-shadow: 0 3px 0 #7c5310;
}

.cs-go:hover:not(:disabled) {
    filter: brightness(1.08);
}

.cs-ghost {
    border: 1px solid rgba(212, 169, 74, 0.7);
    background: rgba(20, 10, 26, 0.75);
    color: var(--cs-gold-soft);
}

.cs-action {
    min-width: 92px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #1e293b;
    color: #fff;
    box-shadow: 0 3px 0 #0b1220;
}

.cs-action[data-bj="hit"] { background: #15803d; }
.cs-action[data-bj="stand"] { background: #b91c1c; }
.cs-action[data-bj="double"] { background: #1d4ed8; }
.cs-action[data-bj="split"] { background: #7c3aed; }

.cs-shell button:disabled {
    opacity: 0.45;
    cursor: default;
    filter: grayscale(0.4);
}


/* The game panel */

.cs-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(980px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    border: 2px solid var(--cs-gold);
    border-radius: var(--ff-r-lg, 18px);
    background: linear-gradient(180deg, #1d0f25, #12081a);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    user-select: none;
}

.cs-panel.is-big-win {
    animation: cs-big-win 1.2s ease-in-out 3;
}

@keyframes cs-big-win {
    50% { box-shadow: 0 0 0 4px #facc15, 0 0 60px 12px rgba(250, 204, 21, 0.55); }
}

.cs-panel > header .cs-ghost {
    flex: none;
    white-space: nowrap;
}

.cs-panel > header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(212, 169, 74, 0.35);
}

.cs-panel h2 {
    margin: 0;
    font: 700 26px Fredoka, system-ui, sans-serif;
    color: var(--cs-gold-soft);
}

.cs-panel header p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #cbbd98;
}

.cs-panel-body {
    padding: 14px 18px 16px;
    overflow: auto;
    display: grid;
    gap: 12px;
}

.cs-felt {
    position: relative;
    padding: 16px;
    border: 3px solid #3b1d0b;
    border-radius: var(--ff-r-lg, 16px);
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.08), transparent 60%),
        var(--cs-felt);
    box-shadow: inset 0 0 0 2px rgba(212, 169, 74, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.cs-empty,
.cs-hint {
    margin: 0;
    color: #cfe6d6;
    font-size: 14px;
    text-align: center;
}

.cs-empty {
    padding: 36px 12px;
    font-size: 16px;
}

.cs-message {
    min-height: 1.4em;
    margin: 0;
    text-align: center;
    font-weight: 800;
    font-size: 17px;
}

.cs-message.is-good { color: #4ade80; }
.cs-message.is-bad { color: #fca5a5; }

.cs-actions,
.cs-bet-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cs-bet-total {
    font-weight: 700;
    color: #e7dcc0;
}

.cs-bet-total b {
    color: #fff;
}

.cs-currency {
    display: inline-flex;
    border: 1px solid rgba(212, 169, 74, 0.7);
    border-radius: var(--ff-r-md, 10px);
    overflow: hidden;
}

.cs-currency button {
    padding: 7px 12px;
    border: 0;
    background: transparent;
    color: var(--cs-gold-soft);
    font: 800 14px Nunito, system-ui, sans-serif;
    cursor: pointer;
}

.cs-currency button.is-on {
    background: var(--cs-gold);
    color: #2a1405;
}


/* Chips */

.cs-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.cs-chip {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px dashed rgba(255, 255, 255, 0.85);
    background: var(--chip);
    box-shadow: 0 0 0 2px var(--chip), 0 3px 6px rgba(0, 0, 0, 0.5);
    color: #fff;
    font: 900 13px Nunito, system-ui, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: transform 0.12s;
}

.cs-chip[data-chip="0"] {
    border-color: #b91c1c;
    color: #111;
    text-shadow: none;
}

.cs-chip.is-on {
    transform: translateY(-5px);
    box-shadow: 0 0 0 2px var(--chip), 0 0 0 5px #facc15, 0 6px 10px rgba(0, 0, 0, 0.5);
}

.cs-chip-mark {
    position: absolute;
    right: 3px;
    bottom: 3px;
    min-width: 26px;
    height: 26px;
    padding: 0 3px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.9);
    background: var(--chip);
    box-shadow: 0 0 0 1.5px var(--chip), 0 2px 4px rgba(0, 0, 0, 0.6);
    color: #fff;
    font: 900 10px Nunito, system-ui, sans-serif;
    text-shadow: 0 1px 2px #000;
    pointer-events: none;
}


/* Cards */

.cs-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    min-height: 98px;
}

.cs-card {
    position: relative;
    width: 66px;
    height: 94px;
    border-radius: var(--ff-r-md, 8px);
    background: #fdfcf7;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    color: #111827;
    font-family: Georgia, serif;
    flex: none;
}

.cs-card.is-red {
    color: #c81e1e;
}

.cs-card.is-back {
    background:
        repeating-linear-gradient(45deg, #b91c1c 0 6px, #991b1b 6px 12px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 0 0 4px #fdfcf7, inset 0 0 0 6px var(--cs-gold);
}

.cs-card.is-new {
    animation: cs-deal 0.34s cubic-bezier(0.2, 0.8, 0.3, 1.15) both;
}

@keyframes cs-deal {
    from { opacity: 0; transform: translate(-60px, -50px) rotate(-14deg) scale(0.8); }
}

.cs-corner {
    position: absolute;
    left: 5px;
    top: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.cs-corner-b {
    left: auto;
    top: auto;
    right: 5px;
    bottom: 4px;
    transform: rotate(180deg);
}

.cs-pip {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 34px;
}

.cs-card[data-hold] {
    cursor: pointer;
    transition: transform 0.12s;
}

.cs-card[data-hold]:hover {
    transform: translateY(-3px);
}

.cs-card.is-held {
    transform: translateY(-10px);
    box-shadow: 0 0 0 3px #facc15, 0 8px 14px rgba(0, 0, 0, 0.5);
}

.cs-held {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    padding: 1px 6px;
    border-radius: var(--ff-r-md, 6px);
    background: #facc15;
    color: #2a1405;
    font: 900 11px Nunito, system-ui, sans-serif;
    letter-spacing: 0.06em;
}


/* Blackjack and baccarat hands */

.cs-hand {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 8px 10px 10px;
    border: 2px solid transparent;
    border-radius: var(--ff-r-lg, 14px);
}

.cs-hand-label {
    font-weight: 800;
    color: #e7f5ea;
}

.cs-hand-label b {
    color: #fff;
    font-size: 17px;
}

.cs-dealer {
    margin-bottom: 8px;
}

.cs-hands,
.cs-bc-hands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.cs-hand.is-active {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.08);
}

.cs-hand.is-win,
.cs-hand.is-blackjack {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
}

.cs-hand.is-lose,
.cs-hand.is-bust {
    opacity: 0.75;
}

.cs-bc-hands .cs-hand {
    min-width: 230px;
}


/* Bet spots (baccarat and craps) */

.cs-spots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.cs-spot {
    position: relative;
    min-width: 170px;
    min-height: 78px;
    padding: 10px 40px 10px 14px;
    display: grid;
    align-content: center;
    gap: 2px;
    border: 2px solid rgba(255, 236, 170, 0.75);
    border-radius: var(--ff-r-lg, 14px);
    background: rgba(0, 0, 0, 0.12);
    color: #fff8e7;
    text-align: left;
    cursor: pointer;
}

.cs-spot strong {
    font: 700 19px Georgia, serif;
    letter-spacing: 0.04em;
}

.cs-spot small {
    font-size: 12px;
    color: #cfe6d6;
}

.cs-spot:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
}

.cs-spot.is-win {
    border-color: #4ade80;
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.55);
}

.cs-shell .cs-spot.is-locked:disabled {
    opacity: 1;
    filter: none;
}


/* Roulette */

.cs-rl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

.cs-rl-wheel {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.cs-wheel {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.cs-rl-history {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    max-width: 240px;
    min-height: 24px;
    font-size: 12px;
    color: #cfe6d6;
}

.cs-rl-history span {
    min-width: 24px;
    padding: 2px 4px;
    border-radius: var(--ff-r-md, 6px);
    font-weight: 800;
    text-align: center;
    color: #fff;
}

.cs-rl-history span:first-child {
    outline: 2px solid #facc15;
}

.cs-rl-board-wrap {
    min-width: 0;
    overflow-x: auto;
    display: grid;
    gap: 8px;
}

.cs-rl-board {
    display: grid;
    grid-template-columns: 1.2fr repeat(12, 1fr) 1.2fr;
    grid-template-rows: repeat(3, 44px) 38px 38px;
    gap: 2px;
    min-width: 560px;
}

.cs-rl-cell {
    position: relative;
    border: 1px solid rgba(255, 236, 170, 0.7);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    font: 700 15px Georgia, serif;
    cursor: pointer;
    padding: 0;
}

.cs-rl-cell:hover:not(:disabled) {
    outline: 2px solid #facc15;
    z-index: 1;
}

.cs-rl-cell .cs-chip-mark {
    right: 50%;
    bottom: 50%;
    transform: translate(50%, 50%);
    min-width: 24px;
    height: 24px;
}

.cs-rl-cell.is-red,
.cs-rl-history .is-red { background: #b91c1c; }
.cs-rl-cell.is-black,
.cs-rl-history .is-black { background: #111827; }
.cs-rl-cell.is-green,
.cs-rl-history .is-green { background: #15803d; }

.cs-rl-cell.is-hit {
    box-shadow: 0 0 0 3px #facc15, 0 0 16px #facc15;
    z-index: 2;
    animation: cs-hit 0.6s ease-in-out 4 alternate;
}

@keyframes cs-hit {
    to { filter: brightness(1.6); }
}

.cs-rl-zero { grid-column: 1; grid-row: 1 / span 3; }
.cs-rl-r1 { grid-row: 1; }
.cs-rl-r2 { grid-row: 2; }
.cs-rl-r3 { grid-row: 3; }
.cs-rl-c2 { grid-column: 2; }
.cs-rl-c3 { grid-column: 3; }
.cs-rl-c4 { grid-column: 4; }
.cs-rl-c5 { grid-column: 5; }
.cs-rl-c6 { grid-column: 6; }
.cs-rl-c7 { grid-column: 7; }
.cs-rl-c8 { grid-column: 8; }
.cs-rl-c9 { grid-column: 9; }
.cs-rl-c10 { grid-column: 10; }
.cs-rl-c11 { grid-column: 11; }
.cs-rl-c12 { grid-column: 12; }
.cs-rl-c13 { grid-column: 13; }
.cs-rl-col { grid-column: 14; font-size: 13px; }
.cs-rl-dozen { grid-row: 4; font-size: 14px; }
.cs-rl-d1 { grid-column: 2 / span 4; }
.cs-rl-d2 { grid-column: 6 / span 4; }
.cs-rl-d3 { grid-column: 10 / span 4; }
.cs-rl-out { grid-row: 5; font-size: 14px; }
.cs-rl-o1 { grid-column: 2 / span 2; }
.cs-rl-o2 { grid-column: 4 / span 2; }
.cs-rl-o3 { grid-column: 6 / span 2; }
.cs-rl-o4 { grid-column: 8 / span 2; }
.cs-rl-o5 { grid-column: 10 / span 2; }
.cs-rl-o6 { grid-column: 12 / span 2; }


/* Craps */

.cs-cr-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.cs-puck {
    width: 62px;
    height: 62px;
    display: grid;
    place-content: center;
    border-radius: 50%;
    background: #111827;
    border: 3px solid #f8fafc;
    color: #f8fafc;
    font: 900 14px Nunito, system-ui, sans-serif;
    text-align: center;
    line-height: 1;
}

.cs-puck.is-on {
    background: #f8fafc;
    border-color: #111827;
    color: #111827;
}

.cs-puck b {
    display: block;
    font-size: 22px;
}

.cs-dice {
    display: flex;
    gap: 12px;
}

.cs-die {
    width: 56px;
    height: 56px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    border-radius: var(--ff-r-md, 11px);
    background: #f8fafc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 -3px 0 #d4d4d8;
}

.cs-die i {
    margin: 2px;
    border-radius: 50%;
}

.cs-die i.on {
    background: #b91c1c;
}

.cs-die.is-rolling {
    animation: cs-tumble 0.18s linear infinite;
}

@keyframes cs-tumble {
    25% { transform: rotate(14deg) translateY(-6px); }
    75% { transform: rotate(-12deg) translateY(3px); }
}

.cs-cr-numbers {
    display: flex;
    gap: 4px;
}

.cs-cr-numbers span {
    width: 40px;
    padding: 8px 0;
    border: 1px solid rgba(255, 236, 170, 0.7);
    border-radius: var(--ff-r-md, 6px);
    font: 700 17px Georgia, serif;
    text-align: center;
}

.cs-cr-numbers .is-point {
    background: #f8fafc;
    color: #111827;
}

.cs-cr-spots .cs-spot {
    min-width: 200px;
}


/* Video poker */

.cs-vp {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.1), transparent 60%),
        #0b1e6b;
    border-color: #1e1b3a;
}

.cs-pays {
    width: 100%;
    margin-bottom: 14px;
    border-collapse: collapse;
    font: 700 14px "Courier New", monospace;
    color: #e0e7ff;
}

.cs-pays td {
    padding: 2px 8px;
}

.cs-pays td:nth-child(2),
.cs-pays td:nth-child(3) {
    text-align: right;
    color: #fde047;
}

.cs-pays tr.is-made {
    background: #facc15;
    color: #111827;
}

.cs-pays tr.is-made td {
    color: #111827;
}

.cs-vp-cards {
    padding-bottom: 22px;
}


/* The bar and the cashier */

.cs-bar {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(251, 146, 60, 0.18), transparent 60%),
        #2a160b;
    border-color: #1a0f08;
}

.cs-bar-greet {
    margin: 0 0 10px;
    text-align: center;
    font: italic 700 18px Georgia, serif;
    color: #fed7aa;
}

.cs-drinks {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.cs-drinks li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(251, 146, 60, 0.35);
    border-radius: var(--ff-r-md, 10px);
    background: rgba(0, 0, 0, 0.2);
}

.cs-drinks strong {
    display: block;
    font-size: 16px;
    color: #fff7ed;
}

.cs-drinks small {
    color: #fdba74;
}

.cs-drinks .cs-go {
    flex: none;
    min-width: 132px;
}

.cs-cash {
    background: #14261d;
    overflow-x: auto;
}

.cs-cash-table {
    width: 100%;
    border-collapse: collapse;
    font-weight: 700;
}

.cs-cash-table th,
.cs-cash-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 236, 170, 0.2);
    text-align: right;
    white-space: nowrap;
}

.cs-cash-table thead th {
    font-size: 12px;
    color: #cbbd98;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cs-cash-table tbody th {
    text-align: left;
    color: var(--cs-gold-soft);
}

.cs-cash h3 {
    margin: 16px 0 8px;
    font: 700 17px Fredoka, system-ui, sans-serif;
    color: var(--cs-gold-soft);
}

.cs-rounds {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-rounds li {
    padding: 6px 12px;
    border: 1px solid rgba(255, 236, 170, 0.35);
    border-radius: var(--ff-r-pill, 999px);
    font-weight: 700;
}

.cs-rounds b {
    margin-left: 8px;
    color: #fff;
}

.cs-cash .cs-hint {
    text-align: left;
}


/* Short or narrow screens */

@media (max-width: 760px) {
    .cs-panel {
        width: calc(100% - 16px);
        max-height: calc(100% - 16px);
        border-radius: var(--ff-r-lg, 14px);
    }

    .cs-panel > header {
        padding: 10px 12px 8px;
    }

    .cs-panel h2 {
        font-size: 21px;
    }

    .cs-panel > header .cs-ghost {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .cs-panel-body {
        padding: 10px 12px 12px;
    }

    .cs-felt {
        padding: 10px;
    }

    .cs-card {
        width: 48px;
        height: 70px;
        border-radius: var(--ff-r-md, 6px);
    }

    .cs-cards {
        min-height: 72px;
        gap: 5px;
    }

    .cs-corner {
        font-size: 12px;
    }

    .cs-pip {
        font-size: 24px;
    }

    .cs-rl {
        grid-template-columns: 1fr;
    }

    .cs-wheel {
        width: 170px;
        height: 170px;
    }

    .cs-spot,
    .cs-cr-spots .cs-spot {
        min-width: 0;
        flex: 1 1 140px;
    }

    .cs-bc-hands .cs-hand {
        min-width: 0;
    }

    .cs-chip {
        width: 42px;
        height: 42px;
        font-size: 12px;
    }

    .cs-keys li {
        grid-template-columns: 110px 1fr;
    }

    .cs-cash-table th,
    .cs-cash-table td {
        padding: 6px 5px;
        font-size: 13px;
    }

    .cs-wallet {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-height: 560px) {
    .cs-card {
        width: 50px;
        height: 72px;
    }

    .cs-cards {
        min-height: 74px;
    }

    .cs-pip {
        font-size: 24px;
    }

    .cs-wheel {
        width: 160px;
        height: 160px;
    }

    .cs-rl-board {
        grid-template-rows: repeat(3, 34px) 30px 30px;
    }

    .cs-panel h2 {
        font-size: 21px;
    }

    .cs-panel header p {
        font-size: 12px;
    }

    /* The paytable in three columns, without the amounts. */
    .cs-pays tbody {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 14px;
    }

    .cs-pays tr {
        display: flex;
        justify-content: space-between;
    }

    .cs-pays td:nth-child(3) {
        display: none;
    }

    .cs-pays {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-card.is-new,
    .cs-die.is-rolling,
    .cs-panel.is-big-win,
    .cs-rl-cell.is-hit,
    #casinoButton.is-revealed {
        animation: none;
    }
}

html.ff-low-detail .cs-panel.is-big-win,
html.ff-low-detail #casinoButton.is-revealed {
    animation: none;
}
