@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #013f51;
  --bg-soft: #014b59;
  --surface: rgba(0, 48, 59, 0.84);
  --surface-hover: rgba(0, 57, 67, 0.95);
  --text: #f6fbfc;
  --muted: #a8bdc1;
  --cyan: #16dce0;
  --blue: #148de8;
  --gold: #ffc942;
  --gold-soft: rgba(255, 201, 66, 0.26);
  --line: rgba(34, 226, 220, 0.34);
  --card-shadow: 0 18px 50px rgba(0, 0, 0, 0.24), 0 0 28px rgba(15, 203, 202, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(19, 210, 208, 0.1), transparent 32rem),
    linear-gradient(180deg, #01505e 0, #014957 320px, #013f51 620px, #013946 100%);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 46%, rgba(255, 201, 66, 0.05), transparent 27rem),
    linear-gradient(180deg, #01505e 0, #014957 320px, #013f51 620px, #013946 100%);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.34);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: auto;
  padding: calc(20px + env(safe-area-inset-top)) 30px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand picture,
.brand img {
  display: block;
  width: 42px;
  height: 42px;
}

.brand img {
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.brand > span > span,
.footer-brand span {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 29, 35, 0.72);
}

.lang-switch button {
  min-width: 39px;
  border: 0;
  border-radius: 999px;
  padding: 7px 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.lang-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, #28dce2, #168edc);
  color: #fff;
}

.lang-switch button:active {
  transform: scale(0.94);
}

.header-link {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c6f8f5;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-link span {
  margin-left: 5px;
  color: var(--gold);
}

.header-link:hover {
  border-color: var(--gold-soft);
  background: rgba(16, 221, 218, 0.08);
  transform: translateY(-1px);
}

main {
  max-width: 980px;
  margin: auto;
  padding: 0 30px;
}

.hero {
  position: relative;
  display: grid;
  place-content: center;
  min-height: 520px;
  padding: 26px 20px 52px;
  text-align: center;
}

.hero::before {
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(90vw, 620px);
  height: 470px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 105, 109, 0.46), rgba(17, 218, 216, 0.08) 55%, transparent 72%);
  filter: blur(12px);
  content: "";
  pointer-events: none;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(350px, 62vw);
  margin: 0 auto;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.28));
}

.hero-logo picture,
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-decoration {
  position: absolute;
  z-index: 1;
  color: var(--gold);
  font-size: clamp(30px, 5vw, 55px);
  filter: drop-shadow(0 0 12px rgba(255, 201, 66, 0.28));
}

.hero-decoration-left {
  top: 31%;
  left: 5%;
  transform: rotate(-18deg);
}

.hero-decoration-right {
  top: 24%;
  right: 6%;
  transform: rotate(19deg);
}

.hero-line {
  position: relative;
  z-index: 1;
  width: min(420px, 80%);
  height: 1px;
  margin: 22px auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.hero-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0 10px;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--gold);
  font-size: 13px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  color: #bed0d3;
  font-size: 15px;
  line-height: 1.65;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-bottom: 22px;
}

.section-heading h1 {
  margin: 0;
  font-size: clamp(31px, 5vw, 47px);
  line-height: 1.1;
  letter-spacing: -1.8px;
}

.section-heading span {
  color: var(--gold);
  font-size: 19px;
  filter: drop-shadow(0 0 8px rgba(255, 201, 66, 0.25));
}

.format-list {
  display: grid;
  gap: 14px;
}

.game-card,
.utility-card,
.official-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 201, 66, 0.07), transparent 19rem),
    linear-gradient(145deg, rgba(10, 57, 67, 0.9), var(--surface));
  box-shadow: var(--card-shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.game-card::before,
.utility-card::before,
.official-card::before {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 201, 66, 0.34), transparent 34%, rgba(19, 221, 216, 0.28)) border-box;
  content: "";
  opacity: 0.3;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.game-card:hover,
.utility-card:hover,
.official-card:hover {
  border-color: rgba(255, 201, 66, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 201, 66, 0.1), transparent 20rem),
    linear-gradient(145deg, var(--surface-hover), rgba(8, 48, 57, 0.96));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3), 0 0 32px rgba(16, 220, 217, 0.1);
  transform: translateY(-4px);
}

.game-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 21px;
}

.icon-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 3px auto 0;
  border: 1px dashed rgba(255, 201, 66, 0.68);
  border-radius: 50%;
}

.icon-orbit::before {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffda67, #e6a91e);
  box-shadow: 0 8px 24px rgba(255, 190, 38, 0.16);
  content: "";
}

.icon-orbit svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #14333b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.card-content {
  min-width: 0;
}

.card-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.card-kicker {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 13px;
  font-size: clamp(23px, 3.2vw, 31px);
  line-height: 1.17;
  letter-spacing: -1px;
}

.card-index {
  flex: 0 0 auto;
  color: rgba(255, 201, 66, 0.47);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.card-description {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.entry {
  margin: 13px 0;
  color: #dce9eb;
  font-size: 14px;
  font-weight: 600;
}

.entry strong {
  color: var(--gold);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(255, 201, 66, 0.12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 270px);
  min-height: 46px;
  border: 1px solid rgba(126, 229, 255, 0.35);
  border-radius: 15px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #18cbdc 0%, #159be8 52%, #1478d8 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(12, 132, 211, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button > span:last-child {
  margin-left: auto;
  font-size: 17px;
}

.button-label {
  min-width: 0;
}

.button:hover {
  filter: brightness(1.16) saturate(1.08);
  box-shadow: 0 16px 35px rgba(12, 149, 224, 0.33), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transform: scale(1.025);
}

.button:active {
  transform: scale(0.985);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.utility-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.utility-card .icon-orbit {
  margin: 0 0 18px;
}

.utility-card .card-description {
  flex: 1;
  margin-bottom: 17px;
}

.utility-card .button {
  width: 100%;
  max-width: none;
}

.official-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 19px;
  align-items: center;
  margin: 14px 0 45px;
  padding: 23px;
}

.official-card .icon-orbit {
  width: 64px;
  height: 64px;
  margin: 0;
}

.official-card .icon-orbit svg {
  width: 25px;
  height: 25px;
}

.official-content .button {
  margin-top: 16px;
}

footer {
  padding: 0 30px calc(30px + env(safe-area-inset-bottom));
  color: #718e93;
  text-align: center;
}

.footer-line {
  position: relative;
  width: min(500px, 80%);
  height: 1px;
  margin: 0 auto 25px;
  background: linear-gradient(90deg, transparent, rgba(255, 201, 66, 0.33), transparent);
}

.footer-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0 9px;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--gold);
  font-size: 8px;
}

.footer-brand {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

footer p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cookie-settings {
  margin-top: 8px;
  border: 0;
  padding: 4px 8px;
  background: transparent;
  color: #86a5aa;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  right: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  width: min(680px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(6, 38, 46, 0.97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45), 0 0 28px rgba(16, 220, 217, 0.08);
  transform: translateX(50%);
  backdrop-filter: blur(18px);
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 7px;
}

.cookie-button {
  min-height: 38px;
  border-radius: 11px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.cookie-button-primary {
  border: 1px solid rgba(126, 229, 255, 0.35);
  background: linear-gradient(135deg, #18cbdc, #1478d8);
  color: #fff;
}

.cookie-button-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .topbar,
  main {
    padding-right: 18px;
    padding-left: 18px;
  }

  .topbar {
    padding-top: calc(15px + env(safe-area-inset-top));
  }

  .header-link {
    padding: 8px 12px;
    font-size: 11px;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-switch button {
    min-width: 35px;
    padding: 7px;
  }

  .hero {
    min-height: 400px;
    padding: 18px 4px 36px;
  }

  .hero-logo {
    width: min(280px, 82vw);
  }

  .hero-decoration-left {
    top: 21%;
    left: 0;
  }

  .hero-decoration-right {
    top: 13%;
    right: 0;
  }

  .hero-copy {
    font-size: 13px;
    line-height: 1.5;
  }

  .section-heading {
    gap: 11px;
    margin-bottom: 16px;
  }

  .section-heading h1 {
    font-size: 27px;
  }

  .game-card {
    grid-template-columns: 50px 1fr;
    gap: 11px;
    border-radius: 18px;
    padding: 15px;
  }

  .game-card .icon-orbit {
    margin: 0;
    width: 48px;
    height: 48px;
  }

  .game-card .icon-orbit::before {
    inset: 5px;
  }

  .game-card .icon-orbit svg {
    width: 19px;
    height: 19px;
  }

  .card-kicker {
    margin-bottom: 3px;
    font-size: 9px;
  }

  h2 {
    margin-bottom: 8px;
    font-size: 20px;
  }

  .card-description {
    font-size: 12px;
    line-height: 1.48;
  }

  .entry {
    margin: 9px 0;
    font-size: 12px;
  }

  .button {
    width: 100%;
    max-width: none;
    min-height: 42px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .utility-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 30px;
  }

  .utility-card {
    padding: 16px;
  }

  .utility-card .icon-orbit {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }

  .utility-card .card-description {
    margin-bottom: 12px;
  }

  .official-card {
    grid-template-columns: 52px 1fr;
    gap: 12px;
    margin-bottom: 35px;
    padding: 16px;
  }

  .official-card .icon-orbit {
    width: 50px;
    height: 50px;
  }

  .official-content .button {
    margin-top: 11px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 14px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1121px) {
  body {
    padding: 24px 0;
  }

  .page-shell {
    min-height: calc(100vh - 48px);
    border: 1px solid rgba(28, 213, 210, 0.14);
    border-radius: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .game-card,
  .utility-card,
  .official-card,
  .header-link,
  .lang-switch button {
    transition: none;
  }
}
