/* AI-assisted: this file was written with the help of Claude (Anthropic), an AI coding assistant. See AI_USE.md. */
/* Görev Mimarı — sade, okunaklı, her yaşa uygun.
   Düzen: üstte adım çubuğu, solda içerik, sağda sabit "kaynaklar" paneli.
   Açık tema varsayılan (sınıfta yansıtmaya uygun), sistem koyu ise koyu tema. */
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --surface2: #f5f7f9;
  --ink: #16202b;
  --muted: #4f5d6b;
  --dim: #66727f;
  --line: #d8dee5;
  --line2: #b6c0cb;
  --accent: #1d5fbf;
  --accent-ink: #ffffff;
  --sel-bg: #e7effa;
  --cta: #c2410c;
  --cta-ink: #ffffff;
  --good: #1b7f3b;
  --warn: #9a5800;
  --bad: #c22b2b;
  --good-bg: #e6f4ea;
  --warn-bg: #fdf1e1;
  --bad-bg: #fbe9e9;
  --role-mm: #9a5800;
  --role-se: #1d5fbf;
  --role-sl: #6b3fb3;
  --role-cl: #1b7f3b;
  --space: #0b1118;
  --seg-launch: #4b5563;
  --seg-cruise: #1d4f91;
  --seg-arrive: #8a3b12;
  --seg-ops: #1b6b3a;
  --radius: 8px;
  --sans: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif; /* rakamlar tabular-nums ile hizalanır */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151c; --surface: #17202a; --surface2: #1d2834; --ink: #e6ebf0; --muted: #a6b3c0; --dim: #8f9dab;
    --line: #2a3644; --line2: #3d4d5f; --accent: #7fb0ff; --accent-ink: #0f151c; --sel-bg: #1a2b42;
    --cta: #ff8a4c; --cta-ink: #1a0d05; --good: #62cf8f; --warn: #f0b450; --bad: #ff7f7f;
    --good-bg: #15291e; --warn-bg: #2c2312; --bad-bg: #2e1718;
    --role-mm: #f0b450; --role-se: #7fb0ff; --role-sl: #c3a2ff; --role-cl: #62cf8f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f151c; --surface: #17202a; --surface2: #1d2834; --ink: #e6ebf0; --muted: #a6b3c0; --dim: #8f9dab;
  --line: #2a3644; --line2: #3d4d5f; --accent: #7fb0ff; --accent-ink: #0f151c; --sel-bg: #1a2b42;
  --cta: #ff8a4c; --cta-ink: #1a0d05; --good: #62cf8f; --warn: #f0b450; --bad: #ff7f7f;
  --good-bg: #15291e; --warn-bg: #2c2312; --bad-bg: #2e1718;
  --role-mm: #f0b450; --role-se: #7fb0ff; --role-sl: #c3a2ff; --role-cl: #62cf8f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
#stars { display: none; }
#app { min-height: 100vh; }
button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.good { color: var(--good); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.sp { justify-content: space-between; }

/* ---------- düğmeler ---------- */
.btn {
  border: 1px solid var(--line2); background: var(--surface); border-radius: 6px; color: var(--ink);
  padding: 9px 16px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; min-height: 40px;
  transition: background-color .15s, border-color .15s;
}
.btn:hover:not(:disabled) { border-color: var(--accent); background: var(--sel-bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
.btn.go { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn.go:hover:not(:disabled) { background: var(--cta); filter: brightness(1.08); }
.btn.big { padding: 12px 22px; font-size: 18px; min-height: 48px; }
.btn.small { padding: 5px 12px; font-size: 15px; min-height: 34px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { border-color: var(--line2); background: var(--surface2); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 4px; font-size: 14px; border: 1px solid var(--line2); background: var(--surface2); white-space: nowrap; }
.chip.primary { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
.tag { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* ---------- başlangıç ---------- */
.title-wrap { max-width: 1120px; margin: 0 auto; padding-block: 40px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 22px; }
.hero { padding: 12px 0 8px; max-width: 720px; display: grid; gap: 10px; }
.hero h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.01em; }
.hero p { color: var(--muted); font-size: 19px; }
.hero-team { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-team .chip { font-size: 14px; white-space: normal; }
.hero-team b { color: var(--ink); }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.setup-grid > .panel { padding: 20px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.section-title .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-size: 15px; }
.scen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.scen { text-align: left; border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.scen:hover { border-color: var(--line2); }
.scen.sel { border-color: var(--accent); background: var(--sel-bg); }
.scen .icon { width: 72px; height: 72px; }
.scen .icon img { width: 72px; height: 72px; display: block; }
.scen h3 { font-size: 19px; }
.scen p { color: var(--muted); font-size: 15px; }
.scen .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.choice-list { display: grid; gap: 8px; }
.choice { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 10px 12px; text-align: left; display: flex; gap: 10px; align-items: flex-start; }
.choice:hover { border-color: var(--line2); }
.choice.sel { border-color: var(--accent); background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.choice b { display: block; }
.choice small { color: var(--muted); font-size: 15px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { background: transparent; border: 0; padding: 7px 14px; min-height: 38px; border-right: 1px solid var(--line); color: var(--ink); }
.seg button:last-child { border-right: 0; }
.seg button.sel { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.players { display: grid; gap: 8px; margin-top: 12px; }
.player-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.player-row input { flex: 1; min-width: 140px; background: var(--surface); border: 1px solid var(--line2); border-radius: 6px; padding: 8px 10px; color: var(--ink); font: inherit; }
.role-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.start-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.lb table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lb td, .lb th { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.lb th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.footer { color: var(--dim); font-size: 14px; }

/* tema ve dil seçimi */
.prefs { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-seg button, .theme-seg button { padding: 5px 12px; min-height: 34px; font-weight: 700; letter-spacing: .04em; }

/* ---------- tasarım ekranı ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 12px;
  padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar .brand { font-weight: 700; white-space: nowrap; }
.topbar .mission-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps {
  display: flex; gap: 2px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 57px); z-index: 19;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.step { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; border: 0; border-bottom: 3px solid transparent; background: transparent; white-space: nowrap; color: var(--muted); font-weight: 600; }
.step:hover { color: var(--ink); }
.step.sel { color: var(--ink); border-bottom-color: var(--accent); }
.step .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); flex-shrink: 0; }
.step .dot.ok { background: var(--good); }
.step .dot.warn { background: var(--warn); transform: rotate(45deg); border-radius: 1px; }
.step .dot.err { background: var(--bad); border-radius: 1px; }
.design { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; max-width: 1440px; margin: 0 auto; padding-block: 20px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.main-col { min-width: 0; display: grid; gap: 18px; align-content: start; }
.side-col { display: grid; gap: 14px; align-content: start; position: sticky; top: 124px; max-height: calc(100vh - 136px); overflow-y: auto; padding-bottom: 8px; scrollbar-width: thin; }
.step-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.step-head h2 { font-size: 28px; }
.owner { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1.5px solid; background: var(--surface); }
.learn { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 6px; font-size: 16px; max-width: 75ch; }
.learn summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.group { display: grid; gap: 10px; }
.group h3 { font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.card { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.card:hover:not(:disabled) { border-color: var(--line2); }
.card.sel { border-color: var(--accent); background: var(--sel-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.card .name { font-weight: 700; padding-right: 26px; }
.card .desc { color: var(--muted); font-size: 15px; }
.stats { display: flex; gap: 4px 12px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.stat { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat.bad { color: var(--bad); font-weight: 600; } .stat.good { color: var(--good); font-weight: 600; }
.card .check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; font-size: 12px; background: var(--surface); }
.card.sel .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.badge-adv { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line2); padding: 0 5px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; font-weight: 700; }
.pros { font-size: 14px; display: grid; gap: 2px; }
.inst-list { display: grid; gap: 8px; }
.inst { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.inst.on { border-color: var(--accent); background: var(--sel-bg); }
.inst .ic { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); }
.inst .use { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.use .chip { font-size: 13px; }
.objbars { display: grid; gap: 10px; }
.objbar .lbl { display: flex; justify-content: space-between; font-size: 15px; gap: 8px; }
.bar { height: 10px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; transition: width .3s; }
.bar .mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .45; }
.slider-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
input[type=range] { flex: 1; min-width: 180px; accent-color: var(--accent); }
.toggle { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 3px; }
table.budget { width: 100%; border-collapse: collapse; font-size: 15px; }
table.budget td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
table.budget td:last-child { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.budget tr.total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--line2); }

/* ---------- kaynak paneli ---------- */
.dash h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 8px; }
.meter { margin-bottom: 12px; }
.meter:last-child { margin-bottom: 0; }
.meter .top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 4px; gap: 8px; }
.meter .val { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.meter .st { font-size: 13px; margin-left: 6px; font-weight: 700; }
.meter .st.ok { color: var(--good); } .meter .st.warn { color: var(--warn); } .meter .st.bad { color: var(--bad); }
.craft-view { display: grid; place-items: center; background: var(--space); border-radius: 6px; min-height: 180px; padding: 6px; }
.craft-view svg { width: 100%; height: auto; max-height: 230px; }
.issues { display: grid; gap: 6px; }
.issue { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 15px; padding: 8px 10px; border-radius: 6px; background: var(--surface2); border-left: 4px solid var(--line2); }
.issue.error { border-left-color: var(--bad); background: var(--bad-bg); }
.issue.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.issue.good { border-left-color: var(--good); background: var(--good-bg); }
.issue .why { color: var(--muted); font-size: 14px; margin-top: 2px; }
.goal { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.goal .ri { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.approve-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.approve { padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; }
.approve.ok { border-color: var(--good); background: var(--good-bg); }
.nav-bottom { display: flex; justify-content: space-between; gap: 10px; }

/* ---------- uçuş ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; max-width: 1440px; margin: 0 auto; padding-block: 18px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.viz-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--space); aspect-ratio: 16 / 10; max-width: 100%; }
.viz-wrap canvas { width: 100%; height: 100%; display: block; }
.viz-hud { position: absolute; left: 14px; top: 12px; right: 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; color: #eef2f6; }
.viz-hud .ph { font-size: 20px; font-weight: 700; background: rgba(11, 17, 24, .7); padding: 2px 10px; border-radius: 4px; }
.viz-hud .clock { font-family: var(--mono); font-size: 14px; text-align: right; background: rgba(11, 17, 24, .7); padding: 2px 10px; border-radius: 4px; }
.timeline { display: flex; height: 28px; border-radius: 6px; overflow: hidden; position: relative; font-size: 13px; font-weight: 600; }
.timeline > div { display: grid; place-items: center; color: #fff; white-space: nowrap; overflow: hidden; border-right: 1px solid rgba(0, 0, 0, .25); }
.timeline .cursor { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--cta); transition: left .3s; }
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.log { max-height: 280px; overflow-y: auto; display: grid; gap: 4px; font-size: 15px; scrollbar-width: thin; }
.log div { padding: 6px 10px; border-radius: 4px; background: var(--surface2); border-left: 4px solid var(--line2); }
.log .good { border-left-color: var(--good); color: var(--ink); }
.log .bad { border-left-color: var(--bad); color: var(--ink); background: var(--bad-bg); }
.log .warn { border-left-color: var(--warn); color: var(--ink); }
.log .event { border-left-color: var(--accent); color: var(--ink); }
.log .t { font-family: var(--mono); color: var(--dim); font-size: 13px; margin-right: 8px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 15px; }
.kv span:nth-child(even) { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 60px; display: block; }

/* ---------- pencereler ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 15, 22, .6); z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal { max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px; border-radius: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); display: grid; gap: 10px; }
.modal h2 { font-size: 24px; }
.modal .decider { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 6px; font-size: 15px; font-weight: 600; justify-self: start; }
.opt-btn { display: block; width: 100%; text-align: left; padding: 12px 15px; border-radius: 8px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); }
.opt-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--sel-bg); }
.opt-btn b { display: block; font-size: 17px; }
.opt-btn small { color: var(--muted); font-size: 15px; }
#toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%) translateY(120px); background: var(--ink); color: var(--surface); padding: 10px 18px; border-radius: 6px; z-index: 200; transition: transform .25s, opacity .25s; opacity: 0; }
#toast.show { transform: translateX(-50%); opacity: 1; }

/* ---------- rapor ---------- */
.report { max-width: 1080px; margin: 0 auto; padding-block: 24px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 18px; }
.report-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px; }
.grade { width: 96px; height: 96px; border-radius: 12px; display: grid; place-items: center; font-size: 56px; font-weight: 700; border: 3px solid; }
.grade.S, .grade.A { color: var(--good); background: var(--good-bg); }
.grade.B { color: var(--accent); background: var(--sel-bg); }
.grade.C { color: var(--warn); background: var(--warn-bg); }
.grade.D, .grade.F { color: var(--bad); background: var(--bad-bg); }
.score-big { font-size: 48px; font-weight: 700; font-family: var(--mono); text-align: right; line-height: 1; }
.breakdown { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.bd { padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.bd .v { font-size: 26px; font-weight: 700; font-family: var(--mono); }
.bd .l { font-size: 14px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lesson { padding: 12px 14px; border-radius: 6px; background: var(--surface2); border-left: 4px solid var(--line2); }
.lesson b { display: block; margin-bottom: 3px; }
.lesson.bad { border-left-color: var(--bad); } .lesson.warn { border-left-color: var(--warn); } .lesson.good { border-left-color: var(--good); } .lesson.info { border-left-color: var(--accent); }
.lesson p { color: var(--ink); font-size: 16px; max-width: 75ch; }
.cmp td.up { color: var(--good); } .cmp td.down { color: var(--bad); }

/* ---------- diğer ---------- */
.help-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.help-steps div { padding: 12px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); font-size: 15px; }
.gloss dt { font-weight: 700; margin-top: 10px; color: var(--accent); }
.gloss dd { margin: 2px 0 0; font-size: 16px; }
textarea.code { width: 100%; min-height: 90px; background: var(--surface2); border: 1px solid var(--line2); color: var(--ink); border-radius: 6px; padding: 10px; font-family: var(--mono); font-size: 13px; word-break: break-all; }

/* ---------- simgeler ---------- */
.svg-ic { width: 1.1em; height: 1.1em; vertical-align: -0.18em; display: inline-block; flex-shrink: 0; }
.svg-ic.c-good { color: var(--good); } .svg-ic.c-bad { color: var(--bad); } .svg-ic.c-warn { color: var(--warn); }
.svg-ic.c-gold { color: var(--warn); } .svg-ic.c-fire { color: var(--cta); } .svg-ic.c-ice { color: var(--accent); }
.inst .ic .svg-ic { width: 26px; height: 26px; color: var(--accent); }

/* ---------- erişilebilirlik ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; }
@media (pointer: coarse) {
  .btn, .seg button, .step, .opt-btn { min-height: 44px; }
  .btn.small { min-height: 40px; }
  .toggle input { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- dar ekran ---------- */
@media (max-width: 1100px) {
  .design, .sim { grid-template-columns: 1fr; }
  .side-col { position: static; max-height: none; }
  .scen-grid { grid-template-columns: repeat(2, 1fr); }
  .breakdown { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .setup-grid, .two, .help-steps { grid-template-columns: 1fr; }
  .scen-grid { grid-template-columns: 1fr; }
  .scen { flex-direction: row; flex-wrap: wrap; }
  .scen .icon, .scen .icon img { width: 56px; height: 56px; }
  .scen > div:not(.icon), .scen h3, .scen p, .scen .tag, .scen .meta { flex-basis: 100%; }
  .topbar { flex-wrap: wrap; gap: 6px; }
  .topbar .brand { flex: 1 0 100%; }
  .topbar .mission-name { display: none; }
  .topbar .btn { white-space: nowrap; padding: 6px 10px; }
  .steps { position: static; }
  .report-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .score-big { text-align: center; }
  .breakdown { grid-template-columns: repeat(2, 1fr); }
  .inst { grid-template-columns: 44px minmax(0, 1fr); align-items: start; }
  .inst .seg { grid-column: 1 / -1; justify-self: start; }
  .step-head h2 { font-size: 24px; }
}

/* ---------- rehberli tur ---------- */
.tour-catch { position: fixed; inset: 0; z-index: 300; }
.tour-catch.dim { background: rgba(5, 10, 16, .72); }
.tour-spot { position: fixed; z-index: 301; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(5, 10, 16, .72); outline: 3px solid var(--cta); outline-offset: 0; pointer-events: none; transition: top .25s, left .25s, width .25s, height .25s; }
.tour-card { position: fixed; z-index: 302; width: min(400px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line2); border-radius: 10px; padding: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); display: grid; gap: 10px; }
.tour-card h3 { font-size: 20px; }
.tour-card p { font-size: 16px; }
.tour-prog { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tour-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* ---------- çevrimiçi oda ---------- */
.online-panel { display: grid; gap: 4px; }
.on-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.on-field { display: grid; gap: 4px; font-size: 14px; color: var(--muted); font-weight: 600; min-width: 0; }
.on-field input, .on-form input { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line2); border-radius: 6px; padding: 9px 10px; color: var(--ink); font: inherit; }
.on-or { padding-bottom: 10px; }
.on-err { color: var(--bad); min-height: 1.4em; font-weight: 600; }
.on-codebox { display: grid; gap: 10px; justify-items: start; }
.on-code { font-size: clamp(40px, 9vw, 64px); font-weight: 700; letter-spacing: .08em; line-height: 1; font-variant-numeric: tabular-nums; }
.on-lobby .choice img { width: 36px; height: 36px; flex-shrink: 0; }
.on-roombtn { white-space: nowrap; }
.on-note { padding: 10px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--sel-bg); font-weight: 600; }
.view-only .card, .view-only .inst .seg button, .view-only .toggle { cursor: not-allowed; }
.view-only .card:not(.sel), .view-only .inst:not(.on) { opacity: .75; }
#on-chat-btn { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.on-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-size: 13px; }
#on-chat { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 91; width: min(360px, calc(100vw - 32px)); height: min(460px, calc(100vh - 120px)); display: grid; grid-template-rows: auto auto 1fr auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); overflow: hidden; }
#on-chat header { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); }
.on-safety { margin: 0; padding: 8px 14px; font-size: 13px; color: var(--muted); background: var(--surface2); }
.on-msgs { overflow-y: auto; padding: 10px 14px; display: grid; gap: 8px; align-content: start; }
.on-msg { padding: 6px 10px; border-radius: 8px; background: var(--surface2); max-width: 90%; }
.on-msg.mine { justify-self: end; background: var(--sel-bg); }
.on-msg-head { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; font-size: 13px; }
.on-msg-text { font-size: 15px; overflow-wrap: anywhere; }
.on-mute { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.on-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .on-form-grid { grid-template-columns: 1fr; align-items: stretch; }
  .on-or { padding: 0; text-align: center; }
  #on-chat { height: min(420px, calc(100vh - 110px)); }
}

/* =====================================================================
   ATÖLYE (tek ekran, 4 adım) — workshop.js
   ===================================================================== */
.ws { max-width: 1280px; margin: 0 auto; padding-block: 14px 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 14px; }
.ws-gauges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gauge { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 9px; display: grid; gap: 4px; min-width: 0; transition: border-color .3s; }
.gauge[data-st="warn"] { border-color: var(--warn); }
.gauge[data-st="bad"] { border-color: var(--bad); }
.g-top { display: flex; justify-content: space-between; align-items: center; }
.g-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.g-nums { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.g-val { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-cap { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-bar { height: 8px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 2%; border-radius: 999px; background: var(--good); transition: width .6s cubic-bezier(.2, .8, .2, 1), background-color .3s; }
.gauge[data-st="warn"] .g-bar i { background: var(--warn); }
.gauge[data-st="bad"] .g-bar i { background: var(--bad); }
.g-sub { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gauge.shake { animation: ws-shake .45s ease-in-out; }

.ws-stage { position: relative; height: clamp(220px, 36vh, 380px); border-radius: 12px; overflow: hidden; background: var(--space); isolation: isolate; }
.ws-stars { position: absolute; inset: -40%; z-index: 0; opacity: .8;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #ffffffcc 99%, transparent), radial-gradient(1px 1px at 33% 72%, #ffffff99 99%, transparent),
    radial-gradient(1.5px 1.5px at 58% 34%, #ffffffdd 99%, transparent), radial-gradient(1px 1px at 81% 62%, #ffffff88 99%, transparent),
    radial-gradient(1px 1px at 69% 11%, #ffffffaa 99%, transparent), radial-gradient(1.5px 1.5px at 24% 48%, #ffffffbb 99%, transparent),
    radial-gradient(1px 1px at 92% 28%, #ffffff99 99%, transparent), radial-gradient(1px 1px at 47% 88%, #ffffff77 99%, transparent);
  background-size: 260px 260px; animation: ws-drift 90s linear infinite; }
.ws-planet { position: absolute; right: -4%; bottom: -34%; width: min(46%, 360px); aspect-ratio: 1; z-index: 1; animation: ws-planet-in 1s cubic-bezier(.2, .8, .2, 1) both; pointer-events: none; }
.ws-craft { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; animation: ws-float 5.5s ease-in-out infinite; }
.ws-craft svg { width: min(86%, 600px); height: auto; max-height: 94%; overflow: visible; }
.ws-craft .part-new { animation: ws-pop .55s cubic-bezier(.2, 1.5, .4, 1) both; transform-box: fill-box; transform-origin: center; }
.ws-info { position: absolute; left: 14px; top: 12px; z-index: 3; display: grid; gap: 2px; color: #eef2f6; background: rgba(11, 17, 24, .65); padding: 6px 12px; border-radius: 8px; font-size: 15px; }
.ws-info span { color: #b9c4cf; font-size: 13px; }
.ws-flags { position: absolute; right: 12px; top: 12px; z-index: 3; }
.ws-flag { border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; background: var(--bad); color: #fff; animation: ws-pop .4s both; }

.ws-tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ws-tab { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 17px; border-radius: 8px 8px 0 0; transition: color .2s, background-color .2s; white-space: nowrap; }
.ws-tab:hover { color: var(--ink); background: var(--surface2); }
.ws-tab .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line2); font-size: 15px; transition: background-color .3s, border-color .3s, color .3s, transform .3s; }
.ws-tab.sel { color: var(--ink); }
.ws-tab.sel .num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.ws-tab.ok .num { border-color: var(--good); }
.ws-tab .mk { font-size: 14px; font-weight: 700; }
.ws-tab.ok .mk { color: var(--good); } .ws-tab.warn .mk { color: var(--warn); } .ws-tab.err .mk { color: var(--bad); }
.ws-ind { position: absolute; bottom: -1px; left: 0; height: 3px; width: 0; border-radius: 3px; background: var(--accent); transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1); }

.ws-panel { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ws-panel.ws-enter > * { animation: ws-rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.ws-panel.ws-enter > *:nth-child(2) { animation-delay: .04s; } .ws-panel.ws-enter > *:nth-child(3) { animation-delay: .08s; }
.ws-panel.ws-enter > *:nth-child(4) { animation-delay: .12s; } .ws-panel.ws-enter > *:nth-child(5) { animation-delay: .16s; }
.ws-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ws-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ws-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ws-panel .card { transition: transform .18s cubic-bezier(.2, .8, .2, 1), border-color .2s, background-color .2s, box-shadow .2s; }
.ws-panel .card:hover:not(:disabled) { transform: translateY(-3px); }
.ws-panel .card:active:not(:disabled) { transform: translateY(0) scale(.98); }
.ws-panel .card.sel .check { animation: ws-pop .35s both; }
.ws-ic { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--surface2); border: 1px solid var(--line); }
.ws-ic .svg-ic { width: 24px; height: 24px; color: var(--accent); }
.ws-tog { margin-top: 4px; font-weight: 700; font-size: 15px; color: var(--accent); }
.card.sel .ws-tog { color: var(--good); }
.ws-objs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ws-objs li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.ws-small { font-size: 14px; }
.ws-dur button { padding: 8px 14px; }
.ws-auto .role-chips { margin-top: 8px; }
.ws-launchbox { display: grid; gap: 10px; justify-items: start; }
.ws-launchbox .btn.go:not(:disabled) { animation: ws-ready 2.4s ease-in-out infinite; }

@keyframes ws-float { 50% { transform: translateY(-9px); } }
@keyframes ws-drift { to { transform: translate(-12%, 8%); } }
@keyframes ws-pop { from { opacity: 0; transform: scale(.35); } }
@keyframes ws-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes ws-planet-in { from { opacity: 0; transform: translate(10%, 10%); } }
@keyframes ws-shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes ws-ready { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .ws-stars, .ws-craft, .ws-planet, .ws-launchbox .btn.go, .ws-craft .part-new, .gauge.shake, .ws-panel.ws-enter > * { animation: none !important; }
  .ws-ind, .g-bar i { transition: none; }
}
@media (max-width: 1000px) {
  .ws-gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ws { gap: 10px; }
  .ws-gauges { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .ws-gauges .gauge { flex: 0 0 46%; scroll-snap-align: start; }
  .g-sub { display: none; }
  .ws-stage { height: 200px; }
  .ws-tab { flex: 1 0 auto; padding: 10px 8px; font-size: 15px; gap: 6px; }
  .ws-tab .lbl { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; }
}

/* Göstergeler yanda (kullanıcı isteği 2026-11-14: değişiklikler kolay görünsün).
   Geniş ekranda sağda sabit sütun; dar ekranda üst çubuğun altında yapışkan şerit. */
@media (min-width: 1001px) {
  .ws { grid-template-columns: minmax(0, 1fr) 250px; align-items: start; column-gap: 18px; }
  .ws > * { grid-column: 1; }
  .ws > .ws-gauges { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--tb-h, 57px) + 12px); grid-template-columns: 1fr; gap: 8px; max-height: calc(100vh - var(--tb-h, 57px) - 28px); overflow-y: auto; }
}
@media (max-width: 1000px) {
  .ws-gauges, .ws-gauges .gauge { min-width: 0; }
  .ws > .ws-gauges { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--tb-h, 57px)); z-index: 15; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; overflow: visible; margin-inline: -16px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .ws-gauges .gauge { padding: 6px 8px; gap: 3px; flex: none; }
  .ws-gauges .g-label { font-size: 11px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ws-gauges .g-val { font-size: 16px; }
  .ws-gauges .g-cap { font-size: 11px; }
  .ws-gauges .g-sub { display: none; }
  .ws-gauges .g-bar { height: 6px; }
}
@media (max-width: 720px) {
  .ws-gauges .g-cap { display: none; }
  .ws-gauges .g-val { font-size: 14px; }
  .ws-gauges .gauge { padding: 5px 6px; }
}

/* 3B uzay aracı (craft3d.js). Sürükleyince döner; dikey kaydırma sayfada kalır. */
.ws-craft.is3d { animation: none; display: block; }
.ws-craft .ws-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.ws-craft .ws-3d.grab { cursor: grabbing; }
.ws-3d-hint { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: #c3ccd6; background: rgba(11, 17, 24, .65); padding: 4px 10px; border-radius: 6px; pointer-events: none; transition: opacity .4s; }
.ws-3d-hint.gone { opacity: 0; }

/* Uçuş ekranında 3B yörünge görünümü (flight3d.js) */
.viz-wrap canvas.viz-3d { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.viz-wrap canvas.viz-3d.grab { cursor: grabbing; }
.viz-wrap canvas.viz-3d[hidden] { display: none; }
.viz-3d-labels { position: absolute; inset: auto 14px 12px 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .7); pointer-events: none; }
.viz-3d-labels[hidden] { display: none; }

/* 3B görünüm araç çubuğu ve tam ekran (craft3d.js toolbar / toggleFull) */
.v3-tools { position: absolute; z-index: 4; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ws-tools { right: 12px; bottom: 12px; }
.viz-tools { right: 12px; top: 52px; }
.v3-btn { min-height: 36px; min-width: 36px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(11, 17, 24, .72); color: #eef2f6; font: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; }
.v3-btn:hover { background: rgba(30, 42, 56, .9); }
.v3-btn[aria-pressed="true"][data-v3="axes"] { border-color: #8fb8ff; }
.v3-btn:focus-visible { outline: 2px solid #8fb8ff; outline-offset: 2px; }
@media (pointer: coarse) { .v3-btn { min-height: 44px; min-width: 44px; } }
.ws-stage.has3d .ws-stars { display: none; }
/* tam ekran: tarayıcının kendi tam ekranı ya da (izin yoksa) sayfa içinde tüm ekran */
.ws-stage:fullscreen, .ws-stage.v3-full, .viz-wrap:fullscreen, .viz-wrap.v3-full { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; background: var(--space); }
.ws-stage:-webkit-full-screen, .viz-wrap:-webkit-full-screen { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; }
.ws-stage.v3-full, .viz-wrap.v3-full { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; }
body:has(.v3-full) { overflow: hidden; }
.ws-stage:fullscreen .ws-3d, .ws-stage.v3-full .ws-3d, .viz-wrap:fullscreen .viz-3d, .viz-wrap.v3-full .viz-3d { touch-action: none; }
.ws-stage:fullscreen .ws-tools, .ws-stage.v3-full .ws-tools { right: 20px; bottom: 20px; }
@media (max-width: 720px) {
  .v3-btn { padding: 4px 8px; font-size: 13px; }
  .ws-tools { right: 8px; bottom: 8px; left: 8px; }
  .viz-tools { right: 8px; top: 44px; left: auto; }
  .ws-3d-hint { display: none; }
}

/* Serbest kamera: yardım satırı ve yön düğmeleri (craft3d.js toolbar) */
.v3-help { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); top: 12px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 8px; background: rgba(11, 17, 24, .78); color: #eef2f6; font-size: 13px; text-align: center; pointer-events: none; }
.ws-craft .v3-help { top: 64px; }
.viz-wrap .v3-help { top: 96px; }
.v3-pad { position: absolute; z-index: 4; left: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(3, auto); gap: 6px; user-select: none; -webkit-user-select: none; touch-action: none; }
.v3-pad .v3-btn { min-width: 44px; min-height: 40px; font-size: 15px; }
.v3-help[hidden], .v3-pad[hidden], .v3-tools [hidden] { display: none; }
.ws-craft:has(.v3-pad:not([hidden])) .ws-3d-hint, .viz-wrap:has(.v3-pad:not([hidden])) .viz-3d-labels { display: none; }
@media (max-width: 720px) {
  .v3-pad { left: 8px; bottom: 60px; gap: 4px; }
  .v3-pad .v3-btn { min-width: 44px; min-height: 44px; padding: 4px 6px; font-size: 13px; }
  .ws-craft .v3-help { top: 56px; font-size: 12px; }
}

@media (max-width: 720px) {
  /* küçük görünümde yardım yazısı sığmaz; tam ekranda gösterilir */
  .ws-stage:not(.v3-full):not(:fullscreen) .v3-help, .viz-wrap:not(.v3-full):not(:fullscreen) .v3-help { display: none; }
  .viz-wrap .v3-help { top: 96px; }
}

/* Telefonda uçuş görünümü: daha uzun alan, araç çubuğu altta ve sade (+ − Sıfırla tam ekranda) */
@media (max-width: 720px) {
  .viz-wrap:not(.v3-full):not(:fullscreen) { aspect-ratio: 4 / 3; }
  .viz-wrap:not(.v3-full):not(:fullscreen) .viz-tools { top: auto; bottom: 8px; right: 8px; left: 8px; }
  .viz-wrap:not(.v3-full):not(:fullscreen) .viz-tools [data-v3="in"],
  .viz-wrap:not(.v3-full):not(:fullscreen) .viz-tools [data-v3="out"],
  .viz-wrap:not(.v3-full):not(:fullscreen) .viz-tools [data-v3="reset"],
  .viz-wrap:not(.v3-full):not(:fullscreen) .viz-3d-labels { display: none; }
  .viz-wrap.v3-full .viz-tools, .viz-wrap:fullscreen .viz-tools { top: 64px; }
  .viz-hud .ph { font-size: 16px; }
  .viz-hud .clock { font-size: 12px; }
}

/* gizli araç çubuğu (fırlatma sırasında) */
.v3-tools[hidden] { display: none; }

/* görev durumu ve saat 3B görünümün üstünde kalsın */
.viz-wrap .viz-hud { z-index: 3; }

/* Açılış ekranı (intro.js) */
html.intro-pending body { background: #000; }
html.intro-pending body > *:not(#intro) { visibility: hidden; }
#intro { position: fixed; inset: 0; z-index: 10000; background: #000; display: grid; place-items: center; transition: opacity .6s ease; }
#intro.reveal, #intro.out { opacity: 0; }
#intro .intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; transition: opacity .5s ease; }
#intro.ended .intro-video { opacity: 0; }
#intro .intro-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#intro .intro-top { position: absolute; bottom: max(14px, env(safe-area-inset-bottom, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); display: flex; gap: 8px; z-index: 2; }
#intro .intro-btn { min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(10, 14, 20, .6); color: #f2f4f7; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
#intro .intro-btn:hover { background: rgba(30, 40, 52, .85); }
#intro .intro-start { position: relative; z-index: 2; min-height: 56px; min-width: 180px; padding: 12px 36px; border-radius: 14px; border: 0; background: var(--cta, #c2410c); color: var(--cta-ink, #fff); font: inherit; font-size: 22px; font-weight: 700; letter-spacing: .02em; cursor: pointer; animation: intro-in .6s ease both; }
#intro .intro-start:hover { filter: brightness(1.08); }
#intro .intro-team { position: absolute; left: 16px; right: 16px; bottom: calc(50% + 56px); z-index: 2; display: grid; justify-items: center; gap: 6px; text-align: center; color: #f2f4f7; animation: intro-in .6s ease both; }
#intro .intro-team b { font-size: clamp(28px, 6vw, 44px); font-weight: 700; letter-spacing: .01em; }
#intro .intro-team-k { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #aab4c0; }
#intro .intro-team span:last-child { font-size: clamp(14px, 2.4vw, 17px); color: #c9d1da; }
#intro button:focus-visible { outline: 3px solid #8fb8ff; outline-offset: 3px; }
#intro [hidden] { display: none; }
@keyframes intro-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { #intro, #intro .intro-video { transition: none; } #intro .intro-start, #intro .intro-team { animation: none; } }

/* Raporda gerçek görevle karşılaştırma (extras.js) */
.real-cmp .real-name { margin: 0 0 4px; }
.real-cmp .real-name a { color: var(--accent); }
.real-cmp .real-fact { margin: 0 0 10px; font-size: 15px; }
.real-scroll { overflow-x: auto; }
table.budget.real-table td, table.budget.real-table td:last-child { text-align: left; font-family: inherit; }
.real-table td:nth-child(2), .real-table td:nth-child(3) { white-space: nowrap; }
@media (max-width: 520px) { .real-table td:nth-child(2), .real-table td:nth-child(3) { white-space: normal; } }

/* Rozetler (extras.js) */
.badges-panel { margin-top: 12px; }
.badges-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.badge { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px dashed var(--line2); border-radius: 10px; }
.badge:not(.got) b { color: var(--muted); font-weight: 600; }
.badge.got { border-style: solid; border-color: var(--line2); background: var(--surface2, transparent); }
.badge.new { border-color: var(--accent); }
.badge .b-mark { font-size: 20px; line-height: 1.2; color: var(--muted); }
.badge.got .b-mark { color: #e8b04a; }
.badge .b-txt { display: grid; gap: 2px; font-size: 15px; }
.badge .b-how { color: var(--muted); font-size: 13px; }
.badge .b-new { justify-self: start; display: inline-block; margin: 2px 0; padding: 0 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink, #fff); font-size: 12px; font-weight: 700; }
.title-badges { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.title-badges span { color: #e8b04a; }
.kbd-hint { font-size: 13px; margin-left: 4px; }
@media (pointer: coarse), (max-width: 720px) { .kbd-hint { display: none; } }

/* uçuşta gök cisimlerinin ad etiketleri (Europa görevi: Jüpiter / Europa) */
.viz-3d-names { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.viz-3d-names[hidden] { display: none; }
.viz-3d-names .nm { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 1.2; color: #eef2f6; background: rgba(5, 8, 13, .72); border: 1px solid rgba(255, 255, 255, .18); padding: 3px 9px; border-radius: 999px; }
