:root {
  --mak-blue: #0508f6;
  --mak-red: #f20a0a;
  --page-bg: #000;
  --flag-border: rgba(255, 255, 255, 0.34);
  --control-bg: rgba(255, 255, 255, 0.1);
  --control-border: rgba(255, 255, 255, 0.24);
  --control-text: #fff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  transition: background 220ms ease;
}

body[data-theme="tonal"] {
  --page-bg:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(118deg, #02045d 0%, var(--mak-blue) 28%, #26001f 52%, var(--mak-red) 100%);
}

.theme-switcher {
  position: fixed;
  z-index: 5;
  top: clamp(0.8rem, 2vw, 1.4rem);
  right: clamp(0.8rem, 2vw, 1.4rem);
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.theme-button {
  min-width: 6.3rem;
  min-height: 2.3rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--control-text);
  cursor: pointer;
  font: 700 0.9rem/1 Arial, Helvetica, sans-serif;
}

.theme-button:hover,
.theme-button:focus-visible {
  background: var(--control-bg);
}

.theme-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.theme-button.is-active {
  background: #fff;
  color: #080808;
}

.intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 3rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.logo {
  display: block;
  width: min(66vw, 1120px);
  max-width: 100%;
  max-height: 58vh;
  height: auto;
  object-fit: contain;
}

body[data-theme="tonal"] .logo {
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.22));
}

.messages {
  display: grid;
  gap: clamp(0.75rem, 1.8vh, 1.1rem);
  width: min(100%, 920px);
}

.message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2vw, 1rem);
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.22;
}

.message span {
  color: var(--mak-blue);
  background: linear-gradient(90deg, var(--mak-blue) 0%, var(--mak-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

body[data-theme="tonal"] .message span {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.3);
}

.flag {
  flex: 0 0 auto;
  width: clamp(2.1rem, 5vw, 3rem);
  height: auto;
  border: 1px solid var(--flag-border);
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .intro {
    justify-content: center;
    gap: 1.7rem;
  }

  .theme-switcher {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100% - 2rem), 22rem);
  }

  .logo {
    width: min(92vw, 560px);
    max-height: 42vh;
  }

  .message {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
    font-size: clamp(1.05rem, 5.2vw, 1.5rem);
  }
}
