:root {
  --bg: #101217;
  --panel: #181b22;
  --panel-2: #20242d;
  --line: #2a2f3a;
  --text: #f4f6fa;
  --muted: #9aa1ad;
  --gold: #f5b400;
  --navy: #0e2240;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 50% -120px, rgba(245, 180, 0, 0.18), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

.top, main, .foot { max-width: 640px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Üst şerit */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 2px; font-size: 15px; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.brand b { color: var(--gold); }
.top-nav { display: flex; gap: 8px; }
.nav-btn {
  height: 36px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px; flex: none;
}
.nav-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Robot ve konuşma balonu */
.hero { display: flex; flex-direction: column; align-items: center; margin-top: 12px; }
.bubble {
  position: relative; max-width: 420px; min-height: 56px; padding: 12px 18px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; font-weight: 650;
  display: grid; place-items: center;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; background: var(--panel);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg);
}
.bubble b { color: var(--gold); }
.bubble.pop { animation: pop 0.32s cubic-bezier(0.2, 0.8, 0.3, 1.3); }
.bot {
  width: 300px; max-width: 82vw; padding: 0; margin-top: 6px; border: 0; background: none; border-radius: 24px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.bot:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.bot svg { display: block; width: 100%; height: auto; overflow: visible; }
.tap-hint { margin: 2px 0 0; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; transition: opacity 0.4s; }
.tap-hint.gone { opacity: 0; }

.bot-bob { animation: bob 3.2s ease-in-out infinite; }
.bot-head { transform-box: fill-box; transform-origin: 50% 100%; animation: tilt 5s ease-in-out infinite; }
.bot-eyes { transition: transform 0.12s ease-out; }
.bot-eye { animation: blink 4.2s infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.antenna-light { animation: pulse 1.1s steps(1) infinite; }
.sign-wave { animation: wave 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.bot.hop .bot-bob { animation: hop 0.6s ease-in-out; }
.bot.hop .sign-wave { animation: wave 0.25s ease-in-out 4; }
.bot.spin .bot-head { animation: dizzy 0.9s ease-in-out; }
.bot.shy .bot-head { animation: none; transform: rotate(-7deg); }
.bot.dizzy { cursor: not-allowed; }

@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes hop { 35% { transform: translateY(-22px); } 70% { transform: translateY(0); } 85% { transform: translateY(-5px); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg); } 65% { transform: rotate(2.5deg); } }
@keyframes dizzy { 20% { transform: rotate(-12deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-6deg); } 100% { transform: rotate(0); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.12); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }
@keyframes pop { from { transform: scale(0.92); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Tanıtım */
.intro { text-align: center; margin: 8px auto 22px; max-width: 520px; }
h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; font-weight: 900; letter-spacing: -0.3px; }
h1 span { color: var(--gold); }
.intro p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* Oyun kartı */
.play { padding: 18px; }
.play-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 900; letter-spacing: 2px; color: var(--gold); }
h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: 0.5px; }
h2 span { color: var(--gold); }
.play-head p.muted { margin: 4px 0 0; font-size: 14.5px; }
.primary {
  flex: none; display: inline-grid; place-items: center; height: 46px; padding: 0 26px; border-radius: 14px;
  background: var(--gold); color: #141414; font-weight: 900; font-size: 16px; box-shadow: 0 6px 20px rgba(245, 180, 0, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mode {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 13px;
  background: var(--panel-2); border: 1px solid transparent; transition: border-color 0.2s ease, transform 0.2s ease;
}
.mode:hover { border-color: var(--gold); transform: translateY(-2px); }
.mode b { font-size: 15px; font-weight: 900; }
.mode span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

/* Instagram */
.ig { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-top: 12px; transition: border-color 0.2s ease; }
.ig:hover { border-color: #d62976; }
.ig-icon svg { display: block; }
.ig-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ig-text b { font-size: 17px; font-weight: 900; }
.ig-text .muted { font-size: 14px; line-height: 1.35; }
.arrow { font-size: 22px; font-weight: 900; color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }
.ig:hover .arrow { transform: translateX(4px); color: var(--text); }

/* Neler yapar */
.does { margin-top: 28px; }
.does h2 { font-size: 18px; letter-spacing: 1px; margin-bottom: 10px; }
.does ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.does li { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.does i { font-style: normal; font-size: 22px; line-height: 1.2; }
.does li div { display: flex; flex-direction: column; }
.does li b { font-size: 15px; }
.does li span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* İletişim penceresi */
.contact {
  width: min(420px, calc(100vw - 32px)); padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--panel); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.contact[open] { animation: pop 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.2); }
.contact::backdrop { background: rgba(5, 7, 10, 0.65); backdrop-filter: blur(3px); }
.contact h2 { font-size: 20px; margin-bottom: 4px; }
.contact > p { margin: 0 0 14px; font-size: 14.5px; }
.contact .close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); font-size: 20px; line-height: 1;
}
.contact .close:hover { border-color: var(--gold); color: var(--gold); }
.contact-row {
  display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 8px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid transparent; transition: border-color 0.2s ease;
}
a.contact-row:hover { border-color: #d62976; }
.c-icon { flex: none; display: grid; place-items: center; }
.c-icon svg { display: block; }
.c-icon.mail { width: 40px; height: 40px; border-radius: 10px; background: rgba(245, 180, 0, 0.14); color: var(--gold); }
.c-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-text small { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.5px; }
.c-text b { font-size: 15.5px; overflow-wrap: anywhere; }
a.c-text:hover b { color: var(--gold); }

.foot p { margin: 0 0 6px; }
.dev { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; transition: color 0.2s ease, background 0.2s ease; }
.dev b { color: var(--text); }
.dev:hover { color: var(--text); background: var(--panel); }
.dev:hover b { color: var(--gold); }
.foot { text-align: center; font-size: 13px; padding-top: 28px; padding-bottom: 28px; }

@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .intro p { font-size: 15px; }
  .bubble { font-size: 14.5px; padding: 10px 14px; }
  .bot { width: 250px; }
  .play { padding: 16px; }
  .play-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .primary { width: 100%; }
  .modes { grid-template-columns: 1fr; gap: 6px; }
  .mode { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
  .mode span { text-align: right; }
  .does ul { grid-template-columns: 1fr; }
  .does li { flex-direction: row; gap: 12px; }
  .ig { padding: 12px 14px; gap: 12px; }
}
@media (max-width: 380px) {
  .top { gap: 10px; }
  .brand { font-size: 13px; letter-spacing: 1px; gap: 8px; white-space: nowrap; }
  .brand img { width: 30px; height: 30px; }
  .top-nav { gap: 6px; }
  .nav-btn { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
