* {
  box-sizing: border-box;
}

:root {
  --bg: #090b1d;
  --panel: rgba(255, 255, 255, 0.075);
  --panel2: rgba(255, 255, 255, 0.105);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --pink: #ff4f87;
  --cyan: #35e3ff;
  --orange: #ffb057;
  --danger: #ff5c6c;
  --green: #5cffbf;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

button,
input,
select {
  font-family: inherit;
}

.appBackground {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 79, 135, 0.23), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(53, 227, 255, 0.18), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(255, 176, 87, 0.12), transparent 40%),
    linear-gradient(135deg, #08091b 0%, #10132a 45%, #07091a 100%);
}

.appBackground::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.hidden {
  display: none !important;
}

.topBar {
  width: min(1280px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(8, 10, 25, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brandMini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.brandIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #090b1d;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--cyan));
  font-weight: 950;
}

.topActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.userBadge {
  color: var(--muted);
  font-size: 14px;
}

.appShell {
  width: min(1280px, calc(100% - 32px));
  margin: 22px auto 60px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.authCard,
.heroCard,
.panel,
.gameHeader,
.gameCard,
.resultCard,
.leaderboardCard,
.adminCard {
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.authCard {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.authHero {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 40% 20%, rgba(53, 227, 255, 0.14), transparent 32%),
    radial-gradient(circle at 15% 80%, rgba(255, 79, 135, 0.18), transparent 38%);
}

.authLogo {
  width: min(620px, 100%);
  height: auto;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.38));
}

.authHero p {
  max-width: 520px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.authPanel {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
}

.authTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.authTab,
.leaderFilter,
.adminTab {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}

.authTab.active,
.leaderFilter.active,
.adminTab.active {
  border-color: rgba(255, 79, 135, 0.72);
  background: linear-gradient(135deg, rgba(255, 79, 135, 0.34), rgba(53, 227, 255, 0.16));
}

.authForm {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.authForm.active {
  display: flex;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  border-radius: 16px;
  padding: 14px 15px;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(53, 227, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(53, 227, 255, 0.12);
}

select option {
  background: #111327;
  color: #fff;
}

.primaryBtn,
.secondaryBtn,
.smallBtn {
  border: 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
  border-radius: 16px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.primaryBtn {
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--pink), #ff7c5f, var(--cyan));
  box-shadow: 0 14px 30px rgba(255, 79, 135, 0.20);
}

.secondaryBtn {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border);
}

.smallBtn {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border);
}

.smallBtn.danger,
.danger {
  background: rgba(255, 92, 108, 0.16);
  border-color: rgba(255, 92, 108, 0.35);
}

.primaryBtn:hover,
.secondaryBtn:hover,
.smallBtn:hover {
  transform: translateY(-2px);
}

.primaryBtn:disabled,
.secondaryBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.message,
.adminMessage,
.gameMessage {
  min-height: 22px;
  color: var(--muted);
  margin: 14px 0 0;
}

.message.error,
.adminMessage.error,
.gameMessage.error {
  color: #ff8b98;
}

.message.success,
.adminMessage.success,
.gameMessage.success {
  color: var(--green);
}

.heroCard {
  padding: 34px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
  min-height: 360px;
}

.heroLogoArea {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 79, 135, 0.22);
  color: #ff6f9a;
  font-weight: 950;
  margin: 0 0 16px;
}

.heroLogoWrap {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 0 6px;
}

.heroLogo {
  width: min(520px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.38));
}

.subtitle {
  color: var(--muted);
  font-size: 20px;
  margin: 16px 0 0;
  line-height: 1.45;
  max-width: 540px;
}

.dayiPanel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.dayiPanelInner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 260px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 79, 135, 0.10), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(53, 227, 255, 0.10), transparent 35%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dayiPanelInner img {
  width: 170px;
  max-width: 32vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.dayiBox {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.dayiBox img {
  width: 150px;
  max-width: 32vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.speechBubble {
  position: relative;
  max-width: 340px;
  border: 1px solid var(--border);
  background: rgba(8, 10, 25, 0.62);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.speechBubble p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
  font-weight: 700;
}

.setupGrid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
}

.panel {
  padding: 24px;
}

.panel h2,
.timeTitle {
  margin: 0 0 16px;
}

.panelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panelHeader h2 {
  margin: 0;
}

.panelHeader input {
  max-width: 300px;
}

.categoryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
}

.categoryCard.imageCard {
  position: relative;
  padding: 0;
  overflow: hidden;
  height: 108px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  outline: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.categoryCard.imageCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.categoryCard.imageCard.active {
  border-color: var(--cyan, #35e3ff);
  animation: selectedCardPulse 1.6s ease-in-out infinite;
}

.categoryCard.imageCard.active::after {
  content: "✓ Seçildi";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink, #ff4f87), var(--cyan, #35e3ff));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  animation: selectedBadgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes selectedCardPulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(53, 227, 255, 0.55),
      0 0 24px rgba(53, 227, 255, 0.35),
      0 18px 42px rgba(0, 0, 0, 0.36);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 79, 135, 0.6),
      0 0 34px rgba(255, 79, 135, 0.45),
      0 18px 42px rgba(0, 0, 0, 0.36);
  }
}

@keyframes selectedBadgePop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .categoryCard.imageCard.active {
    animation: none;
    box-shadow:
      0 0 0 3px rgba(53, 227, 255, 0.55),
      0 0 24px rgba(53, 227, 255, 0.35),
      0 18px 42px rgba(0, 0, 0, 0.36);
  }

  .categoryCard.imageCard.active::after { animation: none; }
}

.categoryImageWrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.categoryImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.03);
  transition: transform 0.28s ease;
}

.categoryCard.imageCard:hover .categoryImage {
  transform: scale(1.04);
}

.emptyCategoryBox {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.emptyCategoryBox strong {
  display: block;
  margin-bottom: 6px;
}

.emptyCategoryBox span {
  color: rgba(255, 255, 255, 0.68);
}

.modeGrid,
.timeGrid {
  display: grid;
  gap: 12px;
}

.modeCard,
.timeBtn {
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
}

.modeCard strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}

.modeCard span {
  color: var(--muted);
  font-size: 14px;
}

.modeCard.active,
.timeBtn.active {
  border-color: rgba(255, 79, 135, 0.72);
  background: linear-gradient(135deg, rgba(255, 79, 135, 0.28), rgba(53, 227, 255, 0.12));
}

.timeTitle {
  margin-top: 24px;
}

.bigStart {
  width: 100%;
  margin-top: 20px;
  font-size: 18px;
}

.gameHeader {
  padding: 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.gameHeader h2 {
  margin: 0;
}

.gameHeader p {
  margin: 5px 0 0;
  color: var(--muted);
}

.statsRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.statBox {
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.statBox span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.statBox strong {
  display: block;
  font-size: 22px;
  margin-top: 3px;
}

.gameCard {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  min-height: 520px;
}

.gameMain {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wordDisplay {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.letterBox {
  width: 56px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border);
  text-transform: uppercase;
}

.letterSpace {
  width: 26px;
}

.hintPanel {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 176, 87, 0.26);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 176, 87, 0.16), transparent 30%),
    rgba(0, 0, 0, 0.20);
  border-radius: 22px;
}

.hintTop {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.hintTop strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}

.hintTop p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  font-size: 14px;
}

.hintActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hintActions .secondaryBtn {
  padding: 12px 14px;
}

.adBtn {
  background: rgba(255, 176, 87, 0.13);
  border-color: rgba(255, 176, 87, 0.34);
}

.hintMessages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hintChip {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 176, 87, 0.13);
  border: 1px solid rgba(255, 176, 87, 0.26);
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
  font-weight: 800;
}

.hintChip b {
  color: #ffcf85;
}

.guessForm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.rushFoundBox {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 20px;
  padding: 16px;
}

.rushFoundBox h3 {
  margin: 0 0 12px;
}

.foundWordsList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.foundWord {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(92, 255, 191, 0.12);
  color: var(--green);
  border: 1px solid rgba(92, 255, 191, 0.24);
  font-weight: 800;
}

.gameDayi {
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.gameDayi img {
  width: 180px;
}

.wordGuessWrapper {
  width: min(760px, 100%);
}

.wordGuessGrid {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.wordGuessRow {
  display: grid;
  gap: 8px;
}

.wordGuessBox {
  aspect-ratio: 1 / 1;
  min-height: 48px;
  max-height: 68px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 950;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.wordGuessBox.empty {
  background: rgba(255, 255, 255, 0.08);
}

.wordGuessBox.hinted {
  background: rgba(255, 176, 87, 0.18);
  border-color: #ffb057;
  color: #ffcf85;
  box-shadow:
    0 0 0 2px rgba(255, 176, 87, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(255, 176, 87, 0.24);
}

.wordGuessBox.correct {
  background: #3b9146;
  border-color: #53c263;
}

.wordGuessBox.present {
  background: #c9a000;
  border-color: #ffd21f;
}

.wordGuessBox.absent {
  background: #70777a;
  border-color: #8b9295;
}

.wordGuessInfo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.wordGuessInfo span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.greenDot,
.yellowDot,
.grayDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.greenDot {
  background: #3b9146;
}

.yellowDot {
  background: #c9a000;
}

.grayDot {
  background: #70777a;
}

.resultCard {
  max-width: 840px;
  margin: 0 auto;
  padding: 42px;
  text-align: center;
}

.resultCard h1 {
  font-size: clamp(42px, 6vw, 78px);
  margin: 0 0 10px;
}

.resultCard p {
  color: var(--muted);
}

.resultStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.resultStats div {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.resultStats span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.resultStats strong {
  font-size: 26px;
}

.resultActions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.leaderboardCard,
.adminCard {
  padding: 28px;
}

.adminHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.adminHeader h1 {
  margin: 0;
}

.adminHeader p {
  margin: 6px 0 0;
  color: var(--muted);
}

.leaderboardInfoBox {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(53, 227, 255, 0.18);
  background: rgba(53, 227, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  line-height: 1.5;
}

.leaderboardFilters,
.adminTabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.leaderboardList,
.adminList {
  display: grid;
  gap: 10px;
}

.leaderItem,
.adminItem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  padding: 14px;
}

.leaderItem strong,
.adminItem strong {
  display: block;
}

.leaderItem span,
.adminItem span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.adminPanel {
  display: none;
}

.adminPanel.active {
  display: block;
}

.adminFormRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

#adminWordsPanel .adminFormRow {
  grid-template-columns: 280px 1fr auto;
}

.deleteBtn,
.banBtn,
.unbanBtn {
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
}

.deleteBtn {
  background: rgba(255, 92, 108, 0.17);
  border-color: rgba(255, 92, 108, 0.32);
}

.banBtn {
  background: rgba(255, 176, 87, 0.16);
  border-color: rgba(255, 176, 87, 0.30);
}

.unbanBtn {
  background: rgba(92, 255, 191, 0.13);
  border-color: rgba(92, 255, 191, 0.28);
}

.roleBadge,
.statusBadge {
  display: inline-flex !important;
  width: fit-content;
  margin-right: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 900;
  color: #fff !important;
  background: rgba(53, 227, 255, 0.16);
}

.statusBadge.banned {
  background: rgba(255, 92, 108, 0.18);
}

.jsonImportBox {
  display: grid;
  gap: 16px;
}

.jsonImportBox h2 {
  margin: 0;
}

.jsonImportHelp {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.importJsonRow {
  grid-template-columns: 280px 1fr auto;
}

.jsonTextArea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--border);
  outline: none;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  border-radius: 16px;
  padding: 14px 15px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

.importJsonResult {
  border: 1px solid rgba(92, 255, 191, 0.26);
  background: rgba(92, 255, 191, 0.08);
  border-radius: 20px;
  padding: 18px;
}

.importJsonResult h3 {
  margin: 0 0 14px;
  color: #5cffbf;
}

.importResultGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.importResultGrid div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  padding: 14px;
}

.importResultGrid span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  margin-bottom: 6px;
}

.importResultGrid strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
}

@media (max-width: 980px) {
  .authCard,
  .heroCard,
  .setupGrid,
  .gameCard {
    grid-template-columns: 1fr;
  }

  .dayiBox,
  .dayiPanelInner {
    justify-content: center;
  }

  .gameHeader {
    grid-template-columns: 1fr;
  }

  .statsRow {
    justify-content: flex-start;
  }

  .heroLogoArea {
    align-items: center;
    text-align: center;
  }

  .heroLogoWrap {
    justify-content: center;
  }

  .subtitle {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .topBar {
    flex-direction: column;
    align-items: stretch;
  }

  .topActions {
    justify-content: flex-start;
  }

  .authHero,
  .authPanel,
  .panel,
  .leaderboardCard,
  .adminCard,
  .gameCard {
    padding: 20px;
  }

  .heroCard {
    padding: 22px;
    min-height: auto;
  }

  .heroLogo {
    width: min(430px, 100%);
  }

  .categoryGrid {
    grid-template-columns: 1fr;
  }

  .categoryCard.imageCard {
    height: 135px;
  }

  .panelHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .panelHeader input {
    max-width: none;
  }

  .guessForm {
    grid-template-columns: 1fr;
  }

  .hintTop {
    grid-template-columns: 1fr;
  }

  .hintActions {
    justify-content: flex-start;
  }

  .hintActions .secondaryBtn {
    width: 100%;
  }

  .resultStats {
    grid-template-columns: 1fr;
  }

  .adminFormRow,
  #adminWordsPanel .adminFormRow,
  .importJsonRow {
    grid-template-columns: 1fr;
  }

  .leaderItem,
  .adminItem {
    grid-template-columns: 1fr;
  }

  .letterBox {
    width: 44px;
    height: 52px;
    font-size: 23px;
  }

  .dayiPanelInner {
    flex-direction: column;
    text-align: center;
  }

  .speechBubble {
    max-width: 100%;
  }

  .wordGuessGrid {
    gap: 7px;
  }

  .wordGuessRow {
    gap: 5px;
  }

  .wordGuessBox {
    min-height: 36px;
    border-radius: 8px;
    font-size: 17px;
  }
}


@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .appShell {
    width: calc(100% - 18px);
    margin: 14px auto 40px;
  }

  .topBar {
    width: calc(100% - 18px);
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .topActions {
    width: 100%;
    justify-content: center;
  }

  .topActions .smallBtn {
    flex: 1;
    min-width: 92px;
    text-align: center;
  }

  .heroCard {
    padding: 16px;
    border-radius: 24px;
    min-height: auto;
    margin-bottom: 14px;
  }

  .heroLogoArea {
    align-items: center;
    text-align: center;
  }

  .heroLogoWrap {
    justify-content: center;
  }

  .heroLogo {
    width: min(280px, 100%);
  }

  .subtitle {
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
  }

  .dayiPanelInner {
    min-height: auto;
    padding: 14px;
  }

  .dayiPanelInner img {
    width: 120px;
    max-width: 38vw;
  }

  .speechBubble {
    font-size: 13px;
    padding: 12px 14px;
  }

  .setupGrid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
  }

  .setupGrid > .panel {
    width: 100%;
  }

  .setupGrid > .panel:nth-child(2) {
    order: -1;
  }

  .panel {
    padding: 15px;
    border-radius: 22px;
  }

  .panelHeader {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .panelHeader h2,
  .timeTitle {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .panelHeader input {
    max-width: none;
    width: 100%;
    padding: 12px 13px;
    font-size: 14px;
  }

  .categoryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .categoryCard.imageCard {
    height: 96px;
    border-radius: 16px;
  }

  .categoryImageWrap {
    border-radius: 16px;
  }

  .categoryImage {
    object-fit: cover;
    object-position: center;
  }

  .modeGrid {
    grid-template-columns: 1fr !important;
    gap: 9px;
  }

  .modeCard {
    padding: 12px;
    border-radius: 15px;
  }

  .modeCard strong {
    font-size: 15px;
  }

  .modeCard span {
    font-size: 12px;
    line-height: 1.35;
  }

  .timeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .timeBtn {
    text-align: center;
    padding: 11px 8px;
    border-radius: 14px;
    font-size: 13px;
  }

  .bigStart,
  #startGameBtn {
    width: 100%;
    margin-top: 14px;
    padding: 15px;
    font-size: 16px;
    border-radius: 16px;
  }

  .gameHeader {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 12px;
  }

  .gameHeader h2 {
    font-size: 20px;
  }

  .statsRow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .statBox {
    min-width: 0;
    padding: 9px;
    text-align: center;
  }

  .statBox strong {
    font-size: 18px;
  }

  .gameCard {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 22px;
    gap: 16px;
  }

  .wordDisplay {
    justify-content: center;
  }

  .guessForm {
    grid-template-columns: 1fr;
  }

  .hintTop {
    grid-template-columns: 1fr;
  }

  .hintActions {
    justify-content: stretch;
  }

  .hintActions .secondaryBtn {
    width: 100%;
  }

  .adminUserActions {
    justify-content: flex-start;
  }

  .adminUserActions button {
    flex: 1;
    min-width: 110px;
  }
}

@media (max-width: 430px) {
  .appShell {
    width: calc(100% - 12px);
  }

  .categoryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .categoryCard.imageCard {
    height: 88px;
  }

  .modeCard {
    padding: 11px;
  }

  .timeBtn {
    font-size: 12px;
  }

  .statsRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



.adminUserActions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
/* =========================================================
   WORDION MOBIL UZUN KELIME KUTU TASMASI DUZELTME
========================================================= */

.wordGuessWrapper,
.wordGuessGrid,
.wordGuessRow,
.wordDisplay,
.gameCard,
.panel {
  min-width: 0;
  max-width: 100%;
}

.wordGuessWrapper {
  width: 100%;
  overflow: hidden;
}

.wordGuessGrid {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.wordGuessRow {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .wordGuessWrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .wordGuessGrid {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .wordGuessRow {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 7px !important;
  }

  .wordGuessBox {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 10px !important;
    font-size: clamp(13px, 4vw, 18px) !important;
  }

  .wordGuessInfo {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 430px) {
  .wordGuessRow {
    gap: 6px !important;
  }

  .wordGuessBox {
    border-radius: 9px !important;
    font-size: clamp(12px, 3.8vw, 16px) !important;
  }
}

/* =========================================================
   WORDION FINAL UPDATE: MENU UPDATES + ADMIN IMAGE UPLOAD
========================================================= */

.menuUpdatesBox {
  margin: -8px 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 20%, rgba(53, 227, 255, 0.09), transparent 28%),
    rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.menuUpdatesHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.menuUpdatesHeader span::before {
  content: "•";
  color: var(--cyan);
  margin-right: 7px;
}

.menuUpdatesList {
  display: grid;
  gap: 7px;
}

.menuUpdateItem {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.menuUpdateItem strong {
  font-size: 14px;
  color: #fff;
}

.menuUpdateItem span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.35;
}

.categoryAdminItem {
  grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
  align-items: center;
}

.categoryAdminInfo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.adminCategoryThumb {
  width: 76px;
  height: 54px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}

.categoryAdminInfo small,
.updateAdminItem small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.categoryImageAdminControls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.categoryImageInput {
  max-width: 190px;
  padding: 10px;
  font-size: 12px;
  border-radius: 13px;
}

.updateTextArea {
  min-height: 110px;
  margin-bottom: 12px;
}

.adminCheckRow {
  flex-direction: row;
  align-items: center;
  width: fit-content;
  gap: 10px;
  margin-bottom: 16px;
}

.adminCheckRow input {
  width: auto;
  accent-color: var(--pink);
}

/* =========================================================
   WORDION FINAL MOBILE PANEL UPDATE
   Sadece mobil ekranı etkiler, masaüstü paneli bozmaz.
========================================================= */

@media (max-width: 768px) {
  .appShell {
    width: calc(100% - 14px) !important;
    margin: 10px auto 34px !important;
  }

  .topBar {
    width: calc(100% - 14px) !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  .brandMini {
    width: 100%;
    justify-content: center;
  }

  .userBadge {
    width: 100%;
    text-align: center;
  }

  .heroCard {
    padding: 14px !important;
    gap: 12px !important;
    border-radius: 22px !important;
  }

  .heroLogo {
    width: min(230px, 78vw) !important;
  }

  .badge {
    padding: 7px 14px !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  .subtitle {
    font-size: 14px !important;
    margin-top: 8px !important;
  }

  .dayiPanelInner {
    display: grid !important;
    grid-template-columns: 82px 1fr !important;
    min-height: auto !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  .dayiPanelInner img,
  .dayiBox img {
    width: 82px !important;
    max-width: 82px !important;
  }

  .speechBubble {
    padding: 10px 11px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .menuUpdatesBox {
    margin: -2px 0 12px !important;
    padding: 11px !important;
    border-radius: 18px !important;
  }

  .menuUpdateItem {
    padding: 8px 10px !important;
  }

  .menuUpdateItem strong {
    font-size: 12.5px !important;
  }

  .menuUpdateItem span {
    font-size: 12px !important;
  }

  .setupGrid {
    gap: 12px !important;
  }

  .setupGrid > .panel:nth-child(2) {
    order: -1 !important;
  }

  .panel {
    padding: 13px !important;
    border-radius: 20px !important;
  }

  .panel h2,
  .panelHeader h2,
  .timeTitle {
    font-size: 16px !important;
    margin: 0 0 9px !important;
  }

  .modeGrid {
    gap: 8px !important;
  }

  .modeCard {
    padding: 10px 11px !important;
    border-radius: 14px !important;
    text-align: left !important;
  }

  .modeCard strong {
    font-size: 14px !important;
  }

  .modeCard span {
    font-size: 11.5px !important;
  }

  .timeGrid {
    gap: 7px !important;
  }

  .timeBtn {
    padding: 9px 7px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }

  .bigStart,
  #startGameBtn {
    padding: 13px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
  }

  .categoryGrid {
    gap: 8px !important;
  }

  .categoryCard.imageCard {
    height: 86px !important;
    border-radius: 15px !important;
  }

  .categoryImageWrap {
    border-radius: 15px !important;
  }

  .gameHeader {
    padding: 12px !important;
    border-radius: 20px !important;
    gap: 10px !important;
  }

  .gameHeader h2 {
    font-size: 18px !important;
    margin: 0 !important;
  }

  #gameSubTitle {
    font-size: 12px !important;
    margin: 4px 0 0 !important;
  }

  .statsRow {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .statBox {
    padding: 8px 6px !important;
    border-radius: 13px !important;
  }

  .statBox span {
    font-size: 10.5px !important;
  }

  .statBox strong {
    font-size: 16px !important;
  }

  .gameCard {
    padding: 12px !important;
    border-radius: 20px !important;
    gap: 12px !important;
  }

  .wordDisplay {
    gap: 6px !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .letterBox {
    width: clamp(28px, 8.2vw, 38px) !important;
    height: clamp(34px, 9.2vw, 44px) !important;
    border-radius: 10px !important;
    font-size: clamp(16px, 5vw, 21px) !important;
  }

  .letterSpace {
    width: 10px !important;
  }

  .hintPanel {
    padding: 11px !important;
    border-radius: 16px !important;
    margin-bottom: 12px !important;
  }

  .hintTop strong {
    font-size: 14px !important;
  }

  .hintTop p {
    font-size: 12px !important;
  }

  .hintActions {
    gap: 7px !important;
  }

  .hintActions .secondaryBtn {
    padding: 11px 9px !important;
    font-size: 12px !important;
  }

  .guessForm {
    gap: 8px !important;
  }

  #guessInput {
    padding: 12px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
  }

  .guessForm .primaryBtn {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .gameDayi {
    display: grid !important;
    grid-template-columns: 76px 1fr !important;
    justify-content: stretch !important;
    gap: 9px !important;
  }

  .wordGuessRow {
    gap: 5px !important;
  }

  .wordGuessBox {
    min-height: 0 !important;
    max-height: none !important;
    border-width: 1px !important;
    border-radius: 8px !important;
    font-size: clamp(12px, 3.8vw, 17px) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18) !important;
  }

  .wordGuessInfo {
    gap: 6px !important;
    font-size: 11px !important;
  }

  .foundWordsList {
    gap: 6px !important;
  }

  .foundWord {
    font-size: 11px !important;
    padding: 7px 9px !important;
  }

  .adminTabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .adminTab {
    padding: 10px 8px !important;
    font-size: 12px !important;
    border-radius: 13px !important;
  }

  .adminFormRow,
  #adminWordsPanel .adminFormRow {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .leaderItem,
  .adminItem {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .categoryAdminItem {
    grid-template-columns: 1fr !important;
  }

  .categoryAdminInfo {
    align-items: flex-start !important;
  }

  .adminCategoryThumb {
    width: 72px !important;
    height: 52px !important;
  }

  .categoryImageAdminControls {
    justify-content: stretch !important;
  }

  .categoryImageInput {
    max-width: none !important;
    width: 100% !important;
  }

  .categoryImageAdminControls button {
    flex: 1 1 130px !important;
  }
}

@media (max-width: 430px) {
  .heroLogo {
    width: min(205px, 76vw) !important;
  }

  .categoryCard.imageCard {
    height: 78px !important;
  }

  .dayiPanelInner,
  .gameDayi {
    grid-template-columns: 68px 1fr !important;
  }

  .dayiPanelInner img,
  .dayiBox img {
    width: 68px !important;
    max-width: 68px !important;
  }

  .letterBox {
    width: clamp(25px, 7.5vw, 34px) !important;
    height: clamp(30px, 8.4vw, 39px) !important;
    font-size: clamp(14px, 4.4vw, 19px) !important;
  }

  .wordGuessRow {
    gap: 4px !important;
  }

  .wordGuessBox {
    border-radius: 7px !important;
    font-size: clamp(11px, 3.4vw, 15px) !important;
  }

  .statsRow {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* --- Günün Kelimesi kutusu --- */
.dailyBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 79, 135, 0.12), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(53, 227, 255, 0.10), transparent 40%),
    rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.dailyBoxText {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dailyBoxText strong {
  font-size: 1.02rem;
}

.dailyBoxText span {
  font-size: 0.86rem;
  opacity: 0.78;
}

.dailyBox .primaryBtn {
  flex-shrink: 0;
  padding: 12px 22px;
}

.dailyStreakBadge {
  color: #ffd166;
  font-weight: 700;
}

@media (max-width: 560px) {
  .dailyBox {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* --- Ekran klavyesi --- */
.screenKeyboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  user-select: none;
}

.kbRow {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.kbKey {
  flex: 1;
  max-width: 44px;
  min-width: 0;
  padding: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.06s;
}

.kbKey:active {
  transform: scale(0.94);
}

.kbKeyWide {
  max-width: 64px;
  font-size: 0.78rem;
}

.kbCorrect {
  background: #3aa657;
  border-color: #3aa657;
  color: #fff;
}

.kbPresent {
  background: #c9a53a;
  border-color: #c9a53a;
  color: #fff;
}

.kbAbsent {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  opacity: 0.45;
}

@media (max-width: 480px) {
  .kbKey {
    padding: 13px 0;
    font-size: 0.88rem;
    border-radius: 8px;
  }
}

/* --- Üst bar ikon butonları --- */
.iconBtn {
  padding: 8px 10px;
  font-size: 1rem;
  line-height: 1;
}

/* --- Lider tablosu sekmeleri --- */
.leaderTabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.leaderTab {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.leaderTab.active {
  background: linear-gradient(135deg, var(--pink), #ff7c5f, var(--cyan));
  border-color: transparent;
  color: #fff;
}

/* --- TDK anlam linki --- */
.tdkLink {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.82rem;
  text-decoration: none;
}

.tdkLink:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* --- İstatistik modalı --- */
.statsOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 6, 12, 0.75);
  backdrop-filter: blur(6px);
}

.statsModal {
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 79, 135, 0.10), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(53, 227, 255, 0.10), transparent 40%),
    #16161f;
}

.statsModalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.statsModalHeader h2 {
  margin: 0;
  font-size: 1.2rem;
}

.statsModal h3 {
  margin: 18px 0 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.statsCell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.statsCell strong {
  font-size: 1.05rem;
}

.statsCell span {
  font-size: 0.68rem;
  opacity: 0.7;
}

.statsDist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.statsDistRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.statsDistRow > span {
  width: 14px;
  font-weight: 700;
  opacity: 0.8;
}

.statsDistBarWrap {
  flex: 1;
}

.statsDistBar {
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), #ff7c5f);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  color: #fff;
}

.statsNote {
  margin: 16px 0 0;
  font-size: 0.75rem;
  opacity: 0.55;
  text-align: center;
}

/* =========================================================
   TASARIM YENİLEME — Animasyon Paketi
   ========================================================= */

/* --- 1) Canlı arka plan --- */
.appBackground::before,
.appBackground::after {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
  will-change: transform;
}

.appBackground::before {
  background: radial-gradient(circle, rgba(255, 79, 135, 0.13), transparent 62%);
  top: -25vmax;
  left: -20vmax;
  animation: bgDriftA 26s ease-in-out infinite alternate;
}

.appBackground::after {
  background: radial-gradient(circle, rgba(53, 227, 255, 0.12), transparent 62%);
  bottom: -27vmax;
  right: -20vmax;
  animation: bgDriftB 32s ease-in-out infinite alternate;
}

@keyframes bgDriftA {
  to { transform: translate(12vmax, 8vmax) scale(1.15); }
}

@keyframes bgDriftB {
  to { transform: translate(-10vmax, -9vmax) scale(1.1); }
}

.floatingLetters {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.floatingLetters span {
  position: absolute;
  bottom: -60px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.045);
  animation: letterFloatUp linear infinite;
}

@keyframes letterFloatUp {
  to { transform: translateY(-115vh) rotate(24deg); }
}

/* --- 8) Ekran geçişleri + 2) kart giriş sıralaması --- */
.screen.active {
  animation: screenIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.screen.active > * {
  animation: cardRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen.active > *:nth-child(2) { animation-delay: 0.07s; }
.screen.active > *:nth-child(3) { animation-delay: 0.14s; }
.screen.active > *:nth-child(4) { animation-delay: 0.21s; }
.screen.active > *:nth-child(5) { animation-delay: 0.28s; }

@keyframes cardRise {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* --- 2) Kart hover'ları --- */
.modeCard,
.categoryCard,
.leaderItem,
.dailyBox {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
}

.modeCard:hover,
.categoryCard:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 227, 255, 0.45);
  box-shadow: 0 14px 34px rgba(53, 227, 255, 0.12);
}

.leaderItem:hover {
  transform: translateX(4px);
}

/* --- 3) Buton hissi + parlaması --- */
.primaryBtn,
.secondaryBtn,
.smallBtn {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.18s ease,
              background 0.2s ease;
}

.primaryBtn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 44px rgba(255, 79, 135, 0.32);
}

.primaryBtn:active,
.secondaryBtn:active,
.smallBtn:active {
  transform: scale(0.96);
}

.bigStart,
#dailyPlayBtn {
  position: relative;
  overflow: hidden;
}

.bigStart::after,
#dailyPlayBtn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnShimmer {
  0%, 60% { left: -80%; }
  80%, 100% { left: 130%; }
}

/* --- 4) Harf kutuları: dönüş, zafer, sallanma --- */
.wordGuessRow.justRevealed .wordGuessBox {
  animation: tileFlip 0.5s ease both;
}

.wordGuessRow.justRevealed .wordGuessBox:nth-child(2) { animation-delay: 0.12s; }
.wordGuessRow.justRevealed .wordGuessBox:nth-child(3) { animation-delay: 0.24s; }
.wordGuessRow.justRevealed .wordGuessBox:nth-child(4) { animation-delay: 0.36s; }
.wordGuessRow.justRevealed .wordGuessBox:nth-child(5) { animation-delay: 0.48s; }
.wordGuessRow.justRevealed .wordGuessBox:nth-child(6) { animation-delay: 0.60s; }
.wordGuessRow.justRevealed .wordGuessBox:nth-child(7) { animation-delay: 0.72s; }
.wordGuessRow.justRevealed .wordGuessBox:nth-child(8) { animation-delay: 0.84s; }

@keyframes tileFlip {
  0% { transform: rotateX(0); }
  49% { transform: rotateX(90deg); }
  51% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}

.wordGuessRow.winRow .wordGuessBox {
  animation: tileWin 0.55s ease both;
}

.wordGuessRow.winRow .wordGuessBox:nth-child(2) { animation-delay: 0.07s; }
.wordGuessRow.winRow .wordGuessBox:nth-child(3) { animation-delay: 0.14s; }
.wordGuessRow.winRow .wordGuessBox:nth-child(4) { animation-delay: 0.21s; }
.wordGuessRow.winRow .wordGuessBox:nth-child(5) { animation-delay: 0.28s; }
.wordGuessRow.winRow .wordGuessBox:nth-child(6) { animation-delay: 0.35s; }
.wordGuessRow.winRow .wordGuessBox:nth-child(7) { animation-delay: 0.42s; }
.wordGuessRow.winRow .wordGuessBox:nth-child(8) { animation-delay: 0.49s; }

@keyframes tileWin {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-14px); }
}

.rowShake {
  animation: rowShake 0.4s ease;
}

@keyframes rowShake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* --- 5) Klavye tuş hissi --- */
.kbKey {
  transition: transform 0.08s ease, background 0.3s ease,
              border-color 0.3s ease, opacity 0.3s ease;
}

.kbKey:active {
  transform: scale(0.86);
  background: rgba(53, 227, 255, 0.32);
}

/* --- 6) Dayı canlanması --- */
#dayiImage,
#gameDayiImage {
  animation: dayiBob 3.4s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes dayiBob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
}

.speechBubble.popIn {
  animation: bubblePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.75) translateX(-8px); }
  to { opacity: 1; transform: none; }
}

/* --- 7) Seri alevi, skor zıplaması, süre uyarısı --- */
.dailyStreakBadge {
  display: inline-block;
  animation: flamePulse 1.8s ease-in-out infinite;
}

@keyframes flamePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255, 120, 40, 0.35)); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 9px rgba(255, 120, 40, 0.75)); }
}

#scoreText.bump {
  animation: scoreBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--cyan, #35e3ff);
}

@keyframes scoreBump {
  40% { transform: scale(1.35); }
}

#timerText.timerWarn {
  color: #ff6b6b;
  animation: timerBlink 0.9s ease-in-out infinite;
}

@keyframes timerBlink {
  50% { opacity: 0.45; transform: scale(1.06); }
}

/* --- Erişilebilirlik: hareketi azalt --- */
@media (prefers-reduced-motion: reduce) {
  .appBackground::before,
  .appBackground::after,
  .floatingLetters span,
  .screen.active,
  .screen.active > *,
  .bigStart::after,
  #dailyPlayBtn::after,
  .wordGuessRow.justRevealed .wordGuessBox,
  .wordGuessRow.winRow .wordGuessBox,
  #dayiImage,
  #gameDayiImage,
  .speechBubble.popIn,
  .dailyStreakBadge,
  #scoreText.bump,
  #timerText.timerWarn {
    animation: none !important;
  }
}

/* =========================================================
   PROFİL, TEMALAR, EFEKTLER PAKETİ
   ========================================================= */

/* --- Temalar (aksan renk değişimi) --- */
[data-theme="mor-gece"] {
  --pink: #9d6bff;
  --cyan: #ff6bd5;
  --orange: #c9a0ff;
}

[data-theme="orman"] {
  --pink: #3ddc84;
  --cyan: #ffd166;
  --orange: #8affc1;
}

[data-theme="retro"] {
  --pink: #ff2e63;
  --cyan: #f9ed69;
  --orange: #ff9a3c;
}

/* --- Profil modalı --- */
.profileHeader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.profileAvatar {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
}

.profileName {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profileName strong {
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profileName span {
  font-size: 0.76rem;
  opacity: 0.6;
}

.themeRow {
  display: flex;
  gap: 12px;
}

.themeDot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.themeDot:hover { transform: scale(1.12); }

.themeDot.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.badgeGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.badgeItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: transform 0.18s;
}

.badgeItem.earned:hover { transform: translateY(-3px); }

.badgeItem.locked {
  opacity: 0.38;
  filter: grayscale(1);
}

.badgeVisual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.badgeVisual img {
  max-width: 44px;
  max-height: 44px;
}

.badgeVisual .badgeEmoji { font-size: 1.7rem; }

.badgeName {
  font-size: 0.62rem;
  opacity: 0.85;
  line-height: 1.25;
}

/* --- Rozet bildirimi (toast) --- */
.badgeToast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 209, 102, 0.15), transparent 45%),
    #1a1a26;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 130%);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.badgeToast.show { transform: translate(-50%, 0); }

.badgeToast strong { display: block; font-size: 0.82rem; color: #ffd166; }
.badgeToast span { font-size: 0.95rem; font-weight: 700; }

/* --- Konfeti --- */
.confettiHost {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow: hidden;
  pointer-events: none;
}

.confettiPiece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation: confettiFall linear both;
}

@keyframes confettiFall {
  to {
    transform: translate(var(--drift, 0), 110vh) rotate(var(--spin, 540deg));
    opacity: 0.7;
  }
}

/* --- Uçan puan --- */
.flyingScore {
  position: fixed;
  z-index: 1150;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 2px 14px rgba(53, 227, 255, 0.6);
  pointer-events: none;
  transform: translateX(-50%);
}

/* --- Kombo --- */
.gameCard { position: relative; }

.comboBanner {
  position: absolute;
  top: 12%;
  left: 50%;
  z-index: 60;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a3c, var(--pink));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 14px 40px rgba(255, 120, 40, 0.45);
  pointer-events: none;
  animation: comboPop 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes comboPop {
  0% { transform: translate(-50%, 10px) scale(0.4); opacity: 0; }
  18% { transform: translate(-50%, 0) scale(1.15); opacity: 1; }
  30% { transform: translate(-50%, 0) scale(1); }
  80% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -14px) scale(0.92); opacity: 0; }
}

/* --- Splash --- */
.splashOverlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #090b1d;
  cursor: pointer;
  transition: opacity 0.45s ease;
}

.splashOverlay.out { opacity: 0; pointer-events: none; }

.splashOverlay span {
  font-size: clamp(2.2rem, 9vw, 4.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), #ff7c5f, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: splashLetter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes splashLetter {
  from { opacity: 0; transform: translateY(26px) scale(0.6); }
  to { opacity: 1; transform: none; }
}

/* --- Sonuç ekranı: yıldızlar + rekor --- */
.resultStars {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 2px;
  font-size: 2.4rem;
}

.resultStar {
  color: rgba(255, 255, 255, 0.14);
  transform: scale(0.7);
  transition: none;
}

.resultStar.lit {
  color: #ffd166;
  text-shadow: 0 0 22px rgba(255, 209, 102, 0.75);
  animation: starPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes starPop {
  0% { transform: scale(0.3) rotate(-30deg); }
  60% { transform: scale(1.25) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

.newRecordBadge {
  display: inline-block;
  margin: 4px auto 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166, #ff9a3c);
  color: #3a2500;
  font-weight: 900;
  letter-spacing: 0.5px;
  animation: recordGlow 1.4s ease-in-out infinite;
}

@keyframes recordGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 209, 102, 0.45); transform: scale(1); }
  50% { box-shadow: 0 0 30px rgba(255, 209, 102, 0.85); transform: scale(1.04); }
}

/* --- Yükleme iskeletleri --- */
.skeletonCard,
.skeletonRow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.skeletonCard { height: 86px; }
.skeletonRow { height: 62px; margin-bottom: 10px; }

.skeletonCard::after,
.skeletonRow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  to { transform: translateX(100%); }
}

/* --- Hareket azaltma (yeni ögeler) --- */
@media (prefers-reduced-motion: reduce) {
  .confettiPiece,
  .comboBanner,
  .splashOverlay span,
  .resultStar.lit,
  .newRecordBadge,
  .skeletonCard::after,
  .skeletonRow::after {
    animation: none !important;
  }

  .badgeToast { transition: none; }
}

/* =========================================================
   MOBİL KOLAY KULLANIM PAKETİ
   ========================================================= */

/* Yazılan harf kutuya "pat" diye oturur */
.wordGuessBox.typing {
  border-color: rgba(53, 227, 255, 0.65);
  background: rgba(53, 227, 255, 0.10);
  color: #fff;
  animation: typedPop 0.12s ease;
}

@keyframes typedPop {
  50% { transform: scale(1.12); }
}

/* GÖNDER / SİL tuşları daha geniş ve okunur */
.kbKeyWide {
  max-width: 76px;
  flex: 1.4;
  font-size: 0.66rem;
  letter-spacing: 0.4px;
}

/* Mobilde tuşlar daha büyük, parmak dostu */
@media (max-width: 480px) {
  .kbKey {
    padding: 15px 0;
    font-size: 0.95rem;
    max-width: none;
  }

  .kbKeyWide {
    font-size: 0.7rem;
  }

  .kbRow {
    gap: 4px;
  }

  .screenKeyboard {
    margin-top: 16px;
  }

  /* Kelime kareleri mobilde biraz daha büyük ve ferah */
  .wordGuessBox {
    min-height: 46px;
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordGuessBox.typing { animation: none; }
}

/* Kategori görseli gelene kadar ışıltılı yer tutucu; gelince yumuşak geçiş */
.categoryImageWrap {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.categoryImageWrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.categoryImage {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.categoryImage.loaded {
  opacity: 1;
}

/* 12 tuşlu üst sıra dar ekranda da sığsın */
@media (max-width: 400px) {
  .kbKey {
    padding: 13px 0;
    font-size: 0.82rem;
    border-radius: 7px;
  }

  .kbRow {
    gap: 3px;
  }
}

/* Görsel yüklenemezse ışıltıyı durdur, sade zemin kalsın */
.categoryImageWrap.imageFailed::before {
  animation: none;
  opacity: 0;
}

/* ================= HARF SAYISI SEÇİMİ ================= */
.lengthHelp {
  margin: -8px 0 12px;
  font-size: 0.82rem;
  opacity: 0.65;
}

.lengthGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.lengthChip {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lengthChip:hover { transform: translateY(-2px); }

.lengthChip.active {
  background: linear-gradient(135deg, var(--pink), #ff7c5f, var(--cyan));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 79, 135, 0.3);
}

.lengthChip.hardest {
  border-color: rgba(255, 92, 108, 0.5);
  color: #ff8a97;
}

.lengthChip.hardest.active {
  background: linear-gradient(135deg, #7b0f2b, #ff2e50);
  color: #fff;
  box-shadow: 0 8px 26px rgba(255, 46, 80, 0.45);
  animation: hardestPulse 1.6s ease-in-out infinite;
}

@keyframes hardestPulse {
  50% { box-shadow: 0 8px 34px rgba(255, 46, 80, 0.75); }
}

/* ================= FOOTER ================= */
.siteFooter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.siteFooter a {
  color: inherit;
  opacity: 0.55;
  font-size: 0.82rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.siteFooter a:hover { opacity: 1; }

/* ================= LITE MOD ================= */
.liteModeRow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.liteModeRow input { margin-top: 4px; width: 18px; height: 18px; }
.liteModeRow strong { display: block; font-size: 0.9rem; }
.liteModeRow small { display: block; opacity: 0.6; font-size: 0.74rem; line-height: 1.4; }

/* Lite Mod: pahalı efektleri kapat — düşük donanımda akıcılık */
.liteMode .floatingLetters { display: none; }
.liteMode .appBackground::before,
.liteMode .appBackground::after { animation: none; }
.liteMode .heroCard,
.liteMode .panel,
.liteMode .dailyBox,
.liteMode .menuUpdatesBox,
.liteMode .authCard,
.liteMode .gameCard,
.liteMode .resultCard,
.liteMode .leaderboardCard,
.liteMode .adminCard,
.liteMode .statsModal { backdrop-filter: none !important; }
.liteMode .screen.active,
.liteMode .screen.active > * { animation: none !important; }
.liteMode .bigStart::after,
.liteMode #dailyPlayBtn::after { display: none; }
.liteMode #dayiImage,
.liteMode #gameDayiImage { animation: none; }
.liteMode .confettiHost { display: none; }
.liteMode .dailyStreakBadge { animation: none; }

/* ================= ADMIN MESAJ KUTUSU ================= */
.messageItem.unread {
  border-color: rgba(53, 227, 255, 0.4);
  background: rgba(53, 227, 255, 0.05);
}

.msgBody {
  display: block;
  margin: 4px 0;
  white-space: pre-wrap;
  opacity: 0.85;
}

.msgEmail { opacity: 0.55; font-weight: 400; font-size: 0.8rem; }
.messageItem .date { font-size: 0.72rem; opacity: 0.45; }


/* ================= ÜST BİLGİ BAĞLANTILARI ================= */
.infoNav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -6px 0 18px;
}

.infoNav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s, background 0.2s, border-color 0.2s;
}

.infoNav a:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 227, 255, 0.45);
  background: rgba(53, 227, 255, 0.08);
}

@media (max-width: 480px) {
  .infoNav a {
    padding: 7px 13px;
    font-size: 0.76rem;
  }
}

/* ================= GÖRSEL ŞÖLEN PAKETİ ================= */

/* GÖNDER/SİL taşma düzeltmesi + sayı satırı */
.kbKeyWide {
  white-space: nowrap;
  overflow: hidden;
  padding-left: 2px;
  padding-right: 2px;
  font-size: 0.62rem;
}

.kbNumberRow .kbKey {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Dokunma dalgası */
.clickRipple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleGrow 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleGrow {
  to { transform: scale(1); opacity: 0; }
}

/* Ekran kenarı ışıması: doğruda yeşil, yanlışta kırmızı */
.screenFlash {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  animation: flashFade 0.7s ease-out forwards;
}

.flashSuccess {
  box-shadow: inset 0 0 120px 30px rgba(58, 166, 87, 0.45);
}

.flashFail {
  box-shadow: inset 0 0 120px 30px rgba(255, 92, 108, 0.4);
}

@keyframes flashFade {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Sıradaki harf imleci: bir sonraki kare nabız atar */
.wordGuessBox.nextBox {
  border-color: rgba(53, 227, 255, 0.75);
  animation: nextBoxPulse 1.1s ease-in-out infinite;
}

@keyframes nextBoxPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 227, 255, 0.0); }
  50% { box-shadow: 0 0 14px 2px rgba(53, 227, 255, 0.4); }
}

/* Mod kartı ikonları: süzülür, hover'da kart 3D eğilir */
.modeIcon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
  animation: modeIconFloat 3s ease-in-out infinite;
}

.modeCard:nth-child(2) .modeIcon { animation-delay: 0.4s; }
.modeCard:nth-child(3) .modeIcon { animation-delay: 0.8s; }

@keyframes modeIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.modeCard {
  transform-style: preserve-3d;
  perspective: 600px;
}

.modeCard:hover {
  transform: translateY(-4px) rotateX(4deg) rotateY(-3deg);
}

.modeCard.active .modeIcon {
  filter: drop-shadow(0 0 10px rgba(53, 227, 255, 0.6));
}

/* Logo yumuşak süzülme + ışıma nefesi */
.heroLogo {
  animation: logoFloat 4.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 6px 22px rgba(255, 79, 135, 0.25)); }
  50% { transform: translateY(-8px); filter: drop-shadow(0 14px 30px rgba(53, 227, 255, 0.3)); }
}

/* Üst bar ikon butonları: hover'da neşeli sallanma */
.iconBtn:hover {
  animation: iconWiggle 0.45s ease;
}

@keyframes iconWiggle {
  25% { transform: rotate(-12deg) scale(1.12); }
  75% { transform: rotate(10deg) scale(1.08); }
}

/* Lite Mod: şölen paketini kıs */
.liteMode .modeIcon,
.liteMode .heroLogo,
.liteMode .wordGuessBox.nextBox { animation: none; }
.liteMode .wordGuessBox.nextBox { border-color: rgba(53, 227, 255, 0.75); }

@media (prefers-reduced-motion: reduce) {
  .clickRipple, .screenFlash, .wordGuessBox.nextBox,
  .modeIcon, .heroLogo, .iconBtn:hover { animation: none !important; }
}

/* ================= BÜYÜK EFEKT PAKETİ ================= */

/* Dayı halleri */
.dayiSleepy { animation: dayiSleep 3s ease-in-out infinite !important; filter: saturate(0.75); }
@keyframes dayiSleep {
  0%, 100% { transform: rotate(-4deg) translateY(2px); }
  50% { transform: rotate(-7deg) translateY(5px); }
}

.dayiPanic { animation: dayiShiver 0.35s ease-in-out infinite !important; }
@keyframes dayiShiver {
  0%, 100% { transform: translateX(0) rotate(-1deg); }
  25% { transform: translateX(-3px) rotate(-3deg); }
  75% { transform: translateX(3px) rotate(2deg); }
}

.speechBubble.bubblePanic {
  border-color: rgba(255, 92, 108, 0.65);
  background: rgba(255, 92, 108, 0.12);
}

.dayiSpin { animation: dayiSpinAnim 0.8s cubic-bezier(0.34, 1.3, 0.5, 1) !important; }
@keyframes dayiSpinAnim {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Son 10 saniye kızıl perdesi */
.timeVignette {
  position: fixed;
  inset: 0;
  z-index: 850;
  pointer-events: none;
  animation: vignettePulse 1s ease-in-out infinite;
}

@keyframes vignettePulse {
  0%, 100% { box-shadow: inset 0 0 90px 18px rgba(255, 46, 80, 0.22); }
  50% { box-shadow: inset 0 0 130px 34px rgba(255, 46, 80, 0.42); }
}

.liteMode .timeVignette {
  animation: none;
  box-shadow: inset 0 0 90px 18px rgba(255, 46, 80, 0.28);
}

/* Rush ilerleme çubuğu */
.rushProgress {
  position: relative;
  height: 26px;
  margin: 4px 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rushProgressFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), #ff7c5f, var(--cyan));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rushProgressText {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.rushProgress.milestoneFlash {
  animation: milestoneGlow 0.7s ease;
}

@keyframes milestoneGlow {
  40% { box-shadow: 0 0 22px 4px rgba(53, 227, 255, 0.55); }
}

/* Seri kutlaması */
.streakCelebration {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 14, 0.82);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: celebIn 0.35s ease both;
}

.streakCelebration.out { animation: celebOut 0.45s ease both; }

@keyframes celebIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes celebOut { to { opacity: 0; } }

.streakInner { text-align: center; }

.streakFlame {
  font-size: 5rem;
  animation: bigFlame 0.9s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255, 130, 40, 0.8));
}

@keyframes bigFlame {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.18) rotate(3deg); }
}

.streakBig {
  font-size: 3.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd166, #ff5f2e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: streakZoom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.streakText {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 3px;
  opacity: 0.9;
  animation: streakZoom 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes streakZoom {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

/* Rozet kazanma sahnesi */
.badgeCelebration {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 14, 0.78);
  cursor: pointer;
  animation: celebIn 0.3s ease both;
}

.badgeCelebration.out { animation: celebOut 0.4s ease both; }

.badgeCelebInner {
  position: relative;
  text-align: center;
  padding: 34px 48px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 209, 102, 0.14), transparent 60%),
    #16161f;
  overflow: hidden;
  animation: streakZoom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.badgeCelebInner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  animation: badgeShine 1.2s 0.4s ease-in-out;
}

@keyframes badgeShine {
  to { left: 140%; }
}

.badgeCelebVisual .badgeVisual { width: 84px; height: 84px; }
.badgeCelebVisual .badgeVisual img { max-width: 84px; max-height: 84px; }
.badgeCelebVisual .badgeEmoji { font-size: 3.4rem; }

.badgeCelebTitle { margin-top: 10px; font-size: 0.85rem; color: #ffd166; font-weight: 800; }
.badgeCelebName { font-size: 1.3rem; font-weight: 900; }

/* Harf yağmuru */
.rainLetter {
  position: absolute;
  top: -40px;
  font-weight: 900;
  animation: rainFall linear both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes rainFall {
  to { transform: translate(var(--drift, 0), 112vh) rotate(300deg); opacity: 0.75; }
}

/* Mevsimsel dokunuş */
.seasonalHost {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.seasonalHost span {
  position: absolute;
  top: -30px;
  opacity: 0.4;
  animation: seasonFall linear infinite;
}

@keyframes seasonFall {
  to { transform: translateY(112vh) rotate(120deg); }
}

/* Paralaks yumuşaklığı */
.heroLogoWrap, .dayiPanelInner {
  transition: transform 0.25s ease-out;
  will-change: transform;
}

/* Lite Mod ve hareket azaltma */
.liteMode .seasonalHost,
.liteMode .rainLetter { display: none; }
.liteMode .dayiSpin, .liteMode .dayiSleepy { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .dayiSleepy, .dayiPanic, .dayiSpin, .timeVignette, .streakFlame,
  .streakBig, .streakText, .badgeCelebInner, .badgeCelebInner::after,
  .rainLetter, .seasonalHost span, .rushProgress.milestoneFlash {
    animation: none !important;
  }
}

/* =========================================================
   MOBİL TEK-EKRAN DÜZENİ + DERİN OPTİMİZASYON
   ========================================================= */

/* --- Performans: uzun listelerde görünmeyen kartları çizme --- */
.categoryCard {
  content-visibility: auto;
  contain-intrinsic-size: 108px;
}

/* --- Lite Mod derinleştirme: boya maliyetini düşür --- */
.liteMode .heroCard, .liteMode .panel, .liteMode .dailyBox,
.liteMode .gameCard, .liteMode .resultCard,
.liteMode .primaryBtn, .liteMode .modeCard,
.liteMode .categoryCard, .liteMode .lengthChip { box-shadow: none !important; }
.liteMode .wordGuessRow.justRevealed .wordGuessBox,
.liteMode .wordGuessRow.winRow .wordGuessBox { animation: none !important; }
.liteMode .clickRipple { display: none; }
.liteMode .rushProgressFill { transition: none; }

/* ============ MOBİL: HER ŞEY TEK EKRANDA (≤640px) ============ */
@media (max-width: 640px) {

  /* Üst bilgi bağlantıları kompakt */
  .infoNav { margin: -4px 0 10px; gap: 6px; }
  .infoNav a { padding: 5px 11px; font-size: 0.7rem; }

  /* Kahraman kartı küçülür: dev logo gizli, Dayı mini şerit */
  .heroCard { padding: 12px 14px !important; }
  .heroLogoWrap, .heroLogo { display: none; }
  .badge { display: none; }
  .subtitle { display: none; }

  .dayiPanel { margin: 0 !important; padding: 0 !important; }
  .dayiPanelInner { display: flex; align-items: center; gap: 10px; }
  .dayiPanelInner img { width: 52px !important; height: auto; flex-shrink: 0; }
  .dayiPanelInner .speechBubble { padding: 8px 12px; }
  .dayiPanelInner .speechBubble p { font-size: 0.8rem; margin: 0; }

  .menuUpdatesBox { display: none; }

  /* Günlük kutu kompakt */
  .dailyBox { flex-direction: row !important; align-items: center !important; text-align: left !important; padding: 10px 14px; margin-bottom: 12px; }
  .dailyBoxText strong { font-size: 0.9rem; }
  .dailyBoxText span { font-size: 0.74rem; }
  .dailyBox .primaryBtn { padding: 9px 18px; font-size: 0.88rem; }

  /* KATEGORİLER: dikey ızgara yerine YATAY KAYDIRMALI ŞERİT */
  .panelHeader { flex-wrap: wrap; gap: 8px; }
  .panelHeader h2 { font-size: 0.95rem; margin: 0; }
  #categorySearch { padding: 8px 12px; font-size: 0.85rem; }

  .categoryGrid {
    display: flex !important;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .categoryGrid::-webkit-scrollbar { height: 4px; }
  .categoryGrid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }

  .categoryCard.imageCard {
    flex: 0 0 128px;
    height: 84px;
    scroll-snap-align: start;
    contain-intrinsic-size: 84px;
  }

  .categoryCard.imageCard.active::after { font-size: 0.6rem; padding: 3px 8px; }

  .panel { padding: 14px !important; }
  .setupGrid { gap: 12px !important; }

  /* Harf sayısı: tek satır yatay kaydırma */
  .lengthHelp { display: none; }
  .lengthGrid {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .lengthGrid::-webkit-scrollbar { height: 0; }
  .lengthChip { flex: 0 0 auto; padding: 7px 13px; font-size: 0.78rem; }

  /* Mod kartları: yan yana 3 kompakt kart */
  .modeGrid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .modeCard { padding: 10px 6px !important; text-align: center; }
  .modeCard .modeIcon { font-size: 1.3rem; margin-bottom: 3px; }
  .modeCard strong { font-size: 0.72rem; display: block; }
  .modeCard span { display: none; }

  /* Süre: yatay çipler */
  .timeTitle { font-size: 0.95rem; margin: 12px 0 8px !important; }
  .timeGrid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }
  .timeGrid::-webkit-scrollbar { height: 0; }
  .timeGrid > * { flex: 0 0 auto; }

  .bigStart { padding: 14px !important; font-size: 1rem !important; margin-top: 4px; }

  .siteFooter { margin-top: 14px; padding-top: 10px; }

  /* --- OYUN EKRANI: klavye kaydırmasız erişilir --- */
  .gameCard {
    display: flex !important;
    flex-direction: column;
    padding: 12px !important;
    min-height: 0 !important;
    gap: 10px !important;
  }

  /* Dayı oyunda mini şerit olur ve EN ALTA iner (klavye üstte kalır) */
  .gameDayi { order: 9; display: flex; align-items: center; gap: 10px; padding: 6px 0 0; }
  .gameDayi img { width: 44px !important; height: auto; }
  .gameDayi .speechBubble { padding: 7px 11px; }
  .gameDayi .speechBubble p { font-size: 0.76rem; margin: 0; }

  .gameHeader { padding: 10px 12px !important; }
  .gameHeader h2 { font-size: 1rem; margin: 0; }
  #gameSubTitle { font-size: 0.72rem; margin: 0; }
  .statBox { padding: 6px 10px !important; }
  .statBox span { font-size: 0.62rem; }
  .statBox strong { font-size: 0.95rem; }

  .wordDisplay { margin-bottom: 4px; }
  .screenKeyboard { margin-top: 8px; }
  .kbKey { padding: 12px 0; }
  .kbNumberRow .kbKey { padding: 6px 0; }

  .hintPanel { padding: 10px !important; }
  .gameMessage { min-height: 18px; font-size: 0.82rem; }
}

/* Çok küçük ekranlar (≤360px) için son sıkılaştırma */
@media (max-width: 360px) {
  .kbKey { padding: 10px 0; font-size: 0.78rem; }
  .modeCard strong { font-size: 0.66rem; }
}

/* Şifremi unuttum */
.forgotLink {
  margin-top: 4px;
  padding: 8px;
  border: none;
  background: none;
  color: var(--cyan, #35e3ff);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
}

.forgotLink:hover { text-decoration: underline; }

.resetInfo {
  margin: 0 0 4px;
  font-size: 0.82rem;
  opacity: 0.7;
  line-height: 1.5;
}

#resetStep2 { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
#resetStep2.hidden { display: none; }

/* ================= İKON KARO KATEGORİLER + ALTIN ================= */

.categoryCard.iconCard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 108px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  content-visibility: auto;
  contain-intrinsic-size: 108px;
}

/* 6 canlı degrade — kategori adına göre otomatik atanır */
.catGrad0 { background: linear-gradient(135deg, #ff4f87cc, #7b2ff7aa); }
.catGrad1 { background: linear-gradient(135deg, #35e3ffcc, #2563ebaa); }
.catGrad2 { background: linear-gradient(135deg, #ffb057cc, #ff4f2eaa); }
.catGrad3 { background: linear-gradient(135deg, #5cffbfcc, #0e9f6eaa); }
.catGrad4 { background: linear-gradient(135deg, #f9ed69cc, #f08a24aa); }
.catGrad5 { background: linear-gradient(135deg, #c084fccc, #db2777aa); }

.categoryCard.iconCard:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.categoryCard.iconCard.active {
  border-color: #fff;
  animation: selectedCardPulse 1.6s ease-in-out infinite;
}

.catIcon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.catTitle {
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.catCount {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .categoryCard.iconCard {
    flex: 0 0 108px;
    height: 92px;
    scroll-snap-align: start;
  }
  .catIcon { font-size: 1.6rem; }
  .catTitle { font-size: 0.68rem; }
}

/* --- Altın rozeti --- */
.coinBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(255, 154, 60, 0.12));
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffd166;
}

.coinBadge.coinBump {
  animation: coinBump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes coinBump {
  40% { transform: scale(1.25); box-shadow: 0 0 18px rgba(255, 209, 102, 0.6); }
}

.coinEarnLine {
  color: #ffd166;
  font-weight: 800;
}

/* --- Altınla ipucu butonu --- */
.coinHintBtn {
  border-color: rgba(255, 209, 102, 0.45) !important;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(255, 154, 60, 0.1)) !important;
  color: #ffd166 !important;
  font-weight: 800;
}

.coinHintBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- Profil e-posta satırı --- */
.emailRow { display: flex; gap: 8px; }
.emailRow input {
  flex: 1;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.9rem;
}
.emailNote { margin: 6px 0 0; font-size: 0.72rem; opacity: 0.55; }

/* --- Admin ikon düzenleme --- */
.iconEditRow { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.iconInput {
  width: 64px;
  padding: 8px;
  text-align: center;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
