/* NETKICK Panel — oyunun renk belirteçleri (UIKit.cs): lacivert 1C2A48, krem FFF5E4, altın FFC23D, mavi 2A6FE0,
   kırmızı CC4239, yeşil 2FA864, turuncu F08A1C. Telefonda tek sütun; satır içi stil yok (CSP). */
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/Rubik-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --navy: #1c2a48; --navy2: #263759; --cream: #fff5e4; --gold: #ffc23d; --gold2: #f0a92a; --blue: #2a6fe0;
  --red: #cc4239; --green: #2fa864; --orange: #f08a1c; --turq: #17958d;
  --bg: #f4f1ea; --card: #ffffff; --ink: #1c2a48; --ink2: #5c6882; --line: #e3ded3; --soft: #f7f4ee;
  --focus: 0 0 0 3px rgba(42, 111, 224, .35);
  --r: 14px; --shadow: 0 1px 2px rgba(28, 42, 72, .06), 0 4px 16px rgba(28, 42, 72, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased; }
h1, h2, h3, .marka { font-family: "Baloo 2", system-ui, sans-serif; font-weight: 800; letter-spacing: .2px; margin: 0; }
h1 { font-size: 26px; line-height: 1.15; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
.gizli { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- kabuk */
.ust { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px;
  background: var(--navy); color: var(--cream); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.ust .marka { font-size: 21px; color: var(--cream); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.ust .marka b { color: var(--gold); }
.ust .bosluk { flex: 1; }
.ikon-dugme { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 0; background: transparent; color: inherit; cursor: pointer; }
.ikon-dugme:hover { background: rgba(255, 255, 255, .1); }
.ikon-dugme svg { width: 22px; height: 22px; }
.rozet { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.kim { font-size: 13px; opacity: .85; text-align: right; line-height: 1.2; }
.kim b { display: block; font-size: 14px; opacity: 1; }
#menuAc { display: none; }

.duzen { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 56px); }
nav.yan { background: var(--card); border-right: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 56px;
  height: calc(100vh - 56px); overflow-y: auto; }
nav.yan .baslik { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2);
  margin: 14px 10px 6px; }
nav.yan a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink);
  text-decoration: none; font-weight: 600; }
nav.yan a:hover { background: var(--soft); }
nav.yan a.secili { background: var(--navy); color: var(--cream); }
nav.yan a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
main { padding: 22px 26px 60px; max-width: 1180px; width: 100%; }
.sayfa-ust { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sayfa-ust p { margin: 4px 0 0; color: var(--ink2); }
.perde { display: none; }

@media (max-width: 900px) {
  #menuAc { display: inline-grid; }
  .duzen { grid-template-columns: 1fr; }
  nav.yan { position: fixed; top: 56px; left: 0; bottom: 0; width: 260px; z-index: 30; transform: translateX(-100%);
    transition: transform .18s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, .15); height: auto; }
  body.menu nav.yan { transform: none; }
  body.menu .perde { display: block; position: fixed; inset: 56px 0 0 0; background: rgba(28, 42, 72, .35); z-index: 25; }
  main { padding: 16px 14px 60px; }
  .kim { display: none; }
  h1 { font-size: 23px; }
}

/* ---- kartlar, ızgaralar */
.kart { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.kart + .kart, .kart + .izgara, .izgara + .kart, .izgara + .izgara { margin-top: 14px; }
.kart > h2, .kart > h3 { margin-bottom: 10px; }
.kart-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.izgara { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.izgara.iki { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 520px) { .izgara.iki { grid-template-columns: 1fr; } }
.sayi { padding: 14px 16px; }
.sayi .etiket { color: var(--ink2); font-size: 13px; font-weight: 600; }
.sayi .deger { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 32px; line-height: 1.1; margin-top: 2px; }
.sayi .alt { color: var(--ink2); font-size: 12.5px; }
.sayi.uyari { border-color: #f5c58a; background: #fff8ee; }
.sayi.tehlike { border-color: #efb3ae; background: #fff4f3; }
.sayi.iyi .deger { color: var(--green); }

/* ---- düğmeler */
.dugme { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--card); font-weight: 650; cursor: pointer; white-space: nowrap;
  text-decoration: none; color: var(--ink); }
.dugme:hover { background: var(--soft); }
.dugme:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: none; box-shadow: var(--focus); }
.dugme.ana { background: var(--gold); border-color: var(--gold2); color: var(--navy); box-shadow: 0 2px 0 var(--gold2); }
.dugme.ana:hover { background: #ffcb57; }
.dugme.koyu { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.dugme.koyu:hover { background: var(--navy2); }
.dugme.tehlike { background: var(--red); border-color: var(--red); color: #fff; }
.dugme.tehlike:hover { background: #b93a32; }
.dugme.hafif { border-color: transparent; background: transparent; }
.dugme.kucuk { min-height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 9px; }
.dugme:disabled { opacity: .5; cursor: not-allowed; }
.dugmeler { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dugmeler.sag { justify-content: flex-end; }

/* ---- formlar */
label.alan { display: block; margin-bottom: 12px; }
label.alan > span, .alan-ad { display: block; font-weight: 650; font-size: 13.5px; margin-bottom: 5px; }
.alan-ad small { font-weight: 500; color: var(--ink2); }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #d6d0c4; border-radius: 10px; background: #fff; }
textarea { min-height: 90px; resize: vertical; }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--soft); color: var(--ink2); }
.ipucu { color: var(--ink2); font-size: 12.5px; margin-top: 4px; }
.hata-metin { color: var(--red); font-size: 13px; margin-top: 4px; font-weight: 600; }
.alan-satir { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }
.dizi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dizi label { font-size: 12px; color: var(--ink2); font-weight: 600; }
@media (max-width: 520px) { .dizi { grid-template-columns: repeat(2, 1fr); } }
.anahtar { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.anahtar input { width: 20px; height: 20px; accent-color: var(--blue); }
.kilitli { position: relative; padding: 10px 12px; border-radius: 10px; background: #fff6e0; border: 1px dashed #e7b64b; color: #7a5a12;
  font-size: 13px; font-weight: 600; }
.alan.degisti input, .alan.degisti select { border-color: var(--blue); background: #f2f7ff; }
.form-alt { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--card) 30%); padding-top: 14px; margin-top: 4px; }

/* ---- tablolar (telefonda kart listesi) */
table.liste { width: 100%; border-collapse: collapse; }
table.liste th { text-align: left; font-size: 12px; color: var(--ink2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.liste td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.liste tr.tik { cursor: pointer; }
table.liste tr.tik:hover td { background: var(--soft); }
table.liste td.sag, table.liste th.sag { text-align: right; }
@media (max-width: 700px) {
  table.liste thead { display: none; }
  table.liste, table.liste tbody, table.liste tr, table.liste td { display: block; width: 100%; }
  table.liste tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; background: #fff; }
  table.liste td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.liste td::before { content: attr(data-b); color: var(--ink2); font-size: 12.5px; font-weight: 600; text-align: left; }
  table.liste td.sag { justify-content: flex-end; }
  table.liste td.sag::before { content: none; }
}
.bos { color: var(--ink2); text-align: center; padding: 28px 10px; }

/* ---- etiketler */
.etk { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--soft); color: var(--ink2); border: 1px solid var(--line); white-space: nowrap; }
.etk.yesil { background: #e7f6ee; color: #1d7a47; border-color: #bfe6cf; }
.etk.kirmizi { background: #fdecea; color: #a8332b; border-color: #f4c2bd; }
.etk.turuncu { background: #fff1e0; color: #a65a0b; border-color: #f7cf9f; }
.etk.mavi { background: #e9f1ff; color: #1f57b5; border-color: #c3d8fb; }
.etk.lacivert { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.nokta { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---- sekmeler */
.sekmeler { display: flex; gap: 4px; background: #ebe6db; padding: 4px; border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.sekmeler button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.sekmeler button.secili { background: #fff; box-shadow: var(--shadow); }

/* ---- giriş */
.giris-zemin { min-height: 100vh; display: grid; place-items: center; padding: 20px 14px;
  background: radial-gradient(1200px 600px at 20% -10%, #2c4170, transparent), var(--navy); }
.giris-kart { width: 100%; max-width: 410px; background: var(--cream); border-radius: 22px; padding: 26px 22px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.giris-kart .marka { font-size: 30px; text-align: center; color: var(--navy); }
.giris-kart .marka b { color: var(--orange); }
.giris-kart .alt-baslik { text-align: center; color: var(--ink2); margin: 2px 0 18px; }
.giris-kart .dugme.ana { width: 100%; min-height: 48px; font-size: 16px; }
.adimlar { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.adimlar span { width: 34px; height: 5px; border-radius: 3px; background: #e3d7c0; }
.adimlar span.tamam { background: var(--gold2); }
.qr { display: block; width: 210px; height: 210px; margin: 6px auto 10px; border-radius: 12px; background: #fff; padding: 8px; }
.sir { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; background: #fff; border: 1px dashed #d6c8ad;
  border-radius: 10px; padding: 8px 10px; word-break: break-all; text-align: center; user-select: all; }
.kodlar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px; background: #fff; border-radius: 12px; padding: 12px; user-select: all; }
.kod-girdi { letter-spacing: .3em; text-align: center; font-size: 22px !important; font-family: ui-monospace, Menlo, monospace; }

/* ---- modal ve bildirim */
.modal-zemin { position: fixed; inset: 0; z-index: 50; background: rgba(28, 42, 72, .45); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 440px; background: var(--card); border-radius: 18px; padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  max-height: calc(100vh - 32px); overflow-y: auto; }
.modal.genis { max-width: 640px; }
.modal h2 { margin-bottom: 6px; }
.modal p { color: var(--ink2); margin: 0 0 14px; }
#tost { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 460px); }
.tost { background: var(--navy); color: var(--cream); padding: 12px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-weight: 600; animation: gel .16s ease; }
.tost.hata { background: var(--red); color: #fff; }
@keyframes gel { from { transform: translateY(8px); opacity: 0; } }
.bildirim { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.bildirim.yeni { background: #fffbef; }
.bildirim .zaman { color: var(--ink2); font-size: 12.5px; white-space: nowrap; }

/* ---- oyuncu, geçmiş, denetim */
.profil-ust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar { width: 54px; height: 54px; border-radius: 16px; background: var(--navy); color: var(--gold); display: grid; place-items: center;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 26px; flex: none; }
.uid { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink2); word-break: break-all; }
.olay { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.olay .zaman { color: var(--ink2); font-size: 12.5px; }
@media (max-width: 520px) { .olay { grid-template-columns: 1fr; gap: 2px; } }
.fark { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--ink2); word-break: break-word; }
.fark del { color: var(--red); text-decoration: none; }
.fark ins { color: #1d7a47; text-decoration: none; }
.mac-oyuncular { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.takim0 { color: var(--blue); font-weight: 700; }
.takim1 { color: var(--red); font-weight: 700; }
.skor { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; }

/* ---- takvim */
.takvim-ust { display: flex; align-items: center; gap: 8px; }
.takvim { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.takvim .gb { font-size: 11.5px; font-weight: 700; color: var(--ink2); text-align: center; padding: 4px 0; }
.takvim .gun { min-height: 92px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px; display: flex; flex-direction: column; gap: 3px; }
.takvim .gun.bu-ay-degil { opacity: .45; }
.takvim .gun.bugun { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.takvim .gun .n { font-size: 12px; font-weight: 700; color: var(--ink2); }
.takvim .olay-cip { font-size: 11.5px; font-weight: 650; border-radius: 6px; padding: 2px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #e9f1ff; color: #1f57b5; cursor: pointer; border: 0; text-align: left; }
.takvim .olay-cip.bakim { background: #fff1e0; color: #a65a0b; }
.takvim .olay-cip.diger { background: #ecebf7; color: #4b46a0; }
.takvim .olay-cip.bitti { opacity: .55; }
@media (max-width: 700px) { .takvim .gun { min-height: 58px; } .takvim .olay-cip { font-size: 0; height: 6px; padding: 0; } }

/* ---- oyun içi duyuru önizlemesi (EkranDuyuru.cs ile aynı dil) */
.onizleme-cerceve { background: #2a3b5e; border-radius: 22px; padding: 14px; display: grid; place-items: center; }
.oyun-panel { width: 100%; max-width: 360px; aspect-ratio: 720 / 1000; background: #f1e7c9; border-radius: 26px; padding: 18px 12px 14px;
  display: flex; flex-direction: column; box-shadow: 0 4px 0 #d6c39b, 0 12px 30px rgba(0, 0, 0, .3); }
.oyun-panel .ust-satir { display: flex; align-items: center; gap: 10px; padding: 0 8px 12px; }
.oyun-panel .i { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 17px; }
.oyun-panel .t { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 21px; color: var(--navy); }
.oyun-liste { flex: 1; overflow-y: auto; display: grid; gap: 8px; align-content: start; padding: 0 2px; }
.oyun-kart { background: #f2f2ec; border-radius: 12px; padding: 12px 12px 12px 26px; position: relative; }
.oyun-kart::before { content: ""; position: absolute; left: 12px; top: 12px; bottom: 12px; width: 5px; border-radius: 3px; background: var(--blue); }
.oyun-kart.bakim::before { background: var(--orange); }
.oyun-kart .b { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 15px; color: var(--navy); line-height: 1.2; padding-right: 50px; }
.oyun-kart .y { position: absolute; right: 12px; top: 12px; background: var(--red); color: #fff; font-family: "Rubik", sans-serif; font-weight: 900;
  font-size: 9.5px; border-radius: 10px; padding: 3px 9px; }
.oyun-kart .d { font-family: "Rubik", sans-serif; font-weight: 900; font-size: 10.5px; color: #96928c; margin: 2px 0 4px; }
.oyun-kart.bakim .d { color: var(--orange); }
.oyun-kart .m { font-family: "Rubik", sans-serif; font-weight: 900; font-size: 12px; color: #5c6882; white-space: pre-wrap; word-break: break-word; }
.oyun-tamam { align-self: center; margin-top: 10px; width: 56%; padding: 9px 0; text-align: center; border-radius: 12px; background: linear-gradient(#f6d26a, #f0b53c);
  box-shadow: 0 3px 0 #d98f22; font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--navy); }
.dil-sekme { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.dil-sekme button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.dil-sekme button.secili { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.dil-sekme button.dolu::after { content: "•"; color: var(--green); margin-left: 3px; }
.geri-sayim { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 40px; line-height: 1; }
.bant { border-radius: 12px; padding: 12px 14px; font-weight: 650; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bant.turuncu { background: #fff1e0; color: #8a4a06; border: 1px solid #f7cf9f; }
.bant.kirmizi { background: #fdecea; color: #8f2a23; border: 1px solid #f4c2bd; }
.bant.mavi { background: #e9f1ff; color: #1f4f9f; border: 1px solid #c3d8fb; }
.yuk { color: var(--ink2); padding: 20px 0; }
.yetki-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 16px; }
.yetki-izgara h3 { grid-column: 1 / -1; margin-top: 8px; font-size: 14px; color: var(--ink2); }
.alan.tam { grid-column: 1 / -1; }
.grup-baslik { margin: 14px 0 8px; font-size: 14px; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; font-family: system-ui, sans-serif; font-weight: 700; }
.grup-baslik:first-child { margin-top: 0; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.izgara > .kart { margin-top: 0; }
.modal.genis { max-width: 1040px; }
.form-alt { background: var(--card); border-top: 1px solid var(--line); margin: 8px -16px -16px; padding: 12px 16px; border-radius: 0 0 var(--r) var(--r); z-index: 2; }
table.liste td[data-b="Zaman"] { white-space: nowrap; }
@media (max-width: 700px) { .izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .sayi .deger { font-size: 26px; } .sayi { padding: 12px; } }
