/* HNube public UI v2
   Shared visual finish for the public landing and maintenance screen.
   Existing PHP, forms and hotel data remain authoritative. */

:root {
    --hn-petrol-950: #06263a;
    --hn-petrol-900: #08344d;
    --hn-petrol-800: #0b4967;
    --hn-sky-500: #3eb7e5;
    --hn-sky-300: #86d9f5;
    --hn-cloud: #f8fdff;
    --hn-ice: #eaf8ff;
    --hn-lavender: #9a8bec;
    --hn-gold: #e7bd53;
    --hn-ink: #153d57;
    --hn-muted: #66899d;
    --hn-line: rgba(55, 145, 187, .28);
    --hn-shadow: 0 18px 44px rgba(18, 89, 126, .18);
}

body.hnube-public {
    color: var(--hn-ink);
    accent-color: var(--hn-sky-500);
}

body.hnube-public img {
    max-width: 100%;
}

body.hnube-public a:focus-visible,
body.hnube-public button:focus-visible,
body.hnube-public input:focus-visible {
    outline: 3px solid rgba(62, 183, 229, .36);
    outline-offset: 3px;
}

/* ---------- Public index ---------- */

body.hnube-index .px-ambient,
body.hnube-index .px-cursor,
body.hnube-index .px-cursor-ring,
body.hnube-index .fenix-login-embers {
    display: none !important;
}

body.hnube-index {
    background: #edf9ff;
}

body.hnube-index .px-nav {
    border-bottom: 1px solid rgba(43, 137, 181, .18);
    background: rgba(248, 253, 255, .94);
    box-shadow: 0 7px 22px rgba(20, 95, 132, .08);
    backdrop-filter: blur(10px);
}

body.hnube-index .px-nav-inner {
    min-height: 76px;
}

body.hnube-index .px-brand-logo {
    filter: none !important;
}

body.hnube-index .px-brand-text strong,
body.hnube-index .px-nav-links a {
    color: #174e70;
}

body.hnube-index .px-brand-text span {
    color: #698da0;
}

body.hnube-index .px-nav-links a {
    border-radius: 8px;
    font-weight: 800;
}

body.hnube-index .px-nav-links a:hover {
    color: #0e84bb;
    background: rgba(108, 207, 241, .12);
}

body.hnube-index .px-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(235, 249, 255, .96), rgba(206, 239, 252, .9)),
        #dff5ff;
}

body.hnube-index .px-hero::before {
    display: none;
}

body.hnube-index .px-eyebrow {
    color: #2077a2;
    border-color: rgba(46, 153, 202, .3);
    background: rgba(255, 255, 255, .68);
}

body.hnube-index .px-hero-title,
body.hnube-index .px-section-title,
body.hnube-index .px-login h2 {
    color: #123f5c;
    text-shadow: 0 2px 0 #fff;
}

body.hnube-index .px-hero-title .gold {
    color: #178fca !important;
    -webkit-text-fill-color: currentColor !important;
}

body.hnube-index .px-lead,
body.hnube-index .px-hero-lead {
    color: #557b90;
}

body.hnube-index .px-btn {
    min-height: 45px;
    border-radius: 10px;
    font-weight: 900;
    box-shadow: inset 0 1px rgba(255, 255, 255, .48), 0 5px 0 rgba(18, 91, 128, .16);
}

body.hnube-index .px-btn-gold {
    color: #fff;
    border-color: #197fab;
    background: linear-gradient(180deg, #51c5ed, #188fc7);
}

body.hnube-index .px-btn-gold:hover {
    background: linear-gradient(180deg, #6ed5f6, #209fd7);
    transform: translateY(-1px);
}

body.hnube-index .px-btn-ghost {
    color: #226889;
    border-color: rgba(51, 149, 193, .3);
    background: rgba(255, 255, 255, .7);
}

body.hnube-index .px-pill,
body.hnube-index .px-hero-stat,
body.hnube-index .px-login,
body.hnube-index .px-card {
    border-color: rgba(51, 149, 193, .24);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 30px rgba(28, 105, 142, .12), inset 0 1px #fff;
}

body.hnube-index .hnube-room-stage {
    border-color: rgba(67, 166, 207, .3);
    background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(218, 244, 255, .72));
    box-shadow: var(--hn-shadow);
}

body.hnube-index .hnube-room-art,
body.hnube-index .hnube-room-avatar img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

body.hnube-index .hnube-room-art {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

body.hnube-index .px-login-wrap {
    filter: none;
}

body.hnube-index .px-login {
    overflow: hidden;
}

body.hnube-index .px-field input {
    min-height: 44px;
    color: #194b67;
    border-color: rgba(48, 145, 189, .32);
    background: #fbfeff;
}

body.hnube-index .px-field input:focus {
    border-color: #3eb7e5;
    box-shadow: 0 0 0 3px rgba(62, 183, 229, .14);
}

body.hnube-index .px-footer {
    color: #cceaf7;
    background: #07354f;
}

body.hnube-index .px-footer .px-brand-text strong,
body.hnube-index .px-footer h4 {
    color: #fff;
}

body.hnube-index .px-footer a {
    color: #cceaf7;
}

/* ---------- Maintenance ---------- */

body.hnube-maintenance {
    min-height: 100vh;
    padding: clamp(14px, 2.2vw, 28px);
    color: var(--hn-ink);
    background:
        linear-gradient(180deg, rgba(201, 237, 251, .84), rgba(240, 251, 255, .96)),
        #dff5ff;
}

body.hnube-maintenance::before,
body.hnube-maintenance::after {
    display: none;
}

body.hnube-maintenance .page {
    width: min(1240px, 100%);
}

body.hnube-maintenance .topbar {
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(66, 158, 201, .25);
    border-radius: 14px;
    background: rgba(249, 254, 255, .92);
    box-shadow: 0 8px 24px rgba(25, 100, 138, .11), inset 0 1px #fff;
    backdrop-filter: none;
}

body.hnube-maintenance .brand-mark {
    width: 46px;
    height: 46px;
}

body.hnube-maintenance .brand strong {
    color: #145b82;
    font-size: 21px;
}

body.hnube-maintenance .brand small {
    color: #6d94a8;
    letter-spacing: 1px;
}

body.hnube-maintenance .live {
    color: #267256;
    border-color: rgba(49, 168, 120, .25);
    background: #effdf7;
}

body.hnube-maintenance .shell {
    overflow: hidden;
    border: 1px solid rgba(52, 146, 190, .32);
    border-radius: 18px;
    background: rgba(249, 254, 255, .94);
    box-shadow: 0 22px 55px rgba(24, 97, 136, .17), inset 0 1px #fff;
}

body.hnube-maintenance .construction-stripe {
    height: 5px;
    background: linear-gradient(90deg, #4ab9e6 0 44%, #9a8bec 44% 58%, #e7bd53 58% 66%, #4ab9e6 66%);
    box-shadow: none;
}

body.hnube-maintenance .layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
    min-height: 610px;
}

body.hnube-maintenance .scene {
    min-height: 610px;
    padding: clamp(34px, 4vw, 54px) clamp(28px, 4vw, 52px) 292px;
    background:
        linear-gradient(112deg, rgba(247, 253, 255, .98), rgba(220, 244, 253, .92) 58%, rgba(182, 227, 246, .72)),
        #dff5ff;
}

body.hnube-maintenance .scene::before {
    opacity: .17;
    background-size: 32px 32px;
}

body.hnube-maintenance .eyebrow {
    padding: 7px 10px;
    color: #256e93;
    border: 1px solid rgba(55, 148, 190, .28);
    border-radius: 7px;
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 1px #fff;
}

body.hnube-maintenance h1 {
    max-width: 650px;
    margin-top: 18px;
    color: #123f5b;
    font-size: clamp(40px, 5vw, 66px);
    letter-spacing: -2px;
    text-shadow: 0 3px 0 #fff, 0 10px 24px rgba(48, 128, 165, .14);
}

body.hnube-maintenance .lead {
    max-width: 610px;
    color: #577b8f;
    font-size: 15px;
}

body.hnube-maintenance .status-row {
    gap: 10px;
}

body.hnube-maintenance .status-card {
    min-width: 0;
    padding: 10px 12px 10px 9px;
    color: #265c77;
    border: 1px solid rgba(58, 149, 191, .24);
    border-radius: 9px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 5px 14px rgba(44, 127, 165, .08), inset 0 1px #fff;
}

body.hnube-maintenance .status-card b {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: #e5f7ff;
}

body.hnube-maintenance .status-card b img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

body.hnube-maintenance .status-card small {
    color: #7594a4;
}

body.hnube-maintenance .status-toggle {
    color: #fff;
    border-color: #0e769f;
    border-radius: 8px;
    background: linear-gradient(180deg, #2c9fce, #167ca7);
    box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 4px 0 rgba(15, 88, 119, .2);
}

body.hnube-maintenance .crew-zone {
    left: 26px;
    right: 26px;
    bottom: 0;
    height: 284px;
}

body.hnube-maintenance .crew-zone::before {
    display: none;
}

body.hnube-maintenance .crew-zone .hotel {
    right: -18px;
    bottom: -120px;
    width: min(470px, 64%);
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
    opacity: 1;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 18px 18px rgba(39, 107, 141, .18));
}

body.hnube-maintenance .crew-zone .crew {
    z-index: 3;
    bottom: 15px;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 5px 0 rgba(38, 102, 132, .16));
}

body.hnube-maintenance .crew--builder {
    left: 6%;
}

body.hnube-maintenance .crew--frank {
    left: 18%;
}

body.hnube-maintenance .crew--frank2 {
    display: none;
}

body.hnube-maintenance .crew-card {
    z-index: 4;
    left: 2%;
    bottom: 126px;
    color: #235f7f;
    border-color: #fff;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 0 rgba(65, 150, 189, .17);
}

body.hnube-maintenance .access {
    padding: clamp(32px, 4vw, 52px) clamp(26px, 3vw, 42px);
    color: #214f68;
    border-left: 1px solid rgba(49, 143, 187, .2);
    background: linear-gradient(160deg, #fbfeff, #edf9fe);
}

body.hnube-maintenance .access-kicker {
    color: #3b86aa;
}

body.hnube-maintenance .access h2 {
    color: #123f5b;
    font-size: clamp(32px, 3.6vw, 46px);
}

body.hnube-maintenance .access > p,
body.hnube-maintenance .notice,
body.hnube-maintenance .secure {
    color: #64879a;
}

body.hnube-maintenance .notice {
    border: 1px solid rgba(60, 150, 191, .22);
    border-radius: 8px;
    background: #f4fbfe;
}

body.hnube-maintenance .notice b {
    color: #fff;
    background: #3da9d5;
}

body.hnube-maintenance .access label span {
    color: #376e89;
}

body.hnube-maintenance .access input {
    min-height: 46px;
    color: #194b65;
    border: 1px solid rgba(55, 145, 187, .32);
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 2px 0 rgba(31, 103, 137, .04);
}

body.hnube-maintenance .access input:focus {
    border-color: #3eb7e5;
    box-shadow: 0 0 0 3px rgba(62, 183, 229, .14);
}

body.hnube-maintenance .enter {
    min-height: 48px;
    color: #fff;
    border: 1px solid #117aa8;
    border-radius: 8px;
    background: linear-gradient(180deg, #51c5ed, #188fc7);
    box-shadow: inset 0 1px rgba(255, 255, 255, .32), 0 5px 0 rgba(14, 91, 124, .18);
}

body.hnube-maintenance .enter:hover {
    background: linear-gradient(180deg, #68d0f2, #219ed3);
    transform: translateY(-1px);
}

body.hnube-maintenance .details {
    border-top-color: rgba(54, 147, 189, .2);
    background: #f6fcff;
}

body.hnube-maintenance .detail {
    color: #285d77;
    border-color: rgba(57, 149, 191, .22);
    background: #fff;
}

body.hnube-maintenance .footer {
    color: #6b8da0;
}

@media (max-width: 900px) {
    body.hnube-maintenance .layout {
        grid-template-columns: 1fr;
    }

    body.hnube-maintenance .scene {
        min-height: 610px;
    }

    body.hnube-maintenance .access {
        border-top: 1px solid rgba(49, 143, 187, .2);
        border-left: 0;
    }
}

@media (max-width: 620px) {
    body.hnube-maintenance {
        padding: 8px;
    }

    body.hnube-maintenance .topbar {
        border-radius: 11px;
    }

    body.hnube-maintenance .live {
        padding: 6px 8px;
        font-size: 8px;
    }

    body.hnube-maintenance .scene {
        min-height: 590px;
        padding: 28px 20px 270px;
    }

    body.hnube-maintenance .status-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.hnube-maintenance .crew-zone {
        left: 10px;
        right: 10px;
    }

    body.hnube-maintenance .crew-zone .hotel {
        right: -44px;
        width: 380px;
    }

    body.hnube-maintenance .crew--builder {
        left: 2%;
    }

    body.hnube-maintenance .crew--frank {
        left: 17%;
    }

    body.hnube-maintenance .access {
        padding: 30px 20px;
    }
}

@media (max-width: 820px) {
    body.hnube-index .px-brand-text {
        display: flex !important;
    }

    body.hnube-index .px-brand-text span {
        display: none;
    }

    body.hnube-index .px-hero-title {
        font-size: clamp(46px, 10vw, 68px);
        line-height: .94;
    }
}

@media (max-width: 560px) {
    body.hnube-index .px-nav-inner {
        min-height: 66px;
    }

    body.hnube-index .px-brand-text strong {
        font-size: 18px;
    }

    body.hnube-index .px-hero-title {
        font-size: clamp(39px, 12vw, 56px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.hnube-public *,
    body.hnube-public *::before,
    body.hnube-public *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
