@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Source+Sans+3:wght@400;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  /* Official Telekom Slovenije CGP (2013) palette */
  --telekom-blue: #009fe9;
  --telekom-blue-dark: #003080;
  --telekom-navy: #141760;
  --telekom-blue-soft: #eaf8fe;
  --telekom-blue-pale: #f4fbff;
  --accent: var(--telekom-blue-dark);
  /* Navy reads heavy as text — use a readable cyan-blue for accent text/links */
  --telekom-blue-ink: #0072bc;
  /* Display/heading face — approximates telekom.si's Geogrotesque; body stays Source Sans */
  --font-display: "Montserrat", "Source Sans 3", Arial, Helvetica, sans-serif;
  --ink: #171717;
  --muted: #667085;
  --line: #dceef7;
  --white: #ffffff;
  --error: #b00020;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 159, 233, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4fbff 44%, #eaf8fe 100%);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--telekom-blue-pale);
  overflow-x: hidden;
}

/* Dynamic "bubble" brand motif — overlapping translucent circles in blue tones */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 12%, rgba(0, 159, 233, 0.20) 0 110px, transparent 112px),
    radial-gradient(circle at 92% 24%, rgba(20, 23, 96, 0.12) 0 70px, transparent 72px),
    radial-gradient(circle at 8% 78%, rgba(0, 159, 233, 0.16) 0 140px, transparent 142px),
    radial-gradient(circle at 22% 90%, rgba(0, 48, 128, 0.10) 0 80px, transparent 82px),
    radial-gradient(circle at -4% 30%, rgba(0, 159, 233, 0.12) 0 100px, transparent 102px);
  animation: bubble-drift 18s ease-in-out infinite alternate;
}

@keyframes bubble-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -14px, 0) scale(1.04);
  }
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  justify-items: center;
  padding: 0 20px 36px;
}

.prediction-card {
  width: min(100%, 500px);
  background: transparent;
  overflow: visible;
  animation: page-rise 480ms ease both;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  min-height: 58px;
  padding-top: 18px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  border: 1px solid rgba(0, 114, 188, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(0, 114, 188, 0.08);
  padding: 4px;
}

.language-option {
  min-height: 34px;
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--telekom-blue-ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  padding: 6px 14px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-option:hover {
  background: rgba(0, 159, 233, 0.1);
  transform: translateY(-1px);
}

.language-option.is-active {
  background: var(--telekom-blue);
  color: var(--white);
}

.hero-copy {
  padding: 8px 0 14px;
  text-align: center;
}

h1 {
  display: grid;
  justify-content: center;
  gap: 4px;
  max-width: 460px;
  margin: 0 auto 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 8.5vw, 52px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 span:first-child {
  color: var(--telekom-blue);
}

h1 span:last-child {
  color: var(--ink);
}

h1 span {
  white-space: nowrap;
}

h1 span:first-child,
h1 span:last-child {
  animation: soft-pop 520ms ease both;
}

h1 span:last-child {
  animation-delay: 90ms;
}

.hero-subtitle {
  margin: 0 auto 4px;
  max-width: 420px;
  color: var(--telekom-blue-ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.35;
}

.prize {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin: 0;
  line-height: 1.2;
}

.prize-lead {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.prize-value {
  color: var(--telekom-blue-ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 24px 10px;
  color: var(--telekom-blue-ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prediction-form {
  display: grid;
  gap: 13px;
  padding: 0 0 18px;
}

.player-preview {
  margin: 0;
}

.player-image-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 68% 16%, rgba(20, 23, 96, 0.12), transparent 28%),
    radial-gradient(circle at 36% 22%, rgba(0, 159, 233, 0.24), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eaf8fe 55%, #d6f1fb 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 159, 233, 0.16), 0 22px 60px rgba(0, 48, 128, 0.16);
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.player-image-frame img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 220ms ease;
}

.player-image-frame.has-image img {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.player-image-frame.is-loading {
  box-shadow: inset 0 0 0 1px rgba(0, 159, 233, 0.22), 0 22px 60px rgba(0, 114, 188, 0.2);
}

.player-image-frame.has-image #player-placeholder {
  display: none;
}

#player-placeholder {
  color: rgba(0, 114, 188, 0.55);
  font-size: 132px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 12px 34px rgba(0, 114, 188, 0.18);
}

.player-number {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 58px;
  border-radius: 999px;
  background: var(--white);
  color: var(--telekom-blue-ink);
  box-shadow: 0 14px 34px rgba(0, 82, 136, 0.2);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.player-image-frame.has-image .player-number {
  opacity: 1;
  transform: translateY(0);
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--telekom-blue-ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  padding: 0;
  transition: color 160ms ease;
}

.player-meta-logo {
  width: 104px;
  height: auto;
  flex: 0 0 auto;
}

.caption-number {
  text-decoration: underline;
  text-decoration-color: var(--telekom-blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.points-wrap {
  display: none;
  gap: 8px;
  justify-items: center;
  text-align: center;
  animation: soft-pop 320ms ease both;
}

.points-wrap.is-visible {
  display: grid;
}

.points-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.points-layout {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}

.points-side {
  display: grid;
  gap: 12px;
}

.adjust {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid var(--telekom-blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--telekom-blue-ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 18px rgba(0, 159, 233, 0.1);
  transition: background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.adjust:hover {
  background: var(--telekom-blue-soft);
  box-shadow: 0 10px 24px rgba(0, 159, 233, 0.18);
  transform: translateY(-1px);
}

.adjust:active {
  transform: translateY(0);
}

.points-stepper {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eaf8fe 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 159, 233, 0.16), 0 14px 34px rgba(0, 48, 128, 0.12);
}

.points-value {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--telekom-blue-ink);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  outline: none;
  caret-color: transparent;
  user-select: none;
}

.points-value:focus {
  border: 0;
  box-shadow: none;
}

.points-value::-webkit-outer-spin-button,
.points-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.points-value[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 16px;
  font-weight: 800;
}

select,
input,
button {
  min-height: 44px;
  border: 1px solid #d9edf7;
  border-radius: 999px;
  font: inherit;
  padding: 11px 16px;
}

select,
input {
  width: 100%;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 114, 188, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230072bc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

select:focus,
input:focus {
  border-color: var(--telekom-blue);
  box-shadow: 0 0 0 4px rgba(0, 159, 233, 0.16);
  outline: 0;
}

button {
  border: 0;
  background: var(--telekom-blue);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(0, 159, 233, 0.28);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button:hover {
  background: var(--telekom-blue-dark);
  box-shadow: 0 16px 36px rgba(0, 114, 188, 0.28);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #344054;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.checkbox-label input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-height: auto;
  margin-top: 3px;
  padding: 0;
  border: 1px solid #d9edf7;
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease;
}

.checkbox-label input:checked {
  border-color: var(--telekom-blue);
  background: var(--telekom-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: 12px 12px;
}

.checkbox-label input:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 159, 233, 0.25);
}

a {
  color: var(--telekom-blue-ink);
  font-weight: 700;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--error);
  font-weight: 700;
  text-align: center;
}

.site-footer {
  display: grid;
  gap: 12px;
  padding: 6px 0 0;
  border-top: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--telekom-blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 14px;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.button-link:hover {
  background: var(--telekom-blue-dark);
  transform: translateY(-1px);
}

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

.thank-you-card {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding-bottom: 0;
}

.thank-you-card > .eyebrow,
.thank-you-card > h1,
.thank-you-card > .lede,
.thank-you-card > .button-link {
  margin-left: 24px;
  margin-right: 24px;
}

.thank-you-card > .eyebrow {
  margin-top: auto;
}

.thank-you-card > .lede {
  margin-bottom: 24px;
}

.thank-you-card > .button-link {
  margin-bottom: 24px;
}

.thank-you-card .site-footer {
  margin-top: auto;
}

@media (max-width: 520px) {
  /* Smaller, edge-biased bubbles so the centered card stays calm on narrow screens */
  body::before {
    background:
      radial-gradient(circle at 90% 5%, rgba(0, 159, 233, 0.18) 0 72px, transparent 74px),
      radial-gradient(circle at 99% 14%, rgba(20, 23, 96, 0.10) 0 44px, transparent 46px),
      radial-gradient(circle at 4% 90%, rgba(0, 159, 233, 0.14) 0 90px, transparent 92px),
      radial-gradient(circle at 26% 97%, rgba(0, 48, 128, 0.09) 0 50px, transparent 52px),
      radial-gradient(circle at -8% 42%, rgba(0, 159, 233, 0.10) 0 60px, transparent 62px);
    animation-name: bubble-drift-sm;
  }

  @keyframes bubble-drift-sm {
    from {
      transform: translate3d(0, 0, 0) scale(1);
    }

    to {
      transform: translate3d(0, -8px, 0) scale(1.03);
    }
  }

  .site-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .player-meta {
    gap: 12px;
    font-size: 20px;
  }

  .player-meta-logo {
    width: 92px;
  }

  .player-image-frame {
    border-radius: 22px;
  }

  .player-number {
    right: 14px;
    bottom: 12px;
    min-width: 72px;
    min-height: 50px;
    font-size: 28px;
  }
}
