﻿/* Cark ekrani - hook dynamic wheel gorunumu */

.cark-panel,
.cark-ust-bar {
  --theme-primary: #38bdf8;
  --theme-primary-rgb: 56, 189, 248;
  --primary: var(--theme-primary);
  --primary-rgb: var(--theme-primary-rgb);
  --ring-accent-rgb: 56, 189, 248;
  --ambient-glow-rgb: 56, 189, 248;
  --clover-accent-rgb: 56, 189, 248;
  --clover-hue: 151deg;
  --stand-accent-rgb: 56, 189, 248;
  --button-gradient-1: #1c5f7c;
  --button-gradient-2: #2a8eba;
  --button-gradient-2-rgb: 42, 142, 186;
  --button-border-color: #38bdf8;
  --button-border-color-rgb: 56, 189, 248;
  --button-glow-color: #38bdf8;
  --button-text-color: #ffffff;
  --button-text-glow: #38bdf8;
  --button-disabled-1: #091217;
  --button-disabled-2: #0a141a;
  --button-disabled-text: rgba(255, 255, 255, 0.4);
  --button-disabled-border: rgba(56, 189, 248, 0.2);
  --spin-button-font: "Poppins";
  --wheel-slices-font: "Montserrat";
  --ink-muted: rgba(255, 255, 255, 0.6);
  --foreground: #ffffff;
}

.cark-panel {
  width: 100%;
  max-width: 1000px;
  margin-top: 8px;
}

.cark-panel[hidden],
.cark-ust-bar[hidden] {
  display: none;
}

/* ---------- Ust bar ---------- */
.cark-ust-bar {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  animation: ck-fade-in 0.4s ease-out;
}

.cark-ust-bar button {
  font: inherit;
  cursor: pointer;
  background: 0;
  border: 0;
}

/* ---------- Sahne ---------- */
.cark-panel .ck-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.cark-panel .ck-stage *,
.cark-panel .ck-stage *::before,
.cark-panel .ck-stage *::after {
  box-sizing: border-box;
}

.cark-panel .ck-stage button {
  font: inherit;
  cursor: pointer;
  background: 0;
  border: 0;
}

.cark-panel .ck-top {
  display: none;
}

.cark-tema .ck-counter {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 6px 6px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.14), #ffffff05);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.35), 0 6px 24px -10px rgba(var(--primary-rgb), 0.8);
}

.cark-tema .ck-counter::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 0 50%, rgba(var(--primary-rgb), 0.16), #0000 60%);
}

.cark-tema .ck-counter-ikon {
  display: inline-flex;
  color: var(--primary);
}

.cark-tema .ck-counter-ikon svg {
  width: 16px;
  height: 16px;
}

.cark-tema .ck-counter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
}

.cark-tema .ck-counter-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 44px;
  padding: 0 14px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 78%, #fff), var(--primary) 55%, color-mix(in srgb, var(--primary) 72%, #000));
  border-radius: 999px;
  box-shadow: inset 0 1px 0 #ffffff80, inset 0 -2px 4px #00000040;
  transition: transform 0.2s ease;
}

.cark-tema .ck-counter.is-artti {
  animation: ck-counter-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cark-tema .ck-counter.is-artti .ck-counter-num {
  transform: scale(1.14);
}

.cark-tema .ck-top-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cark-tema .ck-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--primary);
  background: #ffffff0a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.18);
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.cark-tema .ck-icon-btn:hover:not(:disabled) {
  background: #ffffff14;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.4);
}

.cark-tema .ck-icon-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.cark-tema .ck-icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cark-tema .ck-metin-btn {
  gap: 8px;
  width: auto;
  height: 38px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

.cark-tema .ck-btn-metin {
  color: #fff;
}

.cark-panel .ck-hero {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  justify-content: flex-start;
}

.cark-panel .ck-hero-right {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 16px 24px;
}

.cark-panel .ck-hero-right .casino-scene {
  --wheel-d: min(300px, 68vw);
  margin: 54px 0 8px;
}

/* ---------- Cark sahnesi ---------- */
.cark-panel .casino-scene {
  --casino-ring-radius: calc(var(--wheel-d) * -0.514);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  margin: 60px 0 10px;
}

.cark-panel .casino-scene::before,
.cark-panel .casino-scene::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 50%;
}

.cark-panel .casino-scene::before {
  top: 50%;
  left: 50%;
  width: 650px;
  height: 650px;
  margin-top: -345px;
  margin-left: -325px;
  background: radial-gradient(circle, rgba(var(--ambient-glow-rgb), 0.06) 0, rgba(var(--ambient-glow-rgb), 0.025) 40%, #0000 68%);
  animation: scenePulse 5s ease-in-out infinite;
}

.cark-panel .casino-scene::after {
  top: 50%;
  left: 50%;
  width: 460px;
  height: 460px;
  margin-top: -255px;
  margin-left: -230px;
  background: radial-gradient(circle, rgba(var(--ambient-glow-rgb), 0.04) 0, #0000 60%);
  animation: scenePulse 5s ease-in-out infinite reverse;
  animation-delay: 2.5s;
}

.cark-panel .casino-wheel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--wheel-d) * 1.105);
  height: calc(var(--wheel-d) * 1.105);
}

.cark-panel .casino-ambient-glow {
  position: absolute;
  inset: -6%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--ambient-glow-rgb), 0.09) 0, rgba(var(--ambient-glow-rgb), 0.04) 38%, rgba(var(--ambient-glow-rgb), 0.015) 62%, #0000 78%);
  border-radius: 50%;
  animation: ambientBreath 4s ease-in-out infinite;
}

.cark-panel .casino-outer-ring {
  position: absolute;
  z-index: 0;
  width: calc(var(--wheel-d) * 1.07);
  height: calc(var(--wheel-d) * 1.07);
  pointer-events: none;
  background: radial-gradient(circle, #0000 0, #0000 90.6%, rgba(var(--ring-accent-rgb), 0.3) 91%, rgba(var(--ring-accent-rgb), 1) 91.4%, rgba(var(--ring-accent-rgb), 1) 91.8%, #050508 92.3%, #0e0e12fc 94%, #16161cfa 96%, #1c1c24f7 97.5%, #0c0c10fc 98.2%, rgba(var(--ring-accent-rgb), 0.95) 98.7%, rgba(var(--ring-accent-rgb), 1) 99.2%, rgba(var(--ring-accent-rgb), 0.85) 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #000000fa, 0 0 40px rgba(var(--ring-accent-rgb), 0.55), 0 0 80px rgba(var(--ring-accent-rgb), 0.22), 0 0 140px rgba(var(--ring-accent-rgb), 0.08), inset 0 0 50px #000000e6, inset 0 0 12px rgba(var(--ring-accent-rgb), 0.06);
}

/* ---------- Isik halkasi ---------- */
.cark-panel .ring-bulb {
  width: calc(var(--wheel-d) * 0.029);
  height: calc(var(--wheel-d) * 0.029);
  background:
    radial-gradient(circle at 32% 27%, #fffffff5 0, #ffffff8c 16%, #0000 44%),
    radial-gradient(circle at 62% 68%, #0000006b 0, #0000 52%),
    radial-gradient(circle, #ffffffd9 0, rgba(var(--ring-accent-rgb), 1) 32%, rgba(var(--ring-accent-rgb), 1) 55%, rgba(var(--ring-accent-rgb), 0.7) 78%, rgba(var(--ring-accent-rgb), 0.35) 100%);
  border-radius: 50%;
  animation: bulbChase 2.88s ease-in-out infinite;
}

.cark-panel .ring-spade {
  font-size: calc(var(--wheel-d) * 0.033);
  line-height: 1;
  color: rgb(var(--ring-accent-rgb));
  user-select: none;
  text-shadow: 0 0 7px rgba(var(--ring-accent-rgb), 0.95), 0 0 16px rgba(var(--ring-accent-rgb), 0.65), 0 0 30px rgba(var(--ring-accent-rgb), 0.32), 0 0 50px rgba(var(--ring-accent-rgb), 0.12), 0 1px 4px #000000d9;
  animation: spadePulse 5.76s ease-in-out infinite;
}

/* ---------- Cark ---------- */
.cark-panel .wheel-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--wheel-d);
  height: var(--wheel-d);
  margin: 0;
}

.cark-panel .wheel-container::before {
  position: absolute;
  inset: -10px;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 50% 50%, rgba(var(--theme-primary-rgb), 0.2) 0, #0000 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}

.cark-panel .wheel-container.is-idle {
  animation: idleSpin 45s linear infinite;
}

.cark-panel .wheel-container.is-spinning {
  transform: rotate(0deg);
  animation: none !important;
}

.cark-panel .wheel-container.is-winning {
  transform-origin: center center;
  animation: winPulse 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.cark-panel .cark-rotor {
  position: relative;
  width: 100%;
  height: 100%;
}

.cark-panel .cark-rotor canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.cark-panel .wheel-shine-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  mix-blend-mode: overlay;
  border-radius: 50%;
  opacity: 0.9;
}

.cark-panel .wheel-shine-overlay.classic {
  background: conic-gradient(from 0deg, #ffffff1f 0deg, #fff0 80deg, #ffffff14 180deg, #fff0 280deg, #ffffff1f 1turn), radial-gradient(circle, #0000 42%, #00000059 100%);
}

/* ---------- Cevir butonu ---------- */
.cark-panel .spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--wheel-d) * 0.205);
  height: calc(var(--wheel-d) * 0.205);
  overflow: hidden;
  font-family: var(--spin-button-font), sans-serif;
  font-size: calc(var(--wheel-d) * 0.047);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(145deg, var(--button-gradient-1), var(--button-gradient-2));
  border: 2px solid var(--button-border-color);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--button-glow-color), inset 0 0 20px var(--button-glow-color);
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cark-panel .spin-button::before,
.cark-panel .spin-button::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.cark-panel .spin-button::before {
  inset: 8px;
  background: linear-gradient(145deg, rgba(var(--button-border-color-rgb), 0.3), rgba(var(--button-gradient-2-rgb), 0.4));
  filter: blur(10px);
  opacity: 0.8;
}

.cark-panel .spin-button::after {
  inset: -2px;
  background: linear-gradient(45deg, #0000, rgba(var(--button-border-color-rgb), 0.4), #0000);
  animation: rotate 4s linear infinite;
}

.cark-panel .spin-button span {
  position: relative;
  z-index: 1;
  font-family: var(--spin-button-font), sans-serif;
  font-size: calc(var(--wheel-d) * 0.043);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--button-text-color);
  text-shadow: 2px 2px 4px #0000004d;
}

.cark-panel .spin-button:hover:not(:disabled) {
  border-color: var(--button-border-color);
  box-shadow: 0 0 40px var(--button-glow-color), inset 0 0 30px var(--button-glow-color);
  transform: translate(-50%, -50%) scale(1.05);
}

.cark-panel .spin-button:hover span {
  filter: drop-shadow(0 0 12px var(--button-text-glow));
}

.cark-panel .spin-button:disabled {
  cursor: not-allowed;
  background: linear-gradient(145deg, var(--button-disabled-1), var(--button-disabled-2));
  border-color: var(--button-disabled-border);
  box-shadow: none;
  opacity: 0.7;
}

.cark-panel .spin-button:disabled span {
  color: var(--button-disabled-text);
}

.cark-panel .spin-button.is-spinning:disabled {
  cursor: default;
  background: linear-gradient(145deg, var(--button-gradient-1), var(--button-gradient-2));
  border-color: var(--button-border-color);
  box-shadow: 0 0 30px var(--button-glow-color), inset 0 0 20px var(--button-glow-color);
  opacity: 1;
  animation: none;
}

.cark-panel .spin-button.is-spinning span {
  font-size: calc(var(--wheel-d) * 0.03);
  line-height: 1.04;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: pre-line;
}

.cark-panel .spin-button:not(:disabled):not(.is-spinning) {
  background: linear-gradient(115deg, #0000 30%, #ffffff38 50%, #0000 70%) -150% 0 / 200% 100% no-repeat,
    linear-gradient(145deg, var(--button-gradient-1), var(--button-gradient-2));
  animation: btnShine 4.5s ease-in-out infinite;
}

/* ---------- Gosterge ---------- */
.cark-panel .casino-pointer {
  position: absolute;
  top: calc(var(--wheel-d) * -0.016);
  left: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform: translateX(-50%);
}

.cark-panel .casino-pointer-clover {
  display: block;
  font-size: calc(var(--wheel-d) * 0.113);
  line-height: 1;
  filter: sepia(1) saturate(8) hue-rotate(var(--clover-hue)) brightness(1.15)
    drop-shadow(0 0 14px rgba(var(--clover-accent-rgb), 1))
    drop-shadow(0 0 32px rgba(var(--clover-accent-rgb), 0.65))
    drop-shadow(0 0 60px rgba(var(--clover-accent-rgb), 0.28))
    drop-shadow(0 5px 14px rgba(0, 0, 0, 0.82));
  animation: cloverFloat 3.2s ease-in-out infinite;
}

.cark-panel .casino-pointer-stem {
  width: 3px;
  height: calc(var(--wheel-d) * 0.035);
  margin-top: -3px;
  background: linear-gradient(180deg, rgba(var(--clover-accent-rgb), 0.95) 0, rgba(var(--clover-accent-rgb), 0.55) 60%, #0000 100%);
  border-radius: 2px;
  filter: drop-shadow(0 0 5px rgba(var(--clover-accent-rgb), 0.8));
}

/* ---------- Ayak ---------- */
.cark-panel .casino-stand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(var(--wheel-d) * -0.137);
}

.cark-panel .stand-neck {
  position: relative;
  z-index: -1;
  width: calc(var(--wheel-d) * 0.205);
  height: calc(var(--wheel-d) * 0.342);
  overflow: hidden;
  background: linear-gradient(90deg, #0000 28%, #ffffff0d 42%, #ffffff1a 50%, #ffffff0d 58%, #0000 72%),
    linear-gradient(90deg, #08080f, #1a1a28 10%, #2e2e44 22%, #46465e 36%, #54546e 48%, #54546e 52%, #46465e 64%, #2c2c40 78%, #181826 90%, #08080f);
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85)) drop-shadow(0 1px 4px rgba(var(--stand-accent-rgb), 0.08));
}

.cark-panel .stand-neck::before {
  position: absolute;
  top: 0;
  left: 22%;
  width: 56%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #0000 0, rgba(var(--stand-accent-rgb), 0.55) 25%, rgba(var(--stand-accent-rgb), 0.7) 50%, rgba(var(--stand-accent-rgb), 0.55) 75%, #0000 100%);
}

.cark-panel .stand-neck::after {
  position: absolute;
  top: 10%;
  left: 30%;
  width: 40%;
  height: 45%;
  content: "";
  background: #ffffff0a;
  border-radius: 50%;
  filter: blur(4px);
}

.cark-panel .stand-base {
  position: relative;
  z-index: 2;
  width: calc(var(--wheel-d) * 0.469);
  height: calc(var(--wheel-d) * 0.035);
  overflow: hidden;
  background: linear-gradient(180deg, #4c4c66, #303048 22%, #1c1c2a 55%, #0a0a14 85%, #050508);
  border-radius: 0 0 10px 10px;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.9)) drop-shadow(0 2px 6px rgba(var(--stand-accent-rgb), 0.08));
}

.cark-panel .stand-base::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #0000 0, rgba(var(--stand-accent-rgb), 0.4) 15%, rgba(var(--stand-accent-rgb), 0.65) 40%, rgba(var(--stand-accent-rgb), 0.7) 50%, rgba(var(--stand-accent-rgb), 0.65) 60%, rgba(var(--stand-accent-rgb), 0.4) 85%, #0000 100%);
}

.cark-panel .stand-base::after {
  position: absolute;
  right: 4%;
  bottom: 0;
  left: 4%;
  height: 3px;
  content: "";
  background: #000c;
  border-radius: 0 0 8px 8px;
}

/* ---------- Kazanc modali ---------- */
.cark-panel .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  animation: overlayFade 0.32s ease-out;
}

.cark-panel .modal-overlay[hidden],
.cark-panel .history-overlay[hidden] {
  display: none;
}

.cark-panel .modal-content {
  position: relative;
  width: 92%;
  max-width: 360px;
  padding: 32px 28px 24px;
  overflow: hidden;
  text-align: center;
  background: rgba(26, 34, 52, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  border-radius: 16px;
  box-shadow: 0 24px 60px #00000080, 0 8px 16px #0000004d, inset 0 1px 0 #ffffff0f, 0 0 38px rgba(var(--theme-primary-rgb), 0.12);
  animation: modalPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cark-panel .modal-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: 51%;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, #00000061 0, #00000061 3px, #ffffff12 3px, #ffffff12 22px, #00000038 22px, #00000038 24px),
    linear-gradient(180deg, #4d0a0a 0, #8a1717 45%, #6b1010 100%);
  box-shadow: inset 0 0 80px #000000b3, inset 0 36px 50px #00000073, inset 0 -24px 36px #00000059;
}

.cark-panel .modal-curtain::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  content: "";
  background: linear-gradient(180deg, #d6a82a 0, #9a7416 60%, #5a4208 100%);
  box-shadow: 0 2px 6px #00000073;
}

.cark-panel .modal-curtain--left {
  left: 0;
  border-right: 1px solid #00000080;
  border-radius: 16px 0 0 16px;
  animation: curtainOpenLeft 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.55s forwards;
}

.cark-panel .modal-curtain--right {
  right: 0;
  border-left: 1px solid #00000080;
  border-radius: 0 16px 16px 0;
  animation: curtainOpenRight 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.55s forwards;
}

.cark-panel .modal-reveal {
  opacity: 0;
  transform: scale(0.92);
  animation: modalReveal 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 1.35s forwards;
}

.cark-panel .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #ffffff73;
  background: #0000;
  border: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.cark-panel .modal-close:hover {
  color: #fff;
  background: #ffffff0f;
}

.cark-panel .modal-close:active {
  transform: scale(0.94);
}

.cark-panel .modal-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 4px auto 18px;
  color: var(--theme-primary);
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.16) 0, rgba(var(--theme-primary-rgb), 0.06) 100%);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.45);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.3) rotate(-25deg);
  animation: checkPop 0.55s cubic-bezier(0.34, 1.7, 0.64, 1) 1.95s forwards;
}

.cark-panel .modal-check svg path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: tickDraw 0.4s cubic-bezier(0.55, 0.08, 0.45, 1) 2.3s forwards;
}

.cark-panel .modal-title {
  margin: 0 0 6px;
  font-family: Poppins, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.cark-panel .modal-subtitle {
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #ffffff80;
}

.cark-panel .modal-prize {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: hsla(0, 0%, 100%, 0.025);
  border: 1px solid #ffffff0f;
  border-radius: 10px;
}

.cark-panel .modal-prize__label {
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ffffff6b;
  text-transform: uppercase;
}

.cark-panel .modal-prize__value {
  font-family: Poppins, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.cark-panel .modal-prize__value > div + div {
  margin-top: 4px;
}

.cark-panel .modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--button-text-color);
  background: linear-gradient(135deg, var(--button-gradient-1) 0, var(--button-gradient-2) 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cark-panel .modal-cta:hover {
  box-shadow: 0 6px 16px rgba(var(--theme-primary-rgb), 0.35);
  transform: translateY(-1px);
}

.cark-panel .modal-cta:active {
  transform: translateY(0);
}

/* ---------- Gecmis modali ---------- */
.cark-panel .history-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  animation: overlayFade 0.28s ease-out;
}

.cark-panel .history-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 92%;
  max-width: 440px;
  max-height: 76vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0, rgba(var(--theme-primary-rgb), 0.08) 0, #0000 55%),
    linear-gradient(180deg, rgba(15, 12, 18, 0.3) 0, rgba(10, 8, 14, 0.38) 100%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  border-radius: 16px;
  box-shadow: 0 24px 60px #00000073, inset 0 1px 0 #ffffff0d, 0 0 38px rgba(var(--theme-primary-rgb), 0.12);
  animation: modalPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cark-panel .history-modal__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.1);
}

.cark-panel .history-modal__title {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cark-panel .history-modal__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.12);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.22);
  border-radius: 999px;
}

.cark-panel .history-modal__header .modal-close {
  position: static;
}

.cark-panel .history-modal__list {
  flex: 1 1;
  padding: 6px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ffffff1a #0000;
}

.cark-panel .history-modal__list::-webkit-scrollbar {
  width: 5px;
}

.cark-panel .history-modal__list::-webkit-scrollbar-thumb {
  background: rgba(var(--theme-primary-rgb), 0.18);
  border-radius: 3px;
}

.cark-panel .history-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 20px;
  transition: background 0.15s ease;
}

.cark-panel .history-row:hover {
  background: rgba(var(--theme-primary-rgb), 0.05);
}

.cark-panel .history-row + .history-row {
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.06);
}

.cark-panel .history-row__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cark-panel .history-row__dot--success {
  background: var(--theme-primary);
  box-shadow: 0 0 8px rgba(var(--theme-primary-rgb), 0.5);
}

.cark-panel .history-row__main {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cark-panel .history-row__prize {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #f1f5f9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cark-panel .history-row__date {
  font-size: 11.5px;
  font-weight: 500;
  color: #fff6;
}

.cark-panel .history-modal__empty {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  text-align: center;
}

.cark-panel .history-modal__empty-icon {
  color: #ffffff4d;
}

.cark-panel .history-modal__empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff80;
}

/* ---------- Duyarli ---------- */
@media (min-width: 1024px) {
  .cark-ust-bar {
    gap: 24px;
  }

  .cark-panel .ck-hero {
    align-items: center;
    padding: 0 56px 16px;
  }

  .cark-panel .ck-hero-right .casino-scene {
    --wheel-d: clamp(360px, 30vw, 440px);
    margin: 30px 0 0;
  }
}

@media (max-width: 480px) {
  .cark-tema .ck-counter-label {
    display: none;
  }

  .cark-tema .ck-icon-btn {
    width: 36px;
    height: 36px;
  }

  .cark-tema .ck-metin-btn {
    width: auto;
    padding: 0 12px;
    font-size: 12px;
  }

  .cark-panel .ck-hero-right {
    padding: 4px 14px 22px;
  }

  .cark-panel .ck-hero-right .casino-scene {
    --wheel-d: min(270px, 74vw);
    margin-top: 46px;
  }

  .cark-panel .modal-content {
    max-width: 320px;
    padding: 26px 22px 22px;
    border-radius: 14px;
  }

  .cark-panel .modal-title {
    font-size: 18px;
  }

  .cark-panel .modal-prize__value {
    font-size: 19px;
  }

  .cark-panel .history-modal {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cark-panel .wheel-container,
  .cark-panel .spin-button,
  .cark-panel .history-row,
  .cark-panel .ring-bulb,
  .cark-panel .ring-spade {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Animasyonlar ---------- */
@keyframes idleSpin {
  0% { transform: rotate(0deg); }
  to { transform: rotate(1turn); }
}

@keyframes winPulse {
  0% { filter: brightness(1) drop-shadow(0 0 50px rgba(var(--theme-primary-rgb), 0.22)); transform: scale(1); }
  35% { filter: brightness(1.35) drop-shadow(0 0 90px rgba(var(--theme-primary-rgb), 0.7)); transform: scale(1.055); }
  70% { filter: brightness(1.15) drop-shadow(0 0 70px rgba(var(--theme-primary-rgb), 0.45)); transform: scale(1.02); }
  to { filter: brightness(1) drop-shadow(0 0 50px rgba(var(--theme-primary-rgb), 0.22)); transform: scale(1); }
}

@keyframes glowPulse {
  0%, to { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes scenePulse {
  0%, to { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes ambientBreath {
  0%, to { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

@keyframes cloverFloat {
  0%, to { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
}

@keyframes btnShine {
  0%, 70% { background-position: -150% 0, 0 0; }
  88%, to { background-position: 260% 0, 0 0; }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  to { transform: rotate(1turn); }
}

@keyframes bulbChase {
  0%, to {
    box-shadow: 0 0 0 2.5px #000000eb, 0 0 0 4.5px #14120cd1, 0 0 5px rgba(var(--ring-accent-rgb), 0.4), 0 0 12px rgba(var(--ring-accent-rgb), 0.22), 0 0 24px rgba(var(--ring-accent-rgb), 0.1), inset 0 -4px 8px #00000080;
    opacity: 0.55;
  }
  45%, 55% {
    box-shadow: 0 0 0 2.5px #000000eb, 0 0 0 4.5px #14120cd1, 0 0 16px rgba(var(--ring-accent-rgb), 1), 0 0 34px rgba(var(--ring-accent-rgb), 0.85), 0 0 60px rgba(var(--ring-accent-rgb), 0.55), 0 0 100px rgba(var(--ring-accent-rgb), 0.2), inset 0 -4px 8px #0006;
    opacity: 1;
  }
}

@keyframes spadePulse {
  0%, to { filter: brightness(0.75) saturate(0.9); }
  50% { filter: brightness(1.25) saturate(1.1) drop-shadow(0 0 7px rgba(var(--ring-accent-rgb), 0.7)); }
}

@keyframes ck-fade-in {
  0% { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ck-counter-pop {
  0%, to { box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.35), 0 6px 24px -10px rgba(var(--primary-rgb), 0.8); }
  40% { box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.9), 0 0 0 10px rgba(var(--primary-rgb), 0.18); }
}

@keyframes overlayFade {
  0% { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.86) translateY(24px); }
  55% { opacity: 1; transform: scale(1.025) translateY(-4px); }
  78% { transform: scale(0.99) translateY(1px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes curtainOpenLeft {
  0% { opacity: 1; transform: translateX(0) scaleX(1); }
  85% { opacity: 0.9; transform: translateX(-92%) scaleX(0.85); }
  to { opacity: 0; transform: translateX(-102%) scaleX(0.75); }
}

@keyframes curtainOpenRight {
  0% { opacity: 1; transform: translateX(0) scaleX(1); }
  85% { opacity: 0.9; transform: translateX(92%) scaleX(0.85); }
  to { opacity: 0; transform: translateX(102%) scaleX(0.75); }
}

@keyframes modalReveal {
  0% { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes checkPop {
  0% { box-shadow: 0 0 0 0 rgba(var(--theme-primary-rgb), 0.45); opacity: 0; transform: scale(0.3) rotate(-25deg); }
  60% { box-shadow: 0 0 0 12px rgba(var(--theme-primary-rgb), 0.15); opacity: 1; transform: scale(1.18) rotate(8deg); }
  to { box-shadow: 0 0 0 20px rgba(var(--theme-primary-rgb), 0); opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes tickDraw {
  to { stroke-dashoffset: 0; }
}
