/* ==========================================================================
   TABU — sayfa stilleri
   Ekranlar: kurulum · sıra girişi · oyun · sıra özeti · final
   Ortak bileşenler (düğme, çip, halka, skor tablosu, takım editörü) shared/css içinde.
   ========================================================================== */

body.tabu {
  --topbar-h: 68px;
}

[hidden] {
  display: none !important;
}

/* sahne ışığı: tepeden süzülen ışık */
body.tabu::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 42% at 50% -4%, rgba(255, 238, 190, 0.17), transparent 72%),
    radial-gradient(26% 64% at 50% 0, rgba(255, 238, 190, 0.06), transparent 70%);
}

.tb {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), 1180px);
}

/* ---------- çip varyantları ---------- */
.chip b {
  color: #fff;
  font-weight: 800;
}

.chip--good {
  color: #c8eaa6;
  border-color: rgba(121, 181, 81, 0.55);
  background: rgba(121, 181, 81, 0.14);
}

.chip--amber {
  color: var(--gold-300);
  border-color: rgba(235, 203, 126, 0.45);
  background: rgba(217, 177, 90, 0.12);
}

.chip--bad {
  color: #ffb3b8;
  border-color: rgba(224, 80, 90, 0.55);
  background: rgba(224, 80, 90, 0.14);
}

.chip__n {
  margin-left: 0.1rem;
  padding: 0.06rem 0.45rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.3);
  font: 800 0.7rem/1.3 var(--font-ui);
  color: var(--text-dim);
}

button.chip[aria-pressed='true'] .chip__n {
  background: rgba(43, 29, 6, 0.35);
  color: var(--gold-200);
}

/* ==========================================================================
   1) KURULUM
   ========================================================================== */
.resume {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: var(--r-l);
  background: linear-gradient(120deg, rgba(235, 203, 126, 0.14), rgba(255, 255, 255, 0.03));
  animation: th-fade-up 0.6s var(--ease-out) both;
}

.resume__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color: #2b1d06;
}

.resume__txt {
  flex: 1;
  min-width: 220px;
  display: grid;
  gap: 0.15rem;
}

.resume__txt span {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.resume__act {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(0.4rem, 3vw, 2rem) 0 clamp(1.6rem, 4vw, 3rem);
}

.tb-hero__copy {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.tb-hero h1 {
  font-size: clamp(3.8rem, 11vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: 0.07em;
  filter: drop-shadow(0 12px 40px rgba(217, 177, 90, 0.35));
}

.tb-hero__lead {
  max-width: 24ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--text-dim);
  text-wrap: balance;
}

.tb-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tb-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.tb-sample {
  justify-self: center;
  width: min(100%, 330px);
  aspect-ratio: 5 / 6.3;
  perspective: 1200px;
  rotate: 3.5deg;
  animation: th-float 7s ease-in-out infinite;
  --r: 0deg;
}

.tb-sample .tcard {
  position: absolute;
  inset: 0;
}

.tb-sample {
  position: relative;
}

.tb-step {
  margin-top: 1.1rem;
  animation: th-fade-up 0.65s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.tb-step__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.tb-step__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tb-step__head p {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  text-wrap: pretty;
}

.tb-step__head .step-num {
  flex: none;
  margin-top: 0.1rem;
}

.tb-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.tb-row .tb-step {
  margin-top: 0;
}

.tb-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.6rem;
}

.tb-field {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.tb-field__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 1.4rem;
}

.tb-field__top .label {
  margin: 0;
}

.tb-field__hint {
  font: 600 0.78rem/1.3 var(--font-ui);
  color: var(--text-mute);
}

.tb-field + .tb-field {
  margin-top: 0;
}

/* alan içindeki bileşenler tüm genişliğe gerilmesin */
.tb-field > .stepper,
.tb-field > .seg {
  justify-self: start;
  max-width: 100%;
}

.tb-field--wide {
  grid-column: 1 / -1;
}

/* pas hakkı gibi tek satırda sığması gereken seçiciler */
.tb-field > .seg--fill {
  display: flex;
  flex-wrap: nowrap;
  justify-self: stretch;
  width: 100%;
}

.seg--fill .seg__opt {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0.2rem;
}

/* seçili / seçili değil durumu net okunsun */
.tb-step button.chip[aria-pressed='true'] {
  background: linear-gradient(180deg, rgba(235, 203, 126, 0.42), rgba(217, 177, 90, 0.24));
  border-color: rgba(247, 222, 156, 0.85);
  color: #fff3cf;
  box-shadow: 0 8px 18px -10px rgba(217, 177, 90, 0.9);
}

.tb-step button.chip[aria-pressed='false'] {
  background: transparent;
  border-style: dashed;
  opacity: 0.62;
}

.tb-step button.chip[aria-pressed='false']:hover {
  opacity: 0.95;
}

.tb-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.tb-presets .chip {
  justify-content: center;
  padding-inline: 0.6rem;
  white-space: nowrap;
}

.tb-step > .tb-field + .tb-field {
  margin-top: 1.4rem;
}

.tb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.tb-legend .chip {
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

.tb-toggles {
  display: grid;
  gap: 1rem;
}

.tb-hint {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  text-wrap: pretty;
}

.tb-hint strong {
  color: var(--gold-300);
}

.tb-hint .warn {
  color: var(--coral-300);
}

.setup .dock {
  margin-top: 1.4rem;
}

.dock__sum {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dock__sum .chip {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   KART — hem kurulumda örnek hem oyunda ana bileşen
   ========================================================================== */
.tcard {
  /* kartın hem genişliği (cqw) hem yüksekliği (cqh) yazı boyutunu belirler */
  container-type: size;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  padding: clamp(0.7rem, 2.2vh, 1.15rem) clamp(0.9rem, 3vw, 1.5rem) clamp(0.8rem, 2.4vh, 1.4rem);
  border-radius: 26px;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% 0, rgba(255, 255, 255, 0.95), transparent 62%),
    linear-gradient(180deg, #fffaf3 0%, #f6efe8 55%, #e9ddd2 100%);
  border: 2px solid var(--gold-500);
  box-shadow:
    0 0 0 5px rgba(19, 15, 73, 0.92),
    0 0 0 6.5px rgba(235, 203, 126, 0.55),
    0 34px 70px -26px rgba(0, 0, 0, 0.9),
    0 0 90px -28px rgba(235, 203, 126, 0.5);
  isolation: isolate;
  overflow: hidden;
  backface-visibility: hidden;
}

.tcard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  mix-blend-mode: multiply;
  opacity: 0.22;
  pointer-events: none;
}

.tcard::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 19px;
  border: 1px solid rgba(184, 144, 61, 0.38);
  pointer-events: none;
}

.tcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(0.25rem, 1.6cqh, 0.6rem);
  font: 800 0.7rem/1 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tcard__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tcard__cat .ico {
  width: 1.15em;
  height: 1.15em;
  color: var(--coral-600);
}

.tcard__lvl {
  display: inline-flex;
  gap: 0.34rem;
}

.tcard__lvl i {
  width: 0.62rem;
  height: 0.62rem;
  rotate: 45deg;
  border: 1.5px solid var(--gold-600);
  background: transparent;
}

.tcard__lvl i.on {
  background: var(--gold-500);
  box-shadow: 0 0 8px rgba(217, 177, 90, 0.85);
}

.tcard[data-lvl='1'] .tcard__lvl i.on {
  border-color: #4f8c2f;
  background: #79b551;
  box-shadow: 0 0 8px rgba(121, 181, 81, 0.8);
}

.tcard[data-lvl='3'] .tcard__lvl i.on {
  border-color: var(--coral-700);
  background: var(--coral-500);
  box-shadow: 0 0 8px rgba(227, 114, 92, 0.8);
}

.tcard__word {
  display: grid;
  place-items: center;
  min-height: clamp(52px, 19cqh, 150px);
  padding: clamp(0.35rem, 3cqh, 1.4rem) 0.9rem;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500) 58%, var(--gold-600));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 8px rgba(143, 108, 38, 0.35),
    0 12px 24px -14px rgba(143, 108, 38, 0.9);
}

.tcard__word span {
  font: 800 clamp(1.5rem, 7vw, 3rem) / 1.06 var(--font-display);
  font-size: clamp(1.25rem, min(calc(98cqw / var(--w, 8)), 11cqh), 3.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #20140a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.tcard__say {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: clamp(0.3rem, 2.4cqh, 1.1rem) 0 clamp(0.1rem, 1cqh, 0.4rem);
  font: 800 0.66rem/1 var(--font-ui);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #b32636;
}

.tcard__say::before,
.tcard__say::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179, 38, 54, 0.55));
}

.tcard__say::after {
  transform: scaleX(-1);
}

.tcard__ban {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  min-height: 0;
}

.tcard__ban li {
  display: flex;
  align-items: center;
  gap: 0.85em;
  min-height: 0;
  border-bottom: 1px dashed rgba(26, 18, 51, 0.2);
  font: 800 clamp(0.9rem, 4.6vw, 1.5rem) / 1.1 var(--font-ui);
  font-size: clamp(0.78rem, min(calc(70cqw / var(--bw, 9)), 5.4cqh), 1.7rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #281d44;
}

.tcard__ban li:last-child {
  border-bottom: 0;
}

.tcard__ban li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tcard__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ff9aa1, #e0505a 55%, #b32636);
  color: #fff;
  box-shadow: 0 3px 8px -2px rgba(179, 38, 54, 0.7);
}

.tcard__x .ico {
  width: 0.82em;
  height: 0.82em;
  stroke-width: 3.2;
}

.tcard--ghost {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   2) SIRA GİRİŞİ
   ========================================================================== */
/* sıra girişinde üst boşluğu kıs: ana düğmeler kaydırmadan görünsün */
body[data-screen='intro'] .tb {
  padding-top: clamp(0.3rem, 1.6vh, 1.2rem);
  padding-bottom: 1.6rem;
}

.intro {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(0.25rem, 0.9vh, 0.6rem);
  padding: clamp(0.2rem, 1.4vh, 1.4rem) 0 1.4rem;
  text-align: center;
}

.intro::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  z-index: -1;
  width: min(820px, 130vw);
  height: 640px;
  translate: -50% 0;
  background: radial-gradient(50% 52% at 50% 32%, color-mix(in srgb, var(--c) 30%, transparent), transparent 72%);
  pointer-events: none;
  animation: th-breathe 5s ease-in-out infinite;
}

.intro__medal {
  width: clamp(60px, 11.5vh, 96px);
  height: clamp(60px, 11.5vh, 96px);
  font-size: clamp(1.4rem, 3.6vh, 2.3rem);
  margin: clamp(0.7rem, 2.4vh, 1.4rem) 0 clamp(0.6rem, 2vh, 1.2rem);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--c) 18%, transparent),
    0 0 0 17px color-mix(in srgb, var(--c) 8%, transparent),
    0 24px 60px -16px var(--c);
  animation: tb-medal 0.9s var(--ease-spring) both;
}

.intro__label {
  margin-top: clamp(0.2rem, 0.9vh, 0.6rem);
  font: 800 0.72rem/1 var(--font-ui);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.intro__team {
  max-width: 100%;
  font-size: clamp(2.2rem, min(8.4vw, 10.5vh), 5rem);
  color: var(--c);
  text-shadow: 0 0 44px color-mix(in srgb, var(--c) 55%, transparent);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.intro__who {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.5rem;
}

.intro__who span {
  font: 800 0.72rem/1 var(--font-ui);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.intro__who b {
  font-size: clamp(1.8rem, min(6vw, 6.6vh), 3.4rem);
  line-height: 1.1;
  color: var(--cream-50);
  overflow-wrap: anywhere;
}

.intro__ref {
  color: var(--text-dim);
}

.intro__rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.intro__tip {
  max-width: 46ch;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-mute);
  text-wrap: balance;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: clamp(0.4rem, 1.4vh, 0.9rem);
}

.intro__board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(0.8rem, 2.4vh, 1.8rem);
}

.ib {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.95rem 0.32rem 0.35rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
}

.ib .medal {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.ib.is-now {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 20%, transparent);
  box-shadow: 0 0 0 1px var(--c) inset;
}

.ib__s {
  font: 800 1rem/1 var(--font-display);
  color: var(--gold-300);
}

/* geri sayım */
.cd {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 50%, rgba(10, 9, 41, 0.78), rgba(4, 3, 20, 0.95));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: th-fade 0.25s ease both;
}

.cd__glow {
  position: absolute;
  width: min(70vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(235, 203, 126, 0.35), transparent);
  animation: th-breathe 1.4s ease-in-out infinite;
}

.cd__n {
  position: relative;
  font: 800 clamp(7rem, 30vw, 15rem) / 1 var(--font-display);
  background: linear-gradient(180deg, #fff6d9, var(--gold-400) 45%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(217, 177, 90, 0.5));
}

.cd__n.is-go {
  font-size: clamp(3.4rem, 15vw, 8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   3) OYUN EKRANI
   ========================================================================== */
body[data-screen='play'] .tb {
  padding-block: 0.7rem;
  width: min(100% - 1.4rem, 1180px);
}

/* oyun sırasında bildirimler ne kartı ne de alttaki Doğru / Pas / Tabu düğmelerini örtsün:
   üst çubuğun ortasına (marka alanına) oturur */
body[data-screen='play'] .toasts {
  bottom: auto;
  top: calc(var(--topbar-h, 64px) / 2 - 1.35rem);
}

body[data-screen='play'] .toast:not(:last-child) {
  display: none;
}

/* özet ekranında alttaki "Sıradaki sıra" çubuğunun üstünde dursun */
body[data-screen='summary'] .toasts {
  bottom: calc(6.6rem + env(safe-area-inset-bottom, 0px));
}

.play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(1rem, 2.4vw, 2rem);
  height: calc(100dvh - var(--topbar-h) - 1.4rem);
  min-height: 500px;
}

.play__main {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  max-width: 780px;
  min-height: 0;
  margin-inline: auto;
}

.play__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  container-type: size;
  container-name: stage;
}

/* kısa ekranlarda duraklatma / süre doldu katmanları sıkışmasın */
@container stage (max-height: 330px) {
  .pause,
  .timeup {
    padding: 0.8rem;
  }
  .pause__in {
    gap: 0.5rem;
  }
  .pause__ico {
    width: 46px;
    height: 46px;
  }
  .pause__ico .ico {
    width: 22px;
    height: 22px;
  }
  .pause h3 {
    font-size: 1.4rem;
  }
  .pause__in p {
    display: none;
  }
}

.play__stage > .tcard {
  position: absolute;
  inset: 0;
}

.play__stage.is-paused > .tcard {
  filter: blur(28px);
}

.acts {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 0.8rem;
  transition:
    opacity 0.3s,
    filter 0.3s;
}

/* duraklatılmışken cevap düğmeleri pasif görünsün */
.play__main:has(.is-paused) .acts {
  opacity: 0.38;
  filter: saturate(0.4);
  pointer-events: none;
}

.act {
  min-height: clamp(60px, 11vh, 84px);
  padding-inline: 0.8rem;
  font-size: clamp(1rem, 1rem + 0.3vw, 1.2rem);
}

.act .ico {
  width: 1.5em;
  height: 1.5em;
  stroke-width: 2.4;
}

.act__k {
  margin-left: 0.15rem;
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.16);
  color: inherit;
  opacity: 0.75;
}

.act__n {
  position: absolute;
  top: 7px;
  right: 9px;
  display: grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.3rem;
  border-radius: 99px;
  background: var(--night-800);
  color: var(--gold-200);
  font: 800 0.82rem/1 var(--font-ui);
}

.hud {
  --c: var(--gold-500);
  display: grid;
  align-content: start;
  gap: 1.1rem;
  padding: 1.2rem;
  border-radius: var(--r-xl);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 16%, transparent), rgba(255, 255, 255, 0.03) 60%);
  box-shadow: var(--shadow-1);
}

.hud__team {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hud__team > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.hud__tname {
  overflow: hidden;
  font: 800 1.25rem/1.1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  color: var(--c);
}

.hud__player {
  font: 700 0.92rem/1.2 var(--font-ui);
}

.hud__ref {
  font-size: 0.78rem;
  color: var(--text-mute);
}

.hud__ref i {
  font-style: normal;
  font-weight: 800;
}

.hud__ring {
  display: grid;
  place-items: center;
  padding: 0.2rem 0;
}

.hud .ring {
  --size: clamp(150px, 24vh, 210px);
}

.tb .ring__bar {
  transition:
    stroke 0.35s,
    stroke-dashoffset 0.24s linear;
}

.hud__meta {
  display: grid;
  gap: 1rem;
}

.hud__score {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.hud__score .label {
  margin: 0;
}

.hud__pts {
  font: 800 3.2rem/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

[data-sign='pos'] {
  color: #b6e08b;
}

[data-sign='neg'] {
  color: #f58a90;
}

.fpts {
  position: absolute;
  top: 18px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  font: 800 1.7rem/1 var(--font-display);
  pointer-events: none;
}

.fpts.is-up {
  color: #b6e08b;
  text-shadow: 0 0 18px rgba(121, 181, 81, 0.8);
}

.fpts.is-down {
  color: #f58a90;
  text-shadow: 0 0 18px rgba(224, 80, 90, 0.8);
}

.hud__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat {
  padding: 0.5rem 0.3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.stat b {
  display: block;
  font: 800 1.4rem/1.1 var(--font-display);
}

.stat span {
  font: 700 0.68rem/1 var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.stat--ok b {
  color: #b6e08b;
}

.stat--bad b {
  color: #f58a90;
}

.stat--pass b {
  color: var(--gold-300);
}

.hud__tools {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

/* duraklatma ve süre doldu katmanları */
.pause,
.timeup {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  padding: 1.5rem;
  border-radius: 26px;
  text-align: center;
}

.pause {
  background: rgba(8, 7, 36, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(235, 203, 126, 0.35);
}

.is-paused .pause {
  display: grid;
  animation: th-fade 0.25s ease both;
}

.pause__in {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-width: 34ch;
}

.pause__ico {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600));
  color: #2b1d06;
}

.pause__ico .ico {
  width: 34px;
  height: 34px;
}

.pause h3 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.timeup {
  z-index: 6;
  background: radial-gradient(70% 70% at 50% 50%, rgba(224, 80, 90, 0.4), rgba(8, 7, 36, 0.93));
  border: 1px solid rgba(224, 80, 90, 0.6);
}

.timeup.is-on {
  display: grid;
  animation: tb-timeup 0.5s var(--ease-spring) both;
}

.timeup__in {
  display: grid;
  gap: 0.6rem;
}

.timeup .display {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  color: #ffd2d6;
}

.timeup small {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ekran kenarı parlaması */
.flash {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0;
}

.flash--good {
  background: radial-gradient(closest-side at 50% 50%, transparent 52%, rgba(121, 181, 81, 0.5));
}

.flash--bad {
  background: radial-gradient(closest-side at 50% 50%, transparent 46%, rgba(224, 80, 90, 0.65));
}

.flash--pass {
  background: radial-gradient(closest-side at 50% 50%, transparent 58%, rgba(217, 177, 90, 0.38));
}

/* ==========================================================================
   4) SIRA ÖZETİ
   ========================================================================== */
.sum {
  --c: var(--gold-500);
  display: grid;
  gap: 1.4rem;
}

.sum__head {
  display: grid;
  grid-template-columns: auto minmax(min(100%, 17rem), 1fr) minmax(0, max-content);
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-radius: var(--r-xl);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(255, 255, 255, 0.03) 60%);
}

.sum__title {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.sum__title h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--c);
  overflow-wrap: break-word;
}

.sum__pts {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
  text-align: right;
}

.sum__pts .label {
  margin: 0;
}

.sum__pts-n {
  font: 800 clamp(3.2rem, 8vw, 4.8rem) / 1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.sum__counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.sum__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1.4rem;
  align-items: start;
}

.sum__left {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.sum__right {
  position: sticky;
  top: calc(var(--topbar-h) + 1rem);
  display: grid;
  gap: 0.9rem;
}

.sum__bt,
.sum__listhead h3 {
  font: 800 0.74rem/1 var(--font-ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.sum__listhead {
  display: grid;
  gap: 0.4rem;
}

.sum__listhead p {
  font-size: 0.9rem;
}

.learn {
  padding: 1.3rem 1.5rem;
  border-radius: var(--r-l);
  border: 1px solid rgba(235, 203, 126, 0.4);
  background: linear-gradient(135deg, rgba(235, 203, 126, 0.17), rgba(255, 255, 255, 0.03));
  animation: th-fade-up 0.7s var(--ease-out) 0.3s both;
}

.learn__k {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 800 0.72rem/1.3 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.learn h3 {
  margin: 0.6rem 0 0.35rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  overflow-wrap: anywhere;
}

.learn p {
  font-size: 1.04rem;
  color: var(--text-dim);
  text-wrap: pretty;
}

.sum__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.srow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.4rem 0.9rem;
  padding: 0.6rem 0.7rem 0.6rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.3s,
    background 0.3s;
}

.srow[data-st='correct'] {
  border-color: rgba(121, 181, 81, 0.5);
  background: rgba(121, 181, 81, 0.09);
}

.srow[data-st='taboo'] {
  border-color: rgba(224, 80, 90, 0.55);
  background: rgba(224, 80, 90, 0.1);
}

.srow[data-st='pass'] {
  border-color: rgba(217, 177, 90, 0.5);
  background: rgba(217, 177, 90, 0.08);
}

.srow[data-st='time'] {
  border-style: dashed;
}

.srow__w {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.srow__w b {
  font: 800 1.05rem/1.2 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.srow__w small {
  font: 600 0.78rem/1.2 var(--font-ui);
  color: var(--text-mute);
}

.srow__pts {
  min-width: 2.4ch;
  text-align: right;
  font: 800 1.05rem/1 var(--font-display);
  color: var(--text-dim);
}

.srow[data-st='correct'] .srow__pts {
  color: #b6e08b;
}

.srow[data-st='taboo'] .srow__pts {
  color: #f58a90;
}

.sst {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(8, 7, 36, 0.55);
}

.sst__b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.2s var(--ease-spring);
}

.sst__b:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.sst__b:active {
  transform: scale(0.88);
}

.sst__b[aria-pressed='true'].sst__b--correct {
  background: linear-gradient(180deg, #b6e08b, #79b551);
  color: #0d2406;
}

.sst__b[aria-pressed='true'].sst__b--pass {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: #2b1d06;
}

.sst__b[aria-pressed='true'].sst__b--taboo {
  background: linear-gradient(180deg, #f58a90, var(--crimson));
  color: #fff;
}

.srow__more {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s;
}

.srow__more:hover {
  background: rgba(255, 255, 255, 0.14);
}

.srow__more .ico {
  transition: transform 0.3s var(--ease-out);
}

.srow__more[aria-expanded='true'] .ico {
  transform: rotate(180deg);
}

.srow__note {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--text-dim);
  font-size: 0.97rem;
  text-wrap: pretty;
  animation: th-fade-up 0.35s var(--ease-out) both;
}

.srow__ban {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.srow__ban span {
  margin-right: 0.2rem;
  font: 800 0.68rem/1 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.srow__ban i {
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  border: 1px solid rgba(224, 80, 90, 0.45);
  background: rgba(224, 80, 90, 0.12);
  font: 700 0.78rem/1.2 var(--font-ui);
  font-style: normal;
  color: #ffc4c8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sum > .dock {
  margin-top: 0.4rem;
}

.dock .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

/* ==========================================================================
   5) FİNAL
   ========================================================================== */
.fin {
  display: grid;
  gap: 1.9rem;
  padding-bottom: 1rem;
}

.fin__head {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  text-align: center;
}

.fin__head h2 {
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  filter: drop-shadow(0 12px 40px rgba(217, 177, 90, 0.35));
}

.fin__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  color: var(--text-dim);
}

.fin__head .tb-hero__chips {
  justify-content: center;
}

.fin__tie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r-l);
}

.fin__tie b {
  font: 800 1.2rem var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.3rem);
  height: clamp(310px, 46vh, 430px);
  padding-top: 0.6rem;
}

.pod {
  --c: var(--gold-500);
  display: flex;
  flex: 0 1 clamp(100px, 24%, 210px);
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.pod__who {
  display: grid;
  justify-items: center;
  gap: 0.32rem;
  margin-bottom: 0.9rem;
  text-align: center;
  animation: th-fade-up 0.8s var(--ease-out) both;
  animation-delay: calc(var(--d) + 600ms);
}

.pod__crown {
  color: var(--gold-300);
  filter: drop-shadow(0 0 14px var(--gold-500));
  animation: th-float 3s ease-in-out infinite;
  --r: 0deg;
}

.pod__crown .ico {
  width: 38px;
  height: 38px;
}

.pod__name {
  max-width: 14ch;
  font: 800 1rem/1.15 var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c);
  overflow-wrap: anywhere;
}

.pod__score {
  font: 800 1.7rem/1 var(--font-display);
  color: var(--cream-50);
}

.pod__col {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: calc((100% - 10.5rem) * var(--k, 1));
  min-height: 70px;
  border-radius: 6px 6px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.13) 0 3px, transparent 3px 14px),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 38%, #fff6e8), color-mix(in srgb, var(--c) 72%, #241a10));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 22px 40px -18px rgba(0, 0, 0, 0.85);
  transform-origin: bottom;
  animation: tb-rise 0.95s var(--ease-spring) both;
  animation-delay: var(--d);
}

.pod__col::before,
.pod__col::after {
  content: '';
  position: absolute;
  left: -7px;
  right: -7px;
  border-radius: 5px;
}

.pod__col::before {
  top: -12px;
  height: 14px;
  background: linear-gradient(#fff6d9, var(--gold-500));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.pod__col::after {
  bottom: -10px;
  height: 10px;
  background: linear-gradient(#d8c9be, #8f7e6e);
}

.pod__rank {
  font: 800 clamp(2.4rem, 8vw, 4rem) / 1 var(--font-display);
  color: rgba(26, 18, 51, 0.78);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.fin__board {
  display: grid;
  gap: 0.9rem;
  max-width: 820px;
  width: 100%;
  margin-inline: auto;
}

.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.award {
  --c: var(--gold-500);
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-l);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, transparent), rgba(255, 255, 255, 0.03));
}

.award__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c);
  color: #1b1230;
  box-shadow: 0 8px 20px -8px var(--c);
}

.award div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.award small {
  font: 800 0.66rem/1.2 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.award b {
  font: 800 1.35rem/1.15 var(--font-display);
}

.award span {
  font-size: 0.9rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.hard {
  max-width: 820px;
  width: 100%;
  margin-inline: auto;
}

.hard header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.hard h3 {
  font: 800 clamp(1.3rem, 3vw, 1.7rem) var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hard__list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hard__i {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hard__b {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.hard__b:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hard__n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(224, 80, 90, 0.5);
  background: rgba(224, 80, 90, 0.2);
  font: 800 0.85rem var(--font-display);
}

.hard__w {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.hard__w b {
  font: 800 1.1rem/1.2 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hard__w small {
  font: 600 0.78rem/1.2 var(--font-ui);
  color: var(--text-mute);
}

.hard__chev .ico {
  transition: transform 0.3s var(--ease-out);
}

.hard__b[aria-expanded='true'] .hard__chev .ico {
  transform: rotate(180deg);
}

.hard__note {
  padding: 0 1.1rem 1rem 4rem;
  color: var(--text-dim);
  text-wrap: pretty;
  animation: th-fade-up 0.35s var(--ease-out) both;
}

.fin__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

/* ==========================================================================
   Kelime rehberi (pencere)
   ========================================================================== */
.gl {
  display: grid;
  gap: 0.4rem;
  max-height: min(50dvh, 540px);
  margin: 0;
  padding: 0 0.3rem 0 0;
  overflow: auto;
  list-style: none;
}

.gl__i details {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.gl__i details[open] {
  border-color: rgba(235, 203, 126, 0.4);
  background: rgba(235, 203, 126, 0.06);
}

.gl__i summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  list-style: none;
  cursor: pointer;
}

.gl__i summary::-webkit-details-marker {
  display: none;
}

.gl__i summary b {
  font: 800 1rem/1.2 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gl__meta {
  flex: none;
  font: 700 0.75rem/1 var(--font-ui);
  color: var(--text-mute);
}

.gl__body {
  display: grid;
  gap: 0.6rem;
  padding: 0 1rem 1rem;
  color: var(--text-dim);
}

.gl__info {
  font-size: 0.85rem;
}

/* ==========================================================================
   Animasyonlar
   ========================================================================== */
@keyframes tb-medal {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-20deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes tb-timeup {
  0% {
    opacity: 0;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes tb-rise {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* ==========================================================================
   Duyarlı düzen
   ========================================================================== */
@media (max-width: 980px) {
  .tb-row {
    grid-template-columns: 1fr;
  }
  .sum__cols {
    grid-template-columns: 1fr;
  }
  .sum__right {
    position: static;
  }
}

@media (max-width: 900px) {
  /* oyun: tek sütun, kompakt üst bilgi */
  .play {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.7rem;
  }
  .hud {
    order: -1;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'team ring'
      'meta meta';
    align-items: center;
    gap: 0.55rem 0.9rem;
    padding: 0.65rem 0.8rem;
    border-radius: var(--r-l);
  }
  .hud__team {
    grid-area: team;
  }
  .hud__ring {
    grid-area: ring;
    padding: 0;
  }
  .hud__meta {
    grid-area: meta;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
  }
  .hud .ring {
    --size: 84px;
  }
  .hud .medal--xl {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
  .hud__tname {
    font-size: 1.05rem;
  }
  .hud__ref,
  .hud__score .label {
    display: none;
  }
  .hud__pts {
    min-width: 2.4ch;
    font-size: 1.9rem;
    text-align: center;
  }
  .hud__stats {
    gap: 0.3rem;
  }
  .stat {
    padding: 0.28rem 0.3rem;
    border-radius: 10px;
    white-space: nowrap;
  }
  .stat b {
    display: inline;
    margin-right: 0.3rem;
    font-size: 1.05rem;
  }
  .stat span {
    font-size: 0.6rem;
  }
  .hud__tools {
    gap: 0.3rem;
  }
  .hud__tools .btn--icon {
    width: 40px;
    min-height: 40px;
  }
  .fpts {
    top: 2px;
  }
  .play__main {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .tb-hero {
    grid-template-columns: 1fr;
    padding-bottom: 1.4rem;
  }
  .tb-sample {
    display: none;
  }
  .tb-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }
  .tb-controls {
    grid-template-columns: 1fr;
  }
  .sum__head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .sum__pts {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    text-align: left;
  }
  .sum__pts .label {
    grid-column: 1 / -1;
  }
  .sum__counts {
    justify-content: flex-start;
  }
  .srow {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .srow__pts {
    display: none;
  }
}

@media (max-width: 560px) {
  body[data-screen='summary'] .toasts {
    bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
  }
  .sum .eyebrow::before,
  .tb-hero .eyebrow::before {
    display: none;
  }
  .resume__act {
    width: 100%;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
  }
  .resume__act .btn--gold {
    flex: 1;
    padding-inline: 0.8rem;
    white-space: nowrap;
  }
  .dock__sum .chip .ico {
    display: none;
  }
  .act {
    padding-inline: 0.4rem;
    gap: 0.35rem;
  }
  .act__k {
    display: none;
  }
  .act__n {
    top: 4px;
    right: 6px;
    min-width: 1.35rem;
    height: 1.35rem;
    font-size: 0.72rem;
  }
  .acts {
    gap: 0.5rem;
  }
  .dock {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
  }
  .dock__sum {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.35rem;
  }
  .dock__sum .chip {
    padding: 0.35rem 0.6rem;
    font-size: 0.74rem;
    min-width: 0;
  }
  .dock .btn--xl {
    width: 100%;
    min-height: 56px;
    padding-inline: 1.3rem;
    font-size: 1.05rem;
  }
  .podium {
    height: 340px;
  }
  .pod__name {
    font-size: 0.82rem;
  }
  .pod__score {
    font-size: 1.35rem;
  }
  .hard__note {
    padding-left: 1.1rem;
  }
}

@media (hover: none) {
  .act__k {
    display: none;
  }
}

/* Kısa yatay ekran (telefon yan tutulmuş): kart + düğmeler solda, bilgi sütunu sağda.
   Her şey kaydırmadan tek ekrana sığar. */
@media (max-height: 560px) and (orientation: landscape) {
  body.tabu {
    --topbar-h: 48px;
  }
  .tcard__head {
    display: none;
  }
  .tcard__say {
    display: none;
  }
  /* başlık ve "bunları söyleme" satırı gizli: kalan iki satır (kelime + liste) tüm yüksekliği paylaşsın */
  .tcard {
    grid-template-rows: auto minmax(0, 1fr);
    padding-block: 0.6rem 0.7rem;
  }
  .tcard__word {
    min-height: clamp(42px, 20cqh, 84px);
    padding-block: 0.15rem;
    margin-bottom: 0.2rem;
  }
  .tcard__word span {
    font-size: clamp(1.15rem, min(calc(98cqw / var(--w, 8)), 13cqh), 2.6rem);
  }
  .tcard__ban li {
    font-size: clamp(0.78rem, min(calc(70cqw / var(--bw, 9)), 7.4cqh), 1.5rem);
  }

  body[data-screen='play'] .tb {
    padding-block: 0.4rem;
  }
  .play {
    grid-template-columns: minmax(0, 1fr) clamp(188px, 30vw, 250px);
    grid-template-rows: minmax(0, 1fr);
    gap: 0.6rem;
    height: calc(100dvh - var(--topbar-h) - 0.8rem);
    min-height: 0;
  }
  .play__main {
    max-width: none;
    gap: 0.5rem;
  }
  .act {
    min-height: 52px;
    font-size: 1.02rem;
  }
  .act__k {
    display: none;
  }

  .hud {
    order: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: none;
    align-content: center;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--r-l);
    overflow: hidden;
  }
  .hud__team,
  .hud__ring,
  .hud__meta {
    grid-area: auto;
  }
  .hud__team {
    gap: 0.5rem;
  }
  .hud .medal--xl {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .hud__tname {
    font-size: 0.95rem;
  }
  .hud__player {
    font-size: 0.78rem;
  }
  .hud__ref,
  .hud__score .label {
    display: none;
  }
  .hud__ring {
    padding: 0;
  }
  .hud .ring {
    --size: clamp(58px, 21vh, 92px);
  }
  .hud__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem 0.5rem;
  }
  .hud__score {
    grid-column: 1;
    grid-row: 1;
    justify-items: start;
  }
  .hud__pts {
    min-width: 2.2ch;
    font-size: 1.7rem;
    text-align: left;
  }
  .hud__tools {
    grid-column: 2;
    grid-row: 1;
    gap: 0.3rem;
  }
  .hud__tools .btn--icon {
    width: 36px;
    min-height: 36px;
    height: 36px;
  }
  .hud__stats {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0.3rem;
  }
  .stat {
    padding: 0.22rem 0.2rem;
    border-radius: 10px;
    white-space: nowrap;
  }
  .stat b {
    display: inline;
    margin-right: 0.25rem;
    font-size: 1rem;
  }
  .stat span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
}

/* dar + kısa yatay ekran (ör. 568×320): düğmelerde simge gizlenir, pas sayacı yazının yanına oturur */
@media (max-height: 560px) and (max-width: 700px) and (orientation: landscape) {
  .act .ico {
    display: none;
  }
  .act__n {
    position: static;
    margin-left: 0.15rem;
  }
}

/* çok kısa yatay ekran (ör. 320 px yükseklik): halka ve madalyon küçülür */
@media (max-height: 360px) and (orientation: landscape) {
  .hud .medal--xl {
    display: none;
  }
  .hud__team {
    gap: 0;
  }
  .hud .ring {
    --size: 60px;
  }
  .hud .ring__time {
    font-size: 1.15rem;
  }
}
