/* Player Bridge v217: equal artwork sizing, one clear language control, stable online input and full-name suggestions. */
#root .app-shell.is-choosing-game .main-grid,
#root .app-shell.is-choosing-game > .footer {
  display: none !important;
}

#root .topnav__game {
  min-height: 36px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(31, 122, 80, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: #174b35;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

#root .game-type-picker {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 8%, rgba(47, 230, 181, .15), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(58, 168, 255, .15), transparent 38%),
    rgba(255, 255, 255, .94);
}

#root .game-type-picker__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

#root .game-type-picker__copy > span {
  display: block;
  margin-bottom: 5px;
  color: #21835b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
}

#root .game-type-picker__copy h1 {
  margin: 0;
  color: #122d22;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.05;
}

#root .game-type-picker__copy p {
  margin: 8px 0 0;
  color: #5a7066;
  font-size: 13px;
}

#root .game-type-language {
  display: none !important;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid rgba(31, 122, 80, .15);
  border-radius: 14px;
  background: rgba(237, 247, 241, .9);
}

#root .game-type-language > span {
  padding: 0 5px;
  color: #567166;
  font-size: 10px;
  font-weight: 900;
}

#root .game-type-language button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #234f3b;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

#root .game-type-language button.active {
  background: #fff;
  box-shadow: 0 5px 16px rgba(22, 82, 56, .13);
}

#root .game-type-language .flag {
  font-size: 20px;
  line-height: 1;
}

#root .game-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#root .game-type-card {
  display: grid;
  grid-template-columns: minmax(138px, 42%) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(24, 91, 61, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  color: #153e2c;
  text-align: left;
  box-shadow: 0 18px 45px rgba(17, 64, 43, .1);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#root .game-type-card:hover,
#root .game-type-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(35, 165, 113, .45);
  box-shadow: 0 23px 50px rgba(17, 64, 43, .16);
  outline: none;
}

#root .game-type-card__image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0;
  background: transparent !important;
}

#root .game-type-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
}

#root .game-type-card--career .game-type-card__image img {
  /* The source has a narrower transparent artwork box than the letter image.
     Independent X/Y compensation gives both cards the same visible bounds. */
  transform: translate(-.24%, 2.02%) scale(1.244, 1.253) !important;
}

#root .game-type-card--letters .game-type-card__image img {
  transform: translate(-.33%, .19%) scale(.97) !important;
}

/* The top navigation is the only language control. Keep its labels visible on
   desktop so the flags are immediately understandable. */
@media (min-width: 901px) {
  #root .topbar .topnav #kkLangSwitch {
    height: 42px !important;
    gap: 5px !important;
    padding: 3px 4px !important;
  }

  #root .topbar .topnav #kkLangSwitch button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 88px !important;
    height: 36px !important;
    padding: 0 10px !important;
    gap: 7px !important;
    font-size: 11.5px !important;
  }

  #root .topbar .topnav #kkLangSwitch button span:last-child {
    display: inline !important;
    white-space: nowrap !important;
  }

  #root .topbar .topnav #kkLangSwitch .flag,
  #root .topbar .topnav #kkLangSwitch .flag svg {
    display: block !important;
    width: 22px !important;
    height: 16px !important;
    flex: 0 0 22px !important;
  }
}

#root .game-type-card__body {
  min-width: 0;
}

#root .game-type-card__body > span {
  display: block;
  margin-bottom: 4px;
  color: #27875f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .11em;
}

#root .game-type-card__body strong {
  display: block;
  color: #102d20;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.08;
}

#root .game-type-card__body p {
  min-height: 48px;
  margin: 8px 0 13px;
  color: #60756b;
  font-size: 12px;
  line-height: 1.45;
}

#root .game-type-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16744d;
  font-size: 11px;
  font-weight: 950;
}

#root .game-type-card--letters .game-type-card__action {
  color: #1c6fb1;
}

#root .player-card--letter .club-search input {
  text-align: center;
  text-transform: uppercase;
  font-size: 28px !important;
  font-weight: 950;
  letter-spacing: .16em;
}

#root .player-card--letter .club-summary > div:nth-child(n+2) {
  display: none;
}

#root .player-card--letter .club-summary {
  grid-template-columns: 1fr !important;
}

#root .club-badge--letter {
  background: linear-gradient(145deg, #0c3151, #1f8c65) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .48) !important;
  box-shadow: 0 9px 23px rgba(12, 67, 60, .22) !important;
}

#root .club-badge--letter b {
  font-size: 1.3em;
}

#root .selection-result-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: min(100%, 520px);
  margin: 0 auto 14px;
  padding: 11px 13px;
  border: 1px solid rgba(31, 122, 80, .16);
  border-radius: 14px;
  background: rgba(31, 122, 80, .07);
}

#root .selection-result-summary > span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #173f2d;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

#root .selection-result-summary > i {
  color: #2a8b62;
  font-style: normal;
  font-weight: 950;
}

#root .selection-result-summary > small {
  grid-column: 1 / -1;
  color: #628074;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

#root .round-candidate-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#root .round-candidate-count {
  color: #537166;
  font-size: 10px;
  font-weight: 900;
}

#root .candidate-load-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 122, 80, .2);
  border-radius: 11px;
  background: rgba(31, 122, 80, .08);
  color: #176c49;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

#root .candidate-load-more:hover {
  background: rgba(31, 122, 80, .13);
}

#root .mode-initials .network-club small,
#root .mode-initials .connection-footer small {
  white-space: normal;
}

/* React'in aktif tur bileşeninde doğrudan yalnız skor ve içerik katmanı vardır.
   Otomatik reklam/üçüncü taraf yerleşimi bu ikisinin arasına fazladan bir bant
   eklerse solo ve online arayüzlerin geometrisi ayrışıyordu. Oyun sahasının
   içine sonradan eklenen doğrudan çocukları yer ayırmadan gizle. */
#root .round-arena > :not(.round-scoreboard):not(.round-content):not(.mobile-duel-header) {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Online cevap modülü aynı React yapısını kullanır. Son katmanda ölçüleri ve
   yüzeyleri solo görünümüyle sabitleyerek oda moduna özgü miras kalan stillerin
   yazma alanını daraltmasını veya farklılaştırmasını önle. */
#root .app-shell.mode-online.is-match-started .round-play-grid {
  align-items: stretch !important;
}

#root .app-shell.mode-online.is-match-started .round-player-choice,
#root .app-shell.mode-online.is-match-started .answer-area {
  box-sizing: border-box !important;
  align-self: stretch !important;
}

#root .app-shell.mode-online.is-match-started .opponent-strip--online {
  border: 1px solid #cbe2d5 !important;
  background: linear-gradient(135deg, #fff, #edf7f1) !important;
  box-shadow: 0 12px 28px #153d2910 !important;
}

@media (max-width: 900px) {
  #root .topnav__game {
    width: 36px;
    min-width: 36px;
    padding: 0;
    font-size: 0;
  }
  #root .topnav__game::before {
    content: "⇄";
    font-size: 16px;
  }
  #root .game-type-picker {
    margin-top: 10px;
    padding: 14px;
    border-radius: 20px;
  }
  #root .game-type-picker__top {
    display: grid;
    gap: 12px;
    margin-bottom: 13px;
  }
  #root .game-type-language {
    justify-self: start;
  }
  #root .game-type-language > span,
  #root .game-type-language button > span:last-child {
    display: none;
  }
  #root .game-type-language button {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }
  #root .game-type-grid {
    gap: 9px;
  }
  #root .game-type-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 9px;
    border-radius: 17px;
  }
  #root .game-type-card__image {
    border-radius: 0;
  }
  #root .game-type-card__body strong {
    font-size: 16px;
  }
  #root .game-type-card__body p {
    min-height: 76px;
    margin: 6px 0 9px;
    font-size: 10px;
    line-height: 1.35;
  }
  #root .game-type-card__action {
    font-size: 10px;
  }
  #root .selection-result-summary {
    gap: 6px;
    padding: 9px;
  }
  #root .selection-result-summary > span {
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  #root .game-type-picker {
    padding: 11px;
  }
  #root .game-type-grid {
    gap: 7px;
  }
  #root .game-type-card {
    padding: 7px;
  }
  #root .game-type-card__body p {
    min-height: 84px;
    font-size: 9.5px;
  }
}

/* On phones the same single switch keeps both names without overflowing the
   compact top navigation. */
@media (max-width: 900px) {
  #root .topbar .topnav #kkLangSwitch {
    width: auto !important;
    height: 38px !important;
    gap: 2px !important;
    padding: 2px 3px !important;
  }

  #root .topbar .topnav #kkLangSwitch button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 66px !important;
    height: 32px !important;
    padding: 0 4px !important;
    gap: 3px !important;
    color: #174b35 !important;
    font-size: 9px !important;
  }

  #root .topbar .topnav #kkLangSwitch button span:last-child {
    display: inline !important;
    white-space: nowrap !important;
  }

  #root .topbar .topnav #kkLangSwitch .flag,
  #root .topbar .topnav #kkLangSwitch .flag svg {
    display: block !important;
    width: 18px !important;
    height: 13px !important;
    flex: 0 0 18px !important;
  }
}

@media (max-width: 360px) {
  #root .topbar .topnav #kkLangSwitch button {
    min-width: 60px !important;
    padding: 0 3px !important;
    gap: 2px !important;
    font-size: 8.5px !important;
  }

  #root .topbar .topnav #kkLangSwitch .flag,
  #root .topbar .topnav #kkLangSwitch .flag svg {
    width: 16px !important;
    height: 12px !important;
    flex-basis: 16px !important;
  }
}
