/* games.etology.dev: portföyle aynı tokenlar, kapak çizimleri oyunun kendi rengini taşır. */
:root {
  --paper: #f2f3f6; --surface: #fff; --ink: #12151f; --muted: #5b6172; --line: #d9dce4; --accent: #2b44e0; --on-accent: #fff; --live: #0f8a5f;
  --tile-a: #e3e7fd; --tile-b: #ffe3b8; --tile-c: #d3f0e0; --field: #e4e8df; --field-line: #b9c2ae; --unit: #b8432f;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d0f15; --surface: #151822; --ink: #e9ebf2; --muted: #9298a9; --line: #262a37; --accent: #8193ff; --on-accent: #0d0f15; --live: #3fcf96;
    --tile-a: #222a55; --tile-b: #4a3716; --tile-c: #163a2c; --field: #171d18; --field-line: #35423a; --unit: #f0836b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d0f15; --surface: #151822; --ink: #e9ebf2; --muted: #9298a9; --line: #262a37; --accent: #8193ff; --on-accent: #0d0f15; --live: #3fcf96;
  --tile-a: #222a55; --tile-b: #4a3716; --tile-c: #163a2c; --field: #171d18; --field-line: #35423a; --unit: #f0836b; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
main { flex: 1; width: 100%; }
a { color: inherit; }
p, h1, h2 { margin: 0; }
h1, h2 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.top { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 0.85rem; }
.brand { font-family: var(--font-mono); font-size: 0.95rem; text-decoration: none; }
.brand b { font-weight: 500; color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 1.1rem; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.top nav a:hover { color: var(--ink); }
#theme { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 0.8rem var(--font-mono); padding: 0.35rem 0.65rem; border-radius: 999px; cursor: pointer; }
.intro { padding-block: clamp(2.5rem, 7vw, 5rem) 2.5rem; display: grid; gap: 1rem; justify-items: start; }
.intro h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); font-weight: 700; font-variation-settings: "wdth" 85; }
.intro em { font-style: normal; color: var(--accent); }
.intro p { color: var(--muted); font-size: 1.15rem; max-width: 52ch; }
#games { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 4rem; }
.game { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); min-width: 0; }
.game.first, .game:last-child:nth-child(even) { grid-column: 1 / -1; grid-template: none / minmax(0, 1.35fr) minmax(0, 1fr); }
.game .cover { display: block; min-height: 100%; }
.body { padding: 1.5rem; display: grid; gap: 0.75rem; align-content: center; justify-items: start; }
.game h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 650; }
.body p { color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 0.45rem; font: 500 0.8rem var(--font-mono); color: var(--ink) !important; }
.state::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--live); }
.state.soon { color: var(--muted) !important; }
.state.soon::before { background: none; border: 1.5px solid var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tags span { font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.6rem; color: var(--muted); }
.play { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.2rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; font-size: 1rem; }
.play.ghost { background: none; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.path { font: 0.8rem var(--font-mono); color: var(--muted); }
.cover { background: var(--field); overflow: hidden; }
.cover svg { display: block; width: 100%; height: 100%; min-height: 12rem; }
.cover.wide { border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 21 / 9; margin-bottom: 4rem; }
.cover[data-cover="tiles"], .cover.tiles { background: var(--paper); }
.tile-l { font: 700 34px var(--font-display); fill: var(--ink); text-anchor: middle; }
.note { color: var(--muted); }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 1.25rem; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 480px) { .top nav { gap: 0.7rem; } .top nav a { font-size: 0.8rem; } .brand { font-size: 0.82rem; } #theme { font-size: 0.7rem; padding-inline: 0.5rem; } .top nav a, #theme { white-space: nowrap; } }
@media (max-width: 760px) { #games { grid-template-columns: minmax(0, 1fr); } .game.first, .game:last-child:nth-child(even) { grid-template: auto auto / minmax(0, 1fr); } }
