@charset "UTF-8";
/* ============================================================
   IMMERSION.CSS — 3D tilt + ambient particles + daily wheel
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   3D TABLE TILT — disabled by default (caused perf issues)
   Re-enable with [data-tilt="on"] on <html> if needed
   ───────────────────────────────────────────────────────────── */
[data-tilt="on"] #game-layout {
  perspective: 2400px;
  perspective-origin: 50% 30%;
}
[data-tilt="on"] #table {
  transform: rotateX(4deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────
   AMBIENT PARTICLE FIELD — main menu
   Tiny lights drifting upward with parallax
   ───────────────────────────────────────────────────────────── */
#particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.pf-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0;
  will-change: transform, opacity;
}
.pf-particle.s1 { width: 2px; height: 2px; }
.pf-particle.s3 { width: 5px; height: 5px; }

/* When animations dialled down */
[data-anim="low"] #particle-field { display: none; }

/* Hide outside main menu (we mount it body-level but want to fade out) */
body.no-particles #particle-field { opacity: 0; pointer-events: none; transition: opacity 0.5s; }

/* ─────────────────────────────────────────────────────────────
   AI COMMENTARY — character header
   ───────────────────────────────────────────────────────────── */
#commentary-bubble::before {
  content: '◆ BORA · CANLI YORUM' !important;
}
.cm-character {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body-font, 'Outfit', sans-serif);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--neon-1);
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 8px currentColor;
}
.cm-char-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-1), #b01058);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: none;
  letter-spacing: 0;
  text-indent: 0;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 10px rgba(var(--neon-1-rgb), 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ─────────────────────────────────────────────────────────────
   DAILY WHEEL — main menu CTA + modal
   ───────────────────────────────────────────────────────────── */
#daily-wheel-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(var(--neon-1-rgb), 0.18), rgba(var(--accent-warm-rgb), 0.1));
  border: 1px solid rgba(var(--accent-warm-rgb), 0.4);
  border-radius: 100px;
  color: var(--accent-warm);
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 18px rgba(var(--accent-warm-rgb), 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
}
#daily-wheel-cta:hover:not(.claimed) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(var(--accent-warm-rgb), 0.4), 0 0 28px rgba(var(--accent-warm-rgb), 0.3);
}
#daily-wheel-cta.claimed {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--ink-3);
  border-color: var(--line-2);
  background: rgba(255,255,255,0.04);
  box-shadow: none;
}
.dw-cta-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px currentColor);
  animation: dwCtaSpin 4s linear infinite;
}
#daily-wheel-cta.claimed .dw-cta-icon { animation: none; }
@keyframes dwCtaSpin {
  to { transform: rotate(360deg); }
}
.dw-cta-dot {
  position: absolute;
  top: -4px; right: -4px;
  width: 10px; height: 10px;
  background: var(--neon-1);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-1);
  animation: dwCtaDot 1.5s ease-in-out infinite;
}
#daily-wheel-cta.claimed .dw-cta-dot { display: none; }
@keyframes dwCtaDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.7); }
}

/* Modal */
#daily-wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(18px);
  animation: dwModalFade 0.3s ease;
}
#daily-wheel-modal.show { display: flex; }
@keyframes dwModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dw-box {
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(var(--neon-1-rgb), 0.2) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg-2) 0%, var(--bg-0) 100%);
  border: 1px solid var(--line-2);
  border-top: 4px solid var(--accent-warm);
  border-radius: 14px;
  padding: 36px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 380px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.85), 0 0 60px rgba(var(--accent-warm-rgb), 0.3);
  animation: dwBoxIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dwBoxIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.dw-eyebrow {
  font-family: var(--body-font);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--accent-warm);
  text-transform: uppercase;
}
.dw-title {
  font-family: var(--editorial);
  font-size: 2.6rem;
  line-height: 0.9;
  background: linear-gradient(180deg, #fff, var(--accent-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

/* The wheel itself */
.dw-wheel-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 8px 0;
}
.dw-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 0 0 4px var(--accent-warm),
    0 0 0 6px rgba(0,0,0,0.7),
    0 0 0 9px rgba(var(--accent-warm-rgb), 0.5),
    0 0 80px rgba(var(--accent-warm-rgb), 0.4),
    0 30px 80px rgba(0,0,0,0.8);
  overflow: hidden;
  transform: rotate(0deg);
  transition: transform 3.2s cubic-bezier(0.16, 0.7, 0.2, 1);
}
.dw-wedge {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%);
  transform-origin: 50% 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
  font-family: var(--editorial);
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85);
}
/* Pointer arrow at top */
.dw-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--neon-1);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7));
  z-index: 2;
}
.dw-pointer::after {
  content: '';
  position: absolute;
  top: -28px;
  left: -10px;
  width: 20px;
  height: 14px;
  background: var(--neon-1);
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(var(--neon-1-rgb), 0.7);
}
/* Center hub */
.dw-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-warm) 0%, #c08020 70%);
  box-shadow:
    0 0 0 2px #7a5008,
    0 0 0 4px rgba(0,0,0,0.6),
    0 0 0 6px rgba(var(--accent-warm-rgb), 0.5),
    0 0 24px rgba(var(--accent-warm-rgb), 0.6),
    inset 0 2px 0 rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--editorial);
  font-size: 1.1rem;
  color: #1a0e00;
  z-index: 1;
}

.dw-spin-btn {
  font-family: var(--editorial);
  background: linear-gradient(135deg, var(--neon-1), var(--accent-cool));
  color: #fff;
  padding: 14px 44px;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--neon-1-rgb), 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.dw-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--neon-1-rgb), 0.7), 0 0 32px rgba(var(--neon-2-rgb), 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.dw-spin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.dw-result {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  opacity: 0;
}
.dw-result.show {
  display: flex;
  animation: dwResultIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes dwResultIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dw-result-label {
  font-family: var(--body-font);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--ink-3);
  font-weight: 800;
  text-transform: uppercase;
}
.dw-result-value {
  font-family: var(--editorial);
  font-size: 2.4rem;
  color: var(--accent-warm);
  text-shadow: 0 0 24px rgba(var(--accent-warm-rgb), 0.7);
}

.dw-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  padding: 8px 24px;
  border-radius: 6px;
  font-family: var(--body-font);
  font-size: 0.78rem;
  letter-spacing: 1px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 4px;
}
.dw-close-btn:hover { color: #fff; border-color: var(--neon-2); }
