/* Oyun Halısı: renkler tek merkezde (aşağıdaki değişkenler). Bileşenlerde sabit renk yok. */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/baloo-2-latin-ext-400-normal.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: "Baloo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/baloo-2-latin-400-normal.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: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/baloo-2-latin-ext-600-normal.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: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/baloo-2-latin-600-normal.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: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/baloo-2-latin-ext-800-normal.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: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/baloo-2-latin-800-normal.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 {
  --zemin: #FBF7EF;
  --yuzey: #FFFFFF;
  --yuzey2: #F1EADB;
  --metin: #23272E;
  --soluk: #555B66;
  --cizgi: #D8CFBD;
  --vurgu: #2F7A4A;
  --vurgu-metin: #FFFFFF;
  --baglanti: #1F6A3D;
  --odak: #C2410C;
  --yesil: #8BC779;
  --asfalt: #4A4F57;
  --sari: #F2C230;
  --tamam: #166534;
  --hata: #B42318;
  --golge: 0 1px 2px rgb(0 0 0 / 0.08);
  --yazi: "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-tema="koyu"] {
  --zemin: #1B1F24;
  --yuzey: #252A31;
  --yuzey2: #2E343C;
  --metin: #ECE8DF;
  --soluk: #B3B8C0;
  --cizgi: #414852;
  --vurgu: #7CCB91;
  --vurgu-metin: #12261A;
  --baglanti: #93D9A6;
  --odak: #FDBA74;
  --yesil: #5E9E55;
  --asfalt: #3B4048;
  --sari: #E7B62A;
  --tamam: #86EFAC;
  --hata: #FCA5A5;
  --golge: 0 1px 2px rgb(0 0 0 / 0.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zemin); color: var(--metin); font-family: var(--yazi); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--baglanti); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--odak); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0.6em 0 0.3em; }
h2 { font-size: 1.5rem; margin-top: 1.8em; }
.kap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ekran-okuyucu { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atla { position: absolute; left: -9999px; top: 8px; background: var(--yuzey); padding: 8px 12px; z-index: 50; }
.atla:focus { left: 8px; }

/* Üst çubuk */
.ust { background: var(--yuzey); border-bottom: 1px solid var(--cizgi); }
.ust-ic { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--metin); text-decoration: none; }
.logo-isaret { width: 36px; height: 36px; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--metin); text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"], .menu a:hover { background: var(--yuzey2); }
.araclar { display: flex; align-items: center; gap: 6px; }
.simge-dugme, .menu-dugme { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--metin); border-radius: 10px; cursor: pointer; }
.simge-dugme svg, .menu-dugme svg { width: 22px; height: 22px; fill: currentColor; }

.menu-dugme { display: none; }
[data-tema="koyu"] .gunes { display: block; } [data-tema="koyu"] .ay { display: none; }
[data-tema="acik"] .gunes { display: none; } [data-tema="acik"] .ay { display: block; }
.dil-dugme { padding: 6px 10px; border: 1px solid var(--cizgi); border-radius: 10px; color: var(--metin); text-decoration: none; font-weight: 600; }

@media (max-width: 760px) {
  .menu { order: 3; width: 100%; margin-left: 0; }
  .menu-dugme { display: inline-grid; position: absolute; right: 16px; top: 12px; }
  .ust-ic { position: relative; padding-right: 56px; }
  .menu ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .menu.acik ul { display: flex; }
  .araclar { margin-left: auto; }
}

/* Düğmeler */
.dugme { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--vurgu); background: var(--vurgu); color: var(--vurgu-metin); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.dugme.ikincil { background: transparent; color: var(--metin); border-color: var(--cizgi); }
.dugme svg { width: 18px; height: 18px; fill: currentColor; }
.baglanti-dugme { background: none; border: 0; padding: 0; font: inherit; color: var(--baglanti); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }

/* İçerik */
main { padding-bottom: 48px; }
.ozet { font-size: 1.2rem; max-width: 62ch; }
.not, .guncel, small { color: var(--soluk); }
.durum-notu { background: var(--yuzey2); border-left: 4px solid var(--sari); padding: 12px 16px; border-radius: 8px; max-width: 70ch; }
.kahraman { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 16px; }
.kahraman-gorsel { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 16px; overflow: hidden; box-shadow: var(--golge); max-width: 420px; justify-self: center; width: 100%; }
.kahraman-gorsel svg { display: block; width: 100%; height: auto; }
.eylem { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .kahraman { grid-template-columns: 1fr; } }
.adimlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: adim; }
.adimlar li { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; padding: 16px; counter-increment: adim; }
.adimlar h3::before { content: counter(adim) ". "; color: var(--vurgu); }
.adimlar h3 { margin: 0 0 6px; }
.karo-serit { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.karo-serit li { text-align: center; font-size: 0.95rem; }
.karo-serit svg { display: block; width: 100%; height: auto; border-radius: 10px; }
details { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 12px; padding: 10px 16px; margin: 8px 0; max-width: 78ch; }
summary { cursor: pointer; font-weight: 700; }
.katalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; padding: 12px; }
.kart svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.kart h3 { margin: 10px 0 0; }
.olcu { color: var(--soluk); margin: 4px 0 10px; }
.sek-kutu { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.sek-kutu > svg { width: 120px; height: auto; flex: none; }
.sek-kutu > div { flex: 1 1 240px; }
.cocuk-ozet { background: var(--yuzey2); border-radius: 14px; padding: 4px 18px; max-width: 70ch; }
.hata { padding: 24px 0; }

/* Formlar */
.form { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; padding: 16px; max-width: 720px; }
.alanlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.alanlar p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
input[type="number"], input[type="search"] { font: inherit; padding: 8px 10px; border: 1px solid var(--cizgi); border-radius: 8px; background: var(--zemin); color: var(--metin); }
fieldset { border: 1px solid var(--cizgi); border-radius: 10px; margin: 16px 0; display: grid; gap: 6px; }
legend { font-weight: 700; padding: 0 6px; }
.sonuc { background: var(--yuzey); border: 2px solid var(--vurgu); border-radius: 14px; padding: 4px 16px 12px; margin-top: 16px; max-width: 720px; }
.sonuc .hata-metni { color: var(--hata); font-weight: 700; }

/* Yol kurucu */
.kurucu { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .kurucu { grid-template-columns: 1fr; } }
.palet h2 { margin-top: 0; font-size: 1.2rem; }
.palet ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 760px) { .palet ul { grid-template-columns: repeat(4, 1fr); } }
.palet-dugme { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 2px solid var(--cizgi); border-radius: 10px; background: var(--yuzey); color: var(--metin); font: inherit; font-size: 0.85rem; cursor: pointer; }
.palet-dugme svg { width: 100%; height: auto; border-radius: 6px; }
.palet-dugme[aria-pressed="true"] { border-color: var(--vurgu); box-shadow: 0 0 0 2px var(--vurgu); }
.secili { font-weight: 700; }
.boyut { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.boyut label { display: flex; flex-direction: column; font-weight: 600; }
.boyut input { width: 80px; }
.plan { display: grid; gap: 0; max-width: 100%; overflow-x: auto; border: 2px solid var(--cizgi); border-radius: 8px; width: fit-content; }
.plan button { width: 64px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.plan button svg { width: 100%; height: 100%; display: block; }
.plan button:focus-visible { outline-offset: -3px; }
@media (max-width: 480px) { .plan button { width: 44px; height: 44px; } }
.parcalar { columns: 2; max-width: 420px; }
.baglanti { color: var(--soluk); }

/* Paylaş */
.paylas { position: relative; display: inline-block; margin-bottom: 8px; }
.paylas-menu { position: absolute; z-index: 20; list-style: none; margin: 6px 0 0; padding: 6px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 12px; box-shadow: var(--golge); min-width: 200px; }
.paylas-menu a, .paylas-menu button { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 8px; color: var(--metin); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.paylas-menu a:hover, .paylas-menu button:hover { background: var(--yuzey2); }
@media (max-width: 480px) { .paylas-dugme span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Altbilgi */
.alt { border-top: 1px solid var(--cizgi); background: var(--yuzey); padding: 20px 0; font-size: 0.95rem; }
.alt-satir1, .alt-satir2 { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.alt-satir2 { margin-top: 12px; }
.telif { margin: 0; color: var(--soluk); }
.hukuki { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.sosyal { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.sosyal a { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--soluk); }
.sosyal a:hover { color: var(--vurgu); }
.sosyal svg { width: 20px; height: 20px; fill: currentColor; }
.rozet img { display: block; height: 28px; width: auto; }
[data-tema="acik"] .rozet-koyu, [data-tema="koyu"] .rozet-acik { display: none; }
@media (max-width: 760px) {
  .alt-satir1, .alt-satir2 { flex-direction: column; align-items: flex-start; }
  .hukuki { justify-content: flex-start; }
}

/* Liste formu: çerçevesiz, tek satır */
.liste-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.liste-alan { position: relative; flex: 1 1 auto; min-width: 0; display: block; }
.liste-alan input { width: 100%; min-width: 160px; max-width: 300px; font: inherit; padding: 6px 2px; border: 0; border-bottom: 2px solid var(--cizgi); background: transparent; color: var(--metin); }
.liste-alan input:focus-visible { border-bottom-color: var(--vurgu); }
.liste-form button { font: inherit; font-weight: 700; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--vurgu); color: var(--vurgu-metin); cursor: pointer; flex: none; }
.liste-form { flex-wrap: nowrap; }
.liste-tamam { position: absolute; inset: 0; display: flex; align-items: center; background: var(--yuzey); color: var(--tamam); font-weight: 700; cursor: pointer; }
.liste-tamam[hidden] { display: none; }
.liste-form:has(#liste-tamam:target) .liste-tamam, .liste-tamam:target { display: flex; }
.liste-hata { color: var(--hata); font-size: 0.9rem; flex-basis: 100%; }
.liste-hata:empty { display: none; }
.bot-tuzagi { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Çerez bandı ve pencereler */
.cerez-bant { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--yuzey); border-top: 2px solid var(--cizgi); padding: 12px 16px; display: flex; gap: 12px 20px; align-items: center; justify-content: center; flex-wrap: wrap; box-shadow: 0 -2px 8px rgb(0 0 0 / 0.1); }
.cerez-bant[hidden] { display: none; }
.cerez-bant p { margin: 0; max-width: 70ch; }
.cerez-dugmeler { display: flex; gap: 8px; flex-wrap: wrap; }
.cerez-bant .dugme { min-width: 110px; justify-content: center; }
.pencere { border: 1px solid var(--cizgi); border-radius: 14px; background: var(--yuzey); color: var(--metin); max-width: min(520px, calc(100vw - 32px)); padding: 20px; }
.pencere::backdrop { background: rgb(0 0 0 / 0.45); }
.pencere h2 { margin-top: 0; }
.ara-pencere { width: 100%; }
.ara-pencere input { width: 100%; }
.ara-sonuc { list-style: none; padding: 0; margin: 8px 0 16px; max-height: 50vh; overflow: auto; }
.ara-sonuc a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--metin); }
.ara-sonuc a:hover, .ara-sonuc a:focus-visible { background: var(--yuzey2); }
.ara-sonuc small { display: block; }
.ipucu { color: var(--soluk); font-size: 0.9rem; margin: 6px 0; }
