/* Copyright 2013 The Chromium Authors. All rights reserved. */

* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #0c2b54 0%, #041021 100%);
  font-family: 'Outfit', 'Open Sans', system-ui, -apple-system, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
}

/* 16:9 Dikey Oyun Alanı - Tüm Telefon ve Ekranlara Kusursuz Uyum */
.interstitial-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  max-width: calc(100vh * 9 / 16);
  max-width: calc(100dvh * 9 / 16);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0288d1;
  border: none !important;
  box-shadow: none !important;
  touch-action: none;
}

@media (min-width: 769px) {
  .interstitial-wrapper {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85) !important;
  }
}

/* Sadece dikey oranlı gerçek mobil ekranlarda 100% genişlik; masaüstünde sekme daralırken 9:16 oranını korusun */
@media (max-aspect-ratio: 9/16) {
  .interstitial-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    box-shadow: none !important;
  }
}

.offline .runner-container {
  height: 100% !important;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
}

.offline .runner-canvas {
  height: 100% !important;
  width: 100% !important;
  max-width: none !important;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  transform: translateZ(0);
  will-change: transform;
  touch-action: none !important;
  -webkit-touch-callout: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.icon, .hidden, #offline-resources {
  display: none !important;
}

/* Start Screen Overlay (Holy Rabbit Frosted Glass Style) */
.start-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  cursor: pointer;
  animation: fadeIn 0.3s ease-out;
}

.start-card {
  background: rgba(22, 28, 42, 0.85);
  backdrop-filter: saturate(180%) blur(25px);
  -webkit-backdrop-filter: saturate(180%) blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 26px 14px 22px 14px;
  width: 92%;
  max-width: 356px;
  text-align: center;
  color: #fff;
  animation: scaleUpModal 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.start-title {
  margin: 0 0 18px 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(180deg, #ffe082 0%, #ffb300 50%, #ff8f00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 179, 0, 0.45));
}

.control-hints {
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 12px 10px;
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.key-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px 6px 10px 6px;
  min-width: 82px;
  flex: 1;
  max-width: 98px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hint-char-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: none !important;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.hint-turbo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  transform: scale(1.08);
}

.key-arrow-txt {
  font-size: 32px;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

.key-pill.key-pill-turbo {
  min-width: 82px;
  border-color: rgba(251, 146, 60, 0.35);
  background: radial-gradient(circle, rgba(251, 146, 60, 0.09) 0%, rgba(255, 255, 255, 0.03) 70%, transparent 100%);
}

.key-turbo-icon {
  font-size: 32px;
  font-weight: 900;
  color: #fb923c;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 14px rgba(251, 146, 60, 0.85);
}

.start-button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22) 0%, rgba(0, 229, 255, 0.04) 70%, transparent 100%);
  border: 2px solid rgba(0, 229, 255, 0.65);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.35), inset 0 0 12px rgba(0, 229, 255, 0.18);
  color: #00e5ff;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.start-svg {
  width: 38px;
  height: 38px;
  color: #00e5ff;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.9));
  transition: transform 0.25s ease;
}

.start-button:hover {
  transform: scale(1.15);
  border-color: #00e5ff;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.8), inset 0 0 14px rgba(0, 229, 255, 0.4);
}

.start-button:hover .start-svg {
  transform: scale(1.08);
}

.start-button:active {
  transform: scale(0.92);
}

/* Touch Controls Bar (Bottom) - Frameless, Clean Symbols */
.touch-controls {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: calc(100vh * 9 / 16);
  max-width: calc(100dvh * 9 / 16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 40;
  pointer-events: none;
  touch-action: none;
  transform: translateZ(0);
}

.touch-btn {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #00e5ff;
  border-radius: 0;
  width: 72px;
  height: 72px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.25s ease;
}

.touch-arrow-svg {
  width: 50px;
  height: 50px;
  display: block;
  pointer-events: none;
  color: #a5f3fc;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.85));
  transform: translateZ(0);
}

.boost-svg {
  width: 46px;
  height: 46px;
  display: block;
  pointer-events: none;
  color: #ffeb3b;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.9));
  transform: translateZ(0);
}

.touch-arrow-svg path, .boost-svg path, .start-svg path, .restart-svg path {
  fill: currentColor;
}

.boost-btn {
  padding: 0;
}

/* Hoş geldin yön oku animasyonu — transform & opacity ile %100 GPU hızlandırmalı */
.touch-controls.is-welcome-blink .touch-btn,
.touch-btn.is-welcome-blink {
  animation: welcomeTouchBlink 1.8s ease-in-out 3 both !important;
  will-change: transform, opacity;
}

@keyframes welcomeTouchBlink {
  0% {
    transform: scale(0.95) translateZ(0);
    opacity: 0;
  }
  15%, 45% {
    transform: scale(1.18) translateZ(0);
    opacity: 1;
  }
  75%, 100% {
    transform: scale(0.92) translateZ(0);
    opacity: 0;
  }
}

/* Dokunulduğunda / Basılı tutulduğunda anında geri bildirim — 60 FPS GPU dostu */
.touch-btn:active, .touch-btn.active {
  opacity: 1 !important;
  transform: scale(1.2) translateZ(0) !important;
  filter: drop-shadow(0 0 10px currentColor) !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

body.inverted { background-color: #020b14 !important; }

/* Game Over Overlay & Card */
.game-over-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 11, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 55;
  animation: fadeIn 0.3s ease-out;
}

/* Shishiden (Namba Yasaka Lion Head Stage) Finish Menu */
/* Shishiden (Namba Yasaka Lion Head Stage) Finish Menu */
.shishiden-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(85%, calc((100dvh - 130px) * 0.72));
  max-width: 480px;
  animation: shishiPopIn 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  container-type: inline-size;
}

@keyframes shishiPopIn {
  0% { transform: scale(0.82) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.shishiden-header {
  text-align: center;
  margin-bottom: clamp(2px, 1.2cqi, 8px);
}

.shishiden-title {
  margin: 0;
  font-size: clamp(18px, 6.5cqi, 32px);
  font-weight: 900;
  letter-spacing: clamp(1px, 0.4cqi, 2.5px);
  background: linear-gradient(180deg, #ffe082 0%, #ffb300 45%, #ff8f00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 179, 0, 0.45));
}

.shishiden-subtitle {
  display: inline-block;
  font-size: clamp(9px, 3cqi, 14px);
  font-weight: 700;
  letter-spacing: clamp(0.8px, 0.3cqi, 1.6px);
  color: rgba(167, 243, 208, 0.9);
  margin-top: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

.shishiden-subtitle:hover {
  color: #a7f3d0;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  transform: scale(1.05);
}

.shishiden-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  animation: shishiAura 3.6s ease-in-out infinite;
}

@keyframes shishiAura {
  0%, 100% {
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 15px rgba(52, 211, 153, 0.25));
  }
  50% {
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(255, 215, 0, 0.35));
  }
}

.shishiden-lion {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 3; /* Front frame: fangs and pillars frame the stage */
}

/* Eye Sockets for Scores: Left Eye = Best Score (Crown), Right Eye = Current Score (Star) */
.shishiden-eye {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 48% 48% 44% 44%;
  pointer-events: none;
  box-sizing: border-box;
  padding: 1% 2%;
}

.shishiden-eye.left-eye {
  left: 16.5%;
  top: 24.3%;
  width: 20.8%;
  height: 13.8%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, 0.42) 0%, rgba(5, 25, 40, 0.95) 75%, #000 100%);
  box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.55);
}

.shishiden-eye.right-eye {
  left: 62.4%;
  top: 24.4%;
  width: 21.1%;
  height: 13.6%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 179, 0, 0.42) 0%, rgba(35, 20, 5, 0.95) 75%, #000 100%);
  box-shadow: inset 0 0 14px rgba(255, 179, 0, 0.55);
}

.shishi-eye-label {
  font-size: clamp(8px, 2.8cqi, 13px);
  line-height: 1;
  margin-bottom: 1px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.shishi-eye-wiw {
  width: clamp(10px, 3.8cqi, 18px);
  height: clamp(10px, 3.8cqi, 18px);
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9));
  margin-bottom: 1px;
  display: block;
}

.shishi-eye-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(10px, 3.8cqi, 18px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.4px;
  white-space: nowrap;
  max-width: 90%;
  text-align: center;
}

.shishiden-eye.left-eye .shishi-eye-value {
  color: #e0f7fa;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.9), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.shishiden-eye.right-eye .shishi-eye-value {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 179, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* The Mouth Stage Area (Mouth is 20.3% from left, 57.8% from top, 59.7% wide, 27.1% high) */
.shishiden-stage {
  position: absolute;
  left: 20.3%;
  top: 57.8%;
  width: 59.7%;
  height: 27.1%;
  z-index: 2;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 50% 25%, rgba(255, 215, 0, 0.2) 0%, rgba(24, 15, 42, 0.98) 60%, #040208 100%);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.95), inset 0 -4px 10px rgba(255, 179, 0, 0.2);
  border-bottom: 2.5px solid rgba(255, 215, 0, 0.4);
  padding: 3px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.shishiden-stage:hover {
  filter: brightness(1.2);
}

.shishiden-stage:active {
  transform: scale(0.97);
}

.shishiden-actor-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.shishiden-takoyaki {
  width: auto;
  height: 80%;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 14px rgba(251, 146, 60, 0.6));
  animation: takoyakiDance 1.8s ease-in-out infinite alternate;
}

@keyframes takoyakiDance {
  0% { transform: translateY(0) rotate(-3deg) scale(0.98); }
  100% { transform: translateY(-3px) rotate(3deg) scale(1.04); }
}

/* =========================================================
   SHISHIDEN ACTION BUTTONS (Ayarlar + Paylaş + Liderlik + Yeniden Başlat)
   ========================================================= */
.shishiden-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3.2cqi, 18px);
  width: 100%;
  margin-top: clamp(6px, 2.5cqi, 16px);
  z-index: 10;
}

.shishiden-settings-btn {
  width: clamp(40px, 14cqi, 62px);
  height: clamp(40px, 14cqi, 62px);
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0.05) 70%, transparent 100%) !important;
  border: 2px solid rgba(0, 229, 255, 0.6) !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.25) !important;
  color: #00e5ff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.shishiden-settings-btn:hover {
  transform: scale(1.15) rotate(45deg);
  border-color: #00e5ff !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.8), inset 0 0 14px rgba(0, 229, 255, 0.4) !important;
}

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

.shishiden-settings-btn .settings-svg {
  width: clamp(20px, 7cqi, 32px);
  height: clamp(20px, 7cqi, 32px);
  color: #00e5ff;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.9));
  transition: transform 0.35s ease;
}

/* Shishiden Share (Paylaş) Butonu - Çarkın Sağı */
.shishiden-share-btn {
  width: clamp(40px, 14cqi, 62px);
  height: clamp(40px, 14cqi, 62px);
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 245, 155, 0.22) 0%, rgba(0, 245, 155, 0.05) 70%, transparent 100%) !important;
  border: 2px solid rgba(0, 245, 155, 0.65) !important;
  box-shadow: 0 0 16px rgba(0, 245, 155, 0.4), inset 0 0 10px rgba(0, 245, 155, 0.22) !important;
  color: #00f59b;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.shishiden-share-btn:hover {
  transform: scale(1.15);
  border-color: #00f59b !important;
  box-shadow: 0 0 26px rgba(0, 245, 155, 0.85), inset 0 0 14px rgba(0, 245, 155, 0.45) !important;
}

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

.shishiden-share-btn .share-svg {
  width: clamp(19px, 6.5cqi, 30px);
  height: clamp(19px, 6.5cqi, 30px);
  color: #00f59b;
  filter: drop-shadow(0 0 12px rgba(0, 245, 155, 0.9));
  transition: transform 0.35s ease;
}

.shishiden-share-btn:hover .share-svg {
  transform: scale(1.12);
}

/* Shishiden Leaderboard (Rekor Sıralaması) Butonu */
.shishiden-leaderboard-btn {
  width: clamp(40px, 14cqi, 62px);
  height: clamp(40px, 14cqi, 62px);
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(255, 180, 0, 0.06) 70%, transparent 100%) !important;
  border: 2px solid rgba(255, 215, 0, 0.7) !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.2) !important;
  color: #ffd700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.shishiden-leaderboard-btn:hover {
  transform: scale(1.15);
  border-color: #ffd700 !important;
  box-shadow: 0 0 26px rgba(255, 215, 0, 0.85), inset 0 0 14px rgba(255, 215, 0, 0.45) !important;
}

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

.shishiden-leaderboard-btn .leaderboard-svg {
  width: clamp(20px, 7cqi, 32px);
  height: clamp(20px, 7cqi, 32px);
  color: #ffd700;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.9));
  transition: transform 0.35s ease;
}

.shishiden-leaderboard-btn:hover .leaderboard-svg {
  transform: translateY(-2px) scale(1.08);
}

.shishiden-restart-btn {
  width: clamp(40px, 14cqi, 62px);
  height: clamp(40px, 14cqi, 62px);
  border-radius: 50%;
  padding: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0.05) 70%, transparent 100%) !important;
  border: 2px solid rgba(0, 229, 255, 0.6) !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.25) !important;
  color: #00e5ff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shishiden-restart-btn:hover {
  transform: scale(1.15);
  border-color: #00e5ff !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.8), inset 0 0 14px rgba(0, 229, 255, 0.4) !important;
}

.shishiden-restart-btn:hover .restart-svg {
  transform: rotate(180deg);
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 1));
}

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

.restart-svg {
  width: clamp(26px, 9cqi, 40px);
  height: clamp(26px, 9cqi, 40px);
  color: #00e5ff;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.9));
  transition: transform 0.35s ease;
}

/* =========================================================
   IN-GAME HUD SETTINGS BUTTON (Right of Osakki Brand)
   ========================================================= */
.hud-settings-btn {
  position: absolute;
  top: calc(21 / 640 * 100%);
  left: calc(88 / 360 * 100%);
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 24, 54, 0.55);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  border-radius: 50%;
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35), inset 0 0 8px rgba(0, 229, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 45;
  outline: none;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.hud-settings-btn:hover {
  background: rgba(0, 229, 255, 0.28);
  border-color: #00e5ff;
  color: #ffffff;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.85), inset 0 0 10px rgba(0, 229, 255, 0.45);
}

.hud-settings-btn:hover .hud-pause-svg,
.hud-settings-btn:hover .hud-settings-svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 1));
}

.hud-settings-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.hud-pause-svg,
.hud-settings-svg {
  width: 14px;
  height: 14px;
  display: block;
  pointer-events: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.9));
}

/* =========================================================
   SETTINGS & PLAYER PROFILE MODAL (Holy Rabbit Frosted Glass Style)
   ========================================================= */
.settings-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease-out;
}

.settings-card {
  width: 100%;
  max-width: 326px;
  max-height: 92vh;
  background: rgba(22, 28, 42, 0.85);
  backdrop-filter: saturate(180%) blur(25px);
  -webkit-backdrop-filter: saturate(180%) blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  animation: scaleUpModal 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

@keyframes scaleUpModal {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.settings-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-pause-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
  animation: pausePulse 1.8s ease-in-out infinite;
}

@keyframes pausePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.96); }
}

.settings-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.settings-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 16px;
}

.settings-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.settings-close-btn:hover {
  background: rgba(233, 76, 76, 0.2);
  border-color: rgba(233, 76, 76, 0.4);
  color: #e94c4c;
  transform: rotate(90deg);
}

.settings-scroll-content {
  padding: 14px 16px 18px 16px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-scroll-content::-webkit-scrollbar {
  display: none;
}

/* Profil Kartı (Holy Rabbit Temiz Akış) */
.profile-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  position: relative;
}

/* Avatar: Sadece Oyuncunun Ülke Bayrağı (Tam Ortalanmış) */
.profile-avatar-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.profile-avatar-frame {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  background: #0d121c;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 229, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.profile-avatar-frame:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55), 0 0 22px rgba(0, 229, 255, 0.35);
}

.prof-avatar-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
}

/* Türk bayrağının hilal ve yıldızını dairesel avatar çerçevesinde tam merkeze ortala */
.prof-avatar-flag.flag-tr,
.prof-avatar-flag[src*="/tr.png"] {
  object-position: 28% center;
}

/* Oyuncu İsmi Düzenleme Alanı (Holy Rabbit Kart Stili) */
.profile-stat-item.profile-name-box {
  cursor: text;
  gap: 6px;
}

.profile-stat-item.profile-name-box:hover,
.profile-stat-item.profile-name-box:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 55%), rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

.profile-stat-item.profile-name-box input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  text-align: center;
  padding: 0 6px;
  outline: none;
  letter-spacing: 0.5px;
}

.prof-name-pencil {
  font-size: 16px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  user-select: none;
}

.profile-stat-item.profile-name-box:hover .prof-name-pencil {
  opacity: 1;
  transform: scale(1.15);
}

/* İsim Balonu ve Durum İkonları (Balon İçi Renk ve Kalem İkonu Değişimi) */
.profile-stat-item.profile-name-box {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.profile-stat-item.profile-name-box input {
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Kullanılabilir İsim: Balon ve Yazı Yeşil, Onay İkonu */
.profile-stat-item.profile-name-box.is-valid {
  border-color: rgba(34, 197, 94, 0.75) !important;
  background: rgba(34, 197, 94, 0.12) !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.35) !important;
}

.profile-stat-item.profile-name-box.is-valid input {
  color: #22c55e !important;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5) !important;
}

/* Kullanılamayan / Alınmış İsim: Balon ve Yazı Kırmızı, X İkonu */
.profile-stat-item.profile-name-box.is-invalid {
  border-color: rgba(239, 68, 68, 0.75) !important;
  background: rgba(239, 68, 68, 0.12) !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35) !important;
}

.profile-stat-item.profile-name-box.is-invalid input {
  color: #ef4444 !important;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
}

/* Taranırken / Kontrol Edilirken: Dönen Yeniden Başlat İkonu */
.profile-stat-item.profile-name-box.is-scanning {
  border-color: rgba(0, 229, 255, 0.6) !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25) !important;
}

.name-icon-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.name-icon-spin {
  animation: spinRestartIcon 0.7s linear infinite;
  color: #00e5ff;
}

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

/* İkonlu Bilgi Listesi (Holy Rabbit Ürün / Liste Kartı Stili) */
.profile-stats-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-stat-item {
  width: 100%;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 11px 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.profile-stat-item.id-item {
  cursor: pointer;
}

.profile-stat-item.id-item:hover {
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 55%), rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Puan ve Tarih Barı (Holy Rabbit İkili Kart Stili) */
.profile-split-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 11px 14px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.profile-split-bar:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.split-bar-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.split-bar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.split-bar-item .score-value {
  font-size: 18px;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  font-family: 'Outfit', sans-serif;
}

.split-bar-item .date-value {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.3px;
  font-family: inherit;
}

.stat-icon {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.trophy-icon {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.prof-wiw-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.75));
  display: block;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.stat-value.id-value {
  color: #38bdf8;
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.stat-action {
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.2s, opacity 0.2s;
}

.profile-stat-item.id-item:hover .stat-action {
  transform: scale(1.15);
  opacity: 1;
}

/* Ses Ayarları (Holy Rabbit Minimalist Kart) */
.audio-settings-icon-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 11px 18px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.audio-icon-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-glyph {
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
  user-select: none;
  line-height: 1;
}

.audio-bar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}

/* iOS Tarzı Parlak Cyan Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: 0.25s ease;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #00e5ff;
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: #041021;
}

/* =========================================================
   🎮 OYUNCU PROFİLİ ALT BAR: 3 BÖLÜM (Holy Rabbit Denge)
   ========================================================= */
.profile-footer-3bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  box-sizing: border-box;
}

/* 0. Bölüm: Ta Denkmal Yapım Stüdyosu Logosu (37x37, Aurasız, Yuvarlaksız, Saf Logo) */
.prof-studio-logo-link,
.prof-footer-circle-studio {
  width: 37px !important;
  height: 37px !important;
  min-width: 37px !important;
  min-height: 37px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.prof-studio-logo-link:hover,
.prof-footer-circle-studio:hover {
  transform: scale(1.12) !important;
  border: none !important;
  box-shadow: none !important;
}

.prof-studio-logo-link:active,
.prof-footer-circle-studio:active {
  transform: scale(0.92) !important;
}

.prof-studio-logo-img {
  width: 37px !important;
  height: 37px !important;
  max-width: 37px !important;
  max-height: 37px !important;
  object-fit: contain;
  vertical-align: middle;
  filter: none !important;
  box-shadow: none !important;
  transition: transform 0.25s ease !important;
}

.prof-studio-logo-link:hover .prof-studio-logo-img,
.prof-footer-circle-studio:hover .prof-studio-logo-img {
  filter: none !important;
  box-shadow: none !important;
}

/* 1. Bölüm: Oyun Sürümü Rozeti */
.prof-footer-col-ver {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.prof-footer-col-ver .prof-ver-icon {
  font-size: 14px;
}

.prof-footer-col-ver .prof-ver-text {
  color: #e2e8f0;
}

/* Finiş Ekranındaki Gibi Dairesel İkon Butonları (Yazısız) */
.prof-footer-circle-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.prof-footer-circle-btn:active {
  transform: scale(0.92);
}

/* 2. Bölüm: Liste Butonu (Finiş Ekranı Kupa Stili) */
.prof-footer-circle-list {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(255, 180, 0, 0.04) 70%, transparent 100%) !important;
  border: 1.5px solid rgba(255, 215, 0, 0.6) !important;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.3), inset 0 0 10px rgba(255, 215, 0, 0.15) !important;
  color: #ffd700;
}

.prof-footer-circle-list:hover {
  transform: scale(1.12);
  border-color: #ffd700 !important;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.8), inset 0 0 12px rgba(255, 215, 0, 0.4) !important;
}

.prof-footer-circle-list .leaderboard-svg {
  width: 23px;
  height: 23px;
  color: #ffd700;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.85));
  transition: transform 0.35s ease;
}

.prof-footer-circle-list:hover .leaderboard-svg {
  transform: translateY(-2px) scale(1.08);
}

/* 3. Bölüm: Oyun Oynama Butonu (Finiş Ekranı Restart / Başlat Stili) */
.prof-footer-circle-play {
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(0, 229, 255, 0.04) 70%, transparent 100%) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.6) !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(0, 229, 255, 0.15) !important;
  color: #00e5ff;
}

.prof-footer-circle-play:hover {
  transform: scale(1.12);
  border-color: #00e5ff !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.8), inset 0 0 12px rgba(0, 229, 255, 0.35) !important;
}

.prof-footer-circle-play .restart-svg {
  width: 28px;
  height: 28px;
  color: #00e5ff;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.85));
  transition: transform 0.35s ease;
}

.prof-footer-circle-play:hover .restart-svg {
  transform: rotate(180deg);
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 1));
}

.prof-footer-circle-play .play-svg {
  width: 24px;
  height: 24px;
  color: #00e5ff;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.85));
  transition: transform 0.35s ease;
  display: block;
  margin: 0;
}

.prof-footer-circle-play:hover .play-svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 1));
}

/* =========================================================
   🏆 REKOR SIRALAMASI & ESPORTS PODYUMU (Pine Cone Ludo Style)
   ========================================================= */
.leaderboard-card {
  width: 100%;
  max-width: 326px;
  max-height: 92vh;
  background: rgba(22, 28, 42, 0.85) !important;
  backdrop-filter: saturate(180%) blur(25px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
}

.leaderboard-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-title-group .trophy-glyph {
  font-size: 20px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.leaderboard-heading {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
}

.leaderboard-scroll-content {
  padding: 8px 12px 14px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.3) transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-scroll-content::-webkit-scrollbar {
  width: 4px;
}
.leaderboard-scroll-content::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.35);
  border-radius: 4px;
}

/* 🏆 ESPORTS PODYUM ARENASI */
.osakki-podium-arena {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 32px auto 14px auto;
  box-sizing: border-box;
}

.osakki-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.osakki-podium:hover {
  transform: translateY(-3px) scale(1.02);
}

/* 1. Sıra Yüzen Taç */
.osakki-crown {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.85));
  animation: osakkiCrownFloat 2.4s ease-in-out infinite;
  z-index: 25;
  pointer-events: none;
}

@keyframes osakkiCrownFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* Podyum Avatar Kutusu */
.osakki-podium-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.osakki-podium-avatar {
  border-radius: 50%;
  padding: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #03142a;
  border: 2.5px solid var(--podium-color);
  box-shadow: 0 0 16px var(--podium-glow);
  overflow: hidden;
}

.osakki-podium-avatar img,
.osakki-lb-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
}

.osakki-podium-avatar img.flag-tr,
.osakki-podium-avatar img[src*="/tr.png"],
.osakki-lb-avatar-box img.flag-tr,
.osakki-lb-avatar-box img[src*="/tr.png"] {
  object-position: 28% center !important;
}

.osakki-podium-rank-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--podium-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #041021;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* Podyum Hologram Tabanı (Holy Rabbit Stili) */
.osakki-podium-base {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px 6px 4px;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 60%), rgba(22, 28, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--podium-color);
  border-radius: 14px 14px 8px 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 8px 18px -6px var(--podium-glow), 0 4px 14px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.osakki-podium-name {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px var(--podium-glow);
  margin-bottom: 4px;
  max-width: 98%;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.25;
  position: relative;
  z-index: 5;
}

.osakki-podium-score {
  font-size: 10.5px;
  font-weight: 900;
  background: rgba(4, 16, 34, 0.92);
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid var(--podium-color);
  color: var(--podium-color);
  box-shadow: 0 0 8px var(--podium-glow);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* 1. Sıra: Altın */
.osakki-podium.osakki-rank-1 {
  --podium-color: #FFD700;
  --podium-glow: rgba(255, 215, 0, 0.55);
  order: 2;
  z-index: 10;
}
.osakki-podium.osakki-rank-1 .osakki-podium-avatar { width: 60px; height: 60px; }
.osakki-podium.osakki-rank-1 .osakki-podium-base { height: 86px; }

/* 2. Sıra: Siber Mavi */
.osakki-podium.osakki-rank-2 {
  --podium-color: #00E5FF;
  --podium-glow: rgba(0, 229, 255, 0.5);
  order: 1;
}
.osakki-podium.osakki-rank-2 .osakki-podium-avatar { width: 50px; height: 50px; }
.osakki-podium.osakki-rank-2 .osakki-podium-base { height: 68px; }

/* 3. Sıra: Kızıl Magma */
.osakki-podium.osakki-rank-3 {
  --podium-color: #FF3366;
  --podium-glow: rgba(255, 51, 102, 0.5);
  order: 3;
}
.osakki-podium.osakki-rank-3 .osakki-podium-avatar { width: 50px; height: 50px; }
.osakki-podium.osakki-rank-3 .osakki-podium-base { height: 54px; }

/* =========================================================
   📜 4 - 19. SIRALAR LİSTESİ (Top 19 Rows - Holy Rabbit Cards)
   ========================================================= */
.osakki-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.osakki-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 14px;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.osakki-lb-row:hover {
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 55%), rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.osakki-lb-row.osakki-lb-my-row {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.18) 0%, rgba(22, 28, 42, 0.9) 100%) !important;
  border: 1.5px solid #00e5ff !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35) !important;
}

/* 13. Sırada Oyuncunun Kartı / Farklı Renkli Banner */
.osakki-lb-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 0 1px 0;
  color: rgba(0, 229, 255, 0.45);
  font-size: 13px;
  letter-spacing: 5px;
  font-weight: 900;
  user-select: none;
}

.osakki-lb-row.osakki-lb-player-banner {
  background: linear-gradient(90deg, rgba(255, 145, 0, 0.28) 0%, rgba(255, 80, 0, 0.18) 50%, rgba(22, 16, 38, 0.95) 100%) !important;
  border: 1.5px solid #ff9f00 !important;
  box-shadow: 0 0 18px rgba(255, 159, 0, 0.45), inset 0 0 10px rgba(255, 159, 0, 0.15) !important;
  transform: scale(1.01);
  margin-top: 2px;
}

.osakki-lb-row.osakki-lb-player-banner:hover {
  background: linear-gradient(90deg, rgba(255, 165, 0, 0.36) 0%, rgba(255, 95, 0, 0.26) 50%, rgba(28, 20, 48, 0.98) 100%) !important;
  border-color: #ffb700 !important;
  box-shadow: 0 0 24px rgba(255, 175, 0, 0.6) !important;
}

.osakki-lb-player-rank {
  min-width: 48px !important;
  width: auto !important;
  color: #ffc107 !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
  text-align: left !important;
  padding-right: 2px;
  flex-shrink: 0;
}

.osakki-lb-player-banner .osakki-lb-avatar-box {
  border: 1.5px solid #ffaa00 !important;
  box-shadow: 0 0 8px rgba(255, 170, 0, 0.45) !important;
}

.osakki-lb-player-banner .osakki-lb-name {
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.osakki-lb-player-banner .osakki-lb-score-pill {
  background: rgba(30, 18, 0, 0.92) !important;
  border: 1px solid #ffaa00 !important;
  color: #ffc107 !important;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.45) !important;
}

.osakki-lb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.osakki-lb-rank {
  width: 22px;
  font-size: 12px;
  font-weight: 900;
  color: #94a3b8;
  text-align: center;
  flex-shrink: 0;
}

.osakki-lb-my-row .osakki-lb-rank {
  color: #00e5ff;
}

.osakki-lb-avatar-box {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #03142a;
  border: 1.5px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.osakki-lb-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.osakki-lb-flag-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.osakki-lb-flag-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.osakki-lb-name {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osakki-lb-you-badge {
  display: inline-block;
  background: #00e5ff;
  color: #03142a;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 5px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.osakki-lb-score-pill {
  font-size: 11px;
  font-weight: 900;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.osakki-wiw-inline {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.7));
  display: inline-block;
  flex-shrink: 0;
}

/* =========================================================
   🎯 OYUNCU DURUM KARTI & TEŞVİK
   ========================================================= */
.osakki-my-rank-card {
  width: 100%;
  margin-top: 4px;
}

.osakki-my-rank-box {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
  box-sizing: border-box;
}

.osakki-my-rank-box.in-top-19 {
  background: radial-gradient(130% 90% at 0% 0%, rgba(0, 229, 255, 0.12), transparent 55%), rgba(22, 28, 42, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #e0f2fe;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.osakki-my-rank-box.out-top-19 {
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 150, 0, 0.12), transparent 55%), rgba(22, 28, 42, 0.85);
  border: 1px solid rgba(255, 180, 0, 0.35);
  color: #fef08a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lb-target-text {
  font-size: 11px;
  color: #fca5a5;
  font-weight: 700;
  display: inline-block;
  margin-top: 2px;
}

/* Pine Cone Ludo Alt Bilgi Notu (Footer Note - Holy Rabbit Stili) */
.kzl-panel-note-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  padding: 8px 10px;
  margin-top: 4px;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

/* =========================================================
   SHARE MODAL (Paylaşım Penceresi - Metinsiz & Minimalist)
   ========================================================= */
.share-card {
  width: 100%;
  max-width: 326px;
  max-height: 92vh;
  background: rgba(22, 28, 42, 0.85) !important;
  backdrop-filter: saturate(180%) blur(25px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
}

.share-header-svg {
  width: 20px;
  height: 20px;
  color: #00f59b;
  display: block;
}

.share-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 18px !important;
}

.share-image-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  background: #0d121c;
}

.share-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1024 / 500;
}

.share-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-score-icon {
  font-size: 20px;
  line-height: 1;
}

.share-score-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.share-link-box:hover {
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 55%), rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.share-link-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.share-link-text {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-family: monospace;
}

.share-copy-badge {
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.share-action-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.share-native-btn {
  flex: 1;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00f59b 0%, #00b4d8 100%);
  color: #041021;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 245, 155, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.share-native-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 155, 0.5);
}

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

.share-btn-svg {
  width: 22px;
  height: 22px;
  color: #041021;
}

.share-whatsapp-btn {
  flex: 1;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.share-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

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

.share-wa-svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}


