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

/* Skip link & focus – accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 10px 16px;
  background: var(--primary-red);
  color: var(--text-white);
  font-weight: 600;
  z-index: 9999;
  border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
[href]:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  /* Color scheme - red and white */
  --primary-red: #DC143C;
  --light-red: #FF6B6B;
  --dark-red: #B22222;
  --text-white: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-light: #FFF5F5;
  --border-red: #DC143C;
  --text-dark: #333333;
  /* Red-black gradient for blocks (except header) */
  --gradient-red-black: linear-gradient(180deg, #8B0000 0%, #5C0000 35%, #2d0a0a 70%, #0d0303 100%);
  --gradient-red-black-card: linear-gradient(165deg, #6B1515 0%, #4a0a0a 50%, #1a0505 100%);
  --gradient-red-black-soft: linear-gradient(165deg, #7a1a1a 0%, #4d0d0d 55%, #1f0606 100%);
}

/* Body background: hockey image (images/body-bg-hockey.jpg) */
html,
body {
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background-image: url('../images/body-bg-hockey.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #1a1515;
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main Game Section – new layout: hockey image layer + two-column grid */
.main-game-section {
  position: relative;
  padding: 50px 20px 56px;
  text-align: center;
  overflow: hidden;
}

.main-game-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-hockey.jpg') center center / cover no-repeat;
  z-index: 0;
}

.main-game-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.88) 0%, rgba(92, 0, 0, 0.9) 40%, rgba(45, 10, 10, 0.95) 70%, rgba(13, 3, 3, 0.97) 100%);
  z-index: 1;
  pointer-events: none;
}

.main-game-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
  pointer-events: none;
}

.main-game-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}

@media (max-width: 768px) {
  .main-game-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.main-game-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.main-game-col-right .sponsor-section {
  margin-top: 0;
}

.main-game-col-right .winning-amount-section {
  margin-top: 0;
}

.main-game-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 28px 24px 32px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.main-game-logo-left,
.main-game-logo-right {
  flex: 0 0 auto;
}

.main-game-logo-left .main-logo,
.main-game-logo-right .main-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.main-game-info {
  flex: 1;
  min-width: 180px;
  color: var(--text-white);
  padding: 0 12px;
}

.main-game-date {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}

.main-game-time {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.main-game-info::before,
.main-game-info::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  margin: 10px auto 8px;
  border-radius: 1px;
}

.sponsor-section {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: var(--text-white);
  transition: all 0.25s ease;
}

.sponsor-link:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sponsor-logo {
  width: 72px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.sponsor-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.sponsor-text {
  font-size: 11px;
  opacity: 0.75;
  margin-bottom: 2px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sponsor-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

/* Winning Amount Section */
.winning-amount-section {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: inline-block;
  padding: 12px 28px 14px;
  background: var(--gradient-red-black-card);
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.winning-amount-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.winning-amount-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Lottery – new two-column layout: sidebar + content */
.lottery-container {
  position: relative;
  padding: 48px 20px 64px;
  background: linear-gradient(180deg, #fafafa 0%, #f5f2f2 50%, #f0eded 100%);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.lottery-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-red), var(--dark-red), transparent);
  opacity: 0.6;
}

.lottery-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .lottery-wrapper {
    grid-template-columns: 1fr;
  }
}

.lottery-sidebar {
  position: sticky;
  top: 24px;
  padding: 28px 24px;
  background: var(--gradient-red-black-card);
  border-radius: 20px;
  color: var(--text-white);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lottery-sidebar .lottery-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.lottery-tagline {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 24px;
  font-weight: 600;
}

.lottery-sidebar-amount {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lottery-sidebar-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 6px;
}

.lottery-sidebar-value {
  font-size: 26px;
  font-weight: 800;
}

.lottery-header {
  text-align: center;
  margin-bottom: 36px;
  color: var(--text-dark);
}

.lottery-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary-red);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lottery-subtitle {
  font-size: 16px;
  color: var(--text-dark);
  opacity: 0.75;
}

.lottery-content {
  max-width: 720px;
  margin: 0 auto;
}

.lottery-info {
  background: var(--bg-white);
  padding: 32px 28px 36px;
  border-radius: 20px;
  margin-bottom: 0;
  border: 1px solid rgba(220, 20, 60, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.lottery-info .lottery-sms-note {
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.8;
  color: var(--text-dark);
}

.lottery-amount {
  text-align: center;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: linear-gradient(145deg, #fff5f7 0%, #ffebef 100%);
  border-radius: 14px;
  border: 1px solid rgba(220, 20, 60, 0.12);
  color: var(--text-dark);
}

.amount-label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.amount-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: -0.02em;
}

.lottery-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.lottery-option {
  background: linear-gradient(165deg, #5C0000 0%, #3d0a0a 100%);
  padding: 18px 16px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.lottery-option:hover {
  background: var(--gradient-red-black-soft);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lottery-option.selected {
  background: linear-gradient(165deg, #B22222 0%, #8B0000 100%);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
  border-width: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.option-price {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.option-count {
  font-size: 13px;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.95);
}

.lottery-tickets-display {
  margin-bottom: 24px;
  display: none;
}

.lottery-tickets-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lottery-tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  min-height: 60px;
}

.lottery-ticket-card {
  background: linear-gradient(180deg, #fff 0%, #fefafa 100%);
  border: 1px solid rgba(220, 20, 60, 0.2);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.lottery-ticket-card:hover {
  box-shadow: 0 4px 14px rgba(220, 20, 60, 0.12);
}

.lottery-ticket-card .ticket-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.lottery-ticket-card .ticket-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: 0.03em;
}

.lottery-total {
  text-align: center;
  padding: 18px 24px;
  background: linear-gradient(145deg, #1a1d2e 0%, #12141c 100%);
  border-radius: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.total-label {
  font-size: 12px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.total-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.info-button {
  background: linear-gradient(165deg, var(--primary-red) 0%, var(--dark-red) 100%);
  color: white;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin: 12px auto;
  display: inline-block;
  border: none;
  box-shadow: 0 2px 12px rgba(220, 20, 60, 0.3);
}

.info-button:hover {
  background: linear-gradient(165deg, var(--dark-red) 0%, #8b0000 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(220, 20, 60, 0.4);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-white);
  color: var(--text-dark);
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 10px;
  position: relative;
  border: 3px solid var(--primary-red);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--primary-red);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  font-weight: bold;
}

.modal-close:hover {
  color: var(--dark-red);
}

.modal-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
}

.modal-section {
  margin-bottom: 30px;
}

.modal-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-red);
}

.modal-section p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.modal-link {
  color: var(--primary-red);
  text-decoration: underline;
  cursor: pointer;
}

.modal-link:hover {
  color: var(--dark-red);
}

.modal-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.modal-footer-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 140px;
  text-align: center;
}

.modal-footer-badge .footer-badge-link {
  display: block;
}

.modal-footer-badge .footer-badge-image {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: none;
}

.modal-footer-badge .footer-badge-image.age-18 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.modal-footer-badge .footer-badge-text {
  font-size: 12px;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

/* Overview page */
.overview-page {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.85);
  min-height: 100vh;
}

.overview-hero-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.overview-hero-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.overview-section-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.overview-events {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.overview-event-card {
  background: rgba(255, 245, 245, 0.95);
  border: 2px solid var(--primary-red);
  border-radius: 10px;
  padding: 20px;
}

.overview-event-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.overview-event-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-red);
  margin: 0;
  flex: 1 1 100%;
}

.overview-event-datetime {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 600;
}

.overview-event-vinst {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.overview-event-vinst-label {
  font-size: 12px;
  color: var(--text-dark);
  opacity: 0.8;
}

.overview-event-vinst-value {
  font-size: 14px;
  font-weight: bold;
  color: var(--primary-red);
}

.overview-event-kop {
  margin-left: auto;
  padding: 10px 24px;
  background: var(--primary-red);
  color: var(--text-white);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.overview-event-kop:hover {
  background: var(--dark-red);
  color: var(--text-white);
}

.overview-info-link {
  text-align: center;
  margin-top: 40px;
}

/* Overview page */
.overview-page {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.85);
  min-height: 100vh;
}

.overview-hero-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.overview-hero-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.overview-section-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.overview-events {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.overview-event-card {
  background: rgba(255, 245, 245, 0.95);
  border: 2px solid var(--primary-red);
  border-radius: 10px;
  padding: 20px;
}

.overview-event-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.overview-event-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-red);
  margin: 0;
  flex: 1 1 100%;
}

.overview-event-datetime {
  font-size: 15px;
  color: var(--text-dark);
}

.overview-event-teams {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-event-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.overview-event-vs {
  font-size: 12px;
  font-weight: bold;
  color: var(--primary-red);
}

.overview-event-vinst {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.overview-event-vinst-label {
  font-size: 12px;
  color: var(--text-dark);
  opacity: 0.8;
}

.overview-event-vinst-value {
  font-size: 14px;
  font-weight: bold;
  color: var(--primary-red);
}

.overview-event-kop {
  margin-left: auto;
  padding: 10px 24px;
  background: var(--primary-red);
  color: var(--text-white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.overview-event-kop:hover {
  background: var(--dark-red);
}

.overview-info-link {
  text-align: center;
  margin-top: 40px;
}

/* Historical lotteries */
.historical-page {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.85);
  min-height: 100vh;
}

.historical-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-red);
}

.lottery-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .lottery-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.lottery-item {
  background: rgba(255, 245, 245, 0.95);
  padding: 24px;
  border-radius: 12px;
  border: 2px solid rgba(220, 20, 60, 0.25);
  border-left: 5px solid var(--primary-red);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.lottery-item:hover {
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.12);
}

.lottery-item-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-red);
}

.lottery-item-date {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* Game info in historical lotteries */
.lottery-game-info {
  background: var(--primary-red);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: var(--text-white);
}

.lottery-game-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.lottery-game-day {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.lottery-game-date-number {
  font-size: 24px;
  font-weight: bold;
}

.lottery-game-month {
  font-size: 11px;
  text-transform: uppercase;
}

.lottery-game-league {
  font-size: 13px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.lottery-game-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
}

.lottery-team-home {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lottery-team-away {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}

.lottery-team-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

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

.lottery-game-time {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.lottery-item-details {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.lottery-detail {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  color: var(--text-dark);
}

.detail-value {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-red);
}

/* Navigation – wine color */
.nav {
  background: #8B0000;
  padding: 15px 0;
  border-bottom: 2px solid var(--dark-red);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-white);
}

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 16px;
  transition: opacity 0.3s;
  color: var(--text-white);
}

.nav-link:hover {
  opacity: 0.8;
}

/* Nav dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: var(--text-white);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.nav-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-dropdown-btn:active {
  transform: scale(0.98);
}

.nav-dropdown-btn .nav-dropdown-icon-close {
  display: none;
}

.nav-dropdown-btn .nav-dropdown-icon-burger {
  display: block;
}

.nav-dropdown.is-open .nav-dropdown-btn .nav-dropdown-icon-close {
  display: block;
}

.nav-dropdown.is-open .nav-dropdown-btn .nav-dropdown-icon-burger {
  display: none;
}

.nav-dropdown-icon,
.nav-dropdown-icon-burger,
.nav-dropdown-icon-close {
  width: 24px;
  height: 24px;
}

.nav-dropdown-content {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 320px;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.nav-dropdown.group:hover .nav-dropdown-content,
.nav-dropdown.is-open .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

a.nav-dropdown-item:hover,
.nav-dropdown-item-click:hover {
  background: #f5f5f5;
}

.nav-dropdown-item-title {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.nav-dropdown-item-desc {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.nav-dropdown-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 8px 0;
}

.nav-dropdown-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.nav-dropdown-btn-outline {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  text-align: center;
  border: 1px solid var(--primary-red);
  color: var(--primary-red);
  background: transparent;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-btn-outline:hover {
  background: var(--primary-red);
  color: var(--text-white);
}

.nav-dropdown-btn-primary {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  background: var(--dark-red);
  color: var(--text-white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-dropdown-btn-primary:hover {
  background: var(--primary-red);
}

/* Footer – new structure: top (badges) + bottom (actions & logo), inner spacing */
.footer {
  position: relative;
  background: var(--gradient-red-black);
  padding: 48px 32px 56px;
  margin-top: 0;
  color: var(--text-white);
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.footer-top {
  padding: 32px 32px 40px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  padding: 40px 32px 32px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

/* Footer Badges */
.footer-badges {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding: 16px 0 0;
  margin: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.footer-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 140px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-badge:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-badge-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-badge-logo {
  width: 144px;
  height: 60px;
  background: var(--bg-white);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.footer-badge-logo.age-18 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
}

.footer-badge-image {
  width: auto;
  height: 52px;
  object-fit: contain;
  display: block;
  opacity: 0.92;
}

.footer-badge-image.age-18 {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.footer-badge-text {
  font-size: 11px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  max-width: 140px;
  line-height: 1.35;
}

.footer-badge-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-block-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
  min-width: 220px;
}

.footer-block-button:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-red);
  border-color: var(--text-white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.3s;
  color: var(--text-white);
}

.footer-link:hover {
  opacity: 1;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin: 0 0 8px;
}

.footer-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  min-width: 240px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.footer-action-button.find-tickets {
  background: linear-gradient(165deg, #fff 0%, #f5f5f5 100%);
  color: var(--primary-red);
}

.footer-action-button.find-tickets:hover {
  background: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.footer-action-button.subscribe {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.footer-action-button.subscribe:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.footer-action-button svg {
  flex-shrink: 0;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
  object-fit: contain;
  opacity: 0.9;
}

.footer-text {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 0;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Stoppage Page */
.stoppage-page {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.85);
  min-height: 100vh;
}

.stoppage-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-red);
}

.stoppage-content {
  max-width: 800px;
  margin: 0 auto;
}

.stoppage-section {
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(255, 245, 245, 0.9);
  border-radius: 8px;
  border: 2px solid var(--primary-red);
}

.stoppage-section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-red);
}

.stoppage-section p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-dark);
}

.stoppage-list {
  margin: 20px 0;
  padding-left: 20px;
}

.stoppage-list li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--text-dark);
}

.support-info {
  background: var(--bg-white);
  padding: 20px;
  border-radius: 6px;
  margin-top: 15px;
}

.support-info p {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.support-info a {
  color: var(--primary-red);
  text-decoration: underline;
}

.stoppage-form-section {
  margin-bottom: 40px;
  padding: 30px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 2px solid var(--primary-red);
}

.user-info {
  background: var(--bg-white);
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
}

.user-info p {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.info-note {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 10px;
  color: var(--text-dark);
}

.stoppage-subtitle {
  font-size: 20px;
  font-weight: bold;
  margin: 30px 0 20px 0;
  color: var(--primary-red);
}

.period-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.period-option {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--bg-white);
  border: 2px solid var(--primary-red);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.period-option:hover {
  background: var(--primary-red);
  color: var(--text-white);
}

.period-option input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}

.period-option span {
  font-weight: 600;
  color: var(--text-dark);
}

.period-option:hover span {
  color: var(--text-white);
}

.period-option.selected {
  background: var(--primary-red);
}

.period-option.selected span {
  color: var(--text-white);
  font-weight: bold;
}

.period-option:hover {
  background: var(--primary-red);
}

.period-option:hover span {
  color: var(--text-white);
}

.period-option input[type="radio"]:checked ~ span {
  color: var(--text-dark);
}

.period-option.selected input[type="radio"]:checked ~ span {
  color: var(--text-white);
}

.confirmation-checkbox {
  margin: 30px 0;
  padding: 20px;
  background: var(--bg-white);
  border-radius: 6px;
}

.confirmation-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--text-dark);
}

.confirmation-checkbox input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

.stoppage-button {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

.stoppage-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Styles */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--primary-red);
  border-radius: 6px;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--dark-red);
}

.swish-input-group {
  display: flex;
  gap: 10px;
}

.swish-country-code {
  padding: 12px;
  border: 2px solid var(--primary-red);
  border-radius: 6px;
  font-size: 16px;
  background: var(--bg-white);
  color: var(--text-dark);
  cursor: pointer;
}

.swish-number-input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--primary-red);
  border-radius: 6px;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg-white);
}

.swish-number-input:focus,
.swish-country-code:focus {
  outline: none;
  border-color: var(--dark-red);
}

.cancel-button {
  background: var(--bg-white);
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.cancel-button:hover {
  background: var(--primary-red);
  color: var(--text-white);
}

/* Success Modal */
.success-modal {
  max-width: 500px;
  text-align: center;
}

.success-content {
  padding: 20px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-red);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.success-modal .modal-title {
  color: var(--primary-red);
  margin-bottom: 15px;
}

.success-modal p {
  color: var(--text-dark);
  margin-bottom: 25px;
  font-size: 16px;
}

/* Login Modal */
.login-modal {
  max-width: 500px;
  padding: 40px;
}

.login-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.login-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.4;
}

.login-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-section-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.phone-input-group {
  display: flex;
  gap: 10px;
}

.phone-country-code {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 14px;
  cursor: pointer;
  min-width: 100px;
}

.phone-number-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dark);
}

.phone-number-input:focus,
.phone-country-code:focus {
  outline: none;
  border-color: var(--primary-red);
}

.login-primary-button {
  width: 100%;
  padding: 14px;
  background: #8B4513;
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.login-primary-button:hover {
  background: #6B3410;
}

.login-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
}

.login-divider-text {
  position: relative;
  background: var(--bg-white);
  padding: 0 15px;
  color: var(--text-dark);
  font-size: 14px;
}

.login-alternatives {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-alternative-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-white);
  border: 1px solid #ddd;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.login-alternative-button:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.google-icon {
  flex-shrink: 0;
}

.email-icon {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
  .main-game-container {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px 24px;
  }
  
  .main-game-logo-left .main-logo,
  .main-game-logo-right .main-logo {
    width: 72px;
    height: 72px;
  }
  
  .main-game-date {
    font-size: 12px;
  }
  
  .main-game-time {
    font-size: 34px;
  }
  
  .winning-amount-section {
    padding: 10px 20px 12px;
  }
  
  .winning-amount-value {
    font-size: 24px;
  }
  
  .lottery-title {
    font-size: 28px;
  }
  
  .lottery-tickets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .lottery-ticket-card {
    padding: 12px;
  }
  
  .lottery-ticket-card .ticket-logo {
    width: 40px;
    height: 40px;
  }
  
  .lottery-ticket-card .ticket-number {
    font-size: 16px;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .nav-links .nav-link-desktop {
    display: none;
  }

  .nav-links {
    gap: 15px;
    font-size: 14px;
  }
  
  .nav-logo-img {
    height: 40px;
  }
  
  .nav-logo-text {
    font-size: 20px;
  }
  
  .nav-dropdown-content {
    width: calc(100vw - 40px);
    max-width: 320px;
    right: -10px;
  }

  .overview-event-teams {
    order: 0;
    width: 100%;
  }

  .overview-event-logo {
    width: 32px;
    height: 32px;
  }
  
  .login-modal {
    padding: 25px;
    max-width: 95%;
  }
  
  .login-title {
    font-size: 16px;
  }
  
  .phone-input-group {
    flex-direction: column;
  }
  
  .phone-country-code {
    width: 100%;
  }
  
  .footer-badges {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-badge {
    width: 100%;
  }
  
  .footer-block-button {
    width: 100%;
    min-width: auto;
  }
  
  .footer-actions {
    width: 100%;
  }
  
  .footer-action-button {
    width: 100%;
    min-width: auto;
  }
  
  .swish-input-group {
    flex-direction: column;
  }
  
  .swish-country-code {
    width: 100%;
  }
  
  .sponsor-link {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .sponsor-info {
    align-items: center;
  }
  
  .sponsor-logo {
    width: 80px;
  }
}
