/* WinksMe WinkPlay - Global Styles */
#winkplay-screen {
    position: absolute;
    top: 60px; /* Aligné sous le header global */
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)); /* S'arrête exactement à la nav bar */
    left: 0;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('assets/premium_bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.game-container {
    width: 100%;
    height: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden; /* Empêche tout scroll interne par défaut */
}

/* Specific Layout for Scrollable Games (LightsOut, Rotate, etc.) */
.game-container.wp-full-height {
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 100%;
    overflow: visible !important;
    padding-bottom: 50px !important;
    padding-top: 15px !important;
}
.wp-full-height .wp-arena-wrapper {
    justify-content: flex-start !important;
    padding-top: 20px !important;
}

.wp-arena-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 0;
    min-width: 0;
}

/* Specific Layout for Memory (6 pairs) - Move everything up */
.wp-memory-layout {
    justify-content: flex-start !important;
    padding-top: 30px !important;
}

.wp-memory-layout .wp-arena-wrapper {
    justify-content: center; 
    align-items: center;
    padding: 0;
}

.memory-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    width: 90vw; 
    max-width: 340px;
    max-height: 55dvh;
    margin: auto;
    perspective: 1000px; 
}

.wp-memory-layout-wizard .creation-body {
    justify-content: flex-start !important;
    align-items: center !important;
    padding-top: 40px !important;
    overflow-x: hidden;
}

.game-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label { font-size: 0.7rem; color: #888; text-transform: uppercase; }
.stat-value { font-size: 1.4rem; font-weight: 900; color: var(--gold, #D4AF37); }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.hole { aspect-ratio: 1/1; width: 80px; background: #222; border-radius: 50%; position: relative; overflow: hidden; box-shadow: inset 0 8px 15px rgba(0,0,0,0.8); border: 2px solid #333; }
.wink-mole { width: 70%; height: 70%; position: absolute; bottom: -100%; left: 15%; transition: bottom 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; font-size: 2.8rem; display: flex; align-items: center; justify-content: center; user-select: none; }
.wink-mole.up { bottom: 15%; }

.game-over-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 100; text-align: center; }
.game-btn { background: var(--gold, #D4AF37); color: black; border: none; padding: 12px 30px; border-radius: 50px; font-weight: bold; font-size: 1rem; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); margin-top: 10px; }

.wp-menu { width: 100%; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; scrollbar-width: none; }
.wp-menu::-webkit-scrollbar { display: none; }

.wp-game-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 20px; padding: 15px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: 0.3s; position: relative; }
.wp-game-card:hover { background: rgba(212, 175, 55, 0.1); border-color: var(--gold); transform: translateY(-3px); }

    line-height: 1.2;
    margin-top: 2px;
}

.wp-game-record {
    font-size: 0.6rem;
    color: #eee;
    font-weight: bold;
    margin-top: 8px;
}

.wp-game-global {
    font-size: 0.6rem;
    color: var(--gold, #D4AF37);
    font-weight: 900;
    margin-top: 2px;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.world-record-alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    background: linear-gradient(135deg, #D4AF37, #F2D06B);
    color: black;
    padding: 30px 15px;
    border-radius: 25px;
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1.4;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.8);
    z-index: 1000;
    animation: wpRecordPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes wpRecordPop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* DIFFICULTY SELECTOR */
.difficulty-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    width: 100%;
    max-width: 350px;
}

.diff-btn {
    flex: 1;
    border: none;
    background: none;
    color: #888;
    padding: 8px 5px;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diff-btn.active {
    background: var(--gold);
    color: black;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.diff-btn.active.easy { background: #2ecc71; box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); }
.diff-btn.active.medium { background: var(--gold); }
.diff-btn.active.hard { background: #ff4757; box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3); }

/* SHARED COMPONENTS */
.wp-game-record { font-size: 0.6rem; color: var(--gold); background: rgba(212, 175, 55, 0.1); padding: 2px 6px; border-radius: 8px; position: absolute; bottom: 5px; right: 8px; font-weight: bold; }
.new-record-msg { color: var(--gold); font-size: 1.4rem; font-weight: bold; margin-top: 10px; animation: recordScale 0.5s infinite alternate; }
@keyframes recordScale { from { transform: scale(1); } to { transform: scale(1.1); } }
.confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }

/* LYNX & INTRUS */
.lynx-timer-area { width: 100%; margin: 10px 0; }
.lynx-timer-bar { width: 100%; height: 6px; background: #333; border-radius: 10px; overflow: hidden; }
.lynx-timer-fill { width: 100%; height: 100%; background: var(--gold); transition: width 0.1s linear; }
.lynx-canvas-container { margin: 10px 0; }
#lynx-canvas { border-radius: 50%; background: #111; max-width: 280px; width: 100%; }
.lynx-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
.lynx-btn { background: #222; color: white; border: 1px solid #444; padding: 15px; border-radius: 12px; font-size: 1.2rem; font-weight: 900; cursor: pointer; }

.intrus-grid { display: grid; gap: 10px; width: 100%; margin-top: 10px; }
.intrus-grid.grid-6 { grid-template-columns: repeat(2, 1fr); max-width: 240px; margin: 10px auto 0 auto; }
.intrus-grid.grid-9 { grid-template-columns: repeat(3, 1fr); }
.intrus-grid.grid-12 { grid-template-columns: repeat(4, 1fr); }
.intrus-grid.grid-12 .intrus-item { font-size: 2rem; }
.intrus-item { aspect-ratio: 1/1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; cursor: pointer; }

/* FLOUTEUR / FLAGS QUIZ */
.flag-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.flag-card {
    width: 100%;
    aspect-ratio: 1.5/1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 3.5px solid rgba(212, 175, 55, 0.45);
    background: #111;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flag-timer-area {
    width: 100%;
    margin: 18px 0 10px 0;
}
.flag-timer-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.flag-timer-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ffa502, #ff4757);
    border-radius: 6px;
    transition: width 0.03s linear, background-color 0.2s ease;
}
.reveal-options { 
    margin-top: 10px; 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
    width: 100%; 
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.reveal-btn { 
    background: rgba(255,255,255,0.04); 
    border: 1.5px solid rgba(0, 210, 255, 0.3); 
    color: white; 
    padding: 14px 10px; 
    border-radius: 14px; 
    text-align: center; 
    font-weight: 800; 
    font-size: 0.85rem;
    cursor: pointer; 
    transition: transform 0.1s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}
.reveal-btn:active {
    transform: scale(0.96);
}

/* ARCADE CLASSICS */
.drop-arena { width: 100%; height: 380px; background: radial-gradient(circle at center, #1b0a2a 0%, #080311 100%); border: 2px solid rgba(212, 175, 55, 0.25); border-radius: 24px; position: relative; overflow: hidden; box-shadow: inset 0 0 30px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.5); touch-action: none; }
.drop-item { position: absolute; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; pointer-events: none; user-select: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
.drop-basket { position: absolute; height: 20px; background: linear-gradient(135deg, rgba(212,175,55,0.9) 0%, rgba(184,134,11,0.9) 100%); border: 2px solid rgba(255,215,0,0.6); border-radius: 6px 6px 16px 16px; box-shadow: 0 0 25px rgba(212,175,55,0.7), inset 0 2px 5px rgba(255,255,255,0.5); backdrop-filter: blur(8px); }

.memory-card-front img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* MEMORY SELECTION GRID */
.memory-import-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.memory-import-slot {
    aspect-ratio: 1/1;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(212,175,55,0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}

.memory-import-slot:hover {
    background: rgba(212,175,55,0.1);
    border-color: var(--gold);
}

.memory-import-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-import-slot .slot-idx {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.5);
    color: var(--gold);
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 900;
}

.memory-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 320px;
}

.memory-preview-item {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    border: 1px solid var(--gold);
    object-fit: cover;
    display: block;
}

.slide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 300px; height: 300px; background: #222; padding: 4px; border-radius: 10px; }
.slide-tile { width: 100%; height: 100%; background-size: 300px 300px; border-radius: 5px; cursor: pointer; }
.slide-tile.empty { background: transparent !important; }

.snake-arena { width: 300px; height: 300px; background: #000; border: 2px solid var(--gold); position: relative; box-sizing: content-box; overflow: hidden; }
.snake-part { width: 18px; height: 18px; background: white; position: absolute; border-radius: 4px; }
.snake-head { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.snake-food { width: 16px; height: 16px; background: var(--gold); position: absolute; border-radius: 50%; box-shadow: 0 0 10px var(--gold); }
.snake-controls { 
    display: grid; 
    grid-template-columns: repeat(3, 70px); 
    grid-template-rows: repeat(3, 60px);
    gap: 8px; 
    margin: 20px auto 0 auto; 
    justify-content: center;
    width: fit-content;
}
.snake-btn { 
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05); 
    color: var(--gold); 
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem; 
    cursor: pointer; 
    transition: background 0.1s, transform 0.1s;
    user-select: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    touch-action: manipulation;
}
.snake-btn:active {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(0.92);
}

.calc-operation { font-size: 3rem; color: white; font-weight: 900; margin: 20px 0; }
.calc-btn { width: 100%; padding: 12px; margin: 5px 0; background: #222; border: 1px solid var(--gold); color: var(--gold); border-radius: 10px; font-size: 1.2rem; }

.pop-arena { flex: 1; width: 100%; min-height: 400px; background: rgba(0,0,0,0.2); border-radius: 20px; position: relative; overflow: hidden; margin: 10px 0; }
.pop-bubble { width: 60px; height: 60px; border-radius: 50%; position: absolute; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(255,255,255,0.3), rgba(212,175,55,0.1)); border: 1px solid white; }
.pop-bubble.bomb { background: radial-gradient(circle, rgba(255,0,0,0.4), rgba(255,0,0,0.1)); border-color: red; }

/* PHYSICS GAMES */
.gravity-arena { width: 320px; height: 420px; background: #050505; border: 2px solid rgba(212, 175, 55, 0.3); border-radius: 15px; position: relative; overflow: hidden; cursor: crosshair; }
.gravity-brick { position: absolute; width: 52px; height: 40px; background: var(--gold); color: black; display: flex; align-items: center; justify-content: center; font-weight: 900; border-radius: 6px; border: 1px solid white; transition: top 0.3s; }
.gravity-ball { width: 12px; height: 12px; background: white; position: absolute; border-radius: 50%; box-shadow: 0 0 8px white; }
.gravity-bonus { position: absolute; width: 22px; height: 22px; background: #4cd137; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; font-weight: bold; }

.slice-arena { flex: 1; width: 100%; min-height: 400px; background: #000; border-radius: 20px; position: relative; overflow: hidden; touch-action: none; margin: 10px 0; }
.slice-obj { position: absolute; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; z-index: 5; pointer-events: none; }
.slice-trail-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; }
.slice-part { position: absolute; width: 60px; height: 60px; font-size: 2.5rem; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.slice-part.left { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.slice-part.right { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }

/* TOWER & JUMP */
.tower-arena { 
    width: 320px; 
    height: 480px; 
    background: radial-gradient(circle at 50% 30%, #150d2a 0%, #070312 100%); 
    border-radius: 20px; 
    position: relative; 
    overflow: hidden; 
    transition: background 1.5s; 
    box-shadow: inset 0 0 50px rgba(0,0,0,0.9); 
}
.tower-cityscape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.25;
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
}
.city-building {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, #11052C, #3D087B);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1);
}
.city-building.b1 { left: 10px; width: 45px; height: 180px; background: linear-gradient(to top, #0f051d, #240a45); border-right: 1px solid rgba(255,255,255,0.05); }
.city-building.b2 { left: 65px; width: 55px; height: 230px; background: linear-gradient(to top, #080215, #1d0332); }
.city-building.b3 { left: 130px; width: 70px; height: 160px; background: linear-gradient(to top, #0f051d, #2c064c); }
.city-building.b4 { left: 210px; width: 50px; height: 210px; background: linear-gradient(to top, #0c021a, #1a0330); }
.city-building.b5 { left: 270px; width: 40px; height: 140px; background: linear-gradient(to top, #080215, #22033c); }

.tower-block { 
    position: absolute; 
    height: 30px; 
    border-radius: 5px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.6); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 3px solid rgba(255, 255, 255, 0.95);
    overflow: hidden;
    z-index: 5;
    box-sizing: border-box;
}
.tower-windows-pattern {
    width: 90%;
    height: 12px;
    opacity: 0.85;
    background-image: repeating-linear-gradient(90deg, 
        rgba(255, 255, 255, 0.85) 0px, 
        rgba(255, 255, 255, 0.85) 6px, 
        transparent 6px, 
        transparent 12px
    );
    margin-top: 2px;
}
.tower-perfect { 
    position: absolute; 
    width: 100%; 
    text-align: center; 
    color: #fff; 
    font-weight: 900; 
    font-size: 2.2rem; 
    text-shadow: 0 0 15px #ffd700, 0 0 30px #ff8c00;
    pointer-events: none; 
    z-index: 50; 
    animation: perfectFly 0.8s forwards; 
}
@keyframes perfectFly { 0% { transform: scale(0.5); opacity: 0; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.tower-base { 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 150px; 
    height: 50px; 
    background: linear-gradient(to top, #151522 0%, #303045 100%); 
    border-top: 5px solid #00d2ff; 
    box-shadow: 0 -4px 15px rgba(0, 210, 255, 0.4), inset 0 1px 3px rgba(255,255,255,0.2);
    z-index: 4;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.tower-controls {
    width: 100%;
    max-width: 320px;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.tower-drop-btn {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #00d2ff 0%, #00e8ff 100%);
    color: #070312;
    border: none;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.45), 0 0 10px rgba(0, 210, 255, 0.2);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 12;
}
.tower-drop-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #00b8e6 0%, #00d2ff 100%);
    box-shadow: 0 3px 10px rgba(0, 210, 255, 0.35);
}

.jump-arena { width: 100%; height: 380px; background: #050505; border-radius: 20px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.jump-parallax { position: absolute; width: 200%; height: 100%; background: repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(255,255,255,0.02) 100px); z-index: 1; }
.jump-player { position: absolute; width: 40px; height: 40px; z-index: 10; }
.jump-platform { position: absolute; height: 60px; background: #1a1a1a; border-top: 4px solid var(--gold); z-index: 5; }
.jump-spike { position: absolute; width: 20px; height: 20px; background: #ff4757; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); z-index: 6; }
.jump-trail {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0.6;
    pointer-events: none;
}

/* WINK PATH */
.path-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin-top: 15px;
}

.path-tile {
    aspect-ratio: 1/1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.path-tile.active {
    background: var(--gold);
    box-shadow: 0 0 20px var(--gold);
    transform: scale(1.05);
    z-index: 2;
}

.path-tile.correct {
    background: rgba(212, 175, 55, 0.4);
    box-shadow: inset 0 0 10px var(--gold);
}

.path-tile.wrong {
    background: #ff4757;
    box-shadow: 0 0 20px #ff4757;
}

.path-tile.distract {
    animation: blinkDistract 0.5s alternate infinite;
}

@keyframes blinkDistract {
    from { background: rgba(255,255,255,0.1); }
    to { background: rgba(255,255,255,0.02); }
}

/* WINK COLOR */
.color-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.color-word {
    font-size: 4rem;
    font-weight: 900;
    margin: 40px 0;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.color-btn {
    height: 60px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.color-btn:active { transform: scale(0.95); }

/* WINK CONNECT */
.connect-arena {
    width: 100%;
    height: 450px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    touch-action: none;
}

.connect-dot {
    position: absolute;
    width: 45px;
    height: 45px;
    background: #111;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 10;
    transition: transform 0.2s, background 0.3s, border-color 0.3s;
    user-select: none;
}

.connect-dot.active {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 20px var(--gold);
    transform: scale(1.1);
}

.connect-dot.done {
    opacity: 0.3;
    border-color: #555;
    color: #555;
    transform: scale(0.9);
}

/* WINK ZAP */
.zap-arena {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.zap-signal {
    font-size: 6rem;
    display: none;
    z-index: 10;
}

.zap-signal.active {
    display: block;
    animation: zapFlash 0.1s infinite alternate;
}

@keyframes zapFlash {
    from { transform: scale(1); filter: drop-shadow(0 0 10px #ff4757); }
    to { transform: scale(1.1); filter: drop-shadow(0 0 30px #ff4757); }
}

.zap-wait-msg {
    color: #444;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.zap-result {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    text-align: center;
}

/* WINK ROTATE */
.rotate-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.rotate-main-box {
    width: 150px;
    height: 150px;
    background: #111;
    border: 2px solid #333;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.rotate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-arrow-display {
    font-size: 4rem;
    color: var(--gold);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: arrowPop 0.5s;
}

@keyframes arrowPop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.rotate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.rotate-opt {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.rotate-opt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* WINK SUPERNOVA */
.supernova-arena {
    flex: 1;
    width: 100%;
    min-height: 400px;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    margin: 10px 0;
}

.nova-particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nova-particle img {
    width: 80%;
    height: 80%;
}

.nova-explosion {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.6) 0%, rgba(212,175,55,0.1) 60%, transparent 100%);
    border: 2px solid rgba(212,175,55,0.4);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.master-arcade-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(0,0,0,0.9);
    padding: 20px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-weight: 900;
    text-align: center;
    z-index: 100;
    box-shadow: 0 0 50px var(--gold);
    animation: masterPulse 0.5s infinite alternate;
}

@keyframes masterPulse {
    from { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(1.6); opacity: 0.8; }
}

/* SYSTEM UI */
.non-stop-btn { width: 90%; background: linear-gradient(45deg, #b8860b, #D4AF37, #fff, #D4AF37); background-size: 200% auto; color: black; padding: 18px; border-radius: 15px; font-weight: 900; margin-bottom: 15px; border: none; cursor: pointer; animation: shimmer 3s infinite linear; }
@keyframes shimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
.session-score-tag { background: var(--gold); color: black; padding: 4px 15px; border-radius: 50px; font-weight: 900; box-shadow: 0 0 15px var(--gold); border: 2px solid white; }
.transition-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: black; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.transition-overlay.active { opacity: 1; pointer-events: all; }
.loader-wink { width: 60px; animation: spinWink 1.5s infinite ease-in-out; }
@keyframes spinWink { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* DYNAMIC RECORD CARD (FLASH WALL / LOBBY) */
.record-card-flash {
    width: 90%;
    max-width: 380px;
    background: linear-gradient(135deg, #1a102f 0%, #0b001a 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    margin: 10px auto;
    position: relative;
    overflow: hidden;
}

.record-card-header {
    color: #ffd700;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.record-card-icon {
    font-size: 5rem;
    margin: 15px 0;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    animation: iconPulse 2s infinite alternate;
}

@keyframes iconPulse {
    from { transform: scale(1) rotate(-5deg); filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
    to { transform: scale(1.1) rotate(5deg); filter: drop-shadow(0 0 35px rgba(255, 215, 0, 1)); }
}

.record-card-champion {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 60px;
    border: 1px solid rgba(255,215,0,0.4);
}

.record-card-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    object-fit: cover;
}

.record-card-name {
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
}

.record-card-score {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin: 10px 0;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.record-card-footer {
    margin-top: 25px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    background: rgba(0,0,0,0.3);
    padding: 8px 15px;
    border-radius: 15px;
}

.record-card-footer strong {
    color: #ffd700;
}

/* LOBBY SPECIAL BUBBLE */
.chat-bubble.system-record {
    background: linear-gradient(135deg, #D4AF37 0%, #8e44ad 100%) !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5) !important;
    color: white !important;
}

.chat-bubble.system-record .chat-name {
    color: white !important;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.chat-bubble.system-record .record-card-flash {
    transform: scale(0.7);
    margin: -30px 0;
    box-shadow: none;
    background: none;
    border: none;
}

/* WINK GRID (21) */
.grid-arena {
    width: 280px;
    height: 280px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px auto;
}

.grid-tile {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.grid-tile.active {
    background: var(--gold);
    box-shadow: 0 0 20px var(--gold);
    transform: scale(1.05);
}

.grid-tile.correct { background: #2ed573; }
.grid-tile.wrong { background: #ff4757; animation: shake 0.3s; }

/* WINK TARGET (22) */
.target-arena { flex: 1; width: 100%; min-height: 400px; position: relative; overflow: hidden; margin: 10px 0; background: radial-gradient(circle at center, #0c001c 0%, #030008 100%); border-radius: 20px; border: 1px solid rgba(138, 43, 226, 0.3); box-shadow: inset 0 0 25px rgba(0,0,0,0.9); }
.target-bow { font-size: 2.5rem; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; transform: rotate(-45deg); pointer-events: none; filter: drop-shadow(0 0 10px rgba(0,210,255,0.7)); }
.target-arrow { position: absolute; width: 4px; height: 25px; background: linear-gradient(to top, rgba(0,210,255,0.2), #00d2ff); border-radius: 2px; box-shadow: 0 0 12px #00d2ff, 0 0 4px #00d2ff; z-index: 4; }
.target-obj { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle, #ff007f 0%, #9100ff 60%, rgba(0,0,0,0.3) 100%); border: 2px solid #00d2ff; box-shadow: 0 0 20px rgba(0,210,255,0.6), inset 0 0 10px rgba(255,255,255,0.5); z-index: 5; pointer-events: none; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; font-weight: bold; text-shadow: 0 0 5px #00d2ff; }
.target-barrier { position: absolute; height: 10px; background: linear-gradient(90deg, #ff4757, #ff6b81); border-radius: 5px; box-shadow: 0 0 15px rgba(255, 71, 87, 0.8); z-index: 4; pointer-events: none; transform: translate(-50%, -50%); }
.target-flash { position: absolute; inset: 0; pointer-events: none; animation: flashOut 0.3s forwards; }
.target-flash.ok { background: rgba(46, 213, 115, 0.2); }
.target-flash.ko { background: rgba(255, 71, 87, 0.2); }
@keyframes flashOut { from { opacity: 1; } to { opacity: 0; } }

/* WINKPLAY PREMIUM */
.premium-menu-btn {
    width: 90%;
    background: linear-gradient(135deg, var(--gold) 0%, #ffcc00 100%);
    border: none;
    padding: 18px;
    border-radius: 15px;
    color: #000;
    font-weight: 900;
    font-size: 1rem;
    margin: 10px auto 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: premiumShine 2s infinite alternate;
}

@keyframes premiumShine {
    from { transform: scale(1); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }
    to { transform: scale(1.02); box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6); }
}

.wp-game-card.premium {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.scratch-arena {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

.scratch-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.scratch-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: crosshair;
    touch-action: none;
}

.shooter-arena {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

.shooter-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: filter 0.5s ease;
}

.shooter-target {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: crosshair;
    z-index: 10;
    transition: transform 0.1s;
    user-select: none;
    filter: drop-shadow(0 0 5px rgba(212,175,55,0.5));
    animation: targetFloat 2s ease-in-out infinite alternate;
}

@keyframes targetFloat {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-5px) scale(1.1); }
}

.shooter-target:active {
    transform: scale(0.8);
}

.kiss-question-banner {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 15px auto;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(0, 0, 0, 0.8));
    border: 1px solid #ff4757;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.kiss-author-name {
    color: #ffd700;
    font-weight: bold;
}

.kiss-arena {
    width: 100%;
    max-width: 450px;
    max-height: 100%;
    aspect-ratio: 1/1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    border-radius: 15px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.kiss-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.kiss-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 10;
}

.kiss-marker.victory {
    animation: heartBeat 0.5s infinite;
}

@keyframes heartBeat {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.choice-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

.choice-btn.global {
    border-left: 4px solid #00d2ff;
}

.choice-btn.create {
    border-left: 4px solid var(--gold);
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    margin: 10px auto;
    width: 280px;
    height: 380px;
}

.memory-card {
    width: 100%;
    height: 100%;
    perspective: 1000px;
    cursor: pointer;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-back, .memory-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.memory-card-back {
    background: #1a102f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memory-card-back img {
    width: 40%;
    opacity: 0.3;
}

.memory-card-front {
    background: #000;
    transform: rotateY(180deg);
}

.memory-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
}

.wp-creation-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 900;
}

.wp-creation-steps span.active {
    color: var(--gold);
}

.wp-creation-steps span.done {
    color: #00d2ff;
}

.wp-creation-steps .sep {
    opacity: 0.3;
}

.wp-memory-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 250px;
    margin: 20px auto;
}

.mini-slot {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-slot.filled {
    border: 1px solid var(--gold);
    background: #000;
}

.mini-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-upload-preview {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 2px solid var(--gold);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.wp-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ACTION BAR CREATION */
.creation-action-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.action-btn {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.edit {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.action-btn.delete {
    background: #333;
    color: #888;
}

.action-btn.publish {
    background: var(--gold);
    color: black;
    font-weight: 900;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.action-btn:active {
    transform: scale(0.98);
}

/* VOTE BAR */
.wp-vote-bar {
    margin-top: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.reaction-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.vote-btn {
    background: #222;
    border: 1px solid #444;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn:hover { transform: scale(1.1); border-color: var(--gold); }
.vote-btn.like:active { background: #2ecc71; color: white; }
.vote-btn.dislike:active { background: #e74c3c; color: white; }

/* CREATOR STATS IN PROFILE */
.creator-stats-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.stat-info {
    flex: 1;
}

.stat-game-name {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-counters {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #888;
}

.stat-counters span {
    display: flex;
    align-items: center;
    gap: 4px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CREATION WIZARD PREMIUM */
.creation-full-view {
    position: fixed; top:0; left:0; width:100%; height:100dvh;
    background: #000; z-index: 2000;
    display: flex; flex-direction: column;
    overflow: hidden;
}

.creation-header {
    padding: 10px 15px; border-bottom: 1px solid rgba(212,175,55,0.2);
    display: flex; flex-direction: column; gap: 5px;
}

.creation-title-row {
    display: flex; align-items: center; justify-content: space-between;
}

.creation-stepper-mini {
    display: flex; justify-content: space-around; align-items: center;
    background: rgba(255,255,255,0.05); padding: 5px 8px; border-radius: 10px;
}

.step-pill {
    font-size: 0.9rem; color: #666; font-weight: bold;
    display: flex; align-items: center; gap: 4px;
}

.step-pill.active { color: var(--gold); }

.creation-body {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 15px 15px; position: relative;
    min-height: 0; 
    overflow-y: auto;
}

.import-zone-dotted {
    width: 200px; height: 200px;
    border: 2px dashed rgba(212,175,55,0.3);
    border-radius: 25px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; color: #888; text-align: center;
    cursor: pointer; transition: 0.3s;
}

.import-zone-dotted:hover { background: rgba(212,175,55,0.05); border-color: var(--gold); }

.creation-img-container {
    width: 100%; 
    max-width: 450px;
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(212,175,55,0.3);
    display: flex; align-items: center; justify-content: center;
    background: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.creation-img-container img {
    width: 100%; height: 100%; object-fit: contain;
}

.creation-instruction-banner {
    background: rgba(0,0,0,0.85); color: var(--gold);
    padding: 12px 15px; border-radius: 15px;
    font-size: 1rem; font-weight: 900;
    margin-bottom: 12px; text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212,175,55,0.5);
    width: 95%;
}

.creation-footer {
    padding: 10px 20px 75px 20px; display: flex; flex-direction: column; gap: 8px;
}

.loader-overlay-creation {
    position: absolute; inset: 0; background: rgba(0,0,0,0.8);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 15px; z-index: 100;
}

/* --- ADMIN MODERATION : CHALLENGES --- */
.admin-challenge-item {
    transition: transform 0.2s, background 0.2s;
}
.admin-challenge-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}
.admin-challenge-stats span {
    background: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #333;
}

/* WINK SCRATCH */
.scratch-arena {
    width: 100%;
    max-height: 100%;
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.scratch-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}

/* WINK HIDDEN SPECIFIC */
.hidden-target { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.hidden-target.found { pointer-events: none; z-index: 100; animation: objectFound 0.5s forwards; }
@keyframes objectFound { 
    0% { transform: translate(-50%, -50%) scale(1); } 
    50% { transform: translate(-50%, -50%) scale(2); filter: brightness(2); } 
    100% { transform: translate(-50%, -50%) scale(1.5); filter: brightness(1); } 
}

.obj-selector { width: 90%; justify-content: flex-start; }

/* Scrollbar personnalisée pour PC */
.obj-selector::-webkit-scrollbar {
    height: 10px;
}
.obj-selector::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 5px;
}
.obj-selector::-webkit-scrollbar-thumb {
    background: var(--gold); 
    border-radius: 5px;
}
.obj-btn { 
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid #333; 
    background: rgba(255,255,255,0.05); font-size: 2rem; display: flex; 
    align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; 
}
.obj-btn.active { border-color: var(--gold); background: rgba(212,175,55,0.2); transform: scale(1.1); box-shadow: 0 0 15px var(--gold); }

.control-panel { 
    width: 90%; background: rgba(20,20,20,0.95); border: 1px solid #444; 
    border-radius: 15px; padding: 15px; margin-top: 10px; backdrop-filter: blur(10px); 
    display: flex; flex-direction: column; gap: 12px;
}
.control-row { display: flex; align-items: center; justify-content: space-between; color: #ccc; font-size: 0.8rem; }
.control-row input[type=" range"] { flex: 1; margin-left: 15px; accent-color: var(--gold); }
.control-row select { background: #333; color: white; border: 1px solid #555; padding: 5px; border-radius: 5px; }

.placed-obj { cursor: pointer; border: 1px dashed rgba(255,255,255,0); border-radius: 50%; padding: 5px; }
.placed-obj.active { border-color: var(--gold); background: rgba(212,175,55,0.1); }

/* WINKPLAY INTRO SWIPE SYSTEM */
.swipe-intro-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    background: #000;
    scrollbar-width: none;
}
.swipe-intro-wrapper::-webkit-scrollbar {
    display: none;
}
.swipe-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    box-sizing: border-box;
}
.swipe-slide-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 60px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
}
.swipe-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: background 0.3s, transform 0.3s;
}
.swipe-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}
.swipe-dot.active-premium {
    background: #ff4757;
    transform: scale(1.2);
}
.swipe-enter-btn {
    padding: 12px 45px;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Outfit', 'Inter', sans-serif;
}
.swipe-enter-btn:active {
    transform: scale(0.95);
}
.swipe-enter-btn.standard {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: #000;
    box-shadow: 0 8px 25px rgba(212,175,55,0.4);
}
.swipe-enter-btn.premium {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(255,71,87,0.4);
}

@keyframes dropShake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-4px, 3px); }
    20% { transform: translate(4px, -3px); }
    30% { transform: translate(-3px, -2px); }
    40% { transform: translate(3px, 2px); }
    50% { transform: translate(-2px, 1px); }
    60% { transform: translate(2px, -1px); }
    70% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    90% { transform: translate(-0.5px, 0.5px); }
    100% { transform: translate(0, 0); }
}

/* --- DRAPEAUX GAME (WINGS WORLD FLAGS QUIZ) --- */
.flag-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.flag-card {
    width: 100%;
    aspect-ratio: 1.5/1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 3.5px solid rgba(212, 175, 55, 0.45);
    background: #111;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flag-timer-area {
    width: 100%;
    margin: 18px 0 10px 0;
}
.flag-timer-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.flag-timer-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ffa502, #ff4757);
    border-radius: 6px;
    transition: width 0.03s linear, background-color 0.2s ease;
}

/* --- FLOUTEUR GAME (LANDMARKS BLUR) --- */
.blur-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Regroupe les éléments serrés l'un sous l'autre */
    width: 94%;
    max-width: 450px;
    height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    gap: 8px; /* Colle le panneau de boutons juste en dessous de l'image */
}
.blur-container {
    width: 100%;
    height: 50vh; /* Utilise 50% de la hauteur de l'écran */
    max-height: 360px; /* Taille immersive sur grands smartphones */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 3.5px solid rgba(212, 175, 55, 0.55);
    background-color: transparent; /* Intégration propre sans bandes colorées */
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.blur-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche l'image à 100% sans jamais couper le haut ou les côtés */
    transition: filter 0.3s ease;
}
.blur-reveal-area {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Conteneur parent des deux boutons */
.winkplay-buttons-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px; /* Espace entre les deux boutons */
  width: 100%;
  padding: 0 16px; /* Alignement avec les cartes du dessous */
  box-sizing: border-box;
  margin-bottom: 15px;
}

/* Style commun aux deux boutons */
.winkplay-btn {
  flex: 1; /* Force les deux boutons à avoir exactement la même largeur (50/50) */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px; /* Hauteur réduite et identique pour les deux */
  cursor: pointer;
  outline: none;
  
  /* Fond noir semi-transparent pour voir le marbre */
  background-color: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(2px); /* Optionnel : sublime l'effet sous le bouton */
  
  /* Bordure dorée et arrondi harmonisé */
  border: 1px solid #d4af37; 
  border-radius: 12px; /* À ajuster selon le radius exact de vos cartes */
  
  color: #d4af37; /* Texte doré par défaut */
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s;
}

.winkplay-btn:hover {
  background-color: rgba(212, 175, 55, 0.15);
}

/* Style spécifique pour le texte 18+ en rouge vif */
.winkplay-btn .age-restriction {
  color: #ff0055;
  margin-left: 5px;
  font-weight: 900;
}

/* Switch & Slider styles */
.switch { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; min-width: 46px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--gold, #D4AF37); }
input:checked + .slider:before { transform: translateX(22px); }

/* SHINE EFFECT FOR PREMIUM BUTTON */
.premium-btn-shine {
    position: relative;
    overflow: hidden;
}

.premium-btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(212,175,55,0) 0%, rgba(212,175,55,0.8) 50%, rgba(212,175,55,0) 100%);
    transform: skewX(-25deg);
    animation: shineGold 7s infinite;
}

@keyframes shineGold {
    0% { left: -100%; }
    25% { left: 200%; }
    100% { left: 200%; }
}

.waiting-dot { animation: fadeDot 1.4s infinite; }
.waiting-dot:nth-child(2) { animation-delay: 0.2s; }
.waiting-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes fadeDot { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }


