:root {
  --bg-top: #07111f;
  --bg-bottom: #160f34;
  --surface: rgba(11, 20, 39, 0.78);
  --surface-strong: rgba(9, 17, 33, 0.92);
  --surface-soft: rgba(20, 30, 54, 0.72);
  --line: rgba(138, 231, 255, 0.22);
  --line-strong: rgba(138, 231, 255, 0.42);
  --text: #eff6ff;
  --text-soft: #b9c7df;
  --text-muted: #90a1c0;
  --accent: #7af5ff;
  --accent-2: #9cff7b;
  --accent-3: #ffd76f;
  --danger: #ff9e9e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(122, 245, 255, 0.16), transparent 22%),
    radial-gradient(circle at 85% 20%, rgba(156, 255, 123, 0.14), transparent 20%),
    radial-gradient(circle at 50% 78%, rgba(255, 215, 111, 0.15), transparent 26%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 72%, rgba(255, 255, 255, 0.65) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 42% 16%, rgba(255, 255, 255, 0.78) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 68% 58%, rgba(255, 255, 255, 0.88) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.84) 0 1.3px, transparent 2.3px),
    radial-gradient(circle at 76% 86%, rgba(255, 255, 255, 0.72) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 33% 88%, rgba(255, 255, 255, 0.75) 0 1.2px, transparent 2px);
  opacity: 0.85;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

p {
  color: var(--text-soft);
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: 0.01em;
}

.container {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(6, 12, 24, 0.6);
  border-bottom: 1px solid rgba(138, 231, 255, 0.12);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(4, 11, 23, 0.78) var(--hero-logo, url("Bilder/10F_Front.png")) center/78% no-repeat;
  border: 1px solid rgba(122, 245, 255, 0.35);
  box-shadow: inset 0 0 20px rgba(122, 245, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.26);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  display: none;
}

.brand-mark::after {
  display: none;
}

.brand-text strong {
  display: block;
  font-size: 1.02rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-soft);
  min-width: 116px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-align: center;
  transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--text);
  border-color: rgba(138, 231, 255, 0.2);
  background: rgba(138, 231, 255, 0.08);
}

.main-nav a.nav-challenge-cta {
  position: relative;
  color: #05101c;
  border-color: rgba(255, 215, 111, 0.55);
  background: linear-gradient(135deg, #ffd76f, #9cff7b);
  box-shadow: 0 10px 24px rgba(255, 215, 111, 0.25);
}

.main-nav a.nav-challenge-cta::after {
  content: "HOT";
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff6df;
  background: #a52323;
  box-shadow: 0 6px 14px rgba(165, 35, 35, 0.4);
}

.main-nav a.nav-challenge-cta:hover,
.main-nav a.nav-challenge-cta:focus-visible {
  color: #02080f;
  border-color: rgba(255, 215, 111, 0.8);
  background: linear-gradient(135deg, #ffe291, #b9ff9e);
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.locale-dropdown {
  position: relative;
}

.locale-toggle {
  border: 1px solid rgba(138, 231, 255, 0.22);
  background: rgba(9, 16, 31, 0.72);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.locale-toggle:hover,
.locale-toggle:focus-visible,
.locale-dropdown.is-open .locale-toggle {
  color: var(--text);
  border-color: rgba(138, 231, 255, 0.35);
  background: rgba(138, 231, 255, 0.12);
}

.locale-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 206px;
  display: none;
  flex-direction: column;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(138, 231, 255, 0.22);
  background: rgba(7, 14, 28, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  z-index: 60;
}

.locale-dropdown.is-open .locale-panel {
  display: flex;
}

.locale-panel a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  padding: 8px 10px;
}

.locale-panel a:hover,
.locale-panel a:focus-visible,
.locale-panel a[aria-current="true"] {
  color: var(--text);
  background: rgba(138, 231, 255, 0.14);
}

.hero {
  padding: 42px 0 24px;
}

.hero-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 42px 24px 32px;
}

.hero-screen {
  padding: 16px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(138, 231, 255, 0.22);
  background: linear-gradient(180deg, rgba(7, 18, 34, 0.96), rgba(11, 17, 31, 0.9));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 80px rgba(122, 245, 255, 0.08);
}

.hero-screen img {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius-xl) - 10px);
}

.hero-orbit {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.7fr) minmax(220px, 0.92fr);
  gap: 28px;
  align-items: stretch;
  padding: 8px 0 40px;
}

.orbit-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 290px);
  justify-content: center;
  align-self: stretch;
}

.orbit-col-left {
  justify-self: end;
  padding-right: 4px;
}

.orbit-col-right {
  justify-self: start;
  padding-left: 4px;
}

.orbit-col-right .orbit-title {
  margin-left: auto;
}

.orbit-screen {
  display: grid;
  gap: 18px;
  align-content: center;
  min-width: 0;
}

.orbit-title {
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(138, 231, 255, 0.2);
  background: linear-gradient(135deg, rgba(122, 245, 255, 0.1), rgba(255, 215, 111, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: #f5fbff;
  margin: 0 0 2px;
}

.orbit-speedtest {
  max-width: 74%;
  margin: 0 auto;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(138, 231, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 20, 38, 0.86), rgba(11, 17, 31, 0.78));
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 231, 255, 0.4), transparent);
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 22px;
}

.hero-logo {
  width: min(130px, 28vw);
  margin-bottom: 0;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.36));
}

.hero h1 {
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.06;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 80ch;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 0;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button {
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), #cffff8);
  box-shadow: 0 16px 34px rgba(122, 245, 255, 0.28);
}

.button-compact {
  min-height: 46px;
  padding: 0 18px;
}

.brand-inline-link,
.footer-brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-inline-link:hover,
.brand-inline-link:focus-visible,
.footer-brand-link:hover,
.footer-brand-link:focus-visible {
  text-decoration: underline;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(138, 231, 255, 0.28);
}

.button:hover,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
}

.fact {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(17, 28, 51, 0.9), rgba(10, 17, 31, 0.88));
  border: 1px solid rgba(138, 231, 255, 0.16);
  border-left: 4px solid rgba(122, 245, 255, 0.55);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.fact strong {
  display: block;
  font-size: 1rem;
  color: #f7fbff;
  margin-bottom: 6px;
}

.fact span {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.56;
}

.hero-visual {
  padding: 22px;
}

.hero-visual {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero-visual-wide {
  padding: 18px;
}

.visual-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(138, 231, 255, 0.28);
  background: rgba(0, 0, 0, 0.3);
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-launch {
  display: flex;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
}

main {
  padding-bottom: 48px;
}

.section {
  padding: 26px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}


.page-hero {
  padding-top: 36px;
  padding-bottom: 12px;
}

.page-hero .kicker {
  display: none;
}
.section-header > div {
  width: 100%;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.section-header p {
  max-width: 100%;
  margin: 0;
}

.grid-3,
.grid-2,
.gallery-grid,
.news-grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(138, 231, 255, 0.14);
  background: linear-gradient(180deg, rgba(14, 24, 45, 0.78), rgba(9, 16, 31, 0.78));
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul,
.content-card ul,
.timeline ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
}

.metric {
  font-size: 2.5rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.gallery-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gallery-card {
  grid-column: span 4;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

.gallery-card figure {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(210px, 260px) auto;
  height: 100%;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  padding: 14px;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(7, 17, 33, 0.92), rgba(11, 18, 32, 0.84));
}

.gallery-card figcaption {
  padding: 16px 18px 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 231, 255, 0.14);
}

.step-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 14px;
  font-weight: 700;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.callout {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(122, 245, 255, 0.12), rgba(255, 215, 111, 0.08));
  border: 1px solid rgba(138, 231, 255, 0.24);
}

.media-stack {
  display: grid;
  gap: 16px;
}

.media-card-image {
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(138, 231, 255, 0.18);
}

.media-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.challenge-invitation {
  text-align: center;
}
.challenge-invitation .download-wrap {
  margin-top: 8px;
}

.invite-download-link {
  display: block;
  text-decoration: none;
}
.invite-download-link img {
  display: block;
  width: 100%;
}

.copy-tools {
  display: block;
}
.copy-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.copy-field span {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.2;
  word-break: break-all;
}
.copy-field .button {
  white-space: nowrap;
  font-size: inherit;
  padding: 6px 10px;
  display: inline-block;
}
.button.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(138, 231, 255, 0.28);
}

.copy-field.fullwidth {
  grid-column: 1 / -1;
  width: 100%;
}

.challenge-invitation-wide {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 231, 255, 0.12);
  margin-top: 14px;
}

.copy-field {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(138, 231, 255, 0.08);
}
.copy-field strong {
  display: block;
  text-align: center;
}
.copy-field span {
  color: var(--text-soft);
  overflow-wrap: anywhere;
  text-align: center;
}
.copy-field .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 1rem;
  white-space: nowrap;
}
.news-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.news-media-card {
  margin-bottom: 0;
}
.news-media-card img {
  aspect-ratio: auto;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(7, 17, 33, 0.92), rgba(11, 18, 32, 0.84));
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.copy-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.copy-field {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 231, 255, 0.12);
}

.copy-field strong {
  color: var(--accent);
}

.copy-field span {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.challenge-media-card img {
  object-fit: contain;
  aspect-ratio: auto;
  background: rgba(4, 10, 20, 0.5);
  width: 100%;
  height: 100%;
  max-height: none;
}

.invite-media-card {
  min-height: 250px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(7, 17, 33, 0.94), rgba(12, 20, 36, 0.86));
}

.invite-media-card img {
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
}

.copy-button {
  width: fit-content;
  min-height: 44px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.info-list div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 231, 255, 0.12);
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.inline-links a,
.text-link {
  color: var(--accent);
  text-decoration: none;
}

.inline-links a:hover,
.inline-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.scoreboard {
  display: grid;
  gap: 14px;
}

.score-row {
  display: grid;
  grid-template-columns: 90px 1fr 150px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(138, 231, 255, 0.1);
}

.score-row strong {
  color: var(--accent);
}

.score-row span:last-child {
  text-align: right;
  color: var(--text-muted);
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
  .news-media-grid {
    grid-template-columns: 1fr;
  }

.news-card time,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(138, 231, 255, 0.16);
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.content-card,
.timeline {
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(138, 231, 255, 0.14);
  background: linear-gradient(180deg, rgba(11, 19, 36, 0.85), rgba(10, 16, 29, 0.9));
}

.showcase-card {
  display: grid;
  grid-template-rows: 196px minmax(300px, 300px) 44px auto;
  gap: 18px;
  height: 100%;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.showcase-card .tag,
.ranking-page-card .tag,
.challenge-page-card .tag {
  width: fit-content;
  margin-bottom: 2px;
}

.showcase-card h2 {
  margin: 0;
}

.showcase-card p {
  margin-top: 0;
  margin-bottom: 0;
}

.showcase-card .media-card-image {
  margin: 0;
  min-height: 300px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(7, 17, 33, 0.9), rgba(12, 20, 36, 0.86));
}

.showcase-card .media-card-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.showcase-card .inline-links {
  margin-top: 0;
}

.showcase-links {
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-top: 0;
  padding-top: 2px;
}

.challenge-showcase-card {
  position: relative;
  border-color: rgba(255, 215, 111, 0.3);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 215, 111, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(21, 27, 49, 0.9), rgba(11, 18, 33, 0.94));
}

.challenge-showcase-card::before {
  content: "Weekly";
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 111, 0.4);
  color: #ffe8ad;
  background: rgba(13, 22, 41, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.challenge-tag {
  color: #ffe39a;
  border-color: rgba(255, 215, 111, 0.34);
  background: rgba(255, 215, 111, 0.1);
}

.challenge-hook {
  margin: 0;
  color: #fef6df;
  font-weight: 700;
}

.challenge-week-timer {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 111, 0.32);
  background: linear-gradient(180deg, rgba(11, 20, 36, 0.86), rgba(7, 14, 28, 0.94));
}

.challenge-week-label {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffe9b4;
}

.challenge-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-unit {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(138, 231, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.countdown-unit strong {
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1;
}

.countdown-unit span {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.challenge-week-deadline {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.ranking-media-card,
.ranking-page-media {
  position: relative;
  min-height: 300px;
  padding: 18px;
  background:
    radial-gradient(circle at top center, rgba(255, 215, 111, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(8, 18, 34, 0.96), rgba(11, 20, 36, 0.92));
  border: 1px solid rgba(255, 215, 111, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 111, 0.08),
    inset 0 0 0 10px rgba(6, 13, 25, 0.42),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.ranking-media-card img,
.ranking-page-media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  padding: 10px;
  aspect-ratio: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 111, 0.14);
  background: linear-gradient(180deg, rgba(3, 10, 20, 0.82), rgba(7, 13, 24, 0.78));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.homepage-invite-media-card {
  min-height: 300px;
  align-items: flex-start;
  padding-top: 18px;
}

.homepage-invite-media-card img {
  max-height: 236px;
}

.showcase-card .media-card-image,
.ranking-media-card,
.homepage-invite-media-card,
.challenge-media-card {
  min-height: 300px;
  max-height: 360px;
}

.challenge-page-media-card,
.invite-media-card {
  max-height: none;
}

.showcase-card .media-card-image img,
.ranking-media-card img,
.homepage-invite-media-card img,
.challenge-media-card img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.section-header .button-secondary {
  white-space: nowrap;
}

.news-card h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.challenge-page-media-card {
  min-height: 520px;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.challenge-page-media-card img {
  max-height: 520px;
}

.ranking-page-card,
.challenge-page-card {
  overflow: visible;
}

.challenge-page-card {
  position: relative;
  border-color: rgba(255, 215, 111, 0.3);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 215, 111, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(21, 27, 49, 0.9), rgba(11, 18, 33, 0.94));
}

.challenge-page-card::before {
  content: "Weekly";
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 111, 0.4);
  color: #ffe8ad;
  background: rgba(13, 22, 41, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.challenge-page-title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fef6df;
}

.challenge-page-card > .tag,
.challenge-page-card > .challenge-page-title,
.challenge-page-card > p {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.challenge-page-card > p {
  max-width: 74ch;
}

.challenge-page-card > p.challenge-lead {
  max-width: none;
  width: 100%;
  display: block;
}

.page-note {
  margin: 2px 0 0;
  color: var(--text-muted);
}

.ranking-archive {
  padding: 0;
  overflow: hidden;
  border-color: rgba(138, 231, 255, 0.16);
  background: rgba(7, 16, 30, 0.72);
}

.ranking-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.ranking-archive summary::-webkit-details-marker {
  display: none;
}

.ranking-archive summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.ranking-archive details[open] summary::after {
  content: '-';
}

.ranking-archive-summary h2,
.ranking-archive-summary p {
  margin: 0;
}

.ranking-archive-summary h2 {
  color: #fef6df;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.ranking-archive-summary p {
  margin-top: 4px;
  color: var(--text-muted);
}

.ranking-archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 24px 24px;
}

.ranking-archive-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 111, 0.14);
  border-radius: 8px;
  background: rgba(3, 10, 20, 0.56);
}

.ranking-archive-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-bottom: 1px solid rgba(255, 215, 111, 0.12);
}

.ranking-archive-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - 14px) / 2);
  justify-self: center;
}

.ranking-archive-item h3 {
  margin: 0;
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .ranking-archive summary {
    padding: 18px;
  }

  .ranking-archive-list {
    grid-template-columns: 1fr;
    padding: 2px 18px 18px;
  }

  .ranking-archive-item:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
  }
}

.challenge-page-card .cta-panel {
  margin: 18px 0 24px;
  padding-left: 0;
  justify-content: center;
}

.challenge-results-link {
  display: flex;
  justify-content: center;
  margin: -8px 0 24px;
}

.challenge-cta-button {
  padding-inline: 28px;
  position: relative;
  color: #06111f;
  background: linear-gradient(135deg, #ffd76f, #9cff7b);
  border: 1px solid rgba(255, 215, 111, 0.6);
  box-shadow: 0 12px 36px rgba(255, 215, 111, 0.35);
  font-weight: 700;
  min-height: 56px;
}

.challenge-cta-button:hover,
.challenge-cta-button:focus-visible {
  background: linear-gradient(135deg, #ffe291, #b9ff9e);
  box-shadow: 0 16px 48px rgba(255, 215, 111, 0.45);
  transform: translateY(-3px);
}

.copy-field-wide {
  grid-column: 1 / -1;
}

.content-card + .content-card {
  margin-top: 18px;
}

.showcase-grid .content-card + .content-card {
  margin-top: 0;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 20px;
}

.side-panel {
  position: sticky;
  top: 96px;
}

.breadcrumbs {
  display: none;
}

.breadcrumbs a {
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--accent);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(138, 231, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.site-footer {
  padding: 18px 0 42px;
}

.footer-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(138, 231, 255, 0.12);
  background: rgba(5, 11, 23, 0.72);
}

.footer-brand-block {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.footer-shell > div:last-child {
  color: var(--text-soft);
  font-size: 0.95rem;
  white-space: nowrap;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .hero-orbit {
    grid-template-columns: 1fr;
  }

  .orbit-col {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-self: stretch;
    padding: 0;
  }

  .orbit-speedtest {
    max-width: 100%;
  }

  .two-column-layout,
  .grid-3,
  .news-grid,
  .grid-2,
  .steps,
  .copy-tools {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    grid-column: span 6;
  }

  .showcase-copy {
    min-height: 0;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-row,
  .section-header,
  .footer-shell,
  .score-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-row,
  .footer-shell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .header-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .locale-panel {
    right: auto;
    left: 0;
    min-width: 188px;
  }

  .main-nav a.nav-challenge-cta::after {
    top: -6px;
    right: -4px;
  }

  .main-nav a {
    min-width: 0;
  }

  .content-card,
  .timeline,
  .card {
    padding: 22px;
  }

  .hero-topline {
    align-items: center;
    flex-direction: column;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .challenge-countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card {
    grid-column: span 1;
  }

  .score-row {
    gap: 4px;
  }

  .score-row span:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 6px 0;
  }

  .header-row {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .brand-text {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 6px;
  }

  .header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
  }

  .locale-dropdown {
    flex: 0 0 auto;
    order: 1;
    margin-left: 6px;
  }

  .nav-toggle {
    flex: 0 0 auto;
    margin-left: 6px;
    order: 2;
  }

  .brand {
    order: 0;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-intro {
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-screen,
  .hero-visual,
  .visual-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-screen img,
  .hero-visual img,
  .visual-frame img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 760px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .site-header,
  .hero,
  .main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  img, .panel, .card, .visual-frame {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(138, 231, 255, 0.12);
  background: rgba(9, 16, 31, 0.6);
  color: var(--text-soft);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-text {
    display: block;
    font-size: 0.88rem;
    max-width: calc(100% - 120px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(138, 231, 255, 0.12);
    background: rgba(6, 12, 24, 0.9);
    min-width: 180px;
    z-index: 60;
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .visual-frame img,
  .hero-screen img,
  .hero-visual img,
  .homepage-invite-media-card img,
  .challenge-media-card img {
    object-fit: contain !important;
    height: auto !important;
    max-height: 480px;
  }

  .hero-intro {
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 420px) {
  .brand-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    word-break: break-word;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .visual-frame img,
  .hero-screen img,
  .hero-visual img {
    object-fit: contain !important;
    height: auto !important;
    max-height: 420px;
  }

  .visual-frame {
    padding: 12px;
  }

  .hero-orbit {
    gap: 18px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 480px) {
  .brand-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: calc(100% - 64px) !important;
    word-break: break-word;
    font-size: 0.98rem !important;
    line-height: 1.05;
    padding-right: 6px;
  }

  .brand-mark {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
  }

  .header-row {
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .header-controls {
    min-width: 0;
  }
}

/* Slightly reduce brand text on mobile to avoid wrapping and improve fit */
@media (max-width: 760px) {
  .brand-text strong {
    font-size: 0.92rem !important;
  }
}

@media (max-width: 420px) {
  .brand-text strong {
    font-size: 0.86rem !important;
  }
}
