:root {
    --bg: #070b0d;
    --panel: #0c1416;
    --panel-2: #101b1f;
    --line: #17272c;
    --text: #d7e3e6;
    --muted: #5f7a80;
    --accent: #4ddbc4;
    --kcal: #ff9f43;
    --wb: #c084fc;
    --map-base: #122a30;
    --map-stroke: #050a0c;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(77, 219, 196, 0.08), transparent 60%),
        var(--bg);
}

/* ---------------------------------------------------------------- header */
#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; }
#logo {
    height: 30px;
    width: auto;
    margin-right: 2px;
    filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.25));
}
body.no-logo #logo { display: none; }
.wordmark {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f0588f;   /* logo magentası */
    font-size: 17px;
}
.subtitle { color: var(--muted); font-size: 13px; }

.status { display: flex; align-items: center; gap: 10px; }
.pill {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--accent);
}
.pill.muted { color: var(--muted); }
.pill.conn { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
.pill.conn i { width: 7px; height: 7px; border-radius: 50%; background: #e05d5d; }
.pill.conn.online i { background: #f0588f; box-shadow: 0 0 8px #f0588f; }   /* logo magentası */
.pill.conn b { font-weight: 500; color: var(--muted); }
.clock { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; margin-left: 6px; }

/* ---------------------------------------------------------------- layout */
#main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 20px;
    padding: 20px 28px 28px;
    max-width: 1700px;
    margin: 0 auto;
}
#left { min-width: 0; }

@media (max-width: 1100px) {
    #main { grid-template-columns: 1fr; }
    #feed-wrap { max-height: 480px; }
}

body.no-feed #main { grid-template-columns: 1fr; }
body.no-feed #feed-wrap { display: none; }

/* ---------------------------------------------------------------- stats */
#stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}
.stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stat .value {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--text);
}
.stat .value small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.stat.kcal .value { color: var(--kcal); }
.stat.wb .value { color: var(--wb); }
.stat .value.bump { animation: bump 0.35s ease-out; }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---------------------------------------------------------------- map */
#map-wrap {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    overflow: hidden;
}
#map svg { display: block; width: 100%; height: auto; }

#map svg path {
    fill: var(--map-base);
    stroke: var(--map-stroke);
    stroke-width: 0.7;
    stroke-linejoin: round;
    transition: fill 0.25s linear;
}
#map svg g[data-plakakodu]:hover path { stroke: #2d4d55; }

#map svg g.hit path {
    stroke: var(--accent);
    stroke-width: 1.4;
    filter: url(#glow);
    animation: flash 1.4s ease-out;
}
@keyframes flash {
    0%   { fill: #9ff2e3; }
    30%  { fill: #4ddbc4; }
    100% { fill: inherit; }
}

#fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.pop {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    text-shadow: 0 0 6px rgba(0,0,0,0.9), 0 1px 2px rgba(0,0,0,0.9);
    animation: rise 1.9s cubic-bezier(0.18, 0.9, 0.32, 1) forwards;
    will-change: transform, opacity;
}
.pop .k { color: var(--kcal); font-size: 20px; }
.pop .w { color: var(--wb); font-size: 15px; }
.pop .k.big { font-size: 26px; }
@keyframes rise {
    0%   { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
    12%  { opacity: 1; transform: translate(-50%, -55%) scale(1.18); }
    25%  { transform: translate(-50%, -62%) scale(1); }
    75%  { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -170%) scale(0.95); }
}

.city-tag {
    position: absolute;
    transform: translate(-50%, 0);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
    animation: tag 1.6s ease-out forwards;
}
@keyframes tag {
    0% { opacity: 0; transform: translate(-50%, 6px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

#tooltip {
    position: absolute;
    pointer-events: none;
    background: #0a1114;
    border: 1px solid #22383f;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.45;
    z-index: 5;
    min-width: 140px;
}
#tooltip b { display: block; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 2px; }
#tooltip .k { color: var(--kcal); }
#tooltip .w { color: var(--wb); }

/* ---------------------------------------------------------------- leaderboard */
#board {
    margin-top: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 16px;
}
.board-title, .feed-title {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
#board { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 22px; }
.board-col { min-width: 0; }
@media (max-width: 1100px) { #board { grid-template-columns: 1fr; } }
#leaderboard { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 5px 18px; }
#leaderboard li { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; font-size: 12px; }
#leaderboard .name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#leaderboard .bar { height: 6px; background: #152328; border-radius: 3px; overflow: hidden; }
#leaderboard .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--kcal)); border-radius: 3px; transition: width 0.5s ease; }
#leaderboard .num { color: var(--kcal); font-variant-numeric: tabular-nums; white-space: nowrap; }
#leaderboard .num small { color: var(--muted); margin-left: 3px; }

/* ---------------------------------------------------------------- feed */
#feed-wrap {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 14px 10px;
    max-height: calc(100vh - 110px);
    overflow: hidden;
    position: sticky;
    top: 16px;
}
#feed { display: flex; flex-direction: column; gap: 6px; }

.item {
    display: grid;
    grid-template-columns: 4px 1fr auto;
    gap: 10px;
    padding: 8px 10px 8px 0;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    animation: slide-in 0.3s ease-out;
    transform-origin: 50% 0;
}
@keyframes slide-in {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}
.item .bar { border-radius: 8px 0 0 8px; background: var(--cat, #3a4b50); }
.item .body { min-width: 0; }
.item .studio { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 11.5px; margin-top: 2px; min-width: 0; }
.item .city { color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; font-size: 10.5px; white-space: nowrap; }
.item .city.none { color: #e05d5d; }
.item .act { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .right { text-align: right; font-variant-numeric: tabular-nums; }
.item .gain { font-weight: 700; font-size: 13px; white-space: nowrap; }
.item .gain .k { color: var(--kcal); }
.item .gain .w { color: var(--wb); margin-left: 6px; }
.item .ts { color: var(--muted); font-size: 11px; margin-top: 2px; }

/* ---------------------------------------------------------------- info modal */
.pill.info {
    cursor: pointer;
    width: 24px; height: 24px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font: italic 700 13px Georgia, "Times New Roman", serif;
    color: var(--muted);
    transition: color 0.15s, border-color 0.15s;
}
.pill.info:hover { color: var(--accent); border-color: var(--accent); }

.modal {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(3, 6, 7, 0.78);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.modal[hidden] { display: none; }
.modal-box {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: var(--panel);
    border: 1px solid #22383f;
    border-radius: 14px;
    padding: 26px 30px 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: modal-in 0.2s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-box h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: 0.02em; color: var(--accent); }
.modal-box h3 { margin: 16px 0 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.modal-box .lead { margin: 0; color: var(--text); line-height: 1.55; font-size: 13px; }
.modal-box .note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
.modal-box code { font-size: 12px; color: var(--accent); background: #0a1114; padding: 1px 5px; border-radius: 4px; }
.modal-box .k { color: var(--kcal); font-weight: 700; }
.modal-box .w { color: var(--wb); font-weight: 700; }
.modal-box .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .modal-box .cols { grid-template-columns: 1fr; } }
.cat-table, .ex-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cat-table th { text-align: left; font-weight: 600; font-size: 11px; color: var(--muted); padding: 0 6px 6px 0; }
.cat-table th:not(:first-child), .cat-table td:not(:first-child) { text-align: right; width: 54px; }
.cat-table td, .ex-table td { padding: 4px 6px 4px 0; border-top: 1px solid var(--line); }
.cat-table tbody tr:first-child td { border-top: 0; }
.ex-table td:nth-child(2) { white-space: nowrap; text-align: right; }
.ex-table td:nth-child(3) { color: var(--muted); font-size: 11.5px; text-align: right; white-space: nowrap; }
.rules { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.55; color: var(--text); }
.rules li { margin-bottom: 6px; }
.rules b { color: var(--text); }

/* ---------------------------------------------------------------- kritik vuruş */
.pop .shout {
    font-size: 11px;
    letter-spacing: 0.22em;
    color: #ffe066;
    text-shadow: 0 0 10px rgba(255, 224, 102, 0.8), 0 0 2px #000;
    animation: shout 0.5s ease-out;
}
@keyframes shout { 0% { transform: scale(0.4); opacity: 0; } 50% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }
.pop.crit .k { color: #ffe066; font-size: 30px; text-shadow: 0 0 14px rgba(255, 224, 102, 0.7), 0 1px 2px #000; }
.pop.crit { animation-duration: 2.5s; }

.pop.rest .k { font-size: 14px; opacity: 0.9; }
.pop.rest .w { font-size: 16px; }
.pop .whisper {
    font-size: 10.5px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-top: 2px;
}
.pop.night .k { color: #cbd5ff; }
.pop.night .whisper { color: #8f9bd6; }

#map-wrap.shake { animation: shake 0.45s linear; }
@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

/* ---------------------------------------------------------------- akış süsleri */
.item .ico { margin-right: 6px; font-size: 13px; }
.item .moon { font-size: 11px; opacity: 0.8; }
.item .nightnote { color: #8f9bd6; font-style: italic; white-space: nowrap; }
.item.crit { border-color: rgba(255, 224, 102, 0.35); }
.item.crit .gain .k { color: #ffe066; }
.item.night { background: linear-gradient(90deg, var(--panel-2), #121626); }

/* ---------------------------------------------------------------- ses düğmesi */
.pill.sound { cursor: pointer; width: 28px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.pill.sound.on { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- boşta nefes */
#map-wrap.breathing #map svg { animation: breathe 6s ease-in-out infinite; transform-origin: 50% 50%; }
#map-wrap.breathing #map svg path { animation: breathe-fill 6s ease-in-out infinite; }
@keyframes breathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(77, 219, 196, 0)); }
    50% { transform: scale(1.012); filter: drop-shadow(0 0 18px rgba(77, 219, 196, 0.25)); }
}
@keyframes breathe-fill {
    0%, 100% { fill: var(--map-base); }
    50% { fill: #1a3a42; }
}
.breath-cap {
    position: absolute;
    left: 50%; bottom: 14px;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    animation: cap-in 1.2s ease-out forwards, cap-pulse 6s ease-in-out 1.2s infinite;
}
@keyframes cap-in { to { opacity: 0.7; } }
@keyframes cap-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.9; } }

/* ---------------------------------------------------------------- açılış taraması */
.intro-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    text-shadow: 0 0 6px rgba(0,0,0,0.95), 0 1px 2px rgba(0,0,0,0.95);
    animation: intro-tag 1.9s ease-out forwards;
    pointer-events: none;
}
.intro-tag b { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.intro-tag span { font-size: 11px; font-weight: 700; color: var(--kcal); font-variant-numeric: tabular-nums; }
@keyframes intro-tag {
    0%   { opacity: 0; transform: translate(-50%, -30%) scale(0.7); }
    15%  { opacity: 1; transform: translate(-50%, -55%) scale(1.08); }
    30%  { transform: translate(-50%, -60%) scale(1); }
    70%  { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -140%); }
}

/* ---------------------------------------------------------------- mock uyarısı */
#mock-banner {
    background: repeating-linear-gradient(135deg, #3b1d00 0 14px, #5a2c00 14px 28px);
    color: #ffd27a;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-bottom: 1px solid #7a4100;
}
#mock-banner[hidden] { display: none; }

/* ---------------------------------------------------------------- lejant */
#legend {
    position: absolute;
    left: 18px; bottom: 12px;
    display: flex; align-items: center; gap: 6px;
    font-size: 10.5px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
#legend i {
    width: 90px; height: 7px; border-radius: 4px;
    background: linear-gradient(90deg, rgb(26, 67, 70), rgb(48, 142, 138));
    border: 1px solid var(--line);
}
#legend span { color: var(--text); }
#legend small { margin-left: 4px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- özel olaylar (abonelik, yeni stüdyo) */
.item .tag {
    font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 1px 4px; margin-left: 6px; vertical-align: 1px;
}
.item.special .studio { color: var(--cat); }
.item.special { background: linear-gradient(90deg, var(--panel-2), color-mix(in srgb, var(--cat) 8%, var(--panel-2))); }

.float {
    position: absolute;
    right: 22px; bottom: 18px;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px 10px 12px;
    background: rgba(12, 20, 22, 0.92);
    border: 1px solid var(--cat, var(--line));
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 18px color-mix(in srgb, var(--cat, #fff) 25%, transparent);
    animation: float-up 4.2s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
    pointer-events: none;
    white-space: nowrap;
}
.float.subscription { --cat: #4ade80; }
.float.studio-live { --cat: #f0588f; }
.float.event-join { --cat: #60a5fa; }
.float.company-created { --cat: #fbbf24; }
.float .emo { font-size: 24px; animation: emo-pop 0.6s ease-out; }
.float b { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cat); }
.float span { font-size: 12.5px; color: var(--text); }
@keyframes float-up {
    0%   { opacity: 0; transform: translate(12px, 10px) scale(0.9); }
    8%   { opacity: 1; transform: translate(0, 0) scale(1.04); }
    14%  { transform: translate(0, 0) scale(1); }
    70%  { opacity: 0.85; }
    100% { opacity: 0; transform: translate(-30px, calc(-1 * var(--rise, 400px))) scale(0.92); }
}
@keyframes emo-pop { 0% { transform: scale(0.3) rotate(-20deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------------------------------------------------------------- canlı ders bulutları */
#live {
    position: absolute;
    left: 18px; right: 18px; top: 12px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
    z-index: 3;
    pointer-events: none;
}
.cloud {
    position: relative;
    width: 218px;
    padding: 10px 14px 9px;
    border-radius: 28px;
    background: radial-gradient(120% 140% at 50% 110%, rgba(77, 219, 196, 0.16), rgba(77, 219, 196, 0.06) 60%, rgba(12, 20, 22, 0.75));
    border: 1px solid rgba(77, 219, 196, 0.35);
    box-shadow: 0 0 24px rgba(77, 219, 196, 0.18), inset 0 0 18px rgba(77, 219, 196, 0.08);
    backdrop-filter: blur(3px);
    animation: bob 6s ease-in-out infinite;
    transform-origin: 50% 100%;
}
.cloud:nth-child(2n) { animation-delay: -2s; }
.cloud:nth-child(3n) { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
/* bulut tüyleri: arkada yumuşak daireler */
.cloud .puffs { position: absolute; inset: 0; pointer-events: none; }
.cloud .puffs::before, .cloud .puffs::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(77, 219, 196, 0.10); filter: blur(6px);
}
.cloud .puffs::before { width: 70px; height: 42px; left: -12px; top: -14px; }
.cloud .puffs::after { width: 90px; height: 50px; right: -14px; top: -16px; }
.cloud .body { position: relative; }
.cloud .tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: #ff6b6b; margin-bottom: 3px;
}
.cloud .tag i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 6px #ff4d4d; animation: blink 1.4s ease-in-out infinite; }
.cloud .top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cloud .top b { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cloud .top .ico { font-size: 13px; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.cloud .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 3px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cloud .cnt i { font-style: normal; font-weight: 800; color: var(--accent); font-size: 13px; }
.cloud .bar { height: 4px; margin-top: 6px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.cloud .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #60a5fa); transition: width 1s linear; }
.cloud.overtime .bar i { background: linear-gradient(90deg, var(--kcal), #ffe066); }
.cloud.overtime .left { color: var(--kcal); }

.cloud.born { animation: cloud-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2), bob 6s ease-in-out 0.9s infinite; }
@keyframes cloud-in { 0% { opacity: 0; transform: scale(0.5) translateY(14px); filter: blur(8px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
.cloud.dying { animation: cloud-out 1s ease-in forwards; }
@keyframes cloud-out { to { opacity: 0; transform: scale(1.18) translateY(-16px); filter: blur(10px); } }
.cloud.pulse { animation: cloud-pulse 0.6s ease-out, bob 6s ease-in-out 0.6s infinite; }
@keyframes cloud-pulse { 0% { box-shadow: 0 0 24px rgba(77, 219, 196, 0.18); } 30% { box-shadow: 0 0 40px rgba(96, 165, 250, 0.55); transform: scale(1.04); } 100% { box-shadow: 0 0 24px rgba(77, 219, 196, 0.18); } }
.cloud .plus {
    position: absolute; top: -4px;
    font-size: 13px; font-weight: 800; color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.8), 0 1px 2px #000;
    animation: plus-up 1.3s ease-out forwards;
}
@keyframes plus-up { 0% { opacity: 0; transform: translateY(6px) scale(0.6); } 20% { opacity: 1; transform: translateY(-4px) scale(1.2); } 100% { opacity: 0; transform: translateY(-34px) scale(1); } }

/* ---------------------------------------------------------------- ilin üstünden yükselen kart */
.city-card {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 9px;
    padding: 8px 12px 8px 10px;
    background: rgba(12, 20, 22, 0.94);
    border: 1px solid var(--cat, var(--accent));
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 0 18px color-mix(in srgb, var(--cat, #fff) 30%, transparent);
    animation: city-card 3.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
    pointer-events: none;
    white-space: nowrap;
    z-index: 4;
}
.city-card.studio-live { --cat: #f0588f; }
.city-card .emo { font-size: 20px; animation: emo-pop 0.6s ease-out; }
.city-card b { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cat); }
.city-card span { display: block; font-size: 12.5px; color: var(--text); }
.city-card small { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
@keyframes city-card {
    0%   { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
    10%  { opacity: 1; transform: translate(-50%, -60%) scale(1.08); }
    18%  { transform: translate(-50%, -64%) scale(1); }
    75%  { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -150%) scale(0.95); }
}

/* ---------------------------------------------------------------- akıştan tekrar oynatma */
.item { cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.item:hover { border-color: #2d4d55; transform: translateX(2px); }
.item:hover .ts::after { content: ' ↻'; color: var(--accent); }
.item.replayed { animation: replayed 0.6s ease-out; }
@keyframes replayed { 0% { box-shadow: 0 0 0 0 rgba(77, 219, 196, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(77, 219, 196, 0); } }
.item.denied { animation: denied 0.4s ease-out; }
@keyframes denied { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------------------------------------------------------------- saatlik nabız */
.board-title small { text-transform: none; letter-spacing: 0; color: var(--kcal); margin-left: 4px; }
#pulse { display: flex; align-items: flex-end; gap: 2px; height: 54px; }
#pulse i {
    flex: 1; min-width: 0; display: block;
    background: #1f3f46; border-radius: 2px 2px 0 0;
    transition: height 0.5s ease;
}
#pulse i.now { background: var(--accent); box-shadow: 0 0 8px rgba(77, 219, 196, 0.5); }
#pulse i.peak { background: var(--kcal); }
#pulse i.now.peak { background: linear-gradient(180deg, var(--kcal), var(--accent)); }
.pulse-axis { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- kategori halkası */
.ring-wrap { display: flex; align-items: center; gap: 14px; }
#ring {
    width: 78px; height: 78px; border-radius: 50%; flex: none;
    background: conic-gradient(#152328 0 100%);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.6s ease;
}
#ring .hole {
    width: 52px; height: 52px; border-radius: 50%; background: var(--panel);
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
#ring .hole b { font-size: 14px; font-variant-numeric: tabular-nums; }
#ring .hole small { font-size: 8.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
#ring-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; min-width: 0; flex: 1; }
#ring-legend li { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; }
#ring-legend i { width: 8px; height: 8px; border-radius: 2px; }
#ring-legend span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
#ring-legend b { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- şirket şeridi */
#companies {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px; padding: 8px 14px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    overflow: hidden;
}
#companies[hidden] { display: none; }
#companies .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
#company-list { display: flex; gap: 8px; overflow: hidden; flex: 1; min-width: 0; }
.badge-co {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 4px 10px 4px 8px; border-radius: 999px;
    background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--text); font-size: 12px; font-weight: 600;
}
.badge-co i { font-style: normal; font-size: 12px; }
.badge-co small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.badge-co.new { animation: badge-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes badge-in { 0% { opacity: 0; transform: scale(0.5) translateY(6px); } 100% { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- bulut kişi noktaları */
.cloud .dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; min-height: 6px; align-items: center; }
.cloud .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #60a5fa; box-shadow: 0 0 5px rgba(96, 165, 250, 0.7);
    transition: opacity 0.5s, transform 0.5s;
}
.cloud .dot.in { animation: dot-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.cloud .dot.out { opacity: 0; transform: scale(0.2); }
@keyframes dot-in { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.cloud .more { font-size: 9.5px; color: #60a5fa; font-weight: 700; margin-left: 2px; }

/* ---------------------------------------------------------------- kilometre taşı */
.milestone {
    position: absolute; left: 50%; top: 42%;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-align: center; pointer-events: none; z-index: 6;
    text-shadow: 0 0 20px rgba(0,0,0,0.9), 0 2px 4px #000;
    animation: milestone 4.2s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.milestone small { font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); }
.milestone b { font-size: 84px; line-height: 1; font-weight: 900; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(77, 219, 196, 0.8), 0 2px 4px #000; }
.milestone span { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); }
.milestone.big b { font-size: 104px; color: #ffe066; text-shadow: 0 0 36px rgba(255, 224, 102, 0.8), 0 2px 4px #000; }
.milestone.big small { color: #ffe066; }
.milestone.gold b { font-size: 120px; color: #ffd700; text-shadow: 0 0 50px rgba(255, 215, 0, 0.95), 0 0 10px #fff, 0 2px 4px #000; }
.milestone.gold small { color: #ffd700; letter-spacing: 0.4em; }
@keyframes milestone {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); filter: blur(6px); }
    12%  { opacity: 1; transform: translate(-50%, -50%) scale(1.12); filter: blur(0); }
    20%  { transform: translate(-50%, -50%) scale(1); }
    80%  { opacity: 1; transform: translate(-50%, -52%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -70%) scale(1.05); }
}
#map-wrap.flash::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 12px;
    background: radial-gradient(60% 60% at 50% 45%, rgba(255,255,255,0.22), transparent 70%);
    animation: flash-out 0.9s ease-out forwards;
}
@keyframes flash-out { from { opacity: 1; } to { opacity: 0; } }
.confetti {
    position: absolute; top: -14px;
    border-radius: 2px; opacity: 0.95; pointer-events: none;
    animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
    0%   { transform: translate(0, 0) rotate(0); opacity: 1; }
    100% { transform: translate(var(--drift, 0), 110vh) rotate(var(--spin, 360deg)); opacity: 0.6; }
}

/* ---------------------------------------------------------------- kullanıcı */
.pill.user { text-decoration: none; text-transform: none; letter-spacing: 0.02em; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pill.user img { width: 16px; height: 16px; border-radius: 50%; }
.pill.user:hover { color: #e05d5d; border-color: #e05d5d; }
.pill.user:hover::after { content: ' · çıkış'; }
.pill.user[hidden] { display: none; }
