/* ==================== GAME CONTAINER ==================== */
#game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* ==================== LOBBY ==================== */
#game-lobby .room-card {
    background: linear-gradient(145deg, #1b5e20, #2e7d32);
    border: 3px solid #4caf50;
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
#game-lobby .room-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
    pointer-events: none;
}
#game-lobby .room-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border-color: #fdd835;
}
.room-icon { font-size: 36px; margin-bottom: 8px; }
.room-name { font-size: 20px; font-weight: 800; }
.room-bet { font-size: 16px; color: #fdd835; font-weight: 700; margin-top: 4px; }
.room-desc { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ==================== TABLE MANAGER ==================== */
.table-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.table-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #e0e0e0;
}
.table-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.table-grid-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 8px;
    background: #f5f5dc;
}
.cell-preview {
    aspect-ratio: 95/150;
    border-radius: 3px;
}
.table-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.table-name { font-size: 13px; font-weight: 600; color: #555; }
.btn-delete-table {
    background: none;
    border: none;
    color: #e53935;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-delete-table:hover { background: #ffebee; }

/* Create table card */
.table-card-create {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    border: 2px dashed #4caf50;
    background: #f1f8e9;
    transition: background 0.2s;
}
.table-card-create:hover { background: #dcedc8; }
.create-icon { font-size: 48px; font-weight: 300; color: #4caf50; line-height: 1; }
.create-text { font-size: 14px; font-weight: 600; color: #4caf50; margin-top: 8px; }

/* ==================== GAME BOARD ==================== */
#game-board {
    display: none;
    background: linear-gradient(180deg, #1b5e20 0%, #0d3b13 100%);
    border-radius: 16px;
    padding: 15px;
    min-height: 70vh;
}

/* Header bar */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}
#prize-pool { display: flex; flex-direction: column; }
.pp-label { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 2px; font-weight: 600; }
.pp-amount { font-size: 24px; font-weight: 800; color: #fdd835; }

/* Player credits */
#player-credits { display: flex; flex-direction: column; position: relative; }
.pc-label { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 2px; font-weight: 600; }
.pc-amount { font-size: 24px; font-weight: 800; color: #4caf50; }
.credits-delta {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 16px;
    font-weight: 800;
    pointer-events: none;
    animation: deltaFloat 1s ease-out forwards;
    z-index: 10;
}
.credits-delta.positive { color: #4caf50; }
.credits-delta.negative { color: #ef5350; }
@keyframes deltaFloat {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-30px); }
}

.phase-badge {
    font-size: 12px;
    padding: 5px 16px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}
.phase-wait { background: #616161; }
.phase-bet { background: #e65100; animation: pulseBadge 1.2s infinite; }
.phase-play { background: #1565c0; }
.phase-end { background: #4e342e; }
@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,81,0,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(230,81,0,0); }
}

.btn-back-lobby {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    padding: 6px 18px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-back-lobby:hover { background: rgba(255,255,255,0.2); }

/* ==================== MAIN GAME AREA ==================== */
.game-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 15px;
    margin-bottom: 12px;
}

/* ==================== DRAWN CARD AREA ==================== */
#drawn-card-area {
    background: rgba(0,0,0,0.25);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Card flip */
.card-flip-container {
    width: 210px;
    height: 332px;
    perspective: 1000px;
    margin: 0 auto 10px;
}
.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}
.card-flip-inner.flipped { transform: rotateY(180deg); }
.card-flip-front, .card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.5);
}
.card-flip-front { transform: rotateY(180deg); }
.card-flip-back {
    background: linear-gradient(135deg, #b71c1c 0%, #880e4f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-flip-back::after {
    content: '';
    width: 75%;
    height: 80%;
    border: 3px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    background: repeating-conic-gradient(rgba(255,255,255,0.05) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
}

#current-card-name {
    font-size: 18px;
    font-weight: 800;
    color: #fdd835;
    margin: 10px 0;
    min-height: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Drawn cards history */
#drawn-cards-history {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    max-height: 180px;
    overflow-y: auto;
    padding: 6px;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 8px;
}
.history-card {
    width: 38px;
    height: 60px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: transform 0.15s;
    flex-shrink: 0;
}
.history-card:hover {
    transform: scale(1.8);
    z-index: 10;
    position: relative;
}

/* ==================== PLAYER TABLES ==================== */
#player-tables {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    align-content: start;
}
.player-table {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px;
    transition: border-color 0.3s;
}
.player-table.betted {
    border-color: #fdd835;
    background: rgba(253,216,53,0.08);
}
.pt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
}
.badge-betted {
    font-size: 9px;
    background: #fdd835;
    color: #1b5e20;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.pt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 8px;
}
.pt-cell {
    aspect-ratio: 95/150;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Bean marker */
.pt-cell.matched::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(ellipse at 40% 35%, #d4956a 0%, #8B4513 50%, #5d3010 100%);
    border-radius: 50% 50% 50% 45% / 60% 55% 45% 40%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5), inset 0 -1px 2px rgba(0,0,0,0.3), inset 0 2px 3px rgba(255,200,150,0.3);
    animation: beanPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 2;
}
@keyframes beanPop {
    0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(-8deg); }
}
.pt-cell.win-glow {
    box-shadow: 0 0 12px 4px rgba(253,216,53,0.7);
    z-index: 3;
}
.player-table.winner {
    border-color: #4caf50;
    background: rgba(76,175,80,0.15);
    box-shadow: 0 0 16px 4px rgba(76,175,80,0.4);
}
.badge-winner {
    font-size: 9px;
    background: #4caf50;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    animation: winnerPulse 1s ease-in-out 3;
}
@keyframes winnerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Bet button */
.btn-bet {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-bet:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,81,0,0.4);
}

.no-tables-msg {
    text-align: center;
    color: rgba(255,255,255,0.4);
    padding: 40px;
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== GAME FOOTER ==================== */
.game-footer {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* Message log */
#message-log {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
    max-height: 160px;
    overflow-y: auto;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.msg-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.msg-entry:last-child {
    border-bottom: none;
    color: #fff;
    font-weight: 600;
}
.msg-card {
    color: #fdd835;
    font-weight: 700;
}

/* ==================== LOTERIA BUTTON ==================== */
#btn-loteria {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border: 3px solid #fff;
    border-radius: 14px;
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 3px;
    min-width: 200px;
    background: linear-gradient(90deg, #006847, #fff, #ce1126);
    background-size: 200% 100%;
    color: #006847;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    animation: gradientSlide 2s ease infinite, loteriaPulse 0.8s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(253,216,53,0.4);
    flex-shrink: 0;
}
@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes loteriaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
#btn-loteria:hover { transform: scale(1.1); }

/* ==================== AUDIO CONTROLS ==================== */
#audio-controls {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}
#audio-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(27,94,32,0.9);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
#audio-controls button:hover { background: rgba(27,94,32,1); }
#audio-controls button.muted { opacity: 0.35; }

/* ==================== FULLSCREEN MODE ==================== */
body.game-fullscreen {
    background: #0d3b13;
    overflow: hidden;
}
body.game-fullscreen .nav-header,
body.game-fullscreen .navigation,
body.game-fullscreen .right-chat,
body.game-fullscreen #chat-widget-container,
body.game-fullscreen .app-footer,
body.game-fullscreen .preloader {
    display: none !important;
}
body.game-fullscreen .main-content {
    padding-left: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
}
body.game-fullscreen #game-board {
    position: fixed;
    inset: 0;
    z-index: 9999;
    border-radius: 0;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.game-fullscreen #game-container {
    max-width: 100%;
    padding: 0;
}

.btn-fullscreen {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-fullscreen:hover { background: rgba(255,255,255,0.2); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .game-main { grid-template-columns: 1fr; }
    #drawn-card-area {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        text-align: left;
    }
    .card-flip-container { width: 140px; height: 221px; grid-row: 1 / 3; }
    #current-card-name { align-self: end; font-size: 15px; }
    #drawn-cards-history { max-height: 80px; grid-column: 2; }
    #player-tables { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .game-footer { flex-direction: column; }
    #btn-loteria { font-size: 20px; padding: 12px 24px; min-width: 160px; }
}
@media (max-width: 480px) {
    #game-board { padding: 8px; border-radius: 10px; }
    .card-flip-container { width: 110px; height: 174px; }
    #player-tables { grid-template-columns: 1fr 1fr; }
    .table-manager-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ==================== TABLE EDITOR ==================== */
.btn-edit-table {
    background: none;
    border: none;
    color: #1565c0;
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    margin-right: 2px;
}
.btn-edit-table:hover { background: #e3f2fd; }

#table-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}
#table-editor-overlay.open { background: rgba(0,0,0,0.75); }
#table-editor-overlay.closing { background: rgba(0,0,0,0); }

.te-panel {
    background: #1a1a2e;
    border-radius: 20px;
    width: 94%;
    max-width: 520px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    overflow: hidden;
}
#table-editor-overlay.open .te-panel { transform: scale(1); opacity: 1; }
#table-editor-overlay.closing .te-panel { transform: scale(0.85); opacity: 0; }

.te-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.te-header h4 { color: #fff; margin: 0; font-size: 18px; font-weight: 700; }
.te-header-actions { display: flex; gap: 8px; align-items: center; }

.te-btn-shuffle {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #90caf9;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.te-btn-shuffle:hover { background: rgba(255,255,255,0.15); }

.te-btn-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}
.te-btn-close:hover { color: #ef5350; }

/* Editor Grid */
.te-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 20px 22px;
    background: rgba(0,0,0,0.2);
}
.te-cell {
    background: #f5f5dc;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.te-cell:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.te-cell:active { cursor: grabbing; }
.te-cell.dragging {
    opacity: 0.35;
    transform: scale(0.92);
}
.te-cell.drag-over {
    border-color: #fdd835;
    box-shadow: 0 0 16px rgba(253,216,53,0.5);
    transform: scale(1.06);
}
.te-cell-img {
    width: 100%;
    aspect-ratio: 95/150;
    border-radius: 6px 6px 0 0;
}
.te-cell-label {
    font-size: 9px;
    font-weight: 600;
    color: #555;
    padding: 3px 2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Figure Strip */
.te-strip-wrapper {
    position: relative;
    padding: 0 22px;
    margin: 0 0 6px;
}
.te-strip-wrapper::before,
.te-strip-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.te-strip-wrapper::before {
    left: 22px;
    background: linear-gradient(to right, #1a1a2e, transparent);
}
.te-strip-wrapper::after {
    right: 22px;
    background: linear-gradient(to left, #1a1a2e, transparent);
}

.te-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.te-strip::-webkit-scrollbar { height: 4px; }
.te-strip::-webkit-scrollbar-track { background: transparent; }
.te-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.te-strip-card {
    flex-shrink: 0;
    width: 64px;
    background: #f5f5dc;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.te-strip-card:hover:not(.in-use) {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}
.te-strip-card.in-use {
    opacity: 0.2;
    cursor: default;
    filter: grayscale(1);
}
.te-strip-card.dragging {
    opacity: 0.35;
    transform: scale(0.9);
}
.te-strip-img {
    width: 100%;
    aspect-ratio: 95/150;
}
.te-strip-label {
    font-size: 7px;
    font-weight: 600;
    color: #555;
    padding: 2px 1px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Editor Footer */
.te-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.te-btn-cancel {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 8px 22px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.te-btn-cancel:hover { background: rgba(255,255,255,0.15); }
.te-btn-save {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border: none;
    color: #fff;
    border-radius: 8px;
    padding: 8px 28px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
}
.te-btn-save:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,94,32,0.5); }
.te-btn-save:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Touch drag ghost */
.te-drag-ghost {
    position: fixed;
    z-index: 10010;
    pointer-events: none;
    opacity: 0.85;
    transform: scale(1.1);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    background: #f5f5dc;
}

/* Editor responsive */
@media (max-width: 480px) {
    .te-panel { max-width: 100%; border-radius: 14px; }
    .te-grid { padding: 14px 12px; gap: 4px; }
    .te-strip-wrapper { padding: 0 12px; }
    .te-strip-card { width: 54px; }
    .te-header { padding: 14px 12px 10px; }
    .te-footer { padding: 10px 12px; }
}

/* ==================== PRIZE BREAKDOWN ==================== */
.prize-breakdown {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}
.prize-breakdown span { white-space: nowrap; }
.prize-breakdown .claimed { text-decoration: line-through; opacity: 0.4; }

/* ==================== WINNER OVERLAY ==================== */
.winner-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    animation: overlayFadeIn 0.3s ease;
}
.winner-overlay.fade-out {
    animation: overlayFadeOut 0.5s ease forwards;
}
.winner-card {
    text-align: center;
    padding: 32px 40px;
    border-radius: 20px;
    color: #fff;
    animation: winnerScaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 320px;
    width: 90%;
}
.winner-card.prize-small {
    background: linear-gradient(135deg, #546e7a, #78909c, #546e7a);
    border: 2px solid #b0bec5;
}
.winner-card.prize-big {
    background: linear-gradient(135deg, #e65100, #ff8f00, #fdd835);
    border: 2px solid #fdd835;
}
.winner-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}
.winner-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.winner-prize-type {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 8px;
}
.winner-amount {
    font-size: 36px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes overlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes winnerScaleIn {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
