/* 
   ====================================
   DESIGN TOKENS — DARK STYLISH THEME
   ====================================
*/
:root {
    --bg-primary: #1e1e1e;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent: #e5e5e5;
    --accent-dim: #a3a3a3;
    --accent-glow: rgba(224, 107, 213, 0.25);
    --accent-secondary: #e06bd5;
    --accent-tertiary: #18fff3;

    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;

    --gradient-main: linear-gradient(135deg, #e06bd5 0%, #575c84 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(224, 107, 213, 0.15), rgba(87, 92, 132, 0.1));
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-blur: 10px;

    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --radius: 16px;
    --radius-md: 20px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --container-max: 1100px;
}

/* 
   ====================================
   RESET & BASE
   ====================================
*/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Dynamic scaling for various viewport sizes */
    font-size: 16px;
}

/* Small phones (320px and below) */
@media (max-width: 320px) {
    html {
        font-size: 13px;
    }
}

/* Standard phones */
@media (min-width: 321px) and (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

/* Large phones / small tablets */
@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

/* Tablets and small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
}

/* Large desktops */
@media (min-width: 1441px) and (max-width: 1920px) {
    html {
        font-size: 17px;
    }
}

/* Ultra-wide / TV screens (2K+) */
@media (min-width: 1921px) and (max-width: 2560px) {
    html {
        font-size: 20px;
    }
}

/* 4K TV screens */
@media (min-width: 2561px) {
    html {
        font-size: 24px;
    }
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, #1f1f1f 0%, #171717 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.game-open {
    overflow: hidden;
    height: 100vh;
    overscroll-behavior: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* 
   ====================================
   FALLING PATTERN BG
   ====================================
*/
.falling-pattern-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: var(--bg-primary);
    pointer-events: none;
}

/* Background disabled */
.falling-pattern-content,
.falling-pattern-overlay {
    display: none;
}

.falling-pattern-content {
    position: absolute;
    inset: -10% -10% -10% -10%;
    width: 120%;
    height: 120%;
    /* The backgroundImage and backgroundSize will be injected via JS */
    animation: linear-fall 150s linear infinite;
    transform: translateZ(0);
    will-change: background-position;
}

/* On mobile: slower animation, no will-change (JS handles gradient count) */
@media (max-width: 768px) {
    .falling-pattern-content {
        will-change: auto;
        animation-duration: 200s;
    }
}

.falling-pattern-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(1em);
    -webkit-backdrop-filter: blur(1em);
    background-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 2px, var(--bg-primary) 2px);
    background-size: 8px 8px;
    z-index: 1;
}

/* Remove expensive backdrop-filter blur on mobile, keep dot overlay */
@media (max-width: 768px) {
    .falling-pattern-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@keyframes linear-fall {
    0% {
        background-position: var(--start-pos);
    }

    100% {
        background-position: var(--end-pos);
    }
}



/* 
   ====================================
   NAVBAR
   ====================================
*/
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.35s ease;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Use solid background instead of blur on mobile */
@media (max-width: 768px) {
    nav.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 10, 0.97);
    }
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transform: scale(1.25);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.btn-request-nav {
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.2) 0%, rgba(236, 72, 153, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow:
        inset 1px 1px 0 rgba(103, 232, 249, 0.35),
        inset -1px -1px 0 rgba(236, 72, 153, 0.3),
        0 14px 28px rgba(26, 12, 36, 0.2);
}

.btn-request-nav:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(103, 232, 249, 0.26) 0%, rgba(236, 72, 153, 0.28) 100%);
    box-shadow:
        inset 1px 1px 0 rgba(103, 232, 249, 0.45),
        inset -1px -1px 0 rgba(236, 72, 153, 0.36),
        0 18px 34px rgba(26, 12, 36, 0.26);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

#theme-toggle {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 8px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, color 0.3s;
}

#theme-toggle:hover {
    transform: rotate(30deg);
    color: var(--accent);
}

/*
   ====================================
   HERO — BACKGROUND FOTO + GRADIENT
   ====================================
*/
/*
   Hero — exactly matching ekizr-web #Home section
   Background: radial pink-purple + kelas.jpg photo
*/
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fix zoom: use 'contain'-style or explicit top to show all people */
    background: radial-gradient(circle,
            rgba(224, 107, 213, 0.75) 0%,
            rgba(75, 57, 198, 0.88) 100%), url('/gallery/kelas.jpg');
    background-size: 110%;
    background-position: center 20%;
    /* shift to show top of group photo */
    background-repeat: no-repeat;
    overflow: hidden;
}

.mobile-hero-shell {
    display: none;
}

.mobile-sidebar {
    display: none;
}

.countdown-card {
    margin-top: 28px;
    padding: 18px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(20, 10, 28, 0.22);
}

.countdown-card-desktop {
    width: min(760px, 92%);
}

.countdown-label {
    margin-bottom: 14px;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.countdown-item {
    padding: 14px 10px;
    border-radius: 20px;
    background: rgba(12, 12, 16, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.countdown-value {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.2), 0 0 26px rgba(224, 107, 213, 0.18);
}

.countdown-item small {
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

/* Blur effects for mobile - hides square edges */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: auto;
        align-items: stretch;
        padding: 0;
        background-size: cover; /* More zoom for mobile to fill screen */
        background-position: center center;
    }
    
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 20%;
        background: linear-gradient(to bottom, #111 0%, rgba(17, 17, 17, 0.8) 30%, transparent 100%);
        z-index: 1;
        pointer-events: none;
    }

    .hero::after {
        background: linear-gradient(to top,
                #1e1e1e 0%,
                rgba(30, 30, 30, 0.98) 20%,
                rgba(30, 30, 30, 0.8) 45%,
                rgba(30, 30, 30, 0) 100%);
    }

    .hero-content {
        display: none;
    }

    .mobile-hero-shell {
        position: relative;
        z-index: 2;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 22px;
        padding: 108px 22px 34px;
    }

    .mobile-hero-top {
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 14px);
        left: 16px;
        right: 16px;
        z-index: 1200;
        padding: 10px 12px;
        border-radius: 999px;
        background: rgba(17, 17, 17, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 12px 30px rgba(10, 10, 16, 0.16);
        transition:
            background 0.28s ease,
            border-color 0.28s ease,
            box-shadow 0.28s ease,
            transform 0.28s ease,
            top 0.28s ease;
    }

    .mobile-hero-top.is-scrolled {
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        background: rgba(10, 10, 10, 0.82);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 18px 40px rgba(8, 8, 14, 0.28);
    }

    .mobile-hero-icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #fff;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
        font-size: 1.05rem;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        transition:
            transform 0.22s ease,
            background 0.22s ease,
            border-color 0.22s ease,
            box-shadow 0.22s ease;
    }

    .mobile-hero-icon:focus,
    .mobile-hero-icon:active,
    .mobile-hero-icon:focus-visible {
        outline: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    .mobile-hero-icon:active {
        transform: scale(0.94);
    }

    #btn-mobile-menu.is-active {
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow:
            0 14px 36px rgba(10, 10, 16, 0.26),
            0 0 0 6px rgba(255, 255, 255, 0.05);
        transform: scale(0.98);
    }

    #btn-mobile-menu i {
        transition: transform 0.26s ease, opacity 0.2s ease;
    }

    #btn-mobile-menu.is-active i {
        transform: rotate(-90deg) scale(0.96);
    }

    .mobile-hero-mini-title {
        text-align: center;
        line-height: 1.15;
        min-width: 0;
    }

    .mobile-hero-mini-title span {
        display: block;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.88rem;
    }

    .mobile-hero-mini-title strong {
        display: block;
        font-size: 1.55rem;
        letter-spacing: 0.04em;
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
    }

    .mobile-hero-main {
        margin-top: auto;
        text-align: center;
        padding: 0 8px;
    }

    .mobile-hero-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        margin-bottom: 16px;
    }

    .mobile-hero-title {
        font-size: clamp(3.4rem, 14vw, 5.2rem);
        line-height: 0.95;
        letter-spacing: 0.03em;
        color: #fff;
        text-shadow:
            0 0 8px rgba(255, 255, 255, 0.55),
            0 0 24px rgba(255, 255, 255, 0.35),
            0 0 42px rgba(224, 107, 213, 0.22);
        margin-bottom: 10px;
    }

    .countdown-card-mobile {
        margin-top: 18px;
        padding: 16px 14px;
        border-radius: 24px;
    }

    .countdown-card-mobile .countdown-label {
        margin-bottom: 12px;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }

    .countdown-card-mobile .countdown-grid {
        gap: 8px;
    }

    .countdown-card-mobile .countdown-item {
        padding: 12px 6px;
        border-radius: 18px;
    }

    .countdown-card-mobile .countdown-value {
        font-size: clamp(1.2rem, 5.6vw, 1.7rem);
    }

    .countdown-card-mobile .countdown-item small {
        font-size: 0.58rem;
    }

    .mobile-hero-subtitle {
        color: rgba(255, 255, 255, 0.84);
        font-size: 0.98rem;
    }

    .mobile-stats-pill {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 18px 16px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 20px 40px rgba(34, 17, 43, 0.18);
    }

    .mobile-stat {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-stat-value {
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1;
    }

    .mobile-stat small {
        color: rgba(255, 255, 255, 0.68);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.68rem;
    }

    .mobile-stat-blue {
        background: linear-gradient(135deg, #97ebff 0%, #3bc9ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 0 24px rgba(63, 207, 255, 0.28);
    }

    .mobile-stat-pink {
        background: linear-gradient(135deg, #ffb7db 0%, #ff4f9a 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 0 24px rgba(255, 79, 154, 0.26);
    }

    .mobile-feature-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        align-items: stretch;
    }

    .mobile-feature-card {
        min-height: 182px;
        padding: 18px 16px;
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: left;
        color: #fff;
    }

    .mobile-feature-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1.7rem;
    }

    .mobile-feature-head .fa-chevron-right {
        font-size: 0.9rem;
        opacity: 0.72;
    }

    .mobile-feature-copy h3 {
        font-size: 1.36rem;
        line-height: 1.1;
        margin-bottom: 6px;
    }

    .mobile-feature-copy p {
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.95rem;
    }

    .mobile-feature-instagram {
        min-height: 214px;
        background: linear-gradient(180deg, rgba(185, 125, 226, 0.32) 0%, rgba(255, 255, 255, 0.11) 100%);
    }

    .mobile-feature-chat {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-sidebar {
        position: fixed;
        inset: 0;
        z-index: 2500;
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
    }

    .mobile-sidebar.hidden {
        display: none !important;
    }

    .mobile-sidebar.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-sidebar-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.58);
        opacity: 0;
        transition: opacity 0.24s ease;
    }

    .mobile-sidebar-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: min(82vw, 320px);
        height: 100%;
        padding: 26px 20px;
        background: rgba(25, 20, 34, 0.96);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        gap: 26px;
        transform: translateX(-28px) scale(0.98);
        opacity: 0;
        transition:
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.24s ease;
    }

    .mobile-sidebar.is-open .mobile-sidebar-backdrop {
        opacity: 1;
    }

    .mobile-sidebar.is-open .mobile-sidebar-panel {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    .mobile-sidebar-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-sidebar-kicker {
        color: var(--accent-secondary);
        text-transform: uppercase;
        letter-spacing: 0.16em;
        font-size: 0.72rem;
        margin-bottom: 8px;
    }

    .mobile-sidebar-header h3 {
        font-size: 1.7rem;
    }

    .mobile-sidebar-logo {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.06);
    }

    .mobile-sidebar-logo-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 50%;
        transform: scale(1.25);
    }

    .mobile-sidebar-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-sidebar-close:focus,
    .mobile-sidebar-close:active,
    .mobile-sidebar-close:focus-visible {
        outline: none;
    }

    .mobile-sidebar-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-sidebar-link {
        width: 100%;
        padding: 14px 16px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #fff;
        text-align: left;
        font: inherit;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-sidebar-link:focus,
    .mobile-sidebar-link:active,
    .mobile-sidebar-link:focus-visible {
        outline: none;
    }

    .mobile-sidebar-link-games {
        position: relative;
        background:
            linear-gradient(135deg, rgba(103, 232, 249, 0.16) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(236, 72, 153, 0.16) 100%);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow:
            inset 1px 1px 0 rgba(103, 232, 249, 0.45),
            inset -1px -1px 0 rgba(236, 72, 153, 0.38),
            0 10px 24px rgba(0, 0, 0, 0.18);
    }

    .mobile-sidebar-link-request {
        position: relative;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(167, 139, 250, 0.18) 48%, rgba(103, 232, 249, 0.14) 100%);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow:
            inset 1px 1px 0 rgba(167, 139, 250, 0.28),
            inset -1px -1px 0 rgba(103, 232, 249, 0.22),
            0 10px 24px rgba(0, 0, 0, 0.14);
    }

    .mobile-sidebar-btn {
        cursor: pointer;
    }

    .anonymous-chat-section {
        display: none;
    }
}

/* Seamless fade into next section — ultra-smooth transition */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Slight overlap to prevent line */
    left: 0;
    width: 100%;
    height: 100%; /* Cover full height but only fade bottom half */
    background: linear-gradient(to top,
            #1e1e1e 0%,
            rgba(30, 30, 30, 0.98) 12%,
            rgba(30, 30, 30, 0.9) 25%,
            rgba(30, 30, 30, 0.5) 50%,
            rgba(30, 30, 30, 0) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Wrapper fills exactly 100vh with centered flex */
.ekizr-style {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    text-align: center;
    /* Shift content slightly above center so faces in photo are visible */
    padding-top: 0;
}

.ekizr-style .countdown-card {
    margin-top: 26px;
}

/* "Hi, Visitor!" */
.ekizr-hi {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* "WELCOME" — big glow */
.ekizr-welcome {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 15px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(224, 107, 213, 0.3);
    line-height: 1;
    color: #fff;
    font-family: var(--font-body);
}

@media (min-width: 768px) {
    .ekizr-welcome {
        font-size: 5.5rem;
    }
}

@media (min-width: 1024px) {
    .ekizr-welcome {
        font-size: 7rem;
    }
}

/* KELAS 10 ANGKATAN 29 row */
.ekizr-to {
    font-size: 0.85rem;
    font-family: var(--font-heading); /* Match WELCOME */
    font-weight: 500;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    white-space: nowrap;
}

/*
  ANGKATAN 29 - text-image-clipping
  The photo fill only works well when it's large enough to be legible.
  ANGKATAN 29 - Static bold text
*/
/*
  ANGKATAN 29 - Matches branding
*/
.text-image-clipping {
    color: #ffffff;
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    vertical-align: middle;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.cta-button {
    display: inline-block;
    background: var(--gradient-main);
    color: #fff;
    padding: 16px 42px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-glow);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.cta-button:hover::before {
    left: 100%;
}

/* 
   ====================================
   SECTIONS
   ====================================
*/
section:not(.hero) {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 56px;
    color: var(--text-primary);
}

.section-heading-center {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading-center .section-title,
.anonymous-chat-heading .section-title,
.gallery-header .section-title {
    margin-bottom: 12px;
}

.section-heading-center .section-subtitle,
.anonymous-chat-heading .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ABOUT — blends seamlessly from hero black bottom */
.about {
    background:
        radial-gradient(circle at 12% 20%, rgba(127, 36, 157, 0.09) 0%, rgba(127, 36, 157, 0.05) 14%, rgba(127, 36, 157, 0.016) 24%, rgba(127, 36, 157, 0) 34%),
        radial-gradient(circle at 88% 90%, rgba(127, 36, 157, 0.09) 0%, rgba(127, 36, 157, 0.05) 15%, rgba(127, 36, 157, 0.016) 26%, rgba(127, 36, 157, 0) 38%),
        linear-gradient(180deg, #1e1e1e 0%, #1d1d1d 14%, #1b1b1b 30%, #171717 100%);
    position: relative;
    z-index: 2;
    /* Add subtle top fade that continues the hero gradient */
    padding-top: 0;
    margin-top: -2px;
}

@media (max-width: 768px) {
    .about {
        z-index: 1;
        margin-top: 0;
        padding-top: 72px;
        scroll-margin-top: 88px;
    }

    #about .container {
        position: relative;
        z-index: 1;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: stretch; /* Cards will have equal height */
}

.about-card {
    border-radius: var(--radius-md);
    padding: 36px;
    /* Glassmorphism card */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Disable hover lift animation on mobile */
@media (max-width: 768px) {
    .about-card {
        transition: none;
        padding: 24px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.08);
    }

    .about-card:hover {
        transform: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

.img-card {
    padding: 0;
    overflow: hidden;
    height: 100%; /* Fill available height from grid stretch */
    display: flex;
    min-height: 380px; /* Base height for consistency */
}

.kelas-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

@media (max-width: 768px) {
    .kelas-photo {
        transition: none;
    }

    .img-card:hover .kelas-photo {
        transform: none;
        filter: none;
    }
}

.img-card:hover .kelas-photo {
    transform: scale(1.06);
    filter: brightness(1.08);
}

.photo-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.class-stats {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.class-stats li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.class-stats li strong {
    color: var(--text-primary);
}

.class-stats i {
    color: var(--accent-dim);
    width: 22px;
    text-align: center;
}

/* GALLERY */
.gallery {
    background:
        radial-gradient(circle at 88% 0%, rgba(127, 36, 157, 0.075) 0%, rgba(127, 36, 157, 0.04) 13%, rgba(127, 36, 157, 0.014) 24%, rgba(127, 36, 157, 0) 36%),
        radial-gradient(circle at 14% 88%, rgba(127, 36, 157, 0.095) 0%, rgba(127, 36, 157, 0.05) 14%, rgba(127, 36, 157, 0.018) 25%, rgba(127, 36, 157, 0) 36%),
        linear-gradient(180deg, #171717 0%, #151515 100%);
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .gallery {
        z-index: 1;
        padding-top: 72px;
        scroll-margin-top: 88px;
    }

    #gallery .container {
        position: relative;
        z-index: 1;
    }
}

.gallery-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 10;
}

.gallery-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: -36px auto 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

.gallery-upload-panel {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 22px;
}

.gallery-upload-form {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gallery Container — glassmorphism box */
.gallery-card-container {
    padding: 24px;
    height: auto;
    margin-top: 5%;
    border-radius: var(--radius-md);
    /* Glassmorphism — mirip BoxGallery di reference */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    transform: none;
}

/* Disable 3D perspective on mobile */
@media (max-width: 768px) {
    .gallery-card-container {
        transform: none;
        will-change: auto;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        border-radius: 16px;
        padding: 12px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.08);
    }

    .gallery {
        perspective: none;
    }
}

.gallery-grid {
    column-count: 3;
    column-gap: 24px;
    border-radius: 20px;
    overflow: visible;
    background: transparent;
    padding: 12px 0;
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    break-inside: avoid;
    margin-bottom: 24px;
    transform-origin: center center;
    transform: translateZ(0);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02) rotate(1deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-glow);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Simplify gallery hover on mobile (touch devices don't hover) */
@media (max-width: 768px) {
    .gallery-item {
        transition: none;
    }

    .gallery-item:hover {
        transform: none;
        box-shadow: var(--shadow-card);
    }
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.7s ease;
    filter: sepia(0.2) hue-rotate(-10deg) saturate(0.85) brightness(0.9);
}

.gallery-upload-caption {
    padding: 12px 14px;
    color: rgba(232, 232, 232, 0.78);
    font-size: 0.86rem;
    line-height: 1.45;
    background: rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: sepia(0) hue-rotate(0deg) saturate(1.1) brightness(1.1);
}

/* Remove expensive stacked CSS filters on mobile */
@media (max-width: 768px) {
    .gallery-item img {
        filter: brightness(0.92);
        transition: none;
    }

    .gallery-item:hover img {
        transform: none;
        filter: brightness(1);
    }
}

/* Remove bento-grid classes */
.item-large,
.item-tall,
.item-wide {
    grid-column: auto;
    grid-row: auto;
}

/* FOOTER */
footer {
    background:
        radial-gradient(circle at 18% 100%, rgba(127, 36, 157, 0.14) 0%, rgba(127, 36, 157, 0.06) 20%, rgba(127, 36, 157, 0) 42%),
        linear-gradient(180deg, #121212 0%, #111111 100%);
    padding: 64px 0 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-main,
.footer-link {
    color: rgba(232, 232, 232, 0.78);
    font-size: 1rem;
    font-weight: 600;
}

.footer-link:hover {
    color: #fff;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(127, 36, 157, 0.4), rgba(255, 255, 255, 0));
}

.footer-copy {
    color: rgba(232, 232, 232, 0.62);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    footer {
        padding: 48px 0 34px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-logo {
        width: 64px;
        height: 64px;
    }
}

/* 
   ====================================
   MODAL & GAMES MENU
   ====================================
*/
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .modal-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(0, 0, 0, 0.95);
    }
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-primary);
    padding: 44px;
    border-radius: var(--radius);
    max-width: 860px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.15);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.chat-modal-panel {
    max-width: 760px;
    width: min(92vw, 760px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.request-modal-panel {
    max-width: 680px;
}

.graduated-popup-panel {
    max-width: 560px;
    width: min(92vw, 560px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding: 42px 34px 34px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 48%),
        linear-gradient(180deg, rgba(24, 24, 28, 0.98), rgba(11, 11, 14, 0.98));
}

.graduated-popup-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    font-size: 2rem;
    color: #fff;
}

.graduated-popup-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
}

.graduated-popup-copy {
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.graduated-popup-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

.chat-modal-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    margin-bottom: 6px;
}

.request-modal-header h2 {
    margin-bottom: 8px;
}

.chat-kicker {
    color: var(--accent-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.chat-subtitle {
    color: var(--text-secondary);
}

.chat-feed {
    min-height: 320px;
    max-height: 48vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-empty {
    color: var(--text-muted);
    text-align: center;
    margin: auto 0;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.chat-meta strong {
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-composer {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-field span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.chat-field input,
.chat-field textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 10, 0.5);
    color: var(--text-primary);
    padding: 14px 16px;
    font: inherit;
}

.chat-field textarea {
    resize: vertical;
    min-height: 92px;
}

.chat-field input::placeholder,
.chat-field textarea::placeholder {
    color: rgba(232, 232, 232, 0.34);
}

.chat-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.chat-status {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.anonymous-chat-section {
    padding: 100px 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(127, 36, 157, 0.05) 0%, rgba(127, 36, 157, 0.02) 16%, rgba(127, 36, 157, 0) 34%),
        linear-gradient(180deg, #151515 0%, #121212 100%);
}

.memory-wall-section {
    padding: 110px 0;
    background:
        radial-gradient(circle at 84% 18%, rgba(24, 255, 243, 0.08) 0%, rgba(24, 255, 243, 0.03) 20%, rgba(24, 255, 243, 0) 38%),
        radial-gradient(circle at 8% 78%, rgba(224, 107, 213, 0.06) 0%, rgba(224, 107, 213, 0.02) 22%, rgba(224, 107, 213, 0) 42%),
        linear-gradient(180deg, #121212 0%, #151515 100%);
}

.memory-wall-wrap {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 10px;
    max-width: 620px;
}

.memory-wall-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
    gap: 24px;
    align-items: stretch;
}

.memory-wall-copy,
.memory-composer-card,
.memory-approved-block {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.memory-wall-copy {
    min-height: 440px;
    padding: clamp(24px, 4vw, 42px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.memory-wall-copy::after {
    content: "";
    position: absolute;
    inset: auto -18% -30% 26%;
    height: 220px;
    background: linear-gradient(120deg, rgba(24, 255, 243, 0.14), rgba(224, 107, 213, 0.12));
    filter: blur(54px);
    pointer-events: none;
}

.memory-wall-copy .section-title {
    text-align: left;
    margin-bottom: 0;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.memory-wall-copy .section-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.memory-wall-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.memory-wall-pills span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.065);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 0.84rem;
}

.memory-wall-pills i {
    color: var(--accent-tertiary);
}

.memory-composer-card {
    padding: 18px;
}

.memory-composer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 4px 16px;
}

.memory-composer-head h3,
.memory-approved-head h3 {
    font-size: 1.2rem;
}

.memory-composer-head p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 2px;
}

.memory-composer-head > i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d0d0d;
    background: var(--accent-tertiary);
}

.memory-composer {
    background: rgba(8, 8, 10, 0.38);
    border-radius: 14px;
}

.memory-upload-field input[type="file"] {
    border-style: dashed;
    background: rgba(24, 255, 243, 0.04);
}

.memory-approved-block {
    padding: 22px;
}

.memory-approved-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.memory-approved-head span {
    color: var(--accent-tertiary);
    border: 1px solid rgba(24, 255, 243, 0.2);
    background: rgba(24, 255, 243, 0.06);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
}

.memory-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.memory-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    min-height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.memory-card:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 255, 243, 0.18);
}

.memory-img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.memory-body {
    padding: 18px;
}

.memory-body p {
    color: var(--text-primary);
    margin-top: 10px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.image-preview img {
    width: 112px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-field input[type="file"] {
    padding: 12px;
}

/* 
   ====================================
   INDEX POLISH OVERRIDES
   ====================================
*/
body {
    background:
        radial-gradient(circle at 14% 0%, rgba(24, 255, 243, 0.045) 0%, rgba(24, 255, 243, 0) 34%),
        linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
}

nav.scrolled {
    background: rgba(12, 12, 14, 0.86);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-container {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 10px 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-links {
    gap: 18px;
}

.nav-links a {
    color: rgba(232, 232, 232, 0.76);
}

.hero {
    background:
        linear-gradient(180deg, rgba(10, 10, 12, 0.2) 0%, rgba(10, 10, 12, 0.1) 44%, rgba(18, 18, 18, 0.98) 100%),
        radial-gradient(circle at 50% 36%, rgba(224, 107, 213, 0.52) 0%, rgba(75, 57, 198, 0.74) 52%, rgba(18, 18, 18, 0.95) 100%),
        url('/gallery/kelas.jpg');
    background-size: cover;
    background-position: center 24%;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.ekizr-hi,
.ekizr-to {
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ekizr-welcome {
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.46),
        0 0 52px rgba(224, 107, 213, 0.3);
}

.countdown-card {
    border-radius: 20px;
    background: rgba(12, 12, 14, 0.42);
    border-color: rgba(255, 255, 255, 0.16);
}

section:not(.hero) {
    padding: 96px 0;
}

.section-title {
    letter-spacing: 0;
}

.about {
    padding-top: 96px;
    background:
        radial-gradient(circle at 6% 12%, rgba(24, 255, 243, 0.045) 0%, rgba(24, 255, 243, 0) 34%),
        linear-gradient(180deg, #151515 0%, #171717 100%);
}

.about-grid {
    gap: 22px;
}

.about-card {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card h3 {
    color: var(--text-primary);
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.class-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.class-stats li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.88rem;
}

.class-stats i {
    color: var(--accent-tertiary);
}

.gallery {
    background:
        radial-gradient(circle at 92% 10%, rgba(224, 107, 213, 0.06) 0%, rgba(224, 107, 213, 0) 34%),
        linear-gradient(180deg, #171717 0%, #121212 100%);
}

.gallery-header {
    margin-bottom: 26px;
}

.gallery-subtitle {
    margin-top: 0;
}

.gallery-card-container {
    margin-top: 0;
    padding: 18px;
    transform: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

.gallery-grid {
    column-gap: 16px;
    padding: 0;
}

.gallery-item {
    border-radius: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.gallery-item img {
    filter: brightness(0.94) saturate(0.98);
}

.anonymous-chat-section {
    background:
        radial-gradient(circle at 18% 12%, rgba(24, 255, 243, 0.045) 0%, rgba(24, 255, 243, 0) 34%),
        linear-gradient(180deg, #151515 0%, #111111 100%);
}

.anonymous-chat-heading {
    margin-bottom: 4px;
}

.anonymous-chat-desktop {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
}

.chat-feed,
.chat-composer {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.chat-bubble {
    border-radius: 14px 14px 14px 4px;
}

footer {
    background:
        radial-gradient(circle at 88% 0%, rgba(224, 107, 213, 0.07) 0%, rgba(224, 107, 213, 0) 34%),
        linear-gradient(180deg, #111111 0%, #0d0d0d 100%);
}

/* Smooth page flow: keep sections from looking like separate horizontal blocks. */
body {
    background:
        radial-gradient(circle at 18% 8%, rgba(24, 255, 243, 0.035), transparent 30%),
        radial-gradient(circle at 86% 42%, rgba(224, 107, 213, 0.035), transparent 34%),
        linear-gradient(180deg, #171719 0%, #151517 34%, #121214 68%, #0d0d0e 100%);
}

.hero {
    background:
        linear-gradient(180deg, rgba(10, 10, 12, 0.16) 0%, rgba(12, 12, 14, 0.1) 48%, #171719 100%),
        radial-gradient(circle at 50% 36%, rgba(224, 107, 213, 0.46) 0%, rgba(75, 57, 198, 0.66) 52%, rgba(23, 23, 25, 0.94) 100%),
        url('/gallery/kelas.jpg');
    background-size: cover;
    background-position: center 24%;
}

.about,
.gallery,
.anonymous-chat-section,
footer {
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.about {
    background:
        radial-gradient(circle at 8% 18%, rgba(24, 255, 243, 0.04), transparent 32%),
        linear-gradient(180deg, #171719 0%, #151517 100%);
}

.gallery {
    background:
        radial-gradient(circle at 92% 18%, rgba(224, 107, 213, 0.045), transparent 34%),
        linear-gradient(180deg, #151517 0%, #131315 100%);
}

.anonymous-chat-section {
    background:
        radial-gradient(circle at 16% 18%, rgba(24, 255, 243, 0.035), transparent 34%),
        linear-gradient(180deg, #131315 0%, #101012 100%);
}

footer {
    background:
        radial-gradient(circle at 88% 0%, rgba(224, 107, 213, 0.055), transparent 34%),
        linear-gradient(180deg, #101012 0%, #0d0d0e 100%);
}

.about::before,
.gallery::before,
.anonymous-chat-section::before,
footer::before {
    content: "";
    position: absolute;
    top: -44px;
    left: 0;
    right: 0;
    height: 88px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(23, 23, 25, 0.42), rgba(23, 23, 25, 0));
    filter: blur(8px);
    z-index: 0;
}

.about .container,
.gallery .container,
.anonymous-chat-section .container,
footer .container {
    position: relative;
    z-index: 1;
}

.anonymous-chat-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.anonymous-chat-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.anonymous-chat-heading .section-title {
    margin-bottom: 18px;
}

.anonymous-chat-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.anonymous-chat-desktop .chat-feed,
.anonymous-chat-desktop .chat-composer {
    min-height: 100%;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--danger);
}

.games-menu h2 {
    text-align: center;
    margin-bottom: 36px;
    font-size: 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.game-card h3 {
    font-size: 1.15rem;
}

.game-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.game-icon {
    font-size: 2.6rem;
    color: var(--accent);
}

/* 
   ====================================
   GAME CONTAINER (FULLSCREEN)
   ====================================
*/
.game-container {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(224, 107, 213, 0.18) 0%, rgba(224, 107, 213, 0) 28%),
        radial-gradient(circle at bottom right, rgba(123, 92, 255, 0.12) 0%, rgba(123, 92, 255, 0) 26%),
        linear-gradient(180deg, #151515 0%, #101010 100%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.game-container::before,
.game-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.7;
    pointer-events: none;
}

.game-container::before {
    width: 420px;
    height: 420px;
    top: -160px;
    left: -120px;
    background: rgba(165, 88, 247, 0.16);
}

.game-container::after {
    width: 360px;
    height: 360px;
    right: -110px;
    bottom: -120px;
    background: rgba(224, 107, 213, 0.12);
}

.game-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: rgba(12, 12, 14, 0.74);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.game-header h2 {
    font-size: 1.3rem;
    letter-spacing: 0.01em;
}

.back-to-menu {
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.back-to-menu:hover {
    background: rgba(224, 107, 213, 0.18);
    border-color: rgba(224, 107, 213, 0.26);
    transform: translateX(-2px);
}

.score-display {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px 24px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    overscroll-behavior: none;
}

/* 
   ====================================
   BUTTONS (PREMIUM MONOCHROME)
   ====================================
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:active {
    transform: scale(0.94);
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Primary Variants */
.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background-color: #ffffff;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Game Colored Buttons mapped to Monochrome */
.btn-warning {
    background-color: #a3a3a3;
    color: #000;
}

.btn-warning:hover {
    background-color: #d4d4d4;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #333333;
    border: 2px solid #555;
    color: #fff;
}

.btn-danger:hover {
    background-color: #444444;
    border-color: #777;
    transform: translateY(-2px);
}
/* 
   ====================================
   KAHOOT GAME STYLES — Full Kahoot-like UX
   ====================================
*/

.kahoot-panel {
    width: 100%;
    max-width: 700px;
    background: linear-gradient(145deg, rgba(20,20,30,0.95), rgba(10,10,20,0.98));
    padding: 32px 28px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ---- SELECT SCREEN ---- */
.kahoot-select-screen {
    padding: 48px 28px;
}

.kahoot-logo-big {
    margin-bottom: 10px;
}

.kahoot-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(135deg, #e21b3c, #ff6b6b);
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 8px 30px rgba(226,27,60,0.4);
    transform: rotate(-5deg);
    transition: transform 0.3s;
}

.kahoot-logo-icon:hover { transform: rotate(0deg) scale(1.05); }

.kahoot-logo-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e21b3c, #ff6b6b);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 15px rgba(226,27,60,0.3);
}

.kahoot-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -1px;
}

.kahoot-subtitle {
    color: #888;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.kahoot-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 10px;
}

.kahoot-role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.kahoot-role-btn i {
    font-size: 2rem;
    margin-bottom: 4px;
}

.kahoot-role-btn small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.6;
}

.kahoot-role-host {
    background: linear-gradient(135deg, rgba(226,27,60,0.15), rgba(226,27,60,0.05));
    border-color: rgba(226,27,60,0.3);
}

.kahoot-role-host:hover {
    background: linear-gradient(135deg, rgba(226,27,60,0.3), rgba(226,27,60,0.1));
    border-color: #e21b3c;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(226,27,60,0.2);
}

.kahoot-role-player {
    background: linear-gradient(135deg, rgba(19,104,206,0.15), rgba(19,104,206,0.05));
    border-color: rgba(19,104,206,0.3);
}

.kahoot-role-player:hover {
    background: linear-gradient(135deg, rgba(19,104,206,0.3), rgba(19,104,206,0.1));
    border-color: #1368ce;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(19,104,206,0.2);
}

/* ---- HOST SETUP ---- */
.kahoot-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 1.1rem;
    width: 100%;
}

.kahoot-section-header i { font-size: 1.3rem; }

.kahoot-questions-list {
    max-height: 40vh;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    width: 100%;
}

.kahoot-question-form {
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.2s;
}

.kahoot-question-form:focus-within {
    border-color: rgba(255,255,255,0.2);
}

.q-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.q-header {
    font-weight: 700;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-remove-q {
    background: rgba(239,68,68,0.1);
    color: #ff4d4d;
    border: 1px solid rgba(239,68,68,0.3);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.btn-remove-q:hover {
    background: #ff4d4d;
    color: #fff;
    transform: scale(1.1);
}

.q-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.q-opt-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.q-opt-wrap .opt-shape {
    font-size: 0.9rem;
    font-weight: 900;
}

.q-opt-red { background: rgba(226,27,60,0.1); border-color: rgba(226,27,60,0.2); }
.q-opt-red .opt-shape { color: #e21b3c; }
.q-opt-blue { background: rgba(19,104,206,0.1); border-color: rgba(19,104,206,0.2); }
.q-opt-blue .opt-shape { color: #1368ce; }
.q-opt-yellow { background: rgba(216,158,0,0.1); border-color: rgba(216,158,0,0.2); }
.q-opt-yellow .opt-shape { color: #d89e00; }
.q-opt-green { background: rgba(38,137,12,0.1); border-color: rgba(38,137,12,0.2); }
.q-opt-green .opt-shape { color: #26890c; }

.correct-selectors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.q-correct-btn {
    transition: all 0.2s ease;
    border-radius: 8px !important;
    font-weight: 800 !important;
}

.fancy-input {
    width: 100%;
    padding: 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.2s;
    font-family: inherit;
}

.fancy-input:focus {
    border-color: var(--accent);
    outline: none;
}

.btn-dark {
    background-color: #111;
    border: 2px solid #333;
    color: #a3a3a3;
}

.btn-dark:hover {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #555;
    transform: translateY(-2px);
}

.btn-sm-sz { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg-sz { padding: 18px 36px; font-size: 1.15rem; }
.btn-default-sz { padding: 14px 28px; }

/* ---- LOBBY ---- */
.kahoot-lobby-screen {
    padding: 40px 28px;
}

.kahoot-lobby-pin {
    margin-bottom: 24px;
}

.kahoot-lobby-pin-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.kahoot-lobby-pin-number {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: #fff;
    margin: 0;
    font-family: 'Outfit', monospace;
    text-shadow: 0 0 40px rgba(226,27,60,0.3);
}

.kahoot-lobby-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.kahoot-lobby-waiting {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.9rem;
}

.kahoot-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    animation: kahoot-pulse 1.5s infinite;
}

@keyframes kahoot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.kahoot-lobby-count {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
}

.kahoot-player-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    min-height: 80px;
    margin: 16px 0;
}

.player-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: kahoot-pop 0.3s ease-out;
}

@keyframes kahoot-pop {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.player-pill img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
    background: #222;
}

.player-pill span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
}

.kahoot-start-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #e21b3c, #ff4d6d);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(226,27,60,0.3);
}

.kahoot-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(226,27,60,0.4);
}

.kahoot-start-btn:active {
    transform: translateY(0);
}

/* ---- PLAYER JOIN ---- */
.kahoot-avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-label {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 3px solid var(--accent);
    background: #222;
}

.avatar-label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 1.3rem;
}

.avatar-label:hover .upload-overlay { opacity: 1; }

.kahoot-join-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #1368ce, #4d9fff);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(19,104,206,0.3);
}

.kahoot-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(19,104,206,0.4);
}

/* ---- QUESTION SCREEN ---- */
.kahoot-question-screen {
    padding: 24px 20px;
    gap: 16px;
}

.kahoot-question-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.kahoot-timer-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}

.kahoot-timer-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.kahoot-timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 3px;
    transition: width 1s linear;
}

.kahoot-timer-bar.kahoot-timer-warning {
    background: linear-gradient(90deg, #facc15, #eab308);
}

.kahoot-timer-bar.kahoot-timer-danger {
    background: linear-gradient(90deg, #f87171, #ef4444);
    animation: kahoot-timer-pulse 0.5s infinite;
}

@keyframes kahoot-timer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.kahoot-question-img {
    width: 100%;
    max-height: 180px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.kahoot-question-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kahoot-question-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.kahoot-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.kahoot-answer-btn {
    padding: 20px 16px;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.kahoot-answer-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.kahoot-answer-shape {
    font-size: 1.4rem;
    font-weight: 900;
}

.kahoot-answer-text {
    flex: 1;
    text-align: left;
}

.kahoot-answer-red { background: #e21b3c; }
.kahoot-answer-blue { background: #1368ce; }
.kahoot-answer-yellow { background: #d89e00; color: #1a1a1a !important; }
.kahoot-answer-green { background: #26890c; }

.kahoot-answer-btn:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.kahoot-answer-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.kahoot-answer-btn:disabled {
    cursor: default;
    opacity: 0.6;
}

.kahoot-answer-btn.selected {
    outline: 4px solid #fff;
    outline-offset: -4px;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
    animation: kahoot-pulse 0.5s ease-out;
}

@keyframes kahoot-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.07); }
    100% { transform: scale(1.05); }
}

.kahoot-submit-btn {
    grid-column: 1 / -1;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.kahoot-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226,27,60,0.3);
}

/* Waiting dots animation */
.kahoot-waiting-dots span {
    animation: kahoot-dot 1.4s infinite;
    opacity: 0;
}
.kahoot-waiting-dots span:nth-child(1) { animation-delay: 0s; }
.kahoot-waiting-dots span:nth-child(2) { animation-delay: 0.2s; }
.kahoot-waiting-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes kahoot-dot {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* ---- CORRECT ANSWER REVEAL ---- */
.kahoot-correct-answer {
    background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.05));
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
    animation: kahoot-correct-pulse 1s ease infinite;
}

@keyframes kahoot-correct-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(34,197,94,0.3); }
    50% { box-shadow: 0 0 20px rgba(34,197,94,0.5); }
}

.kahoot-correct-answer i {
    margin-right: 8px;
}

/* ---- LEADERBOARD ---- */
.kahoot-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    width: 100%;
    transition: all 0.2s;
}

.leaderboard-item:hover {
    background: rgba(255,255,255,0.1);
}

.leaderboard-rank {
    font-weight: 900;
    font-size: 1.1rem;
    width: 28px;
    color: #888;
}

.leaderboard-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    background: #222;
}

/* ---- PODIUM ---- */
.kahoot-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 20px 0 10px;
    width: 100%;
}

.kahoot-podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 16px;
    width: 30%;
    transition: all 0.3s;
}

.kahoot-podium-1 {
    background: linear-gradient(180deg, rgba(255,215,0,0.15), rgba(255,215,0,0.03));
    border: 1px solid rgba(255,215,0,0.3);
    order: 2;
    transform: translateY(-10px);
}

.kahoot-podium-2 {
    background: linear-gradient(180deg, rgba(192,192,192,0.12), rgba(192,192,192,0.03));
    border: 1px solid rgba(192,192,192,0.2);
    order: 1;
}

.kahoot-podium-3 {
    background: linear-gradient(180deg, rgba(205,127,50,0.12), rgba(205,127,50,0.03));
    border: 1px solid rgba(205,127,50,0.2);
    order: 3;
}

.kahoot-podium-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    background: #222;
}

.kahoot-podium-1 .kahoot-podium-avatar {
    width: 72px;
    height: 72px;
    border-color: #ffd700;
}

.kahoot-podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kahoot-podium-label {
    font-size: 1.8rem;
}

.kahoot-podium-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.kahoot-podium-score {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .kahoot-panel { padding: 24px 16px; border-radius: 20px; }
    .kahoot-title { font-size: 2.2rem; }
    .kahoot-logo-icon { width: 80px; height: 80px; font-size: 2.4rem; }
    .kahoot-role-grid { grid-template-columns: 1fr; }
    .kahoot-lobby-pin-number { font-size: 3rem; letter-spacing: 5px; }
    .kahoot-options-grid { grid-template-columns: 1fr; }
    .kahoot-answer-btn { padding: 16px 14px; font-size: 1rem; }
    .kahoot-question-text { font-size: 1.2rem; }
    .player-pill img { width: 50px; height: 50px; }
    .kahoot-podium-col { width: 32%; padding: 12px 8px; }
    .kahoot-podium-1 .kahoot-podium-avatar { width: 56px; height: 56px; }
}

/* ---- KAHOOT SHOW MODE REFRESH ---- */
.kahoot-game-shell {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08) 0 10%, transparent 10% 20%, rgba(255,255,255,0.05) 20% 30%, transparent 30% 100%),
        radial-gradient(circle at 50% -20%, rgba(255,255,255,0.16), transparent 34%),
        linear-gradient(145deg, #3a0ca3 0%, #5f0f9f 38%, #2f0f7c 100%);
    touch-action: auto;
}

.kahoot-game-shell::before,
.kahoot-game-shell::after {
    display: none;
}

.kahoot-game-shell .game-header {
    background: rgba(41, 8, 104, 0.82);
    border-bottom: 4px solid rgba(255,255,255,0.16);
    box-shadow: 0 10px 0 rgba(0,0,0,0.18);
}

.kahoot-game-shell .game-header h2 {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
}

.kahoot-game-shell .score-display {
    background: #fff;
    color: #25006b;
    border: 0;
    font-weight: 900;
    box-shadow: 0 6px 0 rgba(0,0,0,0.22);
}

.kahoot-game-shell .back-to-menu {
    background: rgba(255,255,255,0.16);
    border: 2px solid rgba(255,255,255,0.28);
    color: #fff;
}

.kahoot-game-shell .game-body {
    align-items: flex-start;
    overflow-y: auto;
    padding: 28px 18px 40px;
    touch-action: pan-y;
}

.kahoot-panel {
    max-width: 920px;
    min-height: min(720px, calc(100vh - 150px));
    background:
        linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08)),
        rgba(34, 8, 92, 0.92);
    border: 4px solid rgba(255,255,255,0.22);
    border-radius: 10px;
    box-shadow: 0 14px 0 rgba(0,0,0,0.28), 0 26px 70px rgba(0,0,0,0.36);
    color: #fff;
}

.kahoot-select-screen,
.kahoot-lobby-screen,
.kahoot-player-join-screen {
    justify-content: center;
}

.kahoot-logo-icon,
.kahoot-logo-small {
    background: #fff;
    color: #421099;
    border-radius: 6px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.24);
}

.kahoot-title {
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 0 6px 0 rgba(0,0,0,0.25);
}

.kahoot-subtitle,
.kahoot-lobby-waiting,
.kahoot-avatar-note {
    color: rgba(255,255,255,0.78);
}

.kahoot-role-btn {
    min-height: 178px;
    border-radius: 8px;
    border: 0;
    box-shadow: 0 8px 0 rgba(0,0,0,0.22);
    text-transform: uppercase;
}

.kahoot-role-btn span {
    font-size: 1.55rem;
    font-weight: 900;
}

.kahoot-role-btn small {
    color: rgba(255,255,255,0.8);
    opacity: 1;
    text-transform: none;
}

.kahoot-role-host {
    background: #e21b3c;
}

.kahoot-role-player {
    background: #1368ce;
}

.kahoot-role-host:hover,
.kahoot-role-player:hover {
    transform: translateY(-5px);
    filter: brightness(1.08);
    box-shadow: 0 13px 0 rgba(0,0,0,0.24);
}

.kahoot-section-header {
    color: #fff;
    justify-content: center;
    text-align: center;
}

.kahoot-section-header h3,
.kahoot-join-title,
.kahoot-results-title {
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(0,0,0,0.22);
}

.kahoot-code-row,
.kahoot-action-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.kahoot-action-row {
    grid-template-columns: 1fr 1.15fr;
    margin: 0;
}

.kahoot-panel .fancy-input {
    background: #fff;
    border: 3px solid transparent;
    border-radius: 6px;
    color: #1d1237;
    font-weight: 800;
    box-shadow: 0 5px 0 rgba(0,0,0,0.2);
}

.kahoot-panel .fancy-input::placeholder {
    color: #7f6e9f;
}

.kahoot-panel .fancy-input:focus {
    border-color: #ffde2b;
}

.kahoot-question-form {
    background: #f7f3ff;
    color: #20113f;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.2);
}

.kahoot-question-form:focus-within {
    box-shadow: 0 6px 0 rgba(0,0,0,0.2), 0 0 0 4px #ffde2b;
}

.q-header {
    color: #421099;
    font-weight: 900;
}

.q-opt-wrap {
    border-radius: 6px;
    border: 0;
    padding: 8px;
}

.q-opt-wrap .fancy-input {
    box-shadow: none;
    text-align: left;
}

.q-opt-red { background: #e21b3c; }
.q-opt-blue { background: #1368ce; }
.q-opt-yellow { background: #d89e00; }
.q-opt-green { background: #26890c; }
.q-opt-wrap .opt-shape { color: #fff; }

.kahoot-panel .btn {
    border-radius: 6px;
    border: 0;
    box-shadow: 0 5px 0 rgba(0,0,0,0.22);
    text-transform: uppercase;
}

.kahoot-panel .btn-primary,
.kahoot-start-btn,
.kahoot-join-btn {
    background: #26890c;
    color: #fff;
}

.kahoot-panel .btn-secondary,
.kahoot-demo-btn {
    background: #1368ce;
    color: #fff;
}

.kahoot-lobby-screen {
    max-width: 980px;
}

.kahoot-lobby-pin {
    width: min(100%, 640px);
    background: #fff;
    color: #25006b;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 10px 0 rgba(0,0,0,0.28);
}

.kahoot-lobby-pin-label {
    color: #6b5a8f;
    font-weight: 900;
}

.kahoot-lobby-pin-number {
    color: #25006b;
    font-size: clamp(3.2rem, 11vw, 6.4rem);
    line-height: 1;
    text-shadow: none;
}

.kahoot-lobby-status {
    background: rgba(0,0,0,0.22);
    border-radius: 999px;
    padding: 10px 16px;
}

.kahoot-lobby-count {
    color: #ffde2b;
    font-weight: 900;
}

.kahoot-player-list {
    width: 100%;
    min-height: 140px;
    align-content: flex-start;
}

.player-pill {
    min-width: 112px;
    padding: 12px 10px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}

.player-pill-avatar {
    width: 66px;
    height: 66px;
    padding: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 0 rgba(0,0,0,0.22);
}

.player-pill-avatar img,
.player-pill img {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 50%;
}

.player-pill span {
    color: #fff;
    font-weight: 900;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kahoot-start-btn,
.kahoot-join-btn {
    border-radius: 8px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.25);
    text-transform: uppercase;
}

.kahoot-player-join-screen {
    max-width: 480px;
    min-height: auto;
}

.kahoot-avatar-upload {
    margin-bottom: 6px;
}

.avatar-label {
    border: 5px solid #fff;
    box-shadow: 0 7px 0 rgba(0,0,0,0.23);
}

.kahoot-avatar-note {
    font-size: 0.78rem;
    margin-top: 8px;
    font-weight: 700;
}

.kahoot-demo-btn {
    width: 100%;
    margin-top: 12px;
}

.kahoot-question-screen {
    max-width: 1040px;
    min-height: min(760px, calc(100vh - 140px));
    background: #f2f2f2;
    color: #24143f;
    padding: 20px;
}

.kahoot-question-top {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
}

.kahoot-timer-circle {
    background: #46178f;
    color: #fff;
    border: 0;
    box-shadow: 0 6px 0 rgba(0,0,0,0.25);
}

.kahoot-timer-bar-track {
    height: 14px;
    background: rgba(70,23,143,0.18);
    border-radius: 999px;
}

.kahoot-timer-bar {
    border-radius: 999px;
}

.kahoot-question-text {
    width: 100%;
    min-height: 116px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #24143f;
    border-radius: 8px;
    padding: 24px;
    font-size: clamp(1.55rem, 4vw, 2.6rem);
    font-weight: 900;
    box-shadow: 0 8px 0 rgba(0,0,0,0.14);
}

.kahoot-question-img {
    background: #fff;
    box-shadow: 0 8px 0 rgba(0,0,0,0.14);
}

.kahoot-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kahoot-answer-btn {
    min-height: 118px;
    border-radius: 8px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.22);
    font-size: clamp(1rem, 2vw, 1.35rem);
    text-align: left;
}

.kahoot-answer-btn::before {
    display: none;
}

.kahoot-answer-shape {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(0,0,0,0.18);
    color: #fff;
    font-size: 1.8rem;
    flex: 0 0 auto;
}

.kahoot-answer-yellow .kahoot-answer-shape {
    color: #1d1237;
    background: rgba(255,255,255,0.38);
}

.kahoot-answer-text {
    font-weight: 900;
    line-height: 1.2;
    word-break: break-word;
}

.kahoot-answer-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 rgba(0,0,0,0.24);
}

.kahoot-answer-btn:disabled {
    opacity: 0.78;
}

.kahoot-player-status {
    margin-top: 16px;
    color: #421099;
    font-weight: 900;
}

.kahoot-correct-answer {
    background: #fff;
    color: #26890c;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.16);
}

.kahoot-results-title {
    margin-bottom: 10px;
}

.kahoot-leaderboard {
    gap: 10px;
}

.leaderboard-item {
    background: #fff;
    color: #24143f;
    border-radius: 8px;
    box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.leaderboard-rank {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #46178f;
    color: #fff;
    border-radius: 6px;
}

.leaderboard-name {
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-score {
    color: #46178f;
    font-size: 1.35rem;
    font-weight: 900;
}

.kahoot-podium-col {
    background: #fff;
    border: 0;
    color: #24143f;
    border-radius: 8px;
    box-shadow: 0 8px 0 rgba(0,0,0,0.2);
}

.kahoot-podium-score {
    color: #46178f;
}

.kahoot-exit-btn {
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 720px) {
    .kahoot-game-shell .game-header {
        padding: 12px;
        gap: 8px;
    }

    .kahoot-game-shell .game-header h2 {
        font-size: 1rem;
    }

    .kahoot-game-shell .game-body {
        padding: 16px 10px 28px;
    }

    .kahoot-panel {
        min-height: auto;
        padding: 18px 12px;
        border-width: 3px;
    }

    .kahoot-code-row,
    .kahoot-action-row {
        grid-template-columns: 1fr;
    }

    .q-options-grid,
    .kahoot-options-grid {
        grid-template-columns: 1fr;
    }

    .kahoot-lobby-status {
        flex-direction: column;
        gap: 8px;
        border-radius: 8px;
    }

    .player-pill {
        min-width: 92px;
    }

    .player-pill-avatar {
        width: 54px;
        height: 54px;
    }

    .kahoot-question-top {
        grid-template-columns: 1fr;
    }

    .kahoot-question-text {
        min-height: 96px;
        padding: 18px 14px;
    }

    .kahoot-answer-btn {
        min-height: 86px;
    }

    .kahoot-answer-shape {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }

    .kahoot-podium {
        gap: 8px;
    }
}
/* Sizes */
.btn-sm-sz {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-lg-sz {
    padding: 18px 36px;
    font-size: 1.15rem;
}

.btn-default-sz {
    padding: 14px 28px;
}

/* 
   ====================================
   WORDLE SPECIFIC
   ====================================
*/
.wordle-body {
    flex-direction: column !important;
    gap: 20px;
    padding: 16px !important;
    overflow-y: auto !important;
}

#wordle-board-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#wordle-keyboard-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

/* 
   ====================================
   SOCCER SPECIFIC
   ====================================
*/
.soccer-body {
    padding: 0 !important;
    position: relative;
}

.soccer-ui-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 10;
    padding: 24px;
}

.team-selection {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.player-col {
    text-align: center;
}

.player-col h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.player-col p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.vs-badge {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.fancy-select {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    font-family: var(--font-body);
}

.match-settings {
    text-align: center;
}

.match-settings label {
    color: var(--text-secondary);
    margin-right: 10px;
}

#soccer-canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

#soccer-canvas-container canvas {
    display: block;
}

#soccer-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 12px 20px;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
}

.score-board {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
}

.timer {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
}

#goal-announcement {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
    z-index: 30;
}

.final-score {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.soccer-actions {
    display: flex;
    gap: 16px;
}

/* On-screen Joystick */
.joystick-zone {
    position: absolute;
    bottom: 20px;
    z-index: 50;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    touch-action: none;
}

.joystick-zone.left {
    left: 24px;
}

.joystick-zone.right {
    right: 24px;
}

.joystick-knob {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: none;
}

.kick-btn {
    position: absolute;
    bottom: 160px;
    z-index: 50;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.4);
    border: 2px solid var(--danger);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
}

.kick-btn.left {
    left: 130px;
}

.kick-btn.right {
    right: 130px;
}

/* 
   ====================================
   RESPONSIVE
   ====================================
*/
@media (max-width: 768px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .img-card {
        height: 260px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-header {
        padding: 12px 16px;
    }

    .team-selection {
        flex-direction: column;
    }

    .vs-badge {
        font-size: 1.4rem;
    }

    .modal-content {
        padding: 28px 20px;
    }

    .graduated-popup-panel {
        padding: 34px 22px 24px;
    }

    .graduated-popup-actions .btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .item-large,
    .item-tall,
    .item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* 
   ====================================
   GAMES 3D & PRO MAX DESIGN
   ====================================
*/
.game-card-3d {
    background: linear-gradient(180deg, rgba(26, 26, 28, 0.88) 0%, rgba(16, 16, 18, 0.82) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: none;
    position: relative;
    overflow: hidden;
}

/* Simplify game cards on mobile - remove blur and 3D transforms */
@media (max-width: 768px) {
    .game-card-3d {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: linear-gradient(180deg, rgba(22, 22, 24, 0.97) 0%, rgba(14, 14, 16, 0.97) 100%);
        transform: none;
        transition: background 0.2s ease;
    }

    .game-card-3d:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
}

.game-card-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-card-3d:hover {
    transform: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px var(--accent-glow);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.game-card-3d:hover::before {
    opacity: 1;
}

.game-card-3d.correct {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--success);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

.game-card-3d.wrong {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.3);
}

.teacher-img-3d {
    width: min(340px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: none;
    filter: drop-shadow(0 0 24px rgba(224, 107, 213, 0.1));
}

.teacher-img-3d:hover {
    transform: none;
}

/* Simplify teacher image on mobile */
@media (max-width: 768px) {
    .teacher-img-3d {
        width: min(240px, 100%);
        transform: none;
        filter: none;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
        transition: none;
    }

    .teacher-img-3d:hover {
        transform: none;
    }
}

.countdown-3d {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    text-shadow: 0 10px 40px var(--accent-glow);
    animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

@keyframes popIn {
    0% {
        transform: scale(0.85) translateZ(-50px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateZ(0);
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--accent-glow));
    }
}

.glass-panel {
    background:
        linear-gradient(180deg, rgba(26, 20, 30, 0.82) 0%, rgba(11, 11, 14, 0.88) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 34px;
}

/* Remove glass blur effect on mobile */
@media (max-width: 768px) {
    .glass-panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: linear-gradient(180deg, rgba(21, 18, 24, 0.96) 0%, rgba(10, 10, 12, 0.98) 100%);
        padding: 20px;
    }
}

.game-stage {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.game-stage-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.74);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.game-stage-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.14);
}

.game-stage-title-sm {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.game-stage-subtitle {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto;
}

.game-stage-meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 1rem;
}

.game-stage-meta strong {
    color: #fff;
    font-size: 1.2em;
}

.game-stage-reflex .countdown-3d {
    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.22),
        0 0 56px rgba(224, 107, 213, 0.22);
}

.reflex-shell,
.reflex-input-shell,
.reflex-result-shell,
.tg-shell {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reflex-shell {
    max-width: 720px;
    gap: 22px;
}

.reflex-difficulty-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reflex-diff-card {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.reflex-diff-card p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
}

.reflex-diff-title {
    font-size: 1.45rem;
}

.reflex-diff-title-success {
    color: var(--success);
}

.reflex-diff-title-warning {
    color: var(--warning);
}

.reflex-diff-title-danger {
    color: var(--danger);
}

.reflex-diff-card-epic {
    border-color: rgba(168, 85, 247, 0.32);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.08);
}

.reflex-diff-title-epic {
    color: #a855f7;
    text-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.reflex-number-flash {
    font-size: clamp(3.4rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.14em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.95);
    text-shadow:
        0 0 24px rgba(255, 255, 255, 0.28),
        0 0 72px rgba(224, 107, 213, 0.24);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reflex-input-shell {
    max-width: 580px;
    gap: 22px;
}

.reflex-answer-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.reflex-result-shell {
    max-width: 460px;
    gap: 18px;
}

.reflex-result-shell-success {
    border-color: rgba(34, 197, 94, 0.32);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(34, 197, 94, 0.08),
        0 0 44px rgba(34, 197, 94, 0.12);
}

.reflex-result-shell-danger {
    border-color: rgba(239, 68, 68, 0.32);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(239, 68, 68, 0.08),
        0 0 44px rgba(239, 68, 68, 0.12);
}

.reflex-result-title {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1;
}

.reflex-result-title-success {
    color: var(--success);
    text-shadow: 0 0 22px rgba(34, 197, 94, 0.28);
}

.reflex-result-title-danger {
    color: var(--danger);
    text-shadow: 0 0 22px rgba(239, 68, 68, 0.26);
}

.reflex-result-copy {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.08rem;
}

.reflex-result-copy strong {
    color: #fff;
    font-size: 1.35em;
}

.reflex-answer-reveal {
    font-size: clamp(2rem, 6vw, 2.8rem);
    letter-spacing: 0.18em;
    line-height: 1;
}

.reflex-result-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reflex-result-btn {
    width: 100%;
    border-radius: 18px;
}

.reflex-result-btn-success {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--success);
    box-shadow: none;
}

.reflex-result-btn-danger {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.34);
    color: #ff8f8f;
    box-shadow: none;
}

.tg-shell {
    max-width: 920px;
    gap: 22px;
    padding: 28px 28px 30px;
}

.tg-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 860px;
}

.tg-btn-option {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.tg-feedback {
    min-height: 34px;
    font-size: 1.05rem;
    font-weight: 700;
}

.tg-feedback-success {
    color: var(--success);
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.28);
}

.tg-feedback-danger {
    color: #ff8f8f;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.22);
}

/* Reflex Virtual Numpad */
.numpad-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.numpad-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 18px 0;
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.numpad-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

.numpad-del {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.reflex-input-display {
    padding: 18px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 6, 8, 0.52);
    color: var(--text-primary);
    min-height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 4px 18px rgba(0, 0, 0, 0.45);
}

@media (min-width: 769px) {
    .reflex-input-shell {
        max-width: 720px;
        padding: 36px 40px 40px;
    }

    .reflex-answer-area {
        gap: 22px;
    }

    .reflex-input-display {
        min-height: 128px;
        padding: 24px 28px;
        font-size: 3rem;
        letter-spacing: 0.14em;
        border-radius: 26px;
    }

    .numpad-container {
        max-width: 500px;
        gap: 16px;
    }

    .numpad-btn {
        min-height: 96px;
        padding: 22px 0;
        border-radius: 24px;
        font-size: 2rem;
    }
}

.reflex-caret {
    display: inline-block;
    width: 3px;
    height: 35px;
    background-color: var(--accent);
    animation: blink 1s step-end infinite;
    margin-left: 4px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ====================================
   RESPONSIVE: MOBILE PHONES
   ==================================== */
@media (max-width: 768px) {
    .game-container::before {
        width: 260px;
        height: 260px;
        top: -80px;
        left: -80px;
    }

    .game-container::after {
        width: 220px;
        height: 220px;
        right: -70px;
        bottom: -80px;
    }

    #navbar {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .img-card {
        height: 220px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 0;
        min-height: 100vh;
    }

    .hero .hero-content {
        display: none;
    }

    .hero::after {
        background: linear-gradient(to top,
                #1e1e1e 0%,
                rgba(30, 30, 30, 0.98) 20%,
                rgba(30, 30, 30, 0.8) 45%,
                rgba(30, 30, 30, 0) 100%);
    }

    .nav-links a {
        display: none;
    }

    .modal-content {
        padding: 24px;
        width: 96%;
    }

    .chat-modal-panel {
        width: 96vw;
        max-height: 90vh;
        padding: 22px 18px;
        gap: 16px;
    }

    .chat-feed {
        min-height: 240px;
        max-height: 36vh;
        padding: 14px;
    }

    .chat-bubble {
        max-width: 92%;
    }

    .chat-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-actions .btn {
        width: 100%;
    }

    .section-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading-row .btn {
        width: 100%;
    }

    .memory-wall-hero,
    .anonymous-chat-desktop {
        grid-template-columns: 1fr;
    }

    .memory-wall-section {
        padding: 72px 0;
    }

    .memory-wall-copy {
        min-height: auto;
    }

    .memory-approved-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-container {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero {
        background:
            linear-gradient(180deg, rgba(10, 10, 12, 0.08) 0%, rgba(10, 10, 12, 0.2) 48%, rgba(18, 18, 18, 0.98) 100%),
            radial-gradient(circle at 50% 40%, rgba(224, 107, 213, 0.38) 0%, rgba(75, 57, 198, 0.52) 54%, rgba(18, 18, 18, 0.9) 100%),
            url('/gallery/kelas.jpg');
        background-size: cover;
        background-position: center center;
    }

    .class-stats {
        grid-template-columns: 1fr;
    }

    .gallery-header,
    .section-heading-center,
    .anonymous-chat-heading {
        margin-bottom: 28px;
    }

    .gallery-upload-panel {
        grid-template-columns: 1fr;
    }

    .memory-composer-card,
    .memory-approved-block {
        padding: 14px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-body {
        padding: 16px;
    }

    .game-header {
        padding: 14px 16px;
    }

    .game-header h2 {
        font-size: 1.1rem;
    }

    .back-to-menu {
        padding: 8px 12px;
        font-size: 0.88rem;
    }

    .score-display {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .glass-panel {
        border-radius: 28px;
    }

    .game-stage-kicker {
        font-size: 0.64rem;
        letter-spacing: 0.12em;
    }

    .game-stage-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .game-stage-subtitle,
    .game-stage-meta,
    .reflex-result-copy {
        font-size: 0.95rem;
    }

    .reflex-difficulty-grid,
    .tg-options {
        gap: 14px;
    }

    .reflex-diff-card {
        min-height: 112px;
        padding: 18px 14px;
    }

    .reflex-diff-title {
        font-size: 1.24rem;
    }

    .tg-btn-option {
        min-height: 84px;
        padding: 18px 12px;
        font-size: 1.05rem;
    }

    .tg-shell {
        padding: 18px 16px 20px;
        gap: 18px;
    }

    .reflex-answer-reveal {
        letter-spacing: 0.12em;
    }
}

/* ====================================
   RESPONSIVE: TV / LARGE SCREENS (2K+)
   ==================================== */
@media (min-width: 1921px) {
    .container {
        max-width: 1600px;
    }

    .about-grid {
        gap: 60px;
    }

    .img-card {
        height: 500px;
    }

    .gallery-grid {
        column-count: 4;
        column-gap: 36px;
    }

    .modal-content {
        max-width: 1200px;
    }

    footer {
        padding: 80px 0;
    }
}

/* 4K TV */
@media (min-width: 2561px) {
    .container {
        max-width: 2200px;
    }

    .gallery-grid {
        column-count: 5;
    }

    .hero {
        min-height: 60vh;
    }
}

/* 
   ====================================

/* Class Studio Specific */
.studio-body {
    padding: 0 !important;
    overflow: hidden !important;
    height: 75vh !important;
    min-height: 500px !important;
}

.studio-layout {
    display: flex;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.08), transparent 24%),
        linear-gradient(180deg, #141414 0%, #101010 100%);
    touch-action: auto !important;
}

#studio-builder {
    position: relative;
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    min-width: 0;
    touch-action: auto !important;
}

.studio-builder-shell {
    display: grid;
    grid-template-columns: 88px 280px minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-width: 0;
}

.studio-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
}

.studio-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.studio-category-btn:hover,
.studio-category-btn.is-active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--category-color);
    color: #fff;
    transform: translateY(-1px);
}

.studio-category-btn i {
    font-size: 1.15rem;
    color: var(--category-color);
}

.studio-category-btn span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
}

.studio-library-panel,
.studio-canvas-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: rgba(16, 16, 16, 0.78);
}

.studio-library-panel {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    font-weight: 700;
}

.studio-panel-head span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.studio-mini-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: grid;
    place-items: center;
}

.studio-template-list {
    padding: 14px;
    display: grid;
    gap: 10px;
    overflow: auto;
}

.studio-template-card {
    display: grid;
    gap: 6px;
    justify-items: start;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    text-align: left;
}

.studio-template-card i {
    color: var(--studio-accent, #60a5fa);
}

.studio-template-card strong {
    font-size: 0.92rem;
}

.studio-template-card span {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.62);
}

.studio-canvas-panel {
    min-height: 0;
}

.studio-stack {
    padding: 14px;
    display: grid;
    gap: 12px;
    overflow: auto;
}

.studio-empty-state,
.studio-preview-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 180px;
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    color: rgba(255, 255, 255, 0.76);
}

.studio-empty-state i,
.studio-preview-empty i {
    font-size: 1.6rem;
    color: #60a5fa;
}

.studio-block-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.studio-block-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.studio-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #fff;
}

.studio-block-title span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
}

.studio-block-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.studio-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: grid;
    place-items: center;
}

.studio-icon-btn.danger {
    color: #fca5a5;
}

.studio-block-fields {
    display: grid;
    gap: 10px;
}

.studio-field {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.76);
}

.studio-field-inline {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.studio-field input,
.studio-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.48);
    color: #fff;
    padding: 11px 12px;
}

.studio-field textarea {
    min-height: 84px;
    resize: vertical;
}

.studio-field input[type="color"] {
    padding: 0;
    width: 54px;
    height: 38px;
    border-radius: 10px;
}

.studio-preview-panel {
    flex: 0 0 380px;
    width: 380px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
}

.studio-preview-page {
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 100%;
    padding: 20px;
}

#studio-stage {
    min-height: 100%;
    border-radius: 18px;
    overflow: auto;
    background: #111827;
    color: #e5e7eb;
}

.studio-preview-title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 3rem);
}

.studio-preview-paragraph {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: inherit;
}

.studio-preview-quote {
    margin: 0;
    padding: 14px 16px;
    border-left: 4px solid #60a5fa;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    line-height: 1.7;
}

.studio-preview-section {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-preview-section h2 {
    margin: 0 0 8px 0;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
}

.studio-preview-divider-wrap {
    display: grid;
    gap: 8px;
    place-items: center;
    padding: 8px 0;
}

.studio-preview-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.studio-preview-divider-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.58);
}

.studio-preview-badge {
    justify-self: start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.26);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
}

.studio-preview-button-wrap {
    display: flex;
}

.studio-preview-button {
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    font-weight: 700;
}

.studio-preview-figure {
    margin: 0;
}

.studio-preview-figure img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.studio-preview-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-preview-card h3 {
    margin: 0 0 8px 0;
}

.studio-preview-card p {
    margin: 0;
    line-height: 1.6;
}

.studio-preview-code,
.studio-preview-embed,
.studio-preview-security {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-preview-code-meta {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fbbf24;
}

.studio-preview-code pre,
.studio-preview-embed pre {
    margin: 0;
    overflow: auto;
    padding: 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.32);
    color: #f8fafc;
    font-size: 0.86rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.studio-preview-security {
    background: rgba(17, 24, 39, 0.95);
}

.studio-preview-security h3 {
    margin: 0;
    font-size: 1rem;
}

.studio-preview-security p {
    margin: 0;
    line-height: 1.6;
}

.studio-preview-security-badge {
    justify-self: start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.24);
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 700;
}

.studio-toast {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    display: grid;
    gap: 6px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(96, 165, 250, 0.26);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    color: #f8fafc;
}

.studio-toast strong {
    font-size: 0.98rem;
}

.studio-toast span {
    font-size: 0.86rem;
    color: rgba(248, 250, 252, 0.78);
    line-height: 1.5;
}

.studio-toast code {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fbbf24;
    font-size: 0.92rem;
    font-weight: 800;
    word-break: break-all;
}

@media (max-width: 1100px) {
    .studio-builder-shell {
        grid-template-columns: 80px 240px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .studio-layout {
        flex-direction: column;
    }

    .studio-builder-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .studio-body {
        height: auto !important;
        min-height: calc(100vh - 132px) !important;
        overflow: auto !important;
    }

    .studio-layout {
        height: auto;
        min-height: calc(100vh - 132px);
        overflow: auto;
    }

    .studio-rail {
        position: sticky;
        top: 0;
        z-index: 3;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        width: 100%;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .studio-category-btn {
        min-width: 0;
        width: 100%;
        padding: 12px 8px;
        border-radius: 12px;
        flex: 1 1 auto;
    }

    .studio-category-btn i {
        font-size: 1.05rem;
    }

    .studio-category-btn span {
        font-size: 0.72rem;
        line-height: 1.15;
    }

    .studio-library-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .studio-preview-panel {
        flex: 1 1 auto;
        width: 100%;
        height: 40%;
    }
}

@media (max-width: 700px) {
    .game-container#game-container-studio {
        overflow-y: auto;
    }

    .game-container#game-container-studio .game-header {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 10px;
        padding: 12px 12px 10px;
    }

    .game-container#game-container-studio .back-to-menu {
        order: 0;
        flex: 0 0 auto;
    }

    .game-container#game-container-studio .game-header h2 {
        order: 1;
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .game-container#game-container-studio .studio-actions {
        order: 2;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .game-container#game-container-studio .studio-actions .btn {
        width: 100%;
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.78rem;
        border-radius: 12px;
    }

    .game-container#game-container-studio .game-body {
        align-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 10px 10px 22px;
    }

    .game-container#game-container-studio .studio-body {
        height: auto !important;
        min-height: calc(100vh - 118px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .game-container#game-container-studio .studio-layout {
        min-height: calc(100vh - 118px);
        overflow-y: visible;
    }

    .game-container#game-container-studio .studio-rail {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border-bottom-width: 1px;
    }

    .game-container#game-container-studio .studio-category-btn {
        padding: 10px 8px;
        min-height: 76px;
    }

    .game-container#game-container-studio .studio-library-panel,
    .game-container#game-container-studio .studio-canvas-panel {
        min-height: 0;
    }

    .game-container#game-container-studio .studio-preview-panel {
        width: 100%;
        flex: 1 1 auto;
        height: auto;
        min-height: 260px;
    }

    .game-container#game-container-studio .studio-preview-page {
        padding: 14px;
    }

    .studio-toast {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* ==========================================================
   ANGKATAN 29 - SIGNAL REFRESH
   ========================================================== */
:root {
    --bg-primary: #07090d;
    --bg-secondary: #0d1118;
    --bg-tertiary: #121823;
    --bg-card: #10151d;
    --text-primary: #f5f7fb;
    --text-secondary: #b8c0cd;
    --text-muted: #768092;
    --accent: #43e8ff;
    --accent-dim: #22b8cc;
    --accent-glow: rgba(67, 232, 255, 0.24);
    --accent-secondary: #ff5c7a;
    --accent-tertiary: #c8ff54;
    --gradient-main: linear-gradient(135deg, #43e8ff 0%, #ff5c7a 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(67, 232, 255, 0.12), rgba(255, 92, 122, 0.08));
    --glass: rgba(255, 255, 255, 0.055);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-glow: 0 0 30px rgba(67, 232, 255, 0.18);
    --radius: 8px;
    --radius-md: 8px;
}

html,
body {
    min-height: 100%;
    overflow-y: visible;
    overscroll-behavior-y: auto;
}

body {
    background: #07090d;
}

main {
    position: relative;
    overflow: visible;
}

section {
    scroll-margin-top: 76px;
}

#navbar,
#navbar.scrolled {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nav-links a:hover,
.footer-link:hover {
    color: #43e8ff;
}

.hero {
    min-height: 100svh;
    height: auto;
    background:
        linear-gradient(90deg, rgba(7, 9, 13, 0.94), rgba(7, 9, 13, 0.38)),
        url('../gallery/kelas.jpg');
    background-size: cover;
    background-position: center 28%;
    overflow: clip;
}

.hero::after {
    height: 38%;
    background: linear-gradient(to top, #07090d 0%, rgba(7, 9, 13, 0) 100%);
}

.ekizr-style {
    min-height: 100svh;
    height: auto;
    padding-top: 72px;
}

.ekizr-welcome {
    color: #f5f7fb;
    text-shadow: 0 0 30px rgba(67, 232, 255, 0.2);
}

.ekizr-to,
.ekizr-hi {
    color: #f5f7fb;
}

.countdown-card,
#graduated-popup {
    display: none !important;
}

.mobile-stat-blue {
    color: #43e8ff;
}

.mobile-stat-pink {
    color: #ff5c7a;
}

.mobile-feature-instagram,
.mobile-feature-chat {
    background: #10151d;
    color: #f5f7fb;
    border-color: rgba(67, 232, 255, 0.28);
}

.about,
.anonymous-chat-section {
    background: #07090d;
}

.gallery {
    background: #0d1118;
}

.about-card,
.gallery-upload-panel,
.gallery-card-container,
.anonymous-chat-desktop .chat-feed,
.anonymous-chat-desktop .chat-composer {
    background: #10151d;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.section-title,
.about-card h3 {
    color: #f5f7fb;
}

.section-subtitle,
.gallery-subtitle,
.about-card p,
.class-stats {
    color: #b8c0cd;
}

.chat-kicker {
    color: #c8ff54;
}

.btn-primary,
.btn-request-nav {
    background: #ff5c7a;
    color: #07090d;
    border-color: #ff5c7a;
    box-shadow: 0 8px 22px rgba(255, 92, 122, 0.2);
}

.btn-primary:hover,
.btn-request-nav:hover {
    background: #43e8ff;
    border-color: #43e8ff;
    box-shadow: 0 12px 30px rgba(67, 232, 255, 0.24);
}

footer {
    background: #05070a;
    border-top-color: rgba(67, 232, 255, 0.12);
}

.footer-divider {
    background: rgba(67, 232, 255, 0.28);
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        background:
            linear-gradient(180deg, rgba(7, 9, 13, 0.46), rgba(7, 9, 13, 0.92)),
            url('../gallery/kelas.jpg');
        background-size: cover;
        background-position: center 20%;
    }

    .mobile-hero-shell {
        min-height: 100svh;
        padding-bottom: 38px;
    }

}

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

/* Project Viewer */
.project-viewer-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.09), transparent 24%),
        linear-gradient(180deg, #111111 0%, #0b0b0b 100%);
    color: #e5e7eb;
}

.project-viewer-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================
   ANGKATAN 29 - ONE NAV / NEW PALETTE
   ========================================================== */
:root {
    --bg-primary: #09090b;
    --bg-secondary: #101014;
    --bg-tertiary: #17171d;
    --bg-card: rgba(18, 18, 24, 0.82);
    --text-primary: #f7f6f2;
    --text-secondary: #c9c8c3;
    --text-muted: #85858e;
    --accent: #4b61ff;
    --accent-dim: #3548d4;
    --accent-glow: rgba(75, 97, 255, 0.28);
    --accent-secondary: #ff5a36;
    --accent-tertiary: #f7f6f2;
    --gradient-main: linear-gradient(135deg, #4b61ff 0%, #ff5a36 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(75, 97, 255, 0.13), rgba(255, 90, 54, 0.08));
    --glass: rgba(247, 246, 242, 0.055);
    --glass-border: rgba(247, 246, 242, 0.14);
    --shadow-glow: 0 0 34px rgba(75, 97, 255, 0.2);
}

html,
body {
    background: #09090b;
}

#navbar,
#navbar.scrolled {
    top: max(14px, env(safe-area-inset-top, 0px));
    left: 14px;
    width: calc(100% - 28px);
    padding: 0;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

#navbar .nav-container {
    width: min(100%, 1180px);
    min-height: 68px;
    padding: 9px 12px;
    border: 1px solid rgba(247, 246, 242, 0.16);
    border-radius: 999px;
    background: transparent;
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow:
        inset 0 1px 0 rgba(247, 246, 242, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.18);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#navbar.scrolled .nav-container {
    background: transparent;
    border-color: rgba(247, 246, 242, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(247, 246, 242, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.26);
}

#navbar .logo-img {
    width: 48px;
    height: 48px;
}

#navbar .nav-links {
    gap: 22px;
}

#navbar .nav-links a {
    color: #f7f6f2;
}

#navbar .nav-links a:hover,
.footer-link:hover {
    color: #8795ff;
}

.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(247, 246, 242, 0.16);
    border-radius: 50%;
    background: rgba(247, 246, 242, 0.06);
    color: #f7f6f2;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(247, 246, 242, 0.08);
}

.hero {
    min-height: 100svh;
    background:
        linear-gradient(90deg, rgba(9, 9, 11, 0.94), rgba(9, 9, 11, 0.28)),
        url('../gallery/kelas.jpg');
    background-size: cover;
    background-position: center 28%;
}

.hero::after {
    background: linear-gradient(to top, rgba(9, 9, 11, 0.98), rgba(9, 9, 11, 0));
}

.ekizr-welcome {
    color: #f7f6f2;
    text-shadow:
        0 0 34px rgba(75, 97, 255, 0.28),
        0 12px 44px rgba(0, 0, 0, 0.45);
}

.mobile-stat-blue {
    color: #7587ff;
}

.mobile-stat-pink {
    color: #ff7658;
}

.about,
.gallery,
.anonymous-chat-section {
    background: rgba(9, 9, 11, 0.76);
}

.gallery {
    background: rgba(16, 16, 20, 0.76);
}

.about-card,
.gallery-upload-panel,
.gallery-card-container,
.anonymous-chat-desktop .chat-feed,
.anonymous-chat-desktop .chat-composer {
    background: rgba(18, 18, 24, 0.82);
    border: 1px solid rgba(247, 246, 242, 0.12);
    border-radius: 8px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(247, 246, 242, 0.05);
}

.section-title,
.about-card h3 {
    color: #f7f6f2;
}

.section-subtitle,
.gallery-subtitle,
.about-card p,
.class-stats {
    color: #c9c8c3;
}

.chat-kicker {
    color: #8795ff;
}

.btn-primary,
.btn-request-nav {
    background: #4b61ff;
    color: #fff;
    border-color: #4b61ff;
    box-shadow: 0 12px 30px rgba(75, 97, 255, 0.24);
}

.btn-primary:hover,
.btn-request-nav:hover {
    background: #ff5a36;
    border-color: #ff5a36;
    box-shadow: 0 14px 34px rgba(255, 90, 54, 0.22);
}

.mobile-feature-instagram,
.mobile-feature-chat {
    background: rgba(18, 18, 24, 0.82);
    color: #f7f6f2;
    border-color: rgba(75, 97, 255, 0.28);
}

footer {
    background: rgba(7, 7, 9, 0.9);
    border-top-color: rgba(75, 97, 255, 0.18);
}

.footer-divider {
    background: rgba(75, 97, 255, 0.34);
}

.game-card-3d,
.game-card-3d:hover,
.teacher-img-3d,
.teacher-img-3d:hover {
    transform: none;
}

@media (max-width: 768px) {
    #navbar {
        display: block !important;
    }

    #navbar .nav-container {
        min-height: 66px;
        padding: 8px 10px;
    }

    #navbar .nav-links {
        display: none;
    }

    .nav-mobile-actions {
        display: flex;
    }

    #navbar .logo-img {
        width: 46px;
        height: 46px;
    }

    .mobile-hero-shell {
        padding-top: 104px;
    }

    .hero {
        background:
            linear-gradient(180deg, rgba(9, 9, 11, 0.32), rgba(9, 9, 11, 0.9)),
            url('../gallery/kelas.jpg');
        background-size: cover;
        background-position: center 20%;
    }

}

.project-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(12px);
}

.project-viewer-header h1 {
    margin: 0;
    font-size: 1rem;
}

.project-viewer-header small {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    margin-top: 2px;
}

.project-viewer-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    display: grid;
}

.project-viewer-frame {
    min-height: calc(100vh - 88px);
    border-radius: 0;
    background: transparent;
    border: 0;
    overflow: auto;
    padding: 0;
}

.project-viewer-empty {
    min-height: 60vh;
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.76);
}

.project-viewer-empty i {
    font-size: 1.8rem;
    color: #60a5fa;
}

.project-viewer-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.project-viewer-paragraph {
    margin: 0;
    line-height: 1.7;
}

.project-viewer-badge {
    justify-self: start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.26);
    color: #dbeafe;
    font-weight: 700;
    font-size: 0.8rem;
}

.project-viewer-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-viewer-frame .studio-preview-page {
    min-height: calc(100vh - 88px);
    padding: 24px;
}

.project-viewer-button {
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    font-weight: 700;
}

.project-viewer-figure img {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

@media (max-width: 720px) {
    .project-viewer-header {
        padding: 14px 16px;
    }

    .project-viewer-body {
        padding: 0;
    }

    .project-viewer-frame {
        min-height: calc(100vh - 84px);
        padding: 0;
    }

    .project-viewer-frame .studio-preview-page {
        min-height: calc(100vh - 84px);
        padding: 16px;
    }
}
