: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; }
.ev-card[data-type="matching"]      { --strip-from: #12332a; --strip-to: #0a0e2a; }
.ev-card[data-type="swipe"]         { --strip-from: #361a2e; --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; }

@media (max-width: 640px) {
    .ev-card .ev-tag,
    .ev-card .ev-status {
        display: none;
    }

    .ev-title,
    .ev-card.is-large .ev-title {
        font-size: 0.92rem;
        line-height: 1.18;
    }

    .ev-reward {
        font-size: 0.82rem;
        line-height: 1.15;
    }
}

/* ============================================================ */
/* 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;
}

/* ============================================================ */
/* PUBLIC HOME REFINEMENT                                       */
/* ============================================================ */
.page-home {
    background-color: var(--bg-0);
    background-image: linear-gradient(180deg, #070b24 0%, #060920 52%, #050719 100%);
}

.page-home .topbar {
    background: rgba(6, 9, 32, 0.82);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.page-home .topbar::after {
    left: 0;
    right: 0;
    opacity: 0.6;
}

.page-home .topbar-inner,
.page-home .page-shell {
    width: min(1160px, calc(100% - 40px));
}

.page-home .topbar-inner {
    padding: 10px 0;
}

.page-home .brand-logo {
    height: 40px;
}

.page-home .page-shell {
    padding: 28px 0 52px;
}

.page-home .hero-block {
    max-width: 760px;
    text-align: left;
    margin: 18px 0 24px;
}

.page-home .hero-block::before {
    display: none;
}

.page-home .hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 10px;
    padding: 6px 11px;
    margin-bottom: 13px;
    background: rgba(246, 213, 109, 0.08);
}

.page-home .hero-title {
    display: block;
    font-size: 3.05rem;
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 13px;
    text-shadow: none;
}

.page-home .hero-subtitle {
    max-width: 620px;
    margin: 0 0 20px;
    padding: 0;
    font-size: 1rem;
    color: rgba(241, 244, 251, 0.72);
}

.page-home .hero-stats {
    display: inline-flex;
    gap: 8px;
    padding: 9px;
    border-radius: 16px;
    background: rgba(10, 15, 46, 0.72);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.page-home .hero-stat {
    align-items: flex-start;
    min-width: 86px;
    padding: 4px 10px;
}

.page-home .hero-stat strong {
    font-family: var(--font-body);
    font-size: 1.32rem;
    letter-spacing: 0;
}

.page-home .hero-stat span {
    font-size: 0.72rem;
    letter-spacing: 0;
    text-transform: none;
}

.page-home .featured {
    margin: 8px 0 26px;
}

.page-home .featured-track {
    min-height: 270px;
    border-radius: 18px;
    background: rgba(10, 15, 46, 0.72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.page-home .feat-slide::after {
    background:
        linear-gradient(90deg, rgba(6, 9, 32, 0.9) 0%, rgba(6, 9, 32, 0.68) 48%, rgba(6, 9, 32, 0.18) 100%),
        linear-gradient(180deg, rgba(6, 9, 32, 0.08), rgba(6, 9, 32, 0.88));
}

.page-home .feat-bg-icon {
    font-size: 112px;
    opacity: 0.55;
}

.page-home .feat-content {
    top: 0;
    bottom: 0;
    right: auto;
    width: min(560px, 100%);
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.page-home .feat-tag {
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 5px 10px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: none;
}

.page-home .feat-title {
    font-family: var(--font-body);
    font-size: 1.8rem;
    line-height: 1.15;
    letter-spacing: 0;
    text-shadow: none;
}

.page-home .feat-desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    text-shadow: none;
}

.page-home .feat-meta {
    gap: 10px;
    margin-bottom: 18px;
}

.page-home .feat-meta-item {
    padding: 6px 9px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    text-shadow: none;
}

.page-home .feat-cta {
    align-self: flex-start;
    padding: 11px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

.page-home .featured-dots {
    justify-content: flex-start;
    margin-top: 10px;
}

.page-home .featured-dot {
    width: 22px;
    height: 3px;
}

.page-home .featured-dot.is-active {
    width: 32px;
}

.page-home .scope-bar {
    margin: 10px 0 16px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 15, 46, 0.58);
}

.page-home .scope-tabs {
    border-radius: 12px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
}

.page-home .scope-tab {
    border-radius: 10px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

.page-home .scope-count {
    font-size: 0.8rem;
    letter-spacing: 0;
}

.page-home .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 18px;
    align-items: stretch;
}

.page-home .bento > .ev-card,
.page-home .bento > .ev-card.is-large,
.page-home .bento > .ev-card.is-medium,
.page-home .bento > .ev-card.is-tall,
.page-home .bento > .ev-card.is-wide,
.page-home .bento > .bento-widget {
    grid-column: span 1;
    grid-row: auto;
}

.page-home .bento > .widget-winners-rolling {
    grid-column: span 2;
}

.page-home .bento > .widget-winners-rolling.is-full {
    grid-column: 1 / -1;
}

.page-home .ev-card {
    min-height: 248px;
    border-radius: 18px;
    background: rgba(10, 15, 46, 0.74);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.page-home .ev-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.page-home .ev-cover {
    filter: saturate(0.96) contrast(0.96);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-home .ev-card:hover .ev-cover {
    transform: scale(1.03);
}

.page-home .ev-cover-placeholder {
    background: linear-gradient(135deg, var(--strip-from, #12183d) 0%, var(--strip-to, #080c25) 100%);
}

.page-home .ev-overlay {
    background: linear-gradient(180deg, rgba(6, 9, 32, 0.08) 0%, rgba(6, 9, 32, 0.25) 38%, rgba(6, 9, 32, 0.92) 100%);
}

.page-home .ev-card .ev-tag,
.page-home .ev-card .ev-status {
    top: 10px;
    padding: 4px 9px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0;
    text-transform: none;
}

.page-home .ev-content {
    padding: 18px;
}

.page-home .ev-title,
.page-home .ev-card.is-large .ev-title {
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.24;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-shadow: none;
    -webkit-line-clamp: 2;
}

.page-home .ev-desc,
.page-home .ev-card.is-large .ev-desc,
.page-home .ev-card:not(.is-large) .ev-desc {
    display: -webkit-box;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 14px;
    text-shadow: none;
    -webkit-line-clamp: 2;
}

.page-home .ev-reward {
    font-family: var(--font-body);
    font-size: 0.92rem;
    letter-spacing: 0;
    text-shadow: none;
}

.page-home .ev-meta {
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.68);
    text-shadow: none;
}

.page-home .bento-widget {
    border-radius: 18px;
    padding: 16px;
    background: rgba(10, 15, 46, 0.66);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.page-home .widget-title {
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
}

.page-home .widget-winners li {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.page-home .empty-state {
    border-radius: 18px;
    padding: 48px 20px;
}

.page-home .empty-state h3 {
    font-family: var(--font-body);
    letter-spacing: 0;
}

.page-home .page-foot {
    margin-top: 40px;
    font-family: var(--font-body);
    letter-spacing: 0;
}

@media (max-width: 980px) {
    .page-home .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .bento > .widget-winners-rolling,
    .page-home .bento > .widget-winners-rolling.is-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .page-home .topbar-inner,
    .page-home .page-shell {
        width: calc(100% - 28px);
        max-width: 1160px;
    }

    .page-home .page-shell {
        padding-top: 20px;
    }

    .page-home .hero-block {
        margin: 10px 0 20px;
    }

    .page-home .hero-title {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .page-home .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 17px;
    }

    .page-home .hero-stats {
        width: 100%;
        justify-content: space-between;
        gap: 0;
        padding: 8px;
        border-radius: 14px;
    }

    .page-home .hero-divider {
        display: none;
    }

    .page-home .hero-stat {
        flex: 1;
        min-width: 0;
        padding: 4px 8px;
    }

    .page-home .hero-stat strong {
        font-size: 1.12rem;
    }

    .page-home .hero-stat span {
        font-size: 0.66rem;
    }

    .page-home .featured-track {
        min-height: 260px;
    }

    .page-home .feat-content {
        padding: 22px;
    }

    .page-home .feat-title {
        font-size: 1.35rem;
    }

    .page-home .feat-desc {
        font-size: 0.88rem;
    }

    .page-home .feat-meta {
        gap: 8px;
    }

    .page-home .scope-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .page-home .scope-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .page-home .scope-tab {
        width: 100%;
    }

    .page-home .scope-count {
        align-self: flex-start;
    }

    .page-home .bento {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .page-home .bento > .ev-card,
    .page-home .bento > .ev-card.is-large,
    .page-home .bento > .ev-card.is-medium,
    .page-home .bento > .ev-card.is-tall,
    .page-home .bento > .ev-card.is-wide,
    .page-home .bento > .bento-widget,
    .page-home .bento > .widget-winners-rolling,
    .page-home .bento > .widget-winners-rolling.is-full {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .page-home .ev-card {
        min-height: 220px;
    }

    .page-home .ev-card .ev-tag,
    .page-home .ev-card .ev-status {
        display: none;
    }

    .page-home .ev-content {
        padding: 15px;
    }

    .page-home .ev-title,
    .page-home .ev-card.is-large .ev-title {
        font-size: 0.94rem;
        line-height: 1.2;
    }

    .page-home .ev-desc,
    .page-home .ev-card.is-large .ev-desc,
    .page-home .ev-card:not(.is-large) .ev-desc {
        font-size: 0.8rem;
    }

    .page-home .ev-reward {
        font-size: 0.84rem;
    }
}

/* ============================================================ */
/* PUBLIC HOME MINIMAL OVERRIDE                                 */
/* ============================================================ */
.page-home {
    background-color: #060920;
    background-image: none;
}

.page-home .topbar {
    background: rgba(6, 9, 32, 0.96);
    border-bottom-color: rgba(140, 160, 220, 0.12);
    box-shadow: none;
}

.page-home .topbar::after,
.page-home .featured {
    display: none !important;
}

.page-home .topbar-inner,
.page-home .page-shell {
    width: min(1080px, calc(100% - 32px));
}

.page-home .topbar-inner {
    padding: 9px 0;
}

.page-home .brand-logo {
    height: 34px;
    filter: none;
}

.page-home .brand:hover .brand-logo {
    filter: none;
    transform: none;
}

.page-home .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: none;
}

.page-home .brand-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0;
}

.page-home .guest-pill,
.page-home .streak-mini,
.page-home .user-pill {
    border-radius: 8px;
    box-shadow: none;
}

.page-home .page-shell {
    padding: 22px 0 42px;
}

.page-home .hero-block {
    max-width: 820px;
    margin: 12px 0 20px;
}

.page-home .hero-eyebrow {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-3);
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.page-home .hero-title {
    font-family: var(--font-body);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
    background: none;
    color: var(--text-1);
    -webkit-text-fill-color: currentColor;
}

.page-home .hero-subtitle {
    max-width: 560px;
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-2);
}

.page-home .hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.page-home .hero-divider {
    display: none;
}

.page-home .hero-stat {
    min-width: 118px;
    padding: 8px 10px;
    border: 1px solid rgba(140, 160, 220, 0.13);
    border-radius: 8px;
    background: rgba(10, 15, 46, 0.62);
}

.page-home .hero-stat strong {
    font-size: 1.05rem;
    line-height: 1;
}

.page-home .hero-stat span {
    font-size: 0.72rem;
}

.page-home .scope-bar {
    margin: 18px 0 12px;
    padding: 0 0 12px;
    border: none;
    border-bottom: 1px solid rgba(140, 160, 220, 0.12);
    border-radius: 0;
    background: transparent;
}

.page-home .scope-tabs {
    gap: 4px;
    padding: 3px;
    border: 1px solid rgba(140, 160, 220, 0.13);
    border-radius: 8px;
    background: rgba(10, 15, 46, 0.48);
}

.page-home .scope-tab {
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.86rem;
}

.page-home .scope-tab.is-active {
    background: rgba(246, 213, 109, 0.12);
}

.page-home .scope-count {
    color: var(--text-3);
}

.page-home .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.page-home .bento-widget {
    display: none;
}

.page-home .bento > .ev-card,
.page-home .bento > .ev-card.is-large,
.page-home .bento > .ev-card.is-medium,
.page-home .bento > .ev-card.is-tall,
.page-home .bento > .ev-card.is-wide {
    grid-column: span 1;
    grid-row: auto;
}

.page-home .ev-card,
.page-home .ev-card.is-large,
.page-home .ev-card.is-medium {
    display: grid;
    grid-template-rows: 104px 1fr;
    min-height: 0;
    border-radius: 8px;
    background: rgba(10, 15, 46, 0.78);
    border-color: rgba(140, 160, 220, 0.13);
    box-shadow: none;
}

.page-home .ev-card:hover {
    transform: none;
    border-color: rgba(246, 213, 109, 0.38);
    box-shadow: none;
}

.page-home .ev-cover {
    position: relative;
    inset: auto;
    width: 100%;
    height: 104px;
    border-bottom: 1px solid rgba(140, 160, 220, 0.12);
    filter: none;
}

.page-home .ev-card:hover .ev-cover {
    transform: none;
}

.page-home .ev-cover-placeholder {
    background: rgba(13, 18, 48, 0.92);
}

.page-home .ev-cover-placeholder i {
    font-size: 30px;
    color: rgba(246, 213, 109, 0.55);
}

.page-home .ev-card:hover .ev-cover-placeholder i {
    color: rgba(246, 213, 109, 0.68);
    transform: none;
}

.page-home .ev-overlay,
.page-home .ev-card .ev-tag,
.page-home .ev-card .ev-status {
    display: none !important;
}

.page-home .ev-content,
.page-home .ev-card.is-large .ev-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    padding: 13px;
}

.page-home .ev-title,
.page-home .ev-card.is-large .ev-title {
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.24;
    margin: 0;
    color: var(--text-1);
}

.page-home .ev-desc,
.page-home .ev-card.is-large .ev-desc,
.page-home .ev-card:not(.is-large) .ev-desc {
    font-size: 0.8rem;
    line-height: 1.42;
    color: rgba(241, 244, 251, 0.58);
    margin: 0;
    -webkit-line-clamp: 2;
}

.page-home .ev-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.page-home .ev-reward {
    width: fit-content;
    padding: 5px 8px;
    border: 1px solid rgba(246, 213, 109, 0.18);
    border-radius: 6px;
    background: rgba(246, 213, 109, 0.08);
    font-size: 0.82rem;
    line-height: 1;
}

.page-home .ev-meta {
    gap: 10px;
    min-height: 18px;
    font-size: 0.73rem;
    color: rgba(241, 244, 251, 0.46);
}

.page-home .loading-card,
.page-home .empty-state {
    border-radius: 8px;
    background: rgba(10, 15, 46, 0.55);
}

.page-home .page-foot {
    margin-top: 28px;
    padding-top: 18px;
    font-size: 0.72rem;
}

@media (max-width: 980px) {
    .page-home .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page-home .topbar-inner,
    .page-home .page-shell {
        width: calc(100% - 24px);
        max-width: 1080px;
    }

    .page-home .page-shell {
        padding-top: 16px;
    }

    .page-home .hero-title {
        font-size: 1.55rem;
    }

    .page-home .hero-subtitle {
        font-size: 0.88rem;
    }

    .page-home .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .page-home .hero-stat {
        min-width: 0;
        padding: 7px 8px;
    }

    .page-home .hero-stat strong {
        font-size: 0.98rem;
    }

    .page-home .hero-stat span {
        font-size: 0.64rem;
    }

    .page-home .scope-bar {
        margin-top: 14px;
    }

    .page-home .bento {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-home .ev-card,
    .page-home .ev-card.is-large,
    .page-home .ev-card.is-medium {
        grid-template-rows: 92px 1fr;
    }

    .page-home .ev-cover {
        height: 92px;
    }

    .page-home .ev-content,
    .page-home .ev-card.is-large .ev-content {
        padding: 12px;
    }

    .page-home .ev-title,
    .page-home .ev-card.is-large .ev-title {
        font-size: 0.9rem;
    }

    .page-home .ev-desc,
    .page-home .ev-card.is-large .ev-desc,
    .page-home .ev-card:not(.is-large) .ev-desc {
        font-size: 0.78rem;
    }
}

.hero-actions {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.request-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(246, 213, 109, 0.28);
    border-radius: 8px;
    background: rgba(246, 213, 109, 0.1);
    color: var(--gold);
    padding: 9px 13px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.request-open-btn:hover {
    background: rgba(246, 213, 109, 0.16);
    border-color: rgba(246, 213, 109, 0.45);
    color: #ffe7a0;
}

.request-modal[hidden] {
    display: none !important;
}

body.request-modal-open {
    overflow: hidden;
}

.request-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.request-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 22, 0.78);
    backdrop-filter: blur(8px);
}

.request-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border: 1px solid rgba(140, 160, 220, 0.18);
    border-radius: 12px;
    background: #0a0f2e;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    padding: 22px;
}

.request-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(140, 160, 220, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    cursor: pointer;
}

.request-close:hover {
    color: var(--text-1);
    border-color: rgba(246, 213, 109, 0.28);
}

.request-dialog-head {
    display: flex;
    gap: 12px;
    padding-right: 38px;
    margin-bottom: 18px;
}

.request-dialog-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(246, 213, 109, 0.12);
    color: var(--gold);
}

.request-dialog h2 {
    margin: 0 0 4px;
    font-family: var(--font-body);
    font-size: 1.18rem;
    letter-spacing: 0;
}

.request-dialog p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.88rem;
}

.request-form,
.request-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.request-form {
    gap: 13px;
}

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

.request-form label > span {
    color: var(--text-3);
    font-size: 0.78rem;
    font-weight: 700;
}

.request-form input,
.request-form select,
.request-form textarea {
    width: 100%;
    border: 1px solid rgba(140, 160, 220, 0.18);
    border-radius: 8px;
    background: rgba(6, 9, 32, 0.78);
    color: var(--text-1);
    padding: 10px 11px;
    font: inherit;
    font-size: 0.9rem;
}

.request-form textarea {
    resize: vertical;
    min-height: 126px;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
    outline: none;
    border-color: rgba(246, 213, 109, 0.55);
}

.request-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.request-status {
    min-height: 20px;
    font-size: 0.82rem;
}

.request-status.is-error {
    color: var(--red);
}

.request-status.is-success {
    color: var(--green);
}

.request-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--gold);
    color: #1a1100;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
}

.request-submit:hover {
    background: var(--gold-soft);
}

.request-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 640px) {
    .request-modal {
        padding: 12px;
        place-items: end center;
    }

    .request-dialog {
        max-height: calc(100vh - 24px);
        padding: 18px;
    }

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

    .request-form-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .request-submit {
        width: 100%;
    }
}

/* ============================================================ */
/* 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-prompt small { color: var(--text-3); font-size: 0.76rem; line-height: 1.35; }
.file-drop-preview { position: relative; display: flex; justify-content: center; }
.file-drop-preview img, .file-drop-preview video { max-width: 100%; max-height: 260px; border-radius: var(--radius-sm); object-fit: contain; background: rgba(0, 0, 0, 0.25); }
.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;
}

.matching-game { display: flex; flex-direction: column; gap: 14px; }
.matching-stats { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; 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); }
.matching-stats i { color: var(--gold); margin-right: 4px; opacity: 0.85; }
.matching-stats strong { color: var(--text-1); font-variant-numeric: tabular-nums; font-weight: 700; }
.matching-stats strong.is-urgent { color: var(--red); animation: timerPulse 0.6s ease-in-out infinite; }
.matching-reset-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(6, 9, 32, 0.6); color: var(--text-2); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.matching-reset-btn:hover { border-color: rgba(246, 213, 109, 0.45); color: var(--gold); background: rgba(6, 9, 32, 0.9); }
.matching-board { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr); gap: 14px; align-items: start; }
.matching-left-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.matching-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 0.82fr); gap: 8px; align-items: stretch; }
.matching-left-text { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(6, 9, 32, 0.55); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-1); font-size: 0.92rem; line-height: 1.35; }
.matching-left-text span { flex: 0 0 auto; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(246, 213, 109, 0.12); border: 1px solid rgba(246, 213, 109, 0.35); color: var(--gold); font-family: var(--font-display); font-size: 0.75rem; }
.matching-dropzone { min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 6px; border: 1px dashed rgba(138, 177, 255, 0.35); border-radius: var(--radius-sm); background: rgba(138, 177, 255, 0.05); color: var(--text-3); cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.matching-dropzone::before { content: "Eşini bırak"; font-size: 0.78rem; color: var(--text-3); }
.matching-dropzone.is-filled::before { content: ""; display: none; }
.matching-dropzone.is-hovered { border-color: var(--gold); background: rgba(246, 213, 109, 0.09); box-shadow: 0 0 0 1px rgba(246, 213, 109, 0.16); }
.matching-dropzone.is-correct { border-style: solid; border-color: var(--green); background: rgba(92, 212, 167, 0.1); }
.matching-dropzone.is-wrong { border-style: solid; border-color: var(--red); background: rgba(240, 138, 138, 0.08); }
.matching-bank-wrap { padding: 10px; background: rgba(6, 9, 32, 0.42); border: 1px solid var(--line); border-radius: var(--radius-md); }
.matching-bank-title { margin-bottom: 8px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.matching-right-bank { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; }
.matching-token { min-height: 38px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid rgba(246, 213, 109, 0.28); border-radius: var(--radius-sm); background: rgba(246, 213, 109, 0.1); color: var(--text-1); font: inherit; font-size: 0.86rem; line-height: 1.25; cursor: grab; transition: transform 0.12s, border-color 0.15s, background 0.15s, box-shadow 0.15s; overflow-wrap: anywhere; }
.matching-token:hover { border-color: rgba(246, 213, 109, 0.55); background: rgba(246, 213, 109, 0.15); }
.matching-token:active { cursor: grabbing; }
.matching-token.is-selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(246, 213, 109, 0.16); transform: translateY(-1px); }
.matching-token.is-dragging { opacity: 0.55; }
.matching-token.is-locked { cursor: default; }
.matching-dropzone .matching-token { width: 100%; justify-content: center; cursor: pointer; }
.matching-actions { display: flex; justify-content: flex-end; }
.matching-actions .answer-submit { width: auto; min-width: 220px; }

/* --- Hızlı Karar / Swipe --- */
.swipe-game { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.swipe-stats { width: 100%; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; 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); }
.swipe-stats i { color: var(--gold); margin-right: 4px; opacity: 0.85; }
.swipe-stats strong { color: var(--text-1); font-variant-numeric: tabular-nums; font-weight: 700; }
.swipe-stats strong.is-urgent { color: var(--red); animation: timerPulse 0.6s ease-in-out infinite; }
.swipe-deck { position: relative; width: min(100%, 520px); height: clamp(280px, 46vw, 360px); perspective: 900px; touch-action: none; }
.swipe-card {
    --swipe-yes: 0;
    --swipe-no: 0;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 20% 18%, rgba(246, 213, 109, 0.12), transparent 34%),
        linear-gradient(150deg, rgba(17, 24, 64, 0.98), rgba(8, 12, 36, 0.98));
    border: 1px solid rgba(246, 213, 109, 0.22);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    color: var(--text-1);
    opacity: 0;
    pointer-events: none;
    touch-action: none;
    user-select: none;
    transition: transform 0.22s ease, opacity 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}
.swipe-card.is-active { opacity: 1; pointer-events: auto; z-index: 4; }
.swipe-card.is-active + .swipe-card { opacity: 0.34; z-index: 2; transform: translateY(12px) scale(0.96); }
.swipe-card.is-dragging { transition: none; cursor: grabbing; }
.swipe-card.is-swiped-yes, .swipe-card.is-swiped-no { opacity: 0; pointer-events: none; }
.swipe-card-kicker { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-family: var(--font-display); }
.swipe-card-text { font-size: clamp(1.08rem, 2.2vw, 1.45rem); line-height: 1.45; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.swipe-card-feedback { position: absolute; top: 18px; padding: 8px 12px; border-radius: 999px; font-weight: 800; letter-spacing: 0.1em; font-size: 0.82rem; opacity: 0; transform: rotate(-8deg); border: 2px solid currentColor; }
.swipe-card-yes { right: 18px; color: var(--green); opacity: var(--swipe-yes); }
.swipe-card-no { left: 18px; color: var(--red); opacity: var(--swipe-no); transform: rotate(8deg); }
.swipe-actions { width: min(100%, 520px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.swipe-action { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-md); border: 1px solid var(--line-2); background: rgba(6, 9, 32, 0.66); color: var(--text-1); font-weight: 800; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.swipe-action:hover:not(:disabled) { transform: translateY(-1px); }
.swipe-action:disabled { opacity: 0.45; cursor: not-allowed; }
.swipe-no { border-color: rgba(240, 138, 138, 0.28); color: var(--red); }
.swipe-no:hover:not(:disabled) { background: rgba(240, 138, 138, 0.08); border-color: rgba(240, 138, 138, 0.5); }
.swipe-yes { border-color: rgba(92, 212, 167, 0.28); color: var(--green); }
.swipe-yes:hover:not(:disabled) { background: rgba(92, 212, 167, 0.08); border-color: rgba(92, 212, 167, 0.5); }
.swipe-start { white-space: nowrap; min-width: 180px; }

/* --- 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; }
}

/* --- Treasure (Hazine Sandığı) --- */
.treasure-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 8px 0;
}

.treasure-stage {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1.2 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.treasure-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(246, 213, 109, 0.22), transparent 65%);
    pointer-events: none;
    animation: treasureGlow 3s ease-in-out infinite;
}

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

.treasure-chest {
    position: relative;
    width: 100%;
    max-width: 320px;
    z-index: 2;
    perspective: 900px;
    transform-style: preserve-3d;
    /* Hafif 3D bakış açısı */
    transform: rotateX(6deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.treasure-chest.is-open {
    transform: rotateX(2deg) translateY(-6px);
}

.chest-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.7))
            drop-shadow(0 0 18px rgba(246, 213, 109, 0.18));
    position: relative;
    z-index: 2;
}

/* Altın ışık huzmesi — sandığın arkasından göğe doğru */
.chest-light-beam {
    position: absolute;
    left: 50%;
    top: -40%;
    width: 60%;
    height: 100%;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse 50% 80% at 50% 100%, rgba(252, 211, 77, 0.55), rgba(251, 191, 36, 0.15) 40%, transparent 70%),
        conic-gradient(from 270deg at 50% 100%, transparent 0deg, rgba(253, 230, 138, 0.45) 30deg, rgba(251, 191, 36, 0.6) 45deg, rgba(253, 230, 138, 0.45) 60deg, transparent 90deg);
    filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s 0.3s ease-out;
    mix-blend-mode: screen;
}

.treasure-chest.is-open .chest-light-beam {
    opacity: 1;
    animation: beamFlicker 2.4s ease-in-out infinite 0.8s;
}

@keyframes beamFlicker {
    0%, 100% { opacity: 0.9; transform: translateX(-50%) scaleY(1); }
    35%      { opacity: 1;   transform: translateX(-50%) scaleY(1.06); }
    65%      { opacity: 0.85; transform: translateX(-50%) scaleY(0.96); }
}

/* Parıltı parçacıkları — açılırken etrafa saçılır */
.chest-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
}

.treasure-chest.is-open .chest-sparkles {
    opacity: 1;
}

.chest-sparkles span {
    position: absolute;
    left: 50%;
    top: 60%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #fef3c7 0%, #fbbf24 40%, transparent 70%);
    box-shadow: 0 0 12px #fbbf24, 0 0 20px rgba(251, 191, 36, 0.6);
    opacity: 0;
}

.treasure-chest.is-open .chest-sparkles span {
    animation: sparkleBurst 1.8s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

.chest-sparkles span:nth-child(1)  { --tx: -110px; --ty: -180px; --d: 0.55s; --sz: 9px; }
.chest-sparkles span:nth-child(2)  { --tx:  120px; --ty: -160px; --d: 0.65s; --sz: 7px; }
.chest-sparkles span:nth-child(3)  { --tx:  -60px; --ty: -210px; --d: 0.7s;  --sz: 10px; }
.chest-sparkles span:nth-child(4)  { --tx:   80px; --ty: -200px; --d: 0.62s; --sz: 8px; }
.chest-sparkles span:nth-child(5)  { --tx: -150px; --ty: -120px; --d: 0.85s; --sz: 6px; }
.chest-sparkles span:nth-child(6)  { --tx:  160px; --ty: -110px; --d: 0.92s; --sz: 7px; }
.chest-sparkles span:nth-child(7)  { --tx:  -30px; --ty: -240px; --d: 1.0s;  --sz: 11px; }
.chest-sparkles span:nth-child(8)  { --tx:   40px; --ty: -230px; --d: 1.05s; --sz: 8px; }
.chest-sparkles span:nth-child(9)  { --tx: -180px; --ty: -60px;  --d: 0.78s; --sz: 6px; }
.chest-sparkles span:nth-child(10) { --tx:  185px; --ty: -50px;  --d: 0.82s; --sz: 6px; }
.chest-sparkles span:nth-child(11) { --tx: -100px; --ty: -260px; --d: 1.15s; --sz: 9px; }
.chest-sparkles span:nth-child(12) { --tx:  100px; --ty: -250px; --d: 1.2s;  --sz: 9px; }

@keyframes sparkleBurst {
    0%   { transform: translate(-50%, 0) scale(0); opacity: 0; width: var(--sz, 8px); height: var(--sz, 8px); }
    15%  { opacity: 1; transform: translate(calc(-50% + var(--tx, 0) * 0.2), calc(var(--ty, 0) * 0.2)) scale(0.8); }
    60%  { opacity: 1; transform: translate(calc(-50% + var(--tx, 0)), var(--ty, 0)) scale(1.2); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--tx, 0) * 1.15), calc(var(--ty, 0) * 1.1 + 30px)) scale(0.4); }
}

/* Kapak açılma — pivot kapağın alt çizgisi (yeni viewBox 240×200, kapak alt çizgisi y=100, orta x=120) */
.chest-lid-group {
    transform-origin: 120px 100px;
    transform-box: fill-box;
    transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.treasure-chest.is-open .chest-lid-group {
    transform: rotate(-118deg) translateY(-6px);
}

.chest-inside-glow {
    opacity: 0;
    transition: opacity 0.45s 0.45s ease-in;
}

.treasure-chest.is-open .chest-inside-glow {
    opacity: 1;
    animation: chestInsidePulse 1.8s ease-in-out infinite 0.9s;
}

@keyframes chestInsidePulse {
    0%, 100% { opacity: 0.75; transform: scale(1); transform-origin: 120px 118px; }
    50%      { opacity: 1;    transform: scale(1.05); transform-origin: 120px 118px; }
}

.chest-lock {
    transition: transform 0.4s, opacity 0.4s;
    transform-origin: 120px 92px;
}
.treasure-chest.is-open .chest-lock {
    transform: translateY(-26px) rotate(20deg) scale(0.85);
    opacity: 0;
}

/* Kilit kırılma anı (doğru anahtar bulunduğunda kapak açılmadan hemen önce) */
.treasure-chest.is-unlocking .chest-lock {
    animation: lockBreak 0.5s ease-in forwards;
}
@keyframes lockBreak {
    0%   { transform: translateY(0) rotate(0) scale(1); }
    30%  { transform: translateY(-3px) rotate(-8deg) scale(1.08); filter: brightness(1.4); }
    60%  { transform: translateY(2px)  rotate(10deg) scale(1.1); filter: brightness(1.6); }
    100% { transform: translateY(-12px) rotate(15deg) scale(0.9); filter: brightness(1); opacity: 0.6; }
}

/* Sandık titreşimi (yanlış anahtar) */
.treasure-chest.is-rejected {
    animation: chestReject 0.6s ease-out;
}
@keyframes chestReject {
    0%, 100% { transform: rotateX(6deg) translateX(0) rotateZ(0); }
    20%      { transform: rotateX(6deg) translateX(-12px) rotateZ(-2deg); }
    40%      { transform: rotateX(6deg) translateX(12px)  rotateZ(2deg); }
    60%      { transform: rotateX(6deg) translateX(-7px)  rotateZ(-1deg); }
    80%      { transform: rotateX(6deg) translateX(7px)   rotateZ(1deg); }
}

/* Sandık titreşimi (doğru anahtar — açılmadan önce coşkulu titrek) */
.treasure-chest.is-shaking {
    animation: chestShake 0.5s ease-in-out;
}
@keyframes chestShake {
    0%, 100% { transform: rotateX(6deg) scale(1) rotateZ(0); }
    25%      { transform: rotateX(6deg) scale(1.05) rotateZ(-1.5deg); }
    75%      { transform: rotateX(6deg) scale(1.05) rotateZ(1.5deg); }
}

/* Ödül — sandığın içinden yukarı çıkar (yeni SVG viewBox 240×200 — iç merkez ~%55) */
.treasure-prize {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    z-index: 4;
    text-align: center;
    pointer-events: none;
}

.treasure-prize.is-shown {
    animation: prizeRise 1.1s 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes prizeRise {
    0%   { transform: translate(-50%, 80%) scale(0) rotate(-12deg); opacity: 0; }
    60%  { transform: translate(-50%, -55%) scale(1.18) rotate(4deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}

.treasure-prize i {
    font-size: 56px;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(246, 213, 109, 0.9), 0 0 60px rgba(246, 213, 109, 0.5);
    animation: prizeGlow 1.5s ease-in-out infinite alternate 2s;
    display: block;
    margin-bottom: 8px;
}

@keyframes prizeGlow {
    0%   { transform: scale(1) rotate(-3deg); }
    100% { transform: scale(1.08) rotate(3deg); }
}

.treasure-prize-text {
    display: inline-block;
    background: rgba(6, 9, 32, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    backdrop-filter: blur(6px);
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Kazanan kotası dolduğunda — boş sandık görsel tonu */
.treasure-prize.is-empty i {
    color: #94a3b8;
    text-shadow: 0 0 24px rgba(148, 163, 184, 0.6), 0 0 50px rgba(148, 163, 184, 0.3);
    animation: prizeGlowEmpty 2s ease-in-out infinite alternate 2s;
}
@keyframes prizeGlowEmpty {
    0%   { transform: scale(1) rotate(-2deg); opacity: 0.8; }
    100% { transform: scale(1.04) rotate(2deg); opacity: 1; }
}
.treasure-prize.is-empty .treasure-prize-text {
    border-color: #94a3b8;
    color: #cbd5e1;
}

/* Anahtarlar */
.treasure-keys {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 540px;
    padding: 0 8px;
}

.trs-key {
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s, filter 0.2s;
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    padding: 6px 4px 4px;
    gap: 2px;
    -webkit-tap-highlight-color: transparent;
}

/* Anahtar simgesi — kendi rengi, sade (hover'da parlar) */
.trs-key i {
    color: var(--c);
    font-size: 2rem;
    line-height: 1;
    transition: filter 0.2s, transform 0.2s, -webkit-text-stroke-width 0.2s;
}

/* Koyu / siyah anahtarın etrafına ince beyaz kontur */
.trs-key.is-dark i {
    -webkit-text-stroke: 1px rgba(248, 250, 252, 0.92);
    paint-order: stroke fill;
}
.trs-key.is-dark:hover i {
    -webkit-text-stroke-width: 1.3px;
}

/* Renk adı — küçük etiket */
.trs-key .trs-name {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1;
    white-space: nowrap;
}

.trs-key:hover i {
    transform: scale(1.18) rotate(-6deg);
    filter:
        drop-shadow(0 0 1px rgba(255,255,255,0.5))
        drop-shadow(0 0 8px var(--c))
        drop-shadow(0 0 18px color-mix(in srgb, var(--c), transparent 30%));
}

.trs-key:hover .trs-name {
    color: #f8fafc;
}

.trs-key:active { transform: translateY(0) scale(1.02); }

.trs-key.is-faded { opacity: 0.18; pointer-events: none; }

/* Tıklanan anahtar sandığa uçuyor */
.trs-key.is-flying {
    animation: keyFly 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 10;
    pointer-events: none;
}

@keyframes keyFly {
    0%   { transform: scale(1) translateY(0) rotate(0); opacity: 1; }
    50%  { transform: scale(1.5) translateY(-30vh) rotate(-180deg); opacity: 1; }
    100% { transform: scale(0.6) translateY(-50vh) rotate(-360deg); opacity: 0; }
}

.trs-key.is-correct {
    animation: keyCorrect 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes keyCorrect {
    0%   { transform: scale(1) translateY(0); }
    50%  { transform: scale(1.4) translateY(-20vh); }
    100% { transform: scale(0) translateY(-30vh); opacity: 0; }
}

.trs-key.is-wrong {
    animation: keyWrong 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes keyWrong {
    0%   { transform: scale(1) translateY(0); filter: none; }
    40%  { transform: scale(1.3) translateY(-15vh); filter: brightness(1.2); }
    60%  { transform: scale(1.3) translateY(-12vh) rotate(15deg); filter: hue-rotate(0); }
    100% { transform: scale(0.7) translateY(40px) rotate(-30deg); opacity: 0.3; filter: grayscale(1); }
}

/* Mobil — grid hep 5 kolon (5×2) */
@media (max-width: 600px) {
    .treasure-keys { gap: 10px; max-width: 380px; }
    .trs-key { padding: 4px 2px 3px; }
    .trs-key i { font-size: 1.5rem; }
    .trs-key .trs-name { font-size: 0.55rem; letter-spacing: 0.04em; }
    .treasure-stage { max-width: 280px; }
}
@media (max-width: 380px) {
    .treasure-keys { gap: 8px; }
    .trs-key i { font-size: 1.25rem; }
    .trs-key .trs-name { font-size: 0.5rem; }
}

/* --- Sentence Scramble (Cümle Kur) --- */
.sentence-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 18px 0;
}

.sent-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.85rem;
    color: var(--gold, #f6d56d);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 7px 16px;
    border: 1px solid rgba(246, 213, 109, 0.35);
    border-radius: 999px;
    background: rgba(13, 22, 63, 0.55);
}
.sent-progress strong { font-size: 1.05rem; color: #fff; }
.sent-progress-label { color: rgba(248, 251, 255, 0.6); font-size: 0.72rem; }

.sent-board {
    width: 100%;
    max-width: 760px;
}

.sent-round {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Slot bölgesi — kelimeler + boşluk + noktalama */
.sent-slots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 0;
    padding: 14px 12px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at top, rgba(138, 177, 255, 0.07), transparent 70%),
        rgba(6, 9, 32, 0.55);
    border: 1px solid rgba(138, 177, 255, 0.18);
    min-height: 90px;
}

.sent-word {
    display: inline-flex;
    gap: 5px;
    margin: 0 2px;
}

.sent-slot {
    width: 38px;
    height: 46px;
    border-radius: 8px;
    border: 2px solid rgba(138, 177, 255, 0.28);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(6, 9, 32, 0.85));
    color: #fff;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s, background 0.2s;
    text-transform: uppercase;
}
.sent-slot.is-filled {
    border-color: var(--gold, #f6d56d);
    background: linear-gradient(180deg, rgba(246, 213, 109, 0.18), rgba(246, 213, 109, 0.06));
    box-shadow: 0 0 14px rgba(246, 213, 109, 0.18), inset 0 -2px 0 rgba(0,0,0,0.3);
    color: var(--gold, #f6d56d);
}
.sent-slot.is-filled:hover {
    border-color: #ef4444;
    color: #fca5a5;
    transform: translateY(-2px);
}

.sent-space {
    width: 22px;
    height: 32px;
    display: inline-block;
}

.sent-punct {
    color: rgba(248, 251, 255, 0.65);
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 4px;
    align-self: flex-end;
    line-height: 46px;
}

/* Harf havuzu */
.sent-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(138, 177, 255, 0.2);
}

.sent-tile {
    min-width: 42px;
    height: 50px;
    padding: 0 10px;
    border-radius: 10px;
    border: 2px solid rgba(138, 177, 255, 0.4);
    background: linear-gradient(180deg, #1e293b, #0d163f);
    color: #f8fbff;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.18s, opacity 0.2s, border-color 0.18s;
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, 0.5),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.4);
}
.sent-tile:hover {
    transform: translateY(-3px);
    border-color: var(--electric, #8ab1ff);
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, 0.5),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.12),
        0 0 18px rgba(138, 177, 255, 0.35),
        0 8px 16px rgba(0, 0, 0, 0.5);
}
.sent-tile:active { transform: translateY(-1px) scale(0.97); }
.sent-tile.is-used {
    opacity: 0.18;
    pointer-events: none;
    transform: scale(0.92);
    filter: grayscale(0.7);
}

/* Kontroller */
.sent-controls {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.sent-btn {
    padding: 12px 22px;
    border-radius: 12px;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.18s, opacity 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid;
}
.sent-btn-clear {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}
.sent-btn-clear:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
}

.sent-btn-submit {
    border-color: var(--gold, #f6d56d);
    background: linear-gradient(135deg, #f6d56d, #d4af37);
    color: #1a1208;
    box-shadow: 0 6px 18px rgba(246, 213, 109, 0.35);
}
.sent-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(246, 213, 109, 0.5);
}
.sent-btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(246, 213, 109, 0.4), rgba(212, 175, 55, 0.3));
    box-shadow: none;
}

@media (max-width: 600px) {
    .sent-slot { width: 30px; height: 40px; font-size: 1.05rem; }
    .sent-tile { min-width: 36px; height: 44px; font-size: 1.2rem; padding: 0 8px; }
    .sent-punct { font-size: 1.2rem; line-height: 40px; }
    .sent-space { width: 14px; }
    .sent-btn { padding: 10px 16px; font-size: 0.85rem; }
}

/* --- Mystery (Şimşek Hırsızı) — dedektiflik teması --- */
.mystery-area {
    background:
        radial-gradient(ellipse at top, rgba(255,90,40,0.05), transparent 70%),
        linear-gradient(180deg, rgba(6, 9, 32, 0.6), rgba(0,0,0,0.85));
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(246, 213, 109, 0.18);
    position: relative;
    overflow: hidden;
}
.mystery-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 200px, rgba(255,255,255,0.012) 200px 201px),
        repeating-linear-gradient(0deg, transparent 0 200px, rgba(255,255,255,0.012) 200px 201px);
    pointer-events: none;
}

.mystery-loading {
    text-align: center;
    color: rgba(248,251,255,0.5);
    padding: 60px 20px;
    font-family: var(--font-display, 'Cinzel', serif);
    letter-spacing: 0.1em;
}

.myst-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.myst-phase {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.85rem;
    color: var(--gold, #f6d56d);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
}
.myst-progress-bar {
    height: 8px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(246, 213, 109, 0.2);
}
.myst-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fde047, #f6d56d);
    box-shadow: 0 0 10px rgba(246, 213, 109, 0.5);
    transition: width 0.6s ease-out;
}
.myst-progress-label {
    text-align: center;
    color: rgba(248,251,255,0.65);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.myst-opening-story {
    position: relative;
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid rgba(246, 213, 109, 0.22);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(246, 213, 109, 0.08), rgba(15, 23, 42, 0.74)),
        rgba(2, 6, 23, 0.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.myst-opening-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--gold, #f6d56d);
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.myst-rich-text {
    color: rgba(248,251,255,0.82);
    font-size: 0.95rem;
    line-height: 1.72;
}
.myst-rich-text p {
    margin: 0 0 0.75em;
}
.myst-rich-text p:last-child {
    margin-bottom: 0;
}
.myst-rich-text ul,
.myst-rich-text ol {
    margin: 0.4em 0 0.9em;
    padding-left: 1.35rem;
}
.myst-rich-text li {
    margin: 0.2em 0;
}
.myst-rich-text blockquote {
    margin: 0.7em 0;
    padding: 0.4em 0 0.4em 0.9em;
    border-left: 3px solid rgba(246, 213, 109, 0.45);
    color: rgba(248,251,255,0.72);
}
.myst-rich-text h3,
.myst-rich-text h4 {
    margin: 0.85em 0 0.35em;
    color: var(--gold, #f6d56d);
    font-family: var(--font-display, 'Cinzel', serif);
}
.myst-rich-text a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.myst-rich-text img {
    display: block;
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(246, 213, 109, 0.18);
    margin: 12px auto;
    box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

/* --- Zarf (envelope) --- */
.myst-envelope-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 30px 16px;
    margin-bottom: 30px;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at center, rgba(246,213,109,0.06), transparent 60%);
}

/* === Zarf — sinematik versiyon === */
.myst-envelope {
    position: relative;
    width: 280px;
    height: 180px;
    perspective: 1400px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.myst-envelope:not(.is-opening):hover {
    transform: translateY(-4px) rotateX(-3deg);
}

/* Zemindeki gölge */
.myst-env-ground {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    height: 18px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.7), transparent 70%);
    filter: blur(8px);
    z-index: 0;
    transition: width 0.7s, opacity 0.7s;
}

/* Zarf gövdesi */
.myst-env-body {
    position: absolute;
    inset: 0;
    background:
        /* hafif kağıt grain */
        repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,0.018) 4px 5px),
        /* lekeler */
        radial-gradient(circle 8px at 18% 28%, rgba(0,0,0,0.06), transparent 80%),
        radial-gradient(circle 6px at 82% 64%, rgba(0,0,0,0.05), transparent 80%),
        radial-gradient(circle 5px at 65% 22%, rgba(255,255,255,0.04), transparent 80%),
        /* kraft kağıt zemin */
        linear-gradient(160deg, #c19372 0%, #9a6b4a 55%, #6b4528 100%);
    border-radius: 6px 8px 6px 8px;
    box-shadow:
        inset 0 -10px 22px rgba(0,0,0,0.45),
        inset 0 0 50px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 12px 30px rgba(0,0,0,0.6);
    z-index: 1;
}

/* Bottom V-fold çizgileri (alt zarf birleşim hattı) */
.myst-env-front-fold {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.myst-env-front-fold::before,
.myst-env-front-fold::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 49.5%, rgba(0,0,0,0.18) 50%, rgba(0,0,0,0.05) 50.5%, transparent 51%);
}
.myst-env-front-fold::before { left: 0; }
.myst-env-front-fold::after  { right: 0; transform: scaleX(-1); }

/* İçerideki kağıt — zarftan dışarı çıkacak.
   translateZ(60px) → 3D derinlikte kapağın V tip'inden (rotateX 165° → ~30px ileride) bile öne çıkar.
   Perspective 1400px ile sadece ~%4 büyür — gözle ayırt edilmez. */
.myst-env-paper {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 4%;
    height: 92%;
    z-index: 2;
    opacity: 0;
    transform: translateZ(60px) translateY(20%);
    transition:
        transform 1s 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.18s 0.5s;
    pointer-events: none;
    transform-style: preserve-3d;
}
.myst-env-paper-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background:
        /* hafif buruşma çizgileri */
        radial-gradient(ellipse 60px 6px at 30% 22%, rgba(0,0,0,0.05), transparent 70%),
        radial-gradient(ellipse 80px 8px at 65% 60%, rgba(0,0,0,0.04), transparent 70%),
        radial-gradient(ellipse 50px 6px at 50% 85%, rgba(0,0,0,0.04), transparent 70%),
        /* kağıt grain */
        repeating-linear-gradient(0deg, transparent 0 18px, rgba(150, 110, 60, 0.05) 18px 19px),
        /* eski kağıt zemin */
        linear-gradient(180deg, #fdf6dc 0%, #f4e6b8 70%, #e9d99c 100%);
    border-radius: 2px 5px 2px 4px;
    box-shadow:
        inset 0 0 18px rgba(160, 110, 60, 0.18),
        inset 0 -2px 0 rgba(0,0,0,0.06),
        0 4px 10px rgba(0,0,0,0.45);
    padding: 14px 12px;
    text-align: center;
    color: #2a1f10;
    font-family: var(--font-display, 'Cinzel', serif);
    rotate: -1deg;
}
.myst-env-paper-day {
    display: block;
    font-size: 0.7rem;
    color: #b91c1c;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.myst-env-paper-title {
    display: block;
    font-size: 0.85rem;
    color: #2a1f10;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 10px;
}
.myst-env-paper-stamp {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px dashed #b91c1c;
    color: #b91c1c;
    line-height: 32px;
    margin-top: 6px;
    opacity: 0.65;
}

/* Üst kapak — V (üçgen) şeklinde, açılır.
   Tek elementte clip-path: V-down (∇). transform-origin top center → rotateX
   üçgenin tepe noktasını yukarı atar, açıldığında ∧ (point-up) görünür. */
.myst-env-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 65%;
    background:
        radial-gradient(circle 6px at 22% 36%, rgba(0,0,0,0.06), transparent 80%),
        radial-gradient(circle 4px at 70% 22%, rgba(255,255,255,0.05), transparent 80%),
        linear-gradient(160deg, #d2a87d 0%, #ad7f55 55%, #7a5333 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transition: transform 0.7s cubic-bezier(0.55, 0.05, 0.55, 1.05);
    z-index: 4;
    pointer-events: none;
    box-shadow: inset 0 -6px 14px rgba(0,0,0,0.28);
}

/* Mum mührü */
.myst-env-seal {
    position: absolute;
    top: 60%;
    left: 50%;
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, #fca5a5 0%, #ef4444 25%, #991b1b 65%, #4a0a0a 100%);
    color: #fef2f2;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    box-shadow:
        inset 0 -4px 8px rgba(0,0,0,0.55),
        inset 0 2px 0 rgba(255,255,255,0.22),
        0 4px 14px rgba(220,38,38,0.55),
        0 0 0 2px rgba(91, 16, 16, 0.4);
    z-index: 5;
    transition: transform 0.45s, opacity 0.45s;
    animation: sealPulse 2.2s ease-in-out infinite;
}
.myst-env-seal::before {
    /* Mum dripleri kenarda */
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 100%, rgba(220,38,38,0.5), transparent 35%);
    z-index: -1;
    filter: blur(2px);
}
@keyframes sealPulse {
    0%, 100% {
        box-shadow: inset 0 -4px 8px rgba(0,0,0,0.55), inset 0 2px 0 rgba(255,255,255,0.22),
                    0 4px 14px rgba(220,38,38,0.55), 0 0 0 2px rgba(91,16,16,0.4);
    }
    50% {
        box-shadow: inset 0 -4px 8px rgba(0,0,0,0.55), inset 0 2px 0 rgba(255,255,255,0.22),
                    0 6px 22px rgba(220,38,38,0.85), 0 0 0 2px rgba(91,16,16,0.4);
    }
}

.myst-env-tag {
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display, 'Cinzel', serif);
    color: var(--gold, #f6d56d);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

/* === Açılma animasyonu === */
.myst-envelope.is-opening {
    pointer-events: none;
}
.myst-envelope.is-opening .myst-env-flap {
    transform: rotateX(165deg);
    transition: transform 0.7s cubic-bezier(0.55, 0.05, 0.55, 1.05);
}
.myst-envelope.is-opening .myst-env-seal {
    transform: translate(-50%, -50%) scale(2.6) rotate(35deg);
    opacity: 0;
    animation: none;
}
.myst-envelope.is-opening .myst-env-paper {
    opacity: 1;
    transform: translateZ(60px) translateY(-58%);
}
.myst-envelope.is-opening .myst-env-body {
    box-shadow:
        inset 0 -10px 22px rgba(0,0,0,0.45),
        inset 0 0 60px rgba(246, 213, 109, 0.25),
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(246, 213, 109, 0.35);
}
.myst-envelope.is-opening .myst-env-ground {
    width: 96%;
    opacity: 0.65;
}

.myst-envelope.is-shake {
    animation: mystShake 0.5s ease-in-out;
}
@keyframes mystShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-14px) rotate(-1deg); }
    75% { transform: translateX(14px) rotate(1deg); }
}

/* === Buruşuk kağıt modal === */
.myst-paper-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    padding: 24px 16px;
    overflow-y: auto;
}
.myst-paper-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.myst-paper-sheet {
    position: relative;
    width: 100%;
    max-width: 580px;
    background:
        /* coffee leke */
        radial-gradient(circle 90px at 88% 12%, rgba(139, 90, 43, 0.16) 0%, transparent 70%),
        radial-gradient(circle 70px at 8% 88%, rgba(139, 90, 43, 0.12) 0%, transparent 70%),
        /* buruşma izleri (radyal gölgeler) */
        radial-gradient(ellipse 240px 24px at 30% 18%, rgba(0,0,0,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 220px 22px at 70% 35%, rgba(0,0,0,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 280px 28px at 45% 58%, rgba(0,0,0,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 200px 20px at 60% 82%, rgba(0,0,0,0.06) 0%, transparent 70%),
        /* kağıt grain */
        repeating-linear-gradient(0deg, transparent 0 24px, rgba(140, 100, 50, 0.04) 24px 25px),
        /* zemin */
        linear-gradient(180deg, #fdf6e3 0%, #f5e7c0 60%, #e8d49c 100%);
    color: #2a1f10;
    border: 1px solid rgba(180, 140, 90, 0.4);
    border-radius: 4px 9px 5px 7px;
    box-shadow:
        inset 0 0 36px rgba(160, 110, 60, 0.12),
        inset 0 -3px 8px rgba(0, 0, 0, 0.06),
        0 30px 70px rgba(0, 0, 0, 0.65),
        0 8px 16px rgba(0, 0, 0, 0.4);
    padding: 36px 28px 24px;
    transform: scale(0.6) rotate(-12deg);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}
.myst-paper-overlay.is-open .myst-paper-sheet {
    transform: scale(1) rotate(-0.8deg);
    opacity: 1;
}

/* Sahte yapışkan bant — köşelerde */
.myst-paper-sheet::before,
.myst-paper-sheet::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 64px;
    height: 22px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(220,210,160,0.45) 50%, rgba(255,255,255,0.55) 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    border-left: 1px dashed rgba(255,255,255,0.35);
    border-right: 1px dashed rgba(255,255,255,0.35);
}
.myst-paper-sheet::before { left: 36px; transform: rotate(-4deg); }
.myst-paper-sheet::after  { right: 36px; transform: rotate(3deg); }

.myst-paper-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(91, 16, 16, 0.1);
    color: #5a3c22;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
}
.myst-paper-close:hover { background: rgba(91, 16, 16, 0.2); transform: scale(1.1); }

.myst-paper-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px dashed rgba(91, 16, 16, 0.25);
}
.myst-paper-day-stamp {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #b91c1c;
    color: #b91c1c;
    display: grid;
    place-items: center;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-align: center;
    transform: rotate(-6deg);
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.3);
    line-height: 1.1;
}
.myst-paper-day-stamp small {
    display: block;
    font-size: 1.4rem;
    letter-spacing: 0;
    margin-top: -2px;
}
.myst-paper-title {
    flex: 1;
    margin: 0;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #2a1f10;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.myst-paper-importance {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.myst-paper-importance.is-critical {
    background: rgba(185, 28, 28, 0.15);
    color: #b91c1c;
    border: 1.5px solid rgba(185, 28, 28, 0.5);
    transform: rotate(-2deg);
}
.myst-paper-importance.is-important {
    background: rgba(217, 119, 6, 0.15);
    color: #92400e;
    border: 1.5px solid rgba(217, 119, 6, 0.5);
}

.myst-paper-body p {
    margin: 0 0 14px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #2a1f10;
    font-family: 'Georgia', 'Charter', serif;
    text-align: left;
}
.myst-paper-body .myst-rich-text,
.myst-paper-body .myst-rich-text p,
.myst-paper-body .myst-rich-text li,
.myst-paper-body .myst-rich-text blockquote {
    color: #2a1f10;
    font-family: 'Georgia', 'Charter', serif;
}
.myst-paper-body .myst-rich-text a {
    color: #7c2d12;
}
.myst-paper-body .myst-rich-text blockquote {
    border-left-color: rgba(120, 80, 40, 0.45);
}
.myst-paper-body .myst-rich-text img {
    border-radius: 3px;
    border: 8px solid #fef9d8;
    outline: 1px solid rgba(120, 80, 40, 0.25);
}
.myst-paper-body img {
    display: block;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    border-radius: 3px;
    border: 8px solid #fef9d8;
    outline: 1px solid rgba(120, 80, 40, 0.25);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(0,0,0,0.05);
    margin: 12px auto;
    cursor: zoom-in;
    transform: rotate(-1deg);
    transition: transform 0.2s;
}
.myst-paper-body img:hover { transform: rotate(0deg) scale(1.02); }

.myst-paper-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(91, 16, 16, 0.2);
}
.myst-paper-confirm {
    padding: 10px 22px;
    border-radius: 4px;
    border: 2px solid #5a3c22;
    background: linear-gradient(180deg, #fdf6dc 0%, #e9d6b9 100%);
    color: #2a1f10;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.myst-paper-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
    background: linear-gradient(180deg, #fff8e0 0%, #efdcc0 100%);
}

@media (max-width: 600px) {
    .myst-envelope { width: 240px; height: 156px; }
    .myst-paper-sheet { padding: 32px 18px 18px; max-width: 100%; }
    .myst-paper-header { gap: 10px; }
    .myst-paper-day-stamp { width: 48px; height: 48px; font-size: 0.62rem; }
    .myst-paper-day-stamp small { font-size: 1.2rem; }
    .myst-paper-title { font-size: 1.1rem; }
    .myst-paper-body p { font-size: 0.95rem; }
}

/* === Tam Dedektif rozeti (header) === */
.myst-fulldet-badge {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1a1208;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4), inset 0 -2px 0 rgba(0,0,0,0.15);
    margin-top: 4px;
}

/* === Geri sayım === */
.myst-countdown {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(246, 213, 109, 0.3);
    color: rgba(248, 251, 255, 0.8);
    font-size: 0.85rem;
}
.myst-countdown strong {
    color: var(--gold, #f6d56d);
    font-family: var(--font-mono, monospace);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    margin-left: 2px;
}

/* === Defter notu === */
.myst-note-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(246, 213, 109, 0.18);
}
.myst-note-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--gold, #f6d56d);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    user-select: none;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.myst-note-toggle:hover { opacity: 1; }
.myst-note-block.has-note .myst-note-toggle { opacity: 1; color: #fde047; }

.myst-note-input {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(246, 213, 109, 0.25);
    background:
        repeating-linear-gradient(0deg, transparent 0 22px, rgba(246, 213, 109, 0.06) 22px 23px),
        rgba(0, 0, 0, 0.4);
    color: rgba(248, 251, 255, 0.92);
    font-family: 'Georgia', serif;
    font-size: 0.92rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 70px;
    max-height: 220px;
}
.myst-note-block.is-expanded .myst-note-input,
.myst-note-block.has-note .myst-note-input { display: block; }
.myst-note-input:focus {
    outline: none;
    border-color: var(--gold, #f6d56d);
    box-shadow: 0 0 0 2px rgba(246, 213, 109, 0.15);
}
.myst-note-status {
    display: block;
    font-size: 0.7rem;
    margin-top: 4px;
    color: rgba(248, 251, 255, 0.4);
    min-height: 16px;
}
.myst-note-status.is-saving { color: var(--gold, #f6d56d); }
.myst-note-status.is-saved { color: #86efac; }
.myst-note-status.is-error { color: #fca5a5; }

/* === Şüpheli wrap + elimine et butonu === */
.myst-suspect-wrap {
    position: relative;
    transition: opacity 0.25s, filter 0.25s;
}
.myst-suspect-wrap.is-eliminated {
    opacity: 0.45;
    filter: grayscale(0.85);
}
.myst-suspect-wrap.is-eliminated::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 49.2%, rgba(220, 38, 38, 0.7) 49.5%, rgba(220, 38, 38, 0.7) 50.5%, transparent 50.8%);
    pointer-events: none;
    z-index: 4;
}

.myst-suspect-elim {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(91, 16, 16, 0.35);
    background: rgba(254, 242, 242, 0.85);
    color: #5a3c22;
    cursor: pointer;
    z-index: 6;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    transition: transform 0.15s, background 0.18s, color 0.18s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.myst-suspect-elim:hover {
    transform: scale(1.12);
    background: #fef2f2;
    color: #b91c1c;
}
.myst-suspect-elim.is-active {
    background: #b91c1c;
    color: #fff;
    border-color: #5b1010;
}

/* === Oy dağılımı (sonuç ekranı) === */
.myst-vote-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed rgba(248, 251, 255, 0.12);
    text-align: left;
}
.myst-vote-title {
    margin: 0 0 14px;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.95rem;
    color: var(--gold, #f6d56d);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.myst-vote-total {
    font-size: 0.7rem;
    color: rgba(248, 251, 255, 0.5);
    text-transform: none;
    letter-spacing: 0;
    margin-left: auto;
}
.myst-vote-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.myst-vote-row {
    display: grid;
    grid-template-columns: 140px 1fr 84px;
    align-items: center;
    gap: 10px;
}
.myst-vote-name {
    font-size: 0.85rem;
    color: rgba(248, 251, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.myst-vote-row.is-thief .myst-vote-name {
    color: #fca5a5;
    font-weight: 700;
}
.myst-vote-bar {
    height: 18px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(248, 251, 255, 0.06);
}
.myst-vote-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.6), rgba(148, 163, 184, 0.85));
    transition: width 0.5s;
}
.myst-vote-row.is-thief .myst-vote-fill {
    background: linear-gradient(90deg, #b91c1c, #ef4444);
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.4);
}
.myst-vote-stat {
    text-align: right;
    color: rgba(248, 251, 255, 0.85);
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
}
.myst-vote-stat small {
    color: rgba(248, 251, 255, 0.5);
    font-size: 0.7rem;
}
@media (max-width: 600px) {
    .myst-vote-row { grid-template-columns: 100px 1fr 70px; gap: 6px; }
    .myst-vote-name { font-size: 0.78rem; }
    .myst-vote-stat { font-size: 0.74rem; }
}

/* === Bonus kazanan kartı (sonuç) === */
.myst-fulldet-card {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15);
}
.myst-fulldet-card i {
    font-size: 1.7rem;
    color: var(--gold, #f6d56d);
    text-shadow: 0 0 14px rgba(246, 213, 109, 0.6);
}
.myst-fulldet-card strong {
    display: block;
    color: #fde047;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}
.myst-fulldet-card small {
    color: rgba(248, 251, 255, 0.75);
    font-size: 0.78rem;
}

/* === Buruşuk kağıt — Notlar (handwritten) === */
.myst-paper-note {
    margin: 18px 0 4px;
    padding: 14px 16px 12px;
    border: 1px dashed rgba(120, 80, 40, 0.45);
    border-radius: 4px;
    background:
        repeating-linear-gradient(0deg, transparent 0 26px, rgba(91, 60, 34, 0.12) 26px 27px),
        rgba(255, 252, 240, 0.55);
    position: relative;
}
.myst-paper-note-label {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.7rem;
    color: #5a3c22;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
}
.myst-paper-note-text {
    font-family: 'Caveat', 'Kalam', 'Comic Sans MS', cursive;
    font-size: 1.55rem;
    line-height: 1.15;
    color: #1e3a8a;
    transform: rotate(-0.6deg);
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: 0 0 1px rgba(30, 58, 138, 0.15);
}
.myst-paper-note-text.myst-paper-note-empty {
    color: rgba(91, 60, 34, 0.5);
    font-size: 1.25rem;
    font-style: italic;
}

/* Defterdeki not input'u — el yazısı */
.myst-note-input {
    font-family: 'Caveat', 'Kalam', 'Comic Sans MS', cursive;
    font-size: 1.45rem;
    line-height: 1.15;
    color: #93c5fd;
}

/* === Şüpheli Dosyası (Police File) Modal === */
.myst-dossier-overlay { padding: 20px 12px; }

.myst-dossier-sheet {
    position: relative;
    width: 100%;
    max-width: 640px;
    background:
        radial-gradient(circle 100px at 90% 8%, rgba(139, 90, 43, 0.18) 0%, transparent 70%),
        radial-gradient(circle 70px at 6% 92%, rgba(139, 90, 43, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 220px 22px at 30% 25%, rgba(0,0,0,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 240px 26px at 70% 60%, rgba(0,0,0,0.06) 0%, transparent 70%),
        repeating-linear-gradient(0deg, transparent 0 28px, rgba(140, 100, 50, 0.05) 28px 29px),
        linear-gradient(180deg, #ede0c0 0%, #d9c594 100%);
    color: #2a1f10;
    border: 1.5px solid rgba(120, 80, 40, 0.5);
    border-radius: 4px 10px 5px 8px;
    box-shadow:
        inset 0 0 36px rgba(160, 110, 60, 0.18),
        inset 0 -3px 8px rgba(0, 0, 0, 0.08),
        0 30px 70px rgba(0, 0, 0, 0.65),
        0 8px 16px rgba(0, 0, 0, 0.4);
    padding: 30px 26px 22px;
    transform: scale(0.6) rotate(-10deg);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}
.myst-paper-overlay.is-open .myst-dossier-sheet {
    transform: scale(1) rotate(-0.5deg);
    opacity: 1;
}

/* Köşelerde yapışkan bant */
.myst-dossier-sheet::before,
.myst-dossier-sheet::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 70px;
    height: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(220,210,160,0.4) 50%, rgba(255,255,255,0.5) 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.myst-dossier-sheet::before { left: 30px; transform: rotate(-3deg); }
.myst-dossier-sheet::after  { right: 30px; transform: rotate(3deg); }

.myst-dossier-classified {
    position: absolute;
    top: 18px;
    right: 70px;
    padding: 4px 14px;
    border: 2.5px solid #b91c1c;
    color: #b91c1c;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    transform: rotate(-8deg);
    opacity: 0.85;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    background: rgba(255, 244, 230, 0.5);
    pointer-events: none;
}

.myst-dossier-head {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px dashed rgba(91, 16, 16, 0.3);
}
.myst-dossier-photo {
    flex-shrink: 0;
    width: 110px;
    text-align: center;
}
.myst-dossier-photo img,
.myst-dossier-photo i {
    width: 110px;
    height: 130px;
    background: linear-gradient(180deg, #94a3b8, #475569);
    border: 4px solid #fef9d8;
    outline: 1px solid rgba(120, 80, 40, 0.4);
    object-fit: cover;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.6);
    font-size: 2.4rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    filter: grayscale(0.5) sepia(0.15) contrast(1.05);
}
.myst-dossier-photo i { line-height: 130px; }
.myst-dossier-photo-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.62rem;
    color: rgba(91, 60, 34, 0.7);
    margin-top: 6px;
    letter-spacing: 0.04em;
}

.myst-dossier-id { flex: 1; min-width: 0; padding-top: 4px; }
.myst-dossier-id h3 {
    margin: 0 0 4px;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.myst-dossier-id p {
    margin: 0 0 8px;
    color: #5a3c22;
    font-size: 0.92rem;
    font-style: italic;
}
.myst-dossier-fileno {
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    color: rgba(91, 60, 34, 0.6);
}
.myst-dossier-fileno span {
    color: #b91c1c;
    font-weight: 700;
}

.myst-dossier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 18px;
    padding: 14px 16px;
    background: rgba(255, 252, 240, 0.4);
    border: 1px dashed rgba(120, 80, 40, 0.3);
    border-radius: 4px;
    margin-bottom: 14px;
}
.myst-dossier-grid > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    border-bottom: 1px dotted rgba(120, 80, 40, 0.25);
    padding: 4px 0;
}
.myst-dossier-grid label {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.68rem;
    color: rgba(91, 60, 34, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.myst-dossier-grid span {
    color: #2a1f10;
    font-size: 0.92rem;
    text-align: right;
    font-weight: 600;
}
.myst-dossier-mono {
    font-family: var(--font-mono, monospace) !important;
    letter-spacing: 0.05em !important;
}

.myst-dossier-section {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(255, 252, 240, 0.35);
    border-left: 3px solid #5a3c22;
    border-radius: 0 4px 4px 0;
}
.myst-dossier-section h4 {
    margin: 0 0 6px;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.78rem;
    color: #5a3c22;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.myst-dossier-section p {
    margin: 0;
    font-family: 'Georgia', serif;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #2a1f10;
}
.myst-dossier-section.is-motive { border-left-color: #b91c1c; background: rgba(254, 226, 226, 0.45); }
.myst-dossier-section.is-motive h4 { color: #991b1b; }
.myst-dossier-section.is-alibi { border-left-color: #2563eb; background: rgba(219, 234, 254, 0.4); }
.myst-dossier-section.is-alibi h4 { color: #1e40af; }

.myst-dossier-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(91, 16, 16, 0.25);
}
.myst-paper-close-text {
    padding: 10px 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(91, 60, 34, 0.4);
    background: transparent;
    color: #5a3c22;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.myst-paper-close-text:hover {
    background: rgba(91, 60, 34, 0.1);
}

.myst-dossier-select {
    padding: 12px 24px;
    border-radius: 4px;
    border: 2px solid #5b1010;
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    color: #fef2f2;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(185, 28, 28, 0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
    transition: transform 0.15s, box-shadow 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.myst-dossier-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.55), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.myst-dossier-select:active { transform: translateY(0); }

@media (max-width: 600px) {
    .myst-dossier-sheet { padding: 26px 16px 18px; }
    .myst-dossier-classified { right: 50px; font-size: 0.65rem; padding: 3px 10px; }
    .myst-dossier-head { flex-direction: column; align-items: center; text-align: center; }
    .myst-dossier-photo { width: 100px; }
    .myst-dossier-photo img, .myst-dossier-photo i { width: 100px; height: 120px; }
    .myst-dossier-id h3 { font-size: 1.2rem; }
    .myst-dossier-grid { grid-template-columns: 1fr; gap: 4px 0; padding: 12px; }
    .myst-dossier-footer { flex-direction: column-reverse; }
    .myst-dossier-select { width: 100%; justify-content: center; }
    .myst-paper-close-text { width: 100%; }
    .myst-paper-note-text { font-size: 1.4rem; }
}

/* Şüpheli kartları "kilitli" görsel — disabled değil ama hover hareketi yok */
.myst-suspect.is-locked-visual { opacity: 0.85; }
.myst-suspects-section.is-locked .myst-suspect.is-locked-visual:hover {
    transform: none;
    rotate: inherit;
}

/* === Büyüteç kürsör — şüpheli kartlar + açılmış ipucular üzerinde === */
.mystery-area .myst-suspect:not(:disabled),
.mystery-area .myst-clue-opened {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><circle cx='11' cy='11' r='7' fill='rgba(246,213,109,0.22)' stroke='%23f6d56d' stroke-width='2'/><line x1='16' y1='16' x2='25' y2='25' stroke='%23f6d56d' stroke-width='3' stroke-linecap='round'/></svg>") 11 11, pointer;
}
.mystery-area .myst-clue-img img {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><circle cx='11' cy='11' r='7' fill='rgba(246,213,109,0.32)' stroke='%23f6d56d' stroke-width='2'/><text x='11' y='14' text-anchor='middle' font-size='10' fill='%23f6d56d' font-weight='700'>+</text><line x1='16' y1='16' x2='25' y2='25' stroke='%23f6d56d' stroke-width='3' stroke-linecap='round'/></svg>") 11 11, zoom-in;
}

.myst-env-prompt {
    text-align: center;
    max-width: 480px;
}
.myst-env-channel {
    color: rgba(248,251,255,0.7);
    font-size: 0.95rem;
    margin-top: 18px;
    margin-bottom: 14px;
}
.myst-env-channel strong {
    color: var(--gold, #f6d56d);
}
.myst-env-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.myst-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 10px;
    border: 2px solid rgba(246, 213, 109, 0.25);
    background: rgba(0, 0, 0, 0.6);
    color: var(--gold, #f6d56d);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.myst-input:focus {
    outline: none;
    border-color: var(--gold, #f6d56d);
    box-shadow: 0 0 0 4px rgba(246,213,109,0.15), inset 0 0 14px rgba(246,213,109,0.1);
}
.myst-btn-primary {
    padding: 14px 22px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f6d56d, #d4af37);
    color: #1a1208;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.18s;
    box-shadow: 0 6px 18px rgba(246, 213, 109, 0.35);
    white-space: nowrap;
}
.myst-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(246, 213, 109, 0.5);
}
.myst-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.myst-env-hint {
    min-height: 20px;
    font-size: 0.85rem;
    color: rgba(248,251,255,0.55);
}
.myst-env-hint-error { color: #fca5a5; }

/* --- Dedektif Defteri (journal) --- */
.myst-journal {
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    border: 1px solid rgba(248, 251, 255, 0.06);
    padding: 18px;
}
.myst-journal-head {
    font-family: var(--font-display, 'Cinzel', serif);
    color: var(--gold, #f6d56d);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(246, 213, 109, 0.2);
}
.myst-clues {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.myst-clue {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(248, 251, 255, 0.08);
    background: rgba(15, 23, 42, 0.55);
    position: relative;
    min-width: 0;
}
.myst-clue-num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background: rgba(246, 213, 109, 0.12);
    border: 1.5px solid rgba(246, 213, 109, 0.3);
    color: var(--gold, #f6d56d);
}
.myst-clue-body { flex: 1; min-width: 0; }
.myst-clue-body h4 {
    margin: 0 0 6px;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.95rem;
    color: #f8fbff;
    display: flex; align-items: center; gap: 8px;
}
.myst-clue-text {
    margin: 0;
    color: rgba(248, 251, 255, 0.78);
    line-height: 1.5;
    font-size: 0.92rem;
    overflow-wrap: break-word;
    word-break: break-word;
}
.myst-clue-meta {
    display: block;
    margin-top: 8px;
    color: rgba(248, 251, 255, 0.4);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}
.myst-clue-img {
    margin-top: 10px;
    max-width: 100%;
}
.myst-clue-img img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 220px;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(246, 213, 109, 0.25);
    cursor: zoom-in;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.myst-clue-img img:hover {
    transform: scale(1.02);
    border-color: rgba(246, 213, 109, 0.55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 14px rgba(246, 213, 109, 0.2);
}

.myst-clue-locked .myst-clue-num {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.25);
    color: rgba(148, 163, 184, 0.6);
}
.myst-clue-locked .myst-clue-body h4 { color: rgba(248,251,255,0.45); }
.myst-clue-locked .myst-clue-text { color: rgba(248,251,255,0.35); font-style: italic; }

.myst-clue-opened.is-critical {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.18), rgba(15, 23, 42, 0.55));
}
.myst-clue-opened.is-critical .myst-clue-num {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.myst-imp {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 6px;
}
.myst-imp-crit {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.myst-imp-imp {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* --- Şüpheliler — mantar tahta + kırmızı ip dedektif panosu --- */
.myst-suspects-section {
    margin-top: 24px;
    padding: 24px 18px 18px;
    border-radius: 14px;
    background:
        /* mantar speckles */
        radial-gradient(circle 1.5px at 12% 18%, rgba(0,0,0,0.35) 100%, transparent),
        radial-gradient(circle 1.5px at 78% 25%, rgba(0,0,0,0.3) 100%, transparent),
        radial-gradient(circle 2px at 44% 62%, rgba(0,0,0,0.32) 100%, transparent),
        radial-gradient(circle 1px at 88% 70%, rgba(0,0,0,0.28) 100%, transparent),
        radial-gradient(circle 1.2px at 24% 88%, rgba(0,0,0,0.3) 100%, transparent),
        radial-gradient(circle 2px at 62% 14%, rgba(0,0,0,0.25) 100%, transparent),
        radial-gradient(circle 1.5px at 8% 50%, rgba(255,255,255,0.04) 100%, transparent),
        radial-gradient(circle 1px at 92% 42%, rgba(255,255,255,0.05) 100%, transparent),
        /* mantar zemin */
        radial-gradient(ellipse at top, rgba(139, 90, 43, 0.22), transparent 70%),
        linear-gradient(180deg, #4a3320 0%, #2f2010 100%);
    border: 1px solid rgba(139, 90, 43, 0.5);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.04),
        0 8px 22px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
}

/* SVG: kırmızı ip bağlantıları */
.myst-strings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.myst-strings path {
    fill: none;
    stroke: #c8102e;
    stroke-width: 1.6;
    stroke-linecap: round;
    filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.6));
    opacity: 0.85;
    animation: stringSway 6s ease-in-out infinite;
    transform-origin: center;
}
.myst-strings path:nth-child(2n) { animation-delay: -2s; animation-duration: 7s; }
.myst-strings path:nth-child(3n) { animation-delay: -4s; animation-duration: 5.5s; }
@keyframes stringSway {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(1.2px); }
}
.myst-suspects-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #fca5a5;
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.myst-suspects-section .myst-warn,
.myst-suspects-section .myst-tag-guessed {
    text-shadow: none;
}
.myst-warn {
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(248, 251, 255, 0.6);
    margin-left: auto;
}
.myst-tag-guessed {
    font-size: 0.7rem;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    text-transform: none;
    letter-spacing: 0;
}
.myst-tag-locked {
    font-size: 0.7rem;
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    text-transform: none;
    letter-spacing: 0;
}

/* Pano kilitliyse kartlar daha mat görünür ama hover hareketi yok */
.myst-suspects-section.is-locked .myst-suspect {
    cursor: not-allowed;
}
.myst-suspects-section.is-locked .myst-suspect:not(.is-picked) {
    opacity: 0.7;
    filter: grayscale(0.25);
}
.myst-suspects-section.is-locked .myst-suspect:hover {
    transform: none;
    rotate: inherit;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.45),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.myst-suspect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px 18px;
    padding-top: 10px;
    position: relative;
    z-index: 2;
}
.myst-suspect {
    text-align: center;
    padding: 22px 12px 14px;
    border-radius: 6px;
    border: 1.5px solid rgba(248, 251, 255, 0.12);
    background:
        /* dosya/kart kağıdı dokusu */
        repeating-linear-gradient(180deg, transparent 0 22px, rgba(0,0,0,0.04) 22px 23px),
        linear-gradient(180deg, #f5f0e1 0%, #e8dec5 100%);
    color: #1f2937;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, rotate 0.2s;
    position: relative;
    z-index: 2;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.45),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    /* hafif rastgele eğim (kart kart farklı yönde) */
    rotate: -1.2deg;
}
.myst-suspect:nth-child(2n)  { rotate:  1.5deg; }
.myst-suspect:nth-child(3n)  { rotate: -0.8deg; }
.myst-suspect:nth-child(5n)  { rotate:  2deg; }

/* Raptiye — kart üst ortası, ipler buraya bağlanır */
.myst-suspect::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 30%, #fecaca 0%, #ef4444 28%, #b91c1c 65%, #5b1010 100%);
    box-shadow:
        0 3px 5px rgba(0, 0, 0, 0.55),
        inset 0 -2px 0 rgba(0, 0, 0, 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 0.35);
    z-index: 5;
}

.myst-suspect:hover:not(:disabled) {
    transform: translateY(-5px);
    rotate: 0deg;
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.6),
        inset 0 -2px 0 rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 18px rgba(246, 213, 109, 0.2);
}
.myst-suspect:disabled { opacity: 0.55; cursor: not-allowed; }

.myst-suspect-av {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(180deg, #94a3b8, #475569);
    border: 2px solid rgba(31, 41, 55, 0.4);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    filter: grayscale(0.3) sepia(0.15);
}
.myst-suspect-av img { width: 100%; height: 100%; object-fit: cover; }

.myst-suspect-name {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}
.myst-suspect-title {
    font-size: 0.72rem;
    color: #991b1b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 700;
}
.myst-suspect-desc {
    font-size: 0.76rem;
    color: rgba(31, 41, 55, 0.75);
    line-height: 1.4;
    font-style: italic;
}

.myst-suspect.is-picked {
    border-color: #b91c1c;
    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.25),
        0 14px 28px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.myst-suspect-stamp {
    position: absolute;
    top: 14px;
    right: 8px;
    transform: rotate(12deg);
    background: transparent;
    color: #b91c1c;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 800;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    padding: 3px 10px;
    text-transform: uppercase;
    border: 2px solid #b91c1c;
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    opacity: 0.85;
    pointer-events: none;
}

/* --- Sonuç dosyası --- */
.myst-result {
    margin: 0 0 20px;
    padding: 26px 22px;
    border-radius: 14px;
    border: 2px solid rgba(248, 251, 255, 0.1);
    background:
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,0.04) 14px 16px),
        linear-gradient(180deg, #1e293b, #0f172a);
    text-align: center;
    position: relative;
}
.myst-result h3 {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.4rem;
    color: var(--gold, #f6d56d);
    margin: 12px 0 18px;
    letter-spacing: 0.08em;
}
.myst-result-stamp {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: var(--font-display, 'Cinzel', serif);
    font-weight: 800;
    letter-spacing: 0.2em;
    border-radius: 4px;
    transform: rotate(-3deg);
    font-size: 0.85rem;
    border: 2px solid currentColor;
    margin-bottom: 6px;
}
.myst-result.is-winner .myst-result-stamp { color: #86efac; }
.myst-result.is-correct .myst-result-stamp { color: #f97316; }
.myst-result.is-wrong .myst-result-stamp { color: #fca5a5; }
.myst-result.is-winner { border-color: rgba(34, 197, 94, 0.45); }
.myst-result.is-correct { border-color: rgba(249, 115, 22, 0.4); }

.myst-thief {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    margin: 12px auto;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    text-align: left;
}
.myst-thief-av {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid rgba(220, 38, 38, 0.4);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fca5a5;
    font-size: 1.5rem;
}
.myst-thief-av img { width: 100%; height: 100%; object-fit: cover; }
.myst-thief-label {
    font-size: 0.7rem;
    color: #fca5a5;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.myst-thief-name {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 1.2rem;
    color: #fff;
}
.myst-thief-title {
    font-size: 0.78rem;
    color: rgba(248, 251, 255, 0.7);
}

.myst-final-story {
    color: rgba(248, 251, 255, 0.85);
    line-height: 1.6;
    margin: 14px 0 8px;
    font-style: italic;
}
.myst-final-story.myst-rich-text p,
.myst-final-msg.myst-rich-text p {
    margin-bottom: 0.45em;
}
.myst-final-msg {
    font-family: var(--font-display, 'Cinzel', serif);
    color: var(--gold, #f6d56d);
    font-size: 1.05rem;
    margin: 8px 0 0;
}

/* Tablet — şüpheli grid 2 kolon, küçük kartlar */
@media (max-width: 760px) {
    .myst-suspect-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
    .myst-suspect { padding: 18px 10px 12px; rotate: -0.5deg; }
    .myst-suspect:nth-child(2n) { rotate: 0.6deg; }
    .myst-suspect:nth-child(3n) { rotate: -0.3deg; }
    .myst-suspect:nth-child(5n) { rotate: 0.8deg; }
    .myst-suspect-av { width: 60px; height: 60px; }
    .myst-suspect-name { font-size: 0.88rem; }
    .myst-suspect-title { font-size: 0.66rem; }
    .myst-suspect-desc { font-size: 0.72rem; }
    .myst-suspect-stamp { font-size: 0.55rem; padding: 2px 8px; top: 10px; right: 6px; }
}

/* Mobil — daha kompakt */
@media (max-width: 600px) {
    .mystery-area { padding: 10px; }
    .event-play-area.mystery-area { padding: 12px 8px; }
    .myst-envelope { width: 200px; height: 125px; }
    .myst-env-input-row { flex-direction: column; }
    .myst-input, .myst-btn-primary { width: 100%; }
    .myst-input { font-size: 1rem; padding: 12px 14px; }
    .myst-suspects-section { padding: 18px 12px 14px; }
    .myst-suspects-head { font-size: 0.85rem; gap: 6px; }
    .myst-warn { font-size: 0.7rem; margin-left: 0; flex-basis: 100%; }
    .myst-clue { gap: 10px; padding: 12px; }
    .myst-clue-num { width: 36px; height: 36px; font-size: 0.78rem; }
    .myst-clue-body h4 { font-size: 0.88rem; }
    .myst-clue-text { font-size: 0.86rem; }
    .myst-clue-img img { max-height: 180px; }
    .myst-suspect::before { width: 13px; height: 13px; top: -6px; }
}

/* Küçük mobil — şüpheli grid tek kolon */
@media (max-width: 480px) {
    .myst-suspect-grid { grid-template-columns: 1fr; gap: 22px; max-width: 320px; margin: 0 auto; }
    .myst-suspect { rotate: 0deg; padding: 18px 12px 14px; }
    .myst-suspect:nth-child(2n),
    .myst-suspect:nth-child(3n),
    .myst-suspect:nth-child(5n) { rotate: 0deg; }
    .myst-strings { display: none; } /* tek kolonda dik ip pek anlam ifade etmiyor */
    .myst-suspect-av { width: 64px; height: 64px; }
    .myst-suspect-stamp { top: 12px; right: 10px; }
}

/* 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: 760px) {
    .matching-board { grid-template-columns: 1fr; }
    .matching-row { grid-template-columns: 1fr; }
    .matching-bank-wrap { order: -1; }
    .swipe-actions { grid-template-columns: 1fr 1fr; }
    .swipe-start { grid-column: 1 / -1; grid-row: 1; width: 100%; }
    .swipe-no, .swipe-yes { grid-row: 2; }
}
@media (max-width: 600px) { .reflex-arena { min-height: 180px; } .memory-grid { gap: 6px; } .mem-card-front { font-size: 1.4rem; } .matching-stats, .swipe-stats { border-radius: var(--radius-md); } .matching-actions .answer-submit { width: 100%; min-width: 0; } .swipe-deck { height: 300px; } .swipe-card { padding: 20px; } }

.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; }
}
