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

:root {
  color-scheme: light;
  --telekom-blue: #009fe3;
  --telekom-blue-dark: #0072bc;
  --telekom-blue-soft: #eaf8fe;
  --telekom-blue-pale: #f4fbff;
  --magenta: #e20074;
  --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, 227, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4fbff 44%, #eaf8fe 100%);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--telekom-blue-pale);
}

@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 {
  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-dark);
  cursor: pointer;
  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, 227, 0.1);
  transform: translateY(-1px);
}

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

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

h1 {
  display: grid;
  gap: 4px;
  max-width: 460px;
  margin: 0 auto 14px;
  color: var(--ink);
  font-size: clamp(42px, 11vw, 64px);
  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 {
  text-wrap: balance;
}

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

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

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

.prize strong {
  color: var(--magenta);
  font-weight: 900;
}

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

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

.player-preview {
  margin: 0;
}

.player-image-frame {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 68% 16%, rgba(226, 0, 116, 0.11), transparent 28%),
    radial-gradient(circle at 36% 22%, rgba(0, 159, 227, 0.24), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eaf8fe 55%, #d6f1fb 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 159, 227, 0.16), 0 22px 60px rgba(0, 114, 188, 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, 227, 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.72);
  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;
  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-dark);
  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: 14px;
  color: var(--telekom-blue-dark);
  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(--magenta);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

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

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

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

select,
input,
button {
  min-height: 48px;
  border: 1px solid #d9edf7;
  border-radius: 999px;
  font: inherit;
  padding: 13px 18px;
}

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:focus,
input:focus {
  border-color: var(--telekom-blue);
  box-shadow: 0 0 0 4px rgba(0, 159, 227, 0.16);
  outline: 0;
}

button {
  border: 0;
  background: var(--telekom-blue);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(0, 159, 227, 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;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin-top: 3px;
  border-radius: 4px;
  accent-color: var(--telekom-blue);
  flex: 0 0 auto;
  box-shadow: none;
}

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

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

.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-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 > .lede {
  margin-bottom: 24px;
}

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

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

@media (max-width: 520px) {
  .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;
  }
}
