/* gorsel-test.css: the visual test (/GorselTest), TASARIM.md 5.3, 5.4, 7.1-7.3.
   Tokens, base type, buttons and cards come from ktb-temel.css (loaded first). Colour carries meaning only:
   sage marks actions and progress; no level hue (mustard, terracotta, clay, red) appears in the test. */

.gt-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---- Progress bar (5.4): part name, "Bölüm N / 4", within-part fill ---- */
.gt-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

.gt-progress-wrap {
  max-width: 1100px;
  min-height: 56px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.gt-phase-label {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gt-progress-track {
  height: 4px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.gt-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: width var(--t-slow) var(--ease);
}

.gt-progress-count {
  font-size: 14.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .gt-topbar {
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
  }
}

/* ---- Main area ---- */
.gt-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px 40px;
  outline: none;
}

/* Welcome and phase cards: vertically centred, no progress bar. */
.gt-main.gt-main--intro {
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
}

/* ---- Boot ---- */
.gt-boot {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 18vh auto 0;
  color: var(--ink-muted);
  text-align: center;
}
.gt-boot-text { margin: 0; font-size: 15px; }

.gt-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gt-spin 1s linear infinite;
}
@keyframes gt-spin { to { transform: rotate(360deg); } }

/* ---- Resume notice ---- */
/* At the bottom, not over the top bar: it covered the part name and "Bölüm N / 4" (night audit 2026-11-06 r4).
   Taps pass through to the cards below it. */
.gt-toast {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
  left: 16px;
  right: 16px;
  z-index: 50;
  width: fit-content;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--e2);
  transition: opacity 500ms ease;
}
.gt-toast.is-leaving { opacity: 0; }

/* =========================================================================
   WELCOME (7.1)
   ========================================================================= */
.gt-frame {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.gt-welcome { min-width: 0; animation: gt-rise var(--t-slow) var(--ease) both; }

.gt-horizon { display: block; width: 116px; height: 64px; margin: 0 0 22px; }
.gt-horizon .hz-sky { fill: var(--surface-2); }
.gt-horizon .hz-sun { fill: var(--sun); }
.gt-horizon .hz-1 { fill: var(--hill-1); }
.gt-horizon .hz-2 { fill: var(--hill-2); }
.gt-horizon .hz-3 { fill: var(--hill-3); }
.gt-horizon .hz-path { fill: none; stroke: var(--surface); stroke-width: 2; stroke-linecap: round; }

.gt-h1 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.gt-lead {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.gt-lead strong { color: var(--ink); font-weight: 600; }

.gt-steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.gt-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}
.gt-step-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.gt-step-text { min-width: 0; padding-top: 3px; line-height: 1.45; }
.gt-step-label { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.gt-step-desc { font-size: 16px; color: var(--ink-soft); }

.gt-fine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.gt-fine span { display: inline-flex; align-items: center; gap: 6px; }
.gt-fine svg { flex: none; }

.gt-kbd-hint { margin: 10px 0 0; font-size: 14px; color: var(--ink-muted); }

kbd {
  display: inline-block;
  min-width: 24px;
  padding: 1px 6px;
  border: 1px solid var(--line-ui);
  border-bottom-width: 2px;
  border-radius: var(--r-xs);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* Route card: the four parts and the optional pause. */
.gt-route {
  min-width: 0;
  padding: 22px 20px 20px;
  animation: gt-rise var(--t-slow) var(--ease) 80ms both;
}
.gt-route-title { margin: 0 0 4px; font-size: 19px; line-height: 1.3; font-weight: 600; }
.gt-route-sub { margin: 0 0 18px; font-size: 15px; color: var(--ink-muted); }

.gt-parts { list-style: none; margin: 0; padding: 0; }
.gt-part {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 14px;
  padding-bottom: 16px;
}
.gt-part:last-child { padding-bottom: 0; }
.gt-part::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.gt-part:last-child::before { display: none; }
.gt-part-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-ui);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.gt-part:first-child .gt-part-dot {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.gt-part-body { min-width: 0; padding-top: 2px; }
.gt-part-name { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.gt-part-desc { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

.gt-pause {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--sand);
  color: var(--sand-ink);
  font-size: 15px;
  line-height: 1.5;
}
.gt-pause svg { margin-top: 2px; }
.gt-pause strong { display: block; font-weight: 600; }

@media (max-width: 359px) {
  .gt-h1 { font-size: 28px; }
  .gt-lead { font-size: 16.5px; }
}

@media (min-width: 380px) {
  .gt-main.gt-main--intro {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

@media (min-width: 720px) {
  .gt-main.gt-main--intro { padding: 40px 32px; }
  .gt-h1 { font-size: 40px; }
  .gt-horizon { width: 140px; height: 76px; }
  .gt-route { padding: 26px 26px 24px; }
}

@media (min-width: 1024px) {
  .gt-main.gt-main--intro { padding: 48px; }
  .gt-frame {
    max-width: 1080px;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: center;
  }
  .gt-welcome { padding: 8px 0; }
  .gt-lead { font-size: 19px; }
  .gt-steps { gap: 14px; margin-bottom: 32px; }
  .gt-route { padding: 30px 30px 28px; }
}

/* =========================================================================
   PHASE CARDS, BREAK, CLOSING (7.2)
   ========================================================================= */
.gt-phase-wrap { width: 100%; display: flex; justify-content: center; }

.gt-phase-card {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: gt-rise var(--t-slow) var(--ease) both;
}

.gt-phase-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.gt-dots { display: inline-flex; align-items: center; gap: 6px; }
.gt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--line-ui);
}
.gt-dot.is-done { background: var(--accent); border-color: var(--accent); }
.gt-dot.is-current { border: 2px solid var(--accent); background: var(--accent-soft); }

.gt-phase-card .ktb-disc { margin-bottom: 16px; }

.gt-phase-heading {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gt-phase-text {
  margin: 0 0 28px;
  max-width: 38ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.gt-phase-text strong { color: var(--ink); font-weight: 600; }

/* Submitting and error screens share the phase card left edge. */
.gt-card-screen {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  animation: gt-rise var(--t-slow) var(--ease) both;
}
.gt-card-screen .ktb-disc,
.gt-card-screen .gt-spinner { margin-bottom: 18px; }
.gt-title { margin: 0 0 10px; font-size: 24px; line-height: 1.25; font-weight: 600; }
.gt-lead-sm { margin: 0 0 24px; max-width: 40ch; color: var(--ink-soft); }
.gt-submitting .gt-lead-sm { margin-bottom: 0; }

/* =========================================================================
   CHOICE SCREENS (5.3, 7.3)
   ========================================================================= */
.gt-trial {
  max-width: 1000px;
  margin: 0 auto;
  animation: gt-enter var(--t-base) var(--ease) both;
}

.gt-question {
  max-width: 30ch;
  margin: 4px auto 18px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
}

.gt-hint {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--ink-muted);
  text-align: center;
}

/* Image pair */
.gt-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 3vw, 28px);
}

.gt-card {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--e1);
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  transition: opacity var(--t-base) var(--ease), box-shadow var(--t-fast) var(--ease);
}
/* Selection ring drawn above the photo (an inset shadow on the button would sit under it). */
.gt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px transparent;
  pointer-events: none;
  transition: box-shadow var(--t-base) var(--ease);
}
@media (hover: hover) {
  .gt-card:hover:not(:disabled) { box-shadow: var(--e2); }
}
.gt-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gt-card:disabled { cursor: default; }
.gt-card.is-selected::after { box-shadow: inset 0 0 0 3px var(--accent); }
.gt-choices:has(.is-selected) .gt-card:not(.is-selected) { opacity: .55; }

.gt-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.gt-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gt-card-img-fallback::after {
  content: "Görsel yüklenemedi";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--ink-muted);
  font-size: 15px;
}

.gt-check {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.gt-card .gt-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 32px;
  height: 32px;
  transform: scale(.85);
  box-shadow: 0 0 0 2px var(--surface);
}
.gt-card.is-selected .gt-check { opacity: 1; transform: none; }

/* Scene + thought cards */
.gt-pscene {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 0 24px;
  animation: gt-enter var(--t-base) var(--ease) both;
}

.gt-scene {
  margin: 0 0 18px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--e1);
  aspect-ratio: 3 / 2;
}
.gt-scene-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gt-scene-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.gt-scene-fallback::after {
  content: "Sahne yüklenemedi";
  color: var(--ink-muted);
  font-size: 15px;
}

.gt-pquestion {
  max-width: 34ch;
  margin: 0 auto 16px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
}
.gt-pquestion strong { color: var(--accent-ink); font-weight: 600; }

.gt-tcards { display: grid; grid-template-columns: 1fr; gap: 12px; }

.gt-tcard {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 52px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--e1);
  color: var(--ink);
  font: 400 17px/1.45 var(--font-sans);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity var(--t-base) var(--ease),
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
@media (hover: hover) {
  .gt-tcard:hover:not(:disabled) { border-color: var(--line-ui); }
}
.gt-tcard:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gt-tcard:disabled { cursor: default; }
.gt-tcard-text { flex: 1; min-width: 0; }

.gt-tcard .gt-check {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%) scale(.85);
}
.gt-tcard.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}
.gt-tcard.is-selected .gt-check { opacity: 1; transform: translateY(-50%); }
.gt-tcard:disabled:not(.is-selected) { opacity: .55; }

/* ---- Keyboard hints: only on mouse/keyboard devices; phones are crowded enough ---- */
.gt-key,
.gt-kbd-only { display: none; }

@media (hover: hover) and (pointer: fine) {
  .gt-kbd-only { display: block; }

  .gt-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border: 1px solid var(--line-ui);
    border-bottom-width: 2px;
    border-radius: var(--r-xs);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
  }
  .gt-card .gt-key {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
  }
  .gt-tcard .gt-key { margin-right: 14px; }
  .gt-card:disabled .gt-key,
  .gt-tcard:disabled .gt-key { opacity: 0; }
}

@keyframes gt-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes gt-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes gt-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================================
   MOBILE LAYOUT (CLAUDE.md "Mobil yerleşim")
   Criterion: on every choice screen the question and both options are visible without scrolling.
   Heights are derived from dvh (vh fallback first): phone browser bars cut 100-150px off the
   visible area and vh does not see that. Measure at realistic heights (390x664, 320x460).
   ========================================================================= */

@media (max-width: 640px) {
  .gt-main {
    padding: 12px max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .gt-question { font-size: 20px; margin: 2px auto 12px; }
  .gt-card .gt-check { width: 28px; height: 28px; top: 8px; right: 8px; }
  .gt-phase-heading { font-size: 22px; }
}

@media (max-width: 520px) {
  .gt-pquestion { font-size: 19px; }
  .gt-tcard { font-size: 16px; padding: 13px 46px 13px 16px; }
}

/* Narrow screens: the track gets its own row below the part name and the count. */
@media (max-width: 480px) {
  .gt-progress-wrap {
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 8px 0 9px;
  }
  .gt-progress-track { grid-column: 1 / -1; grid-row: 2; }
  .gt-phase-label,
  .gt-progress-count { font-size: 14px; }
}

/* Portrait phone: image pairs stack; their width comes from the height so both pictures fit
   (4:3 kept, never cropped). */
@media (max-width: 640px) and (orientation: portrait) {
  .gt-choices {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }
  .gt-choices .gt-card {
    width: min(100%, calc((100vh - 200px) * 2 / 3));
    width: min(100%, calc((100dvh - 200px) * 2 / 3));
  }
  .gt-trial .gt-hint { margin-top: 12px; font-size: 14px; }
  /* On a short screen the scene shrinks to leave room for the options (ratio kept). */
  .gt-scene {
    width: min(100%, calc(34vh * 1.5));
    width: min(100%, calc(34dvh * 1.5));
    margin-left: auto;
    margin-right: auto;
  }
  .gt-pscene { padding-bottom: 12px; }
  .gt-pscene .gt-scene { margin-bottom: 12px; }
  .gt-pquestion { margin-bottom: 12px; }
  .gt-tcards { gap: 10px; }
}

/* Landscape phone: scene on the left, question and options on the right. */
@media (orientation: landscape) and (max-height: 540px) {
  .gt-progress-wrap { min-height: 44px; }
  .gt-main {
    padding: 8px max(16px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .gt-question { font-size: 18px; margin: 0 auto 8px; max-width: none; }
  .gt-choices {
    grid-template-columns: repeat(2, minmax(0, calc((100vh - 150px) * 4 / 3)));
    grid-template-columns: repeat(2, minmax(0, calc((100dvh - 150px) * 4 / 3)));
    justify-content: center;
    gap: 16px;
  }
  .gt-trial .gt-hint { margin-top: 8px; font-size: 13.5px; }

  .gt-pscene {
    max-width: 1000px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto 1fr;
    column-gap: 20px;
    align-items: center;
  }
  .gt-pscene .gt-scene {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin: 0;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
  }
  .gt-pquestion { grid-column: 2; grid-row: 1; align-self: end; font-size: 17px; margin: 0 0 10px; }
  .gt-tcards { grid-column: 2; grid-row: 2; gap: 8px; }
  .gt-pscene .gt-hint { grid-column: 2; grid-row: 3; align-self: start; margin-top: 8px; font-size: 13.5px; }
  .gt-tcard { min-height: 44px; font-size: 15px; padding: 10px 40px 10px 14px; }
  .gt-tcard .gt-check { width: 22px; height: 22px; right: 10px; }

  .gt-main.gt-main--intro { padding-top: 16px; padding-bottom: 16px; }
  .gt-phase-card { padding: 18px 28px; }
  .gt-phase-meta { margin-bottom: 10px; }
  .gt-phase-card .ktb-disc { display: none; }
  .gt-phase-heading { font-size: 22px; margin-bottom: 8px; }
  .gt-phase-text { margin-bottom: 16px; line-height: 1.55; }
  .gt-phase-card .ktb-btn { min-height: 48px; }
}

/* Short portrait screen (SE with browser bars): the phase card button must not drop below the fold. */
@media (max-height: 700px) and (orientation: portrait) {
  .gt-main.gt-main--intro { padding-top: 16px; padding-bottom: 16px; }
  .gt-phase-card { padding: 24px 20px; }
  .gt-phase-meta { margin-bottom: 14px; }
  .gt-phase-card .ktb-disc { width: 48px; height: 48px; margin-bottom: 12px; }
  .gt-phase-heading { margin-bottom: 8px; }
  .gt-phase-text { margin-bottom: 20px; line-height: 1.55; }
}

@media (max-width: 360px) and (orientation: portrait) {
  .gt-scene {
    width: min(100%, calc(30vh * 1.5));
    width: min(100%, calc(30dvh * 1.5));
  }
}

/* First-generation SE (320x460 visible): scene + two thought cards fit; the welcome start button too. */
@media (max-height: 560px) and (orientation: portrait) {
  .gt-horizon,
  .gt-step-desc { display: none; }
  .gt-h1 { font-size: 26px; margin-bottom: 8px; }
  .gt-lead { font-size: 15.5px; line-height: 1.5; margin-bottom: 12px; }
  .gt-steps { gap: 4px; margin-bottom: 14px; }
  .gt-step { grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; }
  .gt-step-num { width: 26px; height: 26px; font-size: 13px; }
  .gt-step-text { padding-top: 1px; }
  .gt-fine { margin-top: 10px; font-size: 13.5px; }
  .gt-main.gt-main--intro .ktb-btn { min-height: 50px; }
}

/* Decision D2 (2026-11-08): the round-two questions now name their time frame and run to three lines at 320 px;
   a slightly smaller scene and tighter gaps keep the question and all three cards on one 320x460 screen. */
@media (max-height: 520px) and (orientation: portrait) {
  .gt-scene {
    width: min(100%, calc(22vh * 1.5));
    width: min(100%, calc(22dvh * 1.5));
  }
  .gt-pquestion { font-size: 17px; margin-bottom: 8px; }
  .gt-tcard { min-height: 44px; font-size: 15px; padding: 10px 40px 10px 14px; }
  .gt-tcard .gt-check { width: 22px; height: 22px; right: 10px; }
  .gt-tcards { gap: 6px; }
  .gt-hint { display: none; }
}

/* Landscape phones on the welcome: horizon hidden, compact type, start button above the fold;
   two columns from 600px (below that the route card follows under the button). */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 600px) {
  .gt-frame {
    max-width: 1080px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  .gt-main.gt-main--intro { align-items: start; padding: 16px 24px; }
  .gt-horizon { display: none; }
  .gt-h1 { font-size: 26px; margin-bottom: 8px; }
  .gt-lead { font-size: 15.5px; line-height: 1.5; margin-bottom: 12px; }
  .gt-steps { gap: 4px; margin-bottom: 14px; }
  .gt-step { grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; }
  .gt-step-num { width: 26px; height: 26px; font-size: 13px; }
  .gt-step-text { padding-top: 1px; }
  .gt-step-label,
  .gt-step-desc { font-size: 15px; }
  .gt-welcome .ktb-btn { min-height: 50px; width: auto; min-width: 220px; }
  .gt-fine { margin-top: 10px; font-size: 13.5px; }
  .gt-route { padding: 18px; }
}

/* ---- Reduced motion: no transforms, opacity fades of 120ms at most ---- */
@media (prefers-reduced-motion: reduce) {
  .gt-welcome,
  .gt-route,
  .gt-phase-card,
  .gt-card-screen,
  .gt-trial,
  .gt-pscene { animation: gt-fade 120ms linear both; }
  .gt-progress-fill,
  .gt-card,
  .gt-card::after,
  .gt-tcard { transition: none; }
  .gt-check { transition: opacity 120ms linear; }
  .gt-card .gt-check { transform: none; }
  .gt-tcard .gt-check,
  .gt-tcard.is-selected .gt-check { transform: translateY(-50%); }
  .gt-spinner { animation-duration: 2.4s; }
}

/* "Sonunda ne alacaksınız?" + "Yanıtlarınıza ne olur?" inside the route card (night audit 2026-11-06) */
.gt-guven { max-width: 560px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.gt-guven-title { margin: 0 0 4px; font-size: 16px; line-height: 1.35; font-weight: 600; }
.gt-guven p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.gt-guven p:last-child { margin-bottom: 0; }

/* Night audit 2026-11-06, round 3: phase card text of 5-8 lines read ragged when centred on phones; the heading
   stays centred, the text is left-aligned there and wraps without orphans everywhere. */
.gt-phase-text { text-wrap: pretty; }
@media (max-width: 480px) {
  .gt-phase-text { text-align: left; }
}

/* Night audit 2026-11-06, round 5: one alignment rule for the phase, break and closing cards. Their text runs 3-8
   lines, so the whole card reads from one left edge at every width (a centred heading over a left-aligned body
   on phones, a centred body on desktop). The card itself stays centred on the page (TASARIM 7.2). */
.gt-phase-card { align-items: flex-start; text-align: left; }
.gt-phase-text { max-width: none; }

/* Night audit r6: fit the two desktop columns together. Night audit r12 (design minor 5): the information blocks follow
   the route card at every width (no order swap); on desktop they are one inner box under both columns, so the right
   column is the route card alone and balances the left one (TASARIM 7.1, 7/5 grid). */
@media (min-width: 1024px) {
    .gt-main.gt-main--intro { padding-top: 28px; padding-bottom: 28px; }
    .gt-frame { align-items: start; gap: 16px 48px; }
    .gt-welcome { grid-column: 1; grid-row: 1 / span 2; padding-top: 0; }
    .gt-route { grid-column: 2; grid-row: 1; padding: 22px 24px; }
    .gt-guven { grid-column: 2; grid-row: 2; margin-top: 0; }
    .gt-guven p { font-size: 14px; line-height: 1.5; }
}

@media (min-width: 1024px) {
    .gt-frame { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 12px 40px; }
    .gt-route-sub { margin-bottom: 12px; }
    .gt-part { padding-bottom: 10px; }
    .gt-pause { margin-top: 12px; font-size: 14px; }
    .gt-guven p { margin-bottom: 8px; }
    .gt-welcome { grid-row: 1; align-self: center; }
    .gt-guven {
        grid-column: 1 / -1; grid-row: 2; max-width: none; margin-top: 4px;
        display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 0 40px;
        padding: 16px 20px; border-top: 0; border-radius: var(--r-sm); background: var(--surface-2);
    }
    .gt-guven p:last-child { margin-bottom: 0; }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 600px) {
    .gt-guven { grid-column: 1 / -1; max-width: none; }
}
.gt-guven-blok + .gt-guven-blok { margin-top: 14px; }
@media (min-width: 1024px) {
    .gt-guven-blok + .gt-guven-blok { margin-top: 0; }
}
/* The cropped full-height home scene keeps the face in the 3:2 viewing window. */
.gt-scene-img[src*="/HYS/HYS_L3_Home"] { object-position: center top; }

/* Night audit r7: on desktop the image pair ended at y=528 of 900 with an empty lower third and the question wrapped in
   a 1000 px column. The pair is sized from the viewport height (vh fallback first, as on phones) up to 1100 px wide, and
   the choice block sits in the vertical middle. Auto margins, not centring, so a tall block never loses its top. */
@media (min-width: 1024px) and (min-height: 700px) {
  .gt-main:not(.gt-main--intro) { display: flex; flex-direction: column; }
  .gt-main:not(.gt-main--intro) > :is(.gt-trial, .gt-pscene) { margin-top: auto; margin-bottom: auto; }
  .gt-main:not(.gt-main--intro) > .gt-trial { width: 100%; max-width: 1100px; }
  .gt-trial .gt-question { max-width: 46ch; }
  .gt-trial .gt-choices {
    grid-template-columns: repeat(2, minmax(0, calc((100vh - 300px) * 4 / 3)));
    grid-template-columns: repeat(2, minmax(0, calc((100dvh - 300px) * 4 / 3)));
    justify-content: center;
  }
}

/* NIGHT-R8 (2026-11-08): the emphasised time phrase ("şu an, bugünlerde") broke across lines at 844 and 320 px. */
.gt-pquestion strong { white-space: nowrap; }
/* Desktop welcome (TASARIM 7.1): the left column ended at ~590 px while the right cards ran to ~860 px; it now sits
   in the vertical middle of the two right-hand cards. */
@media (min-width: 1024px) {
  .gt-welcome { align-self: center; }
}

/* NIGHT-R9 (2026-11-08): design and quality audit of build danisan-r8. */
/* A hovered card (0,3,0) overrode the keyboard ring (0,2,0) on desktop: a card focused with Tab under the pointer showed
   only the hover shadow. Same specificity, later in the file: the ring wins (TASARIM 5.1). */
@media (hover: hover) {
  .gt-card:focus-visible:not(:disabled),
  .gt-tcard:focus-visible:not(:disabled) { box-shadow: var(--focus-ring); }
}
/* 320x640: the decision-D2 scene question takes four lines and pushed the "İlk izleniminize güvenin" hint past the
   bottom edge. The hint is optional; it goes on short narrow phones (as below 520 px height), the question text stays. */
@media (max-width: 360px) and (max-height: 700px) and (orientation: portrait) {
  .gt-pscene .gt-hint { display: none; }
  .gt-pscene .gt-pquestion { font-size: 18px; line-height: 1.3; }
}
/* Forced-colors mode drops box-shadow; every focus ring here is a box-shadow with outline: none (WCAG 2.4.7). */
@media (forced-colors: active) {
  :focus-visible { outline: 2px solid CanvasText !important; outline-offset: 2px !important; }
}

/* NIGHT-R10 (2026-11-08): small landscape phone (568x320). The scene rule above left the second thought card and the
   hint below the fold. Below 360 px of height the text column gets more width, the hint goes (as on 320x460 portrait)
   and type and gaps tighten; cards keep a 44 px touch height. */
@media (orientation: landscape) and (max-height: 360px) {
  .gt-pscene { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 16px; }
  .gt-pquestion { font-size: 15.5px; line-height: 1.3; margin: 0 0 6px; }
  .gt-tcards { gap: 6px; }
  .gt-tcard { min-height: 44px; font-size: 14px; line-height: 1.35; padding: 8px 36px 8px 12px; }
  .gt-pscene .gt-hint { display: none; }
  .gt-progress-wrap { min-height: 40px; }
}

/* NIGHT-R12 (2026-11-08): the time phrase of the scene question ("şu an, bugünlerde") used the sage action colour
   without an underline, the colour of the buttons and the report links (TASARIM 3.1: sage marks actions and
   navigation), so it read as something to tap. Emphasis by weight in body ink; the text is unchanged (D2). */
.gt-pquestion strong { color: var(--ink); font-weight: 700; }

/* Consent before the test (launch 2026-11-27): a quiet bordered block above the start button; the box is unticked. */
.gt-riza {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.gt-riza-title { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.gt-riza p { margin: 0 0 10px; }
.gt-riza ul { margin: 0 0 10px; padding-left: 20px; }
.gt-riza li { margin: 0 0 4px; }
.gt-riza a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.gt-riza-kutu {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.gt-riza-kutu input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.gt-riza-kutu input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gt-riza-uyari { margin: 10px 0 0; font-weight: 600; color: var(--ink); }
.gt-riza-uyari[hidden] { display: none; }
