/* Ortak: fontlar, renkler, üst menü, alt bilgi, ahşap kart ve butonlar (tüm sayfalar). */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --forest: #1f1a10;
  --forest-2: #2f2817;
  --moss: #4d5a24;
  --parchment: #fbf1d8;
  --wood: #8a5a2b;
  --wood-dark: #4a2e12;
  --green: #5e9a35;
  --green-light: #9ad255;
  --ink: #2e2419;
  --muted: #6f6450;
  --cream: #fff6e0;
  --gold: #f6c431;
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--forest); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--forest);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, .display { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; line-height: 1.15; }

/* --- Üst menü --- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 max(16px, calc((100vw - 1120px) / 2));
  background: rgba(31, 26, 16, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 246, 224, 0.08);
  transition: background 0.25s;
}
.nav.solid { background: rgba(31, 26, 16, 0.92); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 2px var(--wood); }
.links { display: flex; align-items: center; gap: 4px; }
.links a {
  color: rgba(255, 246, 224, 0.82);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.links a:hover, .links a.active { color: var(--cream); background: rgba(255, 246, 224, 0.1); }
.lang-switch { display: flex; gap: 4px; margin-left: 8px; }
.lang-switch button {
  font: 800 12px/1 "Nunito", sans-serif;
  cursor: pointer;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 246, 224, 0.2);
  padding: 7px 10px;
  border-radius: 999px;
}
.lang-switch button.active { background: var(--green); border-color: var(--green-light); }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 246, 224, 0.1);
  cursor: pointer;
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span { display: block; height: 2.5px; border-radius: 2px; background: var(--cream); transition: transform 0.25s, opacity 0.25s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 18px;
    background: rgba(31, 26, 16, 0.97);
    border-bottom: 1px solid rgba(255, 246, 224, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav.open .links { opacity: 1; transform: none; pointer-events: auto; }
  .links a { font-size: 17px; padding: 12px 14px; border-radius: 12px; }
  .lang-switch { margin: 10px 0 0 4px; }
  .lang-switch button { padding: 9px 14px; font-size: 13px; }
}

/* --- Ahşap kart: oyunun çerçeve dokusu --- */
.wood {
  border-style: solid;
  border-width: 26px;
  border-image: url("/img/kit/card.webp") 60 56 56 56 fill / 26px stretch;
  padding: 6px 8px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35));
}
.parchment {
  border-style: solid;
  border-width: 18px;
  border-image: url("/img/kit/row.webp") 40 fill / 18px stretch;
  padding: 4px 6px;
}

/* --- Butonlar: oyunun yeşil / krem hap dokusu --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  border-style: solid;
  border-width: 22px 34px;
  border-image: url("/img/kit/btn_green.webp") 48 70 fill / 22px 34px stretch;
  padding: 0 4px;
  color: #fff;
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(30, 60, 10, 0.55);
  transition: transform 0.15s, filter 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.cream {
  border-image: url("/img/kit/btn_cream.webp") 40 60 fill / 22px 34px stretch;
  color: var(--ink);
  text-shadow: none;
}
.btn small { display: block; font-family: "Nunito", sans-serif; font-size: 12px; font-weight: 800; opacity: 0.85; letter-spacing: 0.02em; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; }
.btn .glyph { font-size: 24px; text-shadow: none; }

/* --- Alt bilgi --- */
.footer {
  position: relative;
  padding: 40px 16px 44px;
  text-align: center;
  color: rgba(255, 246, 224, 0.62);
  font-size: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
}
.footer .brand { justify-content: center; margin: 0 0 14px; }
.footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 12px; }
.footer nav a { color: var(--cream); text-decoration: none; font-weight: 700; }
.footer nav a:hover { color: var(--green-light); }
.footer p { margin: 0; }
