.ny-gifts-page {
    padding-bottom: 36px;
}

.nyg-roulette-card {
    position: relative;
    margin-bottom: 24px;
    padding: 24px 26px 26px;
    border-radius: 20px;
    border: 1px solid rgba(180, 196, 214, 0.14);
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(142, 224, 255, 0.08) 0%, transparent 72%),
        linear-gradient(180deg, #242733 0%, #1d202a 100%);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.72);
}

.nyg-roulette-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.nyg-roulette-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nyg-badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #50d3a0;
    box-shadow: 0 0 12px rgba(80, 211, 160, 0.75);
}

.nyg-roulette-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #f2f5fb;
}

.nyg-roulette-card__pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(80, 211, 160, 0.25);
    background: rgba(80, 211, 160, 0.1);
    font-size: 11px;
    font-weight: 600;
    color: #7ee5ba;
}

.nyg-roulette-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nyg-sound-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(180, 196, 214, 0.16);
    background: rgba(16, 19, 28, 0.6);
    color: #9ee2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nyg-sound-btn:hover {
    background: rgba(30, 36, 52, 0.85);
    border-color: rgba(142, 224, 255, 0.36);
    color: #ffffff;
}

.nyg-sound-btn.is-muted {
    color: #7c859a;
    border-color: rgba(255, 255, 255, 0.08);
}

.nyg-reel {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(180, 196, 214, 0.14);
    background: #151822;
    padding: 0;
    overflow: hidden;
}

.nyg-reel__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.nyg-reel__track {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    align-items: stretch;
    gap: 12px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.nyg-reel__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 96px;
    z-index: 3;
    pointer-events: none;
}

.nyg-reel__fade--left {
    left: 0;
    background: linear-gradient(90deg, #151822 0%, rgba(21, 24, 34, 0) 100%);
}

.nyg-reel__fade--right {
    right: 0;
    background: linear-gradient(270deg, #151822 0%, rgba(21, 24, 34, 0) 100%);
}

.nyg-reel__marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
}

.nyg-reel__line {
    display: block;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #ffd875 0%, rgba(255, 216, 117, 0.45) 50%, #ffd875 100%);
    box-shadow: 0 0 12px rgba(255, 216, 117, 0.6);
}

.nyg-reel__arrow {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}

.nyg-reel__arrow--top {
    top: 0;
    border-top: 9px solid #ffd875;
}

.nyg-reel__arrow--bottom {
    bottom: 0;
    border-bottom: 9px solid #ffd875;
}

.nyg-slot {
    flex: 0 0 152px;
    width: 152px;
    min-height: 136px;
    padding: 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #242838 0%, #1c1f2b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 7px;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nyg-slot::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--nyg-rarity-color, #7dd3fc);
}

.nyg-slot--common {
    --nyg-rarity-color: #7dd3fc;
}

.nyg-slot--rare {
    --nyg-rarity-color: #50d3a0;
}

.nyg-slot--epic {
    --nyg-rarity-color: #b78cff;
}

.nyg-slot--legendary {
    --nyg-rarity-color: #ffd875;
    background:
        radial-gradient(ellipse 90% 80% at 50% 0%, rgba(255, 216, 117, 0.16) 0%, transparent 72%),
        linear-gradient(180deg, #2c2824 0%, #1d1d26 100%);
}

.nyg-slot.is-passing {
    border-color: rgba(255, 216, 117, 0.32);
}

.nyg-slot.is-winner {
    border-color: var(--nyg-rarity-color);
    box-shadow: 0 0 28px rgba(255, 216, 117, 0.3);
    transform: translateY(-3px) scale(1.03);
}

.nyg-slot__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--nyg-rarity-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nyg-slot__value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.nyg-slot__label {
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.3;
    color: #9ba5ba;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nyg-result {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(80, 211, 160, 0.32);
    background:
        radial-gradient(ellipse 70% 110% at 10% 50%, rgba(80, 211, 160, 0.14) 0%, transparent 70%),
        rgba(20, 24, 34, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.nyg-result[hidden] {
    display: none;
}

.nyg-result__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nyg-result__eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7ee5ba;
}

.nyg-result__value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.nyg-result__label {
    font-size: 12.5px;
    color: #aeb7ca;
}

.nyg-result__badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #12151f;
    background: #7dd3fc;
}

.nyg-result--rare .nyg-result__badge {
    background: #50d3a0;
}

.nyg-result--epic .nyg-result__badge {
    background: #b78cff;
}

.nyg-result--legendary .nyg-result__badge {
    background: #ffd875;
}

.nyg-error {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 122, 112, 0.32);
    background: rgba(255, 102, 92, 0.12);
    color: #ffb8b3;
    font-size: 12.5px;
    font-weight: 600;
}

.nyg-error[hidden] {
    display: none;
}

.nyg-controls {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.nyg-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: radial-gradient(100% 100% at 50% 0%, #58e39e 0%, #318b62 100%);
    color: #ffffff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 28px -8px rgba(72, 195, 136, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nyg-open-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px -6px rgba(100, 223, 164, 0.65);
}

.nyg-open-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.nyg-open-btn[hidden] {
    display: none;
}

.nyg-open-btn i {
    font-size: 18px;
}

.nyg-open-btn__sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.34);
}

.nyg-open-btn__sub {
    font-size: 12.5px;
    font-weight: 600;
    opacity: 0.9;
}

.nyg-cooldown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(142, 224, 255, 0.2);
    background: rgba(18, 22, 32, 0.72);
    color: #cfe3f8;
    font-size: 12.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.nyg-cooldown[hidden] {
    display: none;
}

.nyg-cooldown i {
    font-size: 17px;
    color: #8ee0ff;
}

.nyg-section {
    margin-bottom: 24px;
}

.nyg-section__head {
    margin-bottom: 14px;
}

.nyg-section__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f1f4fb;
}

.nyg-section__sub {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #8f98ad;
}

.nyg-pool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nyg-pool-card {
    position: relative;
    padding: 18px 16px 16px;
    border-radius: 16px;
    border: 1px solid rgba(180, 196, 214, 0.12);
    background: linear-gradient(180deg, #242733 0%, #1d202a 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.nyg-pool-card:hover {
    border-color: var(--nyg-rarity-color, rgba(142, 224, 255, 0.35));
    transform: translateY(-2px);
}

.nyg-pool-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--nyg-rarity-color, #7dd3fc);
}

.nyg-pool-card--common {
    --nyg-rarity-color: #7dd3fc;
}

.nyg-pool-card--rare {
    --nyg-rarity-color: #50d3a0;
}

.nyg-pool-card--epic {
    --nyg-rarity-color: #b78cff;
}

.nyg-pool-card--legendary {
    --nyg-rarity-color: #ffd875;
    background:
        radial-gradient(ellipse 95% 75% at 100% 0%, rgba(255, 216, 117, 0.14) 0%, transparent 70%),
        linear-gradient(180deg, #292622 0%, #1e2029 100%);
}

.nyg-pool-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.nyg-pool-card__rarity {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--nyg-rarity-color);
}

.nyg-pool-card__chance {
    font-size: 11px;
    font-weight: 600;
    color: #9ba5ba;
}

.nyg-pool-card__main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nyg-pool-card__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--nyg-rarity-color);
    background: rgba(255, 255, 255, 0.05);
}

.nyg-pool-card__value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.nyg-pool-card__label {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: #9ba5ba;
}

.nyg-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.nyg-panel {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(180, 196, 214, 0.12);
    background: linear-gradient(180deg, #242733 0%, #1d202a 100%);
}

.nyg-panel__head {
    margin-bottom: 14px;
}

.nyg-panel__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #f1f4fb;
}

.nyg-panel__title i {
    color: #50d3a0;
    font-size: 18px;
}

.nyg-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nyg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(16, 19, 28, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nyg-row__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nyg-row__avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
}

.nyg-row__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #7ee5ba;
    background: rgba(80, 211, 160, 0.12);
}

.nyg-row__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nyg-row__name {
    font-size: 12.5px;
    font-weight: 700;
    color: #f1f4fb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nyg-row__meta {
    font-size: 11px;
    color: #8c95aa;
}

.nyg-row__prize {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(125, 211, 252, 0.14);
    border: 1px solid rgba(125, 211, 252, 0.25);
}

.nyg-row__prize--rare {
    background: rgba(80, 211, 160, 0.14);
    border-color: rgba(80, 211, 160, 0.3);
    color: #8ff0c7;
}

.nyg-row__prize--epic {
    background: rgba(183, 140, 255, 0.14);
    border-color: rgba(183, 140, 255, 0.32);
    color: #d6bcff;
}

.nyg-row__prize--legendary {
    background: rgba(255, 216, 117, 0.16);
    border-color: rgba(255, 216, 117, 0.38);
    color: #ffe8a3;
}

.nyg-empty {
    padding: 20px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: #8f98ad;
}

@media (max-width: 1199.98px) {
    .nyg-pool-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .nyg-pool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nyg-history-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .nyg-roulette-card {
        padding: 18px 14px 20px;
    }

    .nyg-roulette-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .nyg-reel__fade {
        width: 44px;
    }

    .nyg-slot {
        flex: 0 0 132px;
        width: 132px;
        min-height: 122px;
    }

    .nyg-pool-grid {
        grid-template-columns: 1fr;
    }

    .nyg-open-btn {
        width: 100%;
        padding: 0 18px;
    }
}
