@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

@font-face {
  font-family: "myfont";
  src: url("/fonts/myfont.ttf");
}

:root {
  /* Premium Black Theme Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #161616;
  --bg-elevated: #1f1f1f;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --text-accent: #e0e0e0;
  
  /* Premium Accent Colors */
  --accent-primary: #ff3366;
  --accent-secondary: #6366f1;
  --accent-tertiary: #06b6d4;
  --accent-gold: #fbbf24;
  
  /* Ball Colors - Premium Gradients */
  --red-ball: #ff1744;
  --red-ball-gradient: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
  --red-ball-shadow: 0 8px 32px rgba(255, 23, 68, 0.4);
  
  --blue-ball: #2196f3;
  --blue-ball-gradient: linear-gradient(135deg, #2196f3 0%, #0d47a1 100%);
  --blue-ball-shadow: 0 8px 32px rgba(33, 150, 243, 0.4);
  
  --active-ball: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  --active-ball-shadow: 0 8px 32px rgba(0, 230, 118, 0.5);
  
  /* Button Gradients */
  --btn-primary: linear-gradient(135deg, #ff3366 0%, #e91e63 100%);
  --btn-secondary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --btn-shadow: 0 8px 32px rgba(255, 51, 102, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows - Premium Depth */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.9);
  
  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Inter", "myfont", -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 51, 102, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  color: var(--text-primary);
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4d7a, #7c3aed);
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.3);
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  backdrop-filter: var(--glass-blur);
}

header {
  text-align: center;
  padding: 3rem 0 2rem;
  position: relative;
  animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-link {
  position: absolute;
  left: 0;
  top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-fast);
}

.back-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  line-height: 1.1;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-full);
  opacity: 0.6;
}

.title-accent {
  font-weight: 600;
  opacity: 0.9;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.codes-container {
  flex: 1;
  padding: 0 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
}

.codes-container::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0),
    rgba(18, 18, 18, 0.9)
  );
  pointer-events: none;
  z-index: 2;
}

footer {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.footer-info {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  animation: fadeIn 1.5s ease-out;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.circle-container {
  position: absolute;
  transform-origin: center;
}

.circle-container:nth-child(1) {
  top: 15%;
  left: 10%;
  animation: floatAnimation 35s infinite alternate;
}

.circle-container:nth-child(2) {
  top: 75%;
  left: 80%;
  animation: floatAnimation 45s infinite alternate-reverse;
}

.circle-container:nth-child(3) {
  top: 40%;
  left: 85%;
  animation: floatAnimation 40s infinite alternate;
}

.circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(233, 30, 99, 0.1) 0%,
    rgba(126, 87, 194, 0.07) 70%,
    transparent 100%
  );
  filter: blur(40px);
  transform: scale(2);
  opacity: 0.3;
  animation: pulseAnimation 10s infinite alternate;
}

li {
  list-style: none;
}

.codes {
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.codes__ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.codes__ul::-webkit-scrollbar {
  display: none;
}

.codes__li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  transform: translateY(30px);
  opacity: 0;
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--item-index, 0) * 0.08s);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
}

.codes__li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: all var(--transition-fast);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.codes__li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.02), rgba(99, 102, 241, 0.02));
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: var(--radius-lg);
}

.codes__li:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.15);
}

.codes__li:hover::before {
  opacity: 1;
}

.codes__li:hover::after {
  opacity: 1;
}

.red__ball,
.blue__ball,
.codes__li_index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
}

.codes__li_index {
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  font-weight: 500;
  font-size: 0.9rem;
}

.red__ball {
  background: var(--red-ball-gradient);
  color: var(--text-primary);
  box-shadow: var(--red-ball-shadow);
  border: 1px solid rgba(255, 23, 68, 0.3);
}

.blue__ball {
  background: var(--blue-ball-gradient);
  color: var(--text-primary);
  box-shadow: var(--blue-ball-shadow);
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.red__ball::before,
.blue__ball::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  filter: blur(2px);
  opacity: 0.8;
}

.red__ball:hover,
.blue__ball:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.red__ball.active,
.blue__ball.active {
  background: var(--active-ball);
  color: white;
  transform: scale(1.2);
  box-shadow: var(--active-ball-shadow);
  animation: pulseHighlight 2s infinite;
  border-color: rgba(0, 230, 118, 0.5);
}

.codes__separator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  text-align: center;
  line-height: 40px;
  font-weight: bold;
  color: var(--text-secondary);
}

.codes__line {
  width: 80%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  margin: 0.5rem 0;
}

button {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  user-select: none;
  touch-action: manipulation;
  border-radius: var(--radius-lg);
}

.shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.6);
  will-change: transform;
  transform: translateY(3px);
  transition: transform var(--transition-medium);
  filter: blur(8px);
}

.edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, 
    rgba(255, 51, 102, 0.8) 0%,
    rgba(233, 30, 99, 0.9) 50%,
    rgba(185, 32, 86, 1) 100%
  );
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.front {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  padding: 14px 48px;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: var(--btn-primary);
  will-change: transform;
  transform: translateY(-6px);
  transition: all var(--transition-medium);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
}

.front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

button:hover {
  transform: translateY(-2px);
}

button:hover .front {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--btn-shadow);
  border-color: rgba(255, 255, 255, 0.3);
}

button:hover .front::before {
  opacity: 1;
}

button:active .front {
  transform: translateY(-3px) scale(0.98);
  box-shadow: 0 4px 16px rgba(255, 51, 102, 0.2);
}

button:hover .shadow {
  transform: translateY(6px);
  filter: blur(12px);
}

button:active .shadow {
  transform: translateY(2px);
  filter: blur(6px);
}

.front i {
  font-size: 1.1rem;
  opacity: 0.9;
}

#myDialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-elevated);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  max-width: 90%;
  width: 420px;
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

#myDialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

#myDialog::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 51, 102, 0.05), transparent 70%);
  pointer-events: none;
  border-radius: var(--radius-xl);
}

#myDialog p {
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 400;
}

#myDialog b {
  color: var(--accent-primary);
  font-weight: 600;
}

.dialog-close {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.dialog-close:hover {
  color: var(--accent-primary);
  background: rgba(255, 51, 102, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseAnimation {
  0% {
    transform: scale(1.5);
  }
  50% {
    transform: scale(2);
  }
  100% {
    transform: scale(1.8);
  }
}

@keyframes floatAnimation {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(100px, 50px);
  }
  100% {
    transform: translate(-50px, 100px);
  }
}

@keyframes pulseHighlight {
  0% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.8),
      0 0 35px rgba(16, 185, 129, 0.6);
  }
  100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media screen and (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .back-link {
    top: 1.5rem;
  }

  .info-banner {
    padding: 0.8rem 1rem;
    margin: 0 0.5rem 1.2rem;
  }

  .info-icon {
    font-size: 1.3rem;
  }

  .info-content p {
    font-size: 0.85rem;
  }

  .codes__li {
    padding: 0.8rem 1rem;
    gap: 0.6rem;
  }

  .codes-container::before {
    height: 30px;
  }

  .red__ball,
  .blue__ball,
  .codes__li_index {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .front {
    padding: 10px 30px;
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .page-container {
    padding: 0 10px;
  }

  .title {
    font-size: 1.8rem;
    margin-top: 1rem;
  }

  .back-link {
    font-size: 0.9rem;
    top: 1rem;
  }

  .info-banner {
    padding: 0.6rem 0.8rem;
    margin: 0 0.3rem 1rem;
    flex-direction: column;
    text-align: center;
  }

  .info-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .codes__li {
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
  }

  .red__ball,
  .blue__ball,
  .codes__li_index {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  #myDialog {
    width: calc(100% - 40px);
    padding: 1.2rem;
  }
}

.codes__ul--active li span:not(.active),
.codes__ul--active li i {
  opacity: 0.2;
}

/* Info Banner Styles */
.info-banner {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.8),
    rgba(40, 40, 40, 0.95)
  );
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem;
  margin: 0 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 1s ease-out;
}

.info-icon {
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-right: 0.8rem;
}

.info-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s;
}

.loading-overlay.fade-out {
  opacity: 0;
}

.loading-spinner {
  background: #242424;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: bounce 0.5s;
}

.loading-spinner i {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.loading-spinner p {
  color: var(--text-primary);
  font-size: 1rem;
}

/* Result dialog enhancements */
.result-balls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.2rem 0;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.result-ball {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.5);
}

.result-ball:nth-child(1) {
  animation-delay: 0.1s;
}
.result-ball:nth-child(2) {
  animation-delay: 0.2s;
}
.result-ball:nth-child(3) {
  animation-delay: 0.3s;
}
.result-ball:nth-child(4) {
  animation-delay: 0.4s;
}
.result-ball:nth-child(5) {
  animation-delay: 0.5s;
}
.result-ball:nth-child(6) {
  animation-delay: 0.6s;
}
.result-ball:nth-child(7) {
  animation-delay: 0.8s;
}

.match-info {
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-style: italic;
}

@keyframes bounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* Improve mobile responsiveness for result dialog */
@media screen and (max-width: 480px) {
  .result-balls {
    padding: 0.6rem;
    gap: 0.4rem;
  }

  .result-ball {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .loading-spinner {
    padding: 1.5rem;
    max-width: 80%;
  }

  .loading-spinner i {
    font-size: 1.5rem;
  }

  .loading-spinner p {
    font-size: 0.9rem;
  }
}

/* Prize Results Styles */
.prize-results {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(40, 40, 40, 0.8);
  border-radius: var(--border-radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.prize-results h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #d32f2f;
  font-size: 1.2rem;
  position: relative;
}

.prize-results h3:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, #d32f2f, transparent);
  left: 50%;
  margin-left: -30px;
  bottom: -8px;
}

.prize-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.prize-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  background: rgba(50, 50, 50, 0.7);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.prize-item.winning {
  background: rgba(60, 55, 20, 0.7);
  border-left: 3px solid #fbc02d;
}

.prize-item.non-winning {
  opacity: 0.8;
  background: rgba(240, 240, 240, 0.7);
}

.prize-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.prize-code {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.prize-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prize-level {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: white;
}

.level-0 {
  background: #616161;
  color: white;
}

.level-1 {
  background: linear-gradient(135deg, #ff4b2b, #d32f2f);
  box-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
}

.level-2 {
  background: linear-gradient(135deg, #f5af19, #e65100);
}

.level-3 {
  background: linear-gradient(135deg, #0d8c7f, #00796b);
}

.level-4 {
  background: linear-gradient(135deg, #0288d1, #01579b);
}

.level-5 {
  background: linear-gradient(135deg, #303f9f, #1a237e);
}

.level-6 {
  background: linear-gradient(135deg, #7b1fa2, #4a148c);
}

.prize-match {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.non-winning-header {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.no-prize {
  margin: 1rem 0;
  padding: 1.5rem;
  background: rgba(40, 40, 40, 0.8);
  border-radius: var(--border-radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
}

.no-prize p:first-child {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.no-prize p:last-child {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.partial-matches {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Make dialog wider to accommodate prize info */
#myDialog {
  width: 380px;
  max-width: 95%;
}

/* Handle mobile view for prize display */
@media screen and (max-width: 480px) {
  .prize-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .prize-code {
    font-size: 0.85rem;
  }

  .prize-level {
    font-size: 0.8rem;
  }

  .prize-match {
    font-size: 0.75rem;
  }

  .prize-results h3 {
    font-size: 1.1rem;
  }

  .no-prize {
    padding: 1rem;
  }

  .no-prize p:first-child {
    font-size: 1rem;
  }
}
