/* oyunum.net — kâğıt tonlu, sade tema. Oyunlar da bu değişkenleri kullanır. */
:root {
  --bg: #f6f1e7;
  --paper: #fffdf8;
  --ink: #1f2328;
  --muted: #6b6458;
  --line: #e4dccb;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-2: #0f766e;
  --good: #15803d;
  --bad: #b91c1c;
  --cell: #fffdf8;
  --cell-alt: #efe7d6;
  --shadow: 0 1px 2px rgba(60, 40, 10, 0.06), 0 6px 20px rgba(60, 40, 10, 0.06);
  --radius: 14px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17150f;
    --paper: #211e17;
    --ink: #efe9dc;
    --muted: #a69d8b;
    --line: #3a3427;
    --accent: #f97316;
    --accent-ink: #1a1206;
    --accent-2: #2dd4bf;
    --good: #4ade80;
    --bad: #f87171;
    --cell: #29251c;
    --cell-alt: #332e23;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17150f; --paper: #211e17; --ink: #efe9dc; --muted: #a69d8b; --line: #3a3427;
  --accent: #f97316; --accent-ink: #1a1206; --accent-2: #2dd4bf; --good: #4ade80; --bad: #f87171;
  --cell: #29251c; --cell-alt: #332e23; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Üst bar */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 58px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.logo-mark { color: var(--accent); font-size: 18px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--cell-alt); color: var(--ink); }

/* Ana sayfa */
.hero { padding: 40px 16px 8px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 10px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); max-width: 680px; margin: 0; }
.shelf { margin-top: 28px; }
.shelf-h { display: flex; align-items: baseline; justify-content: space-between; }
.shelf-h h2 { font-size: 21px; margin: 0 0 12px; }
.shelf-h h2 a { text-decoration: none; }
.more { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card img { width: 64px; height: 64px; border-radius: 12px; }
.card-t { font-weight: 800; font-size: 16px; margin-top: 6px; }
.card-d { color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* Oyun sayfası */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.game-h1 { font-size: clamp(26px, 4.2vw, 36px); letter-spacing: -0.02em; line-height: 1.2; margin: 8px 0 6px; }
.game-lead { color: var(--muted); margin: 0 0 14px; max-width: 760px; }
.stage { margin-bottom: 8px; }
.game-root { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; min-height: 360px; position: relative; touch-action: manipulation; }
.article { margin-top: 26px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; letter-spacing: -0.015em; margin: 34px 0 10px; line-height: 1.25; scroll-margin-top: 80px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--cell-alt); }
.prose a { color: var(--accent); }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; font-size: 15.5px; }
.toc ol { margin: 6px 0 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details > div { margin-top: 8px; color: var(--ink); }
.home-prose { margin-top: 40px; }

/* Alt bilgi */
.foot { margin-top: 56px; background: var(--paper); border-top: 1px solid var(--line); padding: 30px 0 18px; font-size: 15px; }
.foot-in { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.foot p { color: var(--muted); max-width: 300px; }
.foot-cols { display: flex; gap: 36px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 4px; }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }
.copy { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---------- Oyunların ortak arayüz parçaları ---------- */
.g-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.g-bar .g-spacer { flex: 1; }
.g-btn { font: inherit; font-size: 15px; font-weight: 700; border: 1px solid var(--line); background: var(--cell); color: var(--ink); padding: 8px 14px; border-radius: 10px; cursor: pointer; min-height: 40px; }
.g-btn:hover { border-color: var(--accent); }
.g-btn:disabled { opacity: .45; cursor: default; }
.g-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.g-btn.active { border-color: var(--accent); color: var(--accent); }
.g-select { font: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--line); background: var(--cell); color: var(--ink); padding: 8px 10px; border-radius: 10px; min-height: 40px; }
.g-stat { font-size: 14px; color: var(--muted); background: var(--cell-alt); padding: 6px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-stat b { color: var(--ink); }
.g-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; border-radius: var(--radius); z-index: 5; }
.g-overlay[hidden] { display: none; }
.g-modal { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 22px 24px; text-align: center; max-width: 340px; margin: 16px; }
.g-modal h3 { margin: 0 0 6px; font-size: 22px; }
.g-modal p { margin: 0 0 14px; color: var(--muted); }
.g-modal .g-btn { margin: 4px; }
.g-help { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.g-center { display: flex; justify-content: center; }
@media (max-width: 560px) {
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
}
