:root {
  color-scheme: dark;
  --orange: #ff8a2a;
  --orange-bright: #ff9f45;
  --ink: #171a2b;
  --muted: #6d7180;
  --surface: rgba(255, 255, 255, 0.96);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #111428;
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 32px 20px;
  background:
    linear-gradient(90deg, rgba(10, 13, 31, .16), rgba(10, 13, 31, .48) 36%, rgba(10, 13, 31, .48) 64%, rgba(10, 13, 31, .16)),
    radial-gradient(circle at 16% 20%, rgba(242, 85, 130, .55), transparent 28%),
    radial-gradient(circle at 84% 70%, rgba(62, 115, 255, .65), transparent 30%),
    url("./assets/background.jpg") center / cover fixed no-repeat,
    linear-gradient(135deg, #341442, #101c55 58%, #15233d);
}

.route-card {
  width: min(100%, 600px);
  padding: 48px 54px 30px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(5, 8, 30, .38);
  backdrop-filter: blur(18px);
}

.brand { display: grid; place-items: center; }

.brand-logo {
  width: 138px;
  height: 138px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 153, 234, .2);
}

.tagline {
  margin: 22px 0 5px;
  text-align: center;
  font-size: 20px;
  font-weight: 650;
}

.hero-copy {
  display: grid;
  gap: 2px;
  margin: 0 0 20px;
  color: #656977;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.primary-routes { display: grid; gap: 14px; }

.route-button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 66px;
  padding: 14px 80px;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  font-size: 19px;
  font-weight: 750;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  box-shadow: 0 9px 20px rgba(255, 126, 32, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.route-button span {
  position: absolute;
  right: 18px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #8c470e;
  font-size: 11px;
  background: rgba(255,255,255,.72);
}

.route-button:hover, .route-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(255, 126, 32, .3);
  filter: saturate(1.12);
}

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

.secondary-routes a {
  padding: 17px;
  border: 1px solid #ffd1ad;
  border-radius: 14px;
  color: #bd5e19;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  background: #fff5ec;
}

.seo-summary {
  margin-top: 20px;
  text-align: center;
}

.seo-summary h1 {
  margin: 0;
  color: #393c49;
  font-size: 14px;
  line-height: 1.45;
}

.seo-summary p {
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.notice {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #ffd4b2;
  border-radius: 14px;
  text-align: center;
  background: #fffaf6;
}

.notice strong { color: #d56313; font-size: 14px; }
.notice p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

footer { margin-top: 20px; text-align: center; }
.tg-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 24px;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  background: #229ed9;
  box-shadow: 0 8px 20px rgba(34,158,217,.2);
}
footer > p { margin: 16px 0 0; color: #8c8f9c; font-size: 11px; }

.scroll-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #bc5b16;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.scroll-more span { font-size: 17px; }

.info-card {
  width: min(100%, 720px);
  padding: 42px 48px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 24px 80px rgba(5, 8, 30, .3);
  scroll-margin-top: 24px;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
}

.info-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.3;
}

.info-card > p:not(.section-kicker) {
  margin: 0;
  color: #555966;
  font-size: 15px;
  line-height: 1.85;
}

.info-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #ececf0;
}

.info-block h3 { margin: 0 0 8px; font-size: 17px; }
.info-block p, .adult-notice p { margin: 0; color: #626673; font-size: 14px; line-height: 1.8; }

.adult-notice {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #ffd3b1;
  border-radius: 14px;
  background: #fff8f2;
}
.adult-notice strong { display: block; margin-bottom: 6px; color: #bd5e19; }

.back-top {
  display: inline-block;
  margin-top: 22px;
  color: #b65b1c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

html { scroll-behavior: smooth; }

a:focus-visible { outline: 3px solid rgba(52, 107, 255, .55); outline-offset: 3px; }

@media (max-width: 640px) {
  .page-shell {
    padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
    background-position: 50% center;
    background-attachment: scroll;
  }
  .route-card {
    width: 100%;
    max-width: 430px;
    min-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 18px 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.965);
  }
  .brand-logo { width: 112px; height: 112px; border-radius: 22px; }
  .tagline { margin-top: 15px; font-size: 18px; }
  .hero-copy { margin-bottom: 17px; font-size: 11px; }
  .primary-routes { gap: 11px; }
  .route-button { min-height: 58px; padding-inline: 58px; border-radius: 13px; font-size: 16px; }
  .route-button span { right: 12px; }
  .secondary-routes { gap: 10px; }
  .secondary-routes a { padding: 15px 8px; font-size: 14px; }
  .notice { margin-top: 18px; }
  footer { margin-top: 17px; }
  footer > p { margin-top: 14px; }
  .info-card { width: 100%; max-width: 430px; padding: 30px 22px; border-radius: 22px; }
  .info-card h2 { font-size: 24px; }
  .info-card > p:not(.section-kicker) { font-size: 14px; }
}

@media (max-width: 380px), (max-height: 720px) {
  .route-card { justify-content: flex-start; min-height: 0; padding-block: 22px 18px; }
  .notice { display: none; }
  .brand-logo { width: 88px; height: 88px; border-radius: 18px; }
  .tagline { margin-top: 10px; }
  .hero-copy { margin-bottom: 13px; }
  .route-button { min-height: 52px; }
  footer > p { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
