/* Rise Online Çarkıfelek - Modern MMORPG Teması */
:root {
  --bg-deep: #060913;
  --bg-card: rgba(13, 19, 38, 0.9);
  --border-gold: rgba(245, 158, 11, 0.4);
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.5);
  --cyan: #38bdf8;
  --emerald: #10b981;
  --rose: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(8, 12, 24, 0.8) 0%, rgba(5, 7, 14, 0.98) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.wheel-app-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 24px;
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

/* Header */
.wheel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

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

.header-icon {
  font-size: 1.8rem;
  color: var(--gold);
  text-shadow: 0 0 15px var(--gold-glow);
  animation: spinSlow 30s linear infinite;
}

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

.header-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.header-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.player-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(245,158,11,0.15);
}

.player-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.player-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-light);
}

/* Arena */
.wheel-arena {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  flex: 1;
  align-items: center;
}

@media (max-width: 1100px) {
  .wheel-arena {
    grid-template-columns: 1fr;
  }
}

/* Wheel Stage */
.wheel-stage-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
}

.wheel-outer-ring {
  position: relative;
  width: 740px;
  height: 740px;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 75px rgba(245, 158, 11, 0.45),
    0 0 140px rgba(0, 0, 0, 0.85),
    inset 0 0 50px rgba(0, 0, 0, 0.7);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.85) 0%, #060913 100%);
  border: 7px solid #f59e0b;
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Pointer Indicator */
.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.9));
}

.pointer-arrow {
  width: 36px;
  height: 54px;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.9);
  border-top: 3px solid #fca5a5;
  animation: pointerPulse 1.5s ease-in-out infinite;
}

@keyframes pointerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Center Spin Button */
.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border: 5px solid #fff;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.85), 0 6px 25px rgba(0,0,0,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  transition: all 0.2s ease;
  user-select: none;
}

.wheel-center-btn:hover {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 0 55px rgba(245, 158, 11, 1);
}

.wheel-center-btn:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.center-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}

.center-btn-text {
  font-size: 1.3rem;
  letter-spacing: 1.5px;
}

.center-btn-sub {
  font-size: 0.72rem;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* Sidebar */
.wheel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.side-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.input-text {
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
}

.input-text:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
}

.btn-spin {
  font-size: 1.1rem;
  padding: 14px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Winner Spotlight Card (BÜYÜTÜLMÜŞ & GÖRSEL VURGU) */
.winner-reward-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.15) 50%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.5), inset 0 0 30px rgba(245, 158, 11, 0.15);
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.winner-reward-badge {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.25);
  padding: 6px 18px;
  border-radius: 9999px;
  border: 1px solid var(--gold);
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.winner-item-img-wrap {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(0, 0, 0, 0.75) 80%);
  border-radius: 18px;
  border: 2px solid rgba(245, 158, 11, 0.5);
  padding: 14px;
  margin: 6px 0;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.2);
  animation: bounce 2.5s infinite;
}

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

.winner-item-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.8));
}

.winner-item-name {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.9), 0 0 40px rgba(245, 158, 11, 0.5);
  line-height: 1.2;
}

.winner-item-player {
  font-size: 1.1rem;
  color: var(--gold-light);
  font-weight: 800;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.winner-item-sub {
  font-size: 0.8rem;
  color: #6ee7b7;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* History List */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  font-size: 0.82rem;
}

.history-item-name {
  font-weight: 800;
  color: var(--gold-light);
}

.history-item-player {
  color: var(--text-muted);
  font-size: 0.75rem;
}
