/* Duyarlı tasarım: tablet ve telefon (375 px dahil). */
@media (max-width: 1100px) {
  .cases { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .timeline__base, .timeline__fill { display: none; }
  .step:nth-child(2)::after { display: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .emo-grid { grid-template-columns: repeat(6, 1fr); }
  .game__main { grid-template-columns: 250px 1fr; }
  .game__body { padding: 24px 26px 32px; }
  .stepper button { font-size: 0; gap: 0; padding: 4px; }
  .stepper span { font-size: 15px; }
  .stepper .is-now button { font-size: 15px; gap: 8px; padding-right: 12px; }
  .report__grid { grid-template-columns: 1fr 1fr; }
  .report__grid .rcard--msg { grid-column: 1 / -1; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats__grid { grid-template-columns: 1fr; }
  .room-top { grid-template-columns: auto 1fr; }
  .round-banner { grid-template-columns: 1fr auto; }
  .round-banner__ctl { grid-column: 1 / -1; justify-items: stretch; }
  .end-confirm { justify-items: stretch; max-width: none; text-align: left; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --wrap: calc(100% - 32px); --top-h: 64px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 20px 22px 30px; border-radius: 28px; --mist-x: 50%; --mist-y: 22%; }
  .hero::after { display: none; }
  .hero__copy { justify-items: center; text-align: center; order: 2; }
  .hero__lead { margin: 0 auto; }
  .hero__actions, .hero__facts { justify-content: center; }
  .hero__stage { height: 340px; order: 1; }
  .hero__halo { width: 270px; height: 270px; }
  .hero__mascot svg { width: 230px; }
  .float-card__in { padding: 8px 10px 6px; font-size: 12px; }
  .float-card__in svg { width: 36px; height: 36px; }
  .quick__grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .proj-grid, .folds, .doors, .chains, .sum-notes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .rule { flex-wrap: wrap; }
  .rule .btn { margin-left: 0; }
  .sol-cols { grid-template-columns: 1fr; }
  .clues ul { grid-template-columns: 1fr; }
  .clues li { min-height: 0; }

  /* Vaka penceresi telefonda tam ekran */
  .game { padding: 0; }
  .game__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .game__main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dossier { overflow: visible; border-right: 0; border-bottom: 2px solid var(--line); }
  .dossier__art, .dossier__body > .mini-label, .dossier__cast, .evidence { display: none; }
  .dossier__body { padding: 8px 16px; display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
  .dossier__title { font-size: 20px; margin: 0; }
  .dossier__theme { font-size: 12px; order: 2; }
  .dossier__place { display: none; }
  .game__body { padding: 18px 16px 28px; }
  .game__top { padding: 8px 10px 8px 14px; gap: 8px; }
  .game__brand { display: none; }
  .stepper { justify-content: flex-start; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
  .stepper li { gap: 2px; }
  .stepper li + li::before { width: 6px; }
  .stepper span { width: 26px; height: 26px; font-size: 13px; }
  .stepper .is-now button { font-size: 14px; gap: 6px; padding-right: 10px; }
  .game__foot { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .game__foot .game__warn { order: -1; flex-basis: 100%; }
  .game__foot .game__warn:empty { display: none; }
  .game__foot .btn { flex: 1; min-width: 0; padding-left: 14px; padding-right: 14px; }
  .game__foot .btn--fire { margin-left: 0; }
  .stage-head__n { width: 48px; height: 48px; font-size: 22px; border-radius: 16px; }
  .stage-head h3 { font-size: 26px; }
  .scene { padding: 22px 18px 18px; }
  .scene__story { font-size: 18px; }
  .emo-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .report__head { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px 16px; }
  .report__intro { justify-items: center; }
  .gauge { width: 190px; height: 190px; }
  .gauge__val b { font-size: 56px; }
  .cats { grid-template-columns: 1fr 1fr; text-align: left; }
  .report__grid { grid-template-columns: 1fr; }
  .char-notes li { grid-template-columns: 1fr; gap: 0; }

  #app { width: calc(100% - 24px); padding-top: 14px; }
  .join { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 10px 0 20px; }
  .join__hero { justify-items: center; text-align: center; }
  .join__mascot { width: 120px; height: 120px; }
  .join__mascot svg { width: 110px; height: auto; margin-top: 20px; }
  .lobby, .review-grid, .room-grid, .room-grid--wide { grid-template-columns: 1fr; }
  .review-grid__lb { position: static; order: -1; }
  .host-hero { grid-template-columns: 1fr; }
  .room-top { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .room-top__join div { justify-content: center; }
  .host-bar { top: 6px; }
  .host-bar__brand span { display: none; }
  .host-bar__right { margin-left: auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  main#icerik { padding: 22px 0 40px; }
  .burger__txt { display: none; }
  .burger { padding: 0; width: 48px; justify-content: center; }
  .brand__name { font-size: 18px; }
  .brand__logo { width: 38px; height: 38px; }
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar__cta { padding: 7px 12px; }
  .menu { left: 8px; width: calc(100% - 16px); top: calc(var(--top-h) - 4px); border-radius: 22px; padding: 14px; }
  .view-head { margin-bottom: 22px; }
  .view-head__sub { font-size: 17px; }
  .hero__title { font-size: 54px; }
  .hero__lead { font-size: 18px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stage { height: 300px; }
  .hero__halo { width: 220px; height: 220px; }
  .hero { padding: 12px 16px 24px; margin: 0 -4px; }
  .hero__spark { left: 22%; }
  .hero__facts { gap: 12px; font-size: 15px; }
  .hero__mascot svg { width: 200px; }
  .float-card.f1 { left: 2%; top: 2%; }
  .float-card.f2 { right: 2%; }
  .float-card.f3 { left: 0; bottom: 10%; }
  .float-card.f4 { right: 0; bottom: 14%; }
  .cases { grid-template-columns: 1fr; gap: 14px; }
  .case { flex-direction: row; margin-top: 18px; }
  .case__art { width: 96px; height: auto; flex: none; border-radius: 6px 0 0 20px; }
  .case__glyph { width: 60px; height: 60px; }
  .case__glyph svg { width: 34px; height: 34px; }
  .case .stamp { left: 4px; right: auto; top: auto; bottom: 6px; font-size: 10px; padding: 2px 5px; }
  .case__teaser { font-size: 14px; }
  .archive-count { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -2px; scrollbar-width: none; width: 100%; }
  .chip { flex: none; }
  .steps, .team, .flow, .facts { grid-template-columns: 1fr; }
  .step::after { display: none; }
  /* dikey zaman çizelgesi: soldaki ray kaydırdıkça dolar */
  .timeline { padding-left: 26px; }
  .timeline__base, .timeline__fill { display: block; left: 8px; right: auto; top: 24px; bottom: 60px; width: 5px; height: auto; }
  .timeline__fill { transform-origin: top; transform: scaleY(var(--tl)); transition: transform .12s linear; }
  .step__n { left: -36px; top: 14px; width: 34px; height: 34px; font-size: 18px; }
  .step { padding: 16px; }
  .step__visual { height: auto; min-height: 96px; }
  .team { gap: 14px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .shot.wide { grid-column: span 2; }
  .shot.tall { grid-row: auto; }
  .bars { gap: 12px; height: 190px; }
  .bar { flex-basis: 70px; }
  .bars__delta b { font-size: 30px; }
  .bars__delta { padding: 10px 12px; }
  .door { padding: 22px; }
  .door b { font-size: 26px; }
  .footer__in { justify-content: center; text-align: center; }

  .emo-grid { grid-template-columns: repeat(3, 1fr); }
  .emo svg { width: 44px; height: 44px; }
  .char-tabs button { flex-basis: 100%; }
  .qcard { padding: 16px; }
  .q label { font-size: 17px; }
  .chain__row { grid-template-columns: 1fr; gap: 2px; }
  .mp-timer b { font-size: 20px; }
  .mp-timer small { display: none; }
  .mp-timer.is-wide b { font-size: 34px; }
  .confirm__btns .btn { flex: 1; }

  .avatars__grid { grid-template-columns: repeat(4, 1fr); }
  .join__card { padding: 20px 16px; }
  .code-input { font-size: 24px !important; letter-spacing: .2em; }
  .mp-head { padding: 12px; gap: 10px; }
  .mp-head__title { order: 3; flex-basis: 100%; }
  .mp-head__title h1 { font-size: 24px; }
  .mp-head .btn { margin-left: auto; }
  .lobby__code b { font-size: 30px; }
  .lb { padding: 14px 10px; }
  .lb__row { grid-template-columns: 32px 36px 1fr auto; gap: 8px; padding: 8px; }
  .lb__row:not(:has(.lb__delta)) { grid-template-columns: 32px 36px 1fr auto; }
  .lb__row .lb__delta { display: none; }
  .lb__rounds { display: none; }
  .lb__rank { width: 30px; height: 30px; font-size: 15px; }
  .lb__row .av { width: 36px !important; height: 36px !important; }
  .lb__row .av svg { width: 30px; height: 30px; }
  .podium { gap: 6px; }
  .podium__who b { font-size: 15px; }
  .podium__pts strong { font-size: 20px; }
  .first .podium__block { height: 110px; }
  .second .podium__block { height: 80px; }
  .third .podium__block { height: 60px; }
  .podium__who .av { width: 56px !important; height: 56px !important; }
  .podium__who .av svg { width: 48px; height: 48px; }
  .card { padding: 18px 14px; }
  .host-bar nav button { padding: 7px 10px; font-size: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .hbar { grid-template-columns: 1fr auto; }
  .hbar__t { grid-column: 1 / -1; grid-row: 2; }
  .srcs { grid-template-columns: 1fr; }
  .round-banner { grid-template-columns: 1fr; text-align: center; }
  .round-banner .mp-timer { justify-self: center; }
  .extend { justify-content: center; }
  .tbl__actions { white-space: normal; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 16px; }
  .topbar__cta span { display: none; }
  .topbar__cta { width: 44px; padding: 0; }
  .hero__title { font-size: 48px; }
  .emo { font-size: 12.5px; }
  .avatars__grid { grid-template-columns: repeat(3, 1fr); }
}
