/* --- NEON SHOWDOWN CUSTOM DESIGN SYSTEM --- */

:root {
    --bg-dark: #0a0b10;
    --card-bg: rgba(18, 20, 32, 0.65);
    --border-glow: rgba(255, 255, 255, 0.08);
    
    /* Neon Colors */
    --neon-cyan: #00f3ff;
    --neon-cyan-dim: rgba(0, 243, 255, 0.2);
    --neon-pink: #ff007a;
    --neon-pink-dim: rgba(255, 0, 122, 0.2);
    --neon-purple: #8200ff;
    --neon-purple-dim: rgba(130, 0, 255, 0.15);
    --neon-green: #00ff66;
    --neon-green-dim: rgba(0, 255, 102, 0.2);
    --neon-orange: #ffaa00;
    --neon-orange-dim: rgba(255, 170, 0, 0.2);
    
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Syncopate', sans-serif;
}

/* Core Reset & Full-Screen Center Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(130, 0, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #090a0f 0%, #131520 100%);
    background-attachment: fixed;
    color: #ffffff;
    font-family: var(--font-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* Typography & Neon Text Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-dim), 0 0 20px rgba(0, 243, 255, 0.4);
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink-dim), 0 0 20px rgba(255, 0, 122, 0.4);
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: #8c90b0;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 5px;
}

/* Glassmorphism Styles */
.glassmorphic {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
}

.card-glow {
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(130, 0, 255, 0.05);
}

/* Home Panel (Landing page) */
.home-panel {
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.logo-area {
    margin-bottom: 10px;
}

.title-logo {
    font-size: 3.2rem;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -1px;
}

.title-logo.line-2 {
    font-size: 2.3rem;
    letter-spacing: 1px;
}

/* Player Profile & Input fields */
.player-profile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #8a8dbe;
    margin-left: 5px;
}

.name-edit-container {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-dim);
}

/* Name update status labels */
.name-status {
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 5px;
    height: 16px;
    transition: opacity 0.3s;
}

.name-status.success { color: #00ff88; }
.name-status.error { color: var(--neon-pink); }
.name-status.info { color: var(--neon-cyan); }

/* Custom Premium Buttons */
button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-neon-blue {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.btn-neon-blue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5), 0 0 15px var(--neon-cyan);
}

.btn-neon-blue:active {
    transform: translateY(1px);
}

.btn-neon-blue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-neon-pink {
    background: linear-gradient(135deg, #ff007a, #9e00ff);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
}

.btn-neon-pink:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 122, 0.5), 0 0 15px var(--neon-pink);
}

.btn-giant {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-edit-small {
    background: transparent;
    padding: 2px 6px;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.btn-edit-small:hover {
    opacity: 1;
}

.text-center {
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

/* Rules cards */
.rules-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 18px;
    text-align: left;
}

.rules-card.compact {
    padding: 14px;
    margin-bottom: 10px;
}

.rules-title {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #8c90b0;
    margin-bottom: 12px;
    font-weight: 700;
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rules-list li {
    font-size: 0.85rem;
    color: #b0b4d4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rules-list li span, .rules-list li strong {
    font-weight: 600;
}

.rules-list li span {
    background: var(--neon-purple-dim);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 243, 255, 0.3);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Error banner toast */
.error-toast {
    background: rgba(255, 0, 122, 0.15);
    border: 1px solid rgba(255, 0, 122, 0.3);
    color: #ff9ec4;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
}

/* LOBBY PANEL */
.lobby-panel {
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.lobby-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.radar-scan {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan-dim);
    position: relative;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    overflow: hidden;
}

.radar-scan::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--neon-cyan);
    animation: radar-ping 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.radar-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    transform-origin: 0% 50%;
    animation: radar-spin 2s linear infinite;
}

@keyframes radar-spin {
    0% { transform: rotate(0deg) translate(-50%, -50%); }
    100% { transform: rotate(360deg) translate(-50%, -50%); }
}

@keyframes radar-ping {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.lobby-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.share-box {
    display: flex;
    gap: 10px;
}

.share-box input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8c90b0;
    font-size: 0.9rem;
}

.copy-feedback {
    font-size: 0.75rem;
    color: #6c7090;
    margin-left: 5px;
    font-weight: 500;
}

.copy-feedback.success {
    color: var(--neon-cyan);
    animation: pulse 1.5s infinite;
}

/* ARENA SCREEN */
.arena-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Scoreboard */
.scoreboard {
    padding: 16px 20px;
    position: relative;
}

.round-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--neon-purple), #500099);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.players-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.player-score-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.creator-block {
    align-items: flex-start;
}

.opponent-block {
    align-items: flex-end;
    text-align: right;
}

.player-identity {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
}

.fighter-name {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.creator-block .score-display {
    flex-direction: row;
}

.opponent-block .score-display {
    flex-direction: row-reverse;
}

.score-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.score-dots {
    display: flex;
    gap: 4px;
}

.score-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.creator-block .score-dot.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.opponent-block .score-dot.active {
    background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
}

.ready-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #6c7090;
    transition: all 0.3s;
}

.ready-badge.thinking {
    background: rgba(255, 255, 255, 0.03);
    color: #7a7ea3;
}

.ready-badge.ready {
    background: var(--neon-cyan-dim);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 243, 255, 0.2);
    animation: pulse 1.5s infinite;
}

.vs-divider {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0 15px;
}

/* Name Edit Modal inside Arena */
.inline-name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 10, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.name-modal-content {
    width: 100%;
    max-width: 320px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.name-modal-content h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-buttons button {
    flex: 1;
}

/* Battle Arena Visuals */
.battle-arena {
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.clash-visuals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.fighter-hand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    width: 33%;
}

.hand-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.1s ease;
}

/* Hands clashing animations */
.left-hand .hand-icon {
    transform: scaleX(-1); /* Mirror left hand so fists point at each other */
}

.left-hand.shaking .hand-icon {
    animation: left-shake 0.5s ease infinite alternate;
}

.right-hand.shaking .hand-icon {
    animation: right-shake 0.5s ease infinite alternate;
}

@keyframes left-shake {
    0% { transform: scaleX(-1) rotate(-10deg) translateY(-5px); }
    100% { transform: scaleX(-1) rotate(15deg) translateY(5px); }
}

@keyframes right-shake {
    0% { transform: rotate(-10deg) translateY(-5px); }
    100% { transform: rotate(15deg) translateY(5px); }
}

/* Clash impact reveals */
.left-hand.reveal .hand-icon {
    animation: left-reveal 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.right-hand.reveal .hand-icon {
    animation: right-reveal 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes left-reveal {
    0% { transform: scaleX(-1) scale(0.6); }
    100% { transform: scaleX(-1) scale(1.1); }
}

@keyframes right-reveal {
    0% { transform: scale(0.6); }
    100% { transform: scale(1.1); }
}

.hand-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c7090;
    letter-spacing: 1px;
}

.clash-center {
    width: 34%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.clash-countdown {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--neon-pink);
    text-align: center;
    text-shadow: 0 0 10px var(--neon-pink-dim);
}

.clash-status-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c7090;
    text-align: center;
    margin-top: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.clash-spark {
    position: absolute;
    font-size: 3.5rem;
    opacity: 0;
    transform: scale(0);
    z-index: 10;
    pointer-events: none;
}

.clash-spark.active {
    animation: spark-burst 0.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes spark-burst {
    0% { opacity: 0; transform: scale(0.2) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.4) rotate(45deg); filter: drop-shadow(0 0 15px #ffe600); }
    100% { opacity: 0; transform: scale(1.8) rotate(90deg); }
}

/* Result sash banner */
.result-banner {
    position: absolute;
    width: 120%;
    left: -10%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 122, 0.95) 20%, rgba(130, 0, 255, 0.95) 80%, transparent 100%);
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    top: 40%;
    z-index: 20;
    animation: banner-slide 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes banner-slide {
    0% { transform: rotate(-3deg) scaleY(0); opacity: 0; }
    100% { transform: rotate(-3deg) scaleY(1); opacity: 1; }
}

#resultText {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Controls choices panel */
.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.choices-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-choice {
    flex: 1 1 76px;
    min-width: 76px;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-choice .choice-icon {
    font-size: 2.2rem;
    transition: transform 0.2s;
}

.btn-choice .choice-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #8c90b0;
    letter-spacing: 1px;
}

/* Button variants styling */
.btn-choice.rock:hover:not(:disabled) {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-dim), inset 0 0 10px var(--neon-cyan-dim);
    transform: translateY(-4px);
}
.btn-choice.rock:hover:not(:disabled) .choice-icon { transform: scale(1.15) rotate(-10deg); }

.btn-choice.paper:hover:not(:disabled) {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink-dim), inset 0 0 10px var(--neon-pink-dim);
    transform: translateY(-4px);
}
.btn-choice.paper:hover:not(:disabled) .choice-icon { transform: scale(1.15) rotate(5deg); }

.btn-choice.scissors:hover:not(:disabled) {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple-dim), inset 0 0 10px var(--neon-purple-dim);
    transform: translateY(-4px);
}
.btn-choice.scissors:hover:not(:disabled) .choice-icon { transform: scale(1.15) rotate(-5deg); }

.btn-choice.lizard:hover:not(:disabled) {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green-dim), inset 0 0 10px var(--neon-green-dim);
    transform: translateY(-4px);
}
.btn-choice.lizard:hover:not(:disabled) .choice-icon { transform: scale(1.15) rotate(8deg); }

.btn-choice.spock:hover:not(:disabled) {
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px var(--neon-orange-dim), inset 0 0 10px var(--neon-orange-dim);
    transform: translateY(-4px);
}
.btn-choice.spock:hover:not(:disabled) .choice-icon { transform: scale(1.15) rotate(-8deg); }


.btn-choice:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-choice:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-choice.selected {
    opacity: 1 !important;
    background: linear-gradient(135deg, rgba(130, 0, 255, 0.3), rgba(0, 243, 255, 0.2));
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan-dim);
    transform: translateY(0) scale(0.95);
}

/* Next Round Ready Panel */
.next-round-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fade-in 0.3s ease;
}

.ready-status-label {
    font-size: 0.75rem;
    color: #8c90b0;
    font-weight: 600;
}

/* Victory overlay */
.victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 10, 0.95);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.victory-content {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
    animation: scale-up 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.crown-icon {
    font-size: 4rem;
    animation: float 2s ease-in-out infinite alternate;
}

.final-scores {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
}

.final-scores .vs-text {
    font-size: 1rem;
    color: #6c7090;
    letter-spacing: 2px;
}

#victoryDetails {
    color: #b0b4d4;
    font-size: 1rem;
}

/* Connection Status Warning Toast */
.conn-status-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 70, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-size: 0.85rem;
    font-weight: 700;
}

.pulse-red {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse-red-scale 1s infinite alternate;
}

@keyframes pulse-red-scale {
    0% { transform: scale(0.6); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 1; }
}

/* Core Helper Classes */
.hidden {
    display: none !important;
}

/* Utility Keyframe Animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(-3deg); }
    100% { transform: translateY(-10px) rotate(3deg); }
}

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

@keyframes scale-up {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Spectator Mode Styling */
.spectator-badge {
    position: absolute;
    top: 0;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--neon-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 243, 255, 0.1);
    animation: spectator-pulse 2s infinite alternate;
}

@keyframes spectator-pulse {
    0% { opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 243, 255, 0.1); }
    100% { opacity: 1; box-shadow: 0 4px 15px rgba(0, 243, 255, 0.25), 0 0 5px rgba(0, 243, 255, 0.2); }
}

/* Mobile Responsive Overrides */
@media (max-width: 420px) {
    .name-edit-container, .share-box {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .name-edit-container input[type="text"], .share-box input {
        width: 100%;
        flex: none;
        text-align: center;
    }
    
    .name-edit-container button, .share-box button {
        width: auto;
        min-width: 120px;
        margin-top: 4px;
        text-align: center;
    }
    
    .rules-list.rules-rpsls li {
        font-size: 0.8rem;
    }
}