/* ==========================================================================
   MEDSECSIM — tasarım sistemi
   Performans kuralları: yalnızca transform/opacity animasyonu, backdrop-filter yok,
   kademeli gölge (data-q), azaltılmış hareket (data-motion), sistem fontları.
   ========================================================================== */

:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, "Liberation Mono", monospace;

  --bg: #EDF1F9;
  --bg-2: #E3E9F5;
  --surface: #FFFFFF;
  --surface-2: #F5F8FE;
  --surface-3: #EAF0FB;
  --ink: #111C3A;
  --ink-2: #33405F;
  --muted: #5F6B88;
  --line: #D7DFEE;
  --line-2: #C2CDE3;
  --navy: #16224A;
  --navy-2: #1F3170;
  --primary: #2F5BEA;
  --primary-2: #2349C9;
  --primary-soft: #E5ECFF;
  --primary-ink: #FFFFFF;
  --gold: #D4930C;
  --gold-2: #A86F00;
  --gold-soft: #FFF3D6;

  --best: #0E7A52;      --best-soft: #E1F5EB;      --best-line: #9ED9BD;
  --partial: #9A5B00;   --partial-soft: #FFF1D6;   --partial-line: #F0C77B;
  --wrong: #4A5571;     --wrong-soft: #ECEFF5;     --wrong-line: #C3CADA;
  --critical: #BE2129;  --critical-soft: #FDE7E7;  --critical-line: #F2A7A9;
  --info: #1765C2;      --info-soft: #E4EFFD;

  --oA: #5B4FE0; --oA-soft: #EEECFD;
  --oB: #0A85BD; --oB-soft: #E3F3FB;
  --oC: #C9740B; --oC-soft: #FDF0E0;
  --oD: #BE3A78; --oD-soft: #FBE8F1;

  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --sh-1: 0 1px 2px rgba(17, 28, 58, .06), 0 2px 10px rgba(17, 28, 58, .06);
  --sh-2: 0 10px 30px rgba(17, 28, 58, .12);
  --sh-3: 0 22px 60px rgba(10, 18, 45, .22);
  --focus: 0 0 0 3px var(--surface), 0 0 0 6px var(--primary);

  --t-fast: 140ms; --t-med: 260ms; --t-slow: 520ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-back: cubic-bezier(.3, 1.4, .5, 1);

  --gutter: 24px;
  --maxw: 1360px;
  --topbar-h: 60px;
}

/* ---------- temalar ---------- */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1222; --bg-2: #0E1730;
  --surface: #131D35; --surface-2: #17233F; --surface-3: #1C2A4B;
  --ink: #EAF0FF; --ink-2: #C3CEEA; --muted: #93A0C0;
  --line: #26365C; --line-2: #33467A;
  --navy: #0A1024; --navy-2: #14214A;
  --primary: #6D8DFF; --primary-2: #8BA4FF; --primary-soft: #1D2B57; --primary-ink: #0B1222;
  --gold: #F2B53A; --gold-2: #F6C564; --gold-soft: #3A2E12;
  --best: #46CF97; --best-soft: #0F2E25; --best-line: #1F6B4F;
  --partial: #F2B54A; --partial-soft: #33270F; --partial-line: #6D5320;
  --wrong: #AEB8D3; --wrong-soft: #1E2843; --wrong-line: #3A4870;
  --critical: #FF7A80; --critical-soft: #3A1619; --critical-line: #7A2A30;
  --info: #7DB3FF; --info-soft: #14284A;
  --oA: #8C83FF; --oA-soft: #221F4A; --oB: #3DB8EE; --oB-soft: #0F2B3D; --oC: #F2A23A; --oC-soft: #33240F; --oD: #F06BAA; --oD-soft: #3A1729;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3); --sh-2: 0 10px 30px rgba(0, 0, 0, .35); --sh-3: 0 22px 60px rgba(0, 0, 0, .5);
}
:root[data-theme="contrast"] {
  --bg: #000; --bg-2: #000; --surface: #000; --surface-2: #0A0A0A; --surface-3: #111;
  --ink: #FFF; --ink-2: #FFF; --muted: #E6E6E6; --line: #FFF; --line-2: #FFF;
  --navy: #000; --navy-2: #000; --primary: #FFD400; --primary-2: #FFE14D; --primary-soft: #222; --primary-ink: #000;
  --gold: #FFD400; --gold-2: #FFD400; --gold-soft: #111;
  --best: #5CFF9D; --best-soft: #001A0C; --best-line: #5CFF9D;
  --partial: #FFD400; --partial-soft: #1A1500; --partial-line: #FFD400;
  --wrong: #FFF; --wrong-soft: #111; --wrong-line: #FFF;
  --critical: #FF6B6B; --critical-soft: #1F0000; --critical-line: #FF6B6B;
  --info: #7FD4FF; --info-soft: #001520;
  --oA: #C7BFFF; --oA-soft: #000; --oB: #7FD4FF; --oB-soft: #000; --oC: #FFD400; --oC-soft: #000; --oD: #FF9FD0; --oD-soft: #000;
  --sh-1: none; --sh-2: none; --sh-3: none;
  --focus: 0 0 0 3px #000, 0 0 0 6px #FFD400;
  color-scheme: dark;
}

/* ---------- yazı ölçeği (projeksiyon) ---------- */
html { font-size: 16px; font-size: clamp(15px, calc(0.42vw + 10.5px), 19px); }
html[data-text="large"] { font-size: 18px; font-size: clamp(17px, calc(0.55vw + 11px), 22px); }
html[data-text="xl"] { font-size: 20px; font-size: clamp(18px, calc(0.75vw + 11px), 26px); }

/* ---------- temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; min-height: 100vh; overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 750; }
p { margin: 0 0 .8em; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); border-radius: 10px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { box-shadow: none; }
.i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.22em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.noscript { padding: 40px; text-align: center; font-size: 1.2rem; }
mark { background: #FFE58A; color: #3A2A00; padding: 0 .15em; border-radius: 4px; }
[data-theme="dark"] mark { background: #6B5300; color: #FFF3C4; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
kbd { font-family: var(--mono); font-size: .82em; background: var(--surface-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

/* ---------- boot ---------- */
.boot { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.boot-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); animation: pulse 1.2s var(--ease) infinite; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 max(var(--gutter), env(safe-area-inset-left));
  background: var(--navy); color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .08);
}
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; padding: 6px 4px; border-radius: 12px; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.brand-text b { font-size: 1.15rem; letter-spacing: .04em; }
.brand-text small { font-size: .68rem; opacity: .7; letter-spacing: .02em; }
.tb-context { flex: 1; min-width: 0; text-align: center; font-weight: 700; letter-spacing: .08em; font-size: .82rem; text-transform: uppercase; color: #C9D6FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-actions { display: flex; gap: 6px; align-items: center; }
.tb-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
  transition: background var(--t-fast) var(--ease);
}
.tb-btn:hover { background: rgba(255, 255, 255, .18); }
.tb-btn .i { width: 20px; height: 20px; }
.tb-btn.on { background: var(--primary); border-color: transparent; }
.tb-net { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: #FFD58A; padding: 4px 10px; border: 1px solid rgba(255, 213, 138, .4); border-radius: 999px; }
[data-theme="contrast"] .topbar { border-bottom: 2px solid #fff; }

/* ---------- görünüm alanı ---------- */
.view { display: block; max-width: var(--maxw); margin: 0 auto; padding: 22px max(var(--gutter), env(safe-area-inset-left)) 48px; min-height: calc(100vh - var(--topbar-h) - var(--bar-h)); }
.view.wide { max-width: 1600px; }
.view.enter > * { animation: fadeUp var(--t-med) var(--ease) both; }

/* ---------- düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border-radius: 14px; border: 2px solid transparent;
  font-weight: 750; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
  background: var(--surface-3); color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; transform: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-2); }
.btn-gold { background: var(--gold); color: #1A1200; }
.btn-gold:hover { background: #E5A21C; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--critical); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-lg { min-height: 58px; padding: 14px 26px; font-size: 1.1rem; border-radius: 16px; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .88rem; border-radius: 10px; }
.btn .i { width: 1.15em; height: 1.15em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { background: none; border: 0; color: var(--primary); font-weight: 650; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- kartlar & çipler ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); padding: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-weight: 650; font-size: .85rem; white-space: nowrap; }
.chip .i { width: 1em; height: 1em; }
.chip-primary { background: var(--primary-soft); color: var(--primary); }
.chip-gold { background: var(--gold-soft); color: var(--gold-2); }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-title h2 { margin: 0; }
.grid { display: grid; gap: 16px; }

/* ==========================================================================
   ANA EKRAN
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, #16224A 0%, #1E2F6B 55%, #2A47A8 100%);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; padding: 40px 40px 40px 44px; box-shadow: var(--sh-2);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.3px); background-size: 22px 22px;
}
.hero > * { position: relative; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero .eyebrow { color: #9DB4FF; }
.hero h1 { font-size: 3rem; letter-spacing: .02em; margin-bottom: 6px; }
.hero h1 span { color: #F2B019; }
.hero .lead { font-size: 1.2rem; color: #DCE5FF; max-width: 34em; margin-bottom: 8px; font-weight: 600; }
.hero .sub { color: #B7C6F0; max-width: 36em; }
.hero .btn-row { margin-top: 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #DCE5FF; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 5px 11px; border-radius: 999px; }
.hero-facts .i { width: 1em; height: 1em; }
[data-theme="contrast"] .hero { background: #000; border: 2px solid #fff; }

/* illüstrasyon */
.hero-art { position: relative; aspect-ratio: 5 / 4; width: 100%; border-radius: 20px; overflow: hidden; background: #DCE6F7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.ha-wall { position: absolute; inset: 0 0 34% 0; background: linear-gradient(#E8EFFB, #D6E1F5); }
.ha-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: #C3D1EA; }
.ha-sign { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); background: #16224A; color: #fff; font-weight: 800; letter-spacing: .12em; font-size: .78rem; padding: 7px 14px; border-radius: 8px; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.ha-sign .i { color: #F2B019; }
.ha-queue { position: absolute; top: 8%; right: 7%; background: #0E1430; border-radius: 8px; padding: 5px 10px; text-align: center; color: #FF6B6B; box-shadow: 0 0 0 3px #2B3768; }
.ha-queue small { display: block; font-size: .55rem; letter-spacing: .14em; color: #9AA6CC; }
.ha-queue b { font-family: var(--mono); font-size: 1.35rem; letter-spacing: .08em; text-shadow: 0 0 8px rgba(255, 107, 107, .6); }
.ha-clock { position: absolute; top: 8%; left: 8%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #16224A; }
.ha-clock i { position: absolute; left: 50%; bottom: 50%; width: 3px; background: #16224A; border-radius: 3px; transform-origin: 50% 100%; }
.ha-clock .h { height: 26%; transform: translateX(-50%) rotate(305deg); }
.ha-clock .m { height: 36%; transform: translateX(-50%) rotate(60deg); background: #2F5BEA; }
.ha-plant { position: absolute; left: 4%; bottom: 0; width: 12%; height: 42%; }
.ha-plant b { position: absolute; bottom: 0; left: 18%; width: 64%; height: 30%; background: #C46A3C; border-radius: 4px 4px 10px 10px; }
.ha-plant i { position: absolute; bottom: 26%; left: 40%; width: 26%; height: 70%; background: #2E8B57; border-radius: 50% 50% 10% 10%; transform-origin: 50% 100%; }
.ha-plant i:nth-child(1) { transform: rotate(-28deg); background: #3FA56A; }
.ha-plant i:nth-child(3) { transform: rotate(26deg); background: #267A4A; }
.ha-sec { position: absolute; left: 22%; bottom: 26%; width: 34%; }
.ha-sec .avatar, .ha-pat .avatar { width: 100%; height: auto; display: block; }
.ha-monitor { position: absolute; left: 53%; bottom: 33%; width: 22%; aspect-ratio: 4 / 3; background: #1B254B; border-radius: 6px; padding: 5px; }
.ha-monitor::after { content: ""; position: absolute; left: 42%; bottom: -12%; width: 16%; height: 14%; background: #1B254B; }
.ha-scr { width: 100%; height: 100%; background: linear-gradient(#2F5BEA, #2449C4); border-radius: 3px; padding: 10% 8%; display: flex; flex-direction: column; gap: 10%; }
.ha-scr span { display: block; height: 14%; background: rgba(255, 255, 255, .75); border-radius: 2px; }
.ha-scr span:nth-child(2) { width: 70%; } .ha-scr span:nth-child(3) { width: 45%; background: #7EE2B0; }
.ha-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(#2A3F86, #1D2E66); }
.ha-counter-top { height: 12%; background: linear-gradient(#E9EEF8, #C8D3EA); }
.ha-pat { position: absolute; right: 2%; bottom: -10%; width: 38%; }
.ha-float { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; color: #111C3A; border-radius: 12px; padding: 8px 12px; font-size: .78rem; font-weight: 700; box-shadow: 0 10px 24px rgba(10, 18, 45, .25); white-space: nowrap; }
.ha-float .i { color: #0E7A52; width: 18px; height: 18px; }
.ha-f1 { left: 4%; top: 36%; }
.ha-f2 { right: 4%; top: 30%; flex-direction: column; align-items: flex-start; gap: 0; }
.ha-f2 b { color: #0E7A52; font-size: 1.25rem; line-height: 1; }
.ha-f2 span { font-size: .68rem; color: #5F6B88; }
.ha-f3 { left: 30%; bottom: 40%; display: none; }
.ha-f3 .i { color: #2F5BEA; }
[data-q="high"] .ha-f1 { animation: float 5s ease-in-out infinite; }
[data-q="high"] .ha-f2 { animation: float 6s ease-in-out -2s infinite; }
[data-q="high"] .ha-queue b { animation: blink 4s steps(1) infinite; }

/* devam kartı */
.resume { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 20px; border-radius: var(--r); background: var(--gold-soft); border: 1px solid #F0D28A; }
[data-theme="dark"] .resume { border-color: #6D5320; }
.resume .i { width: 28px; height: 28px; color: var(--gold-2); }
.resume div { flex: 1; }
.resume b { display: block; }

/* bölüm (modül) kartları — plan belgesindeki ekran tasarımı */
.picker-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.picker-head h1 { margin: 0; }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mod-card {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 10px; min-height: 196px;
  padding: 20px 20px 18px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface-2); color: var(--ink);
  box-shadow: var(--sh-1); transition: transform var(--t-fast) var(--ease), border-color var(--t-fast);
}
.mod-card:hover { transform: translateY(-3px); border-color: var(--mc, var(--primary)); }
.mod-no { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; background: var(--mc, var(--primary)); box-shadow: 0 6px 14px -6px var(--mc, var(--primary)); }
.mod-no .i { width: 26px; height: 26px; }
.mod-card h3 { font-size: 1.35rem; margin: 6px 0 0; }
.mod-card .mod-sub { color: var(--muted); font-size: .92rem; margin: 0; }
.mod-card .mod-desc { font-size: .88rem; color: var(--ink-2); margin: 0; }
.mod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); }
.mod-ic { position: absolute; top: 20px; right: 20px; color: var(--mc, var(--primary)); opacity: .9; }
.mod-ic .i { width: 26px; height: 26px; }
.mod-card.final { --mc: var(--gold); background: linear-gradient(160deg, var(--gold-soft), var(--surface-2) 70%); border-color: #F0D28A; }
[data-theme="dark"] .mod-card.final { border-color: #6D5320; }
.mod-card.final .mod-no { color: #1A1200; }
.stars { display: inline-flex; gap: 2px; }
.stars .i { width: 18px; height: 18px; color: var(--line-2); fill: currentColor; stroke: none; }
.stars .on .i { color: var(--gold); }
.sum-head .stars .i { width: 30px; height: 30px; }
.done-chip { display: inline-flex; gap: 4px; align-items: center; color: var(--best); font-weight: 700; }
.done-chip .i { width: 16px; height: 16px; }

/* ana ekran alt bölümleri */
.home-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 18px; }
.flow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: st; }
.flow-steps li { list-style: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: .88rem; position: relative; }
.flow-steps li::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: .85rem; margin-bottom: 8px; }
.flow-steps { padding: 0; margin: 0; }
.legend { display: grid; gap: 8px; }
.legend-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.legend-row b.pts { min-width: 64px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.legend-row.g-best b.pts { color: var(--best); } .legend-row.g-partial b.pts { color: var(--partial); }
.legend-row.g-wrong b.pts { color: var(--wrong); } .legend-row.g-critical b.pts { color: var(--critical); }
.badge-shelf { display: flex; flex-wrap: wrap; gap: 10px; }
.medal { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; font-weight: 650; }
.medal-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); }
.medal-ic .i { width: 18px; height: 18px; }
.medal.locked { opacity: .45; filter: grayscale(1); }
.home-foot { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.home-foot .btn-row { gap: 8px; }

/* ==========================================================================
   MODÜL / FİNAL GİRİŞ
   ========================================================================== */
.mod-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); border-left: 8px solid var(--mc, var(--primary)); }
.mod-hero .mod-no { width: 72px; height: 72px; font-size: 1.5rem; border-radius: 18px; }
.mod-hero h1 { margin: 0 0 4px; }
.sc-list { display: grid; gap: 12px; margin-top: 18px; }
.sc-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sc-time { font-family: var(--mono); font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.sc-item h3 { margin: 0 0 2px; font-size: 1.05rem; }
.sc-item p { margin: 0; font-size: .9rem; color: var(--muted); }
.opt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.opt-card { text-align: left; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; color: var(--ink); transition: border-color var(--t-fast); }
.opt-card b { font-size: 1.05rem; }
.opt-card span { font-size: .88rem; color: var(--muted); }
.opt-card[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.opt-card[aria-pressed="true"] b::after { content: " ✓"; color: var(--primary); }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .92rem; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); }
.input:focus { border-color: var(--primary); }
textarea.input { min-height: 96px; resize: vertical; }
.note-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--info-soft); color: var(--ink); border: 1px solid transparent; font-size: .92rem; }
.note-box .i { color: var(--info); width: 22px; height: 22px; margin-top: 2px; }
.note-box.warn { background: var(--partial-soft); } .note-box.warn .i { color: var(--partial); }

/* ==========================================================================
   OLAY KARTI (intro)
   ========================================================================== */
.intro { display: grid; place-items: center; min-height: calc(100vh - var(--topbar-h) - 90px); }
.intro-card { width: min(760px, 100%); text-align: center; padding: 34px 34px 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.intro-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--mc, var(--primary)); }
.intro-card.is-final::before { background: linear-gradient(90deg, var(--gold), #F6C564); }
.intro-clock { display: inline-flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.clock { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 5px var(--navy-2); }
[data-theme="dark"] .clock { box-shadow: inset 0 0 0 5px var(--primary); }
.clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--primary); }
.clock i { position: absolute; left: 50%; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 4px; background: var(--ink); transform-origin: 50% 100%; transition: transform 900ms var(--ease); }
.clock .ch { height: 22px; } .clock .cm { height: 31px; background: var(--primary); width: 3px; margin-left: -1.5px; }
.clock .tk { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--line-2); transform-origin: 50% 35px; }
.intro-time { font-family: var(--mono); font-size: 3.2rem; font-weight: 800; letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.intro-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.intro-card h1 { font-size: 2.1rem; margin-bottom: 10px; }
.intro-goal { max-width: 36em; margin: 0 auto 18px; color: var(--ink-2); font-size: 1rem; }
.intro-goal b { color: var(--primary); }
.intro-person { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 22px; text-align: left; }
.intro-person .avatar { width: 56px; height: 56px; }
.intro-person .pi { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.intro-person .pi .i { width: 28px; height: 28px; }
.intro-person b { display: block; }
.intro-person span { font-size: .85rem; color: var(--muted); }
.ev-dots { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.ev-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ev-dots i.done { background: var(--primary); }
.ev-dots i.cur { background: var(--gold); transform: scale(1.3); }

/* ==========================================================================
   OYUN EKRANI
   ========================================================================== */
.game { display: grid; gap: 14px; }
.hud { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.hud-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.chip-time { background: var(--navy); color: #fff; font-family: var(--mono); font-size: .95rem; }
[data-theme="dark"] .chip-time { background: var(--primary); color: var(--primary-ink); }
.chip-code { font-family: var(--mono); background: transparent; border: 1px dashed var(--line-2); }
.chip-place { min-width: 0; max-width: 340px; }
.ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-prog { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: .9rem; color: var(--ink-2); }
.hud-bar { width: 140px; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 100%; background: var(--primary); transform-origin: 0 50%; transition: transform var(--t-slow) var(--ease); border-radius: 8px; }
.hud-score { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border-left: 1px solid var(--line); }
.hud-score small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.hud-score b { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: right; }
.hud-player { background: var(--gold-soft); color: var(--gold-2); }
.mode-chip { background: var(--primary-soft); color: var(--primary); }
.mode-chip.final { background: var(--gold-soft); color: var(--gold-2); }

.stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: start; }
.col-scene, .col-decision { display: grid; gap: 14px; min-width: 0; }

/* sahne */
.scene { position: relative; border-radius: 18px; overflow: hidden; min-height: 250px; border: 1px solid var(--line); background: linear-gradient(#E6EEFB, #D3DFF4); isolation: isolate; }
.scene-bg { position: absolute; inset: 0; z-index: -1; }
.scene-bg::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, .28) 78px 80px); }
.scene-sign { position: absolute; top: 12px; left: 14px; font-size: .64rem; letter-spacing: .14em; font-weight: 800; color: #fff; background: rgba(22, 34, 74, .88); padding: 5px 10px; border-radius: 6px; }
.scene-clock { display: none; }
.scene-lab { background: linear-gradient(#E4F4F2, #CBE7E3); }
.scene-ofis { background: linear-gradient(#EEF0F6, #DADFEB); }
.scene-bekleme { background: linear-gradient(#EFE9FB, #DCD2F2); }
.scene-servis { background: linear-gradient(#E6F5EC, #CDE8D8); }
.scene-arsiv { background: linear-gradient(#F6EEE2, #E8D9C2); }
[data-theme="dark"] .scene { background: linear-gradient(#1C2A4B, #15203A); }
[data-theme="dark"] .scene-lab { background: linear-gradient(#15302E, #102422); }
[data-theme="dark"] .scene-ofis { background: linear-gradient(#1E2436, #171C2B); }
[data-theme="dark"] .scene-bekleme { background: linear-gradient(#25203F, #1B1730); }
[data-theme="dark"] .scene-servis { background: linear-gradient(#173124, #11251B); }
[data-theme="dark"] .scene-arsiv { background: linear-gradient(#33291B, #261F14); }
[data-theme="contrast"] .scene { background: #000; border: 2px solid #fff; }
.scene-stage { position: relative; display: flex; align-items: flex-end; gap: 10px; min-height: 250px; padding: 14px 16px 34px; }
.scene-actor { flex: 0 0 auto; width: 42%; max-width: 250px; align-self: flex-end; position: relative; z-index: 1; }
.scene-actor .avatar { width: 100%; height: auto; display: block; margin-bottom: -6px; }
.scene-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; z-index: 2; background: linear-gradient(#E9EEF8 0 9px, #2A3F86 9px, #1D2E66); }
[data-theme="dark"] .scene-counter { background: linear-gradient(#3A4A75 0 9px, #1B2850 9px, #121C3A); }
.scene-who { position: absolute; z-index: 3; left: 14px; bottom: 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: #fff; max-width: calc(100% - 28px); }
.scene-who b { font-size: .98rem; }
.scene-who span { font-size: .8rem; opacity: .85; }
.mood { font-style: normal; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); letter-spacing: .02em; }
.mood-angry, .mood-upset, .mood-pain { background: #E5484D; }
.mood-worried, .mood-tense, .mood-sad { background: #D9861A; }
.mood-relieved, .mood-happy, .mood-hopeful { background: #16A36B; }
.bubble { position: relative; z-index: 1; flex: 1; align-self: center; margin-bottom: 40px; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.bubble::before { content: ""; position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; background: inherit; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.bubble p { margin: 0; font-size: 1.04rem; font-weight: 600; line-height: 1.45; }
.bubble p::before { content: "“"; } .bubble p::after { content: "”"; }
.bubble-phone { border-style: dashed; }
.scene-compact, .scene-compact .scene-stage { min-height: 200px; }
.scene-compact .scene-actor { max-width: 210px; }

/* karakter çizgileri */
.avatar .av-line, .avatar .av-brow path { fill: none; stroke: #2A2230; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.avatar .av-brow path { stroke-width: 3.2; }
.avatar .av-nose { fill: none; stroke: rgba(60, 30, 20, .28); stroke-width: 2; stroke-linecap: round; }
.avatar .av-wr path { fill: none; stroke: rgba(60, 30, 20, .2); stroke-width: 1.6; stroke-linecap: round; }
.avatar .av-glass rect { fill: rgba(255, 255, 255, .22); stroke: #2B2F3A; stroke-width: 2.4; }
.avatar .av-glass path { fill: none; stroke: #2B2F3A; stroke-width: 2.4; stroke-linecap: round; }

/* özel sahneler */
.scene-stage.no-say { justify-content: center; }
.scene-actor.actor-crowd { width: 80%; max-width: 400px; }
.scene-actor.actor-desk, .scene-actor.actor-system { width: 64%; max-width: 320px; }
.scene-actor.actor-phone { width: 40%; max-width: 220px; }
.crowd { display: flex; align-items: flex-end; justify-content: center; min-height: 160px; }
.crowd-p { width: 40%; margin: 0 -6%; }
.crowd-p .avatar { width: 100%; height: auto; display: block; }
.crowd-0 { transform: translateY(8px) scale(.92); } .crowd-2 { transform: translateY(12px) scale(.88); } .crowd-1 { position: relative; z-index: 1; }
.phone-vis { display: grid; place-items: center; gap: 10px; min-height: 170px; padding-bottom: 24px; }
.phone-ring { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: 0 10px 26px -8px var(--primary); }
.phone-ring .phone-ic { width: 40px; height: 40px; }
.phone-ring span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--primary); opacity: 0; }
[data-q="high"] .phone-ring span, [data-q="medium"] .phone-ring span { animation: ring 1.8s var(--ease) infinite; }
.phone-ring span:nth-child(2) { animation-delay: .6s !important; }
[data-q="high"] .phone-ring .phone-ic { animation: wiggle 1.8s ease-in-out infinite; }
.phone-cap { font-weight: 750; font-size: .85rem; color: var(--ink-2); background: var(--surface); padding: 4px 12px; border-radius: 999px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-vis { display: grid; justify-items: center; align-content: end; min-height: 170px; padding-bottom: 6px; }
.sys-screen { width: 190px; height: 120px; border-radius: 10px; background: #1B254B; padding: 8px; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }
.sys-bar { display: flex; gap: 4px; margin-bottom: 8px; }
.sys-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3A4878; }
.sys-body { height: calc(100% - 15px); border-radius: 6px; background: #FFF4E5; display: flex; align-items: center; gap: 10px; padding: 10px; }
.sys-danger .sys-body { background: #FDE7E7; } .sys-ok .sys-body { background: #E1F5EB; } .sys-info .sys-body { background: #E4EFFD; }
.sys-ic { width: 34px; height: 34px; color: #C9740B; }
.sys-danger .sys-ic { color: #BE2129; } .sys-ok .sys-ic { color: #0E7A52; } .sys-info .sys-ic { color: #1765C2; }
.sys-lines { flex: 1; display: grid; gap: 7px; }
.sys-lines b { display: block; height: 7px; border-radius: 4px; background: rgba(0, 0, 0, .15); }
.sys-lines b:nth-child(2) { width: 75%; } .sys-lines b:nth-child(3) { width: 50%; }
.sys-stand { width: 40px; height: 22px; background: #1B254B; clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); }
[data-q="high"] .sys-danger .sys-ic, [data-q="high"] .sys-warn .sys-ic { animation: blink 1.6s steps(1) infinite; }
.desk-vis { position: relative; min-height: 170px; display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding-bottom: 30px; }
.desk-monitor { width: 150px; height: 104px; background: #1B254B; border-radius: 8px; padding: 6px; position: relative; }
.desk-monitor::after { content: ""; position: absolute; left: 60px; bottom: -16px; width: 30px; height: 16px; background: #1B254B; }
.desk-scr { height: 100%; border-radius: 4px; background: linear-gradient(#2F5BEA, #2449C4); padding: 10px; display: grid; gap: 6px; align-content: start; }
.desk-scr b { display: block; height: 7px; border-radius: 3px; background: rgba(255, 255, 255, .75); }
.desk-scr b:nth-child(odd) { width: 80%; }
.desk-papers { position: relative; width: 70px; height: 52px; }
.desk-papers i { position: absolute; inset: 0; background: #fff; border-radius: 3px; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); transform: rotate(-6deg); }
.desk-papers i + i { transform: rotate(5deg) translate(6px, -4px); background: #FFFBEA; }
.desk-phone { width: 46px; height: 34px; border-radius: 8px; background: #33406A; color: #fff; display: grid; place-items: center; }

/* karar paneli */
.situation { border-radius: 18px; padding: 18px 20px; background: var(--partial-soft); border: 1px solid var(--partial-line); }
.situation h2 { display: flex; align-items: center; gap: 10px; font-size: 1.32rem; color: var(--partial); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.situation h2 .i { width: 1.3em; height: 1.3em; }
.situation p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.situation.tone-danger { background: var(--critical-soft); border-color: var(--critical-line); }
.situation.tone-danger h2 { color: var(--critical); }
.situation.tone-info { background: var(--info-soft); border-color: transparent; }
.situation.tone-info h2 { color: var(--info); }
.situation.tone-ok { background: var(--best-soft); border-color: var(--best-line); }
.situation.tone-ok h2 { color: var(--best); }
.q-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 2px -2px; }
.q-row h3 { margin: 0; font-size: 1.15rem; }
.q-row small { color: var(--muted); font-weight: 650; font-size: .8rem; }
.options { display: grid; gap: 10px; }
.opt {
  --oc: var(--oA); --os: var(--oA-soft);
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  min-height: 66px; padding: 12px 16px 12px 12px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1.02rem; font-weight: 600; line-height: 1.4;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast) var(--ease);
}
.opt[data-l="B"] { --oc: var(--oB); --os: var(--oB-soft); }
.opt[data-l="C"] { --oc: var(--oC); --os: var(--oC-soft); }
.opt[data-l="D"] { --oc: var(--oD); --os: var(--oD-soft); }
.opt:hover:not(:disabled) { border-color: var(--oc); }
[data-q="high"] .opt:hover:not(:disabled) { transform: translateX(3px); }
.opt-key { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--oc); color: #fff; display: grid; place-items: center; position: relative; font-weight: 800; font-size: 1.2rem; }
.opt-key svg { position: absolute; width: 14px; height: 14px; top: 4px; right: 4px; fill: rgba(255, 255, 255, .7); }
.opt-text { flex: 1; }
.opt.sel { border-color: var(--oc); background: var(--os); box-shadow: inset 0 0 0 1px var(--oc); }
.opt.sel .opt-key { transform: scale(1.06); }
.opt.tried { opacity: .5; }
.opt.tried .opt-text::after { content: " — denendi"; font-weight: 700; color: var(--muted); font-size: .85em; }
[data-theme="contrast"] .opt-key { color: #000; }
.confirm-bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0 4px; background: var(--bg); box-shadow: 0 -10px 12px -10px rgba(17, 28, 58, .12); }
.confirm-bar .hint { color: var(--muted); font-size: .84rem; }
.confirm-bar .btn { min-width: 220px; }
[data-q="high"] .confirm-bar .btn:not(:disabled) { animation: pop var(--t-med) var(--ease-back); }
.options.stagger .opt { animation: fadeUp var(--t-med) var(--ease) both; }
.options.stagger .opt:nth-child(2) { animation-delay: 50ms; }
.options.stagger .opt:nth-child(3) { animation-delay: 100ms; }
.options.stagger .opt:nth-child(4) { animation-delay: 150ms; }
.options.stagger .opt.tried { animation: none; }

/* kanıt panelleri */
.evidence { min-width: 0; }
.evidence-head { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 4px; }
.evidence-head .i { width: 15px; height: 15px; }
.pnl { font-size: .92rem; }
.pnl-win { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface-3); border-bottom: 1px solid var(--line); font-weight: 750; font-size: .82rem; color: var(--ink-2); }
.win-dots { display: flex; gap: 5px; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; background: #F0605D; }
.win-dots i:nth-child(2) { background: #F4BE4F; } .win-dots i:nth-child(3) { background: #5DC466; }
.win-ic { width: 15px; height: 15px; color: var(--primary); }
.win-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { padding: 12px; overflow-x: auto; }
.hb-search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); margin-bottom: 10px; background: var(--surface-2); }
.hb-search .i { color: var(--muted); width: 16px; height: 16px; }
.hb-q { flex: 1; font-family: var(--mono); font-weight: 700; font-size: .88rem; }
.hb-btn { background: var(--primary); color: var(--primary-ink); font-weight: 750; font-size: .78rem; padding: 4px 12px; border-radius: 7px; }
.hb-tablewrap, .form-tablewrap { overflow-x: auto; }
.hb-table, .res { width: 100%; border-collapse: collapse; font-size: .86rem; }
.hb-table th, .res th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.hb-table td, .res td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-table tr.sel td { background: var(--primary-soft); font-weight: 700; }
.hb-table tr.warn td { background: var(--partial-soft); }
.hb-table tr.fresh td { background: var(--best-soft); font-weight: 700; }
[data-q="high"] .hb-table tr.fresh td, [data-q="medium"] .hb-table tr.fresh td { animation: fadeUp var(--t-slow) var(--ease) both; }
.hb-empty { display: flex; gap: 8px; align-items: center; padding: 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-weight: 650; }
.hb-note { margin-top: 8px; font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.hb-note-rev { color: var(--partial); font-weight: 750; }
.res-hi { color: var(--critical); font-weight: 750; } .res-ok { color: var(--best); font-weight: 650; }
.pnl-sms .sms-phone { max-width: 420px; margin: 0 auto; border-radius: 22px; background: #10182F; padding: 12px; box-shadow: var(--sh-2); }
.sms-top { display: flex; align-items: center; gap: 8px; color: #fff; font-size: .82rem; padding: 2px 6px 10px; }
.sms-top span { margin-left: auto; opacity: .6; }
.sms-top .i { width: 16px; height: 16px; color: #7EE2B0; }
.sms-bubble { background: #E9EDF5; color: #111C3A; border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: .9rem; line-height: 1.5; }
.pnl-hint { margin-top: 10px; display: flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 750; color: #FFD58A; }
.pnl-win .pnl-hint, .pnl-compare .pnl-hint { color: var(--partial); }
.al-row { display: flex; gap: 12px; align-items: flex-start; }
.al-ic { width: 34px; height: 34px; }
.al-warn { color: #C9740B; } .al-danger { color: var(--critical); } .al-ok { color: var(--best); } .al-info { color: var(--info); }
.al-title { display: block; font-size: 1rem; margin-bottom: 2px; }
.al-row p { margin: 0 0 6px; color: var(--ink-2); }
.al-row code { font-family: var(--mono); font-size: .76rem; background: var(--surface-3); padding: 2px 8px; border-radius: 6px; color: var(--muted); }
.al-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.al-btns span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 700; background: var(--surface-2); }
.al-btns span:last-child { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.al-queue { margin-top: 12px; display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--partial-soft); font-size: .85rem; }
.pnl-alert-danger .win-bar { background: var(--critical-soft); }
.id-card { max-width: 380px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #E9F1FF, #F8F2E7); border: 1px solid #C9D6EE; color: #172040; box-shadow: var(--sh-1); }
.id-head { display: flex; gap: 8px; align-items: center; padding: 8px 14px; background: #B23A48; color: #fff; font-weight: 800; letter-spacing: .1em; font-size: .78rem; }
.id-head small { font-weight: 600; opacity: .8; letter-spacing: 0; }
.id-body { display: flex; gap: 14px; padding: 14px; }
.id-photo { width: 72px; height: 90px; border-radius: 8px; background: #C9D3E6; display: grid; place-items: center; color: #8592AE; flex: none; }
.id-photo .i { width: 40px; height: 40px; }
.id-body dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: .84rem; }
.id-body dt { color: #6A7590; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.id-body dd { margin: 0; font-weight: 800; font-family: var(--mono); }
.pnl-cap { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 8px; font-weight: 650; }
.pnl-labels { display: grid; gap: 8px; }
.lbl { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: #fff; color: #111; border-radius: 8px; border: 1px solid #D6DCE6; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); font-family: var(--mono); }
.lbl-bars { width: 64px; height: 38px; flex: none; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); }
.lbl-txt b { display: block; font-size: .92rem; }
.lbl-txt span { display: block; font-size: .74rem; color: #444; }
.lbl-txt em { font-style: normal; font-size: .74rem; font-weight: 700; color: #2F5BEA; }
.lbl-mark { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.lbl.ok .lbl-mark { background: #0E7A52; } .lbl.bad .lbl-mark { background: #BE2129; }
.lbl.bad { border-color: #BE2129; background: #FFF4F4; }
.em-head { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.em-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.em-addr { font-size: .8rem; color: var(--muted); font-family: var(--mono); }
.em-sub { font-weight: 800; margin-top: 2px; }
.em-time { margin-left: auto; font-size: .78rem; color: var(--muted); }
.em-body { padding-top: 10px; }
.em-body p { margin-bottom: 8px; }
.em-link { display: inline-block; color: var(--primary); text-decoration: underline; font-family: var(--mono); font-size: .82rem; word-break: break-all; }
.flagged { background: var(--critical-soft); color: var(--critical) !important; border-radius: 4px; padding: 0 4px; outline: 2px dashed var(--critical); outline-offset: 1px; }
.em-flags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px; border-radius: 10px; background: var(--critical-soft); }
.em-flags b { display: flex; align-items: center; gap: 6px; color: var(--critical); width: 100%; font-size: .85rem; }
.em-flags span { font-size: .78rem; font-weight: 700; background: var(--surface); padding: 3px 10px; border-radius: 999px; }
.pnl-tasks { display: grid; gap: 8px; }
.task { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.task-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.task b { display: block; font-size: .92rem; }
.task span { font-size: .82rem; color: var(--muted); }
.task-danger { border-color: var(--critical-line); background: var(--critical-soft); }
.task-danger .task-ic { background: var(--critical); color: #fff; }
.note-paper { position: relative; padding: 16px 18px 14px; border-radius: 6px; background: #FFFBEA; color: #3A3320; box-shadow: 0 2px 0 #EAD98F, var(--sh-1); }
.note-paper::before { content: ""; position: absolute; top: -8px; left: 50%; width: 70px; height: 18px; margin-left: -35px; background: rgba(242, 176, 25, .45); transform: rotate(-2deg); }
.note-title { display: flex; gap: 6px; align-items: center; font-size: .95rem; margin-bottom: 6px; }
.note-paper ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .9rem; }
.note-sign { text-align: right; font-style: italic; margin-top: 6px; font-weight: 700; }
.ho { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.ho li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.ho li .i { width: 18px; height: 18px; margin-top: 2px; }
.ho-ok .i { color: #0E7A52; } .ho-warn .i { color: #BE2129; } .ho-info .i { color: #1765C2; }
.ho-warn span { font-weight: 750; }
.q-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; padding: 10px; border-radius: 14px; background: #0E1430; }
.q-cell { text-align: center; padding: 6px; border-radius: 8px; background: #161F45; }
.q-cell small { display: block; font-size: .6rem; letter-spacing: .14em; color: #8E9BC7; font-weight: 800; }
.q-cell b { font-family: var(--mono); font-size: 1.3rem; color: #FFB648; }
.q-you b { color: #7EE2B0; }
.q-status { margin-top: 8px; display: flex; gap: 6px; align-items: center; font-size: .84rem; font-weight: 650; color: var(--ink-2); }
.cmp-status { display: flex; gap: 8px; align-items: center; color: var(--critical); font-weight: 800; margin-bottom: 10px; }
.cmp-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; padding: 6px 0; font-size: .85rem; color: var(--muted); }
.dgs { display: flex; gap: 3px; flex-wrap: wrap; }
.dg { display: inline-grid; place-items: center; width: 1.6em; height: 2em; border-radius: 6px; background: var(--surface-3); color: var(--ink); font-family: var(--mono); font-weight: 800; font-size: 1rem; }
.dg.diff { background: var(--critical); color: #fff; }
.form-paper { background: #FCFCF7; color: #222; border-radius: 6px; padding: 12px; border: 1px solid #DCDCCF; box-shadow: var(--sh-1); }
.form-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; font-size: .88rem; flex-wrap: wrap; }
.form-stock { font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #E1F5EB; color: #0E7A52; }
.form-stock.low { background: #FDE7E7; color: #BE2129; }
.form-paper table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.form-paper th { border: 1px solid #999; padding: 4px 6px; background: #EFEFE6; text-align: left; white-space: nowrap; }
.form-paper td { border: 1px solid #999; padding: 6px; height: 28px; white-space: nowrap; }
.form-paper td.hand { font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; color: #1A3A8A; font-size: .86rem; }
.form-paper tr.warn td { background: #FFF1D6; }
.sch { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sch li { display: flex; gap: 12px; align-items: center; padding: 6px 4px; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.sch-t { font-family: var(--mono); font-weight: 800; color: var(--primary); }
.sch-n { flex: 1; font-weight: 650; }
.sch em { font-style: normal; font-size: .74rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--partial-soft); color: var(--partial); }
.kv { margin: 0; display: grid; gap: 2px; }
.kv-row { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.kv-row dt { color: var(--muted); } .kv-row dd { margin: 0; font-weight: 750; }
.kv-danger dd { color: var(--critical); } .kv-warn dd { color: var(--partial); }
.call { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #10182F; color: #fff; }
.call-ic { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #16A36B; }
.call b { display: block; font-family: var(--mono); font-size: 1rem; }
.call span { font-size: .78rem; opacity: .7; }
.call-dur { margin-left: auto; display: flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: .85rem; opacity: 1 !important; color: #7EE2B0; }
details.ev-toggle > summary { cursor: pointer; font-weight: 750; color: var(--primary); padding: 6px 4px; list-style: none; display: flex; gap: 8px; align-items: center; }
details.ev-toggle > summary::-webkit-details-marker { display: none; }

/* geri bildirim */
.fb { border-radius: 20px; overflow: hidden; overflow: clip; border: 2px solid var(--best-line); background: var(--surface); box-shadow: var(--sh-2); }
.fb-head { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--best-soft); }
.fb-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--best); color: #fff; flex: none; }
.fb-ic .i { width: 34px; height: 34px; stroke-width: 2.5; }
.fb-label { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--best); }
.fb-points { font-size: 2.7rem; font-weight: 900; color: var(--best); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.fb-points small { font-size: .45em; font-weight: 800; margin-left: 6px; letter-spacing: .06em; display: inline-block; line-height: 1.2; vertical-align: .25em; }
.fb-retry { font-size: 1.45rem; font-weight: 850; color: var(--ink); line-height: 1.15; }
.fb-retry small { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: 2px; }
.fb-body { padding: 16px 20px 18px; display: grid; gap: 12px; }
.fb-why { font-size: 1.04rem; margin: 0; font-weight: 600; }
.fb-choice, .fb-ideal { border-radius: 12px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); }
.fb-choice small, .fb-ideal small { display: flex; gap: 6px; align-items: center; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.fb-choice p, .fb-ideal p { margin: 0; font-size: .94rem; }
.fb-ideal { background: var(--best-soft); border-color: var(--best-line); }
.fb-ideal small { color: var(--best); }
.fb-ideal small .i { width: 14px; height: 14px; }
.fb-then { border-left: 4px solid var(--info); padding: 6px 12px; background: var(--info-soft); border-radius: 0 10px 10px 0; font-size: .95rem; }
.fb-then b { color: var(--info); }
.fb-learn { border-radius: 14px; padding: 12px 16px; background: var(--primary-soft); }
.fb-learn b { display: block; color: var(--primary); letter-spacing: .08em; font-size: .8rem; margin-bottom: 2px; }
.fb-learn p { margin: 0; font-weight: 600; }
.fb-ack { display: flex; gap: 10px; align-items: center; padding: 10px 14px; font-size: .95rem; border-radius: 12px; background: var(--critical-soft); border: 2px dashed var(--critical-line); font-weight: 700; cursor: pointer; }
.fb-ack input { width: 22px; height: 22px; accent-color: var(--critical); flex: none; }
.fb-actions { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 8px; padding: 10px 0 2px; margin-bottom: -2px; background: var(--surface); }
.fb-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.fb-btns .btn-lg { margin-left: auto; }
.fb-partial { border-color: var(--partial-line); } .fb-partial .fb-head { background: var(--partial-soft); }
.fb-partial .fb-ic { background: var(--partial); } .fb-partial .fb-label, .fb-partial .fb-points { color: var(--partial); }
.fb-wrong { border-color: var(--wrong-line); } .fb-wrong .fb-head { background: var(--wrong-soft); }
.fb-wrong .fb-ic { background: var(--wrong); } .fb-wrong .fb-label, .fb-wrong .fb-points { color: var(--wrong); }
.fb-critical { border-color: var(--critical-line); } .fb-critical .fb-head { background: var(--critical-soft); }
.fb-critical .fb-ic { background: var(--critical); } .fb-critical .fb-label, .fb-critical .fb-points { color: var(--critical); }
[data-q="high"] .fb, [data-q="medium"] .fb { animation: fbIn var(--t-med) var(--ease-back) both; }
[data-q="high"] .fb-critical { animation: fbIn var(--t-med) var(--ease-back) both, shake 420ms 260ms var(--ease) both; }
[data-q="high"] .fb-best .fb-ic, [data-q="medium"] .fb-best .fb-ic, [data-q="high"] .fb .fb-ic { animation: pop 420ms var(--ease-back) 120ms both; }
.scene-actor.bump { animation: bump 420ms var(--ease-back); }

/* ==========================================================================
   ÖZET & RAPOR
   ========================================================================== */
.sum-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sum-head h1 { margin: 0; }
.rep-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; }
.rep-badge { position: relative; overflow: hidden; border-radius: 22px; padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 6px; background: var(--gold-soft); border: 2px solid #F0D28A; }
.rep-badge.tone-silver { background: linear-gradient(160deg, #EEF2F8, #DDE4EF); border-color: #C3CDDD; }
.rep-badge.tone-blue { background: var(--primary-soft); border-color: #BCCBF6; }
[data-theme="dark"] .rep-badge.tone-silver { background: #1E2843; border-color: #3A4870; }
[data-theme="dark"] .rep-badge.tone-blue { background: #1D2B57; border-color: #33467A; }
[data-theme="dark"] .rep-badge { border-color: #6D5320; }
.rep-star { width: 92px; height: 92px; color: var(--gold); margin-bottom: 8px; }
.rep-star .i { width: 100%; height: 100%; fill: currentColor; stroke: none; filter: drop-shadow(0 6px 10px rgba(212, 147, 12, .35)); }
.tone-silver .rep-star { color: #8E9AB3; } .tone-blue .rep-star { color: var(--primary); }
.rep-badge .rb-title { font-size: 2.2rem; font-weight: 900; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.rep-badge .rb-score { font-weight: 800; color: var(--gold-2); font-size: 1.15rem; }
.tone-silver .rb-score { color: #4A5571; } .tone-blue .rb-score { color: var(--primary); }
[data-theme="dark"] .tone-silver .rb-score { color: var(--wrong); }
.rep-badge .rb-text { color: var(--ink-2); margin: 6px 0 0; }
.rb-note { margin-top: 10px; font-size: .86rem; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .6); color: var(--ink); }
[data-theme="dark"] .rb-note { background: rgba(0, 0, 0, .25); }
[data-q="high"] .rep-badge.tone-gold::after { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: rotate(20deg); animation: shine 3.2s 0.8s ease-in-out infinite; }
[data-q="high"] .rep-star, [data-q="medium"] .rep-star { animation: pop 700ms var(--ease-back) both; }
.skills { display: grid; gap: 14px; }
.skill { display: grid; gap: 6px; }
.skill-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 750; }
.skill-row span { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 800; }
.bar { height: 14px; border-radius: 10px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: 10px; background: var(--primary); transform-origin: 0 50%; transform: scaleX(var(--v, 0)); transition: transform 900ms var(--ease); }
.bar.full i { background: var(--best); }
.bar.low i { background: var(--partial); }
.skill.na { opacity: .5; }
.stack { display: flex; height: 18px; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.stack i { display: block; height: 100%; }
.stack .g-best { background: var(--best); } .stack .g-partial { background: var(--partial); } .stack .g-wrong { background: var(--wrong); } .stack .g-critical { background: var(--critical); }
.stack-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: .84rem; color: var(--ink-2); }
.stack-legend span { display: inline-flex; gap: 6px; align-items: center; }
.stack-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.stat small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat b { font-size: 1.6rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.timeline { display: grid; gap: 8px; }
.tl-item { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.tl-item > summary { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.tl-item > summary::-webkit-details-marker { display: none; }
.tl-time { font-family: var(--mono); font-weight: 800; color: var(--primary); }
.tl-title { font-weight: 700; }
.tl-title small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.gdots { display: flex; gap: 5px; }
.gdot { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; vertical-align: middle; place-items: center; color: #fff; font-size: .72rem; font-weight: 800; }
.gdot.g-best { background: var(--best); } .gdot.g-partial { background: var(--partial); } .gdot.g-wrong { background: var(--wrong); } .gdot.g-critical { background: var(--critical); }
[data-theme="contrast"] .gdot { color: #000; }
.tl-body { padding: 4px 14px 14px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.tl-dec { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.tl-dec .row { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.tl-dec .row b { flex: none; }
.tl-dec .why { font-size: .86rem; color: var(--ink-2); margin: 0; }
.crit-list { display: grid; gap: 12px; }
.crit { border-radius: 16px; padding: 14px 16px; border: 1px solid var(--critical-line); background: var(--critical-soft); display: grid; gap: 6px; }
.crit.wrong { border-color: var(--wrong-line); background: var(--wrong-soft); }
.crit h4 { margin: 0; display: flex; gap: 8px; align-items: center; }
.crit p { margin: 0; font-size: .92rem; }
.crit .discuss { font-weight: 750; color: var(--ink); display: flex; gap: 8px; }
.crit .discuss .i { color: var(--primary); margin-top: 3px; }
.new-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-big { display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--gold-soft); border: 1px solid #F0D28A; }
[data-theme="dark"] .badge-big { border-color: #6D5320; }
.badge-big .medal-ic { width: 46px; height: 46px; background: var(--gold); color: #1A1200; }
.badge-big .medal-ic .i { width: 24px; height: 24px; }
.badge-big b { display: block; } .badge-big span { font-size: .82rem; color: var(--ink-2); }
[data-q="high"] .badge-big, [data-q="medium"] .badge-big { animation: pop 520ms var(--ease-back) both; }

/* ==========================================================================
   ANKET
   ========================================================================== */
.survey { max-width: 900px; margin: 0 auto; }
.sv-prog { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin: 6px 0 22px; }
.sv-prog i { display: block; height: 100%; background: var(--primary); width: 100%; transform-origin: 0 50%; transition: transform var(--t-med) var(--ease); }
.sv-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sv-item:last-child { border-bottom: 0; }
.sv-q { font-weight: 700; margin-bottom: 10px; font-size: 1.02rem; }
.sv-q span { color: var(--muted); font-weight: 800; margin-right: 6px; }
.likert { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.likert button { min-height: 52px; padding: 6px 4px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .78rem; font-weight: 700; line-height: 1.2; display: grid; place-items: center; gap: 2px; transition: border-color var(--t-fast), background var(--t-fast); }
.likert button b { font-size: 1.1rem; color: var(--ink); }
.likert button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.likert button[aria-pressed="true"] b { color: var(--primary-ink); }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-list button { min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 650; }
.choice-list button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line-2); cursor: pointer; font-weight: 700; }
.consent input { width: 24px; height: 24px; accent-color: var(--primary); flex: none; margin-top: 1px; }
.consent-list { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; }

/* ==========================================================================
   KATMANLAR: modal, duraklat, toast
   ========================================================================== */
.ovl { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(8, 14, 32, .62); overflow-y: auto; }
.ovl[data-ovl="pause"] { background: rgba(10, 17, 40, .96); }
[data-q="high"] .ovl, [data-q="medium"] .ovl { animation: fadeIn var(--t-fast) linear both; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); border: 1px solid var(--line); }
[data-q="high"] .modal, [data-q="medium"] .modal { animation: modalIn var(--t-med) var(--ease-back) both; }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.25rem; display: flex; gap: 10px; align-items: center; }
.modal-body { padding: 18px 22px 22px; display: grid; gap: 18px; }
.modal-foot { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; color: var(--ink); }
.set-group { display: grid; gap: 8px; }
.set-group > .label { font-weight: 800; display: flex; gap: 8px; align-items: center; }
.set-group > .label .i { color: var(--primary); }
.set-group .desc { font-size: .84rem; color: var(--muted); margin: -4px 0 0; }
.set-group > .btn, .set-group > .seg { justify-self: start; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-3); }
.seg button { min-height: 40px; padding: 6px 14px; border-radius: 10px; border: 0; background: transparent; font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--sh-1); }
[data-theme="contrast"] .seg button[aria-pressed="true"] { outline: 2px solid var(--primary); }
.range { width: 100%; max-width: 320px; accent-color: var(--primary); }
.bench { font-size: .85rem; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; font-size: .92rem; }
.pause { text-align: center; color: #fff; display: grid; gap: 18px; justify-items: center; width: min(760px, 100%); }
.pause h2 { font-size: 3rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.pause p { color: #C9D6FF; margin: 0; font-size: 1.1rem; }
.pause .btn-row { justify-content: center; }
.pause-timer { font-family: var(--mono); font-size: 6rem; font-weight: 800; line-height: 1; color: #FFD58A; font-variant-numeric: tabular-nums; }
.pause-timer.done { color: #7EE2B0; }
.pause-q { max-width: 40em; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 1.15rem; font-weight: 650; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 650; box-shadow: var(--sh-2); font-size: .92rem; transition: opacity 300ms, transform 300ms; }
.toast-warn { background: #8A5300; } .toast-ok { background: #0E6A48; } .toast-error { background: #A51D24; }
.toast.out { opacity: 0; transform: translateY(8px); }
[data-q="high"] .toast, [data-q="medium"] .toast { animation: fadeUp var(--t-med) var(--ease) both; }
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 85; pointer-events: none; }
#fps-meter { position: fixed; z-index: 95; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .75); color: #7EE2B0; font: 700 12px/1 var(--mono); padding: 6px 8px; border-radius: 6px; pointer-events: none; }

/* ==========================================================================
   KAYNAKLAR / ÖĞRETİM ELEMANI
   ========================================================================== */
.prose { max-width: 62em; }
.prose p, .prose li { color: var(--ink-2); }
.src-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.src-list li { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.src-list li small { display: block; color: var(--muted); margin-top: 4px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .02em; font-family: var(--mono); padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); margin-right: 6px; }
.tag-plan { background: var(--primary-soft); color: var(--primary); } .tag-resmi { background: var(--gold-soft); color: var(--gold-2); } .tag-lit { background: var(--best-soft); color: var(--best); }
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; background: var(--surface-3); padding: 9px 10px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .mono { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.dist { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; white-space: nowrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 10px 16px; font-weight: 750; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; display: flex; gap: 8px; align-items: center; }
.tabs button[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.kpi small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.kpi b { display: block; font-size: 1.9rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .8rem; color: var(--muted); }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 56px; gap: 10px; align-items: center; font-size: .9rem; }
.hbar .bar { height: 12px; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.check-list { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.check-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.check.ok .check-ic { background: var(--best-soft); color: var(--best); }
.check.warn .check-ic { background: var(--partial-soft); color: var(--partial); }
.check > div:nth-child(2) > b { display: block; } .check > div:nth-child(2) > span { font-size: .86rem; color: var(--muted); }
.phase-list { display: grid; gap: 10px; counter-reset: ph; }
.phase { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.phase b.dur { font-family: var(--mono); color: var(--primary); font-size: 1.05rem; }
.lib-card { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; content-visibility: auto; contain-intrinsic-size: 400px; }
.lib-card > summary { padding: 14px 16px; cursor: pointer; display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; list-style: none; }
.lib-card > summary::-webkit-details-marker { display: none; }
.lib-body { padding: 0 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; overflow-wrap: anywhere; }
.lib-node { border-radius: 12px; border: 1px solid var(--line); padding: 12px 14px; background: var(--surface-2); }
.lib-node h4 { margin: 0 0 6px; font-size: .95rem; }
.lib-opt { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.lib-opt .gdot { width: 26px; }
.lib-opt small { display: block; color: var(--muted); margin-top: 2px; }

/* ==========================================================================
   ANİMASYONLAR (yalnızca transform & opacity)
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fbIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes bump { 0% { transform: none; } 40% { transform: translateY(-8px); } 100% { transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes blink { 0%, 92% { opacity: 1; } 93%, 100% { opacity: .35; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.85); opacity: .6; } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-14deg); } 75% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } }
@keyframes shine { 0% { transform: translateX(0) rotate(20deg); } 60%, 100% { transform: translateX(520%) rotate(20deg); } }

/* ==========================================================================
   CANLI OTURUM — giriş seçimi, öğrenci ekranları, öğretim elemanı paneli
   ========================================================================== */
.shake { animation: shake .42s var(--ease); }
.pop { animation: pop var(--t-med) var(--ease-back) both; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--primary); animation: spin .9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dots { 0%, 80%, 100% { transform: scale(.6); opacity: .35; } 40% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.center-msg { min-height: 50vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 30px 0; }
.center-msg h1 { margin: 0; }
.center-msg p { margin: 0; max-width: 34em; }

/* oturum çubuğu (üst menünün altında) */
html { --bar-h: 0px; }
html.has-bar { --bar-h: 50px; }
.session-bar { position: sticky; top: var(--topbar-h); z-index: 35; height: var(--bar-h); background: var(--navy-2); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.session-bar.tone-demo { background: linear-gradient(90deg, #5B3FD0, #3A55D8); }
.session-bar.tone-paused { background: #8A5A00; }
.sb-in { max-width: 1600px; margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 14px; padding: 0 max(var(--gutter), env(safe-area-inset-left)); font-size: .92rem; }
.sb-who { display: flex; align-items: center; gap: 8px; font-weight: 750; white-space: nowrap; }
.sb-av { width: 32px; height: 32px; flex: none; }
.sb-status { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: #DCE5FF; }
.sb-status .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-net { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: #FFD58A; white-space: nowrap; }
.sb-net i { width: 9px; height: 9px; border-radius: 50%; background: #FFB020; }
.sb-net.on { color: #A6F0C9; } .sb-net.on i { background: #3DDC97; }
.sb-btns { flex-wrap: nowrap; gap: 8px; }
.sb-btns .btn { min-height: 34px; white-space: nowrap; }
[data-theme="contrast"] .session-bar { background: #000; border-bottom: 2px solid #fff; }

/* giriş seçimi */
.landing { display: grid; gap: 22px; }
.landing .hero { grid-template-columns: 1.1fr .9fr; }
.landing .hero { padding-bottom: 30px; }
.role-grid { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2px; }
.landing .hero-facts { grid-column: 1 / -1; margin-top: 0; }
.role-card { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px; text-align: left; padding: 20px 22px; border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast); }
.role-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.role-card .rc-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--navy); }
.role-card .rc-ic .i { width: 28px; height: 28px; }
.role-card.student .rc-ic { background: #F2B019; color: #1A1200; }
.role-card b { display: block; font-size: 1.3rem; }
.role-card small { display: block; color: #C9D6FF; font-size: .86rem; line-height: 1.35; margin-top: 2px; }
.role-card > .i { width: 22px; height: 22px; opacity: .8; }
.land-back { display: flex; align-items: center; gap: 14px; }
.land-back .sb-av { width: 44px; height: 44px; }
.landing-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .86rem; }
[data-theme="contrast"] .role-card { background: #000; }

/* katılım / giriş kartı */
.join { display: grid; justify-items: center; gap: 16px; padding-top: 4vh; }
.join-card { width: min(560px, 100%); text-align: center; padding: 34px 30px 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; animation: rise var(--t-slow) var(--ease) both; }
.join-card h1 { margin: 0; }
.join-ic { width: 68px; height: 68px; margin: 0 auto 6px; border-radius: 20px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.join-ic .i { width: 34px; height: 34px; }
.join-row { display: flex; gap: 10px; margin-top: 8px; }
.code-input { flex: 1; min-width: 0; width: 100%; min-height: 70px; text-align: center; font-family: var(--mono); font-size: 2.3rem; font-weight: 800; letter-spacing: .14em; border-radius: 16px; border: 3px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 6px 10px; }
.code-input:focus { border-color: var(--primary); box-shadow: var(--focus); }
.code-input::placeholder { color: var(--line-2); }
.join-err { min-height: 1.4em; margin: 0; color: var(--critical); font-weight: 700; }
.join-notes { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; text-align: left; }
.join-notes li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.join-notes .i { color: var(--primary); }
.join-back { margin: 0; }
.join-back .link { display: inline-flex; align-items: center; gap: 6px; }
.login-card { text-align: left; }
.login-card .join-ic, .login-card .eyebrow, .login-card h1 { text-align: center; justify-self: center; }
.login-card .btn-lg { width: 100%; margin-top: 6px; }
.login-help { font-size: .84rem; margin: 6px 0 0; text-align: center; }
#join-resume .resume { width: min(560px, 100%); margin: 0; }
.resume-av { width: 46px; height: 46px; flex: none; }

/* anonim ad gösterimi */
.reveal { min-height: 60vh; display: grid; place-items: center; }
.reveal-card { text-align: center; width: min(620px, 100%); padding: 36px 30px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.reveal-av { width: 150px; height: 150px; margin: 0 auto 14px; animation: pop 600ms var(--ease-back) both; }
.reveal-av .avatar { width: 100%; height: 100%; }
.reveal-name { font-size: 2.4rem; margin: 4px 0 10px; color: var(--primary); animation: rise 600ms var(--ease) 200ms both; }

/* öğrenci bekleme salonu */
.lobby { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-bottom: 18px; }
.lobby-me { display: flex; gap: 22px; align-items: center; }
.lobby-me h1 { margin: 0 0 8px; color: var(--primary); }
.lobby-av { width: 120px; height: 120px; flex: none; }
.lobby-wait { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); animation: dots 1.2s infinite ease-in-out both; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.lobby-tasks h2 { margin-bottom: 12px; }
.task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.task-li { display: grid; grid-template-columns: 30px 40px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.task-li b { display: block; }
.task-li small { color: var(--muted); }
.task-li.done { opacity: .6; }
.task-li.cur { border-color: var(--mc, var(--primary)); box-shadow: 0 0 0 2px var(--mc, var(--primary)) inset; }
.task-no { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; flex: none; }
.tk-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--mc, var(--primary)); }
.rules { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.rules .flow-steps.rules-steps { grid-template-columns: 1fr; gap: 8px; }
.rules-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: .94rem; }
.rules-steps li::before { margin: 0; }

/* geri sayım, görev kartı */
.splash { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: 8px; }
.splash-n { font-size: 9rem; font-weight: 900; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.splash p { font-size: 1.3rem; font-weight: 700; margin: 0; }
.task-card-wrap { min-height: calc(100vh - var(--topbar-h) - var(--bar-h) - 80px); display: grid; place-items: center; }
.task-card { display: grid; justify-items: center; gap: 12px; }
.task-card h1 { margin: 0; font-size: 2.1rem; }
.task-card .intro-goal { margin: 0; max-width: 36em; }
.task-big-ic { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: var(--mc, var(--primary)); box-shadow: 0 12px 24px -12px var(--mc, var(--primary)); }
.task-big-ic .i { width: 42px; height: 42px; }
.task-card.is-final .task-big-ic { color: #1A1200; }
.task-step { display: flex; gap: 6px; }
.task-step i { width: 34px; height: 6px; border-radius: 4px; background: var(--line); }
.task-step i.done { background: var(--best); } .task-step i.cur { background: var(--mc, var(--primary)); }
.sum-actions { margin-top: 22px; justify-content: flex-end; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 35%); }

/* bitti, teşekkürler */
.done-wrap { display: grid; gap: 18px; max-width: 920px; margin: 0 auto; }
.done-card { display: flex; gap: 22px; align-items: center; }
.done-card h1 { margin: 0 0 6px; }
.done-av, .wait-av, .pause-av { width: 110px; height: 110px; flex: none; }
.wait-av { margin: 0 auto 6px; }
.pause-av { margin: 0 auto; }
.res-list { display: grid; gap: 8px; }
.res-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.res-name b { display: block; } .res-name small { color: var(--muted); }
.res-pct { font-size: 1.5rem; font-weight: 850; text-align: right; font-variant-numeric: tabular-nums; }
.res-pct small { display: block; font-size: .78rem; }
.crit-n { color: var(--critical); font-weight: 800; }
.pause-small { font-size: .95rem !important; color: #9FB2E8 !important; }
.ovl.locked { background: rgba(10, 17, 40, .95); }

/* yansıtma (örnek gösterim) */
.view.mirror .opt, .view.mirror .btn, .view.mirror input { cursor: default; }
.view.mirror .opt:disabled:not(.tried) { opacity: 1; }
.view.mirror .opt.sel { animation: pop var(--t-med) var(--ease-back); }
.demo-wait .muted { max-width: 30em; }

/* anket */
.survey .sv-nav { justify-content: space-between; margin-top: 14px; }
.sv-err { min-height: 1.3em; margin: 10px 0 0; color: var(--critical); font-weight: 700; }
.sv-item.need { border-radius: 14px; box-shadow: 0 0 0 3px var(--critical-line); background: var(--critical-soft); padding: 12px; }
.req { color: var(--critical); font-weight: 800; }
.choice-list.yn { display: grid; grid-template-columns: 1fr 1fr; }
.choice-list.yn button { display: flex; gap: 8px; align-items: center; justify-content: center; }

/* öğretim elemanı: üst gezinme */
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -6px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.t-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.t-nav button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 9px 14px; border-radius: 12px; font-weight: 750; color: var(--muted); }
.t-nav button:hover { background: var(--surface-3); color: var(--ink); }
.t-nav button[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.t-user { display: flex; align-items: center; gap: 10px; }
.t-me { font-weight: 700; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.t-me small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-2); background: var(--gold-soft); padding: 2px 8px; border-radius: 999px; }
.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-weight: 750; font-size: .82rem; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.st-chip .i { width: 1em; height: 1em; }
.st-lobby { background: var(--info-soft); color: var(--info); }
.st-demo { background: #EEE8FF; color: #5B3FD0; }
.st-live { background: var(--best-soft); color: var(--best); }
.st-live .i { animation: pulse 1.6s infinite; }
.st-paused { background: var(--partial-soft); color: var(--partial); }
.st-survey { background: var(--primary-soft); color: var(--primary); }
.st-closed { background: var(--wrong-soft); color: var(--wrong); }
[data-theme="dark"] .st-demo { background: #2A2250; color: #B9A8FF; }
.t-acts { white-space: nowrap; text-align: right; }
.t-acts .btn { margin-left: 4px; }
.input-sm { min-height: 36px; padding: 6px 10px; border-radius: 10px; width: auto; font-size: .9rem; }

/* oturum listesi */
.open-sess { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; border: 2px solid var(--primary); background: linear-gradient(120deg, var(--primary-soft), var(--surface) 60%); margin-bottom: 8px; }
.open-sess h2 { margin: 8px 0 4px; }
.open-sess p { margin: 0; }
.os-code { text-align: center; padding: 12px 18px; border-radius: 16px; background: var(--navy); color: #fff; }
.os-code small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #9DB4FF; font-weight: 800; }
.os-code b { font-family: var(--mono); font-size: 2rem; letter-spacing: .1em; }
.new-sess { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, var(--primary-soft), var(--surface) 60%); }
.new-sess h2 { margin: 0 0 4px; } .new-sess p { margin: 0; }

/* oturum oluşturma */
.b-title { max-width: 640px; margin-bottom: 12px; }
.presets { margin-bottom: 18px; gap: 8px; }
.builder { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.mini-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mod-card.mini { min-height: 0; padding: 14px; gap: 4px; }
.mod-card.mini .mod-ic { position: static; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); margin-bottom: 4px; }
.mod-card.mini b { font-size: 1rem; }
.mod-card.mini small { color: var(--muted); }
.mod-card.mini .add-ic { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--mc, var(--primary)); color: #fff; }
.mod-card.mini.final .add-ic { color: #1A1200; }
.b-sel { position: sticky; top: calc(var(--topbar-h) + 14px); }
.b-sel h2 { font-size: 1.15rem; }
.b-tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.b-tasks li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.b-t b { display: block; } .b-t small { color: var(--muted); }
.b-acts { display: flex; gap: 2px; }
.b-acts .x-btn { width: 32px; height: 32px; font-weight: 800; }
.b-sum { margin: 12px 0 0; font-size: .9rem; display: flex; gap: 6px; align-items: center; }
.b-empty { text-align: center; padding: 26px 10px; color: var(--muted); border: 2px dashed var(--line-2); border-radius: 14px; }
.b-empty .i { width: 30px; height: 30px; }
.b-opts { margin-top: 18px; }
.b-opts > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.b-opts > summary::-webkit-details-marker { display: none; }
.b-opts > summary h2 { margin: 0; font-size: 1.15rem; display: flex; gap: 8px; align-items: center; }
.b-opts[open] > summary { margin-bottom: 16px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px 22px; }
.opt-grid .seg { flex-wrap: wrap; }
.b-go { margin-top: 18px; justify-content: flex-end; }

/* kontrol odası */
.room-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.rh-l { display: grid; gap: 6px; min-width: 0; justify-items: start; }
.rh-l h1 { margin: 0; }
.rh-meta { display: flex; gap: 16px; align-items: center; color: var(--muted); font-weight: 650; flex-wrap: wrap; }
.rh-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rh-code b { font-family: var(--mono); letter-spacing: .08em; }
.room-net { font-size: .84rem; color: var(--partial); font-weight: 700; }
.lobby-t { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.code-card { text-align: center; border-radius: var(--r-lg); padding: 28px 24px; color: #fff; background: linear-gradient(135deg, #16224A, #2A47A8); box-shadow: var(--sh-2); display: grid; gap: 6px; align-content: center; }
.code-card small { font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9DB4FF; }
.code-card p { margin: 0; color: #DCE5FF; }
.code-card .code-link { font-size: .86rem; color: #B7C6F0; word-break: break-all; }
.big-code { font-family: var(--mono); font-weight: 900; font-size: clamp(3.4rem, 8vw, 6.4rem); letter-spacing: .12em; line-height: 1.05; color: #fff; }
.big-code.xxl { font-size: clamp(5rem, 16vw, 13rem); }
.code-full { text-align: center; color: #fff; display: grid; gap: 14px; justify-items: center; }
.code-full small { font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: #9DB4FF; font-weight: 800; }
.code-full p { font-size: 1.5rem; margin: 0; color: #DCE5FF; }
.ovl[data-ovl="code"] { background: rgba(10, 17, 40, .97); }
.count-pill { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 1rem; vertical-align: 3px; }
.chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; min-height: 64px; }
.chips-empty { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 18px; border: 2px dashed var(--line-2); border-radius: 14px; margin: 0; }
.p-chip { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-weight: 700; font-size: .92rem; min-width: 0; }
.p-chip > span { overflow: hidden; flex: 1; min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.p-chip small { display: flex; gap: 4px; align-items: center; font-weight: 600; font-size: .78rem; color: var(--muted); }
.chip-av { width: 34px; height: 34px; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; }
.dot.on { background: #22B573; box-shadow: 0 0 0 3px rgba(34, 181, 115, .18); }
.p-kick { width: 26px; height: 26px; opacity: 0; transition: opacity var(--t-fast); flex: none; }
.p-chip:hover .p-kick, .p-kick:focus-visible { opacity: 1; }
.lobby-go { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border: 2px solid var(--primary-soft); }
.lobby-go p { margin: 2px 0 0; }
.demo-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.demo-pick .input { max-width: 280px; }

/* canlı takip */
.paused-banner { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--partial-soft); color: var(--partial); font-weight: 750; margin-bottom: 16px; border: 1px solid var(--partial-line); }
.kpi.warn b { color: var(--critical); }
.task-prog { margin-top: 14px; padding: 14px 18px; }
.tp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; }
.tp { display: grid; gap: 6px; min-width: 0; }
.tp-l { display: flex; gap: 8px; align-items: center; min-width: 0; }
.tp-l .task-no { width: 24px; height: 24px; font-size: .78rem; }
.tp-l b { font-size: .9rem; }
.tp-bar { position: relative; height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.tp-bar i { position: absolute; inset: 0; transform-origin: left; transition: transform var(--t-slow) var(--ease); border-radius: 6px; }
.tp-s { background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); } .tp-d { background: var(--best); }
.tp small { color: var(--muted); font-size: .78rem; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; margin-top: 16px; align-items: start; }
.live-parts { padding: 16px; }
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lp-head h2 { margin: 0; font-size: 1.15rem; display: flex; gap: 8px; align-items: center; }
.lp-sort { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); font-weight: 700; }
.live-parts .tbl-wrap { max-height: calc(100vh - 330px); min-height: 220px; overflow: auto; }
.live-tbl td { vertical-align: middle; }
.live-tbl th, .live-tbl td { padding-left: 7px; padding-right: 7px; }
.lp-row { cursor: pointer; }
.lp-row:hover td { background: var(--surface-2); }
.lp-row.row-off td { opacity: .62; }
.lp-who { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lp-who b { overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.tag-hidden { color: var(--partial); display: inline-flex; }
.tag-hidden .i { width: 16px; height: 16px; }
.ph { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ph-decide { background: var(--info-soft); color: var(--info); }
.ph-slow { background: var(--partial-soft); color: var(--partial); }
.ph-fb { background: #EEE8FF; color: #5B3FD0; }
.ph-done { background: var(--best-soft); color: var(--best); }
.ph-off { background: var(--critical-soft); color: var(--critical); }
.ph-survey { background: var(--primary-soft); color: var(--primary); }
[data-theme="dark"] .ph-fb { background: #2A2250; color: #B9A8FF; }
.lp-task { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.live-tbl small { color: var(--muted); }
.mini-bar { display: block; width: 80px; height: 8px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--primary); transform-origin: left; transition: transform var(--t-slow) var(--ease); }
.lp-last { white-space: nowrap; }
.lp-last small { margin-left: 4px; }
.gdot.g-hidden { background: var(--surface-3); color: var(--ink-2); border-color: var(--line-2); }
.live-side { display: grid; gap: 16px; }
.live-side .card { padding: 16px; }
.live-side h2 { font-size: 1.1rem; display: flex; gap: 8px; align-items: center; }
.dist-node { padding: 10px 0; border-top: 1px solid var(--line); }
.dist-node:first-child { border-top: 0; padding-top: 0; }
.dn-h b { display: block; font-size: .92rem; } .dn-h small { color: var(--muted); font-size: .78rem; }
.dn-row { display: grid; grid-template-columns: 30px 1fr 28px; gap: 8px; align-items: center; margin-top: 6px; }
.dn-row b { text-align: right; font-variant-numeric: tabular-nums; }
.dn-bar { height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.dn-bar i { display: block; height: 100%; background: var(--line-2); transform-origin: left; transition: transform var(--t-slow) var(--ease); }
.dn-bar i.g-best { background: var(--best); } .dn-bar i.g-partial { background: var(--partial); } .dn-bar i.g-wrong { background: var(--wrong); } .dn-bar i.g-critical { background: var(--critical); }
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 6px 4px; border-radius: 10px; font-size: .86rem; }
.feed li.fd-crit { background: var(--critical-soft); }
.fd-ic { display: grid; place-items: center; color: var(--muted); }
.fd-ic .gdot { width: 24px; height: 24px; font-size: .74rem; }
.feed time { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.modal-wide { width: min(980px, 100%); }
.pd-head { display: flex; gap: 14px; align-items: center; }
.pd-head b { display: block; font-size: 1.2rem; } .pd-head span { display: block; font-size: .86rem; }
.pd-av { width: 64px; height: 64px; flex: none; }
.ev-log { max-height: 46vh; overflow: auto; }
.ev-log td { padding: 6px 10px; }
.ev-log tr.ev-decision td { background: var(--surface-2); font-weight: 650; }

/* anket aşaması, kapanış */
.survey-stage { display: flex; align-items: center; gap: 26px; }
.survey-stage h2 { margin: 0 0 6px; } .survey-stage p { margin: 0; }
.ss-ring { position: relative; width: 140px; height: 140px; flex: none; }
.ss-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ss-ring .r-bg { fill: none; stroke: var(--surface-3); stroke-width: 12; }
.ss-ring .r-fg { fill: none; stroke: var(--best); stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray var(--t-slow) var(--ease); }
.ss-ring b { position: absolute; inset: 0; display: grid; place-content: center; font-size: 2.2rem; font-weight: 900; text-align: center; line-height: 1; }
.ss-ring b small { font-size: 1rem; color: var(--muted); }
.survey-grid .p-chip { border-radius: 16px; }
.p-chip.sv-done { border-color: var(--best-line); background: var(--best-soft); }
.p-chip.sv-off { opacity: .6; }
.p-chip.sv-fill small { color: var(--primary); }
.closed-card { display: flex; gap: 20px; align-items: flex-start; }
.closed-card h2 { margin: 0 0 6px; }
.cc-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--best-soft); color: var(--best); flex: none; }
.cc-ic .i { width: 32px; height: 32px; }
.exports { margin-top: 12px; gap: 8px; }
.an-bar { display: grid; gap: 12px; margin-bottom: 16px; }
.an-bar .consent { justify-self: start; border-width: 1px; padding: 10px 12px; }
.set-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.set-body .card .field + .field { margin-top: 14px; }
.set-body .card > .set-group + .set-group { margin-top: 18px; }
.set-body .card > .set-group .desc { margin: 6px 0 0; }
.acc-new h2 { font-size: 1.15rem; }
.acc-new .btn-primary { margin-top: 16px; }

/* SUS düzenleyici */
.sus-ed h2 { font-size: 1.15rem; display: flex; gap: 8px; align-items: center; }
.sus-ed .note-box { margin-bottom: 14px; }
.ok-box { background: var(--best-soft); }
.sus-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.sus-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.sus-list textarea { min-height: 0; resize: vertical; }
.sus-no { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--best-soft); color: var(--best); margin-top: 6px; }
.sus-no.neg { background: var(--critical-soft); color: var(--critical); }

/* rehber */
.guide { display: grid; gap: 12px; }
.g-step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.g-step h3 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.g-step p { margin: 0; color: var(--ink-2); }
.g-no { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 900; font-size: 1.2rem; }

@media (max-width: 1180px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .live-parts .tbl-wrap { max-height: none; }
  .builder { grid-template-columns: 1fr; }
  .b-sel { position: static; }
}
@media (max-width: 980px) {
  .lobby, .lobby-t, .rules { grid-template-columns: minmax(0, 1fr); }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .landing .hero { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .open-sess { grid-template-columns: 1fr; }
  .t-nav span { display: none; }
}
@media (max-width: 640px) {
  .code-input { font-size: 1.8rem; min-height: 62px; }
  .join-row { flex-direction: column; }
  .lobby-me, .done-card, .closed-card, .survey-stage { flex-direction: column; text-align: center; }
  .lobby-av { width: 96px; height: 96px; }
  .reveal-name { font-size: 1.8rem; }
  .splash-n { font-size: 6rem; }
  .sb-status .ell { font-size: .84rem; }
  .sb-who b, .sb-net { display: none; }
  .choice-list.yn { grid-template-columns: 1fr; }
  .chips-grid { grid-template-columns: minmax(0, 1fr); }
  .section-title { flex-wrap: wrap; }
  .room-head .rh-r { width: 100%; }
  .session-bar { height: auto; min-height: var(--bar-h); }
  .sb-in { flex-wrap: wrap; row-gap: 6px; padding-top: 7px; padding-bottom: 7px; }
  .sb-btns { width: 100%; flex-wrap: wrap; }
  .lib-card > summary { grid-template-columns: 1fr auto; }
  .lib-card > summary > .chip { grid-column: 1 / -1; justify-self: start; }
  .lp-head { flex-wrap: wrap; }
  .lp-sort { font-size: 0; } .lp-sort select { font-size: .9rem; max-width: 100%; }
  .check { grid-template-columns: 40px minmax(0, 1fr); }
  .check > div:last-child:not(:nth-child(2)) { grid-column: 2; }
  .check > div:last-child:empty { display: none; }
  .task-card h1 { font-size: 1.6rem; }
}
[data-q="low"] .role-card:hover, [data-q="low"] .join-card, [data-q="low"] .reveal-av, [data-q="low"] .reveal-name { transform: none; animation: none; }
[data-q="low"] .dots i, [data-q="low"] .st-live .i { animation: none; }

/* ==========================================================================
   PERFORMANS KADEMELERİ & AZALTILMIŞ HAREKET
   ========================================================================== */
[data-q="medium"] { --sh-1: 0 1px 2px rgba(17, 28, 58, .08); --sh-2: 0 4px 14px rgba(17, 28, 58, .12); --sh-3: 0 10px 30px rgba(10, 18, 45, .25); }
[data-q="low"] { --sh-1: none; --sh-2: none; --sh-3: none; --t-med: 120ms; --t-slow: 200ms; }
[data-q="low"] .hero::before, [data-q="low"] .scene-bg::before { display: none; }
[data-q="low"] .ha-float, [data-q="low"] .note-paper::before { display: none; }
[data-q="low"] .view.enter > *, [data-q="low"] .options.stagger .opt { animation: none; }
[data-q="low"] .btn:hover, [data-q="low"] .mod-card:hover { transform: none; }
[data-q="low"] .bar i, [data-q="low"] .hud-bar i { transition: none; }
[data-q="low"] .fb, [data-q="low"] .modal { border-width: 2px; }
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after {
  animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
  transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
}

/* ==========================================================================
   DUYARLI DÜZEN — projeksiyon (1024–1366), dizüstü, tablet, telefon
   ========================================================================== */
@media (min-width: 1500px) {
  .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr 1fr; padding: 30px; }
  .hero h1 { font-size: 2.5rem; }
  .flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --gutter: 18px; }
  .stage { grid-template-columns: 1fr; }
  .scene, .scene-stage { min-height: 200px; }
  .scene-actor { max-width: 170px; }
  .rep-top, .home-grid { grid-template-columns: minmax(0, 1fr); }
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-context { display: none; }
  .brand-text small { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --topbar-h: 56px; }
  html { font-size: 15px; }
  html[data-text="large"] { font-size: 17px; }
  html[data-text="xl"] { font-size: 18px; }
  .view { padding-top: 14px; }
  h1 { font-size: 1.55rem; }
  .hero { padding: 22px 18px; border-radius: 18px; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1.05rem; }
  .hero .btn-row .btn { width: 100%; }
  .mod-grid { grid-template-columns: 1fr; }
  .mod-card { min-height: 0; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .tb-btn { width: 38px; height: 38px; }
  .tb-actions { gap: 4px; }
  .brand-text { display: none; }
  #btn-fs { display: none; }
  .topbar { gap: 8px; }
  .tb-net { font-size: 0; padding: 4px 6px; }
  .tb-net .i { font-size: 1rem; }
  .hud { padding: 8px 10px; gap: 6px 10px; }
  .hud-chips { flex-wrap: nowrap; }
  .chip-place, .hud .mode-chip { display: none; }
  .hud-score { border-left: 0; padding: 0; margin-left: auto; }
  .hud-score b { font-size: 1.25rem; }
  .hud-prog { order: 3; width: 100%; font-size: .82rem; }
  .hud-bar { flex: 1; width: auto; }
  .scene-counter { height: 46px; }
  .scene-stage { padding-bottom: 22px; }
  .scene, .scene-stage { min-height: 180px; }
  .scene-actor { width: 40%; }
  .bubble { margin-bottom: 30px; padding: 10px 12px; }
  .bubble p { font-size: .95rem; }
  .situation { padding: 14px; }
  .situation h2 { font-size: 1.1rem; }
  .opt { min-height: 58px; padding: 10px; gap: 10px; font-size: .97rem; }
  .opt-key { width: 40px; height: 40px; font-size: 1.05rem; }
  .confirm-bar .btn { width: 100%; }
  .confirm-bar .hint { display: none; }
  .fb-points { font-size: 2.1rem; }
  .fb-btns .btn { flex: 1; }
  .intro-card { padding: 24px 18px; }
  .intro-time { font-size: 2.4rem; }
  .intro-card h1 { font-size: 1.6rem; }
  .clock { width: 64px; height: 64px; }
  .clock .ch { height: 16px; } .clock .cm { height: 23px; }
  .clock .tk { transform-origin: 50% 25px; }
  .mod-hero { grid-template-columns: 1fr; }
  .sc-item { grid-template-columns: 1fr; gap: 6px; }
  .likert { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .likert button { font-size: 0; min-height: 48px; }
  .likert button b { font-size: 1.1rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .rep-badge .rb-title { font-size: 1.7rem; }
  .cmp-row { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 1fr 1fr 48px; }
  .pause h2 { font-size: 2rem; }
  .pause-timer { font-size: 4rem; }
  .tl-item > summary { grid-template-columns: 54px 1fr; }
  .tl-item > summary .gdots { grid-column: 2; }
  .phase { grid-template-columns: 1fr; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
}
/* Oyun ekranı ekrana sığar: sütunlar kendi içinde kayar, eylem düğmeleri hep görünür (projeksiyon için) */
@media (min-width: 981px) {
  .view.play { padding-top: 14px; padding-bottom: 14px; }
  .view.play .game { height: calc(100vh - var(--topbar-h) - var(--bar-h) - 28px); grid-template-rows: auto minmax(0, 1fr); }
  .view.play .stage { min-height: 0; height: 100%; align-items: stretch; }
  .view.play .col-scene, .view.play .col-decision { min-height: 0; overflow-y: auto; align-content: start; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 4px 0 0; }
}
@media (min-width: 981px) and (max-width: 1280px) {
  .hud .mode-chip { display: none; }
  .chip-place { max-width: 230px; }
  .hud-bar { width: 90px; }
}
/* kısa ekranlar (projeksiyon 1024x768, 1280x720) */
@media (min-width: 981px) and (max-height: 820px) {
  .view { padding-top: 14px; }
  .scene, .scene-stage { min-height: 214px; }
  .scene-actor { max-width: 190px; }
  .situation { padding: 14px 16px; }
  .opt { min-height: 58px; padding-top: 9px; padding-bottom: 9px; }
  .game { gap: 10px; }
  .stage, .col-scene, .col-decision { gap: 10px; }
}

/* ==========================================================================
   YAZDIRMA (vardiya raporu)
   ========================================================================== */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --sh-1: none; --sh-2: none; }
  body { background: #fff; color: #000; }
  .topbar, .session-bar, .toasts, .no-print, .fx-canvas, #fps-meter, .t-head { display: none !important; }
  .view { padding: 0; max-width: none; }
  .card, .tl-item, .rep-badge { break-inside: avoid; }
  details.tl-item > .tl-body { display: grid !important; }
  .rep-top { grid-template-columns: 1fr 1fr; }
  .bar i { transition: none; }
  * { animation: none !important; }
}

.tb-btn.portal-btn {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .tb-btn.portal-btn { width: 42px; padding: 0; justify-content: center; }
  .tb-btn.portal-btn .portal-btn-label { display: none; }
}
