:root {
  --c-navy: #0A1438;
  --c-navy-light: #0d2146;
  --c-green: #10b981;
  --c-amber: #e8d3a4;
  --c-amber-hover: #d4bd88;
  --c-white: #ffffff;
  --c-gray: #9ca3af;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--c-navy);
  color: var(--c-white);
  line-height: 1.6;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 60px 20px 40px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 56, 0.4) 0%,
    rgba(10, 20, 56, 0.4) 60%,
    rgba(10, 20, 56, 1) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

.brand-logo-text {
  color: var(--c-amber);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.main-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.2;
}

.match-details p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.match-details span {
  color: var(--c-amber);
  margin: 0 10px;
}

.match-sub-info {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  color: var(--c-gray);
  font-weight: 400 !important;
}

.prize-badge {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 40px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--c-green);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-white);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.prize-badge span {
  display: block;
  font-size: 2.5rem;
  color: var(--c-green);
  line-height: 1;
  margin-top: 5px;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 40px;
  position: relative;
  z-index: 3;
}

.status-message {
  text-align: center;
  padding: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* SCORE INPUTS */
.score-prediction-section {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--c-gray);
}

.score-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.team-block .flag {
  font-size: 2.5rem;
  margin-bottom: 10px;
  line-height: 1;
}

.team-block label {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.team-block input {
  width: 80px;
  height: 80px;
  text-align: center;
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: var(--c-white);
  transition: all 0.3s ease;
}

.team-block input:focus {
  outline: none;
  border-color: var(--c-amber);
  box-shadow: 0 0 15px rgba(232, 211, 164, 0.3);
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type="number"] {
  -moz-appearance: textfield;
}

.vs-divider {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-gray);
  margin-top: 50px;
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-gray);
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus {
  outline: none;
  border-color: var(--c-amber);
  background: rgba(255,255,255,0.1);
}

.checkbox-group {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  top: 3px;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(255,255,255,0.2);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--c-amber);
  border-color: var(--c-amber);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #0A1438;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.label-text {
  font-size: 0.85rem;
  color: var(--c-gray);
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 12px;
  background: var(--c-amber);
  color: #0A1438;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(232, 211, 164, 0.3);
}

.submit-button:hover {
  background: var(--c-amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 211, 164, 0.4);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* RULES */
.rules-section h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--c-white);
}

.rules-section ol {
  padding-left: 20px;
  list-style-type: decimal;
}

.rules-section li {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #9ca3af;
  padding-left: 5px;
}

/* ERRORS */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  color: #fca5a5;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* SUCCESS SCREEN */
#thank-you-screen {
  text-align: center;
  padding: 50px 30px;
}

#thank-you-screen h2 {
  font-family: var(--font-heading);
  color: var(--c-green);
  font-size: 2rem;
  margin-bottom: 15px;
}

#thank-you-screen p {
  color: var(--c-gray);
}

.success-icon {
  font-size: 3rem;
  color: var(--c-green);
  margin-top: 30px;
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 74px;
  border-radius: 50%;
  border: 3px solid var(--c-green);
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 30px 20px 40px;
  background: rgba(0,0,0,0.3);
  margin-top: auto;
}

.age-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.age-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 36px;
  border: 2px solid var(--c-gray);
  border-radius: 50%;
  font-weight: 700;
  color: var(--c-gray);
}

.age-warning p {
  font-size: 0.85rem;
  color: var(--c-gray);
  text-align: left;
  max-width: 250px;
}

#wbx-powered-by-slot {
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
}

@media (min-width: 768px) {
  .main-title {
    font-size: 3.2rem;
  }
}
