/* squint stüdyo
   Düzen: başlık = konu alanı ("GUESS THE ___"), solda sabit telefon önizlemesi, sağda 1–5 numaralı sahne sırası.
   Tek cesur öğe başlık; geri kalan sessiz. */
:root {
  --ink: #0a0a12;
  --raise: #11111c;
  --line: #23233a;
  --fg: #f3f2ff;
  --muted: #8d8ca8;
  --cyan: #3cf0ff;
  --violet: #b45cff;
  --danger: #ff4f6d;
  --easy: #4dff9a; --medium: #ffe14d; --hard: #ff9a3c; --impossible: #ff4f6d;
  --display: "Rubik", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* üst şerit: sessiz */
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px max(16px, env(safe-area-inset-left, 0px)) 0; max-width: 1240px; margin: 0 auto; }
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--muted); }
.mark img { width: 30px; height: 30px; border-radius: 50%; }
.quiet { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 0; }
.quiet:hover { color: var(--fg); }

.studio { max-width: 1240px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right, 0px)) 96px max(16px, env(safe-area-inset-left, 0px)); }

/* başlık = konu alanı (videonun açılış kartıyla aynı dil) */
.headline { margin: 0 0 40px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 92px); line-height: .95; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .28em; }
.headline input {
  font: inherit; letter-spacing: inherit; text-transform: uppercase; background: none; border: 0; padding: 0 0 .06em; min-width: 3ch; max-width: 100%;
  background-image: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 4px dashed var(--line); caret-color: var(--cyan);
}
.headline input::placeholder { color: #2c2c46; -webkit-text-fill-color: #2c2c46; }
.headline input:focus { outline: none; border-bottom-color: var(--cyan); }
.lede { color: var(--muted); max-width: 62ch; margin: -24px 0 40px; }

.work { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .work { grid-template-columns: minmax(0, 1fr); } .preview { order: 2; position: static !important; } }

/* telefon önizlemesi */
.preview { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.phone { aspect-ratio: 9 / 16; width: 100%; max-width: 320px; border-radius: 34px; border: 1px solid var(--line); background: var(--raise); overflow: hidden; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 0; }
.phone .empty { padding: 28px; font-size: 14px; }
.make { border: 0; border-radius: 999px; padding: 15px 22px; font-family: var(--display); font-weight: 900; font-size: 17px; cursor: pointer; color: var(--ink); background: linear-gradient(90deg, var(--cyan), var(--violet)); text-decoration: none; text-align: center; }
.make:disabled { background: var(--raise); color: var(--muted); border: 1px solid var(--line); cursor: not-allowed; }
.ghost { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 12px 20px; cursor: pointer; }
.status { color: var(--muted); font-size: 14px; }
.status b { color: var(--fg); font-weight: 600; }
.bar { height: 6px; border-radius: 3px; background: var(--raise); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .3s; }
.error { color: var(--danger); font-size: 14px; }

/* sahne sırası */
.reel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.scene { display: grid; grid-template-columns: 44px 148px 76px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; }
.scene:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .scene { grid-template-columns: 32px 1fr 76px; } .scene .fields { grid-column: 1 / -1; } }
.num { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; color: var(--line); }
.scene.filled .num { color: var(--fg); }

.drop { position: relative; width: 148px; aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--raise); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; overflow: hidden; }
@media (max-width: 640px) { .drop { width: 100%; } }
.drop.over { border-color: var(--cyan); color: var(--fg); }
.scene.filled .drop { border-style: solid; cursor: crosshair; }
.drop img { width: 100%; height: 100%; object-fit: contain; display: block; }
.drop .frame { position: absolute; border: 2px solid var(--cyan); box-shadow: 0 0 0 999px rgba(10,10,18,.6); border-radius: 3px; pointer-events: none; }

.start { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.start canvas { width: 76px; height: 76px; border-radius: 10px; image-rendering: pixelated; background: var(--raise); border: 1px solid var(--line); }

.fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.answer { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 4px 0 8px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.answer::placeholder { color: #3a3a58; }
.answer:focus { outline: none; border-bottom-color: var(--cyan); }

.levels { display: flex; flex-wrap: wrap; gap: 6px; }
.levels button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.levels button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); opacity: .45; }
.levels button[aria-pressed="true"] { color: var(--fg); border-color: var(--dot); }
.levels button[aria-pressed="true"]::before { opacity: 1; }

.tune { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.tune input[type=range] { flex: 1; max-width: 220px; accent-color: var(--cyan); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; font-size: 13px; }
.link:hover { color: var(--fg); }

/* giriş */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login form { width: min(400px, 100%); display: flex; flex-direction: column; gap: 22px; }
.login .eye { width: 72px; height: 72px; border-radius: 50%; }
.login h1 { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; margin: 0; }
.login p { margin: -12px 0 0; color: var(--muted); }
.login label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; }
.login input { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0 10px; font-size: 18px; color: var(--fg); }
.login input:focus { outline: none; border-bottom-color: var(--cyan); }
