:root {
  --brand-blue: #007bca;
  --brand-navy: #164e74;
  --brand-white: #ffffff;
  --sushi-orange: #ff7b00;
  --sushi-red: #ff3333;
  --sushi-gold: #f1c40f;
  --bg-main: #060b11;
  --bg-wheel-container: #0a131c;
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --text-dark: #000000;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-active: rgba(0, 123, 202, 0.15);
  --glow-primary: rgba(0, 123, 202, 0.25);
  --glow-orange: rgba(255, 123, 0, 0.2);
  --glow-blue: rgba(0, 123, 202, 0.3);
  --shadow-main: rgba(0, 0, 0, 0.6);
  --shadow-heavy: rgba(0, 0, 0, 0.9);
}

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

input,
textarea {
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

body {
  background-color: var(--bg-main);
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  height: 100vh;
  height: var(--tg-viewport-stable-height, var(--tg-viewport-height, 100vh));
  width: 100vw;
  overflow: hidden;
  touch-action: none;
  display: flex;
  justify-content: center;
}

.ambient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.35;
  border-radius: 50%;
  animation: drift 12s infinite alternate ease-in-out;
}

.orange-blob {
  width: 300px;
  height: 300px;
  background: var(--brand-blue);
  top: -5%;
  left: -5%;
}

.red-blob {
  width: 250px;
  height: 250px;
  background: var(--sushi-orange);
  bottom: 15%;
  right: -5%;
  animation-delay: -6s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 60px) scale(1.15); }
}

.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
}

.main-header {
  margin: 15px;
  padding: 10px 20px;
  border-radius: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  background: var(--glass-bg);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
}

.rank-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-white);
  background: var(--brand-blue);
  padding: 4px 12px;
  border-radius: 30px;
  box-shadow: 0 2px 10px var(--glow-primary);
}

.view-page {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  animation: pageIn 0.4s ease-out;
}

.view-page.active {
  display: flex;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 15px 25px 120px 25px;
  text-align: center;
  overflow-y: auto;
  box-sizing: border-box;
}

.page-inner::-webkit-scrollbar {
  display: none;
}
.page-inner {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.view-title {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 800;
  letter-spacing: -1px;
}

.item-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-radius: 22px;
}

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

.row-icon {
  font-size: 26px;
}

.task-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.task-name {
  font-weight: 600;
  font-size: 14px;
}

.task-reward {
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 700;
}

.gold-btn {
  background: var(--brand-blue);
  border: none;
  color: var(--brand-white);
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 800;
  min-width: 80px;
  cursor: pointer;
  transition: transform 0.1s;
  box-shadow: 0 4px 15px var(--glow-primary);
}

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

.gold-btn:disabled {
  background: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.stat-center {
  text-align: center;
  margin-top: 5vh;
}

.coin-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mini-coin-img {
  width: 45px !important;
  height: 45px !important;
}

#score {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(var(--brand-white), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.coin-label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2.5px;
}

.action-zone {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 120px;
}

.glow-effect {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(0.85); opacity: 0.6; }
  to { transform: scale(1.1); opacity: 1; }
}

.main-click-btn {
  background: none;
  border: none;
  z-index: 10;
  cursor: pointer;
  transition: 0.1s;
}

.main-click-btn img {
  width: 240px;
  filter: drop-shadow(0 30px 40px var(--shadow-main));
}

.main-click-btn:active {
  transform: scale(0.9) translateY(4px);
}

/* --- THE GLASS ENERGY REACTOR BUTTON --- */
#sushi-btn {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(0, 123, 202, 0.05) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15); 
  box-shadow:
    inset 0 4px 18px rgba(255, 255, 255, 0.25),
    inset 0 -15px 30px rgba(0, 0, 0, 0.6),
    0 25px 45px rgba(0, 0, 0, 0.7),
    0 0 40px var(--glow-primary); 
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

#sushi-btn::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 123, 202, 0.6);
  animation: spinRing 20s linear infinite;
  pointer-events: none;
}

#sushi-btn::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 2px dotted rgba(255, 123, 0, 0.5);
  animation: spinRingReverse 30s linear infinite;
  pointer-events: none;
}

#sushi-btn:active {
  transform: scale(0.92);
  box-shadow:
    inset 0 15px 30px rgba(0, 0, 0, 0.8),
    inset 0 -2px 10px rgba(255, 255, 255, 0.1),
    0 5px 15px rgba(0, 0, 0, 0.5),
    0 0 20px var(--glow-primary);
}

#sushi-btn:active > * {
  transform: scale(0.94) translateY(5px);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 15px var(--glow-orange));
  animation: none;
}

#sushi-btn > * {
  position: relative;
  z-index: 10;
  transition: transform 0.1s ease;
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 25px var(--glow-orange));
  animation: levitate 4s ease-in-out infinite;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

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

/* --- SPINNER WIDGET --- */
.spinner-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 20px auto;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(145deg, var(--glow-primary), var(--shadow-main));
  box-shadow: 0 10px 30px var(--shadow-main), inset 0 0 20px var(--glow-primary);
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 46px;
  background: var(--brand-white);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 10;
  filter: drop-shadow(0 6px 6px var(--shadow-main));
}

.wheel-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 6px solid var(--brand-navy);
  box-shadow: inset 0 0 25px var(--shadow-heavy);
  background: var(--bg-wheel-container);
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  background: var(--brand-navy);
  border: 4px solid var(--brand-white);
  border-radius: 50%;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  box-shadow: 0 0 20px var(--shadow-heavy);
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 5.5s cubic-bezier(0.15, 0.85, 0.15, 1);
}

.wheel-label {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50px;
  margin-left: -25px;
  height: 50%;
  transform-origin: bottom center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 14px;
  color: var(--brand-white);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  text-shadow:
    -1px -1px 0 var(--text-dark),
    1px -1px 0 var(--text-dark),
    -1px 1px 0 var(--text-dark),
    1px 1px 0 var(--text-dark),
    0px 3px 5px var(--shadow-heavy);
  z-index: 2;
}

.spin-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- BOTTOM DOCK NAVIGATION --- */
.dock-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 15px);
  max-width: 450px;
  border-radius: 28px;
  display: flex;
  justify-content: space-around;
  padding: 6px;
  z-index: 9999;
}

.nav-item {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 22px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-emoji {
  font-size: 18px;
}

.nav-txt {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-item.active {
  background: var(--glass-active);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 16px var(--shadow-main);
  color: var(--brand-blue);
}

/* --- STATS & LEVEL UI --- */
.stats-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  font-size: 11px;
}

.lvl-text {
  font-weight: 800;
  color: var(--brand-blue);
  white-space: nowrap;
}

.progress-bar-bg {
  flex-grow: 1;
  height: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-blue), #00b4ff);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--glow-primary);
}

.days-text {
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 700;
}

.energy-limit {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-blue);
  text-shadow: 0 0 10px var(--glow-primary);
  letter-spacing: 1px;
}

/* --- MODALS --- */
.notification-dot {
  position: absolute;
  top: -2px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: var(--sushi-orange); 
  border-radius: 50%;
  border: 2px solid var(--bg-main); 
  box-shadow: 0 0 10px var(--glow-orange);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 90%;
  max-width: 360px;
  padding: 25px 20px;
  border-radius: 28px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.15, 0.85, 0.15, 1);
  text-align: center;
  background: var(--bg-wheel-container);
  border: 1px solid var(--brand-navy);
  box-shadow: 0 20px 40px var(--shadow-heavy);
}

.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--brand-navy);
  border: 1px solid var(--glass-border);
  color: var(--brand-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.close-btn:active {
  background: var(--brand-blue);
}

/* --- DAILY REWARDS --- */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.reward-day {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15); 
}

.reward-day-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.reward-day-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.reward-day.locked {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6);
  opacity: 0.5;
}

.reward-day.claimed {
  background: rgba(0, 123, 202, 0.1);
  border-color: rgba(0, 123, 202, 0.2);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  filter: none; 
}

.reward-day.claimed .reward-day-title,
.reward-day.claimed .reward-day-val {
  color: rgba(255, 255, 255, 0.4);
}

.reward-day.claimable {
  background: linear-gradient(135deg, var(--brand-blue), #00b4ff);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px var(--glow-primary), inset 0 2px 10px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  animation: floatPulse 2s infinite;
  z-index: 5;
}

.reward-day.claimable .reward-day-title {
  color: rgba(255, 255, 255, 0.9);
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 20px var(--glow-primary), inset 0 2px 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 30px var(--brand-blue), inset 0 2px 10px rgba(255, 255, 255, 0.5);
  }
}

.reward-day.day-7 {
  grid-column: span 4;
  flex-direction: row;
  gap: 15px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(0, 0, 0, 0.8));
  border: 1px solid var(--sushi-gold);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.reward-day.day-7 .reward-day-title {
  margin-bottom: 0;
  color: var(--sushi-gold);
  font-size: 13px;
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

.reward-day.day-7 .reward-day-val {
  color: var(--sushi-gold);
}

.reward-day.day-7::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  animation: goldShine 3s infinite;
  pointer-events: none;
}

@keyframes goldShine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.reward-day.claiming {
  transform: scale(1.15) !important;
  background: var(--sushi-gold);
  border-color: var(--brand-white);
  box-shadow: 0 0 40px var(--sushi-gold);
  opacity: 0;
  z-index: 10;
  transition: all 0.5s ease-out;
}

/* --- RATING PAGE --- */
.rating-tabs {
  display: flex;
  padding: 5px;
  border-radius: 15px;
  margin-bottom: 20px;
  gap: 5px;
  flex-shrink: 0;
}

.rating-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.rating-tab-btn.active {
  background: var(--brand-blue);
  color: var(--brand-white);
  box-shadow: 0 4px 10px var(--glow-primary);
}

.rating-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-radius: 18px;
  margin-bottom: 8px;
}

.rating-rank {
  font-weight: 800;
  color: var(--sushi-gold);
  width: 25px;
}

.rating-user-details {
  flex-grow: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.rating-user-name {
  font-weight: 600;
  font-size: 14px;
}

.rating-user-lvl {
  font-size: 11px;
  color: var(--brand-blue);
  font-weight: 700;
}

.rating-score {
  font-weight: 800;
  font-size: 14px;
}

.current-user-row {
  border: 1px solid var(--sushi-gold) !important;
  background: rgba(241, 196, 15, 0.05) !important;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.1);
}

.current-user-row .rating-user-name {
  color: var(--sushi-gold);
}

#page-rating .page-inner {
  overflow: hidden !important;
}

#page-rating .view-title {
  flex-shrink: 0;
}

#rating-list-container {
  flex: 1 1 auto; 
  min-height: 0; 
  overflow-y: auto;
  margin-top: 10px;
  margin-bottom: 15px; 
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

#rating-list-container::-webkit-scrollbar {
  display: none;
}
#rating-list-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#page-rating .page-inner > div:last-child {
  flex-shrink: 0;
  margin-top: auto;
}

/* --- GIFT BOX ANIMATIONS & 3D CAROUSEL --- */
.shake-anim {
  animation: shakeBox 0.5s ease-in-out;
}

@keyframes shakeBox {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-15deg) scale(1.2); }
  50% { transform: rotate(15deg) scale(1.2); }
  75% { transform: rotate(-15deg) scale(1.2); }
}

.box-center-scale {
  transform: scale(1.6) translateY(20px) !important;
}

.box-explode {
  animation: explodeBox 0.6s forwards ease-out;
}

@keyframes explodeBox {
  0% { transform: scale(1.6) translateY(20px); opacity: 1; filter: drop-shadow(0 0 20px var(--sushi-gold)) brightness(1); }
  50% { transform: scale(2.2) translateY(20px); opacity: 1; filter: drop-shadow(0 0 50px var(--brand-white)) brightness(1.5); }
  100% { transform: scale(3) translateY(20px); opacity: 0; filter: drop-shadow(0 0 100px var(--brand-white)) brightness(2); }
}

.carousel-item {
  position: absolute;
  width: 100px; 
  height: 100px; 
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  overflow: hidden; 
  background: rgba(10, 15, 25, 0.4); 
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  padding: 10px;
  word-wrap: break-word; 
  white-space: pre-wrap;
  color: var(--brand-white);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  backface-visibility: hidden;
}

.carousel-item::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(from 0deg, transparent 70%, #00d2ff 85%, var(--brand-blue) 100%);
  animation: spinNeon 2.5s linear infinite;
  z-index: 0;
}

@keyframes spinNeon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.carousel-item::after {
  content: '';
  position: absolute;
  inset: 2px; 
  background: linear-gradient(145deg, rgba(30, 45, 70, 0.8) 0%, rgba(10, 15, 25, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px; 
  z-index: 1;
}

.carousel-item span {
  position: relative;
  z-index: 2;
}

.carousel-item.carousel-item-winner {
  z-index: 10;
  animation: winnerGlow 1.5s infinite alternate; 
}

.carousel-item.carousel-item-winner::before {
  background: conic-gradient(from 0deg, transparent 80%, #ffdf00 95%, var(--sushi-gold) 100%);
  animation: spinNeon 2s linear infinite; 
}

.carousel-item.carousel-item-winner::after {
  background: linear-gradient(135deg, rgba(70, 55, 10, 0.98) 0%, rgba(10, 15, 25, 0.98) 100%);
}

@keyframes winnerGlow {
  0% { box-shadow: 0 0 20px rgba(241, 196, 15, 0.4); filter: brightness(1); }
  100% { box-shadow: 0 0 40px var(--sushi-gold); filter: brightness(1.25); }
}