/* game.ozturksahin.com — ortak stiller (portfolyoyla aynı renkler). Harici kaynak yok. */
:root {
  --bg: #0b0d17;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.13);
  --text: #eceefb;
  --muted: #9aa0c0;
  --accent: #7c83ff;
  --accent-2: #22d3ee;
  --accent-3: #c084fc;
  --ok: #34d399;
  --danger: #f87171;
  --warn: #fbbf24;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --felt: #0f3d33;
  --felt-2: #0a2a24;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f6f7fd;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-2: rgba(255, 255, 255, 0.98);
  --border: rgba(30, 34, 80, 0.14);
  --text: #171a33;
  --muted: #5b6183;
  --accent: #4f56e8;
  --accent-2: #0891b2;
  --accent-3: #9333ea;
  --ok: #059669;
  --danger: #dc2626;
  --warn: #b45309;
  --shadow: 0 18px 50px rgba(50, 60, 140, 0.16);
  --felt: #cfeadf;
  --felt-2: #b7ddcd;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60vw 45vh at 10% -10%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%), radial-gradient(50vw 40vh at 100% 105%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%);
  background-repeat: no-repeat; background-attachment: fixed;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px max(16px, 3vw); }
.top h1 { font-size: clamp(18px, 3vw, 24px); font-weight: 800; letter-spacing: -0.02em; }
.top .left { justify-self: start; } .top .right { justify-self: end; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 15px; transition: background .2s, transform .2s; }
.pill:hover { background: var(--surface-2); transform: translateY(-2px); }
.pill.icon { width: 40px; padding: 0; justify-content: center; font-size: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700; border: 1px solid var(--border); background: var(--surface); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.danger { color: var(--danger); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
input[type='text'] { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
input[type='text']:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.toasts { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); z-index: 60; pointer-events: none; }
.toast { background: #232634; color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); font-size: 14.5px; animation: pop .18s ease-out; }
.toast.err { background: #7f1d1d; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
