@import url('/bcv-ui/fonts.css');

:root {
    color-scheme: dark;
    background: #08121c;
    color: #f6f1e9;
    font: 15px/1.55 'Instrument Sans', system-ui, sans-serif;
    --gold: #f7ca8c;
    --muted: #c6cbd3;
    --edge: #e8e0d344;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.gateway-art, .gateway-art::after { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.gateway-art { background: url('worlds-gateway.webp') center / cover no-repeat; }
.gateway-art::after { content: ''; background: linear-gradient(90deg, #08121cf5 0%, #08121ce5 31%, #08121c69 62%, #08121c22), linear-gradient(0deg, #08121c75, transparent 55%, #08121c90); }
:dir(rtl) .gateway-art { transform: scaleX(-1); }
.gateway-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: max(24px, env(safe-area-inset-top)) clamp(22px, 5vw, 86px) 16px; }
.gateway-brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; letter-spacing: .10em; font-weight: 700; white-space: nowrap; }
.gateway-brand span:last-child { color: #d4dce5; font-size: 12px; font-weight: 500; }
.gateway-ring { width: 23px; height: 23px; border: 1px solid var(--gold); border-radius: 50%; box-shadow: inset 0 0 8px #f7ca8c55, 0 0 14px #f7ca8c40; }
.gateway-nav select { min-height: 39px; max-width: 160px; padding: 4px 12px; border: 1px solid var(--edge); border-radius: 999px; background: #0a1624e0; }
.gateway-main { width: min(100%, 548px); margin-inline: clamp(22px, 8vw, 145px) auto; padding: clamp(24px, 7vh, 112px) 0 40px; }
.gateway-back, .gateway-switch { color: var(--gold); }
.gateway-back:hover, .gateway-switch:hover { text-decoration: underline; }
.gateway-main h1 { margin: 11px 0; color: #fff8ea; font: 400 clamp(44px, 6vw, 82px)/1.04 'Instrument Serif', 'Songti SC', Georgia, serif; text-wrap: balance; }
.gateway-lead, .gateway-price { margin: 0 0 18px; color: var(--muted); }
.gateway-form { width: min(100%, 420px); display: grid; gap: 12px; }
.gateway-field { display: grid; gap: 4px; font-weight: 600; }
.gateway-field input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--edge); border-radius: 7px; background: #0d1b28ec; font-weight: 400; }
.gateway-field input.is-wrong { border-color: #ff6b6b; box-shadow: 0 0 0 1px #ff6b6b; }      /* 填得不对的那个框（gate.html wrong） */
.gateway-action { min-height: 46px; padding: 9px 16px; border: 1px solid var(--gold); border-radius: 7px; background: var(--gold); color: #21170e; font-weight: 700; }
.gateway-action:hover { background: #ffdfaf; }
.gateway-action:disabled { opacity: .55; cursor: default; }
.gateway-switch { justify-self: start; border: 0; background: transparent; padding: 3px 0; text-align: start; }
.gateway-price { margin: 6px 0 0; font-size: 13px; }
.gateway-invited { margin: -8px 0 18px; color: var(--gold); font-weight: 600; }
.gateway-note { max-width: 46ch; margin-block: 12px 0; color: #ffc0b6; }
.gateway-note.fine { color: var(--muted); }
.gateway-note:empty { display: none; }

@media (max-width: 660px) {
    .gateway-main { width: auto; margin-inline: clamp(22px, 5vw, 42px); }
    .gateway-art { background-position: 77% center; }
    .gateway-art::after { background: linear-gradient(0deg, #08121cf7 15%, #08121cde 60%, #08121c6b); }
}
