@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

.slots-page-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.slots-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: #0f2a3b;
    border: 1px solid #1c3d52;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.slots-controls {
    background: #203f52;
    border-right: 1px solid #2f5a73;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slots-mode-toggle {
    background: #102b3b;
    border: 1px solid #315c74;
    border-radius: 999px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.slots-mode-toggle .mode-btn {
    min-height: 36px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #d8ebf6;
    font: 600 14px "Space Grotesk", sans-serif;
}

.slots-mode-toggle .mode-btn.active {
    background: #3f6379;
    color: #f4fbff;
}

.slots-controls label {
    color: #d7e8f3;
    font: 500 14px "Space Grotesk", sans-serif;
    display: block;
    margin-bottom: 6px;
}

.slots-select-wrap select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #3f6379;
    border-radius: 8px;
    background: #143245;
    color: #f2fbff;
    font: 700 26px "Barlow Condensed", sans-serif;
    padding: 0 12px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #d3e3ee 50%), linear-gradient(135deg, #d3e3ee 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.slots-input-row {
    min-height: 42px;
    border: 1px solid #3f6379;
    border-radius: 8px;
    background: #143245;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slots-input-row input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #f2fbff;
    font: 700 30px "Barlow Condensed", sans-serif;
    padding: 6px 10px;
}

.slots-input-row input::-webkit-outer-spin-button,
.slots-input-row input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slots-currency {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffd400;
    color: #0f2a1e;
    font: 700 13px "Space Grotesk", sans-serif;
}

.slots-modifiers {
    display: flex;
    align-items: stretch;
    height: 100%;
    border-left: 1px solid #3f6073;
}

.slots-mod-btn {
    min-width: 48px;
    border: none;
    background: #3e6276;
    color: #eef9ff;
    font: 600 18px "Barlow Condensed", sans-serif;
    cursor: pointer;
}

.slots-mod-btn + .slots-mod-btn {
    border-left: 1px solid #567b92;
}

.slots-spin-btn {
    min-height: 44px;
    border: none;
    border-radius: 9px;
    background: #277cd8;
    color: #eff9ff;
    font: 700 22px "Barlow Condensed", sans-serif;
    cursor: pointer;
}

.slots-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.slots-main {
    min-height: 650px;
    padding: 14px;
    background: radial-gradient(140% 95% at 50% 8%, #12364f 0%, #0b2b41 58%, #09273b 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slots-machine {
    position: relative;
    margin: auto;
    width: min(920px, 100%);
    border: 1px solid #2a5169;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(26, 60, 81, 0.85) 0%, rgba(16, 42, 59, 0.92) 100%);
    box-shadow: inset 0 0 0 1px rgba(92, 138, 165, 0.25), 0 20px 32px rgba(0, 0, 0, 0.26);
    padding: 20px 18px 20px;
}

.slots-payout-ribbon {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    min-height: 36px;
    border-radius: 8px;
    background: #304f63;
    color: #eff9ff;
    font: 700 32px "Barlow Condensed", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
}

.slots-grid-wrap {
    position: relative;
    border: 1px solid #40657d;
    border-radius: 10px;
    overflow: hidden;
    background: #0d2a3e;
}

.slots-reels {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.slots-reel {
    border-left: 1px solid rgba(76, 120, 145, 0.22);
    display: grid;
    grid-template-rows: repeat(3, 150px);
    background: linear-gradient(180deg, rgba(14, 48, 69, 0.8), rgba(10, 37, 56, 0.92));
}

.slots-reel:first-child {
    border-left: none;
}

.slots-cell {
    border-top: 1px solid rgba(76, 120, 145, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slots-cell:first-child {
    border-top: none;
}

.slots-symbol {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    border: 1px solid rgba(180, 212, 228, 0.22);
    background: rgba(16, 53, 76, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.slots-symbol-text {
    font: 700 56px "Barlow Condensed", sans-serif;
    line-height: 1;
}

.slots-symbol.is-7 { color: #ffd141; }
.slots-symbol.is-gem { color: #42f163; }
.slots-symbol.is-heart { color: #ff5b7c; }
.slots-symbol.is-spade { color: #4f93ff; }
.slots-symbol.is-club { color: #9f7bff; }
.slots-symbol.is-diamond { color: #4de874; }
.slots-symbol.is-wild { color: #ffd94a; box-shadow: 0 0 24px rgba(255, 220, 90, 0.35); }

.slots-reel.spinning .slots-symbol {
    filter: blur(2px) saturate(1.2);
    opacity: 0.88;
}

.slots-cell.win .slots-symbol {
    border-color: #1aff00;
    box-shadow: 0 0 0 3px rgba(26, 255, 0, 0.22), 0 0 16px rgba(26, 255, 0, 0.36);
    transform: scale(1.06);
}

.slots-cell.dim .slots-symbol {
    opacity: 0.22;
}

.slots-payline-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.slots-payline-svg .payline-path {
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.slots-line-payouts {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.line-payout-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    min-width: 106px;
    min-height: 58px;
    border-radius: 10px;
    border: 2px solid #1cff00;
    background: rgba(20, 52, 74, 0.96);
    color: #14ff2c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.line-payout-tag .x {
    font: 700 36px "Barlow Condensed", sans-serif;
    line-height: 1;
}

.line-payout-tag .amt {
    font: 700 28px "Barlow Condensed", sans-serif;
    line-height: 1;
}

.slots-result {
    margin-top: 14px;
    min-height: 58px;
    border-radius: 8px;
    background: #2f5064;
    color: #f0f8fc;
    font: 700 34px "Barlow Condensed", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slots-result.win {
    color: #00e701;
}

.slots-result.loss {
    color: #ff617c;
}

@media (max-width: 980px) {
    .slots-page {
        grid-template-columns: 1fr;
    }

    .slots-controls {
        border-right: none;
        border-bottom: 1px solid #315d76;
    }

    .slots-reel {
        grid-template-rows: repeat(3, 104px);
    }

    .slots-symbol {
        width: 72px;
        height: 72px;
        font-size: 40px;
    }

    .slots-result {
        font-size: 28px;
    }
}
