:root {
    --navy-darkest: #070d22;
    --navy-dark: #0f1a3d;
    --navy: #1b2c5e;
    --navy-light: #2a4488;
    --navy-bright: #3a5ba8;
    --gold: #e8b923;
    --gold-soft: #f5d97a;
    --line: rgba(255, 255, 255, .16);
    --card-bg: #ffffff;
    --ink: #16213f;
}

html, body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(160deg, var(--navy-darkest), var(--navy-dark) 55%, #0b1633);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--ink);
}

.page { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- üst bar ---------- */
.topbar {
    background: rgba(7, 13, 34, .6);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--gold);
    position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
    max-width: 1280px; margin: 0 auto; padding: .5rem 1rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; font-size: 1.25rem; }
.brand-ball { font-size: 1.6rem; }
.brand-text strong { color: var(--gold); }

.mainnav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; margin-left: auto; }
.nav-item {
    color: #dde6fb; text-decoration: none; padding: .4rem .8rem; border-radius: 999px;
    font-weight: 500; border: none; background: transparent; cursor: pointer; font-size: .95rem;
}
.nav-item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-item.active { background: var(--gold); color: var(--navy-dark); }
.nav-cta { border: 1px solid var(--gold); color: var(--gold); }
.nav-admin { border: 1px dashed #ff8a65; color: #ffccbc; }
.nav-logout { display: inline; margin: 0; }

.content { flex: 1; max-width: 1280px; width: 100%; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.footer {
    text-align: center; color: rgba(255, 255, 255, .6);
    padding: 1rem; font-size: .85rem; border-top: 1px solid var(--line);
}
.footer .credit { display: block; font-size: .72rem; color: rgba(255, 255, 255, .35); margin-top: .25rem; }

h1, h2, h3 { color: #fff; }
/* FocusOnNavigate başlığa tabindex=-1 verip odaklıyor; istenmeyen focus çerçevesini gizle. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.content > h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.page-sub { color: rgba(255, 255, 255, .72); margin-bottom: 1.25rem; }

/* ---------- tahmin sihirbazı (wizard) ---------- */
.wizard {
    display: flex; align-items: stretch; gap: .25rem; margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
    border-radius: 16px; padding: .5rem;
}
.wizard-step {
    flex: 1; display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem;
    border-radius: 12px; text-decoration: none; color: rgba(255, 255, 255, .72);
    transition: background .15s ease, color .15s ease;
}
.wizard-step:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.wizard-step .num {
    width: 2rem; height: 2rem; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; font-weight: 800; font-size: .95rem;
    background: rgba(255, 255, 255, .14); color: #fff;
}
.wizard-step .txt { display: flex; flex-direction: column; line-height: 1.15; }
.wizard-step .label { font-weight: 700; font-size: .98rem; }
.wizard-step .sub { font-size: .72rem; color: rgba(255, 255, 255, .5); }
.wizard-step.done .num { background: var(--navy-bright); color: #fff; }
.wizard-step.active { background: var(--navy-light); color: #fff; box-shadow: inset 0 0 0 1px var(--gold); }
.wizard-step.active .num { background: var(--gold); color: var(--navy-dark); }
.wizard-step.active .sub { color: var(--gold-soft); }
.wizard-arrow { display: flex; align-items: center; color: rgba(255, 255, 255, .35); font-size: 1.6rem; }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.wizard-btn {
    padding: .75rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .98rem; font-family: inherit;
    text-decoration: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
    white-space: nowrap; justify-content: center;
}
.wizard-btn.prev { background: rgba(255, 255, 255, .12); color: #fff; }
.wizard-btn.prev:hover { background: rgba(255, 255, 255, .2); }
.wizard-btn.next { background: var(--gold); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(232, 185, 35, .3); }
.wizard-btn.next:hover { background: var(--gold-soft); }
.wizard-btn.disabled { opacity: .4; pointer-events: none; box-shadow: none; }
/* Kilitli görünen ama tıklanabilir kalan "İleri": eksik karta kaydırma için */
.wizard-btn.dimmed { opacity: .4; box-shadow: none; }
.wizard-btn.dimmed:hover { opacity: .55; background: var(--gold); }
.wizard-hint { color: rgba(255, 255, 255, .6); font-size: .85rem; }

/* ---------- kartlar ---------- */
.auth-card {
    max-width: 440px; margin: 3rem auto; background: var(--card-bg);
    border-radius: 16px; padding: 2rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.auth-card h1 { color: var(--ink); font-size: 1.4rem; margin-bottom: 1rem; }
.google-icon { font-weight: 800; color: #4285f4; margin-right: .25rem; }
.external-login hr { border-color: #e3e8f0; }

.group-grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.group-card {
    background: var(--card-bg); border-radius: 14px; overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .38);
}
.group-card-header {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    color: #fff; padding: .5rem .9rem; font-weight: 700;
}
.group-card-header .saved { color: var(--gold); font-size: .8rem; font-weight: 500; }
.group-card-header .unranked {
    color: var(--gold-soft); font-size: .72rem; font-weight: 500;
    border: 1px dashed rgba(232, 185, 35, .55); border-radius: 999px; padding: .1rem .6rem;
}

/* Henüz kaydedilmemiş kart: taslak görünümü — kesikli altın çerçeve, soluk sıra rozetleri */
.group-card.pending { outline: 2px dashed rgba(232, 185, 35, .65); outline-offset: 3px; }
.group-card.pending .pos-badge { background: #d4daea; color: #6b7791; }

.group-card.attention { animation: cardPulse .45s ease 3; }
@keyframes cardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.confirm-order {
    display: block; width: 100%; border: none; cursor: pointer;
    padding: .55rem; font-size: .85rem; font-weight: 600; font-family: inherit;
    background: #fdf6e0; color: #8a6d10; border-top: 1px dashed rgba(232, 185, 35, .55);
}
.confirm-order:hover { background: var(--gold); color: var(--navy-dark); }

.group-callout {
    background: rgba(58, 91, 168, .35); border: 1px solid var(--navy-bright);
    color: #dde6fb; padding: .6rem .9rem; border-radius: 10px;
    margin-bottom: 1rem; font-size: .9rem;
}
.group-callout strong { color: var(--gold-soft); }

.reset-row { color: rgba(255, 255, 255, .55); font-size: .85rem; margin-top: 1rem; }
.reset-link {
    background: none; border: none; padding: 0; cursor: pointer; font: inherit;
    color: var(--gold-soft); text-decoration: underline;
}
.reset-link:hover { color: var(--gold); }

.group-progress { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.group-progress .count { color: #fff; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.group-progress .bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.group-progress .fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width .3s ease; }

/* ---------- grupları pas geç / hızlı başlangıç ---------- */
.skip-row { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed rgba(255, 255, 255, .25); font-size: .85rem; }
.skip-btn {
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    border-radius: 999px; padding: .3rem .9rem; margin: 0 .35rem; cursor: pointer;
    font-family: inherit; font-size: .85rem; font-weight: 600;
}
.skip-btn:hover { background: var(--gold); color: var(--navy-dark); }
.skip-note { display: block; margin-top: .35rem; color: rgba(255, 255, 255, .55); font-size: .78rem; }
/* Açık zeminli lock-banner içinde koyu tonlara dön */
.lock-banner .skip-row { border-top-color: rgba(109, 76, 0, .3); }
.lock-banner .skip-note { color: rgba(109, 76, 0, .75); }
.lock-banner .skip-btn { border-color: #b8860b; color: #8a6d10; }
.lock-banner .skip-btn:hover { background: #b8860b; color: #fff; }

/* ---------- FIFA dönüşüm bilgi paneli ---------- */
.fifa-info {
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 10px;
    margin-bottom: 1rem; color: #dde6fb; font-size: .9rem;
}
.fifa-info summary { cursor: pointer; padding: .6rem .9rem; font-weight: 600; color: #fff; list-style: none; }
.fifa-info summary::-webkit-details-marker { display: none; }
.fifa-info summary::after { content: "▾"; float: right; color: var(--gold); }
.fifa-info[open] summary::after { content: "▴"; }
.fifa-info .body { padding: 0 .9rem .8rem; line-height: 1.55; }
.fifa-info .body ol { margin: 0 0 .5rem; padding-left: 1.2rem; }
.fifa-info .body li { margin-bottom: .25rem; }
.fifa-info .body p { margin: 0; color: rgba(255, 255, 255, .7); }
.fifa-info strong { color: var(--gold-soft); }

/* ---------- tahmin linki paylaşımı ---------- */
.share-feedback { color: rgba(255, 255, 255, .75); text-align: right; margin-top: .5rem; font-size: .9rem; }
.share-link {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem;
    background: rgba(255, 255, 255, .1); padding: .15rem .5rem; border-radius: 6px; user-select: all;
}

.team-row {
    display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem;
    border-bottom: 1px solid #eef1f7; cursor: grab; user-select: none;
    background: #fff; transition: background .15s ease;
}
.team-row:last-child { border-bottom: none; }
.team-row:hover { background: #eef3ff; }
.team-row.dragging { opacity: .5; }
.team-row.drag-over { box-shadow: inset 0 3px 0 var(--gold); }

.pos-badge {
    width: 1.6rem; height: 1.6rem; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff;
}
.pos-1 { background: var(--navy); }
.pos-2 { background: var(--navy-bright); }
.pos-3 { background: var(--gold); color: var(--navy-dark); }
.pos-4 { background: #9aa7c2; }

.team-flag { width: 32px; height: 21px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

/* Türkiye seçilince: bayrak kalbe dönüşür, atarak geri gelir 🇹🇷 */
.team-flag.tr-love {
    object-fit: contain; box-shadow: none; border-radius: 0;
    animation: trLove 1.4s ease;
}
@keyframes trLove {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.7); }
    40% { transform: scale(1.25); }
    60% { transform: scale(1.6); }
    80% { transform: scale(1.2); }
}
.team-name { flex: 1; font-weight: 500; }

.row-arrows { display: flex; flex-direction: column; gap: 2px; }
.row-arrows button {
    border: none; background: #eceff5; border-radius: 4px; width: 22px; height: 16px;
    font-size: .6rem; line-height: 1; cursor: pointer; padding: 0; color: var(--navy);
}
.row-arrows button:hover:not(:disabled) { background: var(--gold); }
.row-arrows button:disabled { opacity: .3; cursor: default; }

/* ---------- üçüncüler ---------- */
.third-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.third-card {
    background: var(--card-bg); border-radius: 12px; padding: .9rem;
    display: flex; align-items: center; gap: .7rem; cursor: pointer;
    border: 3px solid transparent; box-shadow: 0 6px 20px rgba(0,0,0,.32);
    transition: border-color .15s ease, transform .1s ease;
}
.third-card:hover { transform: translateY(-2px); }
.third-card.selected { border-color: var(--gold); }
.third-card.disabled { opacity: .55; cursor: not-allowed; }
.third-group-tag { font-weight: 800; color: var(--navy); font-size: 1.1rem; width: 1.4rem; }
.third-counter { position: sticky; bottom: 1rem; margin-top: 1.5rem; text-align: center; }
.third-counter .inner {
    display: inline-flex; gap: 1rem; align-items: center; background: rgba(7, 13, 34, .75);
    color: #fff; padding: .6rem 1.4rem; border-radius: 999px; backdrop-filter: blur(4px);
    border: 1px solid var(--line);
}

/* ---------- bracket (aynalı: sol/sağ kanat finale akar) ---------- */
/* 1280px'lik içerik kolonundan taşıp pencere genişliğini kullanır */
.bracket-scroll {
    overflow-x: auto; padding: 0 1rem 1rem;
    width: 100vw; margin-left: calc(50% - 50vw);
}
.bracket {
    display: grid; gap: 0;
    /* dış (Son 32) sütunlar daha geniş: dropdown'lı takım adları sığsın */
    grid-template-columns: minmax(250px, 1.25fr) repeat(3, minmax(190px, 1fr)) minmax(210px, 1fr) repeat(3, minmax(190px, 1fr)) minmax(250px, 1.25fr);
    align-items: stretch; min-width: 1900px;
    --conn: .9rem;                        /* kart ile sütun sınırı arasındaki çizgi payı */
    --connline: rgba(255, 255, 255, .32); /* bağlantı çizgisi rengi */
}
.round-col { display: flex; flex-direction: column; padding: 0 var(--conn); }
.round-title {
    text-align: center; color: var(--gold); font-weight: 700; margin-bottom: .8rem;
    text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
}
.round-matches { display: flex; flex-direction: column; flex: 1; position: relative; }
.slot {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    position: relative; padding: .4rem 0; min-width: 0;
}

/* bağlantı çizgileri — sol kanat: dirsek sağa doğru */
.sL.pairs .slot:nth-child(odd)::after {
    content: ""; position: absolute; right: calc(-1 * var(--conn)); top: 50%; height: 50%; width: var(--conn);
    border-top: 2px solid var(--connline); border-right: 2px solid var(--connline);
}
.sL.pairs .slot:nth-child(even)::after {
    content: ""; position: absolute; right: calc(-1 * var(--conn)); bottom: 50%; height: 50%; width: var(--conn);
    border-bottom: 2px solid var(--connline); border-right: 2px solid var(--connline);
}
.sL.single .slot::after {
    content: ""; position: absolute; right: calc(-1 * var(--conn)); top: 50%; width: var(--conn); height: 2px;
    background: var(--connline);
}
.sL.recv .slot::before {
    content: ""; position: absolute; left: calc(-1 * var(--conn)); top: 50%; width: var(--conn); height: 2px;
    background: var(--connline);
}

/* sağ kanat: ayna görüntüsü, dirsek sola doğru */
.sR.pairs .slot:nth-child(odd)::after {
    content: ""; position: absolute; left: calc(-1 * var(--conn)); top: 50%; height: 50%; width: var(--conn);
    border-top: 2px solid var(--connline); border-left: 2px solid var(--connline);
}
.sR.pairs .slot:nth-child(even)::after {
    content: ""; position: absolute; left: calc(-1 * var(--conn)); bottom: 50%; height: 50%; width: var(--conn);
    border-bottom: 2px solid var(--connline); border-left: 2px solid var(--connline);
}
.sR.single .slot::after {
    content: ""; position: absolute; left: calc(-1 * var(--conn)); top: 50%; width: var(--conn); height: 2px;
    background: var(--connline);
}
.sR.recv .slot::before {
    content: ""; position: absolute; right: calc(-1 * var(--conn)); top: 50%; width: var(--conn); height: 2px;
    background: var(--connline);
}

/* merkez: final iki kanattan çizgi alır */
.center .slot::before {
    content: ""; position: absolute; left: calc(-1 * var(--conn)); top: 50%; width: var(--conn); height: 2px;
    background: var(--connline);
}
.center .slot::after {
    content: ""; position: absolute; right: calc(-1 * var(--conn)); top: 50%; width: var(--conn); height: 2px;
    background: var(--connline);
}
.center .match-card { box-shadow: 0 0 0 2px var(--gold), 0 8px 26px rgba(0, 0, 0, .5); }
.final-trophy { position: absolute; top: 7%; left: 50%; transform: translateX(-50%); }
.final-trophy img { height: 190px; filter: drop-shadow(0 10px 30px rgba(232, 185, 35, .35)); }

/* Üçüncülük maçı: merkez sütunun altında, bağlantısız */
.third-place-box { position: absolute; bottom: 5%; left: var(--conn); right: var(--conn); }

.match-card {
    background: var(--card-bg); border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.38); font-size: .9rem;
}

/* Seçilebilir ama kazananı seçilmemiş maç: kesikli altın kontur + "kazananı seç" rozeti.
   Önceki turu bekleyen maçlar nötr kalır — kullanıcı oraya henüz dokunamayacağını anlar. */
.match-card.needs-pick { outline: 2px dashed rgba(232, 185, 35, .7); outline-offset: 2px; }
.pick-badge {
    background: var(--gold); color: var(--navy-dark); font-size: .62rem; font-weight: 800;
    padding: .05rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
    align-self: center; white-space: nowrap;
}
.match-card.attention { animation: cardPulse .45s ease 3; }

/* Tur başlığı puan rozeti: bu turdan doğru çıkan takım başına puan */
.round-title .round-pts {
    display: block; font-size: .68rem; font-weight: 600; letter-spacing: .03em;
    color: rgba(255, 255, 255, .55); text-transform: none; margin-top: .1rem;
}

/* Puanlama paneli listesi */
.fifa-info .body ul.score-list { list-style: none; padding-left: 0; }
.fifa-info .body ul.score-list li { margin-bottom: .4rem; }

/* Tur başlığı sayacı: o kanattaki seçilen/teplam maç */
.round-title .round-count {
    background: rgba(232, 185, 35, .18); color: var(--gold-soft); font-size: .72rem;
    padding: .05rem .5rem; border-radius: 999px; margin-left: .3rem; letter-spacing: 0;
}
.round-title .round-count.full { background: rgba(29, 158, 117, .25); color: #9fe1cb; }

/* Yapışkan ilerleme kapsülü (ağaç sayfası) */
.bracket-counter { position: sticky; bottom: 1rem; margin-top: 1rem; text-align: center; z-index: 60; }
.bracket-counter .inner {
    display: inline-flex; gap: .9rem; align-items: center; background: rgba(7, 13, 34, .85);
    color: #fff; padding: .6rem 1.2rem; border-radius: 999px; backdrop-filter: blur(4px);
    border: 1px solid var(--line); font-size: .92rem; flex-wrap: wrap; justify-content: center;
}
.bracket-counter strong { color: var(--gold-soft); }
.bracket-counter .mini-bar { width: 130px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.bracket-counter .mini-bar .fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width .3s ease; }
.goto-btn {
    background: var(--gold); color: var(--navy-dark); border: none; border-radius: 999px;
    padding: .4rem 1rem; font-family: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
    text-decoration: none; display: inline-block; white-space: nowrap;
}
.goto-btn:hover { background: var(--gold-soft); color: var(--navy-dark); }
/* İkincil kapsül eylemi: birincil (arkadaş tahminleri) altın kalır, bunlar sade */
.goto-btn.secondary { background: rgba(255, 255, 255, .14); color: #fff; }
.goto-btn.secondary:hover { background: rgba(255, 255, 255, .25); color: #fff; }

.board-hint { color: rgba(255, 255, 255, .6); font-size: .85rem; margin: 0 0 .5rem; }
.match-no {
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    color: #fff; font-size: .7rem; font-weight: 600;
    padding: .2rem .6rem; display: flex; justify-content: space-between; gap: .5rem;
}
.match-no span:last-child { color: rgba(255, 255, 255, .55); font-weight: 400; }
.match-side {
    display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; width: 100%;
    border: none; background: #fff; cursor: pointer; text-align: left;
    border-bottom: 1px solid #eef1f7; transition: background .12s ease;
}
.match-side:last-child { border-bottom: none; }
.match-side:hover:not(:disabled) { background: #eef3ff; }
.match-side:disabled { cursor: default; }
.match-side.winner { background: #e7eeff; font-weight: 700; }
/* ✔ yalnız salt-okunur görünümde; interaktif satırlarda durum ikon düğmesinde */
.match-side.ro.winner::after { content: "✔"; margin-left: auto; color: var(--navy-light); }
.match-side.tbd { color: #93a0bd; font-style: italic; }

/* İnteraktif satırlar: satır tıklanmaz, kazanan sağdaki ikon düğmesinden seçilir */
.match-side.editable { gap: .4rem; padding: .45rem .5rem; }
.match-side.editable, .match-side.static { cursor: default; }
.match-side.editable:hover, .match-side.static:hover { background: #fff; }
.match-side.editable.winner:hover, .match-side.static.winner:hover { background: #e7eeff; }
.side-select {
    flex: 1; min-width: 0; border: none; background: transparent; cursor: pointer;
    font: inherit; font-size: .85rem; font-weight: 500; color: var(--ink); padding: 0;
    border-bottom: 1px dashed #b9c3da;
}
.side-select:hover, .side-select:focus { border-bottom-color: var(--gold); outline: none; }
.match-side.winner .side-select { font-weight: 700; }

.win-btn {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 999px; padding: 0;
    border: 1px solid #d8deee; background: #f4f6fb; cursor: pointer;
    font-size: .85rem; line-height: 1; filter: grayscale(1); opacity: .5;
    transition: all .12s ease;
}
.win-btn:hover { filter: none; opacity: 1; border-color: var(--gold); transform: scale(1.1); }
.win-btn.on { filter: none; opacity: 1; background: var(--gold); border-color: var(--gold); }

/* --- Gerçek sonuç / canlı durum overlay'i (tahminden bağımsız, bilgilendirme) --- */
/* Sonuçlanan maç: yeşil "✓ Sonuçlandı" rozeti; oynanan maç: kırmızı nabız atan rozet. */
.result-badge {
    background: #1d9e75; color: #fff; font-size: .6rem; font-weight: 800;
    padding: .05rem .45rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
    align-self: center; white-space: nowrap;
}
.live-badge {
    background: #e23b3b; color: #fff; font-size: .6rem; font-weight: 800;
    padding: .05rem .45rem; border-radius: 999px; letter-spacing: .03em;
    align-self: center; white-space: nowrap; animation: livePulse 1.4s ease-in-out infinite;
}
.match-card.decided { outline: 1px solid rgba(29, 158, 117, .55); }
.match-card.live { outline: 2px solid rgba(226, 59, 59, .7); outline-offset: 1px; }

/* Gerçek kazanan tarafı: yeşil vurgu + ✓; eleyen tarafı: soluk + üstü çizili. Tahmin (.winner) mavisini ezer. */
.match-side.actual-win { background: #e3f5ee; font-weight: 700; box-shadow: inset 3px 0 0 #1d9e75; }
.match-side.actual-win::after { content: "✓"; margin-left: auto; color: #1d9e75; font-weight: 800; }
.match-side.actual-out { opacity: .55; }
.match-side.actual-out .team-name, .match-side.actual-out .side-select { text-decoration: line-through; }

/* Tahmin gerçek eşleşmeden saptıysa: maçın altında gerçek kazananı yazan satır. */
.actual-note {
    display: flex; align-items: center; gap: .4rem; padding: .3rem .6rem;
    background: #eef6f2; color: #186b51; font-size: .72rem; border-top: 1px solid #d6ebe2;
}
.actual-note .team-flag { width: 20px; height: 14px; }

@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .live-badge { animation: none; } }

.champion-panel {
    margin-bottom: 1.25rem; text-align: center; background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border: 2px solid var(--gold); border-radius: 16px; padding: 1.2rem; color: #fff;
    animation: champPop .6s cubic-bezier(.2, 1.4, .4, 1);
}
.champion-panel .trophy { font-size: 2.2rem; animation: trophyWobble 1.2s ease .4s 2; }
.champion-panel .trophy-img {
    height: 120px; display: block; margin: 0 auto .4rem;
    filter: drop-shadow(0 8px 24px rgba(232, 185, 35, .45));
    animation: trophyWobble 1.2s ease .4s 2;
}
.champion-panel .name { font-size: 1.4rem; font-weight: 800; color: var(--gold); display: inline-flex; align-items: center; gap: .5rem; }
@keyframes champPop {
    from { transform: scale(.6); opacity: 0; }
    60% { transform: scale(1.05); }
    to { transform: scale(1); opacity: 1; }
}
@keyframes trophyWobble {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-12deg) scale(1.15); }
    75% { transform: rotate(12deg) scale(1.15); }
}

/* ---------- lider tablosu ---------- */
.board { background: var(--card-bg); border-radius: 14px; overflow-x: auto; box-shadow: 0 6px 24px rgba(0,0,0,.38); }
.board table { width: 100%; border-collapse: collapse; }
.board th { background: var(--navy); color: #fff; padding: .6rem .9rem; text-align: left; font-size: .85rem; }
.board td { padding: .55rem .9rem; border-bottom: 1px solid #eef1f7; }
.board tr:nth-child(odd) td { background: #f7f9fd; }
.board .rank { font-weight: 800; color: var(--navy); width: 3rem; }
.board .total { font-weight: 800; }
.board .breakdown-mobile { display: none; } /* yalnız dar ekranda, ad altında kırılım satırı olarak */

/* ---------- ligler ---------- */
.league-grid {
    display: grid; gap: 1rem; margin-bottom: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.league-card {
    display: block; background: var(--card-bg); border-radius: 14px; padding: 1rem 1.2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .38); color: var(--ink); text-decoration: none;
    border-top: 4px solid var(--navy-light); transition: transform .12s ease;
}
.league-card:hover { transform: translateY(-3px); color: var(--ink); }
.league-card-link { display: block; color: inherit; text-decoration: none; }
.league-card-link:hover { color: inherit; }
.league-card-link:hover h3 { text-decoration: underline; }
.league-card-header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.league-card-header h3 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.owner-badge {
    background: var(--gold); color: var(--navy-dark); font-size: .7rem; font-weight: 800;
    padding: .15rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.league-meta { color: #5a6782; font-size: .88rem; margin-top: .35rem; }
.league-meta.invite-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.league-meta.invite-row .copy-btn { padding: .25rem .6rem; font-size: .78rem; }
.invite-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800;
    background: var(--navy); color: var(--gold); padding: .1rem .45rem; border-radius: 6px;
    letter-spacing: .08em;
}

/* ---------- ana sayfa: tahmin durumu + lig merkezi ---------- */
.status-strip {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
    border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1.5rem;
}
.status-strip .label { color: #fff; font-weight: 700; margin-right: .25rem; }
.chip { font-size: .8rem; font-weight: 600; padding: .2rem .75rem; border-radius: 999px; }
.chip.done { background: rgba(29, 158, 117, .25); color: #9fe1cb; }
.chip.todo { background: rgba(232, 185, 35, .16); color: var(--gold-soft); }
.status-strip .continue { margin-left: auto; padding: .5rem 1.1rem; font-size: .88rem; }

.home-section-title { font-size: 1.25rem; margin: 0 0 .8rem; }

.league-card.clickable { cursor: pointer; }
.league-cta { color: var(--navy-light); font-weight: 700; font-size: .9rem; margin-top: .55rem; }
.league-card.clickable:hover .league-cta { text-decoration: underline; }
.table-link { color: #5a6782; text-decoration: underline; font-size: .85rem; margin-right: auto; }
.table-link:hover { color: var(--navy); }

/* Lig kartı eylem bağlantıları: tahmin / tablo / yönetim */
.league-links { display: flex; flex-direction: column; gap: .3rem; margin-top: .6rem; }
.league-link {
    color: var(--navy-light); text-decoration: none; font-size: .88rem; font-weight: 600;
    padding: .25rem 0;
}
.league-link:hover { text-decoration: underline; color: var(--navy); }
.league-link.primary {
    background: var(--gold); color: var(--navy-dark); border-radius: 999px;
    padding: .45rem .9rem; text-align: center; font-weight: 700;
}
.league-link.primary:hover { background: var(--gold-soft); text-decoration: none; }
.league-meta.progress-line { font-size: .8rem; color: #7886a8; }

/* Pasif lig / kullanıcı işaretleri */
.passive-badge {
    background: #d8453c; color: #fff; font-size: .7rem; font-weight: 800;
    padding: .15rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
    margin-left: .4rem;
}
.league-card.inactive { opacity: .65; border-top-color: #d8453c; }
.manage-note { color: #8a93ab; font-size: .8rem; margin: .5rem 0 0; }

/* Tahmin sayfalarında lig bağlamı şeridi */
.league-context {
    background: rgba(58, 91, 168, .3); border: 1px solid var(--navy-bright);
    color: #dde6fb; padding: .5rem .9rem; border-radius: 10px;
    margin-bottom: 1rem; font-size: .88rem;
}
.league-context strong { color: var(--gold-soft); }

.league-card.ghost {
    background: transparent; border: 2px dashed rgba(255, 255, 255, .35); border-top-width: 2px;
    border-top-style: dashed; border-top-color: rgba(255, 255, 255, .35);
    box-shadow: none; color: rgba(255, 255, 255, .75); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .3rem; text-align: center; font-size: .9rem; min-height: 120px;
}
.league-card.ghost .plus { font-size: 1.6rem; color: var(--gold); }
.league-card.ghost:hover { border-color: var(--gold); color: #fff; }
.league-forms { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; }
/* Hayalet karta tıklanınca: form kartları nabız atar, tıklamanın karşılığı görünür olur */
.league-forms.attention .league-form { animation: cardPulse .45s ease 2; }
.league-form {
    background: var(--card-bg); border-radius: 14px; padding: 1.1rem 1.2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .38);
    display: flex; flex-direction: column; gap: .6rem;
}
.league-form h3 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.league-form label { color: #5a6782; font-size: .85rem; }
.league-form input {
    border: 1px solid #cdd6e6; border-radius: 8px; padding: .55rem .7rem; font-size: .95rem;
}
.league-form input.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .1em; }
.form-check-row { display: flex; align-items: center; gap: .45rem; color: #5a6782; font-size: .85rem; cursor: pointer; }
.form-check-row input[type="checkbox"] { width: auto; accent-color: var(--navy-light); }
.board .no-card { color: #93a0bd; font-size: .8rem; font-style: italic; }
.board .member-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.board .member-link:hover { color: var(--navy-light); text-decoration: underline; }
.league-form .wizard-btn { text-align: center; border: none; cursor: pointer; font-size: .95rem; }
.league-invite {
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    color: #fff; margin-bottom: 1.25rem;
}
.copy-btn {
    border: none; border-radius: 8px; padding: .4rem .8rem; cursor: pointer;
    background: var(--gold); color: var(--navy-dark); font-weight: 700; font-size: .85rem;
}
.copy-btn:hover { background: var(--gold-soft); }
.copy-btn.remove { background: #d8453c; color: #fff; }
.copy-btn.remove:hover { background: #e8635b; }
.league-manage {
    margin-top: 2rem; background: var(--card-bg); border-radius: 14px; padding: 1.2rem 1.4rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .38);
}
.league-manage h3 { color: var(--navy); margin-top: 0; }
.league-manage h4 { color: var(--navy); margin-bottom: .5rem; }
.league-manage .league-form { box-shadow: none; padding: .6rem 0; }
.member-list { list-style: none; padding: 0; margin: 0; }
.member-list li {
    display: flex; justify-content: space-between; align-items: center; gap: .8rem;
    padding: .5rem 0; border-bottom: 1px solid #eef1f7; color: var(--ink);
}
.member-list li:last-child { border-bottom: none; }

/* Üyenin tahmin aşaması (kurucu görünümü) */
.member-cell { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.member-progress { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.stage-chip {
    font-size: .72rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px;
    white-space: nowrap;
}
.stage-chip.none { background: #f0f2f7; color: #8a93ab; }
.stage-chip.part { background: rgba(232, 185, 35, .18); color: #8a6d10; }
.stage-chip.full { background: rgba(29, 158, 117, .18); color: #0f6e56; }

/* ---------- genel ---------- */
.hero {
    background: var(--card-bg); border-radius: 18px; padding: 2rem;
    box-shadow: 0 10px 36px rgba(0,0,0,.42); margin-bottom: 1.5rem;
}
.hero h1 { color: var(--ink); }
.hero p { color: #4a566f; }
.step-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-card {
    background: var(--card-bg); border-radius: 12px; padding: 1.1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.32); text-decoration: none; color: var(--ink);
    border-top: 4px solid var(--navy-light); transition: transform .12s ease;
}
.step-card:hover { transform: translateY(-3px); color: var(--ink); }
.step-card .num { font-size: .75rem; color: #7886a8; font-weight: 700; }
.step-card h3 { color: var(--navy); font-size: 1.05rem; margin: .2rem 0 .35rem; }
.step-card.done { border-top-color: var(--gold); }
.step-card .status { font-size: .8rem; color: #586187; }

.lock-banner {
    background: #fff3e0; border: 1px solid #ffb74d; color: #6d4c00;
    border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1rem; font-size: .9rem;
}
/* Sonradan katılan bilgilendirmesi: sert kilit (turuncu) değil, bilgi (mavi) tonu */
.lock-banner.late-join { background: #e6f1fb; border-color: #6aa9e0; color: #0c447c; }
.lock-banner.late-join a { color: #0c447c; font-weight: 600; }

/* ---------- anonim ana sayfa vitrini: demo (kahraman) + anket (yan kutu) ---------- */
.landing-grid {
    display: grid; gap: 1.75rem; grid-template-columns: 1.2fr .9fr;
    align-items: start; margin-bottom: 2rem;
}

/* Oyunu 3 adımda anlatan şerit (wizard görünümünün tanıtım hâli) */
.how-strip {
    display: flex; align-items: stretch; gap: .25rem; margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
    border-radius: 16px; padding: .5rem;
}
.how-step {
    flex: 1; display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem;
    border-radius: 12px; color: rgba(255, 255, 255, .85);
}
.how-step .num {
    width: 2rem; height: 2rem; border-radius: 50%; flex: 0 0 auto;
    display: grid; place-items: center; font-weight: 800; font-size: .95rem;
    background: var(--gold); color: var(--navy-dark);
}
.how-step .txt { display: flex; flex-direction: column; line-height: 1.2; }
.how-step .txt strong { font-size: .95rem; }
.how-step .txt span { font-size: .74rem; color: rgba(255, 255, 255, .55); }
.how-arrow { display: flex; align-items: center; color: rgba(255, 255, 255, .35); font-size: 1.6rem; }

.poll-sub { color: rgba(255, 255, 255, .72); font-size: .92rem; margin: -.2rem 0 .9rem; }
.poll-loading { color: rgba(255, 255, 255, .7); }

.poll-grid {
    display: grid; gap: .45rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.poll-team {
    display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem;
    background: var(--card-bg); border: 2px solid transparent; border-radius: 10px;
    cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink);
    text-align: left; box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
    transition: transform .1s ease, border-color .15s ease;
}
.poll-team:hover { transform: translateY(-2px); border-color: var(--gold); }
.poll-team.mine { border-color: var(--gold); }
.poll-team img { width: 26px; height: 17px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.poll-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.poll-results { display: flex; flex-direction: column; gap: .35rem; }
.poll-row {
    display: flex; align-items: center; gap: .6rem; padding: .35rem .6rem;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 10px;
    color: #fff; font-size: .88rem;
}
.poll-row.mine { border-color: var(--gold); background: rgba(232, 185, 35, .12); }
.poll-row img { width: 26px; height: 17px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.poll-row .name { flex: 0 0 9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.poll-row .bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.poll-row .fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width .4s ease; }
.poll-row .pct { flex: 0 0 2.8rem; text-align: right; font-weight: 700; color: var(--gold-soft); }

.poll-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.poll-change {
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    border-radius: 999px; padding: .5rem 1.2rem; cursor: pointer; font-family: inherit;
    font-size: .9rem; font-weight: 600;
}
.poll-change:hover { background: var(--gold); color: var(--navy-dark); }

.poll-total { color: rgba(255, 255, 255, .75); font-size: .88rem; margin: 0 0 .6rem; }
.poll-total strong { color: var(--gold-soft); }
.poll-hint { color: rgba(255, 255, 255, .6); font-size: .8rem; margin: .8rem 0 .4rem; }

/* Kompakt seçici: yan kutuda 48 takım kaydırılabilir alanda */
.poll-picker-scroll {
    max-height: 380px; overflow-y: auto; padding-right: .35rem;
    border: 1px solid var(--line); border-radius: 12px; padding: .5rem;
    background: rgba(255, 255, 255, .04);
}
.poll-grid.narrow { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

.poll-warmup-done {
    margin-top: 1rem; background: rgba(232, 185, 35, .14); border: 1px solid var(--gold);
    border-radius: 12px; padding: .8rem 1rem; color: #fff; font-size: .9rem;
    display: flex; flex-direction: column; gap: .6rem; align-items: flex-start;
}
.poll-warmup-done strong { color: var(--gold-soft); }
.poll-warmup-done .wizard-btn { font-size: .88rem; padding: .55rem 1.2rem; }

.demo-card-wrap { max-width: 420px; }
.demo-hint { color: rgba(255, 255, 255, .6); font-size: .85rem; margin-top: .6rem; }
.demo-cta {
    margin-top: .8rem; background: rgba(232, 185, 35, .14); border: 1px solid var(--gold);
    border-radius: 12px; padding: .8rem 1rem; color: #fff; font-size: .9rem;
    display: flex; flex-direction: column; gap: .6rem; align-items: flex-start;
    animation: champPop .5s cubic-bezier(.2, 1.4, .4, 1);
}
.demo-cta .wizard-btn { font-size: .88rem; padding: .55rem 1.2rem; }

/* Anonim ana sayfa kapanış CTA'sı: tek net eylem — kayıt ol */
.landing-cta {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border: 2px solid var(--gold); border-radius: 18px; padding: 2rem;
    text-align: center; color: #fff; margin-top: .5rem;
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.landing-cta h2 { margin: 0; font-size: 1.35rem; }
.landing-cta p { margin: 0; max-width: 560px; color: #dde6fb; font-size: .95rem; }
.landing-cta .wizard-btn { margin-top: .4rem; font-size: 1.05rem; padding: .85rem 2rem; }
.landing-cta-login { font-size: .85rem; color: rgba(255, 255, 255, .65); }
.landing-cta-login a { color: var(--gold-soft); }

/* ---------- lig daveti karşılama (anonim) ---------- */
.invite-hero {
    background: var(--card-bg); border-radius: 18px; padding: 2rem; text-align: center;
    max-width: 560px; margin: 1.5rem auto; box-shadow: 0 10px 36px rgba(0, 0, 0, .42);
}
.invite-hero .confetti-line { font-size: 2.4rem; }
.invite-hero h2 { color: var(--ink); margin: .4rem 0 .6rem; }
.invite-hero h2 strong { color: var(--navy-light); }
.invite-hero p { color: #4a566f; margin-bottom: 1.2rem; }
.invite-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.invite-actions .wizard-btn.prev { background: #e8ecf5; color: var(--navy); }
.invite-actions .wizard-btn.prev:hover { background: #d8dfee; }

.admin-section { background: var(--card-bg); border-radius: 14px; padding: 1.2rem; margin-bottom: 1.5rem; box-shadow: 0 6px 24px rgba(0,0,0,.32); }
.admin-section h2 { color: var(--navy); font-size: 1.15rem; }

/* ---------- maç takvimi ---------- */
.cal-day { margin-bottom: 1.25rem; }
.cal-date {
    color: var(--gold); font-weight: 700; font-size: .95rem; text-transform: capitalize;
    padding: .3rem 0 .5rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem;
}
.cal-match {
    display: flex; align-items: center; gap: .8rem; background: var(--card-bg); flex-wrap: wrap;
    border-radius: 10px; padding: .55rem .9rem; margin-bottom: .4rem; box-shadow: 0 3px 12px rgba(0,0,0,.28);
}
.cal-time { font-weight: 800; color: var(--navy); width: 3.2rem; flex: 0 0 auto; }
.cal-round {
    font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px;
    flex: 0 0 auto; width: 6rem; text-align: center;
}
.cal-round.round-group { background: #e7eeff; color: var(--navy); }
.cal-round.round-ko { background: var(--gold); color: var(--navy-dark); }
/* Doğal sola akış: ev (sağa yaslı) — skor — deplasman, sola sıkışık. Skorlar isim uzunluğuna
   göre kayar (kolon hizası yok); kullanıcı tercihi bu sade/orijinal görünüm yönünde. */
.cal-teams { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cal-team { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.cal-team.home { justify-content: flex-end; }
.cal-vs { color: #93a0bd; font-weight: 700; }
.cal-teams.tbd { color: #93a0bd; font-style: italic; font-weight: 500; }

/* Takvimde takım adı tıklanabilir: yeni sekmede o millî takımı tanıtan Google araması açar. */
.cal-team .team-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: inherit; text-decoration: none; cursor: pointer; border-radius: 4px;
}
.cal-team .team-link:hover > span,
.cal-team .team-link:focus-visible > span {
    text-decoration: underline; text-decoration-color: var(--gold);
    text-decoration-thickness: 2px; text-underline-offset: 2px;
}
.cal-team .team-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Maçın hakemi (yalnızca takvim gösterimi) — kartın altına, takımlarla hizalı:
   saat (3.2rem) + tur (6rem) + iki boşluk (0.8rem) kadar girinti → "solda kopuk" durmaz. */
.cal-ref {
    flex-basis: 100%; padding-left: 10.8rem;
    color: #6b7891; font-size: .74rem; font-weight: 600;
    margin-top: .2rem; padding-top: .25rem; border-top: 1px dashed var(--line);
    display: flex; align-items: center; gap: .35rem;
}
.cal-ref strong { color: var(--navy); font-weight: 800; }
.cal-ref .whistle { flex: 0 0 auto; color: var(--gold); }

/* Gerçek skor (yalnızca takvim gösterimi) */
.cal-score {
    background: var(--navy); color: var(--gold); font-weight: 800; font-size: .92rem;
    padding: .15rem .65rem; border-radius: 8px; letter-spacing: .05em; white-space: nowrap;
}
.cal-match.played { box-shadow: inset 3px 0 0 var(--gold), 0 3px 12px rgba(0, 0, 0, .28); }

/* En yakın (oynanan/sıradaki) maç: kaydırma oturduktan sonra büyüyüp küçülerek + altın
   parıltıyla birkaç kez nabız atar, sonra normale döner. Kaydırma bitsin diye kısa gecikmeyle
   başlar; büyürken komşuların üstünde kalsın diye position/z-index. */
.cal-match.nearest {
    position: relative; z-index: 2; transform-origin: center;
    animation: matchPulse 1.25s ease-in-out .35s 3;
}
@keyframes matchPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 3px 12px rgba(0, 0, 0, .28); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 2px var(--gold), 0 0 30px 7px rgba(232, 185, 35, .75); }
}
@media (prefers-reduced-motion: reduce) {
    .cal-match.nearest { animation: none; }
}

/* Admin skor giriş satırı */
.score-row .cal-teams { flex: 1; min-width: 0; }
.score-inputs { display: flex; align-items: center; gap: .4rem; margin-left: auto; flex: 0 0 auto; }
.score-inputs input {
    width: 3.2rem; text-align: center; border: 1px solid #cdd6e6; border-radius: 8px;
    padding: .35rem .2rem; font-size: .95rem; font-weight: 700;
}
.score-inputs .copy-btn:disabled { opacity: .4; cursor: default; }

@media (max-width: 600px) {
    .cal-match { flex-wrap: wrap; }
    .cal-round { width: auto; }
    .cal-ref { padding-left: 0; } /* dar ekranda girinti yok — takımlar zaten sola yaslı */
    .score-inputs { margin-left: 0; }
    /* Dar ekranda takımlar TEK satırda kalsın: tam genişlik, sarma yok, ortalı. Çok uzun
       ülke adları skoru/deplasmanı alt satıra itmesin diye gerekirse "…" ile kısalır.
       (Admin skor giriş satırı .score-row hariç tutulur.) */
    .cal-match:not(.score-row) .cal-teams {
        flex-basis: 100%; flex-wrap: nowrap; justify-content: center; gap: .45rem;
    }
    .cal-match:not(.score-row) .cal-team { min-width: 0; font-size: .85rem; }
    .cal-match:not(.score-row) .cal-team span {
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .cal-match:not(.score-row) .cal-team .team-link { min-width: 0; }

    /* Lig tablosu — dik telefon: kırılım sütunları (Grup/Üçüncüler/Eleme) gizlenir; değerleri
       oyuncu adının altında küçük bir satıra iner. Böylece Toplam sütunu her zaman görünür kalır. */
    .board th:nth-child(3), .board td:nth-child(3),
    .board th:nth-child(4), .board td:nth-child(4),
    .board th:nth-child(5), .board td:nth-child(5) { display: none; }
    .board .breakdown-mobile { display: block; font-size: .72rem; color: #93a0bd; margin-top: .15rem; }
    .board th, .board td { padding: .5rem .55rem; }
    .board .rank { width: 2rem; }
}

/* ---------- footer bağlantıları ---------- */
.footer-links { display: block; margin-top: .35rem; }
.footer-links a { color: var(--gold-soft); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- "Neler Yeni" duyuru kutusu (ana sayfa) ---------- */
.whatsnew-banner {
    display: flex; align-items: center; gap: .7rem; text-decoration: none;
    background: var(--card-bg); border: 1px solid var(--line); border-left: 4px solid var(--gold);
    border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1.25rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .22); transition: transform .12s ease, box-shadow .12s ease;
}
.whatsnew-banner:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.whatsnew-banner .wn-spark { font-size: 1.2rem; flex: 0 0 auto; }
.whatsnew-banner .wn-text {
    color: var(--ink); font-size: .9rem; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.whatsnew-banner .wn-text strong { color: var(--navy); margin-right: .4rem; }
.whatsnew-banner .wn-go { flex: 0 0 auto; color: var(--navy); font-weight: 700; font-size: .85rem; white-space: nowrap; }

/* ---------- "Neler Yeni" zaman çizelgesi (/yenilikler) ---------- */
.changelog { list-style: none; padding: 0; margin: 0; position: relative; max-width: 760px; }
.changelog::before {
    content: ""; position: absolute; left: 18px; top: 6px; bottom: 6px; width: 2px; background: var(--line);
}
.changelog-item { display: flex; gap: 1rem; padding-bottom: 1.4rem; position: relative; }
.changelog-icon {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    background: var(--card-bg); border: 2px solid var(--gold); z-index: 1;
}
.changelog-body {
    flex: 1; min-width: 0; background: var(--card-bg); border-radius: 12px;
    padding: .7rem 1rem .8rem; box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
}
.changelog-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.changelog-head h3 { color: var(--navy); margin: 0; font-size: 1.05rem; }
.changelog-head time { color: #6b7891; font-size: .8rem; font-weight: 600; flex: 0 0 auto; }
.changelog-body ul { margin: .45rem 0 0; padding-left: 1.1rem; color: var(--ink); }
.changelog-body li { margin-bottom: .2rem; line-height: 1.45; }

#blazor-error-ui {
    color-scheme: light only; background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    box-sizing: border-box; display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

@media (max-width: 768px) {
    .bracket { min-width: 1800px; }
    .topbar-inner { padding: .4rem .6rem; }
    .wizard { flex-direction: column; }
    .wizard-arrow { transform: rotate(90deg); align-self: center; }
    .wizard-step .sub { display: none; }
}

@media (max-width: 900px) {
    .landing-grid { grid-template-columns: 1fr; }
    .demo-card-wrap { max-width: none; }
    .how-strip { flex-direction: column; }
    .how-arrow { transform: rotate(90deg); align-self: center; }
}

/* Dar ekran: tamamlanma eylemleri pill içinde kırılmak yerine tam genişlik alt alta dizilir */
@media (max-width: 640px) {
    .wizard-nav { flex-direction: column; align-items: stretch; }
    .wizard-nav .wizard-hint { text-align: center; }
    .bracket-counter .inner {
        display: flex; width: 100%; box-sizing: border-box;
        flex-direction: column; align-items: stretch; border-radius: 16px; gap: .6rem;
    }
    .bracket-counter .mini-bar { width: 100%; }
    .bracket-counter .goto-btn { text-align: center; }
}
