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

:root {
  --bg-top: #3e11a8;
  --bg-mid: #310b87;
  --bg-bot: #220663;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: radial-gradient(circle at 50% 15%, #4b18bf 0%, #2b087a 55%, #19044d 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

.game-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.game-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bot) 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  padding-top: 10px;
}

/* Üst Bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 8px;
  gap: 8px;
}

.round-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #f4f1ff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.round-num {
  color: #c2ff47;
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jackpot-btn {
  position: relative;
  width: 38px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.15s ease;
}

.jackpot-btn:hover {
  transform: scale(1.08);
}

.jackpot-btn:active {
  transform: scale(0.94);
}

.jackpot-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 70, 0.6) 0%, rgba(255, 215, 70, 0) 72%);
  animation: pulseGlow 2s ease-in-out infinite;
  pointer-events: none;
}

.jackpot-svg {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.top-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.12s ease;
  color: #ffffff;
  font-size: 14px;
}

.top-icon-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

.top-icon-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Bakiye & Günlük Kazanç Çubuğu */
.head-stats-bar {
  position: relative;
  margin: 0 8px 4px;
  height: 50px;
  display: flex;
  align-items: center;
}

.head-stats-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.head-stats-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px 0 12px;
  gap: 4px;
}

.stat-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #f3e8e8;
  white-space: nowrap;
}

.coin-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff49e 0%, #f7b818 55%, #b56d00 100%);
  border: 1.5px solid #ffea85;
  color: #7a4200;
  font-size: 10px;
  font-weight: 900;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.coin-badge.small {
  width: 15px;
  height: 15px;
  font-size: 9px;
}

.stat-value {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffe891;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.reload-gold-btn {
  border: 1px solid #ffe791;
  background: linear-gradient(180deg, #ffdf4d 0%, #f59700 100%);
  color: #3d1c00;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  animation: pulseGlow 1.5s ease-in-out infinite;
}

.reload-gold-btn:active {
  transform: scale(0.94);
}

.rank-btn {
  width: 28px;
  height: 26px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.rank-btn:hover {
  transform: scale(1.08);
}

.rank-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* Ana 3x3 Pano */
.board-stage {
  position: relative;
  padding: 0 22px;
}

.board-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 646 / 648;
  overflow: hidden;
}

.board-frame-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 0;
}

.grid-3x3 {
  position: absolute;
  top: 9.8%;
  bottom: 7.4%;
  left: 8.8%;
  right: 9.2%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow: hidden;
}

/* Meyve Kartları */
.fruit-card {
  position: relative;
  border: none;
  border-radius: 10px;
  padding: 6px 4px 5px;
  cursor: pointer;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.fruit-card:active:not(:disabled) {
  transform: scale(0.95);
}

.fruit-card .card-bg {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 3px 6px rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.card-orange .card-bg      { background: linear-gradient(180deg, #74cbff 0%, #377ce2 100%); }
.card-kiwi .card-bg        { background: linear-gradient(180deg, #b0e05e 0%, #5c9926 100%); }
.card-tomato .card-bg      { background: linear-gradient(180deg, #cca8f7 0%, #7d54b8 100%); }
.card-avocado .card-bg     { background: linear-gradient(180deg, #9f9ceb 0%, #5a55ac 100%); }
.card-watermelon .card-bg  { background: linear-gradient(180deg, #86dc5d 0%, #3d8828 100%); }
.card-lemon .card-bg       { background: linear-gradient(180deg, #f3dc7b 0%, #a98b29 100%); }
.card-dates .card-bg       { background: linear-gradient(180deg, #dd9e74 0%, #8c5637 100%); }
.card-pomegranate .card-bg { background: linear-gradient(180deg, #e190aa 0%, #92455d 100%); }

.fruit-img {
  position: relative;
  z-index: 1;
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.multiplier-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  line-height: 1.1;
}

/* Bahis Miktarı Rozeti */
.bet-chip {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 5;
  background: rgba(20, 8, 42, 0.88);
  border: 1.5px solid #ffd54f;
  border-radius: 999px;
  padding: 1px 5px 1px 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #ffe875;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.mini-coin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff49e 0%, #f7b818 65%, #9e5b00 100%);
  color: #6b3800;
  font-size: 8px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

/* Karartma & Vurgu Efektleri */
.dim-overlay {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgba(5, 5, 16, 0.78);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.2s ease;
}

.fruit-card.is-dimmed .dim-overlay {
  opacity: 1;
}

.fruit-card.is-active-step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 3px solid #ffe44d;
  box-shadow: 0 0 10px #ffd000, inset 0 0 10px rgba(255, 232, 100, 0.65);
  z-index: 6;
  pointer-events: none;
}

.win-bulbs {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 3.5px dotted #fff9b8;
  box-shadow: 0 0 12px 2px #ffe100, inset 0 0 18px 4px rgba(255, 224, 60, 0.75);
  opacity: 0;
  pointer-events: none;
  z-index: 7;
}

.fruit-card.is-winner {
  z-index: 8;
  filter: brightness(1.22) saturate(1.18);
}

.fruit-card.is-winner .win-bulbs {
  opacity: 1;
  animation: winPulse 0.4s ease-in-out infinite alternate;
}

/* Öğretici El İşareti */
.tutorial-finger {
  position: absolute;
  right: -12px;
  bottom: -16px;
  width: 52px;
  height: auto;
  z-index: 12;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  animation: fingerTap 1.1s ease-in-out infinite;
}

.tutorial-finger.hidden {
  display: none;
}

/* Merkez Çekiliş Zamanı Kartı */
.timer-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3d020d;
}

.timer-border-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.timer-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  gap: 5px;
}

.timer-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.2px;
  text-align: center;
}

.timer-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 54%;
}

.digit-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 240, 60, 0.5));
}

.digit-img.dim-digit {
  opacity: 0.22;
  filter: none;
}

/* Sağ Kenar Yüzen Bahis & Tekrarla */
.floating-repeat-wrap {
  position: absolute;
  right: 0;
  bottom: 14px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.total-bet-pill {
  background: linear-gradient(180deg, #4f1a10 0%, #2b0706 100%);
  border: 1.5px solid #ffd147;
  border-right: none;
  border-radius: 999px 0 0 999px;
  padding: 3px 10px 3px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #ffe87a;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.5);
}

.repeat-btn {
  min-width: 78px;
  height: 36px;
  border: 1.5px solid #ffe48a;
  border-right: none;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(180deg, #ffdf4d 0%, #f59700 100%);
  color: #3d1c00;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px 0 14px;
  cursor: pointer;
  box-shadow: -3px 4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.6);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.repeat-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.repeat-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.repeat-btn.disabled,
.repeat-btn:disabled {
  background: linear-gradient(180deg, #dcdcdc 0%, #9b9b9b 100%);
  border-color: #efefef;
  color: #3a3a3a;
  cursor: not-allowed;
  box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.45);
}

/* Alt Sahne & Coin Butonları & Geçmiş Şeridi */
.bottom-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 251;
  margin-top: -6px;
}

.bottom-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  pointer-events: none;
}

.coin-buttons-row {
  position: absolute;
  top: 13%;
  left: 3.5%;
  right: 3.5%;
  height: 44%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  align-items: center;
}

.coin-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.coin-btn img {
  width: 100%;
  max-width: 60px;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}

.coin-btn.active {
  transform: translateY(-3px) scale(1.06);
}

.coin-btn:active {
  transform: scale(0.93);
}

/* Alt Geçmiş Şeridi — Alt Barın İçine Tam Oturan Küçük Kutucuklar */
.history-strip {
  position: absolute;
  top: 67.5%;
  bottom: 6.5%;
  left: 3.4%;
  right: 3.4%;
  z-index: 2;
  padding: 2px 5px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  align-items: center;
  justify-items: center;
}

.history-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(74, 38, 6, 0.85);
  border: 1px solid rgba(255, 212, 110, 0.48);
  border-radius: 6px;
  padding: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(255, 230, 140, 0.15);
}

.history-item img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.new-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ff4733 0%, #c61306 100%);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 0 5px 1px;
  border-radius: 999px;
  border: 1px solid #ffd0c9;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* Tur Sonucu Alt Sayfa & 3'lü Kazanan Podyumu */
.result-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(12, 4, 30, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.result-sheet {
  width: 100%;
  background: linear-gradient(180deg, #471cb3 0%, #2a0a75 100%);
  border-radius: 20px 20px 0 0;
  padding: 0 12px 18px;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideUpSheet 0.24s ease-out;
}

.result-sheet-header {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.result-round-tab {
  background: linear-gradient(180deg, #ffe46b 0%, #f7b818 100%);
  color: #7c4200;
  font-size: 14.5px;
  font-weight: 800;
  padding: 7px 34px 8px;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.result-countdown {
  position: absolute;
  right: 8px;
  top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #dcd3f5;
}

.result-fruit-stage {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 4px 0 2px;
}

.result-light {
  position: absolute;
  width: 128px;
  height: 128px;
  object-fit: contain;
  opacity: 0.78;
  animation: spinSlow 6s linear infinite;
}

.result-fruit-icon {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.result-message {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 12px;
}

.result-message.is-win {
  color: #ffe86b;
}

.podium-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.podium-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
}

.podium-divider p {
  font-size: 13px;
  font-weight: 600;
  color: #e2d8ff;
  white-space: nowrap;
}

.podium-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 6px;
  align-items: end;
}

.podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.podium-frame-wrap {
  position: relative;
  width: 88px;
  aspect-ratio: 480 / 531;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podium-card.rank-1 .podium-frame-wrap {
  width: 104px;
}

.podium-frame-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.podium-avatar {
  position: absolute;
  top: 35.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.podium-card.rank-1 .podium-avatar {
  font-size: 20px;
}

.podium-rank-num {
  position: absolute;
  top: 68.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.podium-card.rank-1 .podium-rank-num {
  font-size: 12.5px;
}

.podium-name {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f3ecff;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-card.is-me .podium-name {
  color: #c2ff47;
}

.podium-amount {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: #ffe875;
}

/* Mini Toast */
.mini-toast {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: rgba(20, 8, 45, 0.94);
  border: 1px solid #ffd54f;
  color: #ffe885;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* Modal — Orijinal Alt Sayfa (Bottom Sheet) Tasarımı */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(12, 4, 30, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-card {
  position: relative;
  width: 100%;
  height: 88%;
  background: linear-gradient(180deg, #4318a8 0%, #2a0a75 100%);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.65);
  animation: slideUpSheet 0.22s ease-out;
}

.modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 10px;
  min-height: 46px;
}

.modal-header h2 {
  background: linear-gradient(180deg, #ffe46b 0%, #f7b818 100%);
  color: #7c4200;
  font-size: 15px;
  font-weight: 800;
  padding: 8px 34px 9px;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-body {
  padding: 8px 14px 20px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.5;
  color: #f3ecff;
  flex: 1;
}

.rules-intro {
  font-size: 13.5px;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 14px;
}

.rules-intro p {
  margin-bottom: 10px;
}

.plan-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.plan-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Kayıt Kartları */
.record-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #dcd3f5;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.record-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 8px;
}

.record-win-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.record-win-left img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.record-status {
  font-size: 13.5px;
  font-weight: 600;
}

.record-status.win { color: #8dff73; }
.record-status.lose { color: #cbbfe8; }

.record-mine-label {
  font-size: 13px;
  color: #e9e2ff;
  margin-bottom: 6px;
}

.record-bets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.record-bet-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #ffe875;
}

.record-bet-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}


/* Günlük Sıralama (Şampiyonlar Listesi) */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
}

.rank-row:last-child {
  border-bottom: none;
}

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

.rank-pos {
  width: 26px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #b7a8e6;
}

.rank-pos.top-rank {
  position: relative;
  border: 1.5px solid #c99b42;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  color: #ffe28a;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 200, 70, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  padding-bottom: 3px;
}

.rank-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.rank-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row.is-me .rank-name {
  color: #c2ff47;
}

.rank-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ffe875;
  flex-shrink: 0;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.modal-primary-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffdf4d 0%, #f59700 100%);
  color: #3a1900;
  font-weight: 800;
  cursor: pointer;
}

@keyframes slideUpSheet {
  from { transform: translateY(30px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.hidden {
  display: none;
}

/* Merkez Çekiliş Zamanı Kartı */
.timer-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3d020d;
}

.timer-border-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
}

.timer-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  gap: 5px;
}

.timer-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.2px;
  text-align: center;
}

.timer-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 54%;
}

.digit-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 240, 60, 0.5));
}

.digit-img.dim-digit {
  opacity: 0.22;
  filter: none;
}

/* Sağ Kenar Yüzen Bahis & Tekrarla */
.floating-repeat-wrap {
  position: absolute;
  right: 0;
  bottom: 14px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.total-bet-pill {
  background: linear-gradient(180deg, #4f1a10 0%, #2b0706 100%);
  border: 1.5px solid #ffd147;
  border-right: none;
  border-radius: 999px 0 0 999px;
  padding: 3px 10px 3px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #ffe87a;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.5);
}

.repeat-btn {
  min-width: 78px;
  height: 36px;
  border: 1.5px solid #ffe48a;
  border-right: none;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(180deg, #ffdf4d 0%, #f59700 100%);
  color: #3d1c00;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px 0 14px;
  cursor: pointer;
  box-shadow: -3px 4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.6);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.repeat-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.repeat-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.repeat-btn.disabled,
.repeat-btn:disabled {
  background: linear-gradient(180deg, #dcdcdc 0%, #9b9b9b 100%);
  border-color: #efefef;
  color: #3a3a3a;
  cursor: not-allowed;
  box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.45);
}

/* Alt Sahne & Coin Butonları & Geçmiş Şeridi */
.bottom-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 251;
  margin-top: -6px;
}

.bottom-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
  pointer-events: none;
}

.coin-buttons-row {
  position: absolute;
  top: 13%;
  left: 3.5%;
  right: 3.5%;
  height: 44%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  align-items: center;
}

.coin-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.coin-btn img {
  width: 100%;
  max-width: 60px;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}

.coin-btn.active {
  transform: translateY(-3px) scale(1.06);
}

.coin-btn:active {
  transform: scale(0.93);
}

/* Alt Geçmiş Şeridi — Alt Barın İçine Tam Oturan Küçük Kutucuklar */
.history-strip {
  position: absolute;
  top: 67.5%;
  bottom: 6.5%;
  left: 3.4%;
  right: 3.4%;
  z-index: 2;
  padding: 2px 5px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  align-items: center;
  justify-items: center;
}

.history-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(74, 38, 6, 0.85);
  border: 1px solid rgba(255, 212, 110, 0.48);
  border-radius: 6px;
  padding: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(255, 230, 140, 0.15);
}

.history-item img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.new-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ff4733 0%, #c61306 100%);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 0 5px 1px;
  border-radius: 999px;
  border: 1px solid #ffd0c9;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* Kazanç Kutlama Katmanı */
.result-toast {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.result-light {
  position: absolute;
  width: 240px;
  height: 240px;
  object-fit: contain;
  opacity: 0.7;
  animation: spinSlow 6s linear infinite;
}

.result-box {
  position: relative;
  width: 250px;
  min-height: 88px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.28s cubic-bezier(0.2, 1.35, 0.4, 1);
}

.result-box-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 16px;
  opacity: 0.94;
}

.result-box-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-fruit-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.result-headline {
  font-size: 15px;
  font-weight: 800;
  color: #ffe86b;
}

.result-sub {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

/* Mini Toast */
.mini-toast {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: rgba(20, 8, 45, 0.94);
  border: 1px solid #ffd54f;
  color: #ffe885;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* Modal */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(12, 4, 30, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  max-height: 82%;
  background: linear-gradient(180deg, #43149e 0%, #24075c 100%);
  border: 2px solid #f2c14e;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 224, 130, 0.25);
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 800;
  color: #ffe885;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
  color: #f3ecff;
}


/* Günlük Sıralama (Şampiyonlar Listesi) */
.rank-list {
  display: flex;
  flex-direction: column;
}

.rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
}

.rank-row:last-child {
  border-bottom: none;
}

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

.rank-pos {
  width: 26px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #b7a8e6;
}

.rank-pos.top-rank {
  position: relative;
  border: 1.5px solid #c99b42;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  color: #ffe28a;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 200, 70, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
  padding-bottom: 3px;
}

.rank-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.rank-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row.is-me .rank-name {
  color: #c2ff47;
}

.rank-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ffe875;
  flex-shrink: 0;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}

.modal-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-row-left img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.modal-primary-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffdf4d 0%, #f59700 100%);
  color: #3a1900;
  font-weight: 800;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes fingerTap {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5px, -6px) scale(0.92); }
}

@keyframes winPulse {
  from { filter: brightness(1); opacity: 0.88; }
  to { filter: brightness(1.3); opacity: 1; }
}

/* Dış Sarı Çerçeve Oynar Işıkları */
.frame-bulbs {
  position: absolute;
  top: 9.2%;
  bottom: 6.2%;
  width: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}

.frame-bulbs-left { left: 1.6%; }
.frame-bulbs-right { right: 1.6%; }

.f-bulb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 15%, #fff08a 55%, #ffaa00 100%);
  box-shadow: 0 0 8px 2px rgba(255, 235, 110, 0.95);
  animation: bulbChase 0.75s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.07s);
}

@keyframes bulbChase {
  0% { opacity: 0.18; transform: scale(0.75); box-shadow: 0 0 2px rgba(255, 220, 80, 0.25); }
  100% { opacity: 1; transform: scale(1.28); box-shadow: 0 0 13px 4px rgba(255, 248, 150, 1); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 390px) {
  .round-label { font-size: 14px; }
  .stat-label { font-size: 10px; }
  .stat-value { font-size: 10.5px; }
  .board-stage { padding: 0 14px; }
  .multiplier-label { font-size: 11px; }
  .timer-title { font-size: 10px; }
}
