.surprise-page .main-content {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.header-back-link {
    text-decoration: none;
    color: inherit;
}

.surprise-main {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding-top: 0.35rem;
}

/* ===== HERO ===== */
.surprise-hero {
    position: relative;
    text-align: center;
    padding: 0.75rem 0.75rem 0.25rem;
}

.surprise-hero-glow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(255, 110, 180, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.surprise-title {
    position: relative;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.surprise-subtitle {
    position: relative;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 26rem;
    margin: 0 auto;
}

/* ===== ÇARK ===== */
.surprise-machine {
    position: relative;
    padding: 0 0.15rem;
}

.surprise-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 45, 120, 0.04) 0%, transparent 28%, transparent 72%, rgba(255, 45, 120, 0.04) 100%),
        linear-gradient(180deg, rgba(14, 14, 22, 0.98) 0%, rgba(8, 8, 14, 0.99) 100%);
    border: 1px solid rgba(255, 110, 180, 0.12);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    padding: 2.1rem 0 2.1rem;
}

.surprise-track-wrap {
    overflow: hidden;
    width: 100%;
}

.surprise-track {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    padding: 0 0.25rem;
}

.surprise-track.is-spinning {
    transition: transform 4.2s cubic-bezier(0.08, 0.75, 0.12, 1);
}

.surprise-item {
    flex: 0 0 108px;
    width: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
    padding: 0.35rem 0.15rem;
    background: none;
    border: none;
    border-radius: 0;
    opacity: 0.38;
    transform: scale(0.88);
    filter: blur(0.3px);
    transition: opacity 0.35s, transform 0.35s, filter 0.35s;
}

.surprise-item.is-centered {
    opacity: 1;
    transform: scale(1.06);
    filter: none;
}

.surprise-item.is-centered .surprise-item-logo img {
    filter: drop-shadow(0 6px 22px rgba(255, 110, 180, 0.35));
}

.surprise-item.is-centered .surprise-item-title {
    color: #ffd4ec;
}

.surprise-item.is-empty .surprise-item-title {
    color: var(--muted);
}

.surprise-empty-icon {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1;
}

.surprise-spin-btn-text {
    display: inline;
}

.surprise-item-logo {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

.surprise-item-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(255, 110, 180, 0.15));
}

.surprise-item-title {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

.surprise-item-sub {
    font-size: 0.55rem;
    color: var(--muted);
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    width: 100%;
}

/* Ortadaki oklar */
.surprise-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--pink-light);
    filter: drop-shadow(0 0 10px rgba(255, 110, 180, 0.55));
}

.surprise-arrow svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.surprise-marker-img {
    width: auto;
    height: var(--surprise-marker-top-height, 28px);
    max-width: 64px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 110, 180, 0.55));
}

.surprise-arrow-top {
    top: 0.35rem;
    animation: arrowPulseDown 1.8s ease-in-out infinite;
}

.surprise-arrow-bottom {
    bottom: 0.35rem;
    animation: arrowPulseUp 1.8s ease-in-out infinite;
}

@keyframes arrowPulseDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
    50% { transform: translateX(-50%) translateY(3px); opacity: 1; }
}

@keyframes arrowPulseUp {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
    50% { transform: translateX(-50%) translateY(-3px); opacity: 1; }
}

.surprise-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22%;
    z-index: 4;
    pointer-events: none;
}

.surprise-fade-left {
    left: 0;
    background: linear-gradient(90deg, rgba(8, 8, 14, 0.98) 15%, transparent);
}

.surprise-fade-right {
    right: 0;
    background: linear-gradient(270deg, rgba(8, 8, 14, 0.98) 15%, transparent);
}

/* ===== BUTON ===== */
.surprise-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.5rem 0;
}

.surprise-cooldown-hint {
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    min-height: 1.1em;
    margin: 0;
}

.surprise-cooldown-hint.is-wait {
    color: #ffb8d9;
}

.surprise-spin-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 110, 180, 0.35);
    background: linear-gradient(135deg, rgba(255, 110, 180, 0.18) 0%, rgba(255, 45, 120, 0.1) 100%);
    color: #ffd4ec;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.82rem 2.4rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(255, 45, 120, 0.15);
    transition: background 0.2s, border-color 0.2s, transform 0.15s, opacity 0.2s, box-shadow 0.2s;
}

.surprise-spin-btn-icon {
    font-size: 0.85rem;
    opacity: 0.9;
}

.surprise-spin-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 110, 180, 0.26) 0%, rgba(255, 45, 120, 0.16) 100%);
    border-color: rgba(255, 110, 180, 0.5);
    box-shadow: 0 6px 28px rgba(255, 45, 120, 0.22);
}

.surprise-spin-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.surprise-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== SONUÇ ===== */
.surprise-result {
    padding: 0 0.35rem;
    animation: surpriseResultIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.surprise-result-inner {
    position: relative;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 110, 180, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, rgba(20, 20, 32, 0.98) 0%, rgba(10, 10, 18, 0.99) 100%);
    border: 1px solid rgba(255, 110, 180, 0.28);
    border-radius: 22px;
    padding: 1.35rem 1.1rem 1.25rem;
    box-shadow:
        0 0 0 1px rgba(255, 110, 180, 0.06) inset,
        0 16px 48px rgba(255, 45, 120, 0.14),
        0 4px 24px rgba(0, 0, 0, 0.35);
}

.surprise-result-glow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 100px;
    background: radial-gradient(ellipse, rgba(255, 110, 180, 0.35) 0%, transparent 70%);
    pointer-events: none;
    animation: resultGlowPulse 2.5s ease-in-out infinite;
}

@keyframes resultGlowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@keyframes surpriseResultIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.surprise-result-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd4ec;
    background: rgba(255, 110, 180, 0.15);
    border: 1px solid rgba(255, 110, 180, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.85rem 0.35rem 0.7rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(255, 45, 120, 0.2);
}

.surprise-result-badge-icon {
    font-size: 0.65rem;
    color: var(--pink-light);
    animation: badgeSpin 3s linear infinite;
}

@keyframes badgeSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.surprise-result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.surprise-result-logo-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.surprise-result-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 110, 180, 0.25);
    background: radial-gradient(circle, rgba(255, 110, 180, 0.12) 0%, transparent 70%);
    animation: logoRingPulse 2s ease-in-out infinite;
}

@keyframes logoRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.surprise-result-logo-wrap img {
    position: relative;
    z-index: 1;
    max-width: 88px;
    max-height: 88px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 28px rgba(255, 110, 180, 0.4));
}

.surprise-result-prize {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.02em;
    line-height: 1.3;
    max-width: 16rem;
}

.surprise-result-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.35;
    max-width: 15rem;
}

.surprise-go-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 110, 180, 0.22) 0%, rgba(255, 45, 120, 0.14) 100%);
    color: #ffd4ec;
    border: 1px solid rgba(255, 110, 180, 0.38);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.78rem 1.85rem;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(255, 45, 120, 0.18);
    transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.surprise-go-arrow {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s;
}

.surprise-go-btn:hover {
    background: linear-gradient(135deg, rgba(255, 110, 180, 0.32) 0%, rgba(255, 45, 120, 0.22) 100%);
    border-color: rgba(255, 110, 180, 0.55);
    box-shadow: 0 6px 28px rgba(255, 45, 120, 0.28);
}

.surprise-go-btn:hover .surprise-go-arrow {
    transform: translateX(3px);
}

.surprise-go-btn:active {
    transform: scale(0.98);
}

/* ===== ALT KAZANANLAR ===== */
.surprise-winners-section {
    margin-top: 0.25rem;
    padding: 0 0.15rem;
}

.surprise-winners-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    padding: 0 0.25rem;
}

.surprise-winners-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b6b;
    box-shadow: 0 0 0 0 rgba(255, 59, 107, 0.55);
    animation: livePulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 107, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(255, 59, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 107, 0); }
}

.surprise-winners-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}

.surprise-winners-feed {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 220px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent);
}

.wheel-winner-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(18, 18, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    transition: border-color 0.25s, opacity 0.3s, transform 0.3s;
}

.wheel-winner-row.is-new {
    opacity: 0;
    transform: translateY(-6px);
    border-color: rgba(255, 110, 180, 0.28);
}

.wheel-winner-row:not(.is-new) {
    opacity: 1;
    transform: translateY(0);
}

.wheel-winner-logo {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-winner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wheel-winner-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.wheel-winner-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.wheel-winner-prize {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pink-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wheel-winner-tag {
    flex: 0 0 auto;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 184, 220, 0.7);
    background: rgba(255, 110, 180, 0.1);
    border: 1px solid rgba(255, 110, 180, 0.18);
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
}

.surprise-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (min-width: 481px) {
    .surprise-title { font-size: 1.45rem; }
    .surprise-subtitle { font-size: 0.85rem; }
    .surprise-item { flex: 0 0 118px; width: 118px; }
    .surprise-item-logo { width: 74px; height: 74px; }
    .surprise-winners-feed { max-height: 260px; }
}

@media (min-width: 960px) {
    .surprise-item { flex: 0 0 128px; width: 128px; }
    .surprise-item-logo { width: 78px; height: 78px; }
}
