/* ============================================================
   Restream LuckyDeals – Public site stylesheet
   ============================================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-elevated: #1a1a25;
    --accent-primary: #00d4aa;
    --accent-secondary: #00b894;
    --accent-tertiary: #7c3aed;
    --accent-gold: #ffd700;
    --accent-orange: #ff6b35;
    --accent-danger: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 212, 170, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

button { font-family: inherit; }

/* Ambient + grid background */
.ambient-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .35;
    animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -200px; right: -200px; }
.orb-2 { width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    bottom: -100px; left: -100px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; opacity: .18; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(30px, -30px) scale(1.05); }
    50%      { transform: translate(-20px, 20px) scale(.95); }
    75%      { transform: translate(20px, 10px) scale(1.02); }
}
.grid-pattern {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Nav */
.nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 15, .8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 100;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-text {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.5px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: .85rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    animation: pulse-badge 2s ease-in-out infinite;
}
.nav-badge.off { background: var(--bg-elevated); color: var(--text-muted); animation: none; }
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,.4); }
    50%      { box-shadow: 0 0 0 10px rgba(0,212,170,0); }
}
.dot {
    width: 8px; height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Hero */
.hero { padding: 32px 0 20px; text-align: center; }
.hero-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: .82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.hero-title {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 20px;
}

/* Timer */
.timer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    display: inline-flex;
    align-items: center;
    gap: 22px;
    box-shadow: var(--shadow-card);
}
.timer-label {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.timer-display { display: flex; gap: 12px; margin-top: 4px; }
.timer-unit { text-align: center; }
.timer-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 44px;
    line-height: 1;
}
.timer-name {
    font-size: .68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: .5px;
}
.timer-separator { font-size: 1.4rem; color: var(--text-muted); font-weight: 300; margin-top: 2px; }

.requirements-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, rgba(0,212,170,.1), rgba(124,58,237,.1));
    border: 1px solid var(--border-accent);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    font-size: .9rem;
}
.requirements-badge i { color: var(--accent-primary); font-size: 1rem; }
.requirements-badge strong { color: var(--accent-primary); font-weight: 700; }

/* Perks (Why play) */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 8px 0 24px;
}
.perk-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 22px 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.perk-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: .6;
}
.perk-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0,212,170,.18), rgba(124,58,237,.12));
    color: var(--accent-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.perk-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -.3px; }
.perk-text  { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; }

/* Main card */
.main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    margin: 16px auto 80px;
    max-width: 880px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.main-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* Form */
.form-header { text-align: center; margin-bottom: 24px; }
.form-title  { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -.5px; }
.form-subtitle { color: var(--text-secondary); font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 22px; }
.form-group { position: relative; }
.form-label {
    display: flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.form-label i { color: var(--accent-primary); }
.form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all .25s ease;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(0,212,170,.1);
}
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border: none;
    border-radius: var(--radius-md);
    font-size: 1rem; font-weight: 600; font-family: inherit;
    cursor: pointer; text-decoration: none;
    transition: all .25s ease;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    box-shadow: 0 8px 32px rgba(0,212,170,.3);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,212,170,.45); }
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--accent-primary); }
.btn-telegram { background: linear-gradient(135deg, #0088cc, #006699); color: #fff; }
.btn-telegram:hover { box-shadow: 0 8px 32px rgba(0,136,204,.4); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Section header */
.games-section { margin-top: 48px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.5px; }
.section-subtitle { color: var(--text-secondary); }

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.game-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
    color: inherit;
}
.game-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,212,170,.05), rgba(124,58,237,.05));
    opacity: 0; transition: opacity .3s ease;
}
.game-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}
.game-card:hover::before { opacity: 1; }
.game-card.selected {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(0,212,170,.12), rgba(124,58,237,.05));
    box-shadow: 0 0 40px rgba(0,212,170,.2);
}
.game-icon {
    width: 72px; height: 72px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    transition: all .3s ease;
}
.game-card:hover .game-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
}
.game-card:hover .game-icon i { color: var(--bg-primary); }
.game-card.mystery-box .game-icon i { color: var(--accent-gold); }
.game-card.card-flip   .game-icon i { color: var(--accent-tertiary); }
.game-card.briefcase   .game-icon i { color: var(--accent-orange); }
.game-card.wheel       .game-icon i { color: var(--accent-primary); }
.game-card.slots       .game-icon i { color: #ff4757; }
.game-card.plinko      .game-icon i { color: #38bdf8; }
.game-card.coin-flip   .game-icon i { color: #fbbf24; }
.game-card.dice-roll   .game-icon i { color: #f472b6; }
.game-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.game-description { font-size: .85rem; color: var(--text-secondary); line-height: 1.5; }

/* Wait Screen */
.wait-screen { text-align: center; padding: 60px 20px; }
.wait-icon {
    width: 100px; height: 100px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem; color: var(--accent-primary);
    animation: spin 3s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.wait-title  { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.wait-message { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 24px; }
.wait-timer {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem; font-weight: 600;
    color: var(--accent-gold);
}

/* Winners panel */
.winners-panel {
    position: fixed; bottom: 24px; left: 24px;
    width: 320px;
    max-height: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 50;
    box-shadow: var(--shadow-card);
    transition: max-height .3s ease;
}
.winners-panel.collapsed { max-height: 56px; }
.winners-header {
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 10px;
}
.winners-header i { color: var(--accent-gold); }
.winners-title { font-size: .95rem; font-weight: 600; }
.winners-count {
    margin-left: auto;
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: .75rem;
    color: var(--text-muted);
}
.winners-toggle {
    background: transparent; border: none;
    color: var(--text-muted); cursor: pointer; padding: 4px 8px;
}
.winners-list { padding: 12px; max-height: 340px; overflow-y: auto; }
.winner-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; border-radius: var(--radius-sm);
    transition: background .2s ease;
}
.winner-item:hover { background: var(--bg-elevated); }
.winner-info { flex: 1; min-width: 0; }
.winner-name {
    font-size: .9rem; font-weight: 600; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.winner-meta { font-size: .75rem; color: var(--text-muted); }
.winner-prize { text-align: right; }
.winner-price { font-size: .95rem; font-weight: 700; color: var(--accent-primary); }
.winner-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--bg-primary);
    padding: 2px 8px; border-radius: 4px;
    font-size: .65rem; font-weight: 700; margin-left: 6px;
}
.winner-time { font-size: .7rem; color: var(--text-muted); margin-top: 2px; }
.no-winners { text-align: center; padding: 40px 20px; color: var(--text-muted); }

/* Footer */
.footer {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    font-size: .8rem;
    color: var(--text-muted);
    z-index: 50;
}

/* Modal */
.modal {
    position: fixed; inset: 0;
    background: rgba(10, 10, 15, .92);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; transition: opacity .3s ease;
}
.modal.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 720px;
    width: 92%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn .4s cubic-bezier(.16,1,.3,1);
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer; font-size: .9rem;
    transition: all .2s ease;
}
.modal-close:hover { color: var(--text-primary); border-color: var(--accent-primary); }
@keyframes modalIn {
    from { opacity: 0; transform: scale(.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Modal game body */
.game-modal h3 {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 8px;
    display: inline-flex; align-items: center; gap: 10px;
}
.game-modal .game-desc { color: var(--text-secondary); margin-bottom: 24px; }

/* Mystery boxes */
.mystery-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.mystery-box-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: all .3s ease; overflow: hidden;
}
.mystery-box-item:hover { border-color: var(--accent-gold); transform: scale(1.05); box-shadow: 0 10px 30px rgba(255,215,0,.2); }
.mystery-box-item i { font-size: 2rem; color: var(--accent-gold); margin-bottom: 8px; }
.mystery-box-item span { font-size: .85rem; color: var(--text-secondary); }

/* Card flip */
.flip-cards { display: flex; justify-content: center; gap: 20px; margin: 24px 0; flex-wrap: wrap; }
.flip-card { width: 140px; height: 200px; perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.4,0,.2,1); transform-style: preserve-3d; }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.flip-card-front {
    background: linear-gradient(135deg, var(--accent-tertiary), #5b21b6);
    border: 2px solid rgba(124, 58, 237, .5);
    color: #fff;
}
.flip-card-front i { font-size: 2.5rem; margin-bottom: 12px; }
.flip-card-back {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transform: rotateY(180deg);
    color: var(--bg-primary);
    font-weight: 800;
}
.flip-card-back .price { font-size: 1.6rem; }
.flip-card-back i { font-size: 2rem; }

/* Briefcase */
.briefcases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 24px 0; }
.briefcase-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border: 2px solid rgba(185, 28, 28, .5);
    border-radius: var(--radius-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: all .3s ease; color: #fff;
}
.briefcase-item:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(185,28,28,.3); }
.briefcase-item i { font-size: 1.5rem; margin-bottom: 4px; }
.briefcase-item span { font-size: .75rem; opacity: .85; }

/* Wheel */
.wheel-stage { position: relative; width: 320px; height: 320px; margin: 24px auto; }
.wheel-pointer {
    position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid var(--accent-gold);
    z-index: 5;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.35));
}
.wheel-svg {
    width: 100%; height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--bg-card), 0 0 0 8px var(--accent-primary), 0 20px 50px rgba(0,0,0,.5);
    transition: transform 4.2s cubic-bezier(.17,.67,.12,.99);
}
.wheel-cta {
    display: block; margin: 8px auto 0; background: var(--bg-elevated);
    color: var(--text-secondary); border: 1px solid var(--border-color);
}

/* Slots */
.slots-container { display: flex; justify-content: center; gap: 12px; margin: 24px 0; }
.slot-reel {
    width: 90px; height: 110px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}
.slot-symbols { display: flex; flex-direction: column; transition: transform 2.5s cubic-bezier(.17,.67,.12,.99); }
.slot-symbol {
    width: 100%; height: 110px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
}

/* Plinko */
.plinko-stage { position: relative; margin: 24px auto; max-width: 360px; }
.plinko-stage canvas {
    width: 100%; height: auto; display: block;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.plinko-bins {
    display: grid; grid-template-columns: repeat(8, 1fr);
    gap: 2px; margin-top: 6px; font-size: .7rem;
    font-family: 'JetBrains Mono', monospace; color: var(--text-secondary);
    text-align: center;
}
.plinko-bin {
    background: var(--bg-elevated);
    padding: 6px 2px; border-radius: 6px;
    transition: all .3s ease;
}
.plinko-bin.win {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary); font-weight: 700;
}

/* Coin flip */
.coin-stage { perspective: 1200px; margin: 24px auto; width: 180px; height: 180px; }
.coin {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 2.4s cubic-bezier(.4,.0,.2,1);
}
.coin-face {
    position: absolute; inset: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 800;
    backface-visibility: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 30px rgba(0,0,0,.25);
}
.coin-face.heads { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #78350f; }
.coin-face.tails { background: linear-gradient(135deg, #94a3b8, #64748b); color: #1e293b; transform: rotateY(180deg); }
.coin-pick {
    display: flex; gap: 16px; justify-content: center; margin-top: 24px;
}
.coin-pick button {
    padding: 12px 28px; border-radius: var(--radius-md);
    background: var(--bg-elevated); border: 2px solid var(--border-color);
    color: var(--text-primary); cursor: pointer; font-weight: 600;
}
.coin-pick button:hover { border-color: var(--accent-primary); }
.coin-pick button.selected { background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: var(--bg-primary); border-color: transparent; }

/* Dice */
.dice-stage { margin: 24px auto; perspective: 800px; width: 140px; height: 140px; }
.dice {
    position: relative; width: 140px; height: 140px;
    transform-style: preserve-3d;
    transition: transform 2.2s cubic-bezier(.4,0,.2,1);
}
.dice-face {
    position: absolute; width: 140px; height: 140px;
    background: linear-gradient(135deg, #fff, #e2e8f0);
    color: #1e293b;
    border-radius: 18px;
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
    padding: 16px;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.1);
}
.dice-face .pip { width: 18px; height: 18px; border-radius: 50%; background: #1e293b; align-self: center; justify-self: center; }
.dice-face.f1 { transform: translateZ(70px); }
.dice-face.f2 { transform: rotateY(90deg)  translateZ(70px); }
.dice-face.f3 { transform: rotateY(180deg) translateZ(70px); }
.dice-face.f4 { transform: rotateY(-90deg) translateZ(70px); }
.dice-face.f5 { transform: rotateX(90deg)  translateZ(70px); }
.dice-face.f6 { transform: rotateX(-90deg) translateZ(70px); }
.dice-pick {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 24px auto 0; max-width: 360px;
}
.dice-pick button {
    background: var(--bg-elevated); border: 2px solid var(--border-color);
    color: var(--text-primary); padding: 10px 0; border-radius: var(--radius-md);
    cursor: pointer; font-size: 1.1rem; font-weight: 700;
}
.dice-pick button.selected { background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: var(--bg-primary); border-color: transparent; }

/* Result */
.result-container { text-align: center; }
.result-icon {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem; color: var(--bg-primary);
    animation: bounce .6s ease;
}
@keyframes bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.result-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.result-username { color: var(--accent-primary); }
.result-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
    margin: 24px 0;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 24px;
}
.result-item { text-align: center; }
.result-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.result-value { font-size: 1.4rem; font-weight: 700; }
.result-value.highlight { color: var(--accent-primary); }
.result-value.strikethrough { color: var(--text-muted); text-decoration: line-through; }
.result-total {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 16px 0;
}
.result-total .label { color: var(--text-muted); font-size: .85rem; }
.result-total .amount { font-size: 2rem; font-weight: 700; color: var(--accent-primary); }
.result-bonus {
    background: linear-gradient(135deg, rgba(255,215,0,.1), rgba(255,107,53,.1));
    border: 1px solid rgba(255, 215, 0, .3);
    border-radius: var(--radius-md);
    padding: 16px; margin: 16px 0;
}
.result-bonus.lucky { background: linear-gradient(135deg, rgba(255,215,0,.2), rgba(255,107,53,.1)); border-color: var(--accent-gold); }
.result-bonus.perfect { background: linear-gradient(135deg, rgba(0,212,170,.1), rgba(124,58,237,.1)); border-color: var(--accent-primary); }
.result-bonus-title { font-weight: 700; color: var(--accent-gold); margin-bottom: 4px; }
.result-bonus.perfect .result-bonus-title { color: var(--accent-primary); }
.result-warning {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: var(--radius-md);
    padding: 16px; margin: 16px 0; font-size: .9rem;
}
.result-warning strong { color: var(--accent-danger); }

.terms-box {
    text-align: left;
    background: linear-gradient(135deg, rgba(0, 212, 170, .08), rgba(124, 58, 237, .06));
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 16px 0;
}
.terms-title {
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
    font-size: .95rem;
}
.terms-list {
    list-style: none; padding: 0; margin: 0;
    color: var(--text-secondary);
    font-size: .88rem; line-height: 1.55;
}
.terms-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}
.terms-list li:last-child { margin-bottom: 0; }
.terms-list li::before {
    content: '✓';
    position: absolute; left: 0; top: 0;
    color: var(--accent-primary);
    font-weight: 700;
}
.terms-list strong { color: var(--text-primary); }

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
    .timer-card { flex-direction: column; gap: 16px; padding: 24px; }
    .timer-value { font-size: 1.7rem; }
    .main-card { padding: 32px 22px; }
    .winners-panel {
        width: calc(100% - 48px);
        bottom: 80px; left: 24px; right: 24px;
    }
    .footer { bottom: 24px; right: 24px; left: 24px; text-align: center; }
    .form-grid { grid-template-columns: 1fr; }
    .briefcases { grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .flip-card { width: 100px; height: 150px; }
    .modal-content { padding: 28px 22px; }
    .wheel-stage { width: 280px; height: 280px; }
}
