:root {
  --bg: #090909;
  --panel: #151515;
  --panel-line: #303030;
  --text: #f4f4f4;
  --muted: #a9a9a9;
  --orange: #ff7a18;
  --orange-soft: rgba(255, 122, 24, 0.24);
  --shadow: rgba(255, 122, 24, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #090909;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 122, 24, 0.16), transparent 34rem),
    linear-gradient(145deg, #050505 0%, #171717 52%, #0b0b0b 100%);
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

.language-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #252525, #111);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  outline: none;
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--orange-soft), 0 14px 34px rgba(255, 122, 24, 0.2);
}

.menu-panel {
  position: relative;
  width: min(92vw, 460px);
  padding: 44px 28px 28px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: rgba(21, 21, 21, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  text-align: center;
}

.brand-mark {
  width: 42px;
  height: 5px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: var(--orange);
  box-shadow: 0 0 24px var(--shadow);
}

h1 {
  margin: 0 0 26px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: 0;
}

.button-list {
  display: grid;
  gap: 12px;
}

.menu-button {
  width: 100%;
  min-height: 54px;
  border: 1px solid #343434;
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #242424, #171717);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.menu-button:hover,
.menu-button:focus-visible {
  outline: none;
  color: #fff;
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--orange-soft), 0 14px 34px rgba(255, 122, 24, 0.18);
}

.menu-button:active {
  transform: translateY(0);
}

.notice {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--orange);
  border-radius: 8px;
  color: #ffd9bd;
  background: rgba(255, 122, 24, 0.11);
  line-height: 1.45;
}

.notice.is-visible {
  display: block;
}

.empty-state {
  color: var(--muted);
  line-height: 1.5;
}

.privacy-link {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  color: #9f9f9f;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.privacy-link:hover,
.privacy-link:focus-visible {
  outline: none;
  color: var(--orange);
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(680px, calc(100vw - 36px));
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  padding: 16px;
  background: rgba(18, 18, 18, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner strong {
  display: block;
  margin-bottom: 5px;
  color: rgba(244, 244, 244, 0.78);
  font-size: 15px;
}

.consent-banner p {
  margin: 0;
  color: rgba(169, 169, 169, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.consent-actions {
  display: flex;
  gap: 8px;
}

.consent-button {
  min-height: 38px;
  border: 1px solid rgba(255, 122, 24, 0.72);
  border-radius: 8px;
  color: rgba(17, 17, 17, 0.76);
  background: rgba(255, 122, 24, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 14px;
}

.consent-button-secondary {
  color: rgba(244, 244, 244, 0.72);
  border-color: rgba(58, 58, 58, 0.72);
  background: rgba(32, 32, 32, 0.72);
}

.policy-page {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(32px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(72px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.policy-content {
  width: min(860px, 100%);
  margin: 0 auto;
  color: var(--text);
}

.policy-content h1 {
  margin: 18px 0 16px;
  font-size: 32px;
}

.policy-content h2 {
  margin: 28px 0 10px;
  font-size: 19px;
  letter-spacing: 0;
}

.policy-content p,
.policy-content li {
  color: #d2d2d2;
  line-height: 1.65;
}

.policy-content a {
  color: #ffb176;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #343434;
  border-radius: 8px;
  color: #f4f4f4;
  padding: 0 14px;
  text-decoration: none;
  background: #171717;
}

@media (max-width: 480px) {
  .page-shell {
    padding: 16px;
  }

  .language-toggle {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .menu-panel {
    padding: 42px 18px 22px;
  }

  h1 {
    font-size: 24px;
  }

  .privacy-link {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .consent-banner {
    left: 50%;
    bottom: 64px;
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }

  .consent-actions {
    justify-content: stretch;
  }

  .consent-button {
    flex: 1;
  }
}
