/* =====================================================
   Brita Richter – 13. Jubiläums-Slotmaschine
   Frontend-Styles
   Version 1.0.0
   ===================================================== */

:root {
    --br-gold:       #c9a84c;
    --br-gold-lt:    #f0d060;
    --br-gold-dk:    #a07830;
    --br-dark:       #1a1225;
    --br-dark2:      #2d1f4e;
    --br-rose:       #d9698a;
    --br-rose-lt:    #f0a0bb;
    --br-cream:      #fff9f0;
    --br-panel-bg:   linear-gradient(160deg, #1a1225 0%, #2d1f4e 100%);
    --br-radius:     18px;
    --br-item-h:     110px;
}

/* ===== WRAPPER ===== */
#br-jub-wrapper {
    font-family: 'Georgia', 'Times New Roman', serif;
    max-width: 580px;
    margin: 0 auto;
    padding: 10px;
    color: var(--br-cream);
    text-align: center;
}

/* ===== SLOT CONTAINER ===== */
#br-slot-container {
    background: var(--br-panel-bg);
    border-radius: var(--br-radius);
    padding: 38px 28px 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.5);
    box-shadow: 0 24px 64px rgba(0,0,0,0.45),
                inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Goldene Linie oben */
#br-slot-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--br-gold), var(--br-gold-lt), var(--br-gold), transparent);
}

/* Dezente Glanzlinie unten */
#br-slot-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}

/* ===== HEADER-TEXTE ===== */
.br-slot-tagline {
    color: var(--br-gold);
    font-size: 0.82rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.85;
}

.br-slot-header {
    color: var(--br-cream);
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 20px rgba(201,168,76,0.3);
}

.br-slot-subheader {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

/* ===== REELS WRAPPER ===== */
.br-reels-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.br-reel-sep {
    color: var(--br-gold);
    font-size: 1.2rem;
    opacity: 0.45;
    margin: 0 2px;
}

/* ===== REEL FRAME ===== */
.br-reel-outer {
    position: relative;
}

.br-reel-frame {
    width: 120px;
    height: var(--br-item-h);
    background: #0c0810;
    border: 2px solid var(--br-gold);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.8),
                0 0 12px rgba(201,168,76,0.2);
    transition: box-shadow 0.4s, border-color 0.4s;
}

/* Schatten oben/unten (gibt Tiefe) */
.br-reel-frame::before,
.br-reel-frame::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 28px;
    z-index: 10;
    pointer-events: none;
}
.br-reel-frame::before {
    top: 0;
    background: linear-gradient(180deg, rgba(12,8,16,0.95) 0%, transparent 100%);
}
.br-reel-frame::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(12,8,16,0.95) 0%, transparent 100%);
}

/* Highlights wenn gewonnen */
.br-reel-frame.reel-win {
    border-color: var(--br-gold-lt);
    box-shadow: inset 0 0 24px rgba(0,0,0,0.6),
                0 0 0 1px var(--br-gold-lt),
                0 0 30px rgba(240,208,96,0.6),
                0 0 60px rgba(240,208,96,0.25);
    animation: reelWinPulse 1.2s ease-in-out infinite alternate;
}

@keyframes reelWinPulse {
    from { box-shadow: inset 0 0 24px rgba(0,0,0,0.6), 0 0 20px rgba(240,208,96,0.4); }
    to   { box-shadow: inset 0 0 24px rgba(0,0,0,0.6), 0 0 50px rgba(240,208,96,0.8), 0 0 80px rgba(240,208,96,0.3); }
}

/* Glasglanz-Overlay */
.br-reel-shine {
    position: absolute;
    top: 0; left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 11;
    border-radius: 8px 0 0 8px;
}

/* ===== STRIP (scrollendes Band) ===== */
.br-reel-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.br-reel-strip {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    will-change: transform;
    transform: translateY(0);
}

.br-strip-item {
    width: 100%;
    height: var(--br-item-h);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,249,240,0.9);
    font-family: 'Georgia', serif;
    user-select: none;
    letter-spacing: -1px;
    position: relative;
}

.br-strip-item.is-thirteen {
    color: var(--br-gold-lt);
    text-shadow: 0 0 12px var(--br-gold), 0 0 30px rgba(240,208,96,0.6);
}

/* ===== JACKPOT INFO ===== */
.br-jackpot-info {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
}

.br-jackpot-badge {
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.35);
    color: var(--br-gold-lt);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.br-jackpot-text { color: rgba(255,255,255,0.4); }

/* ===== SPIN BUTTON ===== */
.br-spin-btn {
    background: linear-gradient(135deg, var(--br-gold-dk) 0%, var(--br-gold) 40%, var(--br-gold-lt) 60%, var(--br-gold) 100%);
    background-size: 200% 200%;
    color: #1a1225;
    border: none;
    padding: 17px 56px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 3px;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 8px 28px rgba(201,168,76,0.38),
                0 2px 4px rgba(0,0,0,0.3),
                inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 0.18s, box-shadow 0.18s, background-position 0.4s;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.br-spin-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.br-spin-btn:hover::before { left: 100%; }

.br-spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(201,168,76,0.5);
    background-position: right center;
}

.br-spin-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.25);
}

.br-spin-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

.br-btn-icon { margin-right: 2px; }

/* Spinning-State */
.br-spin-btn.spinning-state {
    animation: spinBtnPulse 0.8s ease-in-out infinite alternate;
}

@keyframes spinBtnPulse {
    from { box-shadow: 0 8px 28px rgba(201,168,76,0.38); }
    to   { box-shadow: 0 8px 40px rgba(201,168,76,0.65); }
}

.br-spin-note {
    color: rgba(255,255,255,0.25);
    font-size: 0.76rem;
    margin-top: 14px;
    letter-spacing: 0.5px;
}

/* ===== RESULT / SUCCESS / ALREADY-PLAYED PANELS ===== */
.br-panel {
    background: var(--br-panel-bg);
    border-radius: var(--br-radius);
    padding: 40px 30px;
    border: 1px solid rgba(201,168,76,0.4);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

.br-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--br-gold), var(--br-gold-lt), var(--br-gold), transparent);
}

.br-result-emoji {
    font-size: 4.5rem;
    display: block;
    margin-bottom: 14px;
    animation: emojiPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes emojiPop {
    0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
    70%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}

.br-result-title {
    font-size: 1.7rem;
    margin: 0 0 14px;
    color: var(--br-cream);
    line-height: 1.3;
}

.br-result-title.br-gold { color: var(--br-gold); }

.br-result-text {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 26px;
}

.br-result-text strong { color: var(--br-cream); }

/* ===== FORMULAR ===== */
.br-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.br-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.br-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.br-form-field:last-child { margin-bottom: 0; }

.br-form-field label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.br-form-field input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 10px;
    color: var(--br-cream);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.br-form-field input::placeholder { color: rgba(255,255,255,0.28); }

.br-form-field input:focus {
    outline: none;
    border-color: var(--br-gold);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.br-privacy-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.6;
    margin: 4px 0 16px;
    text-align: center;
}

.br-submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 4px;
}

.br-submit-win {
    background: linear-gradient(135deg, var(--br-gold-dk), var(--br-gold), var(--br-gold-lt));
    color: #1a1225;
    box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.br-submit-trost {
    background: linear-gradient(135deg, #9d3a5c, var(--br-rose), var(--br-rose-lt));
    color: #fff;
    box-shadow: 0 6px 20px rgba(217,105,138,0.35);
}

.br-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201,168,76,0.45);
}

.br-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.br-form-error {
    background: rgba(220,38,38,0.15);
    border: 1px solid rgba(220,38,38,0.4);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fca5a5;
    font-size: 0.88rem;
    margin-top: 10px;
    text-align: center;
}

/* ===== SHOP LINK ===== */
.br-shop-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--br-gold);
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    padding-bottom: 2px;
    transition: border-color 0.2s, color 0.2s;
}
.br-shop-link:hover { color: var(--br-gold-lt); border-color: var(--br-gold-lt); }

/* ===== CONFETTI ===== */
.br-confetti-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.br-c {
    position: absolute;
    top: -15px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg);    opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(105vh) rotate(800deg); opacity: 0; }
}

/* ===== NOTICE (inaktives Gewinnspiel) ===== */
.br-jub-notice {
    background: var(--br-panel-bg);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: var(--br-radius);
    padding: 36px 28px;
    color: var(--br-cream);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
    :root { --br-item-h: 88px; }

    .br-reel-frame { width: 90px; }
    .br-strip-item { font-size: 2.3rem; }
    .br-slot-header { font-size: 1.5rem; }
    .br-spin-btn { padding: 15px 38px; font-size: 1rem; letter-spacing: 2px; }
    .br-result-title { font-size: 1.4rem; }
    .br-form-row { flex-direction: column; }
    .br-form-row .br-form-field { margin-bottom: 12px; }
}

@media (max-width: 360px) {
    .br-reel-frame { width: 78px; }
    .br-strip-item { font-size: 1.9rem; }
}

/* ===== COUPON DISPLAY (Erfolgsscreen) ===== */
.br-coupon-display {
    margin: 24px auto 20px;
    max-width: 380px;
}
.br-coupon-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.br-coupon-code {
    background: rgba(255,255,255,0.07);
    border: 2px dashed #c9a84c;
    border-radius: 10px;
    padding: 16px 24px;
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: #f0d060;
    letter-spacing: 4px;
    word-break: break-all;
    margin: 0 0 10px;
}
.br-coupon-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}
