/* Futbolcu Zinciri: gece stadyumu teması. Tek vurgu rengi (ışıldak limonu), yazı tipi kendi sunucumuzdan (Outfit, OFL). */
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-ext-800.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/outfit-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #05080f;
  --bg-2: #080d19;
  --panel: #0b1220;
  --panel-2: #101a2e;
  --line: #1c2a45;
  --line-soft: #141f36;
  --text: #f5f8fd;
  --muted: #8d9db8;
  --accent: #4a93ff;
  --accent-strong: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --warn: #cfe0ff;
  --danger: #ff7a7a;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgb(0 0 0 / 0.8);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; font-family: var(--font); color: var(--text); line-height: 1.45; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 480px at 15% -8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(700px 420px at 100% 0%, color-mix(in srgb, #1d4ed8 14%, transparent), transparent 70%),
    linear-gradient(var(--bg), var(--bg-2));
  background-attachment: fixed;
}
/* Saha çizgileri: çok silik, içeriğin arkasında. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), var(--line-soft) calc(50% - 1px), var(--line-soft) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 46%, transparent 118px, var(--line-soft) 119px, var(--line-soft) 121px, transparent 122px);
  mask-image: linear-gradient(#000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(#000 0%, transparent 70%);
}
a { color: var(--accent); }
.wrap { position: relative; max-width: 1140px; margin: 0 auto; padding: 18px 16px 48px; }

/* ---- Üst bar ---- */
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.brand span { display: block; font-size: 0.8rem; color: var(--muted); }
.brand > span:not(.avatar) { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--panel) 80%, transparent); backdrop-filter: blur(6px); font-size: 0.85rem; color: var(--muted); }
.chip strong { color: var(--text); font-weight: 600; }
.chip.plain { padding-left: 14px; }
.avatar { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-strong); color: #ffffff; font-weight: 800; font-size: 0.8rem; }

/* ---- Yerleşim ---- */
.layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.col { display: grid; gap: 18px; min-width: 0; }
.card { background: linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 70%, transparent), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; box-shadow: var(--shadow); }
.card > .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.card > .head h2 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.card > .body { padding: 18px; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.86rem; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.badge.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.badge.wait { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, transparent); }

/* ---- Oyun sahnesi ---- */
.stage { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.stage > .head { background: linear-gradient(90deg, var(--accent-soft), transparent); }
.stage-body { padding: 22px 20px; display: grid; gap: 22px; }
.now h2.player { margin: 6px 0 4px; font-size: clamp(2rem, 7vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; overflow-wrap: anywhere; }
.now .byline { margin: 0; color: var(--muted); font-size: 0.9rem; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent-strong) 22%, transparent), color-mix(in srgb, var(--accent-strong) 4%, transparent)); }
.next-copy { display: grid; gap: 6px; min-width: 0; flex: 1 1 200px; }
.next-copy .rule { font-size: 1rem; color: var(--text); }
.next-copy .rule b { color: var(--accent); font-weight: 800; }
.next-copy .hint { margin: 0; color: var(--muted); font-size: 0.86rem; }
.kits { display: flex; align-items: center; gap: 10px; }
.kit { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(160deg, #5aa2ff, var(--accent-strong)); color: #ffffff; font-size: 2rem; font-weight: 800; line-height: 1; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 10px 26px -10px color-mix(in srgb, var(--accent-strong) 90%, transparent); animation: pop 0.4s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.kit-or { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: lowercase; }
.kits .kit:nth-of-type(2) { animation-delay: 0.08s; }
.rule { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---- Form ---- */
label { display: block; margin: 0 0 8px; font-weight: 600; font-size: 0.9rem; }
.row { display: flex; gap: 10px; }
@media (max-width: 460px) { .row { flex-direction: column; } }
input[type="text"], input[type="search"], input[type="password"], textarea {
  width: 100%; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 1.05rem; transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 160px; resize: vertical; font-size: 0.95rem; }
button, .btn { font: inherit; font-weight: 600; padding: 13px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform 0.12s, background 0.15s, border-color 0.15s; }
button:hover:not(:disabled), .btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
button:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
button.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #ffffff; font-weight: 800; box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent-strong) 90%, transparent); }
button.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent-strong) 85%, #fff); }
button.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.small, .btn.small { padding: 7px 12px; font-size: 0.82rem; border-radius: 10px; }
button:focus-visible, .btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.feedback { margin-top: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); font-size: 0.92rem; }
.feedback.error { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); background: color-mix(in srgb, var(--danger) 11%, transparent); }
.feedback.wait { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.notice { margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, transparent); font-size: 0.92rem; }
.notice p { margin: 0; flex: 1; }
.empty { text-align: center; padding: 34px 12px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 6px; }

/* ---- Zincir (zaman çizgisi) ---- */
.pad { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.pad input { padding: 11px 14px; font-size: 0.95rem; }
ol.chain { list-style: none; margin: 0; padding: 14px 16px 18px; max-height: 460px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
ol.chain li { position: relative; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: color-mix(in srgb, var(--panel) 70%, transparent); animation: drop 0.4s ease both; }
ol.chain li:last-child { margin-bottom: 0; }
ol.chain li.first { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
ol.chain .no { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
ol.chain .nm { font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
ol.chain .by { grid-column: 2; color: var(--muted); font-size: 0.8rem; }
ol.chain .by.me { color: var(--accent); }
ol.chain time { grid-column: 3; grid-row: 1 / span 2; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
/* İki isim arasındaki bağlantı: hangi harf birleştiriyor. */
ol.chain li .link { position: absolute; left: 1.15rem; bottom: -15px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line)); color: var(--accent); font-size: 0.72rem; font-weight: 800; z-index: 1; }
ol.chain li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.15rem + 11px); bottom: -14px; width: 2px; height: 14px; background: color-mix(in srgb, var(--accent) 35%, var(--line)); }
@media (max-width: 520px) { ol.chain li { grid-template-columns: 2rem minmax(0, 1fr) auto; } ol.chain .by { display: none; } ol.chain time { grid-row: 1; } }

/* ---- Sıralama ---- */
ol.ranks { list-style: none; margin: 0; padding: 8px 16px 6px; }
ol.ranks li { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line-soft); }
ol.ranks li:last-child { border-bottom: 0; }
ol.ranks .rk { grid-row: 1 / span 2; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 0.85rem; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
ol.ranks li.r1 .rk { background: linear-gradient(135deg, #ffffff, #cfe0ff); color: #0b1a3a; border-color: transparent; }
ol.ranks li.r2 .rk { background: linear-gradient(135deg, #7fb1ff, #4a93ff); color: #04122e; border-color: transparent; }
ol.ranks li.r3 .rk { background: linear-gradient(135deg, #3d6fd1, #26478f); color: #eef4ff; border-color: transparent; }
ol.ranks .who { grid-column: 2; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.ranks .bar { grid-column: 2; height: 5px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
ol.ranks .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); }
ol.ranks .cnt { grid-column: 3; grid-row: 1 / span 2; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.15rem; }
ol.ranks li.me { background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 12px; }
.foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.86rem; }

/* ---- Eksik futbolcu ---- */
details.suggest > summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.suggest > summary::-webkit-details-marker { display: none; }
details.suggest > summary::after { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: 1.1rem; }
details.suggest[open] > summary::after { content: "–"; }
details.suggest .inner { padding: 0 18px 18px; }
.mine { margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.86rem; }
.mine li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.status-ADDED { color: var(--accent); }
.status-REJECTED { color: var(--danger); }
.status-PENDING { color: var(--warn); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--accent); box-shadow: var(--shadow); z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Karşılama sayfası ---- */
.welcome { max-width: 760px; padding-top: clamp(24px, 10vh, 96px); }
.hero { padding: 18px 0 8px; }
.hero h1 { margin: 14px 0 10px; font-size: clamp(2.4rem, 9vw, 4.2rem); font-weight: 800; letter-spacing: -0.028em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin: 0; max-width: 46ch; color: var(--muted); font-size: 1.1rem; }
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 6px; }
.demo .pill { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: 0.95rem; }
.demo .pill b { color: var(--accent); font-weight: 800; }
.demo .join { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line)); color: var(--accent); font-size: 0.72rem; font-weight: 800; background: var(--bg); }
.welcome .card + .card { margin-top: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 12px; align-items: start; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); font-weight: 800; }
.steps li span { padding-top: 5px; }

/* ---- Yönetim ---- */
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); padding: 22px; max-width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(0 0 0 / 0.65); }
dialog h3 { margin: 0 0 8px; }
dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.admin-list { list-style: none; margin: 0; padding: 0 14px; max-height: 360px; overflow-y: auto; }
.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); }
.admin-list li:last-child { border-bottom: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.narrow { max-width: 440px; }
.spaced { margin-top: 12px; }
/* Yönetim sayfasındaki iki sütunlu ızgara oyun yerleşimiyle aynı. */
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }

/* ---- Hareket ---- */
@keyframes pop { from { transform: translateY(8px) scale(0.7) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
