:root {
    --bg-0: #060920;
    --bg-1: #0a0f2e;
    --panel: rgba(14, 20, 50, 0.55);
    --panel-2: rgba(10, 15, 40, 0.7);
    --line: rgba(140, 160, 220, 0.12);
    --line-2: rgba(140, 160, 220, 0.18);
    --text-1: #f1f4fb;
    --text-2: rgba(241, 244, 251, 0.65);
    --text-3: rgba(241, 244, 251, 0.42);
    --gold: #f6d56d;
    --gold-soft: #d9b958;
    --electric: #8ab1ff;
    --green: #5cd4a7;
    --red: #f08a8a;
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.35);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-display: "Cinzel", serif;
    --font-body: "Host Grotesk", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text-1);
    background: var(--bg-0);
    background-image:
        radial-gradient(circle at 12% -8%, rgba(50, 70, 160, 0.32), transparent 45%),
        radial-gradient(circle at 88% 12%, rgba(140, 80, 220, 0.18), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(80, 60, 180, 0.18), transparent 55%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Ambient efektler kaldırıldı (performans) */

/* ============================================================ */
/* TOP BAR (sticky + blurlu + premium gradient line)            */
/* ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    background: linear-gradient(180deg, rgba(6, 9, 32, 0.85) 0%, rgba(6, 9, 32, 0.55) 100%);
    border-bottom: 1px solid var(--line);
}

.topbar::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 213, 109, 0.4), transparent);
    pointer-events: none;
}

.topbar-inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.brand:hover { opacity: 0.85; }

.brand-logo {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(246, 213, 109, 0.18));
    transition: filter 0.3s, transform 0.3s;
}

.brand:hover .brand-logo {
    filter: drop-shadow(0 6px 18px rgba(246, 213, 109, 0.35));
    transform: scale(1.02);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(160deg, var(--gold) 0%, var(--gold-soft) 100%);
    display: grid;
    place-items: center;
    color: #1a1100;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(246, 213, 109, 0.22);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--text-1);
}

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

.streak-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(246, 213, 109, 0.08);
    border: 1px solid rgba(246, 213, 109, 0.25);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.streak-mini i { font-size: 0.85em; }

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--line-2);
}

.user-pill-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric), #5b7fcc);
    color: #061830;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.user-pill-name {
    color: var(--text-1);
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(240, 138, 138, 0.05);
    border: 1px solid rgba(240, 138, 138, 0.22);
    color: var(--red);
    font-size: 0.78rem;
}

/* ============================================================ */
/* PAGE SHELL                                                   */
/* ============================================================ */
.page-shell {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

/* ============================================================ */
/* HERO (cinematic centered)                                    */
/* ============================================================ */
.hero-block {
    text-align: center;
    margin: 24px 0 40px;
    position: relative;
}

.hero-block::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 280px;
    height: 220px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(246, 213, 109, 0.12), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.16em;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(246, 213, 109, 0.06);
    border: 1px solid rgba(246, 213, 109, 0.22);
    backdrop-filter: blur(6px);
    text-transform: uppercase;
}

.hero-eyebrow i {
    color: var(--gold);
    font-size: 0.85em;
}

.hero-title {
    position: relative;
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--text-1);
    background: linear-gradient(180deg, #fff 0%, #e8edf8 55%, var(--gold) 115%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 30px rgba(246, 213, 109, 0.15);
}

.hero-subtitle {
    color: var(--text-2);
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    max-width: 560px;
    margin: 0 auto 26px;
    line-height: 1.5;
}

/* Stats: divider'lı yatay pill */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 12px 28px;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 70px;
}

.hero-stat strong {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--gold);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.hero-stat span {
    font-size: 0.62rem;
    color: var(--text-3);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, var(--line-2), transparent);
    flex-shrink: 0;
}

/* Mobil hero */
@media (max-width: 760px) {
    .hero-block { margin: 16px 0 32px; }
    .hero-eyebrow { font-size: 0.64rem; padding: 5px 12px; margin-bottom: 14px; }
    .hero-title { font-size: clamp(1.8rem, 9vw, 2.6rem); margin-bottom: 12px; letter-spacing: 0.02em; }
    .hero-subtitle { font-size: 0.88rem; margin-bottom: 20px; padding: 0 12px; }
    .hero-stats { padding: 10px 16px; gap: 12px; }
    .hero-stat { min-width: 56px; }
    .hero-stat strong { font-size: 1.2rem; }
    .hero-stat span { font-size: 0.55rem; letter-spacing: 0.12em; }
    .hero-divider { height: 22px; }
}

@media (max-width: 380px) {
    .hero-stats { gap: 8px; padding: 10px 12px; }
    .hero-stat { min-width: 50px; }
    .hero-stat strong { font-size: 1.05rem; }
    .hero-stat span { font-size: 0.5rem; }
}

/* ============================================================ */
/* FEATURED (cinematic full-bleed carousel)                     */
/* ============================================================ */
.featured {
    position: relative;
    margin-bottom: 36px;
}

.featured-track {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 360px;
    background: linear-gradient(135deg, #1a1f4a 0%, #0d0f2e 100%);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-md);
}

.feat-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
}

.feat-slide.is-active { opacity: 1; pointer-events: auto; }

.feat-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #0d0f2e;
}

.feat-bg:not(.has-image) {
    background-image: linear-gradient(135deg, var(--feat-from, #1d1a4a) 0%, var(--feat-to, #0a0e2a) 100%);
    display: grid;
    place-items: center;
}

.feat-bg-icon {
    font-size: 160px;
    color: rgba(246, 213, 109, 0.18);
    filter: blur(0.5px);
}

.feat-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 30%, rgba(6, 9, 32, 0.85) 75%, rgba(6, 9, 32, 0.96) 100%),
        linear-gradient(90deg, rgba(6, 9, 32, 0.7) 0%, rgba(6, 9, 32, 0.2) 50%, transparent 80%);
    pointer-events: none;
}

.feat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 36px 40px;
    max-width: 720px;
}

.feat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(6, 9, 32, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(246, 213, 109, 0.4);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.feat-tag i { font-size: 0.85em; }

.feat-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feat-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0 0 20px;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feat-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.feat-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.feat-meta-item strong { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.feat-meta-item i { color: var(--gold); opacity: 0.85; }

.feat-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    background: var(--gold);
    color: #1a1100;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 10px 30px rgba(246, 213, 109, 0.35);
}

.feat-cta:hover {
    background: var(--gold-soft);
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(246, 213, 109, 0.45);
}

@media (max-width: 760px) {
    .featured-track { min-height: 300px; }
    .feat-content { padding: 24px 22px; }
}

.featured-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.featured-dot {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-2);
    border: none;
    cursor: pointer;
    transition: background 0.2s, width 0.3s;
}

.featured-dot.is-active {
    background: var(--gold);
    width: 44px;
}

/* ============================================================ */
/* SCOPE BAR (Aktif / Geçmiş)                                   */
/* ============================================================ */
.scope-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 16px;
}

.scope-tabs {
    display: inline-flex;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}

.scope-tab {
    background: transparent;
    border: none;
    color: var(--text-3);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.scope-tab:hover { color: var(--text-1); }
.scope-tab.is-active {
    background: rgba(246, 213, 109, 0.15);
    color: var(--gold);
}

.scope-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
    letter-spacing: 0.12em;
}

/* ============================================================ */
/* BENTO GRID                                                   */
/* ============================================================ */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    gap: 16px;
}

@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
    .bento { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Üst sıra: 1 büyük sol (6 col × 2 satır) + 2 medium sağda alt alta (6 col × 1 satır × 2 adet)
   Sonraki sıralar: her satırda 3 normal kart (4 col × 3 = 12) */
.bento > .ev-card { grid-column: span 4; }
.bento > .ev-card.is-large  { grid-column: span 6; grid-row: span 2; }
.bento > .ev-card.is-medium { grid-column: span 6; }
.bento > .ev-card.is-tall   { grid-column: span 4; grid-row: span 2; }
.bento > .ev-card.is-wide   { grid-column: span 8; }

/* Side widget'lar (streak, kazananlar) */
.bento > .bento-widget { grid-column: span 4; }
.bento > .bento-widget.is-tall { grid-row: span 2; }
.bento > .widget-winners-rolling { grid-column: span 8; }
.bento > .widget-winners-rolling.is-full { grid-column: span 12; }

/* Tablet (≤1024px): 6 col grid
   Üst: is-large tam satır × 1 row (6), is-medium yan yana (3+3) ikinci satırda */
@media (max-width: 1024px) {
    .bento > .ev-card           { grid-column: span 3; }
    .bento > .ev-card.is-large  { grid-column: span 6; grid-row: span 1; }
    .bento > .ev-card.is-medium { grid-column: span 3; }
    .bento > .ev-card.is-tall   { grid-column: span 3; grid-row: span 2; }
    .bento > .ev-card.is-wide   { grid-column: span 6; }
    .bento > .bento-widget                  { grid-column: span 6; }
    .bento > .widget-winners-rolling        { grid-column: span 6; }
    .bento > .widget-winners-rolling.is-full{ grid-column: span 6; }
}

/* Mobil (≤640px): 2 col grid, hepsi tam genişlik */
@media (max-width: 640px) {
    .bento > .ev-card,
    .bento > .ev-card.is-large,
    .bento > .ev-card.is-medium,
    .bento > .ev-card.is-tall,
    .bento > .ev-card.is-wide,
    .bento > .bento-widget {
        grid-column: span 2;
        grid-row: auto;
    }
}

.loading-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-3);
    font-size: 0.9rem;
}

/* ============================================================ */
/* EVENT CARD (cinematic — cover full + bottom overlay)         */
/* ============================================================ */
.ev-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
    border: 1px solid var(--line);
    isolation: isolate;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.ev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(246, 213, 109, 0.35);
}

.ev-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #0a0e2a;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

.ev-card:hover .ev-cover { transform: scale(1.06); }

.ev-cover-placeholder {
    background: linear-gradient(135deg, var(--strip-from, #1d1a4a) 0%, var(--strip-to, #0a0e2a) 100%);
    display: grid;
    place-items: center;
}

.ev-cover-placeholder i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.08);
    transition: color 0.3s, transform 0.3s;
}

.ev-card:hover .ev-cover-placeholder i {
    color: rgba(246, 213, 109, 0.18);
    transform: scale(1.1);
}

/* Karartma overlay — alt 60% siyaha doğru gradient */
.ev-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, transparent 25%, rgba(6, 9, 32, 0.55) 60%, rgba(6, 9, 32, 0.95) 100%),
        linear-gradient(180deg, rgba(6, 9, 32, 0.4) 0%, transparent 35%);
    pointer-events: none;
}

/* Üst etiketler — absolute */
.ev-card .ev-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6, 9, 32, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ev-card .ev-tag i { font-size: 0.85em; opacity: 0.85; }

.ev-card .ev-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6, 9, 32, 0.8);
    backdrop-filter: blur(8px);
}

.ev-card .ev-status.is-active   { color: var(--green); border: 1px solid rgba(92, 212, 167, 0.4); }
.ev-card .ev-status.is-ended    { color: var(--text-2); border: 1px solid rgba(255, 255, 255, 0.1); }
.ev-card .ev-status.is-revealed { color: var(--gold); border: 1px solid rgba(246, 213, 109, 0.4); }

/* Alt content — overlay'in üzerinde */
.ev-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 14px 16px 16px;
}

.ev-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-card.is-large .ev-title { font-size: 1.5rem; -webkit-line-clamp: 3; }

.ev-desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ev-card.is-large .ev-desc { font-size: 0.92rem; -webkit-line-clamp: 3; }
.ev-card:not(.is-large) .ev-desc { display: none; }

.ev-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ev-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.ev-reward i { font-size: 0.78em; opacity: 0.85; }

.ev-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.ev-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}

.ev-meta-item i { font-size: 0.85em; opacity: 0.85; }
.ev-meta-item.is-urgent { color: #ffaaaa; }
.ev-meta-item.is-revealed { color: var(--gold); }

/* Tip bazlı placeholder gradient renkleri */
.ev-card[data-type="auto_answer"]   { --strip-from: #2d2a14; --strip-to: #0a0e2a; }
.ev-card[data-type="prediction"]    { --strip-from: #1a2548; --strip-to: #0a0e2a; }
.ev-card[data-type="manual_review"] { --strip-from: #2a1d4a; --strip-to: #0a0e2a; }
.ev-card[data-type="spot_diff"]     { --strip-from: #14352a; --strip-to: #0a0e2a; }
.ev-card[data-type="word_search"]   { --strip-from: #3a2510; --strip-to: #0a0e2a; }
.ev-card[data-type="quiz"]          { --strip-from: #3a1a1a; --strip-to: #0a0e2a; }
.ev-card[data-type="daily_word"]    { --strip-from: #1c2810; --strip-to: #0a0e2a; }
.ev-card[data-type="reflex"]        { --strip-from: #3a2810; --strip-to: #0a0e2a; }
.ev-card[data-type="memory"]        { --strip-from: #0e2a32; --strip-to: #0a0e2a; }

/* Large kart — daha fazla bilgi gözüksün */
.ev-card.is-large { min-height: 220px; }
.ev-card.is-large .ev-content { padding: 16px 20px 18px; }
.ev-card.is-large .ev-overlay {
    background:
        linear-gradient(180deg, transparent 35%, rgba(6, 9, 32, 0.6) 65%, rgba(6, 9, 32, 0.96) 100%),
        linear-gradient(180deg, rgba(6, 9, 32, 0.4) 0%, transparent 35%);
}

/* Medium kartlar — ilk satırda is-large'in yanında, alt alta */
.ev-card.is-medium { min-height: 200px; }

/* ============================================================ */
/* BENTO WIDGETS (Streak + Kazananlar — etkinlik kartlarıyla    */
/* aynı düzlemde duran "side panel"ler)                         */
/* ============================================================ */
.bento-widget {
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    background: var(--panel);
    overflow: hidden;
    min-width: 0;
}

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.widget-title i { color: var(--gold); font-size: 0.95em; }

/* Streak widget */
.widget-streak {
    background: linear-gradient(140deg, rgba(246, 213, 109, 0.08) 0%, rgba(255, 154, 0, 0.04) 100%);
    border-color: rgba(246, 213, 109, 0.22);
    gap: 10px;
}

.widget-streak.is-bonus-ready { border-color: rgba(246, 213, 109, 0.5); box-shadow: 0 0 24px rgba(246, 213, 109, 0.15); }

.widget-streak .widget-head {
    align-items: center;
}

.streak-num-inline {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.streak-num-inline small {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-3);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

.streak-progress-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.streak-dot {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(140, 160, 220, 0.12);
}

.streak-dot.is-filled { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.streak-dot.is-bonus { background: linear-gradient(90deg, var(--gold), #f59e0b); box-shadow: 0 0 10px rgba(246, 213, 109, 0.4); }

.streak-msg {
    font-size: 0.74rem;
    color: var(--text-2);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.streak-msg strong { color: var(--gold); font-weight: 600; }

/* Yatay kayan kazananlar bandı (streak yanında) */
.widget-winners-rolling {
    overflow: hidden;
}

.winners-rolling-track {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    animation: winnersScroll 50s linear infinite;
}

.widget-winners-rolling:hover .winners-rolling-track {
    animation-play-state: paused;
}

@keyframes winnersScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.winner-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    background: rgba(6, 9, 32, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 0.78rem;
}

.winner-chip-icon-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(246, 213, 109, 0.12);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.winner-chip-name {
    color: var(--text-1);
    font-weight: 500;
}

.winner-chip-prize {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding-left: 8px;
    border-left: 1px solid var(--line);
    white-space: nowrap;
}

/* Kazananlar widget'ı (eski liste — şu an kullanılmıyor ama stilleri kalsın) */
.widget-winners ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.widget-winners li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(6, 9, 32, 0.4);
    font-size: 0.82rem;
    border-left: 2px solid transparent;
}

.widget-winners li.is-fresh { border-left-color: var(--gold); }

.win-rank {
    font-family: var(--font-display);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.8rem;
    width: 18px;
    text-align: center;
    opacity: 0.7;
}

.win-name {
    flex: 1;
    color: var(--text-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.win-prize {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ============================================================ */
/* EMPTY STATE & FOOTER                                         */
/* ============================================================ */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-3);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
}

.empty-state i { font-size: 36px; color: var(--gold); margin-bottom: 14px; opacity: 0.55; }
.empty-state h3 { font-family: var(--font-display); margin: 0 0 6px; color: var(--text-1); font-size: 1.1rem; letter-spacing: 0.05em; }
.empty-state p { font-size: 0.88rem; margin: 0; }

.page-foot {
    text-align: center;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    margin-top: 56px;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    letter-spacing: 0.18em;
}

/* ============================================================ */
/* DETAY SAYFASI (event.php) — değişmedi                        */
/* ============================================================ */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: 0.82rem;
    text-decoration: none;
    margin: 20px 0 16px;
    transition: color 0.2s;
}

.back-link:hover { color: var(--gold); }

/* ============================================================ */
/* EVENT.PHP: cinematic hero                                    */
/* ============================================================ */
.event-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 320px;
    display: flex;
    align-items: stretch;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.event-hero-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #0a0e2a;
    z-index: 0;
}

.event-hero-cover-placeholder {
    background: linear-gradient(135deg, #1d1a4a 0%, #0a0e2a 100%);
    display: grid;
    place-items: center;
}

.event-hero-cover-placeholder i {
    font-size: 180px;
    color: rgba(246, 213, 109, 0.1);
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, transparent 25%, rgba(6, 9, 32, 0.55) 60%, rgba(6, 9, 32, 0.95) 100%),
        linear-gradient(90deg, rgba(6, 9, 32, 0.6) 0%, rgba(6, 9, 32, 0.15) 50%, transparent 80%);
    pointer-events: none;
}

.event-hero-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 32px 36px 30px;
    max-width: 760px;
}

.event-hero-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.event-hero-tag,
.event-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(6, 9, 32, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.event-hero-tag { color: var(--gold); border-color: rgba(246, 213, 109, 0.4); }
.event-hero-tag i { font-size: 0.85em; }

.event-hero-status.status-active   { color: var(--green); border-color: rgba(92, 212, 167, 0.4); }
.event-hero-status.status-ended    { color: var(--text-2); }
.event-hero-status.status-revealed { color: var(--gold); border-color: rgba(246, 213, 109, 0.4); }

.event-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.event-hero-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0 0 20px;
    max-width: 640px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}

.ehm-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-variant-numeric: tabular-nums;
}

.ehm-item i { color: var(--gold); opacity: 0.9; font-size: 0.85em; }
.ehm-item.ehm-gold { color: var(--gold); font-weight: 700; font-size: 1rem; }
.ehm-item.ehm-gold i { opacity: 1; }

@media (max-width: 760px) {
    .event-hero { min-height: 260px; border-radius: var(--radius-lg); }
    .event-hero-content { padding: 22px 20px 20px; }
    .event-hero-title { font-size: clamp(1.4rem, 6vw, 2rem); }
    .event-hero-desc { font-size: 0.9rem; -webkit-line-clamp: 3; }
    .event-hero-meta { gap: 10px 16px; }
    .ehm-item { font-size: 0.8rem; }
    .ehm-item.ehm-gold { font-size: 0.92rem; }
}

/* ============================================================ */
/* EVENT.PHP: 2-col grid (oyun + sidebar)                       */
/* ============================================================ */
.event-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 960px) {
    .event-content-grid { grid-template-columns: 1fr; gap: 18px; }
}

.event-main { min-width: 0; }

.event-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 84px;
    min-width: 0;
}

@media (max-width: 960px) {
    .event-sidebar { position: static; }
}

/* Sidebar kartlar */
.sb-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    backdrop-filter: blur(8px);
}

.sb-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.sb-card-head i { color: var(--gold); font-size: 0.9em; }

/* Sidebar stats */
.sb-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sb-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.sb-stat strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.sb-stat strong.gold { color: var(--gold); }

.sb-stat span {
    font-size: 0.6rem;
    color: var(--text-3);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sb-extra {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--text-2);
    text-align: center;
}

.sb-extra-label { color: var(--text-3); margin-right: 4px; }
.sb-extra strong { color: var(--text-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-extra small { color: var(--gold); margin-left: 2px; font-size: 0.85em; }
.sb-extra-row { margin-top: 6px; font-size: 0.78rem; }

/* Sidebar kazananlar */
.sb-winners {
    background: linear-gradient(135deg, rgba(246, 213, 109, 0.06), transparent 70%);
    border-color: rgba(246, 213, 109, 0.2);
}

.sb-winners ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sb-winners li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(6, 9, 32, 0.4);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

.sb-winner-rank {
    width: 18px;
    text-align: center;
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    opacity: 0.7;
}

.sb-winner-name { flex: 1; color: var(--text-1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-winner-time { color: var(--text-3); font-family: var(--font-mono); font-size: 0.7rem; }

/* Sidebar geçmiş denemelerim */
.sb-history details { padding: 0; }

.sb-history summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
    list-style: none;
    margin-bottom: 12px;
}

.sb-history summary::-webkit-details-marker { display: none; }
.sb-history summary i:first-child { color: var(--gold); font-size: 0.9em; }
.sb-history summary::after {
    content: "▾";
    margin-left: auto;
    color: var(--text-3);
    transition: transform 0.2s;
}

.sb-history details[open] summary::after { transform: rotate(180deg); }

.sb-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.sb-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(6, 9, 32, 0.4);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.sb-entry i { width: 14px; flex-shrink: 0; }
.sb-entry-answer {
    flex: 1;
    color: var(--text-2);
    font-family: var(--font-mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sb-entry-time { color: var(--text-3); font-family: var(--font-mono); font-size: 0.7rem; flex-shrink: 0; }

.sb-entry-win { background: rgba(246, 213, 109, 0.07); border-left: 2px solid var(--gold); }
.sb-entry-win i, .sb-entry-win .sb-entry-answer { color: var(--gold); }
.sb-entry-correct i { color: var(--green); }
.sb-entry-pending i { color: var(--text-3); }
.sb-entry-wrong i { color: var(--red); }
.sb-entry-wrong .sb-entry-answer { text-decoration: line-through; opacity: 0.6; }

/* Eski .event-detail-grid (artık event.php'de kullanılmıyor — uyumluluk için bırakıldı) */
.event-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

@media (max-width: 880px) {
    .event-detail-grid { grid-template-columns: 1fr; }
}

.detail-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.detail-panel + .detail-panel { margin-top: 18px; }

.detail-head {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.detail-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(138, 177, 255, 0.1);
    border: 1px solid rgba(138, 177, 255, 0.22);
    color: var(--electric);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: #1a1100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.detail-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 700;
    color: var(--text-1);
    margin: 0;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.detail-desc {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.meta-item { background: var(--panel-2); padding: 14px 16px; }
.meta-label { display: block; font-size: 0.65rem; color: var(--text-3); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.meta-value { font-size: 0.95rem; font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; }
.meta-value.gold { color: var(--gold); }
.meta-value i { font-size: 0.85em; margin-right: 4px; }
.meta-value.status-active { color: var(--green); }
.meta-value.status-ended { color: var(--text-2); }
.meta-value.status-revealed { color: var(--gold); }

.event-play-area { padding: 0; }

.puzzle-cover {
    text-align: center;
    padding: 28px 18px;
    margin-bottom: 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(150deg, #141a40 0%, #0a0f2e 100%);
    border: 1px solid rgba(246, 213, 109, 0.18);
}

.puzzle-cover-label { display: block; font-size: 0.62rem; color: var(--gold); letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 14px; }
.puzzle-cover-text {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.32em;
    color: var(--gold);
    word-break: break-all;
    transition: text-shadow 0.4s ease-out;
}
.puzzle-cover-text.is-locked {
    text-shadow: 0 0 28px rgba(246, 213, 109, 0.45);
    animation: puzzleLockFlash 0.5s ease-out;
}
@keyframes puzzleLockFlash {
    0%   { text-shadow: 0 0 0 rgba(246, 213, 109, 0); transform: scale(1.04); }
    50%  { text-shadow: 0 0 50px rgba(246, 213, 109, 0.8); transform: scale(1.02); }
    100% { text-shadow: 0 0 28px rgba(246, 213, 109, 0.45); transform: scale(1); }
}

.event-question { color: var(--text-1); font-size: 1rem; line-height: 1.6; margin: 0 0 14px; }
.event-question-empty { color: var(--text-3); font-size: 0.85rem; }

.answer-number-wrap { position: relative; display: flex; align-items: stretch; }
.answer-number { flex: 1; text-align: center; font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; -moz-appearance: textfield; }
.answer-number::-webkit-outer-spin-button, .answer-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.answer-unit { display: inline-flex; align-items: center; padding: 0 16px; background: rgba(6, 9, 32, 0.6); border: 1px solid var(--line-2); border-left: none; border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.answer-number-wrap .answer-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.reveal-block { display: flex; flex-direction: column; gap: 18px; }
.reveal-target { text-align: center; padding: 28px 18px; border-radius: var(--radius-md); background: linear-gradient(150deg, #141a40 0%, #0a0f2e 100%); border: 1px solid rgba(246, 213, 109, 0.28); }
.reveal-label { display: block; font-size: 0.65rem; color: var(--gold); letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 12px; }
.reveal-value { font-family: var(--font-mono); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.reveal-value small { font-size: 0.5em; margin-left: 6px; color: var(--text-2); font-weight: 500; }

.reveal-winners { background: rgba(6, 9, 32, 0.4); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; }
.reveal-winners-label { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px; }
.reveal-winners ul { list-style: none; padding: 0; margin: 0; }
.reveal-winners li { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.reveal-winners li:last-child { border-bottom: none; }
.winner-name { color: var(--text-1); }
.winner-answer { font-family: var(--font-mono); color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

.event-instructions { background: rgba(138, 177, 255, 0.06); border: 1px solid rgba(138, 177, 255, 0.18); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 18px; }
.event-instructions-label { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; color: var(--electric); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.event-instructions p { margin: 0; color: var(--text-2); font-size: 0.9rem; line-height: 1.55; }

.answer-textarea { text-align: left; letter-spacing: normal; font-size: 0.95rem; min-height: 80px; resize: vertical; font-family: var(--font-body); line-height: 1.5; }
.answer-label .req { color: var(--red); font-size: 0.78em; margin-left: 4px; font-weight: 500; }
.answer-label .opt { color: var(--text-3); font-size: 0.78em; margin-left: 4px; font-weight: 400; }

.file-drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius-md); padding: 14px; background: rgba(6, 9, 32, 0.4); cursor: pointer; transition: border-color 0.2s, background 0.2s; position: relative; overflow: hidden; }
.file-drop:hover, .file-drop.is-drag { border-color: rgba(246, 213, 109, 0.45); background: rgba(6, 9, 32, 0.6); }
.file-drop::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(110deg, transparent 30%, rgba(246, 213, 109, 0.18) 50%, transparent 70%);
    background-size: 200% 100%;
    background-position: 100% 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.file-drop:hover::before, .file-drop.is-drag::before {
    opacity: 1;
    animation: fileNeonSweep 1.6s linear infinite;
}
@keyframes fileNeonSweep {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Typewriter cursor */
.tw-text { display: inline; }
.tw-text::after {
    content: "▍";
    color: var(--gold);
    animation: twBlink 1s steps(1) infinite;
}
.tw-text.is-done::after { content: ""; }
@keyframes twBlink { 50% { opacity: 0; } }
.file-drop-prompt { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; color: var(--text-3); font-size: 0.88rem; text-align: center; }
.file-drop-prompt i { font-size: 28px; color: var(--gold); opacity: 0.7; }
.file-drop-preview { position: relative; display: flex; justify-content: center; }
.file-drop-preview img { max-width: 100%; max-height: 240px; border-radius: var(--radius-sm); object-fit: contain; }
.file-drop-remove { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #1a0000; border: 2px solid var(--bg-0); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: transform 0.15s; }
.file-drop-remove:hover { transform: scale(1.1); }

.play-status { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); margin-bottom: 18px; font-size: 0.9rem; }
.play-status i { font-size: 18px; flex: 0 0 auto; margin-top: 1px; }
.play-status p { margin: 0; line-height: 1.5; }
.play-status strong { font-weight: 600; }
.play-status-pending { background: rgba(138, 177, 255, 0.08); border: 1px solid rgba(138, 177, 255, 0.22); color: var(--electric); }
.play-status-approved { background: rgba(92, 212, 167, 0.07); border: 1px solid rgba(92, 212, 167, 0.22); color: var(--green); }
.play-status-rejected { background: rgba(240, 138, 138, 0.07); border: 1px solid rgba(240, 138, 138, 0.22); color: var(--red); }

.spot-game { display: flex; flex-direction: column; gap: 12px; }

.spot-pair {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 800px;
    margin: 0 auto;
    align-items: stretch;
}

.spot-pair-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.spot-pair-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-3);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.spot-pair-active .spot-pair-label { color: var(--gold); }
.spot-pair-active .spot-pair-label i { color: var(--gold); }

.spot-pair-img,
.spot-pair-active .spot-game-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: #0a0e2a;
    line-height: 0;
}

.spot-pair-img img {
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.spot-game-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: rgba(6, 9, 32, 0.5); border: 1px solid var(--line); border-radius: var(--radius-md); }
.spot-progress { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-2); }
.spot-progress i { color: var(--gold); opacity: 0.8; }
.spot-progress strong { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.spot-mini-btn { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.78rem; cursor: pointer; transition: all 0.2s; }
.spot-mini-btn:hover { color: var(--gold); border-color: rgba(246, 213, 109, 0.4); }
.spot-game-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-2);
    max-width: 100%;
    align-self: center;
    background: #0a0e2a;
}
.spot-game-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(138, 177, 255, 0.95), transparent);
    box-shadow: 0 0 24px rgba(138, 177, 255, 0.7);
    animation: spotScanLine 1.6s ease-out 0.3s forwards;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}
@keyframes spotScanLine {
    0%   { top: 0; opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.spot-game-wrap img { display: block; max-width: 100%; height: auto; cursor: crosshair; user-select: none; -webkit-user-drag: none; }
.spot-game-wrap canvas { position: absolute; inset: 0; pointer-events: none; width: 100% !important; height: 100% !important; }

.ws-game { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: start; }
.ws-grid { display: grid; gap: 4px; user-select: none; touch-action: none; background: rgba(6, 9, 32, 0.5); padding: 10px; border-radius: var(--radius-md); border: 1px solid var(--line-2); }
.ws-cell {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 1;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text-1);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1.15rem);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    user-select: none;
    animation: wsCellPop 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 26ms);
}
@keyframes wsCellPop {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}
.ws-cell.ws-active { background: rgba(246, 213, 109, 0.3); border-color: var(--gold); color: var(--gold); }
.ws-cell.ws-found { background: rgba(92, 212, 167, 0.2); border-color: var(--green); color: var(--green); }
.ws-cell.ws-found.ws-active { background: rgba(246, 213, 109, 0.35); border-color: var(--gold); }
.ws-side { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: rgba(6, 9, 32, 0.4); border: 1px solid var(--line); border-radius: var(--radius-md); }
.ws-side-head { font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.18em; text-transform: uppercase; }
.ws-word-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.ws-word-list li { padding: 6px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-2); transition: all 0.2s; font-family: var(--font-display); letter-spacing: 0.06em; }
.ws-word-list li.ws-word-found { background: rgba(92, 212, 167, 0.12); border-color: rgba(92, 212, 167, 0.3); color: var(--green); text-decoration: line-through; text-decoration-color: rgba(92, 212, 167, 0.5); }
.ws-progress { text-align: center; color: var(--text-2); font-size: 0.95rem; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ws-progress strong { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.2rem; }

@media (max-width: 700px) {
    .ws-game { grid-template-columns: 1fr; }
    .ws-side { order: -1; }
    .ws-word-list { flex-direction: row; flex-wrap: wrap; max-height: none; }
    .ws-word-list li { flex: 0 0 auto; }
}

.quiz-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; background: rgba(6, 9, 32, 0.5); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 0.85rem; color: var(--text-2); }
.quiz-meta strong { color: var(--text-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.quiz-timer-label strong { color: var(--gold); font-family: var(--font-display); letter-spacing: 0.06em; }
.quiz-timer-label strong.is-urgent { color: var(--red); animation: timerPulse 0.6s ease-in-out infinite; }
@keyframes timerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.quiz-form { display: flex; flex-direction: column; gap: 16px; }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.quiz-progress-bar { flex: 1; height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.quiz-progress-bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); border-radius: 999px; transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 0 12px rgba(246, 213, 109, 0.35); }
.quiz-progress-text { font-family: var(--font-display); font-size: 0.9rem; color: var(--text-2); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.quiz-progress-text strong { color: var(--gold); font-size: 1.05em; margin-right: 1px; }

.quiz-question { background: rgba(6, 9, 32, 0.4); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; display: none; animation: quizSlideIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.quiz-question.is-active { display: block; }
@keyframes quizSlideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.quiz-question.is-locked .quiz-option { cursor: default !important; }
.quiz-actions { display: flex; justify-content: flex-end; }
.quiz-actions .answer-submit { width: auto; min-width: 200px; }
.quiz-actions .answer-submit i:first-child { margin-right: 6px; }
.quiz-actions .answer-submit i:last-child { margin-left: 6px; margin-right: 0; }
.quiz-next-btn { background: var(--gold); }
.quiz-question-num { font-size: 0.65rem; color: var(--text-3); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.quiz-question-text { color: var(--text-1); font-size: 1rem; line-height: 1.5; margin-bottom: 14px; font-weight: 500; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(6, 9, 32, 0.6); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; user-select: none; }
.quiz-option:hover { border-color: rgba(246, 213, 109, 0.4); background: rgba(6, 9, 32, 0.85); }
.quiz-option.is-selected { background: rgba(246, 213, 109, 0.12); border-color: var(--gold); }
.quiz-option.is-correct { background: rgba(92, 212, 167, 0.15); border-color: var(--green); animation: quizCorrectPulse 0.6s ease-out; }
.quiz-option.is-wrong { background: rgba(240, 138, 138, 0.12); border-color: var(--red); animation: quizWrongShake 0.4s ease-out; }
@keyframes quizCorrectPulse {
    0%   { box-shadow: 0 0 0 0 rgba(92, 212, 167, 0.6); }
    50%  { box-shadow: 0 0 0 14px rgba(92, 212, 167, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 212, 167, 0); }
}
@keyframes quizWrongShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.quiz-option-letter { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.quiz-option.is-selected .quiz-option-letter { background: var(--gold); color: #1a1100; border-color: var(--gold); }
.quiz-option.is-correct .quiz-option-letter { background: var(--green); color: #062817; border-color: var(--green); }
.quiz-option.is-wrong .quiz-option-letter { background: var(--red); color: #2a0d0d; border-color: var(--red); }
.quiz-option-text { flex: 1; color: var(--text-1); font-size: 0.9rem; line-height: 1.4; }
.quiz-explanation { margin-top: 12px; padding: 10px 12px; background: rgba(138, 177, 255, 0.06); border-left: 2px solid var(--electric); border-radius: var(--radius-sm); color: var(--text-2); font-size: 0.85rem; line-height: 1.5; }
.quiz-explanation i { color: var(--electric); margin-right: 6px; font-size: 0.85em; }

@media (max-width: 600px) { .quiz-options { grid-template-columns: 1fr; } .quiz-meta { font-size: 0.78rem; } }

.dw-game { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dw-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.dw-category { padding: 4px 12px; border-radius: 999px; background: rgba(138, 177, 255, 0.1); border: 1px solid rgba(138, 177, 255, 0.22); color: var(--electric); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.dw-hint { font-size: 0.85rem; color: var(--text-2); }
.dw-hint i { color: var(--gold); margin-right: 4px; }
.dw-board { display: flex; flex-direction: column; gap: 6px; }
.dw-row { display: flex; gap: 6px; justify-content: center; }
.dw-tile {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(6, 9, 32, 0.6);
    border: 2px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s;
    animation: dwTilePop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes dwTilePop {
    0% { opacity: 0; transform: scale(0.7) translateY(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.dw-tile.dw-filled { border-color: var(--gold); transform: scale(1.04); }
.dw-tile.dw-flip { animation: dwFlip 0.5s ease-in-out; }
@keyframes dwFlip { 0%, 100% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } }
.dw-tile.dw-correct { background: var(--green); border-color: var(--green); color: #062817; }
.dw-tile.dw-present { background: #d9b958; border-color: #d9b958; color: #1a1100; }
.dw-tile.dw-absent  { background: rgba(140, 160, 220, 0.15); border-color: var(--line-2); color: var(--text-3); }
.dw-keyboard { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; width: 100%; max-width: 540px; }
.dw-keyrow { display: flex; gap: 4px; justify-content: center; }
.dw-key {
    flex: 1; min-width: 30px; height: 46px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text-1);
    font-family: var(--font-display);
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
    animation: dwKeyUp 0.35s ease-out backwards;
    animation-delay: calc(var(--i, 0) * 14ms + 380ms);
}
@keyframes dwKeyUp {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}
.dw-key:hover { background: rgba(246, 213, 109, 0.15); border-color: var(--gold); }
.dw-key:active { transform: translateY(1px); }
.dw-key-wide { flex: 1.5; font-size: 0.78rem; }
.dw-key-enter { background: var(--gold); color: #1a1100; border-color: var(--gold); }
.dw-key-correct { background: var(--green); color: #062817; border-color: var(--green); }
.dw-key-present { background: #d9b958; color: #1a1100; border-color: #d9b958; }
.dw-key-absent  { background: rgba(140, 160, 220, 0.08); color: var(--text-3); border-color: var(--line); }
@media (max-width: 600px) {
    .dw-tile { width: 44px; height: 44px; font-size: 1.2rem; }
    .dw-key { height: 40px; font-size: 0.85rem; min-width: 26px; }
    .dw-key-wide { font-size: 0.7rem; }
}

.reflex-game { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.reflex-progress { font-family: var(--font-display); font-size: 0.85rem; color: var(--text-2); letter-spacing: 0.16em; text-transform: uppercase; }
.reflex-progress strong { color: var(--gold); font-size: 1.3em; margin-right: 2px; }
.reflex-arena { width: 100%; min-height: 220px; border-radius: var(--radius-md); background: linear-gradient(150deg, #131a40 0%, #0a0f2e 100%); border: 2px solid var(--line-2); cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: center; transition: all 0.15s; position: relative; overflow: hidden; }
.reflex-arena:hover { border-color: rgba(246, 213, 109, 0.4); }
.reflex-arena.is-waiting { background: linear-gradient(150deg, #2a1d4a 0%, #170d2a 100%); border-color: rgba(138, 177, 255, 0.4); }
.reflex-arena.is-ready { background: linear-gradient(150deg, #f6d56d 0%, #d9b958 100%); border-color: var(--gold); animation: reflexFlash 0.15s ease-out; }
.reflex-arena.is-ready .reflex-message { color: #1a1100; }
@keyframes reflexFlash { 0% { background: #fff; transform: scale(1.02); } 100% { background: linear-gradient(150deg, #f6d56d 0%, #d9b958 100%); transform: scale(1); } }
.reflex-arena.is-failed { background: linear-gradient(150deg, #4a1a1a 0%, #2a0d0d 100%); border-color: var(--red); }
.reflex-arena.is-done { background: linear-gradient(150deg, rgba(92, 212, 167, 0.15) 0%, rgba(20, 50, 35, 0.4) 100%); border-color: var(--green); cursor: default; }
.reflex-message { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-1); text-align: center; }
.reflex-screen-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle at center, rgba(255, 245, 200, 0.55) 0%, rgba(246, 213, 109, 0.35) 30%, transparent 70%);
    animation: reflexScreenFlash 0.4s ease-out forwards;
    will-change: opacity;
}
@keyframes reflexScreenFlash {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    100% { opacity: 0; }
}

.reflex-message i { font-size: 48px; color: var(--gold); }
.reflex-arena:not(.is-waiting):not(.is-ready):not(.is-failed):not(.is-done) .reflex-message i {
    animation: reflexIdlePulse 1.6s ease-in-out infinite;
}
@keyframes reflexIdlePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(246, 213, 109, 0.4)); }
    50%      { transform: scale(1.18); filter: drop-shadow(0 0 22px rgba(246, 213, 109, 0.7)); }
}
.reflex-arena.is-waiting .reflex-message i { color: var(--electric); }
.reflex-arena.is-ready .reflex-message i { color: #1a1100; animation: reflexBoltShake 0.2s ease-out; }
.reflex-arena.is-failed .reflex-message i { color: var(--red); }
.reflex-arena.is-done .reflex-message i { color: var(--green); }
@keyframes reflexBoltShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-15deg) scale(1.2); } 75% { transform: rotate(15deg) scale(1.2); } }
.reflex-message span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.reflex-times { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.reflex-time-chip { padding: 4px 10px; background: rgba(6, 9, 32, 0.6); border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); }

.memory-game { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.memory-stats { display: flex; gap: 16px; padding: 8px 14px; background: rgba(6, 9, 32, 0.5); border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--text-2); }
.memory-stats i { color: var(--gold); margin-right: 4px; opacity: 0.8; font-size: 0.85em; }
.memory-stats strong { color: var(--text-1); font-variant-numeric: tabular-nums; font-weight: 600; }
.memory-grid { display: grid; gap: 8px; width: 100%; max-width: 480px; }
.mem-card { aspect-ratio: 1; perspective: 800px; cursor: pointer; }
.mem-card-inner { width: 100%; height: 100%; position: relative; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); transform-style: preserve-3d; }
.mem-card.is-flipped .mem-card-inner { transform: rotateY(180deg); }
.mem-card.is-matched .mem-card-inner { transform: rotateY(180deg); animation: memMatch 0.6s ease-out; }
@keyframes memMatch { 0%, 100% { transform: rotateY(180deg) scale(1); } 50% { transform: rotateY(180deg) scale(1.08); } }
.mem-card-back, .mem-card-front { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mem-card-back { background: linear-gradient(140deg, #1d1a4a 0%, #0a0e2a 100%); border: 1px solid var(--line-2); color: var(--gold); font-size: 1.5rem; opacity: 0.9; }
.mem-card-front { background: rgba(246, 213, 109, 0.1); border: 1px solid var(--gold); transform: rotateY(180deg); font-size: 2rem; }
.mem-card.is-matched .mem-card-front {
    background: rgba(92, 212, 167, 0.2);
    border-color: var(--green);
    animation: memMatchBurst 0.7s ease-out;
}

/* --- Mastermind --- */
.mm-game {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.mm-board {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 480px;
}

.mm-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    background: rgba(6, 9, 32, 0.4);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, background 0.2s;
}

.mm-row.is-active {
    border-color: rgba(246, 213, 109, 0.4);
    background: rgba(6, 9, 32, 0.6);
    box-shadow: 0 0 0 1px rgba(246, 213, 109, 0.15);
}

.mm-row.is-locked { opacity: 0.85; }

.mm-pegs {
    display: flex;
    gap: 8px;
    flex: 1;
}

.mm-peg {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(100, 116, 139, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mm-row.is-locked .mm-peg { cursor: default; }

.mm-peg.is-filled {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
}

.mm-peg.is-target {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(246, 213, 109, 0.3), 0 0 14px rgba(246, 213, 109, 0.5);
    transform: scale(1.06);
}

/* Wordle-stili peg feedback */
.mm-peg.mm-peg-correct {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green), 0 0 14px rgba(92, 212, 167, 0.6);
}

.mm-peg.mm-peg-present {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(246, 213, 109, 0.55);
}

.mm-peg.mm-peg-absent {
    opacity: 0.55;
}

.mm-feedback {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
    align-items: flex-start;
    min-width: 56px;
    padding-left: 8px;
    border-left: 1px dashed var(--line-2);
}

.mm-fb-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1;
}

.mm-fb-stat strong {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-width: 9px;
    text-align: center;
}

.mm-fb-stat.black { color: var(--gold); text-shadow: 0 0 8px rgba(246, 213, 109, 0.4); }
.mm-fb-stat.white { color: rgba(255, 255, 255, 0.85); }

.mm-fb-stat.is-pending {
    opacity: 0.35;
    text-shadow: none;
}

.mm-palette {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(6, 9, 32, 0.6);
    border: 1px solid var(--line);
    border-radius: 999px;
    flex-wrap: wrap;
    justify-content: center;
}

.mm-color-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.3);
}

.mm-color-btn:hover {
    transform: scale(1.12);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.mm-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.mm-mini-btn {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--text-2);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mm-mini-btn:hover { color: var(--gold); border-color: rgba(246, 213, 109, 0.4); }

@media (max-width: 480px) {
    .mm-peg, .mm-color-btn { width: 32px; height: 32px; }
    .mm-pegs, .mm-palette { gap: 6px; }
    .mm-feedback { min-width: 50px; padding-left: 6px; }
    .mm-fb-stat { font-size: 0.72rem; gap: 3px; }
}

/* --- Passaparola --- */
.pp-game {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.pp-topbar {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 10px 22px;
    background: rgba(6, 9, 32, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.pp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 60px;
}

.pp-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-3);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pp-stat strong {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-1);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.pp-time strong { color: var(--gold); }
.pp-time strong.is-urgent { color: var(--red); animation: timerPulse 0.6s ease-in-out infinite; }

.pp-score strong { color: var(--green); }
.pp-stat-tot { font-size: 0.85rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Dairesel düzen */
.pp-circle-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pp-circle {
    --total: 21;
    --radius: 260px;
    position: relative;
    width: calc(var(--radius) * 2 + 60px);
    height: calc(var(--radius) * 2 + 60px);
    max-width: 100%;
}

.pp-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 9, 32, 0.6);
    border: 2px solid var(--line-2);
    border-radius: 50%;
    color: var(--text-2);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Açı: her harf 360°/total, başlangıç -90° (üstte ilk harf) */
    transform:
        rotate(calc(-90deg + (360deg / var(--total)) * var(--idx)))
        translate(var(--radius))
        rotate(calc(90deg - (360deg / var(--total)) * var(--idx)));
}

.pp-letter.is-active {
    background: rgba(246, 213, 109, 0.2);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 0 3px rgba(246, 213, 109, 0.3), 0 0 18px rgba(246, 213, 109, 0.5);
    transform:
        rotate(calc(-90deg + (360deg / var(--total)) * var(--idx)))
        translate(var(--radius))
        rotate(calc(90deg - (360deg / var(--total)) * var(--idx)))
        scale(1.15);
    z-index: 5;
}

.pp-letter.is-correct {
    background: rgba(92, 212, 167, 0.2);
    border-color: var(--green);
    color: var(--green);
    box-shadow: 0 0 14px rgba(92, 212, 167, 0.4);
}

.pp-letter.is-wrong {
    background: rgba(240, 138, 138, 0.18);
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 0 14px rgba(240, 138, 138, 0.35);
}

.pp-letter.is-pass {
    background: rgba(246, 213, 109, 0.08);
    border-color: rgba(246, 213, 109, 0.4);
    color: var(--gold);
    opacity: 0.65;
}

/* Halkanın ORTASINDA kompakt kart — sadece soru gösterir */
.pp-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    max-width: calc(var(--radius) * 1.5);
    background: linear-gradient(150deg, rgba(13, 22, 63, 0.92), rgba(5, 8, 24, 0.97));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-xl);
    padding: 22px 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(246, 213, 109, 0.12);
    backdrop-filter: blur(10px);
    text-align: center;
    z-index: 4;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kart içeriği — kompakt: sadece harf + ipucu (veya start/end mesajı) */
.pp-start, .pp-active, .pp-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.pp-start i, .pp-end i {
    font-size: 28px;
    color: var(--gold);
    opacity: 0.7;
}

.pp-end i { color: var(--green); }

.pp-start p, .pp-end p {
    color: var(--text-2);
    font-size: 0.92rem;
    margin: 0;
}

.pp-active-letter {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: #1a1100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(246, 213, 109, 0.35);
    text-transform: uppercase;
}

.pp-active-hint {
    color: var(--text-1);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Daire altında controls bar */
.pp-controls {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Start butonu */
.pp-start-btn {
    background: var(--gold);
    color: #1a1100;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(246, 213, 109, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pp-start-btn:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(246, 213, 109, 0.35); }
.pp-start-btn:active { transform: translateY(1px); }

/* Aktif input bar — input + tik + pas */
.pp-active-bar {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.pp-active-bar input {
    flex: 1;
    background: rgba(6, 9, 32, 0.75);
    border: 2px solid var(--line-2);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: var(--text-1);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.04em;
    min-width: 0;
}

.pp-active-bar input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(246, 213, 109, 0.18);
}

.pp-icon-btn {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 2px solid;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.pp-icon-btn.pp-answer-icon {
    background: var(--green);
    border-color: var(--green);
    color: #062817;
    box-shadow: 0 6px 16px rgba(92, 212, 167, 0.3);
}
.pp-icon-btn.pp-answer-icon:hover {
    background: #74dcb7;
    border-color: #74dcb7;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(92, 212, 167, 0.42);
}

.pp-icon-btn.pp-pass-icon {
    background: rgba(6, 9, 32, 0.6);
    border-color: var(--line-2);
    color: var(--text-2);
}
.pp-icon-btn.pp-pass-icon:hover {
    color: var(--gold);
    border-color: rgba(246, 213, 109, 0.5);
    background: rgba(246, 213, 109, 0.08);
}

/* Tablet/Mobil */
@media (max-width: 760px) {
    .pp-game { gap: 14px; }
    .pp-circle { --radius: 150px; }
    .pp-letter { width: 32px; height: 32px; margin: -16px 0 0 -16px; font-size: 0.8rem; }
    .pp-card {
        width: 240px;
        padding: 18px 16px;
        min-height: 170px;
    }
    .pp-active-letter { width: 56px; height: 56px; font-size: 1.6rem; }
    .pp-active-hint { font-size: 0.88rem; }
    .pp-active-bar input { font-size: 0.9rem; padding: 10px 14px; }
    .pp-icon-btn { width: 44px; height: 44px; font-size: 0.95rem; }
    .pp-topbar { gap: 14px; padding: 8px 16px; }
    .pp-stat strong { font-size: 1.05rem; }
    .pp-start-btn { padding: 10px 22px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .pp-circle { --radius: 125px; }
    .pp-letter { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 0.72rem; }
    .pp-card { width: 200px; padding: 14px 12px; min-height: 150px; }
    .pp-active-letter { width: 48px; height: 48px; font-size: 1.4rem; }
    .pp-active-hint { font-size: 0.82rem; }
    .pp-active-bar { gap: 6px; }
    .pp-icon-btn { width: 40px; height: 40px; }
}

/* Passaparola review listesi (SweetAlert HTML içeriği) */
.pp-rv-summary { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }

.pp-rv-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    max-height: 50vh;
    overflow-y: auto;
    text-align: left;
}

.pp-rv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(6, 9, 32, 0.45);
    border-left: 3px solid transparent;
    font-size: 0.88rem;
}

.pp-rv-item.is-correct { border-left-color: var(--green); background: rgba(92, 212, 167, 0.08); }
.pp-rv-item.is-wrong   { border-left-color: var(--red); background: rgba(240, 138, 138, 0.06); }
.pp-rv-item.is-pass    { border-left-color: var(--gold); background: rgba(246, 213, 109, 0.05); }

.pp-rv-letter {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--gold), var(--gold-soft));
    color: #1a1100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.88rem;
}

.pp-rv-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pp-rv-mine {
    color: rgba(255, 255, 255, 0.78);
    font-style: italic;
}
.pp-rv-mine::before { content: '"'; opacity: 0.5; }
.pp-rv-mine::after { content: '"'; opacity: 0.5; }

.pp-rv-empty { opacity: 0.4; font-style: normal; }

.pp-rv-correct {
    color: var(--gold);
    font-weight: 600;
}
.pp-rv-correct::before {
    content: '→';
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: normal;
}

.pp-rv-item > i {
    flex: 0 0 auto;
    width: 18px;
    text-align: center;
}
.pp-rv-item.is-correct > i { color: var(--green); }
.pp-rv-item.is-wrong > i   { color: var(--red); }
.pp-rv-item.is-pass > i    { color: var(--gold); }
@keyframes memMatchBurst {
    0%   { box-shadow: 0 0 0 0 rgba(92, 212, 167, 0.7); }
    60%  { box-shadow: 0 0 0 18px rgba(92, 212, 167, 0); }
    100% { box-shadow: 0 0 16px rgba(92, 212, 167, 0.3); }
}

@media (max-width: 600px) { .reflex-arena { min-height: 180px; } .memory-grid { gap: 6px; } .mem-card-front { font-size: 1.4rem; } }

.event-hint { background: rgba(138, 177, 255, 0.06); border: 1px solid rgba(138, 177, 255, 0.18); color: var(--electric); border-radius: var(--radius-md); padding: 11px 14px; font-size: 0.85rem; margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }
.event-hint i { font-size: 0.9em; opacity: 0.8; }

.answer-form { display: flex; flex-direction: column; gap: 12px; }
.answer-label { font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.18em; text-transform: uppercase; }
.answer-input { background: rgba(6, 9, 32, 0.6); border: 1px solid var(--line-2); border-radius: var(--radius-md); padding: 13px 16px; color: var(--text-1); font-size: 1rem; font-family: var(--font-body); transition: border-color 0.2s, background 0.2s; }
.answer-input:focus { outline: none; border-color: rgba(246, 213, 109, 0.55); background: rgba(6, 9, 32, 0.8); }
.answer-submit { background: var(--gold); color: #1a1100; border: none; padding: 12px 22px; border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: background 0.2s, transform 0.1s; }
.answer-submit:hover { background: var(--gold-soft); }
.answer-submit:active { transform: translateY(1px); }
.answer-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.answer-submit i { margin-right: 6px; }
.answer-attempts { text-align: center; color: var(--text-3); font-size: 0.78rem; margin: 4px 0 0; }
.answer-attempts strong { color: var(--gold); font-weight: 600; }

.play-locked, .play-success { text-align: center; padding: 26px 20px; border-radius: var(--radius-md); border: 1px solid var(--line); }
.play-locked { background: rgba(240, 138, 138, 0.05); border-color: rgba(240, 138, 138, 0.18); color: var(--red); }
.play-success { background: rgba(92, 212, 167, 0.05); border-color: rgba(92, 212, 167, 0.22); color: var(--green); }
.play-locked i, .play-success i { font-size: 26px; display: block; margin-bottom: 10px; opacity: 0.85; }
.play-locked p, .play-success p { margin: 0; font-size: 0.95rem; }
.text-small { font-size: 0.8rem; opacity: 0.7; margin-top: 6px !important; }

.event-stats { margin-top: 18px; padding: 14px 16px; background: rgba(6, 9, 32, 0.4); border: 1px solid var(--line); border-radius: var(--radius-md); }
.event-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.event-stats-item { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.event-stats-num { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.event-stats-num.gold { color: var(--gold); }
.event-stats-label { font-size: 0.62rem; color: var(--text-3); letter-spacing: 0.16em; text-transform: uppercase; }
.event-stats-extra { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-2); text-align: center; }
.event-stats-extra-label { color: var(--text-3); margin-right: 6px; }
.event-stats-extra strong { color: var(--text-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.event-stats-extra small { color: var(--gold); margin-left: 2px; font-size: 0.85em; }

.event-winners-list { margin-top: 14px; padding: 14px 16px; background: linear-gradient(135deg, rgba(246, 213, 109, 0.06), transparent 70%); border: 1px solid rgba(246, 213, 109, 0.2); border-radius: var(--radius-md); }
.event-winners-list-label { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.event-winners-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.event-winners-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; background: rgba(6, 9, 32, 0.4); border-radius: var(--radius-sm); font-size: 0.85rem; }
.event-winner-name { color: var(--text-1); font-weight: 500; }
.event-winner-time { color: var(--text-3); font-size: 0.72rem; font-variant-numeric: tabular-nums; }

.entries-history { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.entries-history summary { color: var(--text-2); font-size: 0.82rem; cursor: pointer; padding: 6px 0; user-select: none; list-style: none; }
.entries-history summary::-webkit-details-marker { display: none; }
.entries-history summary::before { content: "▸"; margin-right: 8px; color: var(--text-3); transition: transform 0.2s; display: inline-block; }
.entries-history[open] summary::before { transform: rotate(90deg); }
.entries-history summary:hover { color: var(--text-1); }
.entries-history ul { list-style: none; padding: 10px 0 0; margin: 0; }
.entry-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-sm); margin-bottom: 4px; background: rgba(6, 9, 32, 0.4); font-size: 0.83rem; }
.entry-row i { width: 14px; }
.entry-answer { flex: 1; color: var(--text-2); font-family: var(--font-mono); }
.entry-time { color: var(--text-3); font-size: 0.72rem; }
.entry-win { background: rgba(246, 213, 109, 0.07); border-left: 2px solid var(--gold); }
.entry-win i, .entry-win .entry-answer { color: var(--gold); }
.entry-correct i { color: var(--green); }
.entry-pending i { color: var(--text-3); }
.entry-wrong i { color: var(--red); }
.entry-wrong .entry-answer { text-decoration: line-through; opacity: 0.6; }

@media (max-width: 760px) {
    .topbar-inner { padding: 10px 0; }
    .brand-logo { height: 36px; max-width: 130px; }
    .topbar-actions { gap: 6px; }
    .user-pill { padding: 3px 12px 3px 3px; }
    .user-pill-avatar { width: 24px; height: 24px; font-size: 0.7rem; }
    .user-pill-name { font-size: 0.78rem; max-width: 90px; }
    .streak-mini { padding: 5px 10px; font-size: 0.72rem; }
    .guest-pill { padding: 5px 10px; font-size: 0.72rem; }
    .hide-sm { display: none; }
}

@media (max-width: 380px) {
    .brand-logo { height: 30px; max-width: 100px; }
    .user-pill-name { max-width: 60px; }
}

@media (max-width: 640px) {
    .detail-panel { padding: 22px; }
    .meta-grid { grid-template-columns: 1fr; }
    .puzzle-cover-text { font-size: 1.6rem; letter-spacing: 0.18em; }
    .detail-title-row { gap: 12px; }
    .detail-icon { width: 40px; height: 40px; font-size: 18px; }
}
