/* Yazı tipleri kendi sunucumuzdan (Google'a bağlantı yok). Lisans: static/fonts/LICENSE-*.txt (SIL OFL 1.1) */
@font-face { font-family: Anton; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/anton-latin-ext.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: Anton; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/anton-latin.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: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-latin-ext.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: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-latin.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 {
  --bg: #0d1410;
  --surface: #151f19;
  --surface-2: #1d2a22;
  --line: #2a3a30;
  --text: #f2f5f0;
  --muted: #9aaba0;
  --accent: #c6ff3d;
  --accent-ink: #0d1410;
  --gold: #ffc83d;
  --danger: #ff5a5a;
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6f1; --surface: #ffffff; --surface-2: #eef2ea; --line: #dbe2d6;
    --text: #0f1712; --muted: #5c6b61; --accent: #1f7a3a; --accent-ink: #fff; --gold: #b07800;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, sans-serif;
}
a { color: inherit; }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }

.top {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  max-width: 760px; margin: 0 auto; padding: 18px 16px 8px;
}
.logo { font-family: Anton, Impact, sans-serif; font-size: 28px; letter-spacing: .5px; text-decoration: none; color: var(--accent); }
.tag { color: var(--muted); font-size: 14px; }
.revenue { margin-left: auto; font-size: 13px; color: var(--muted); }
.revenue b { color: var(--gold); }

.hero h1 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: clamp(28px, 6vw, 44px); line-height: 1.1; margin: 20px 0 8px; letter-spacing: .3px; }
.hero em { font-style: normal; color: var(--accent); }
.sub { color: var(--muted); margin: 0 0 20px; }

/* Günün ağası */
.daily {
  margin-top: 8px; padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 22%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.daily .crown { font-size: 30px; }
.daily .who { flex: 1; min-width: 180px; }
.daily .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 800; }
.daily .name { font-weight: 800; font-size: 18px; }
.daily .msg { color: var(--muted); font-size: 14px; }

.tabs { display: flex; gap: 8px; margin: 8px 0 12px; }
.tabs button {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font: 600 14px Inter, sans-serif; cursor: pointer;
}
.tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Sıralama */
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  padding: 12px 12px 12px 0; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
}
.row:hover { border-color: var(--muted); }
.row .bar { position: absolute; inset: 0 auto 0 0; opacity: .14; pointer-events: none; transition: width .6s; }
.row .rank { text-align: right; font-family: Anton, Impact, sans-serif; font-size: 20px; color: var(--muted); padding-left: 6px; }
.row.top1 .rank { color: var(--gold); }
.row .info { min-width: 0; position: relative; }
.row .team { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.swatch { width: 16px; height: 16px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.row .nick { color: var(--muted); font-weight: 400; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta .agha { color: var(--gold); font-weight: 600; }
.row .act { position: relative; display: flex; align-items: center; gap: 8px; }

.btn {
  border: 0; border-radius: 10px; padding: 9px 14px; cursor: pointer;
  font: 800 14px Inter, sans-serif; background: var(--accent); color: var(--accent-ink);
}
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.gold { background: var(--gold); color: #1a1200; }
.btn.voted { background: var(--surface-2); color: var(--accent); }

/* Modal */
dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  border: 1px solid var(--line); border-radius: 18px; padding: 0;
  background: var(--bg); color: var(--text);
}
dialog::backdrop { background: rgba(0, 0, 0, .6); }
.mhead { padding: 20px; color: #fff; position: relative; }
.mhead h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 32px; margin: 0; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.mhead p { margin: 2px 0 0; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.mclose { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.35); color: #fff; border: 0; border-radius: 999px; width: 32px; height: 32px; font-size: 18px; cursor: pointer; }
.mbody { padding: 16px 20px 20px; display: grid; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.throne { display: flex; gap: 12px; align-items: center; }
.throne .crown { font-size: 34px; }
.throne .name { font-weight: 800; font-size: 20px; }
.throne .name a { text-decoration: none; border-bottom: 2px solid var(--gold); }
.throne .paid { color: var(--gold); font-weight: 600; font-size: 14px; }
.throne .msg { color: var(--muted); font-size: 14px; }

form.buy { display: grid; gap: 8px; margin-top: 12px; }
form.buy input, form.buy textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: 15px Inter, sans-serif;
}
form.buy textarea { resize: vertical; min-height: 60px; }
form.buy select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: 15px Inter, sans-serif; }
form.buy .hint { font-size: 12px; color: var(--muted); }

.history { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.history li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.history li:first-child { border-top: 0; }
.history .amt { color: var(--gold); white-space: nowrap; }

.wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wall li { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 14px; overflow-wrap: anywhere; }
.wall b { display: block; font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); font-size: 14px; margin: 0; }

.share { display: flex; gap: 8px; flex-wrap: wrap; }

.foot { margin-top: 40px; color: var(--muted); font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; transition: transform .25s; max-width: calc(100vw - 32px); z-index: 10;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  .row { grid-template-columns: 28px 1fr auto; padding-right: 8px; }
  .row .nick { display: none; }
  .btn { padding: 8px 10px; }
}

/* Ödeme formu: tutar, para birimi, alıcı bilgileri */
form.buy .amt { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
form.buy .amt span { display: flex; align-items: center; gap: 6px; }
form.buy .amt b { font-size: 18px; color: var(--text); }
form.buy .cur { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
form.buy .cur label {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text);
}
form.buy .cur label:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
form.buy .cur input { accent-color: var(--accent); margin: 0; }
form.buy fieldset.buyer { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px 10px; margin: 0; display: grid; gap: 8px; }
form.buy fieldset.buyer legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
form.buy .hint a { color: var(--muted); }
form.buy .notify { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
form.buy .notify input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.foot a { color: var(--muted); }

.soon { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 14px; }


/* Tutar düğmesi */
form.buy .stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: fit-content; }
form.buy .stepper button { width: 44px; height: 42px; border: 0; background: var(--surface-2); color: var(--text); font: 800 20px Inter, sans-serif; cursor: pointer; }
form.buy .stepper button:disabled { opacity: .35; cursor: default; }
form.buy .stepper output { min-width: 110px; text-align: center; font-weight: 800; font-size: 17px; }
.btn.big { padding: 14px; font-size: 16px; width: 100%; }

/* Oy serisi, sıralama hareketi */
.streak { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-weight: 600; }
.row .rank { display: grid; justify-items: end; line-height: 1; }
.row .move { font: 700 11px Inter, sans-serif; margin-top: 3px; }
.row .move.up { color: #2fbf5b; }
.row .move.down { color: var(--danger); }
.row .today { color: #2fbf5b; font-weight: 600; }
.mhead .goal { margin-top: 6px; font-size: 14px; }

/* Shopier sekmesindeyken bekleme kutusu */
.waiting { display: grid; gap: 6px; margin-top: 12px; padding: 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.waiting b { font-size: 15px; }
