/* ==========================================================================
   WIKISHOES PLAY ARENA & MINIGAME STYLESHEET
   Aesthetics: Golden Luxury, Retro-Cyber Arcade & Tactile Glassmorphism
   ========================================================================== */

:root {
    --accent: #D4AF37;
    --accent-light: #F5D76E;
    --accent-dark: #b8961f;
    --bg-dark: #060710;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(212, 175, 55, 0.15);
    --border-glow: 0 0 15px rgba(212, 175, 55, 0.1);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --text-white: #ffffff;
    --text-dimmed: rgba(255, 255, 255, 0.65);
}

/* --- Base Layout --- */
.arena-page {
    background: var(--bg-dark);
    color: #F5F5F5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.arena-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}

/* --- Ambient Cyber Background --- */
.arena-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.arena-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 10%, rgba(11, 31, 58, 0.6), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.1), transparent 55%),
        var(--bg-dark);
}

.arena-bg-grid {
    position: absolute;
    inset: -40px;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}

.arena-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.arena-bg-orb.a {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: -120px;
    right: -120px;
    opacity: 0.22;
    animation: orbFloatA 24s ease-in-out infinite;
}

.arena-bg-orb.b {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, #1C3D66, transparent 70%);
    bottom: -160px;
    left: -140px;
    opacity: 0.4;
    animation: orbFloatB 28s ease-in-out infinite;
}

.arena-bg-orb.c {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--accent-light), transparent 70%);
    top: 60%;
    left: 55%;
    opacity: 0.14;
    animation: orbFloatC 20s ease-in-out infinite;
}

@keyframes orbFloatA {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-60px, 40px) scale(1.08); }
}

@keyframes orbFloatB {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(70px, -50px) scale(1.1); }
}

@keyframes orbFloatC {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-80px, -30px) scale(1.15); }
}

/* --- HERO --- */
.arena-hero {
    position: relative;
    padding: clamp(140px, 16vh, 180px) 24px 60px;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.arena-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 980px;
}

.arena-hero-shoes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.arena-hero-shoe {
    position: absolute;
    width: clamp(140px, 18vw, 280px);
    opacity: 0.55;
    filter: drop-shadow(0 40px 70px rgba(0,0,0,0.65)) saturate(1.05);
    transition: opacity 0.6s var(--ease-smooth), transform 0.8s var(--ease-smooth);
    will-change: transform;
    animation: floatShoe 9s ease-in-out infinite;
}

.arena-hero-shoe img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.arena-hero-shoe.s1 { top: 8%; left: -3%; animation-delay: 0s; transform: rotate(-20deg); }
.arena-hero-shoe.s2 { top: 12%; right: -2%; animation-delay: 1.5s; transform: rotate(22deg); }
.arena-hero-shoe.s3 { bottom: 6%; left: 6%; animation-delay: 3s; transform: rotate(10deg); width: clamp(120px, 14vw, 220px); opacity: 0.45; }
.arena-hero-shoe.s4 { bottom: 10%; right: 8%; animation-delay: 4.5s; transform: rotate(-12deg); width: clamp(120px, 14vw, 220px); opacity: 0.45; }

@keyframes floatShoe {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -24px; }
}

.arena-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 6px;
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    padding: 8px 18px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    background: rgba(212, 175, 55, 0.06);
    margin-bottom: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.arena-eyebrow .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: eyeDot 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes eyeDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.arena-hero-title {
    font-family: var(--font-accent);
    font-size: clamp(2.6rem, 10vw, 7.5rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: clamp(1px, 0.35vw, 6px);
    margin: 0 0 24px;
    text-transform: uppercase;
}

.arena-hero-title .l1 {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    text-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.arena-hero-title .l2 {
    display: block;
    background: linear-gradient(135deg, #fff8d6 0%, #F5D76E 20%, var(--accent) 50%, var(--accent-dark) 75%, #F5D76E 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: arenaTitleShine 7s linear infinite;
    filter: drop-shadow(0 6px 30px rgba(212, 175, 55, 0.3));
}

@keyframes arenaTitleShine {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.arena-hero-sub {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    margin: 0 auto 38px;
}

.arena-hero-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* --- BUTTONS --- */
.arena-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s var(--ease-elastic);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.arena-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light) 60%, var(--accent));
    color: #0A0A0A;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.arena-btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 55px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.arena-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.arena-btn-ghost:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.arena-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.7s var(--ease-smooth);
}

.arena-btn-primary:hover::after {
    left: 120%;
}

.arena-hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 5vw, 80px);
    flex-wrap: wrap;
}

.arena-stat-mini {
    text-align: center;
}

.arena-stat-mini-num {
    display: block;
    font-family: var(--font-accent);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.arena-stat-mini-num .unit {
    color: var(--accent);
    font-size: 0.75em;
}

.arena-stat-mini-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
}

/* --- SECTIONS --- */
.arena-section {
    position: relative;
    padding: clamp(60px, 9vh, 100px) 0;
    z-index: 2;
}

.arena-section-head {
    text-align: center;
    margin-bottom: 48px;
}

.arena-section-eyebrow {
    display: inline-block;
    letter-spacing: 6px;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 14px;
}

.arena-section-title {
    font-family: var(--font-accent);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: clamp(1px, 0.2vw, 3px);
    text-transform: uppercase;
}

.arena-section-title .accent {
    background: linear-gradient(135deg, var(--accent-light), var(--accent) 60%, #fff8d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.arena-section-lead {
    color: rgba(255, 255, 255, 0.6);
    max-width: 640px;
    margin: 14px auto 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- GAMES GRID & CARDS --- */
.arena-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 1280px;
    margin: 0 auto;
}

.arena-game-card {
    position: relative;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid var(--border-color);
    border-radius: 26px;
    padding: clamp(22px, 2.4vw, 32px);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.5s var(--ease-elastic), border-color 0.4s, box-shadow 0.4s;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--border-glow);
}

.arena-game-card.featured {
    grid-column: span 2;
    min-height: 420px;
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.06) 0%, rgba(11, 31, 58, 0.25) 60%, rgba(0, 0, 0, 0.4) 100%);
}

@media(max-width:900px){
    .arena-game-card.featured {
        grid-column: auto;
        min-height: 340px;
    }
}

.arena-game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(212, 175, 55, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
    pointer-events: none;
}

.arena-game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.3), transparent 45%, rgba(212, 175, 55, 0.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    pointer-events: none;
}

.arena-game-card:hover {
    transform: translateY(-12px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 175, 55, 0.25);
}

.arena-game-card:hover::before,
.arena-game-card:hover::after {
    opacity: 1;
}

.arena-game-card-preview {
    position: absolute;
    top: clamp(-30px, -2vw, -20px);
    right: clamp(-40px, -3vw, -20px);
    width: clamp(180px, 22vw, 280px);
    height: clamp(180px, 22vw, 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s var(--ease-elastic);
    pointer-events: none;
    z-index: 1;
}

.arena-game-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(-15deg);
    transition: transform 0.7s var(--ease-elastic);
    filter: drop-shadow(0 24px 40px rgba(0,0,0,0.65));
}

.arena-game-card:hover .arena-game-card-preview img {
    transform: rotate(-3deg) scale(1.15);
}

.arena-game-card-preview.dual img {
    position: absolute;
    width: 60%;
    height: 60%;
}

.arena-game-card-preview.dual img:first-child { top: 5%; right: 5%; transform: rotate(-15deg); z-index: 2; }
.arena-game-card-preview.dual img:last-child { bottom: 5%; left: 5%; transform: rotate(18deg); opacity: 0.75; z-index: 1; }

.arena-game-card:hover .arena-game-card-preview.dual img:first-child { transform: rotate(-5deg) scale(1.12); }
.arena-game-card:hover .arena-game-card-preview.dual img:last-child { transform: rotate(24deg) scale(1.1); opacity: 0.95; }

.arena-game-card-num {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent);
    opacity: 0.8;
    font-weight: 700;
    z-index: 2;
    position: relative;
}

.arena-game-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.05));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 18px 0 16px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    z-index: 2;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.arena-game-card-title {
    font-family: var(--font-accent);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    z-index: 2;
    position: relative;
    letter-spacing: 1px;
    line-height: 1.08;
    text-transform: uppercase;
}

.arena-game-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.55;
    margin-bottom: 18px;
    z-index: 2;
    position: relative;
    max-width: 82%;
}

.arena-game-card-meta {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    z-index: 2;
    position: relative;
    flex-wrap: wrap;
}

.arena-game-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.arena-game-card-tag {
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.95);
    padding: 5px 12px;
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 100px;
    background: rgba(212, 175, 55, 0.04);
    font-weight: 700;
}

.arena-game-card-best {
    font-size: 0.66rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
}

.arena-game-card-best b {
    color: var(--accent);
    font-weight: 900;
    font-size: 1.3em;
    margin-left: 8px;
    letter-spacing: 0;
    font-family: var(--font-accent);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.arena-game-card-play {
    position: absolute;
    right: clamp(20px, 2vw, 28px);
    bottom: clamp(20px, 2vw, 28px);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.4s var(--ease-elastic);
    z-index: 3;
}

.arena-game-card:hover .arena-game-card-play {
    background: var(--accent);
    color: #0A0A0A;
    transform: scale(1.2) rotate(-8deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* --- PLAY ZONE --- */
.arena-play-zone {
    display: none;
    padding: 60px 0 80px;
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: linear-gradient(180deg, #060710 0%, #090b18 50%, #060710 100%);
    scroll-margin-top: 80px;
}

.arena-play-zone.active {
    display: block;
    animation: playFadeIn 0.6s var(--ease-smooth);
}

@keyframes playFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.arena-play-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(18px, 2.6vw, 36px);
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.7), var(--border-glow);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.arena-play-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -30%, rgba(212, 175, 55, 0.08), transparent 60%);
    pointer-events: none;
}

.arena-play-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
}

.arena-play-back {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 11px 24px;
    border-radius: 100px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s var(--ease-elastic);
    text-transform: uppercase;
}

.arena-play-back:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--accent);
    transform: translateX(-4px);
}

.arena-play-headline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 220px;
    justify-content: center;
}

.arena-play-headline-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.arena-play-headline-text h3 {
    font-family: var(--font-accent);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.arena-play-headline-text p {
    font-size: 0.78rem;
    color: var(--text-dimmed);
    margin: 2px 0 0;
    letter-spacing: 0.5px;
}

.arena-play-actions {
    display: flex;
    gap: 10px;
}

.arena-play-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s var(--ease-elastic);
}

.arena-play-action:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent);
    border-color: rgba(212, 175, 55, 0.4);
    transform: rotate(30deg) scale(1.05);
}

/* --- STATS HUD STRIP --- */
.arena-hud {
    display: flex;
    gap: clamp(10px, 1.6vw, 18px);
    flex-wrap: wrap;
    padding: clamp(14px, 2vw, 20px) clamp(16px, 2vw, 24px);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    margin-bottom: 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.4);
}

.arena-hud-item {
    text-align: center;
    flex: 1;
    min-width: 68px;
    position: relative;
    padding: 0 4px;
}

.arena-hud-item + .arena-hud-item {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.arena-hud-num {
    display: block;
    font-family: var(--font-accent);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    letter-spacing: 0.5px;
    transition: transform 0.25s ease, color 0.25s;
}

.arena-hud-num.pop {
    animation: hudPop 0.4s var(--ease-elastic);
}

.arena-hud-num.warn {
    color: #ff6b55;
    text-shadow: 0 0 10px rgba(255, 107, 85, 0.35);
}

@keyframes hudPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.28); }
    100% { transform: scale(1); }
}

.arena-hud-label {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    font-weight: 700;
}

/* --- PROGRESS BAR --- */
.arena-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    margin-bottom: 22px;
}

.arena-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light) 50%, var(--accent));
    background-size: 200% 100%;
    animation: progressShine 3s linear infinite;
    transition: width 0.4s ease;
    border-radius: 100px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@keyframes progressShine {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* --- STAGE (Main game surface) --- */
.arena-stage {
    position: relative;
    z-index: 2;
    min-height: 340px;
    padding: clamp(18px, 2.4vw, 28px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(11, 31, 58, 0.15));
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 22px;
    overflow: hidden;
}

/* --- PLAY STATE GLOWING SHIELD (Injects visual life) --- */
.arena-play-shell.good-state { border-color: rgba(76, 175, 80, 0.55); box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 35px rgba(76, 175, 80, 0.22); }
.arena-play-shell.bad-state { border-color: rgba(239, 83, 80, 0.55); box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 35px rgba(239, 83, 80, 0.22); }
.arena-play-shell.warn-state { border-color: rgba(255, 152, 0, 0.55); box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 35px rgba(255, 152, 0, 0.22); }

/* --- HUD FEEDBACK MESSAGE --- */
.arena-msg {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s var(--ease-smooth);
    font-weight: 600;
}

.arena-msg.good { background: rgba(76, 175, 80, 0.1); border-color: #4caf50; color: #a4e9a8; text-shadow: 0 0 8px rgba(76, 175, 80, 0.2); }
.arena-msg.bad { background: rgba(244, 67, 54, 0.1); border-color: #ef5350; color: #ffb8b6; text-shadow: 0 0 8px rgba(244, 67, 54, 0.2); }
.arena-msg.warn { background: rgba(255, 152, 0, 0.1); border-color: #ff9800; color: #ffdb9e; text-shadow: 0 0 8px rgba(255, 152, 0, 0.2); }

.arena-start-btn {
    display: block;
    margin: 24px auto 0;
    padding: 14px 38px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light) 60%, var(--accent));
    color: #0a0a0a;
    border: none;
    border-radius: 100px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--ease-elastic);
    box-shadow: 0 12px 36px rgba(212, 175, 55, 0.32);
}

.arena-start-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 50px rgba(212, 175, 55, 0.5);
}

.arena-start-btn i {
    margin-right: 10px;
}

.arena-start-btn.ghost {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.arena-start-btn.ghost:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   GAME 1: CLUTCH SHOT (Canvas Physics)
   ========================================================================== */
.clutch-wrap {
    position: relative;
}

.clutch-canvas-holder {
    position: relative;
    width: 100%;
    aspect-ratio: 5/4;
    max-width: 780px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.7), 0 25px 65px rgba(0,0,0,0.6);
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    cursor: crosshair;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.clutch-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.clutch-aim-hint {
    text-align: center;
    margin-top: 12px;
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.clutch-aim-hint kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 2px 8px;
    margin: 0 3px;
    font-size: 0.75rem;
    color: var(--accent);
    box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

/* ==========================================================================
   GAME 2: SILHOUETTE (Holographic Scanner)
   ========================================================================== */
.silo-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: stretch;
}

@media(max-width:820px){
    .silo-wrap {
        grid-template-columns: 1fr;
    }
}

.silo-frame {
    position: relative;
    aspect-ratio: 1;
    background: radial-gradient(circle at 50% 40%, rgba(11, 31, 58, 0.75), rgba(0, 0, 0, 0.75));
    border-radius: 22px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* pulsed scanning laser line */
.silo-frame::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, var(--accent-light) 50%, transparent 95%);
    left: 0;
    top: 0;
    z-index: 3;
    opacity: 0.8;
    filter: drop-shadow(0 0 8px var(--accent));
    animation: laserScan 4s linear infinite;
    pointer-events: none;
}

/* high-tech corner brackets */
.silo-frame::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(212, 175, 55, 0.05);
    pointer-events: none;
    background-image: 
        linear-gradient(to right, var(--accent) 15px, transparent 15px),
        linear-gradient(to bottom, var(--accent) 15px, transparent 15px),
        linear-gradient(to left, var(--accent) 15px, transparent 15px),
        linear-gradient(to bottom, var(--accent) 15px, transparent 15px),
        linear-gradient(to right, var(--accent) 15px, transparent 15px),
        linear-gradient(to top, var(--accent) 15px, transparent 15px),
        linear-gradient(to left, var(--accent) 15px, transparent 15px),
        linear-gradient(to top, var(--accent) 15px, transparent 15px);
    background-position: 
        0 0, 0 0, 100% 0, 100% 0,
        0 100%, 0 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-size: 15px 15px, 15px 15px; /* wait, 15px 15px format matches brackets */
    opacity: 0.45;
}

.silo-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.04) 40%,
        rgba(212, 175, 55, 0.12) 50%,
        rgba(212, 175, 55, 0.04) 60%,
        rgba(212, 175, 55, 0) 100%
    );
    height: 100%;
    width: 100%;
    z-index: 2;
    pointer-events: none;
    transform: translateY(-100%);
    animation: siloScanning 4.5s linear infinite;
}

@keyframes siloScanning {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes laserScan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.silo-img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
    transition: filter 1s var(--ease-smooth), transform 0.6s var(--ease-elastic);
}

.silo-img.reveal-1 { filter: brightness(0.12) saturate(0.65) contrast(1.4); }
.silo-img.reveal-2 { filter: brightness(0.38) saturate(0.8) contrast(1.22); }
.silo-img.revealed { filter: none; transform: scale(1.04); }

.silo-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 70%);
    pointer-events: none;
    animation: siloPulse 3s ease-in-out infinite;
}

@keyframes siloPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.06); }
}

.silo-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.silo-opt {
    padding: 18px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.3));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.35s var(--ease-elastic);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.silo-opt:hover {
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.08);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), var(--border-glow);
}

.silo-opt .letter {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent);
    font-weight: 900;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
}

.silo-opt:hover .letter {
    background: var(--accent);
    color: #0A0A0A;
    transform: scale(1.08) rotate(-4deg);
}

.silo-opt .model {
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
    display: block;
}

.silo-opt .way {
    font-weight: 500;
    color: var(--text-dimmed);
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    display: block;
    margin-top: 2px;
}

.silo-opt.correct {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: #4caf50 !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.22);
}

.silo-opt.correct .letter {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
    color: #fff !important;
}

.silo-opt.wrong {
    background: rgba(244, 67, 54, 0.2) !important;
    border-color: #ef5350 !important;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.22);
    animation: cardShake 0.4s ease-in-out;
}

.silo-opt.wrong .letter {
    background: #ef5350 !important;
    border-color: #ef5350 !important;
    color: #fff !important;
}

@keyframes cardShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.silo-opt:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

.silo-reveal-btn {
    margin: 20px auto 0;
    display: block;
    padding: 10px 24px;
    background: rgba(212, 175, 55, 0.08);
    border: 1.5px dashed rgba(212, 175, 55, 0.35);
    border-radius: 100px;
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-elastic);
    font-weight: 700;
}

.silo-reveal-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.16);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.15);
}

.silo-reveal-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   GAME 3: MEMORY MATCH (Holographic Card Deck)
   ========================================================================== */
.memory-board {
    display: grid;
    gap: 12px;
    margin: 0 auto;
    max-width: 760px;
    perspective: 1200px;
}

.memory-board.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.memory-board.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.memory-board.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media(max-width:600px){
    .memory-board.g4 { grid-template-columns: repeat(3, 1fr); }
    .memory-board.g5 { grid-template-columns: repeat(4, 1fr); }
    .memory-board.g6 { grid-template-columns: repeat(4, 1fr); }
}

.mem-card {
    aspect-ratio: 3/4;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.mem-card:hover:not(.flipped):not(.matched) {
    transform: translateY(-8px) rotateY(8deg) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

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

.mem-card.matched {
    transform: rotateY(180deg) scale(0.92);
    pointer-events: none;
}

.mem-card-face {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Card Back (Holographic luxury line art) */
.mem-card-front {
    background: linear-gradient(165deg, #0d172e 0%, #05060b 100%);
    background-image: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.16), transparent 70%);
    position: relative;
}

.mem-card-front::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    pointer-events: none;
}

.mem-card-front::after {
    content: 'AJ';
    font-family: var(--font-accent);
    font-weight: 900;
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.28);
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.55);
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Card Front (Beautiful display card) */
.mem-card-back {
    background: linear-gradient(180deg, var(--card-color, #1a2942) 0%, #060710 100%) !important;
    transform: rotateY(180deg);
    padding: 10px;
    flex-direction: column;
}

.mem-card-back img {
    width: 100%;
    height: 66%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.55));
    transition: transform 0.4s var(--ease-elastic);
}

.mem-card:hover .mem-card-back img {
    transform: scale(1.08) rotate(-2deg);
}

.mem-card-back .mem-name {
    font-size: 0.65rem;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 6px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.45);
    padding: 4px 8px;
    border-radius: 100px;
    border: 0.5px solid rgba(255,255,255,0.08);
}

.mem-card.matched .mem-card-back {
    border-color: #4caf50;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.55), inset 0 0 15px rgba(76, 175, 80, 0.22);
}

.mem-combo-banner {
    text-align: center;
    margin: 10px 0 6px;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dimmed);
    font-weight: 700;
    min-height: 20px;
}

.mem-combo-banner.hot {
    color: var(--accent-light);
    animation: hudPop 0.4s var(--ease-elastic);
    text-shadow: 0 0 15px rgba(245, 215, 110, 0.4);
}

/* ==========================================================================
   GAME 4: SPEED RUN (Cyber Countdown Ring)
   ========================================================================== */
.speed-wrap {
    position: relative;
}

.speed-question {
    font-family: var(--font-accent);
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 22px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    padding: 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.speed-question .prefix {
    display: inline-block;
    font-size: 0.58em;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-right: 12px;
    font-weight: 900;
    background: rgba(212, 175, 55, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    border: 0.5px solid rgba(212, 175, 55, 0.2);
}

.speed-img-holder {
    max-width: 420px;
    margin: 0 auto 22px;
    aspect-ratio: 5/3;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.12), transparent 60%), rgba(0, 0, 0, 0.45);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.speed-img-holder img {
    width: 80%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.65));
}

.speed-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

@media(max-width:520px){
    .speed-options {
        grid-template-columns: 1fr;
    }
}

.speed-opt {
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.3));
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease-elastic);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.speed-opt:hover {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35), var(--border-glow);
}

.speed-opt .letter {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent);
    font-weight: 900;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.speed-opt:hover .letter {
    background: var(--accent);
    color: #0A0A0A;
}

.speed-opt.correct {
    background: rgba(76, 175, 80, 0.25) !important;
    border-color: #4caf50 !important;
}

.speed-opt.correct .letter {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
    color: #fff !important;
}

.speed-opt.wrong {
    background: rgba(244, 67, 54, 0.25) !important;
    border-color: #ef5350 !important;
    animation: cardShake 0.4s ease-in-out;
}

.speed-opt.wrong .letter {
    background: #ef5350 !important;
    border-color: #ef5350 !important;
    color: #fff !important;
}

.speed-opt:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

.speed-ring {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    z-index: 5;
    animation: ringGlow 1.5s ease-in-out infinite alternate;
}

.speed-ring-svg {
    transform: rotate(-90deg);
}

.speed-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.speed-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s linear, stroke 0.3s;
}

.speed-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-weight: 900;
    color: #fff;
    font-size: 1rem;
}

@keyframes ringGlow {
    0% { filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.2)); }
    100% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.55)); }
}

/* ==========================================================================
   GAME 5: COLORWAY MATCH (Glowing Pill Tags)
   ========================================================================== */
.cw-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cw-shoes-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media(max-width:700px){
    .cw-shoes-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cw-shoe {
    position: relative;
    aspect-ratio: 1;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.45));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-elastic);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.cw-shoe:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), var(--border-glow);
}

.cw-shoe img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
    pointer-events: none;
    transition: transform 0.4s var(--ease-elastic);
}

.cw-shoe:hover img {
    transform: scale(1.08) rotate(-3deg);
}

.cw-shoe.matched {
    border-color: #4caf50 !important;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.55);
    background: rgba(76, 175, 80, 0.04);
}

.cw-shoe.matched::after {
    content: '\f058';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 12px;
    color: #4caf50;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(76, 175, 80, 0.8));
    animation: hudPop 0.4s var(--ease-elastic);
}

.cw-shoe-slot {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 100px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    min-width: 90px;
    text-align: center;
    max-width: 92%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.cw-shoe.drop-target .cw-shoe-slot {
    background: var(--accent);
    color: #0A0A0A;
    border-color: var(--accent);
}

.cw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    border: 2px dashed rgba(212, 175, 55, 0.2);
    min-height: 90px;
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.5);
}

.cw-chip {
    padding: 12px 24px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04));
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 100px;
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s var(--ease-elastic);
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cw-chip:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4), var(--border-glow);
}

.cw-chip.selected {
    background: var(--accent);
    color: #0a0a0a;
    border-color: var(--accent-light);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
    transform: scale(1.08) translateY(-2px);
}

.cw-chip.dragging {
    opacity: 0.35;
    cursor: grabbing;
}

.cw-shoe.drop-target {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.06);
    transform: scale(1.03);
}

.cw-instructions {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dimmed);
    letter-spacing: 0.5px;
    padding: 4px;
    font-weight: 500;
}

/* ==========================================================================
   FINAL CELEBRATION RESULT SCREEN
   ========================================================================== */
.arena-result {
    text-align: center;
    padding: 24px 12px;
    animation: playFadeIn 0.6s var(--ease-smooth);
}

.arena-result-emoji {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
    animation: emojiDance 2.5s ease-in-out infinite alternate;
}

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

.arena-result-score {
    font-family: var(--font-accent);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff8d6 0%, #F5D76E 30%, var(--accent) 60%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: 2px;
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.25));
}

.arena-result-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-weight: 700;
}

.arena-result-stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
}

.arena-result-stars i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.1);
    transition: color 0.4s;
}

.arena-result-stars i.on {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    animation: starPop 0.55s var(--ease-elastic) backwards;
}

.arena-result-stars i.on:nth-child(1) { animation-delay: 0.1s; }
.arena-result-stars i.on:nth-child(2) { animation-delay: 0.22s; }
.arena-result-stars i.on:nth-child(3) { animation-delay: 0.34s; }
.arena-result-stars i.on:nth-child(4) { animation-delay: 0.46s; }
.arena-result-stars i.on:nth-child(5) { animation-delay: 0.58s; }

@keyframes starPop {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.arena-result-msg {
    color: rgba(255, 255, 255, 0.85);
    max-width: 460px;
    margin: 0 auto 28px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.arena-result-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   PERSONAL BESTS LEADERBOARD
   ========================================================================== */
.arena-lb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
}

.arena-lb-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px 20px;
    text-align: center;
    transition: all 0.4s var(--ease-elastic);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.arena-lb-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), var(--border-glow);
}

.arena-lb-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    margin: 0 auto 14px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
}

.arena-lb-card:hover .arena-lb-icon {
    background: var(--accent);
    color: #0a0a0a;
    transform: scale(1.05);
}

.arena-lb-card h4 {
    font-family: var(--font-accent);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 10px;
}

.arena-lb-num {
    font-family: var(--font-accent);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin: 0 0 4px;
    letter-spacing: 1px;
}

.arena-lb-sub {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.arena-lb-empty {
    opacity: 0.55;
}

.arena-lb-empty .arena-lb-num {
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   particles, popups & overlays
   ========================================================================== */
.arena-confetti {
    position: fixed;
    width: 10px;
    height: 14px;
    pointer-events: none;
    z-index: 99999;
    border-radius: 2px;
    opacity: 0;
    animation: confetti 1.6s ease-out forwards;
}

@keyframes confetti {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    100% { opacity: 0; transform: translate(var(--cx), var(--cy)) rotate(var(--cr)); }
}

.arena-popup {
    position: absolute;
    font-family: var(--font-accent);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--accent);
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.8);
    pointer-events: none;
    z-index: 10;
    animation: popUp 1s ease-out forwards;
}

.arena-popup.bad {
    color: #ff6b66;
    text-shadow: 0 0 14px rgba(255, 107, 102, 0.8);
}

@keyframes popUp {
    0% { opacity: 0; transform: translate(-50%, 0) scale(0.7); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -80px) scale(1.3); }
}

@media(max-width:640px){
    .arena-hero-shoe.s3,
    .arena-hero-shoe.s4 {
        display: none;
    }
    .arena-hero-shoe.s1 { top: 4%; left: -8%; width: 140px; opacity: 0.35; }
    .arena-hero-shoe.s2 { top: 6%; right: -8%; width: 140px; opacity: 0.35; }
}
