/**
 * Wild Crown Safari (سافاری تاج وحشی)
 * GoldenX Casino — Production Stylesheet
 * Colors: Midnight Indigo, Deep Violet, Sunset Amber, Coral, Turquoise, Champagne Gold
 */

:root {
    --wcs-bg-midnight: #0B0E1F;
    --wcs-bg-deep-violet: #181131;
    --wcs-bg-card: rgba(24, 17, 49, 0.85);
    --wcs-gold-light: #FDE68A;
    --wcs-gold: #F59E0B;
    --wcs-gold-dark: #B45309;
    --wcs-coral: #F43F5E;
    --wcs-turquoise: #14B8A6;
    --wcs-amber: #D97706;
    --wcs-text: #F8FAFC;
    --wcs-text-muted: #94A3B8;
    --wcs-border: rgba(245, 158, 11, 0.25);
    --wcs-radius: 12px;
}

#wildCrownSafariGame.wcs-root {
    position: relative;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    min-height: 850px;
    padding: 16px 12px 32px;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--wcs-text);
    overflow-x: clip;
    user-select: none;
    -webkit-user-select: none;
}

.wcs-backdrop {
    position: absolute;
    inset: 0;
    background: url('/img/games/wild-crown-safari/background.webp') no-repeat center center / cover;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    border-radius: var(--wcs-radius);
}

.wcs-ambient-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(244, 63, 94, 0.12), rgba(20, 184, 166, 0.08) 50%, rgba(11, 14, 31, 0.95) 90%);
    pointer-events: none;
    z-index: 1;
}

/* ================= Topbar ================= */
.wcs-topbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(15, 12, 36, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--wcs-border);
    border-radius: 12px;
    margin-bottom: 12px;
}

.wcs-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wcs-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    min-width: 44px;
    padding: 0 10px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.wcs-nav-back:hover {
    color: var(--wcs-gold-light);
    background: rgba(245, 158, 11, 0.1);
}

.wcs-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wcs-kicker {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--wcs-turquoise);
    font-weight: 700;
    text-transform: uppercase;
}

.wcs-brand-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--wcs-gold-light);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.wcs-brand-title i {
    font-style: normal;
    color: var(--wcs-coral);
}

.wcs-brand-subtitle {
    font-size: 11px;
    color: var(--wcs-text-muted);
}

.wcs-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.wcs-dot-live {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--wcs-turquoise);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--wcs-turquoise);
    animation: wcsPulse 1.8s infinite;
}

.wcs-rtp-badge {
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: var(--wcs-turquoise);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
}

/* ================= Stage ================= */
.wcs-stage {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ================= Jackpot Header ================= */
.wcs-jackpot-header {
    width: 100%;
    max-width: 720px;
    background: linear-gradient(135deg, rgba(27, 18, 54, 0.9), rgba(45, 25, 78, 0.9));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 10px 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.15);
}

.wcs-jackpot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wcs-jackpot-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--wcs-gold);
    letter-spacing: 2px;
}

.wcs-jackpot-value {
    font-size: 26px;
    font-weight: 900;
    color: #FFF;
    background: linear-gradient(180deg, #FFF9D2 0%, #FBBF24 50%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.5));
}

.wcs-jackpot-sub {
    font-size: 11px;
    color: var(--wcs-text-muted);
}

/* ================= Cascade Multiplier Strip ================= */
.wcs-multiplier-strip {
    width: 100%;
    max-width: 720px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(18, 14, 40, 0.85);
    border: 1px solid var(--wcs-border);
    border-radius: 10px;
    gap: 8px;
}

.wcs-meter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--wcs-text-muted);
    white-space: nowrap;
}

.wcs-meter-nodes {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.wcs-node {
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 800;
    color: var(--wcs-text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wcs-node.active {
    color: #111;
    background: linear-gradient(135deg, #FDE68A, #F59E0B);
    border-color: #FBBF24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
    transform: scale(1.1);
}

.wcs-node.hot {
    color: #FFF;
    background: linear-gradient(135deg, #F43F5E, #E11D48);
    border-color: #FB7185;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.8);
    transform: scale(1.15);
    animation: wcsPulse 1s infinite alternate;
}

.wcs-stampede-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--wcs-turquoise);
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ================= Cabinet Frame & 5x4 Grid ================= */
.wcs-cabinet-section {
    position: relative;
    width: 100%;
    max-width: 720px;
}

.wcs-cabinet-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    max-height: 520px;
    background: #110B24 url('/img/games/wild-crown-safari/ui/cabinet.webp') no-repeat center center / 100% 100%;
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcs-reels {
    position: relative;
    width: 94%;
    height: 90%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    z-index: 2;
}

.wcs-column {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 6px;
    height: 100%;
}

.wcs-cell {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(16, 11, 36, 0.65);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
}

.wcs-cell img {
    max-width: 86%;
    max-height: 86%;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.wcs-cell.spinning img {
    animation: wcsReelSpin 0.15s infinite linear;
    filter: blur(1.5px);
}

.wcs-cell.winning {
    border-color: var(--wcs-gold);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(16, 11, 36, 0.8) 80%);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.8), inset 0 0 10px rgba(245, 158, 11, 0.5);
    z-index: 5;
}

.wcs-cell.winning img {
    transform: scale(1.15);
    animation: wcsWinBounce 0.6s infinite alternate ease-in-out;
}

.wcs-cell.tumble-out {
    animation: wcsTumbleOut 0.35s forwards ease-in;
}

.wcs-cell.tumble-in {
    animation: wcsTumbleIn 0.4s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wcs-cell.stampede-expanded {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.35) 0%, rgba(16, 11, 36, 0.9) 80%);
    border-color: var(--wcs-turquoise);
    box-shadow: 0 0 18px rgba(20, 184, 166, 0.9);
}

.wcs-cell.stampede-expanded img {
    animation: wcsStampedePulse 0.8s infinite alternate ease-in-out;
}

/* Floating Badges inside frame */
.wcs-cascade-float {
    position: absolute;
    bottom: 8px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 6;
}

.wcs-float-pill {
    background: rgba(11, 8, 26, 0.85);
    border: 1px solid var(--wcs-border);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--wcs-text-muted);
}

.wcs-float-pill b {
    color: var(--wcs-gold-light);
}

.wcs-float-pill--ways b {
    color: var(--wcs-turquoise);
}

/* ================= Status Message ================= */
.wcs-message {
    width: 100%;
    max-width: 720px;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wcs-gold-light);
    background: rgba(27, 18, 54, 0.75);
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    min-height: 20px;
}

/* ================= Summary Bar ================= */
.wcs-summary-bar {
    width: 100%;
    max-width: 720px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
}

.wcs-stat-card {
    background: var(--wcs-bg-card);
    border: 1px solid var(--wcs-border);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wcs-stat-card small {
    font-size: 11px;
    color: var(--wcs-text-muted);
    font-weight: 600;
}

.wcs-stat-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--wcs-text);
    margin-top: 2px;
}

.wcs-stat-val--win {
    color: var(--wcs-gold-light);
}

.wcs-stat-val--balance {
    color: var(--wcs-turquoise);
}

/* ================= Controls ================= */
.wcs-controls {
    width: 100%;
    max-width: 720px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    align-items: center;
    gap: 12px;
    background: rgba(18, 12, 40, 0.9);
    border: 1px solid var(--wcs-border);
    border-radius: 14px;
    padding: 12px 16px;
}

.wcs-control-label {
    display: block;
    font-size: 11px;
    color: var(--wcs-text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.wcs-bet-picker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wcs-btn-asset {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.15s, filter 0.15s;
}

.wcs-btn-asset:hover:not(:disabled) {
    transform: scale(1.08);
    filter: brightness(1.2);
}

.wcs-btn-asset:active:not(:disabled) {
    transform: scale(0.95);
}

.wcs-btn-asset:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wcs-btn-asset img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.wcs-bet-display {
    flex: 1;
}

.wcs-bet-display input {
    width: 100%;
    height: 44px;
    min-height: 44px;
    background: rgba(11, 8, 26, 0.9);
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    color: #FFF;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

.wcs-bet-display input:focus {
    border-color: var(--wcs-gold);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* Spin Button */
.wcs-spin-section {
    display: flex;
    justify-content: center;
}

.wcs-spin-btn {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
    filter: drop-shadow(0 6px 14px rgba(245, 158, 11, 0.4));
}

.wcs-spin-btn:hover:not(:disabled) {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 18px rgba(245, 158, 11, 0.7));
}

.wcs-spin-btn:active:not(:disabled) {
    transform: scale(0.92);
}

.wcs-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.wcs-spin-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.wcs-spin-btn.active img {
    animation: wcsPawRotate 1s infinite linear;
}

/* Options */
.wcs-options-section {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.wcs-select {
    height: 44px;
    min-height: 44px;
    background: rgba(11, 8, 26, 0.9);
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    color: var(--wcs-text);
    font-size: 13px;
    font-weight: 600;
    padding: 0 8px;
    outline: none;
    cursor: pointer;
}

.wcs-turbo-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.wcs-turbo-toggle input {
    display: none;
}

.wcs-turbo-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(11, 8, 26, 0.9);
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--wcs-text-muted);
    transition: all 0.2s;
}

.wcs-turbo-toggle input:checked + .wcs-turbo-switch {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--wcs-gold);
    color: var(--wcs-gold-light);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* ================= Tools Nav ================= */
.wcs-tools {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.wcs-tools button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(24, 17, 49, 0.7);
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    color: var(--wcs-text-muted);
    font-size: 12px;
    font-weight: 600;
    min-height: 44px;
    min-width: 44px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.wcs-tools button:hover {
    color: var(--wcs-gold-light);
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.1);
}

/* ================= Bonus & Stampede Overlays ================= */
.wcs-bonus-banner,
.wcs-stampede-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 8, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wcs-bonus-banner[aria-hidden="false"],
.wcs-stampede-overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.wcs-bonus-inner,
.wcs-stampede-content {
    background: linear-gradient(135deg, rgba(35, 23, 69, 0.95), rgba(20, 14, 46, 0.95));
    border: 2px solid var(--wcs-gold);
    border-radius: 16px;
    padding: 28px 36px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.4);
    max-width: 440px;
    width: 90%;
    animation: wcsPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wcs-bonus-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--wcs-gold);
}

.wcs-bonus-headline,
.wcs-stampede-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--wcs-gold-light);
    margin: 8px 0;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.wcs-bonus-count-wrap {
    font-size: 40px;
    font-weight: 900;
    color: #FFF;
    margin: 12px 0;
}

.wcs-bonus-count-wrap small {
    font-size: 14px;
    color: var(--wcs-text-muted);
}

/* ================= Modal ================= */
.wcs-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.wcs-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.wcs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wcs-modal-sheet {
    position: relative;
    width: 90%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--wcs-bg-deep-violet);
    border: 1px solid var(--wcs-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    z-index: 2;
}

.wcs-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--wcs-text-muted);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wcs-modal-close:hover {
    color: #FFF;
    background: rgba(244, 63, 94, 0.4);
}

.wcs-modal-body h3 {
    margin: 4px 0 8px;
    color: var(--wcs-gold-light);
    font-size: 18px;
}

.wcs-modal-body p {
    font-size: 13px;
    color: var(--wcs-text-muted);
    line-height: 1.6;
}

.wcs-paytable-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.wcs-pay-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(11, 8, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
}

.wcs-pay-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.wcs-pay-card strong {
    display: block;
    font-size: 12px;
    color: var(--wcs-text);
}

.wcs-pay-card span {
    font-size: 11px;
    color: var(--wcs-gold);
}

.wcs-card-badges {
    display: flex;
    gap: 4px;
}

.wcs-card-badges span {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(20, 184, 166, 0.2);
    border-radius: 4px;
    color: var(--wcs-turquoise);
    font-size: 11px;
    font-weight: 700;
}

.wcs-rules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.wcs-rules-grid div {
    background: rgba(11, 8, 26, 0.7);
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
}

.wcs-rules-grid b {
    display: block;
    font-size: 15px;
    color: var(--wcs-gold-light);
}

.wcs-rules-grid span {
    font-size: 10px;
    color: var(--wcs-text-muted);
}

.wcs-rules-list {
    margin: 12px 0 0;
    padding-right: 18px;
    font-size: 13px;
    color: var(--wcs-text-muted);
    line-height: 1.7;
}

.wcs-rules-list strong {
    color: var(--wcs-text);
}

.wcs-fair-fields label {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wcs-text-muted);
}

.wcs-fair-fields input {
    width: 100%;
    height: 44px;
    min-height: 44px;
    background: rgba(11, 8, 26, 0.9);
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    color: var(--wcs-turquoise);
    font-family: monospace;
    font-size: 13px;
    padding: 0 10px;
    margin-top: 4px;
    box-sizing: border-box;
}

/* ================= Keyframe Animations ================= */
@keyframes wcsPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; transform: scale(1.05); }
}

@keyframes wcsReelSpin {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(8px); }
}

@keyframes wcsWinBounce {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.22); filter: drop-shadow(0 0 10px #F59E0B); }
}

@keyframes wcsTumbleOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.4) translateY(20px); }
}

@keyframes wcsTumbleIn {
    0% { opacity: 0; transform: translateY(-40px) scale(1.2); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wcsPawRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wcsPopIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes wcsStampedePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 6px #14B8A6); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 16px #14B8A6); }
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 768px) {
    #wildCrownSafariGame.wcs-root {
        padding: 8px 6px 24px;
    }

    .wcs-controls {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 12px;
    }

    .wcs-bet-picker {
        justify-content: center;
    }

    .wcs-options-section {
        justify-content: center;
    }

    .wcs-jackpot-value {
        font-size: 22px;
    }

    .wcs-rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wcs-brand-title {
        font-size: 17px;
    }

    .wcs-cabinet-frame {
        padding: 8px;
        border-radius: 12px;
    }

    .wcs-reels {
        gap: 4px;
    }

    .wcs-column {
        gap: 4px;
    }

    .wcs-cell {
        border-radius: 6px;
    }

    .wcs-summary-bar {
        grid-template-columns: 1fr 1fr;
    }

    .wcs-stat-card--wallet {
        grid-column: span 2;
    }
}

.wcs-retry-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FDE68A, #F59E0B);
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    min-height: 32px;
    transition: transform 0.15s, filter 0.15s;
}

.wcs-retry-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

@media (max-height: 520px) and (orientation: landscape) {
    #wildCrownSafariGame.wcs-root {
        padding: 4px 8px 16px;
        min-height: auto;
    }
    .wcs-jackpot-header {
        padding: 4px 8px;
    }
    .wcs-jackpot-value {
        font-size: 18px;
    }
    .wcs-cabinet-frame {
        max-height: 340px;
    }
    .wcs-controls {
        padding: 6px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wcs-cell.spinning img,
    .wcs-cell.winning img,
    .wcs-spin-btn.active img,
    .wcs-node.hot {
        animation: none !important;
    }
}
