:root {
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #070707;
  color: #fff8eb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page-background); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--page-background); }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

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

.entry-page {
  --page-background: #080808;
  --panel-background: linear-gradient(145deg, rgba(26,26,26,.98), rgba(9,9,9,.98));
  --panel-border: rgba(255, 241, 214, .22);
  --text-primary: #fff8eb;
  --text-muted: #b9b0a4;
  --brand-red: #d51f1f;
  --brand-red-hover: #f02b25;
  --warm-gold: #d9a52d;
  --warm-gold-ink: #17120a;
  --focus: #fff3cb;
  --status-healthy: #22c55e;
  min-height: 100vh;
  padding: 24px max(16px, env(safe-area-inset-right)) 42px;
  background: var(--page-background);
  color: var(--text-primary);
}

.entry-overview {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.entry-support {
  width: 100%;
  max-width: 410px;
  margin-inline: auto;
}

.entry-hero,
.entry-panel,
.entry-emphasis-actions,
.entry-secondary-actions,
.entry-recovery,
.entry-normal-direct {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.entry-hero {
  overflow: hidden;
  aspect-ratio: 1440 / 760;
  border: 1px solid var(--panel-border);
  border-radius: 20px 20px 12px 12px;
  box-shadow: 0 22px 70px rgba(0,0,0,.36);
  background: #111;
}

.entry-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-panel {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel-background);
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
}

.entry-routes { margin-top: 18px; padding: 20px; }
.entry-section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 14px; }
.entry-section-heading h2 { margin: 3px 0 0; font-size: clamp(20px, 2.3vw, 28px); line-height: 1.2; }
.entry-eyebrow { margin: 0; color: var(--status-healthy); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.entry-detected-at { margin: 0; color: var(--text-muted); font-size: 14px; white-space: nowrap; }
.entry-route-list { display: grid; gap: 12px; }

.entry-route {
  --status: #22c55e;
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(135px, .72fr) minmax(150px, .75fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--status) 62%, var(--panel-border));
  border-left-width: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--status) 4%, rgba(15,15,15,.95));
}

.entry-route--recommended { min-height: 132px; padding-block: 14px 10px; }
.entry-route--compact { min-height: 98px; }
.entry-status--healthy { --status: #22c55e; --status-healthy: #22c55e; }
.entry-status--degraded { --status: #f59e0b; }
.entry-status--down { --status: #ef4444; }
.entry-status--probing { --status: #9ca3af; }
.entry-status--maintenance { --status: #8d8174; opacity: .82; }
.entry-route__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 12px;
  border-radius: 0 0 10px 0;
  background: var(--brand-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.entry-route__identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.entry-route__identity > svg { flex: 0 0 48px; width: 48px; height: 48px; color: var(--status); }
.entry-route__identity h3 { margin: 0; font-size: clamp(21px, 2.2vw, 27px); }
.entry-route__identity p { margin: 5px 0 0; overflow: hidden; color: var(--text-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.entry-route__result { display: grid; gap: 4px; min-width: 0; padding-inline: 18px; border-inline: 1px solid var(--panel-border); }
.entry-route__result strong { color: var(--status); font-size: clamp(21px, 2.5vw, 30px); line-height: 1; }
.entry-route__result span { display: flex; gap: 7px; align-items: center; font-weight: 700; }
.entry-route__result svg { width: 20px; height: 20px; color: var(--status); }
.entry-route__operation { display: grid; gap: 7px; }
.entry-route--recommended .entry-route__operation { gap: 2px; }
.entry-route__operation small { color: var(--text-muted); text-align: center; }
.entry-route__button,
.entry-route__cancel {
  display: inline-flex;
  min-height: 44.2px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--text-primary);
  font-weight: 800;
  cursor: pointer;
}
.entry-route__button svg { width: 18px; height: 18px; }
.entry-route--recommended .entry-route__button { border-color: #f33a32; background: linear-gradient(180deg, #e52c27, #bf1717); color: #fff; }
.entry-route__button:disabled { opacity: .45; cursor: not-allowed; }
.entry-route__cancel { min-height: 38px; background: transparent; font-weight: 600; }
.entry-route--recommended .entry-route__cancel { position: relative; min-height: 24.2px; font-size: 12px; }
.entry-route--recommended .entry-route__cancel::before { position: absolute; inset: -10.1px 0; content: ""; }

.entry-route-failure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 68, 68, .55);
  border-radius: 12px;
  background: rgba(127, 29, 29, .16);
}
.entry-route-failure__icon { width: 23px; height: 23px; color: #ef4444; }
.entry-route-failure__copy { min-width: 0; }
.entry-route-failure strong { display: block; color: #fecaca; font-size: 14px; }
.entry-route-failure p { margin: 1px 0 0; color: #fca5a5; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.entry-route-failure small { display: block; color: var(--text-muted); font-size: 11px; line-height: 1.25; }
.entry-route-failure__actions { display: flex; gap: 6px; }
.entry-route-failure__actions :is(a, button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-inline: 10px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.entry-route-failure__actions a { border-color: #e63b34; background: var(--brand-red); color: #fff; }

.entry-emphasis-actions,
.entry-secondary-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 16px; }
.entry-action,
.entry-secondary-actions > button {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 850;
  cursor: pointer;
}
.entry-action svg,
.entry-secondary-actions svg { width: 30px; height: 30px; }
.entry-action--app { background: linear-gradient(180deg, #e32420, #c61013); color: #fff7e8; }
.entry-action--welfare { background: linear-gradient(180deg, #f5bd42, #d9a52d); color: #17120a; }
.entry-action--dating { border-color: rgba(244, 114, 182, .72); background: linear-gradient(180deg, #f44c8b, #cc2766); color: #fff; }

.entry-contact { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 16px; padding: 22px; }
.entry-contact__mark { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 16px; background: rgba(213,31,31,.14); color: var(--brand-red); }
.entry-contact__mark svg { width: 44px; height: 44px; }
.entry-contact__copy h2 { margin: 0; font-size: clamp(18px, 2.1vw, 24px); }
.entry-contact__copy p { margin: 8px 0 0; color: var(--text-muted); font-size: 16px; }
.entry-contact__actions { display: flex; gap: 10px; }
.entry-contact__message { grid-column: 2 / -1; margin: -8px 0 0; color: var(--text-muted); font-size: 13px; }
.entry-contact__actions button,
.entry-contact__actions a,
.entry-secondary-actions > button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--text-primary);
  font-weight: 800;
}
.entry-contact__actions a { border-color: #e63b34; background: var(--brand-red); color: #fff; }

.entry-secondary-actions > button { width: 100%; min-height: 62px; font-size: 18px; cursor: pointer; }
.entry-secondary-actions--single > button { grid-column: 1 / -1; }
.entry-save-result { width: min(100%, 1120px); margin: 10px auto 0; color: var(--text-muted); text-align: center; }
.entry-recovery { margin-top: 18px; }
.entry-recovery h2 { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.entry-recovery h2 span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--brand-red)); }
.entry-recovery h2 span:last-child { transform: scaleX(-1); }
.entry-recovery__links { display: flex; justify-content: center; gap: 12px; }
.entry-recovery__links a { display: flex; flex: 1 1 0; max-width: 94px; min-height: 68px; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--panel-border); border-radius: 12px; background: rgba(255,255,255,.025); }
.entry-recovery__links svg { width: 24px; height: 24px; }

.entry-normal-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
}
.entry-normal-direct a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  color: #86d7a2;
  font-weight: 800;
}
.entry-normal-direct svg { width: 16px; height: 16px; }

.entry-page[data-product-zone="adult"] .entry-route--recommended {
  min-height: 116px;
}
.entry-page[data-product-zone="adult"] .entry-route--recommended .entry-route__button {
  min-height: 52px;
  font-size: 17px;
}

.entry-page :is(a, button):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.entry-noscript { max-width: 720px; margin: 80px auto; padding: 24px; font-family: system-ui, sans-serif; }

@media (min-width: 900px) {
  .entry-page {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    justify-content: center;
    padding: 8px max(12px, env(safe-area-inset-right));
  }
  .entry-overview > .entry-hero { width: 360px; max-width: 100%; margin: 0 auto; }
  .entry-overview .entry-hero { aspect-ratio: 1440 / 760; border-radius: 0 0 14px 14px; }
  .entry-overview .entry-hero img { object-fit: contain; }
  .entry-overview .entry-routes { width: min(100%, 410px); margin: 6px auto 0; padding: 7px; }
  .entry-overview .entry-section-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .entry-overview .entry-route-list { gap: 6px; }
  .entry-overview .entry-route {
    grid-template-columns: minmax(116px, 1fr) 74px minmax(94px, .72fr);
    gap: 6px;
    min-height: 52px;
    padding: 4px 7px;
  }
  .entry-overview .entry-route--recommended { min-height: 64px; padding-block: 6px 4px; }
  .entry-overview .entry-route__identity { gap: 6px; }
  .entry-overview .entry-route__identity > svg { flex-basis: 30px; width: 30px; height: 30px; }
  .entry-overview .entry-route__identity h3 { font-size: 17px; }
  .entry-overview .entry-route__identity p { max-width: 126px; margin-top: 2px; font-size: 9px; }
  .entry-overview .entry-route__result { gap: 2px; padding-inline: 5px; }
  .entry-overview .entry-route__result strong { font-size: 18px; white-space: nowrap; }
  .entry-overview .entry-route__result span { gap: 3px; font-size: 11px; }
  .entry-overview .entry-route__result svg { width: 13px; height: 13px; }
  .entry-overview .entry-route__operation { min-width: 0; gap: 2px; }
  .entry-overview .entry-route__operation small { font-size: 9px; }
  .entry-overview .entry-route__button { min-height: 44px; gap: 4px; padding-inline: 5px; font-size: 11px; }
  .entry-overview .entry-route__button svg { width: 14px; height: 14px; }
  .entry-page[data-product-zone="adult"] .entry-overview .entry-route--recommended,
  .entry-page[data-product-zone="adult"] .entry-overview .entry-route--recommended .entry-route__button { min-height: 44px; }
  .entry-page[data-product-zone="adult"] .entry-overview .entry-route--recommended .entry-route__button { font-size: 11px; }

  .entry-route-failure { margin-top: 6px; }

  .entry-support {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
  }
  .entry-support > * { width: 100%; margin: 0; }
  .entry-emphasis-actions { grid-column: 1 / -1; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .entry-recovery { grid-column: 1; grid-row: 2; }
  .entry-secondary-actions { grid-column: 2; grid-row: 2; }
  .entry-contact,
  .entry-save-result,
  .entry-normal-direct { grid-column: 1 / -1; }
  .entry-contact { padding: 6px 8px; gap: 7px; }
  .entry-contact__mark { width: 42px; height: 42px; border-radius: 10px; }
  .entry-contact__mark svg { width: 26px; height: 26px; }
  .entry-contact__copy h2 { font-size: 14px; }
  .entry-contact__copy p { margin-top: 4px; font-size: 12px; }
  .entry-contact__actions { gap: 6px; }
  .entry-contact__actions :is(button, a) { min-height: 44px; gap: 4px; padding-inline: 8px; font-size: 12px; }
  .entry-secondary-actions { gap: 6px; }
  .entry-secondary-actions > button { min-height: 44px; padding-inline: 8px; font-size: 13px; }
  .entry-secondary-actions svg { width: 21px; height: 21px; }
  .entry-action { min-height: 44px; font-size: 14px; }
  .entry-action svg { width: 22px; height: 22px; }
  .entry-recovery h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .entry-recovery__links { height: 100%; gap: 6px; }
  .entry-recovery__links a { max-width: none; min-height: 44px; gap: 5px; font-size: 12px; }
  .entry-recovery__links svg { width: 20px; height: 20px; }
  .entry-normal-direct { min-height: 44px; }
}

@media (min-width: 900px) and (max-height: 700px) {
  .entry-overview > .entry-hero { width: 306px; }
  .entry-overview .entry-routes { margin-top: 5px; padding: 6px; }
  .entry-overview .entry-route-list { gap: 5px; }
  .entry-overview .entry-route { min-height: 46px; }
  .entry-overview .entry-route--recommended { min-height: 56px; }
  .entry-overview .entry-route__identity > svg { flex-basis: 26px; width: 26px; height: 26px; }
  .entry-overview .entry-route__identity h3 { font-size: 15px; }
  .entry-overview .entry-route__result strong { font-size: 16px; }
  .entry-route-failure { padding-block: 5px; }
  .entry-route-failure small { font-size: 10px; }
  .entry-support { margin-top: 5px; gap: 5px; }
  .entry-contact { padding-block: 4px; }
  .entry-contact__mark { width: 38px; height: 38px; }
  .entry-contact__actions :is(button, a),
  .entry-secondary-actions > button,
  .entry-action,
  .entry-recovery__links a,
  .entry-normal-direct { min-height: 44px; }
}

@media (max-width: 720px) {
  .entry-page { padding: 0 10px 28px; }
  .entry-overview,
  .entry-support { max-width: none; }
  .entry-hero { width: calc(100% + 20px); margin-left: -10px; aspect-ratio: 1.9; border: 0; border-radius: 0; }
  .entry-routes { margin-top: 10px; padding: 12px; }
  .entry-section-heading { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .entry-detected-at { padding-top: 4px; font-size: 12px; }
  .entry-route-list { gap: 10px; }
  .entry-route { grid-template-columns: minmax(0, 1.35fr) minmax(78px, .7fr) auto; gap: 6px; padding: 5px 8px; }
  .entry-route--recommended { min-height: 94px; margin-top: 14px; padding-block: 7px 5px; overflow: visible; }
  .entry-route--compact { min-height: 70px; }
  .entry-route__ribbon { top: -14px; padding: 3px 10px; }
  .entry-route__identity { gap: 8px; }
  .entry-route__identity > svg { flex-basis: 32px; width: 32px; height: 32px; }
  .entry-route__identity h3 { font-size: 18px; }
  .entry-route__identity p { max-width: 128px; margin-top: 2px; font-size: 10px; line-height: 1.1; }
  .entry-route--compact .entry-route__identity p { display: none; }
  .entry-route__result { gap: 1px; padding-inline: 6px; }
  .entry-route__result strong { font-size: 17px; }
  .entry-route__result span { gap: 3px; font-size: 12px; line-height: 1.05; }
  .entry-route__result svg { width: 14px; height: 14px; }
  .entry-route__operation { min-width: 76px; gap: 3px; }
  .entry-route__operation small { max-width: 78px; font-size: 9px; line-height: 1; }
  .entry-route__button,
  .entry-route__cancel { position: relative; padding-inline: 8px; font-size: 13px; }
  .entry-route--recommended .entry-route__button { min-height: 36.2px; }
  .entry-route--recommended .entry-route__button::before { position: absolute; inset: -4.1px 0; content: ""; }
  .entry-route__cancel { min-height: 24.2px; font-size: 10px; }
  .entry-route__cancel::before { position: absolute; inset: -10.1px 0; content: ""; }
  .entry-route-failure { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .entry-route-failure__actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .entry-action { min-height: 62px; gap: 6px; padding: 8px; font-size: 14px; text-align: center; white-space: nowrap; }
  .entry-action svg { flex: 0 0 24px; width: 24px; height: 24px; }
  .entry-contact { grid-template-columns: auto 1fr; gap: 12px; padding: 16px; }
  .entry-contact__mark { width: 56px; height: 56px; }
  .entry-contact__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .entry-secondary-actions > button { min-height: 56px; padding: 8px; }
  .entry-recovery__links { gap: 8px; }
  .entry-recovery__links a { min-height: 64px; flex-direction: column; gap: 4px; font-size: 12px; }
  .entry-page[data-product-zone="adult"] .entry-route--recommended { min-height: 88px; }
  .entry-page[data-product-zone="adult"] .entry-route--recommended .entry-route__button { min-height: 44px; font-size: 13px; }
}

@media (max-width: 410px) {
  .entry-page { padding-inline: 7px; }
  .entry-hero { width: calc(100% + 14px); margin-left: -7px; }
  .entry-routes { padding: 9px 7px; }
  .entry-route { gap: 5px; padding-inline: 7px; }
  .entry-route--recommended { grid-template-columns: minmax(0, 1fr) 74px; row-gap: 6px; }
  .entry-route--recommended .entry-route__operation {
    grid-column: 1 / -1;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
  }
  .entry-route--recommended .entry-route__operation small { max-width: none; }
  .entry-route__identity p { max-width: 102px; }
  .entry-route__result { padding-inline: 5px; }
  .entry-route__operation { min-width: 72px; }
}

@media (prefers-reduced-motion: no-preference) {
  .entry-page :is(a, button) { transition: transform .16s ease, filter .16s ease, background-color .16s ease; }
  .entry-page :is(a, button):hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
}
