/*
Theme Name: Streamer Watcher Vote
Theme URI: https://jeremy-sassi.fr/
Author: InsimaNetWorks
Author URI: https://jeremy-sassi.fr/
Description: Vote communautaire mensuel trilingue (FR EN DE) - le streamer elu est mis en avant dans l'extension Chrome Streamer Watcher.
Version: 1.4.6
Requires PHP: 7.0
License: Proprietary
Text Domain: sw-vote
*/

:root {
    --beam-pink: #ff2a6d;
    --beam-core: #ff8ec4;
    --accent-cyan: #00d4ff;
    --accent-teal: #2af5d0;
    --twitch: #9146ff;
    --panel-bg: rgba(5, 12, 30, 0.86);
    --panel-border: rgba(0, 212, 255, 0.3);
    --txt: #eaf2ff;
    --txt-dim: rgba(234, 242, 255, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
    background: #0a0e1a;
    font-family: 'Rajdhani', sans-serif;
    color: var(--txt);
    overflow-x: hidden;
    min-height: 100vh;
}

.scene {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        #070b15 0%,
        #0c1328 20%,
        #0f1a3a 40%,
        #142250 55%,
        #182a5e 65%,
        #1c3268 72%,
        #1e3a6e 80%,
        #1a3058 100%
    );
}

.stars { position: absolute; inset: 0; }
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    animation: star-twinkle ease-in-out infinite;
}
@keyframes star-twinkle {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.8; }
}

.moon {
    position: absolute;
    top: 8%;
    right: 16%;
    width: 58px;
    height: 58px;
    background: radial-gradient(circle at 35% 35%, #ffeedd, #ccc 30%, #777 70%, #555 100%);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(255,238,200,0.12), 0 0 80px rgba(255,238,200,0.06);
}
.moon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 55% 45%, transparent 45%, rgba(0,0,0,0.35) 100%);
}

.clouds-container { position: absolute; inset: 0; }
.cloud-svg { position: absolute; opacity: 0; animation: cloud-drift linear infinite; }
.cloud-far path { fill: rgba(6, 10, 24, 0.4); }
.cloud-mid path { fill: rgba(8, 14, 30, 0.55); }
.cloud-near path { fill: rgba(10, 16, 34, 0.7); stroke: rgba(255, 42, 109, 0.1); stroke-width: 1.5; }
.cl1 { top: 10%; width: 200px; animation-duration: 80s; animation-delay: -5s; }
.cl2 { top: 16%; width: 260px; animation-duration: 100s; animation-delay: -35s; }
.cl3 { top: 6%; width: 160px; animation-duration: 70s; animation-delay: -55s; }
.cl4 { top: 22%; width: 300px; animation-duration: 110s; animation-delay: -20s; }
.cl5 { top: 13%; width: 220px; animation-duration: 88s; animation-delay: -65s; }
.cl6 { top: 28%; width: 190px; animation-duration: 78s; animation-delay: -45s; }
@keyframes cloud-drift {
    0% { transform: translateX(-120%); opacity: 0; }
    3% { opacity: 0.8; }
    97% { opacity: 0.8; }
    100% { transform: translateX(100vw); opacity: 0; }
}

.horizon-glow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30%;
    height: 26%;
    background: radial-gradient(ellipse 75% 100% at 50% 100%, rgba(32, 178, 215, 0.4) 0%, rgba(24, 130, 170, 0.18) 45%, transparent 75%);
    pointer-events: none;
}

.ocean {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35%;
    overflow: hidden;
}
.ocean-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #12708e 0%, #0c4a66 18%, #0a2c48 45%, #051424 75%, #030b14 100%);
}
.wave-line {
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, rgba(25,90,130,0.3) 20%, rgba(35,110,160,0.5) 45%, rgba(25,90,130,0.3) 65%, transparent 85%);
    animation: wave-shimmer ease-in-out infinite;
}
@keyframes wave-shimmer {
    0%, 100% { opacity: 0.3; transform: scaleX(1) translateX(0); }
    50% { opacity: 0.8; transform: scaleX(1.03) translateX(5px); }
}
.water-grid {
    position: absolute;
    width: 200%;
    height: 300%;
    bottom: 0;
    left: -50%;
    background-image:
        linear-gradient(rgba(40,160,200,0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40,160,200,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(400px) rotateX(75deg);
    transform-origin: center bottom;
    animation: grid-scroll 4s linear infinite;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.4), transparent 55%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.4), transparent 55%);
}
@keyframes grid-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}
.ocean-beam-reflection {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50px);
    width: 100px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,42,109,0.25) 0%, rgba(255,42,109,0.1) 25%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(20px);
}

.fog-container {
    position: absolute;
    bottom: 18%;
    width: 100%;
    height: 30%;
}
.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(15,25,50,0.4) 15%, rgba(20,35,65,0.5) 30%, rgba(15,25,50,0.2) 50%, rgba(20,35,65,0.5) 70%, rgba(15,25,50,0.4) 85%, transparent 100%);
    animation: fog-drift linear infinite;
}
.fog-1 { animation-duration: 25s; bottom: 0; opacity: 0.5; }
.fog-2 { animation-duration: 38s; animation-delay: -12s; bottom: 8%; opacity: 0.35; }
.fog-3 { animation-duration: 50s; animation-delay: -28s; bottom: 18%; opacity: 0.25; }
@keyframes fog-drift {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.particle-container { position: absolute; inset: 0; }
.ambient-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(42,245,208,0.4);
    border-radius: 50%;
    animation: float-up linear infinite;
}
@keyframes float-up {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-200px) translateX(30px); opacity: 0; }
}

.island-container {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    width: 620px;
    max-width: 94vw;
    height: 72vh;
    max-height: 720px;
}
.island-svg { width: 100%; height: 100%; overflow: visible; }

.dish-tilt {
    transform-origin: 0px 0px;
    animation: dish-scan 14s ease-in-out infinite;
    transition: transform 0.35s ease-in;
}
@keyframes dish-scan {
    0%, 100% { transform: rotate(-26deg); }
    50% { transform: rotate(4deg); }
}
.scene.firing .dish-tilt {
    animation: none;
    transform: rotate(0deg);
}

.dish-core { animation: core-pulse 3s ease-in-out infinite; transform-origin: center; }
@keyframes core-pulse {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}
.focal-light { animation: focal-pulse 1.6s ease-in-out infinite; }
@keyframes focal-pulse {
    0%, 100% { opacity: 0.6; r: 4; }
    50% { opacity: 1; r: 6; }
}
.arc { opacity: 0; }
.arc1 { animation: arc-flicker 2.1s steps(1) infinite; }
.arc2 { animation: arc-flicker 2.7s steps(1) infinite 0.6s; }
.arc3 { animation: arc-flicker 3.3s steps(1) infinite 1.3s; }
@keyframes arc-flicker {
    0%, 88%, 96%, 100% { opacity: 0; }
    90%, 94% { opacity: 0.9; }
}
.beam-idle-group line { transition: opacity 0.25s ease, stroke-width 0.25s ease; }
.beam-glow { animation: beam-breathe 4s ease-in-out infinite; }
@keyframes beam-breathe {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}
.scene.firing .beam-idle-group line { transition-delay: 0.3s; }
.scene.firing .beam-glow { stroke-width: 34; opacity: 0.5; animation: none; }
.scene.firing .beam-body { stroke-width: 13; opacity: 1; }
.scene.firing .beam-core { stroke-width: 4.5; opacity: 1; }
.scene.firing .dish-core { animation: core-fire 0.4s ease-in-out infinite; }
@keyframes core-fire {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.shooting-layer { position: absolute; inset: 0; overflow: hidden; }
.shooting-star {
    position: absolute;
    width: 130px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9));
    border-radius: 2px;
    transform: rotate(32deg);
    animation: shoot 1.1s ease-out forwards;
    pointer-events: none;
}
@keyframes shoot {
    0% { transform: translate(0, 0) rotate(32deg); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translate(260px, 162px) rotate(32deg); opacity: 0; }
}
.palm-group { animation: palm-sway 5s ease-in-out infinite; transform-origin: 50% 88%; transform-box: fill-box; }
.palm-left { animation-delay: -1s; }
.palm-right { animation-delay: -2.5s; }
.palm-small { animation-delay: -3.6s; }
@keyframes palm-sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.4deg); }
    75% { transform: rotate(-1deg); }
}

.scene.firing .ocean-beam-reflection { opacity: 1; }

.beam-msg {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    font-weight: 900;
    color: white;
    text-shadow: 0 0 30px var(--beam-pink), 0 0 60px var(--beam-pink), 0 0 120px rgba(255,42,109,0.3);
    letter-spacing: 8px;
    white-space: nowrap;
    opacity: 0;
    z-index: 60;
    pointer-events: none;
}
body.firing .beam-msg { animation: msg-appear 2.2s ease-out forwards; }
@keyframes msg-appear {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); filter: blur(10px); }
    12% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); filter: blur(0); }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.screen-flash {
    position: fixed;
    inset: 0;
    background: white;
    opacity: 0;
    z-index: 55;
    pointer-events: none;
}
body.firing .screen-flash { animation: flash-bang 0.35s ease-out 0.35s; }
@keyframes flash-bang {
    0% { opacity: 0.45; }
    100% { opacity: 0; }
}
body.shake .site-content { animation: scene-shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes scene-shake {
    10%, 90% { transform: translate3d(-2px, -2px, 0); }
    20%, 80% { transform: translate3d(3px, 3px, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, -4px, 0); }
    40%, 60% { transform: translate3d(5px, 4px, 0); }
}

.hud-overlay { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

.site-content { position: relative; z-index: 10; }

.clip-panel {
    position: relative;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.clip-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-cyan), transparent 50%);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    opacity: 0.12;
    pointer-events: none;
}
.clip-panel.pink { border-color: rgba(255,42,109,0.35); }
.clip-panel.pink::before { background: linear-gradient(135deg, var(--beam-pink), transparent 50%); }

.hud-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}
.hud-label.pink { color: var(--beam-pink); }
.hud-label.teal { color: var(--accent-teal); }

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    transition: background 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
    background: rgba(5, 10, 24, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(0,212,255,0.15);
}
.nav-brand { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.nav-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.05rem;
    font-weight: 900;
    color: white;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255,42,109,0.4);
}
.nav-title span { color: var(--beam-pink); }
.nav-subtitle {
    font-size: 0.62rem;
    color: rgba(255,142,196,0.6);
    letter-spacing: 5px;
    text-transform: uppercase;
}
.nav-right { display: flex; align-items: center; gap: 14px; }

.indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    letter-spacing: 2px;
}
.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 8px var(--accent-teal);
    animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    padding: 12px 26px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-twitch { background: var(--twitch); }
.btn-twitch:hover { background: #7c2ce0; box-shadow: 0 0 22px rgba(145,70,255,0.5); }
.btn-pink { background: var(--beam-pink); }
.btn-pink:hover { background: #e01458; box-shadow: 0 0 22px rgba(255,42,109,0.5); }
.btn-ghost { background: transparent; border-color: rgba(0,212,255,0.4); color: var(--accent-cyan); }
.btn-ghost:hover { border-color: var(--accent-cyan); box-shadow: 0 0 15px rgba(0,212,255,0.25); }
.btn-ghost.pink { border-color: rgba(255,42,109,0.4); color: var(--beam-pink); }
.btn-ghost.pink:hover { border-color: var(--beam-pink); box-shadow: 0 0 15px rgba(255,42,109,0.25); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 16px; height: 16px; }

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: rgba(5,12,30,0.85);
    border: 1px solid rgba(145,70,255,0.35);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.user-chip img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--twitch); }
.user-chip .u-name { font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; }
.user-chip a { color: var(--txt-dim); font-size: 0.7rem; text-decoration: none; letter-spacing: 1px; }
.user-chip a:hover { color: var(--beam-pink); }

.section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 90px 24px;
}
.section-head { text-align: center; margin-bottom: 44px; }
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: white;
    text-transform: uppercase;
}
.section-title .neon-pink { color: var(--beam-pink); text-shadow: 0 0 25px rgba(255,42,109,0.6); }
.section-title .neon-cyan { color: var(--accent-cyan); text-shadow: 0 0 25px rgba(0,212,255,0.6); }
.section-sub { margin-top: 12px; color: var(--txt-dim); font-size: 1.02rem; letter-spacing: 1px; }

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    gap: 34px;
}
.hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: var(--accent-teal);
    font-weight: 600;
    text-transform: uppercase;
}
.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 6px;
    line-height: 1.15;
    color: white;
    text-shadow: 0 0 40px rgba(255,42,109,0.35);
}
.hero-title span { color: var(--beam-pink); }

.featured-card {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 26px 34px;
    text-align: left;
    max-width: 640px;
    width: 100%;
}
.featured-avatar-wrap { position: relative; flex-shrink: 0; }
.featured-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--beam-pink);
    box-shadow: 0 0 30px rgba(255,42,109,0.55), inset 0 0 18px rgba(255,42,109,0.2);
    object-fit: cover;
    background: #101a35;
}
.featured-crown {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(255,200,60,0.8));
}
.featured-info { flex: 1; min-width: 0; }
.featured-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.3rem, 3.4vw, 2rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.featured-meta { margin-top: 8px; color: var(--txt-dim); font-size: 0.95rem; letter-spacing: 1px; }
.featured-meta b { color: var(--accent-teal); }
.featured-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.featured-empty { padding: 30px 40px; max-width: 560px; }

.countdown-panel { padding: 20px 34px; display: block; width: 460px; max-width: calc(100vw - 24px); margin-left: auto; margin-right: auto; }
.cd-month {
    margin-top: 6px;
    font-family: 'Orbitron', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-teal);
    text-shadow: 0 0 12px rgba(42, 245, 208, 0.4);
    text-transform: uppercase;
}
.countdown-grid { display: flex; gap: 26px; margin-top: 12px; justify-content: center; }
.cd-cell { text-align: center; width: 78px; flex: none; overflow: hidden; }
.cd-num {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: white;
    text-shadow: 0 0 15px rgba(0,212,255,0.5);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-unit {
    margin-top: 6px;
    font-size: 0.62rem;
    letter-spacing: 3px;
    color: rgba(0,212,255,0.55);
    text-transform: uppercase;
}

.scroll-hint {
    margin-top: 8px;
    color: var(--txt-dim);
    font-size: 0.72rem;
    letter-spacing: 3px;
    animation: hint-bob 2.2s ease-in-out infinite;
}
@keyframes hint-bob {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(6px); opacity: 1; }
}

.vote-panel { padding: 40px; max-width: 720px; margin: 0 auto; }
.vote-guest { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.vote-guest p { color: var(--txt-dim); letter-spacing: 1px; max-width: 460px; }

.vote-form { display: flex; flex-direction: column; gap: 20px; }
.vote-row { display: flex; gap: 12px; flex-wrap: wrap; }
.vote-input {
    flex: 1;
    min-width: 220px;
    background: rgba(4, 9, 22, 0.9);
    border: 1px solid rgba(0,212,255,0.3);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 13px 18px;
    outline: none;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: border-color 0.25s, box-shadow 0.25s;
}
.vote-input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 16px rgba(0,212,255,0.25); }
.vote-input::placeholder { color: rgba(234,242,255,0.35); }

.vote-status { min-height: 22px; font-size: 0.9rem; letter-spacing: 1px; }
.vote-status.err { color: #ff6b7f; }
.vote-status.ok { color: var(--accent-teal); }

.streamer-preview {
    display: none;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: rgba(4, 9, 22, 0.75);
    border: 1px solid rgba(42,245,208,0.3);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.streamer-preview.visible { display: flex; }
.streamer-preview img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid var(--accent-teal);
    box-shadow: 0 0 16px rgba(42,245,208,0.35);
}
.sp-name { font-family: 'Orbitron', monospace; font-weight: 700; font-size: 1.05rem; letter-spacing: 1px; }
.sp-login { color: var(--txt-dim); font-size: 0.82rem; letter-spacing: 1px; }
.sp-action { margin-left: auto; }

.my-vote {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(255,42,109,0.35);
    background: rgba(255,42,109,0.06);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.my-vote img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--beam-pink); }
.my-vote .mv-label { font-size: 0.68rem; letter-spacing: 3px; color: var(--beam-pink); text-transform: uppercase; font-weight: 700; }
.my-vote .mv-name { font-family: 'Orbitron', monospace; font-weight: 700; margin-top: 2px; }

.board { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.board-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    position: relative;
    overflow: hidden;
}
.board-row .bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,212,255,0.13), rgba(0,212,255,0.02));
    z-index: 0;
    transition: width 1s ease;
}
.board-row.top1 .bar { background: linear-gradient(90deg, rgba(255,42,109,0.2), rgba(255,42,109,0.03)); }
.board-row > * { position: relative; z-index: 1; }
.board-rank {
    font-family: 'Orbitron', monospace;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--accent-cyan);
    min-width: 44px;
    text-shadow: 0 0 12px rgba(0,212,255,0.4);
}
.board-row.top1 .board-rank { color: var(--beam-pink); text-shadow: 0 0 14px rgba(255,42,109,0.6); }
.board-avatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(0,212,255,0.4); object-fit: cover; background: #101a35; }
.board-row.top1 .board-avatar { border-color: var(--beam-pink); box-shadow: 0 0 14px rgba(255,42,109,0.45); }
.board-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.board-votes {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--txt);
    white-space: nowrap;
}
.board-votes small { color: var(--txt-dim); font-family: 'Rajdhani', sans-serif; letter-spacing: 1px; margin-left: 6px; }
.board-empty { text-align: center; padding: 40px; color: var(--txt-dim); letter-spacing: 1px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { padding: 30px 26px; }
.step-num {
    font-family: 'Orbitron', monospace;
    font-size: 2.1rem;
    font-weight: 900;
    color: rgba(0,212,255,0.25);
}
.step-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 10px;
    color: white;
    text-transform: uppercase;
}
.step-text { margin-top: 12px; color: var(--txt-dim); font-size: 0.95rem; line-height: 1.55; letter-spacing: 0.5px; }
.step-text b { color: var(--accent-teal); font-weight: 700; }

.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(0,212,255,0.12);
    background: rgba(4, 9, 20, 0.9);
    padding: 34px 24px;
    text-align: center;
}
.footer-brand {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: white;
}
.footer-brand span { color: var(--beam-pink); }
.footer-note { margin-top: 10px; color: var(--txt-dim); font-size: 0.78rem; letter-spacing: 1px; line-height: 1.7; }
.footer-note a { color: var(--accent-cyan); text-decoration: none; }
.footer-note a:hover { text-shadow: 0 0 10px rgba(0,212,255,0.5); }

.wp-fallback { padding: 140px 24px 80px; max-width: 860px; margin: 0 auto; }
.wp-fallback .clip-panel { padding: 36px; }
.wp-fallback h1 { font-family: 'Orbitron', monospace; letter-spacing: 2px; margin-bottom: 18px; }
.wp-fallback p { color: var(--txt-dim); line-height: 1.7; margin-bottom: 12px; }
.wp-fallback a { color: var(--accent-cyan); }

@media (max-width: 900px) {
    .indicator { display: none; }
}

@media (max-width: 760px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
        background: rgba(5, 10, 24, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom-color: rgba(0, 212, 255, 0.15);
    }
    .nav-right { flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-left: auto; }
    .hero { padding-top: 150px; gap: 26px; }
    .section { padding: 60px 16px; }
    .steps { grid-template-columns: 1fr; }
    .featured-card { flex-direction: column; text-align: center; padding: 22px; gap: 18px; }
    .featured-info { width: 100%; }
    .featured-name { white-space: normal; }
    .featured-actions { justify-content: center; }
    .countdown-grid { gap: 14px; }
    .countdown-panel { width: 330px; }
    .cd-cell { width: 54px; }
    .vote-panel { padding: 24px 18px; }
    .sp-action { margin-left: 0; width: 100%; }
    .sp-action .btn { width: 100%; }
    .streamer-preview { flex-wrap: wrap; }
    .island-container { bottom: 18%; height: 56vh; }
}

@media (max-width: 480px) {
    .site-nav { padding: 10px 12px; }
    .nav-title { font-size: 0.88rem; letter-spacing: 2px; }
    .nav-subtitle { font-size: 0.55rem; letter-spacing: 3px; }
    .nav-ext-link { padding: 7px 9px; font-size: 0.66rem; }
    .nav-lang-btn { padding: 6px 8px; font-size: 0.66rem; }
    .btn { font-size: 0.66rem; padding: 10px 14px; letter-spacing: 1.5px; }
    .user-chip { padding: 4px 10px 4px 4px; gap: 7px; }
    .user-chip .u-name { display: none; }
    .hero-title { letter-spacing: 3px; }
    .cd-num { font-size: 1.55rem; }
    .countdown-panel { width: 262px; }
    .cd-cell { width: 45px; }
    .cd-month { font-size: 0.68rem; letter-spacing: 2px; }
    .countdown-panel { padding: 16px 18px; }
    .beam-msg { letter-spacing: 3px; }
    .board-row { padding: 12px 12px; gap: 10px; }
    .board-rank { min-width: 32px; font-size: 0.95rem; }
    .board-avatar { width: 38px; height: 38px; }
    .board-name { font-size: 0.92rem; }
    .board-votes { font-size: 0.82rem; }
    .featured-avatar { width: 88px; height: 88px; }
    .section-sub { font-size: 0.92rem; }
    .vote-input { min-width: 0; width: 100%; }
    .vote-row .btn { width: 100%; }
    .island-container { height: 46vh; bottom: 20%; }
    .moon { width: 42px; height: 42px; right: 10%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

.nav-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(0, 212, 255, 0.75);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 9px;
    background: rgba(8, 14, 32, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.nav-ext-link:hover {
    color: #ffffff;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
    transform: translateY(-1px);
}

.footer-ext {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-lang {
    display: flex;
    gap: 3px;
    padding: 4px;
    background: rgba(8, 14, 32, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 9px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-lang-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    color: rgba(234, 242, 255, 0.55);
    text-decoration: none;
    padding: 7px 11px;
    border-radius: 6px;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.nav-lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 42, 109, 0.14);
    transform: translateY(-1px);
}

.nav-lang-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff2a6d 0%, #ff5e94 100%);
    box-shadow: 0 0 14px rgba(255, 42, 109, 0.55), inset 0 0 6px rgba(255, 255, 255, 0.15);
    animation: lang-glow 3s ease-in-out infinite;
}

.nav-lang-btn.active:hover { transform: none; }

@keyframes lang-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 42, 109, 0.45), inset 0 0 6px rgba(255, 255, 255, 0.12); }
    50% { box-shadow: 0 0 20px rgba(255, 42, 109, 0.75), inset 0 0 8px rgba(255, 255, 255, 0.2); }
}
}
