:root {
  --cyan: #19e6ff;
  --pink: #ff3d9a;
  --violet: #9b6bff;
  --bg: #05060f;
  --glass: rgba(13, 16, 38, 0.72);
  --text: #eef0ff;
  --muted: #98a0c8;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
}

button {
  font-family: inherit;
}

/* ---------- Arka plan ---------- */
.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 115%, #1c0f45 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% -15%, #0a2544 0%, transparent 70%),
    var(--bg);
}

.blob {
  position: absolute;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 16s ease-in-out infinite alternate;
  will-change: transform;
}

.b1 {
  background: radial-gradient(circle, rgba(255, 61, 154, 0.35), transparent 60%);
  top: -45vmax;
  left: -40vmax;
}

.b2 {
  background: radial-gradient(circle, rgba(25, 230, 255, 0.3), transparent 60%);
  bottom: -45vmax;
  right: -40vmax;
  animation-delay: -8s;
}

@keyframes float {
  to {
    transform: translate(10vmax, 8vmax) scale(1.08);
  }
}

.bg-grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -5%;
  height: 55%;
  overflow: hidden;
  transform: perspective(420px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 85%);
  mask-image: linear-gradient(to top, #000 5%, transparent 85%);
}

/* Izgara, yeniden boyama gerektirmeyen transform ile kayar */
.bg-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -64px;
  bottom: 0;
  background-image:
    linear-gradient(rgba(155, 107, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 107, 255, 0.28) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid 5s linear infinite;
  will-change: transform;
}

@keyframes grid {
  to {
    transform: translateY(64px);
  }
}

/* Maç sırasında arka plan durur: tüm güç oyuna kalsın */
body.playing .blob,
body.playing .bg-grid::before {
  animation-play-state: paused;
}

/* ---------- Oyun alanı ---------- */
#stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-t) + 64px) calc(var(--safe-r) + 10px) calc(var(--safe-b) + 10px) calc(var(--safe-l) + 10px);
}

.board {
  position: relative;
  line-height: 0;
}

/* Su teması: WebGL su katmanı oyun tuvalinin altında */
#water {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
}

body.theme-water #water,
body.theme-mud #water {
  display: block;
}

#game {
  position: relative;
  display: block;
  touch-action: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 90px rgba(155, 107, 255, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.75);
}

body.playing #game {
  cursor: none;
}

/* Su Stadyumu teması: gece stadyumu, projektör ışıkları */
body.theme-water .bg {
  background:
    radial-gradient(40% 30% at 8% 0%, rgba(255, 250, 225, 0.22), transparent 70%),
    radial-gradient(40% 30% at 92% 0%, rgba(255, 250, 225, 0.22), transparent 70%),
    radial-gradient(40% 30% at 8% 100%, rgba(255, 250, 225, 0.14), transparent 70%),
    radial-gradient(40% 30% at 92% 100%, rgba(255, 250, 225, 0.14), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 50%, #0b2d4a, transparent 75%),
    linear-gradient(#03080f, #06172a 50%, #03080f);
}

body.theme-water .blob,
body.theme-water .bg-grid,
body.theme-ice .blob,
body.theme-ice .bg-grid,
body.theme-lava .blob,
body.theme-lava .bg-grid,
body.theme-sand .blob,
body.theme-sand .bg-grid,
body.theme-space .blob,
body.theme-space .bg-grid,
body.theme-crystal .blob,
body.theme-crystal .bg-grid,
body.theme-mud .blob,
body.theme-mud .bg-grid {
  display: none;
}

/* Bataklık Stadyumu teması: sisli bataklık gecesi, ay ışığı ve yeşilimsi pus */
body.theme-mud .bg {
  background:
    radial-gradient(28% 18% at 82% 6%, rgba(230, 235, 200, 0.22), transparent 70%),
    radial-gradient(90% 30% at 50% 100%, rgba(70, 90, 50, 0.35), transparent 70%),
    radial-gradient(60% 25% at 20% 60%, rgba(90, 110, 80, 0.12), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 50%, #1c2416, transparent 75%),
    linear-gradient(#070a08, #10160e 55%, #0a0d08);
}

body.theme-mud #game {
  box-shadow:
    0 0 0 1px rgba(170, 190, 140, 0.12),
    0 0 80px rgba(120, 150, 80, 0.16),
    0 30px 80px rgba(0, 0, 0, 0.85);
}

/* Kristal Mağarası teması: karanlık mağara, duvarlarda soluk renkli kristal ışıltıları */
body.theme-crystal .bg {
  background:
    radial-gradient(35% 25% at 6% 12%, rgba(168, 92, 255, 0.22), transparent 70%),
    radial-gradient(30% 22% at 96% 30%, rgba(60, 225, 235, 0.16), transparent 70%),
    radial-gradient(35% 25% at 4% 82%, rgba(50, 235, 140, 0.13), transparent 70%),
    radial-gradient(32% 24% at 94% 88%, rgba(255, 70, 130, 0.15), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 50%, #1a1430, transparent 75%),
    linear-gradient(#050409, #0c0916 50%, #050409);
}

body.theme-crystal #game {
  box-shadow:
    0 0 0 1px rgba(200, 180, 255, 0.14),
    0 0 90px rgba(150, 100, 255, 0.24),
    0 30px 80px rgba(0, 0, 0, 0.85);
}

/* Uzay Stadyumu teması: yıldızlı gökyüzü ve yavaşça dalgalanan kutup ışığı */
body.theme-space .bg {
  background:
    radial-gradient(1.2px 1.2px at 23px 41px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 131px 87px, rgba(200, 220, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 71px 163px, rgba(255, 240, 220, 0.9), transparent),
    radial-gradient(1px 1px at 181px 13px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 97px 121px, rgba(220, 210, 255, 0.7), transparent),
    radial-gradient(1px 1px at 157px 191px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(90% 40% at 50% 108%, rgba(70, 40, 170, 0.35), transparent 70%),
    linear-gradient(#01020a, #050a24 55%, #02030c);
  background-size: 200px 200px, 200px 200px, 200px 200px, 200px 200px, 230px 230px, 170px 170px, auto, auto;
}

body.theme-space .bg::after {
  content: "";
  position: absolute;
  left: -25%;
  right: -25%;
  top: -12%;
  height: 58%;
  background:
    radial-gradient(45% 55% at 30% 70%, rgba(60, 255, 170, 0.32), transparent 70%),
    radial-gradient(40% 50% at 62% 55%, rgba(80, 220, 200, 0.2), transparent 70%),
    radial-gradient(40% 45% at 80% 40%, rgba(170, 80, 255, 0.26), transparent 70%);
  filter: blur(18px);
  animation: aurora-drift 16s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes aurora-drift {
  0% { transform: translateX(-6%) skewX(-8deg) scaleY(0.9); opacity: 0.7; }
  50% { opacity: 1; }
  100% { transform: translateX(6%) skewX(8deg) scaleY(1.1); opacity: 0.8; }
}

body.theme-space #game {
  box-shadow:
    0 0 0 1px rgba(160, 200, 255, 0.14),
    0 0 90px rgba(90, 140, 255, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.85);
}

/* Kum Stadyumu teması: çölde gün batımı, ufukta sıcak ışık ve kum pusu */
body.theme-sand .bg {
  background:
    radial-gradient(60% 34% at 18% -4%, rgba(255, 214, 140, 0.4), transparent 70%),
    radial-gradient(90% 40% at 50% 104%, rgba(214, 150, 80, 0.3), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(120, 72, 40, 0.5), transparent 75%),
    linear-gradient(#2a1b2c, #5a3426 45%, #8a5a34 80%, #3e2618);
}

body.theme-sand #game {
  box-shadow:
    0 0 0 1px rgba(255, 220, 170, 0.14),
    0 0 80px rgba(255, 180, 90, 0.2),
    0 30px 80px rgba(40, 20, 5, 0.8);
}

/* Lav Stadyumu teması: volkanik gece, alttan yükselen kızıl ışık ve duman */
body.theme-lava .bg {
  background:
    radial-gradient(90% 45% at 50% 108%, rgba(255, 90, 20, 0.35), transparent 70%),
    radial-gradient(50% 30% at 12% 100%, rgba(255, 140, 40, 0.18), transparent 70%),
    radial-gradient(50% 30% at 88% 100%, rgba(255, 60, 20, 0.16), transparent 70%),
    radial-gradient(70% 40% at 50% 0%, rgba(90, 70, 70, 0.25), transparent 70%),
    linear-gradient(#0c0706, #1a0c08 60%, #2a0e06);
}

body.theme-lava #game {
  box-shadow:
    0 0 0 1px rgba(255, 140, 60, 0.15),
    0 0 90px rgba(255, 90, 20, 0.28),
    0 30px 80px rgba(0, 0, 0, 0.85);
}

/* Buz Stadyumu teması: kutup gecesi, ufukta soluk kutup ışığı */
body.theme-ice .bg {
  background:
    radial-gradient(90% 38% at 50% -8%, rgba(90, 255, 200, 0.16), transparent 70%),
    radial-gradient(55% 30% at 15% 0%, rgba(120, 160, 255, 0.16), transparent 70%),
    radial-gradient(55% 30% at 85% 2%, rgba(80, 220, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 55%, #0a3448, transparent 75%),
    linear-gradient(#020a12, #04192a 55%, #020a12);
}

body.theme-ice #game {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 80px rgba(120, 220, 255, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.8);
}

/* Tema düğmeleri dar ekrana sığsın (tek kalan son düğme tam satır) */
.seg[data-group="theme"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.seg[data-group="theme"] button {
  padding: 10px 4px;
  font-size: 13.5px;
  line-height: 1.15;
}

.seg[data-group="theme"] button:last-child:nth-child(odd) {
  grid-column: span 2;
}

body.theme-water #game {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 70px rgba(80, 180, 255, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.8);
}

/* Maç sırasında arka plan bulanıklığı yerine opak zemin (her karede bulanıklık hesaplanmasın) */
body.playing .hud-btn,
body.playing .clock {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(16, 20, 46, 0.92);
}

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  z-index: 11;
  top: calc(var(--safe-t) + 10px);
  left: calc(var(--safe-l) + 12px);
  right: calc(var(--safe-r) + 12px);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

/* Skill düğmeleri */
body.skills #stage {
  padding-bottom: calc(var(--safe-b) + 76px);
}

body.skills.pvp #stage {
  padding-top: calc(var(--safe-t) + 128px);
}

.skillbar {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: calc(var(--safe-b) + 10px);
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

/* Üstteki oyuncu karşıdan baktığı için ters çevrilir */
.skillbar.top {
  top: calc(var(--safe-t) + 64px);
  bottom: auto;
  transform: translateX(-50%) rotate(180deg);
}

.skill-btn {
  --sc: 255, 190, 60;
  --fill: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(180px, calc(50vw - 18px));
  height: 56px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 16px;
  background: rgba(16, 20, 46, 0.92);
  box-shadow: inset 0 0 0 1px rgba(var(--sc), 0.45), 0 8px 22px rgba(0, 0, 0, 0.4);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
}

.skill-btn[data-skill="shrink"] {
  --sc: 190, 245, 255;
}

.skill-btn:active {
  transform: scale(0.95);
}

.skill-btn:focus-visible {
  outline: 2px solid rgb(var(--sc));
  outline-offset: 2px;
}

/* Simge çevresindeki halka bekleme süresini gösterir */
.skill-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(rgb(var(--sc)) calc(var(--fill) * 1turn), rgba(255, 255, 255, 0.12) 0);
}

.skill-ico > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0d1030;
  color: rgb(var(--sc));
}

.skill-ico svg {
  width: 20px;
  height: 20px;
}

.skill-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.skill-text b {
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  white-space: nowrap;
}

.skill-text small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.skill-btn kbd {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 6px;
  background: #fff;
  color: #0d1030;
  font: 800 11px "Exo 2", system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (pointer: coarse) {
  .skill-btn kbd {
    display: none;
  }
}

.skill-btn.ready {
  box-shadow: inset 0 0 0 1.5px rgba(var(--sc), 0.9), 0 0 20px rgba(var(--sc), 0.35), 0 8px 22px rgba(0, 0, 0, 0.4);
}

.skill-btn.ready .skill-ico > span {
  background: linear-gradient(rgba(var(--sc), 0.2), rgba(var(--sc), 0.2)), #0d1030;
}

.skill-btn.active {
  box-shadow: inset 0 0 0 2px rgb(var(--sc)), 0 0 26px rgba(var(--sc), 0.6), 0 8px 22px rgba(0, 0, 0, 0.4);
  animation: skill-pulse 0.6s ease-in-out infinite alternate;
}

.skill-btn.active small {
  color: rgb(var(--sc));
}

/* Hak rozeti: ücretsiz / envanter adedi / satın al */
.skill-count {
  position: absolute;
  top: -8px;
  left: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #1b2150;
  box-shadow: inset 0 0 0 1px rgba(var(--sc), 0.7);
  color: rgb(var(--sc));
  font: 900 10px "Exo 2", system-ui, sans-serif;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.skill-count.free {
  background: rgb(var(--sc));
  color: #0d1030;
  box-shadow: 0 0 10px rgba(var(--sc), 0.7);
}

.skill-btn.buy {
  box-shadow: inset 0 0 0 1.5px rgba(var(--sc), 0.45), 0 8px 22px rgba(0, 0, 0, 0.4);
  background:
    repeating-linear-gradient(135deg, rgba(var(--sc), 0.06) 0 8px, transparent 8px 16px),
    rgba(16, 20, 46, 0.92);
}

.skill-btn.buy small {
  color: rgb(var(--sc));
}

.skill-btn.wait {
  opacity: 0.45;
}

@keyframes skill-pulse {
  to {
    box-shadow: inset 0 0 0 2px rgb(var(--sc)), 0 0 34px rgba(var(--sc), 0.85), 0 8px 22px rgba(0, 0, 0, 0.4);
  }
}

/* Menü: skill notu ve mağaza düğmesi */
.si-note {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--muted);
}

.si-note b {
  color: #ffe7a3;
}

.btn.store-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
}

.store-btn svg {
  width: 20px;
  height: 20px;
}

.store-btn small {
  flex-basis: 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

/* Mağaza */
.store-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.store-head .title {
  margin: 0;
}

.test-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 190, 60, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 60, 0.6);
  color: #ffd67a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.inv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.inv-item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 60, 0.35);
}

.inv-item.shrink {
  box-shadow: inset 0 0 0 1px rgba(190, 245, 255, 0.35);
}

.inv-item b {
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #ffe7a3;
}

.inv-item.shrink b {
  color: #e8fbff;
}

.inv-item span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.store-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.product {
  --sc: 255, 190, 60;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 12px 12px 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(var(--sc), 0.35);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
}

.product[data-kind="shrink"] {
  --sc: 190, 245, 255;
}

.product[data-kind="bundle"] {
  --sc: 155, 107, 255;
}

.product:hover,
.product:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1.5px rgba(var(--sc), 0.8), 0 0 18px rgba(var(--sc), 0.25);
  outline: none;
}

.product:active {
  transform: scale(0.98);
}

.product.suggest {
  box-shadow: inset 0 0 0 2px rgb(var(--sc)), 0 0 22px rgba(var(--sc), 0.4);
}

.product-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(var(--sc), 0.16);
  box-shadow: inset 0 0 0 1.5px rgba(var(--sc), 0.8), 0 0 14px rgba(var(--sc), 0.35);
  color: rgb(var(--sc));
}

.product-ico svg {
  width: 22px;
  height: 22px;
}

.product[data-kind="bundle"] .product-ico svg {
  width: 17px;
  height: 17px;
}

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

.product-text b {
  font-size: 16px;
  font-style: italic;
  font-weight: 900;
}

.product-text small {
  font-size: 12px;
  color: var(--muted);
}

.product-price {
  flex: none;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(var(--sc), 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.product-tag {
  position: absolute;
  top: -8px;
  right: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b4dff, #ff3d9a);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.store-confirm {
  margin-bottom: 4px;
}

.confirm-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(155, 107, 255, 0.4);
  text-align: left;
  font-weight: 700;
}

.confirm-item b {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.fine {
  margin: 10px 2px 2px;
  font-size: 12px;
  color: #ffd67a;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Menüdeki skill açıklaması */
.skills-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 6px;
}

.si {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 190, 60, 0.4);
}

.si.shrink {
  border-color: rgba(190, 245, 255, 0.4);
}

.si b {
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  color: #ffe7a3;
  text-shadow: 0 0 10px rgba(255, 190, 60, 0.7);
}

.si.shrink b {
  color: #e8fbff;
  text-shadow: 0 0 10px rgba(190, 245, 255, 0.7);
}

.si span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

/* Maç sayacı */
.clock {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  padding: 3px 16px 4px;
  border-radius: 16px;
  background: rgba(16, 20, 46, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(155, 107, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 18px rgba(155, 107, 255, 0.25);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.clock-time {
  font-size: 24px;
  line-height: 1.1;
  font-style: italic;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 10px rgba(155, 107, 255, 0.9);
}

.clock-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  color: #ffe98a;
  text-shadow: 0 0 8px rgba(255, 226, 110, 0.9);
}

.clock-tag:empty {
  display: none;
}

.clock.soon .clock-tag {
  animation: blink 0.5s steps(2, jump-none) infinite;
}

.clock.frenzy {
  border-color: rgba(255, 226, 110, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 26px rgba(255, 226, 110, 0.45);
}

.clock.frenzy .clock-time {
  text-shadow: 0 0 10px rgba(255, 226, 110, 0.95), 0 0 24px rgba(255, 170, 60, 0.6);
}

.clock.final {
  border-color: rgba(255, 61, 154, 0.8);
  animation: throb 1s ease-in-out infinite;
}

.clock.final .clock-time {
  color: #ffe3f0;
  text-shadow: 0 0 10px var(--pink), 0 0 24px var(--pink);
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

@keyframes throb {
  50% {
    transform: translateX(-50%) scale(1.06);
  }
}

.hud-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.hud-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 20, 46, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.hud-btn:hover {
  background: rgba(30, 36, 80, 0.75);
  box-shadow: 0 6px 24px rgba(155, 107, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hud-btn:active {
  transform: scale(0.92);
}

.hud-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
}

.hud-btn svg rect,
.hud-btn svg path:not(.wave) {
  stroke: none;
}

#fsBtn svg path {
  fill: none;
  stroke: currentColor;
}

.hud-btn .off,
.hud-btn .low,
.hud-btn.muted .on,
.hud-btn.low .on {
  display: none;
}

.hud-btn.muted .off,
.hud-btn.low:not(.muted) .low {
  display: block;
}

.hud-btn[aria-expanded="true"] {
  background: rgba(40, 46, 100, 0.85);
  box-shadow: 0 0 0 1px rgba(25, 230, 255, 0.6) inset, 0 6px 24px rgba(25, 230, 255, 0.3);
}

/* Ses seviyesi paneli */
.vol-pop {
  position: fixed;
  z-index: 12;
  top: calc(var(--safe-t) + 62px);
  right: calc(var(--safe-r) + 12px);
  width: min(260px, calc(100vw - 24px));
  padding: 14px 16px 12px;
  border-radius: 18px;
  background: rgba(13, 16, 38, 0.94);
  border: 1px solid rgba(155, 107, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(155, 107, 255, 0.25);
  touch-action: none;
  animation: vol-in 0.18s ease-out;
}

@keyframes vol-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

.vol-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.vol-head span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.vol-head b {
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 10px rgba(25, 230, 255, 0.7);
}

.vol-pop.off .vol-head b {
  color: var(--muted);
  text-shadow: none;
}

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

.vol-mute {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--text);
  cursor: pointer;
}

.vol-mute:hover,
.vol-mute:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  outline: none;
}

.vol-mute svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
}

.vol-mute svg path:not(.wave) {
  stroke: none;
}

.vol-mute .off,
.vol-mute.muted .on {
  display: none;
}

.vol-mute.muted .off {
  display: block;
}

.vol-mute.muted {
  color: var(--pink);
  box-shadow: inset 0 0 0 1px rgba(255, 61, 154, 0.5);
}

.vol-range {
  --v: 100%;
  flex: 1;
  min-width: 0;
  height: 32px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: none;
}

.vol-range:focus {
  outline: none;
}

.vol-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)) 0 0 / var(--v) 100% no-repeat,
    rgba(255, 255, 255, 0.14);
}

.vol-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)) 0 0 / var(--v) 100% no-repeat,
    rgba(255, 255, 255, 0.14);
}

.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(155, 107, 255, 0.55), 0 0 14px rgba(25, 230, 255, 0.7);
}

.vol-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(155, 107, 255, 0.55), 0 0 14px rgba(25, 230, 255, 0.7);
}

.vol-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(25, 230, 255, 0.8);
}

.vol-pop.off .vol-range {
  opacity: 0.45;
}

.vol-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.vol-hint b {
  color: var(--text);
}

@media (pointer: coarse) {
  .vol-hint {
    display: none;
  }
}

.hidden {
  display: none !important;
}

/* ---------- Katmanlar (menü vb.) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-t) + 64px) 18px calc(var(--safe-b) + 20px);
  background: radial-gradient(ellipse at center, rgba(5, 6, 15, 0.35), rgba(5, 6, 15, 0.82));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  overflow-y: auto;
  touch-action: pan-y;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.panel {
  position: relative;
  width: min(420px, 100%);
  margin: auto;
  padding: 30px 24px 22px;
  border-radius: 26px;
  background: var(--glass);
  text-align: center;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(25, 230, 255, 0.7), rgba(155, 107, 255, 0.25) 45%, rgba(255, 61, 154, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.overlay.show .panel {
  transform: none;
}

.panel.small {
  width: min(360px, 100%);
}

/* Logo */
.logo {
  margin-bottom: 24px;
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
}

.logo .l1 {
  display: block;
  font-size: 20px;
  letter-spacing: 0.6em;
  padding-left: 0.6em;
  color: #c9fbff;
  text-shadow: 0 0 6px var(--cyan), 0 0 18px var(--cyan), 0 0 36px rgba(25, 230, 255, 0.6);
  animation: flicker 5s infinite;
}

.logo .l2 {
  display: block;
  margin-top: 6px;
  font-size: clamp(38px, 11vw, 52px);
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 50%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(155, 107, 255, 0.55));
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.45;
  }
}

.logo-rail {
  position: relative;
  height: 14px;
  margin: 16px 24px 0;
}

.logo-rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  opacity: 0.45;
}

.logo-rail i {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff6c4;
  box-shadow: 0 0 10px #ffe98a, 0 0 22px #ffd84a;
  animation: rail 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes rail {
  to {
    left: calc(100% - 14px);
  }
}

/* Form alanları */
.field {
  margin-bottom: 16px;
  text-align: left;
}

.label {
  margin: 0 0 7px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.seg {
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.seg button {
  flex: 1;
  padding: 11px 6px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.seg button:hover {
  color: var(--text);
}

.seg button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(25, 230, 255, 0.28), rgba(155, 107, 255, 0.32));
  box-shadow: inset 0 0 0 1px rgba(25, 230, 255, 0.55), 0 0 18px rgba(25, 230, 255, 0.22);
}

.field.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Kurallar */
.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}

.rule {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(155, 107, 255, 0.3);
}

.rule b {
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(155, 107, 255, 0.9);
}

.rule span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.rule.hot {
  border-color: rgba(255, 226, 110, 0.45);
}

.rule.hot b {
  color: #fff6c4;
  text-shadow: 0 0 10px rgba(255, 226, 110, 0.9);
}

/* Butonlar */
.btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #0fb8e6, #7b4dff, #ff3d9a, #7b4dff, #0fb8e6);
  background-size: 300% 100%;
  animation: shimmer 6s linear infinite;
  box-shadow: 0 12px 32px rgba(123, 77, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  box-shadow: 0 14px 40px rgba(123, 77, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn:active {
  transform: scale(0.97);
}

.btn.ghost {
  padding: 13px;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.06);
  animation: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  text-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

@keyframes shimmer {
  to {
    background-position: 300% 0;
  }
}

.hint {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.hint b {
  color: var(--text);
  font-weight: 700;
}

.hint .c { color: var(--cyan); }
.hint .p { color: var(--pink); }

/* Başlıklar */
.title {
  margin-bottom: 18px;
  font-size: 32px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 12px rgba(155, 107, 255, 0.9), 0 0 30px rgba(155, 107, 255, 0.5);
}

.title.win {
  color: #e6fdff;
  text-shadow: 0 0 10px var(--cyan), 0 0 30px var(--cyan);
}

.title.lose,
.title.pink {
  color: #ffe6f2;
  text-shadow: 0 0 10px var(--pink), 0 0 30px var(--pink);
}

.result-icon {
  font-size: 54px;
  line-height: 1;
  margin-bottom: 8px;
  animation: pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes pop {
  from {
    transform: scale(0.2) rotate(-20deg);
    opacity: 0;
  }
}

.final {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 16px;
  margin: -4px 0 6px;
  font-size: 64px;
  font-weight: 900;
  font-style: italic;
}

.final .s0 {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(25, 230, 255, 0.8);
}

.final .s1 {
  color: var(--pink);
  text-shadow: 0 0 18px rgba(255, 61, 154, 0.8);
}

.final .dash {
  font-size: 40px;
  color: var(--muted);
}

.sub {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* Paylaşım */
.share {
  margin: 4px 0 8px;
  padding: 14px 8px 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.share-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.share-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 6px;
}

.share-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  text-decoration: none;
  cursor: pointer;
}

.share-btn i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--c, #333);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

.share-btn:hover i,
.share-btn:focus-visible i {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35) inset, 0 8px 22px var(--g, rgba(0, 0, 0, 0.4));
}

.share-btn:active i {
  transform: scale(0.92);
}

.share-btn:focus-visible {
  outline: none;
}

.share-btn.native { --c: linear-gradient(135deg, #0fb8e6, #7b4dff, #ff3d9a); --g: rgba(123, 77, 255, 0.6); }
.share-btn.x { --c: #0b0b0f; --g: rgba(255, 255, 255, 0.25); }
.share-btn.wa { --c: #1fb855; --g: rgba(37, 211, 102, 0.55); }
.share-btn.tg { --c: #2aa3df; --g: rgba(42, 163, 223, 0.55); }
.share-btn.fb { --c: #1877f2; --g: rgba(24, 119, 242, 0.55); }
.share-btn.copy { --c: rgba(255, 255, 255, 0.12); --g: rgba(255, 255, 255, 0.2); }

.card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 4px 0;
  width: calc(100% - 8px);
  padding: 8px 12px 8px 8px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.card-link:hover,
.card-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.card-link img {
  width: 40px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: #0c1339;
  box-shadow: 0 0 12px rgba(155, 107, 255, 0.45);
}

.card-link span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-link b {
  font-size: 15px;
}

.card-link small {
  font-size: 12px;
  color: var(--muted);
}

.card-link > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.card-panel {
  padding-top: 18px;
}

.card-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 56vh;
  margin: 0 auto 12px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(155, 107, 255, 0.3);
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}

/* Bildirim */
.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(var(--safe-b) + 24px);
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border-radius: 14px;
  background: rgba(16, 20, 46, 0.95);
  border: 1px solid rgba(155, 107, 255, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

body.skills .toast {
  bottom: calc(var(--safe-b) + 86px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Yatay telefon uyarısı */
#rotateHint {
  display: none;
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(var(--safe-b) + 10px);
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16, 20, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}

@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #rotateHint {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .bg-grid::before,
  .logo .l1,
  .btn,
  .logo-rail i,
  .clock,
  .clock-tag,
  .vol-pop,
  .skill-btn.active,
  body.theme-space .bg::after {
    animation: none;
  }
}

/* ---------- Altın (oyun parası) ---------- */
.coin {
  display: inline-block;
  flex: none;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  vertical-align: -0.16em;
  background:
    radial-gradient(circle at 35% 30%, #fff6c8 0 12%, transparent 13%),
    radial-gradient(circle, #ffd54a 0 52%, #e0a415 53% 62%, #ffcf3a 63% 100%);
  box-shadow: 0 0 0 1px rgba(120, 70, 0, 0.55), 0 0 8px rgba(255, 200, 60, 0.45);
}

.coin-val {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.coin-val.bump {
  animation: coin-bump 0.5s ease;
}

@keyframes coin-bump {
  30% { transform: scale(1.3); color: #fff3b0; text-shadow: 0 0 12px rgba(255, 210, 80, 0.9); }
}

.wallet-row,
.store-coins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -8px 0 16px;
}

.store-coins {
  margin: 0 0 4px;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 205, 70, 0.45), 0 0 16px rgba(255, 190, 40, 0.12);
  font-size: 18px;
}

.wallet b {
  color: #ffe7a3;
  font-style: italic;
  font-weight: 900;
}

.earn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 200, 60, 0.22), rgba(255, 120, 60, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 200, 60, 0.6);
  color: #fff3d0;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
}

.earn-btn:hover {
  background: linear-gradient(135deg, rgba(255, 200, 60, 0.32), rgba(255, 120, 60, 0.26));
  box-shadow: inset 0 0 0 1.5px rgba(255, 210, 90, 0.9), 0 0 16px rgba(255, 190, 40, 0.3);
}

.earn-btn:active {
  transform: scale(0.97);
}

.earn-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.earn-btn .tv {
  width: 18px;
  height: 18px;
  flex: none;
}

.earn-btn b {
  color: #ffd54a;
}

.earn-btn b:empty {
  display: none;
}

.earn-btn.wide {
  display: flex;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
}

.coin-note {
  margin: 0 0 12px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Maç sonu ödülü */
.reward {
  margin: 4px 0 14px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 205, 70, 0.4);
}

.reward-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 30px;
}

.reward-main b {
  color: #ffe08a;
  font-style: italic;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(255, 200, 60, 0.55);
}

.reward-why {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.reward-bal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.reward-bal b {
  color: #ffe7a3;
}

.reward .earn-btn.hidden {
  display: none;
}

/* Kilitli temalar */
.seg[data-group="theme"] button.locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(152, 160, 200, 0.75);
}

.lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px 1px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 800;
  color: #cfc3a0;
}

.lock-tag svg {
  width: 11px;
  height: 11px;
}

.lock-tag.afford {
  color: #ffe08a;
  box-shadow: inset 0 0 0 1px rgba(255, 205, 70, 0.6);
}

/* Tema kilidi: panel altta, üstte tema önizlenir */
.unlock-overlay {
  align-items: flex-end;
  background: linear-gradient(rgba(5, 6, 15, 0) 30%, rgba(5, 6, 15, 0.85) 75%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.unlock-overlay .panel {
  margin: 0 auto;
}

.preview-badge {
  position: fixed;
  top: calc(var(--safe-t) + 18px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(5, 6, 15, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.unlock-panel {
  padding-top: 22px;
}

.unlock-panel .title {
  margin: 4px 0 4px;
  font-size: 26px;
}

.unlock-panel .sub {
  margin: 0 0 12px;
}

.lock-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(255, 205, 70, 0.14);
  box-shadow: inset 0 0 0 1.5px rgba(255, 205, 70, 0.7);
  color: #ffd54a;
}

.lock-ico svg {
  width: 24px;
  height: 24px;
}

.confirm-item .price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffe08a;
}

.unlock-bal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.unlock-bal b {
  color: #ffe7a3;
}

#unlockNeed {
  color: #ff9db8;
  font-weight: 700;
}

#unlockBuy:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* Ödüllü reklam (test) */
.ad-box {
  margin: 4px 0 12px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ad-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 170px;
  background: linear-gradient(120deg, #1d2a6b, #6a2d8f, #b3346d, #1d2a6b);
  background-size: 300% 100%;
  animation: shimmer 5s linear infinite;
  color: #fff;
}

.ad-art span {
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ad-art small {
  font-size: 12px;
  opacity: 0.8;
}

.ad-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ad-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffd54a, #ff8a3d);
  transform: scaleX(0);
  transform-origin: left;
}

/* Mağaza sekmeleri */
.store-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 12px;
  padding: 5px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.store-tabs button {
  padding: 10px 6px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.store-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 200, 60, 0.25), rgba(255, 120, 60, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 205, 70, 0.6), 0 0 16px rgba(255, 190, 40, 0.18);
}

.product[data-kind="theme"] {
  --sc: 150, 170, 230;
}

.product.locked .product-text b {
  color: #c9cde6;
}

.coin-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 205, 70, 0.16) !important;
  color: #ffe08a !important;
  box-shadow: inset 0 0 0 1px rgba(255, 205, 70, 0.5);
}

.coin-price.short {
  opacity: 0.6;
}

.product-price.state {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
}

.product-price.state.selected {
  background: rgba(25, 230, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(25, 230, 255, 0.6);
  color: #c9f7ff;
}

.product-tag.free {
  background: linear-gradient(90deg, #0fb8e6, #27c98a);
}

.need {
  color: #ff9db8;
  font-weight: 700;
}

/* Tema renk örnekleri */
.swatch {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.product[data-kind="theme"] .product-ico {
  background: none;
  box-shadow: none;
}

.sw-water { background: radial-gradient(circle at 30% 30%, #b8f0ff, #3fb2e0 45%, #0d4f7c); }
.sw-neon { background: linear-gradient(135deg, #19e6ff, #7b4dff 55%, #ff3d9a); }
.sw-ice { background: radial-gradient(circle at 30% 25%, #ffffff, #bfefff 30%, #2a8fb8 80%); }
.sw-sand { background: repeating-linear-gradient(135deg, #f0d49a 0 5px, #d9b477 5px 9px); }
.sw-lava { background: radial-gradient(circle at 60% 60%, #ffd05a, #ff6a14 30%, #3a0d05 70%); }
.sw-mud { background: radial-gradient(circle at 70% 30%, #7fae3f 0 14%, transparent 15%), radial-gradient(circle at 35% 60%, #6b4a2a, #2a1a0e 80%); }
.sw-space { background: radial-gradient(ellipse at 50% 90%, rgba(60, 255, 170, 0.7), transparent 60%), linear-gradient(#0b1236, #3a1f7a); }
.sw-crystal { background: conic-gradient(from 20deg, #a85cff, #4678ff, #3ce1eb, #32eb8c, #ffbe46, #ff4682, #a85cff); }
