/* ==========================================================================
   Wild Honey · Harbor + Kingdom
   ========================================================================== */

:root {
    --ink: #070504;
    --ink-2: #120c08;
    --cream: #fff4e3;
    --gold: #f7b54a;
    --gold-hi: #ffe2a3;
    --ember: #ff8a1f;
    --muted: #cdb79a;
    --danger: #ff9b85;

    --font-ui: "Montserrat", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;

    /* Artwork is 1659 x 948 */
    --art-ratio: 1.75;
    --vh: 1vh;
}

@supports (height: 100svh) {
    :root { --vh: 1svh; }
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; height: 100%; }

body {
    background: var(--ink);
    color: var(--cream);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; }

a { color: inherit; }

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

/* ==========================================================================
   Shared: embers + light veil
   ========================================================================== */

.embers {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.veil {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 62%, #fffdf7 0%, #fff1cf 22%, #ffd27a 48%, #f39a37 74%, #a8521a 100%);
}

/* ==========================================================================
   HARBOR (landing)
   ========================================================================== */

.page-harbor { overflow: hidden; }

.harbor {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: var(--ink);
    /* Stage width: cover the viewport, but never crop away the logo or the button. */
    --sw: min(max(100vw, calc(var(--art-ratio) * 100 * var(--vh))), calc(218.8 * var(--vh)), 170vw);
    --sh: calc(var(--sw) / var(--art-ratio));
}

.harbor__backdrop {
    position: absolute;
    inset: -8%;
    background: url("../images/harbor-backdrop.jpg?v=2") center / cover no-repeat;
    filter: blur(34px) brightness(.42) saturate(1.25);
    transform: scale(1.08);
}

.harbor__camera {
    position: absolute;
    inset: 0;
    --px: 0px;
    --py: 0px;
    transform: translate3d(var(--px), var(--py), 0) scale(1);
    transform-origin: 50% calc(50% + var(--sh) * .185);
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
}

.harbor__stage {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--sw);
    height: var(--sh);
    margin-left: calc(var(--sw) / -2);
    margin-top: calc(var(--sh) / -2);
    animation: breathe 18s ease-in-out infinite alternate;
    transform-origin: 50% 45%;
}

.js .harbor__stage { opacity: 0; transition: opacity 1.4s ease; }
.js .harbor.is-ready .harbor__stage { opacity: 1; }

/* Portrait: fade the art's top and bottom edges into the backdrop */
@media (max-aspect-ratio: 4/3) {
    .harbor__stage {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
                mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    }
}

/* Ultra-wide: fade the side edges instead */
@media (min-aspect-ratio: 11/5) {
    .harbor__stage {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
                mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    }
}

.harbor__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

/* ---- Living light (positions are % of the artwork) ---- */

.fx {
    position: absolute;
    pointer-events: none;
    mix-blend-mode: screen;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.fx--lantern {
    top: 36.4%;
    width: 15%;
    height: 40%;
    background: radial-gradient(closest-side, rgba(255, 196, 110, .55), rgba(255, 140, 40, .22) 45%, rgba(255, 120, 30, 0) 100%);
    animation: flicker 3.1s steps(1, end) infinite;
}
.fx--lantern-l { left: 6.2%; }
.fx--lantern-r { left: 94.2%; animation-duration: 3.7s; animation-delay: -1.3s; }

.fx--horizon {
    left: 50%;
    top: 68.5%;
    width: 46%;
    height: 16%;
    background: radial-gradient(closest-side, rgba(255, 190, 90, .55), rgba(255, 130, 40, .18) 55%, rgba(255, 120, 30, 0));
    animation: glow 7s ease-in-out infinite alternate;
}

.fx--star {
    left: 51.24%;
    top: 8.97%;
    width: 13%;
    height: 23%;
    background: radial-gradient(closest-side, rgba(255, 246, 220, .9), rgba(255, 190, 90, .35) 30%, rgba(255, 150, 50, 0) 70%);
    animation: pulse 4.6s ease-in-out infinite;
}
.fx--star::before,
.fx--star::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(255, 250, 235, .95), rgba(255, 200, 120, .45) 40%, rgba(255, 170, 70, 0));
}
.fx--star::before { width: 3%; height: 190%; animation: beam 4.6s ease-in-out infinite; }
.fx--star::after  { width: 150%; height: 3%; animation: beam 4.6s ease-in-out infinite .4s; }

/* ---- Tagline under the emblem ---- */

.harbor__tagline {
    position: absolute;
    left: 50%;
    top: 65.1%;
    margin: 0;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: max(12px, calc(var(--sw) * .0158));
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff8ea;
    text-shadow:
        0 0 1px rgba(46, 20, 4, .95),
        0 1px 3px rgba(30, 12, 2, .95),
        0 2px calc(var(--sw) * .008) rgba(24, 9, 0, .9),
        0 0 calc(var(--sw) * .022) rgba(18, 7, 0, .75),
        0 0 calc(var(--sw) * .04) rgba(255, 170, 70, .35);
}

.js .harbor__tagline { opacity: 0; translate: 0 35%; }
.js .harbor.is-ready .harbor__tagline {
    opacity: 1;
    translate: 0 0;
    transition: opacity 1.4s ease .35s, translate 1.4s cubic-bezier(.2, .7, .2, 1) .35s;
}
.harbor.is-entering .harbor__tagline,
.js .harbor.is-entering .harbor__tagline {
    opacity: 0;
    transition: opacity .5s ease;
}

/* ---- The button (sits exactly where the artwork's button was) ---- */

.enter-btn {
    position: absolute;
    left: 33.51%;
    top: 80.8%;
    width: 33.88%;
    height: 9.92%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--sw) * .016);
    padding: 0 calc(var(--sw) * .02);
    border-radius: 999px;
    color: var(--cream);
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: max(12px, calc(var(--sw) * .0204));
    letter-spacing: .068em;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(180deg, #0e0907 0%, #030201 50%, #080504 100%);
    box-shadow:
        0 0 0 max(1.5px, calc(var(--sw) * .0018)) #ffbb52,
        0 0 calc(var(--sw) * .006) max(1px, calc(var(--sw) * .0016)) rgba(255, 186, 80, .95),
        0 0 calc(var(--sw) * .022) rgba(255, 140, 30, .8),
        0 0 calc(var(--sw) * .055) rgba(255, 110, 20, .4),
        inset 0 0 calc(var(--sw) * .008) rgba(255, 150, 40, .45);
    -webkit-tap-highlight-color: transparent;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .35s ease, opacity .5s ease;
}

.js .enter-btn { opacity: 0; translate: 0 12%; }
.js .harbor.is-ready .enter-btn {
    opacity: 1;
    translate: 0 0;
    transition:
        opacity 1.1s ease .7s,
        translate 1.1s cubic-bezier(.2, .7, .2, 1) .7s,
        transform .35s cubic-bezier(.2, .7, .2, 1),
        filter .35s ease;
}

.enter-btn::before,
.enter-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7%;
    height: max(1.5px, calc(var(--sw) * .0016));
    transform: translateY(-50%);
    pointer-events: none;
    filter: blur(.4px);
}
.enter-btn::before { right: 100%; background: linear-gradient(90deg, rgba(255, 160, 50, 0), rgba(255, 196, 110, .95)); }
.enter-btn::after  { left: 100%;  background: linear-gradient(270deg, rgba(255, 160, 50, 0), rgba(255, 196, 110, .95)); }

.enter-btn__flare {
    position: absolute;
    inset: -14% -4%;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: screen;
    background:
        radial-gradient(ellipse 4% 9% at 50% 10.9%, rgba(255, 250, 235, 1), rgba(255, 210, 130, .6) 45%, rgba(255, 170, 60, 0) 100%),
        radial-gradient(ellipse 26% 2.2% at 50% 10.9%, rgba(255, 236, 190, .95), rgba(255, 170, 60, 0) 100%),
        radial-gradient(ellipse 4% 9% at 50% 89.1%, rgba(255, 250, 235, .95), rgba(255, 210, 130, .55) 45%, rgba(255, 170, 60, 0) 100%),
        radial-gradient(ellipse 26% 2.2% at 50% 89.1%, rgba(255, 236, 190, .9), rgba(255, 170, 60, 0) 100%);
    animation: flare 3.4s ease-in-out infinite;
}

.enter-btn__label {
    position: relative;
    color: #fffaf2;
    text-shadow: 0 0 calc(var(--sw) * .006) rgba(255, 214, 150, .55);
}

.enter-btn__chevron {
    position: relative;
    width: 1.05em;
    height: 1.05em;
    margin-right: -.25em;
    color: #fff6e8;
    filter: drop-shadow(0 0 4px rgba(255, 200, 120, .75));
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.enter-btn:hover,
.enter-btn:focus-visible { filter: brightness(1.18) saturate(1.1); transform: scale(1.025); }
.enter-btn:hover .enter-btn__chevron,
.enter-btn:focus-visible .enter-btn__chevron { transform: translateX(.22em); }
.enter-btn:active { transform: scale(.985); }
.enter-btn:focus-visible { outline: 2px solid #fff6e6; outline-offset: 5px; }

/* ---- Entering: walk through the arch into the light ---- */

.harbor.is-entering .harbor__camera {
    transform: translate3d(0, 0, 0) scale(2.7);
    transition: transform 1.6s cubic-bezier(.65, 0, .35, 1);
}
/* The button rides the zoom and is washed out by the light (it covers the artwork beneath it) */
.harbor.is-entering .enter-btn,
.js .harbor.is-entering .enter-btn {
    filter: brightness(1.5) saturate(1.2);
    transform: none;
    transition: filter .5s ease;
    pointer-events: none;
}
.harbor.is-entering .enter-btn__label,
.harbor.is-entering .enter-btn__chevron {
    opacity: 0;
    transition: opacity .4s ease;
}
.harbor.is-entering .veil--depart {
    opacity: 1;
    transition: opacity 1.05s ease-in .5s;
}

/* ==========================================================================
   REALM (sign up, sign in, The Kingdom)
   ========================================================================== */

.page-realm { min-height: 100%; }

.realm {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    isolation: isolate;
}

.realm__backdrop {
    position: fixed;
    inset: -6%;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255, 170, 70, .16), rgba(255, 140, 40, 0) 70%),
        linear-gradient(180deg, rgba(7, 5, 4, .15), rgba(7, 5, 4, .85) 85%),
        url("../images/harbor-backdrop.jpg?v=2") center 60% / cover no-repeat;
    filter: blur(22px) brightness(.5) saturate(1.2);
}

.realm__main {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100% - 32px, 460px);
    margin: 0 auto;
    padding: clamp(20px, 4.5vh, 56px) 0 clamp(36px, 7vh, 72px);
    text-align: center;
}

.page-kingdom .realm__main {
    width: min(100% - 32px, 760px);
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
}

.realm__emblem-link {
    display: block;
    border-radius: 12px;
    outline-offset: 6px;
}

/* The Wild Honey Game logo (wide) */
.realm__emblem {
    display: block;
    width: clamp(180px, min(62vw, 30vh * 1.58), 330px);
    height: auto;
    aspect-ratio: 1477 / 936;
    filter: drop-shadow(0 0 30px rgba(255, 160, 60, .25));
    animation: float 7s ease-in-out infinite;
}

.page-kingdom .realm__emblem { width: clamp(220px, min(70vw, 40vh * 1.58), 440px); }

.realm__head {
    width: min(100vw - 32px, 620px);
    margin-top: clamp(4px, 1.5vh, 16px);
}

.eyebrow {
    margin: 0 0 .7rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
}

.realm__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 7vw, 2.6rem);
    line-height: 1.12;
    text-wrap: balance;
    letter-spacing: .04em;
    background: linear-gradient(180deg, #fff6df 0%, #ffd889 42%, #e39a3a 72%, #ffe1a1 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 18px rgba(255, 150, 50, .28));
}

.realm__title--xl { font-size: clamp(2.8rem, 11vw, 6rem); }

.realm__lead {
    margin: .9rem auto 0;
    max-width: 36ch;
    font-size: 1rem;
    text-wrap: balance;
    line-height: 1.6;
    color: var(--muted);
}

.page-kingdom .realm__lead { font-size: 1.08rem; }

.realm__invite {
    margin: 1rem auto 0;
    max-width: 40ch;
    padding: 10px 16px;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--cream);
    background: rgba(247, 181, 74, .1);
    border: 1px solid rgba(247, 181, 74, .45);
    border-radius: 14px;
}
.realm__invite strong { color: var(--gold-hi); }
.realm__invite--error { border-color: rgba(255, 155, 133, .6); background: rgba(255, 155, 133, .08); }

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 1.4rem auto .4rem;
    color: var(--gold);
}
.divider span {
    width: clamp(60px, 16vw, 120px);
    height: 1px;
    background: linear-gradient(90deg, rgba(247, 181, 74, 0), rgba(247, 181, 74, .9));
}
.divider span:last-child { transform: scaleX(-1); }
.divider i { font-style: normal; font-size: .9rem; text-shadow: 0 0 12px rgba(255, 190, 90, .9); }

/* ---- Card + form ---- */

.card {
    width: 100%;
    margin-top: clamp(18px, 3.2vh, 30px);
    padding: clamp(22px, 5vw, 30px);
    text-align: left;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(30, 20, 13, .78), rgba(10, 7, 5, .86));
    border: 1px solid rgba(247, 181, 74, .28);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .4),
        0 30px 80px -20px rgba(0, 0, 0, .8),
        0 0 60px -10px rgba(255, 140, 40, .18),
        inset 0 1px 0 rgba(255, 220, 160, .08);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
}

.field + .field { margin-top: 16px; }

.field__label {
    display: block;
    margin-bottom: 8px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-hi);
}

.field__wrap { position: relative; }

.field__input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font: 500 1rem/1 var(--font-ui);
    color: var(--cream);
    background: rgba(5, 3, 2, .72);
    border: 1px solid rgba(247, 181, 74, .26);
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field__wrap .field__input { padding-right: 76px; }
.field__input::placeholder { color: rgba(205, 183, 154, .5); }
.field__input:hover { border-color: rgba(247, 181, 74, .45); }
.field__input:focus {
    border-color: var(--gold);
    background: rgba(12, 8, 5, .9);
    box-shadow: 0 0 0 3px rgba(247, 181, 74, .22), 0 0 22px rgba(255, 140, 40, .25);
}
.field__input.is-invalid { border-color: rgba(255, 155, 133, .8); }
.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--cream);
    -webkit-box-shadow: 0 0 0 1000px #120c08 inset;
    caret-color: var(--cream);
}

.field__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 38px;
    padding: 0 12px;
    font: 600 .72rem/1 var(--font-ui);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}
.field__toggle:hover { background: rgba(247, 181, 74, .1); }
.field__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.field__hint { margin: 7px 2px 0; font-size: .8rem; color: rgba(205, 183, 154, .75); }
.field__error { margin: 7px 2px 0; font-size: .84rem; line-height: 1.45; color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: .92rem;
    color: var(--muted);
    cursor: pointer;
}
.check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--gold);
}

.gold-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    margin-top: 24px;
    font: 700 .92rem/1 var(--font-ui);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cream);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background:
        radial-gradient(120% 140% at 50% 120%, rgba(255, 130, 30, .2), rgba(255, 130, 30, 0) 60%),
        linear-gradient(180deg, #1a120b 0%, #070403 60%, #0e0906 100%);
    box-shadow:
        0 0 0 2px #ffb043,
        0 0 10px 1px rgba(255, 196, 96, .65),
        0 0 30px rgba(255, 138, 31, .5),
        inset 0 0 14px rgba(255, 150, 40, .3);
    transition: transform .25s ease, filter .25s ease;
}
.gold-btn svg { width: 1.15em; height: 1.15em; color: #ffe9c4; transition: transform .25s ease; }
.gold-btn:hover, .gold-btn:focus-visible { filter: brightness(1.15); }
.gold-btn:hover svg, .gold-btn:focus-visible svg { transform: translateX(3px); }
.gold-btn:active { transform: scale(.985); }
.gold-btn:focus-visible { outline: 2px solid #fff6e6; outline-offset: 4px; }
.gold-btn[aria-busy="true"] { pointer-events: none; filter: brightness(.85); }

.card__alt {
    margin: 20px 0 0;
    text-align: center;
    font-size: .92rem;
    color: var(--muted);
}
.card__alt a,
.link-btn {
    color: var(--gold-hi);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 226, 163, .4);
    text-underline-offset: 3px;
}
.card__alt a:hover, .link-btn:hover { text-decoration-color: currentColor; }

.realm__signout { margin-top: 2.2rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.link-btn {
    font: 600 .82rem/1 var(--font-ui);
    letter-spacing: .14em;
    text-transform: uppercase;
    background: none;
    border: 0;
    padding: 10px 12px;
    cursor: pointer;
}

/* Arrival from the Harbor: start in the light, then fade it away */
.arriving .veil--arrive { animation: arrive 1.5s ease-out .05s both; }
.arriving .realm__main  { animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) .35s both; }

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.022); } }

@keyframes flicker {
    0%   { opacity: .85; }
    7%   { opacity: .62; }
    13%  { opacity: .95; }
    22%  { opacity: .74; }
    31%  { opacity: 1; }
    44%  { opacity: .8; }
    52%  { opacity: .9; }
    63%  { opacity: .68; }
    71%  { opacity: .97; }
    84%  { opacity: .78; }
    92%  { opacity: .92; }
    100% { opacity: .85; }
}

@keyframes glow  { from { opacity: .45; } to { opacity: .85; } }

@keyframes pulse {
    0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); }
    50%      { opacity: .95; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes beam {
    0%, 100% { opacity: .45; }
    50%      { opacity: 1; }
}

@keyframes flare {
    0%, 100% { opacity: .6; }
    50%      { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes arrive { from { opacity: 1; } to { opacity: 0; } }

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .harbor__stage,
    .fx,
    .fx--star::before,
    .fx--star::after,
    .enter-btn__flare,
    .realm__emblem { animation: none !important; }

    .harbor__camera { transition: none; }
    .harbor.is-entering .harbor__camera { transform: none; transition: none; }
    .harbor.is-entering .veil--depart { transition: opacity .35s ease; transition-delay: 0s; }
    .arriving .veil--arrive { animation-duration: .4s; }
    .arriving .realm__main { animation: none; }
}

/* People online right now */
.online-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #5fe08a; box-shadow: 0 0 0 0 rgba(95, 224, 138, .6); animation: online-pulse 2.4s ease-out infinite; }
@keyframes online-pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 224, 138, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(95, 224, 138, 0); } }
.online-pill {
    position: fixed; z-index: 60; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 11px;
    font: 600 .74rem/1 "Montserrat", system-ui, sans-serif; color: #e9dcc6; white-space: nowrap;
    background: rgba(12, 9, 6, .78); border: 1px solid rgba(247, 181, 74, .3); border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    pointer-events: auto;
}
.online-pill b { color: #fff4e3; font-variant-numeric: tabular-nums; }
.online-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px 0 10px; flex: none;
    font: 600 .76rem/1 "Montserrat", system-ui, sans-serif; color: #e9dcc6; white-space: nowrap;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(95, 224, 138, .35); border-radius: 999px;
}
.online-chip b { color: #fff4e3; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .online-chip { padding: 0 9px 0 8px; } .online-chip__word { display: none; } }
@media (prefers-reduced-motion: reduce) { .online-dot { animation: none; } }

/* Phones: no surprise zooming (double taps, or tapping into a small text box) */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse) {
    input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select { font-size: 16px !important; }
}

/* Sign-up checks (age and community rules) and the guest first step */
.field--checks { display: grid; gap: 10px; margin-top: 18px; }
.field--checks .check { align-items: flex-start; line-height: 1.4; }
.field--checks .check input { margin-top: 1px; flex: none; }
.field--checks .check a { color: var(--gold-hi); }
.card__alt--guest { margin-top: 6px; }
.rules { max-width: 640px; text-align: left; }
.rules__list { display: grid; gap: 12px; margin: 0; padding-left: 1.3rem; line-height: 1.6; color: #ead9bf; }
.rules__list strong, .rules__report strong { color: var(--cream); }
.rules__report { margin: 18px 0 0; line-height: 1.6; color: #ead9bf; }
.rules .verse { margin-top: 18px; }
.rules .verse blockquote { font-size: 1rem; }
