@font-face {
    font-family: "Be Vietnam Pro Local";
    src: url("../fonts/BeVietnamPro-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro Local";
    src: url("../fonts/BeVietnamPro-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro Local";
    src: url("../fonts/BeVietnamPro-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro Local";
    src: url("../fonts/BeVietnamPro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Be Vietnam Pro Local";
    src: url("../fonts/BeVietnamPro-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

:root {
    --gold: #cda45e;
    --gold-light: #f1d99b;
    --gold-deep: #8a6a34;
    --bg-deep: #08090c;
    --bg-mid: #14161d;
    --text: #f6f2e8;
    --muted: rgba(246, 242, 232, 0.66);
    --card-border: rgba(205, 164, 94, 0.28);
}

html {
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Be Vietnam Pro Local", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

/* AMBIENT CANVAS */
#ambientCanvas {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* BACKGROUND */
.portal-page {
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    padding: 18px;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-deep);
}

.portal-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../images/hotel-lobby-bg.jpg") center 34% / cover no-repeat;
    filter: brightness(0.42) saturate(0.85) contrast(1.08);
    z-index: 0;
}

.portal-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(205, 164, 94, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(8, 9, 12, 0.3) 0%, rgba(8, 9, 12, 0.58) 55%, rgba(8, 9, 12, 0.88) 100%),
        repeating-linear-gradient(
            115deg,
            rgba(205, 164, 94, 0.035) 0px,
            rgba(205, 164, 94, 0.035) 1px,
            transparent 1px,
            transparent 64px
        );
    pointer-events: none;
    z-index: 1;
}

/* LAYOUT */
.portal-shell {
    position: relative;
    z-index: 10;
    width: min(560px, 100%);
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    position: relative;
    z-index: 20;
    width: 100%;
    max-height: 100%;
    padding: clamp(18px, 3.6vh, 40px) clamp(20px, 4vw, 40px);
    border-radius: 28px;
    border: 1px solid var(--card-border);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

.hero-card.revealed {
    animation: cardEntrance 0.7s ease forwards;
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(205, 164, 94, 0.5), transparent 30%, transparent 70%, rgba(205, 164, 94, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* REVEAL SEQUENCE */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-card.revealed [data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="0"] { transition-delay: 0.05s; }
[data-reveal="1"] { transition-delay: 0.16s; }
[data-reveal="2"] { transition-delay: 0.26s; }
[data-reveal="3"] { transition-delay: 0.34s; }
[data-reveal="4"] { transition-delay: 0.42s; }
[data-reveal="5"] { transition-delay: 0.5s; }
[data-reveal="6"] { transition-delay: 0.58s; }
[data-reveal="7"] { transition-delay: 0.68s; }

/* EMBLEM */
.emblem {
    position: relative;
    width: clamp(80px, 16vh, 170px);
    height: clamp(80px, 16vh, 170px);
    margin-bottom: clamp(6px, 1.6vh, 18px);
    flex-shrink: 0;
}

.emblem-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(241, 217, 155, 0.95) 30deg,
        transparent 80deg,
        transparent 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    animation: rotateSlow 7s linear infinite;
}

.emblem-ring-dashed {
    position: absolute;
    inset: 11%;
    border-radius: 50%;
    border: 1px dashed rgba(205, 164, 94, 0.28);
    animation: rotateSlowReverse 20s linear infinite;
}

.emblem-pulse {
    position: absolute;
    inset: 26%;
    border-radius: 50%;
    border: 1px solid rgba(205, 164, 94, 0.35);
    animation: pulseRing 3.6s ease-out infinite;
}

.pulse-b {
    animation-delay: 1.8s;
}

.emblem-core {
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 26%, #2a2d37, #101218 74%);
    box-shadow:
        0 0 0 2px rgba(205, 164, 94, 0.55),
        0 12px 30px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-letter {
    font-size: clamp(20px, 4.5vh, 40px);
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold-light) 25%, var(--gold) 50%, var(--gold-light) 75%, var(--gold-deep) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerSweep 6s linear infinite;
}

.mote {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 8px 2px rgba(241, 217, 155, 0.75);
    animation: moteTwinkle 3.4s ease-in-out infinite;
}

.mote-1 { top: 4%; left: 20%; animation-delay: 0s; }
.mote-2 { top: 14%; right: 6%; animation-delay: 0.7s; }
.mote-3 { bottom: 8%; left: 4%; animation-delay: 1.4s; }
.mote-4 { bottom: 16%; right: 12%; animation-delay: 2.1s; }
.mote-5 { top: 48%; left: -3%; animation-delay: 2.8s; }

/* BRAND NAME */
.brand-name {
    margin-bottom: clamp(6px, 1.4vh, 20px);
    flex-shrink: 0;
}

.brand-name h1 {
    margin: 0;
    font-size: clamp(16px, min(3.4vw, 3vh), 28px);
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--text);
    text-transform: uppercase;
}

.brand-name h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-card.revealed .brand-name h1 span {
    opacity: 1;
    transform: translateY(0);
}

.brand-name h1 span:nth-child(1) { transition-delay: 0.16s; }
.brand-name h1 span:nth-child(2) { transition-delay: 0.2s; }
.brand-name h1 span:nth-child(3) { transition-delay: 0.24s; }
.brand-name h1 span:nth-child(4) { transition-delay: 0.28s; }
.brand-name h1 span:nth-child(5) { transition-delay: 0.32s; }
.brand-name h1 span:nth-child(6) { transition-delay: 0.38s; }
.brand-name h1 span:nth-child(7) { transition-delay: 0.42s; }
.brand-name h1 span:nth-child(8) { transition-delay: 0.46s; }
.brand-name h1 span:nth-child(9) { transition-delay: 0.5s; }
.brand-name h1 span:nth-child(10) { transition-delay: 0.54s; }

.stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: clamp(3px, 0.8vh, 8px) 0 0;
}

.stars svg {
    width: 12px;
    height: 12px;
    fill: var(--gold);
    filter: drop-shadow(0 0 4px rgba(205, 164, 94, 0.6));
}

/* BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 0.9vh, 8px) 20px;
    border-radius: 999px;
    background: rgba(205, 164, 94, 0.1);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: clamp(6px, 1.4vh, 20px);
    box-shadow: inset 0 0 0 1px rgba(205, 164, 94, 0.32);
    flex-shrink: 0;
}

/* HEADLINE */
.headline {
    margin: 0 0 clamp(4px, 1vh, 10px);
    font-size: clamp(17px, min(4vw, 3.2vh), 32px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-wrap: balance;
    flex-shrink: 0;
}

.shimmer-text {
    display: block;
    margin-top: 4px;
    font-weight: 500;
    font-size: 0.62em;
    letter-spacing: 0.02em;
    background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold-light) 25%, var(--gold) 50%, var(--gold-light) 75%, var(--gold-deep) 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerSweep 6s linear infinite;
}

.lede {
    max-width: 46ch;
    color: var(--muted);
    font-size: clamp(12px, min(1vw, 1.7vh), 15px);
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 clamp(6px, 1.8vh, 22px);
    flex-shrink: 0;
}

/* BUTTON */
.login-button {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-height: clamp(38px, 5.6vh, 58px);
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    color: #171205;
    font-size: clamp(12px, 1.8vh, 15px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
    box-shadow:
        0 16px 34px rgba(205, 164, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: clamp(6px, 1.8vh, 22px);
    flex-shrink: 0;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 42px rgba(205, 164, 94, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.login-button-label {
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: transform 0.15s ease-out;
}

.login-button::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -40%;
    width: 30%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: rotate(18deg);
    animation: buttonSheen 3.2s ease-in-out infinite;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0);
    pointer-events: none;
    animation: rippleAnim 0.6s ease-out forwards;
    z-index: 1;
}

/* INFO CHIPS */
.quick-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 1vw, 10px);
    width: 100%;
    margin-bottom: clamp(6px, 1.6vh, 18px);
    flex-shrink: 0;
}

.info-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: clamp(8px, 1.8vh, 16px) 10px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(205, 164, 94, 0.18);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.info-chip:hover {
    transform: translateY(-3px);
    background: rgba(205, 164, 94, 0.08);
    border-color: rgba(205, 164, 94, 0.42);
}

.info-icon {
    width: clamp(26px, 4.5vh, 38px);
    height: clamp(26px, 4.5vh, 38px);
    min-width: clamp(26px, 4.5vh, 38px);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(205, 164, 94, 0.28), rgba(205, 164, 94, 0.08));
    box-shadow: inset 0 0 0 1px rgba(205, 164, 94, 0.35);
}

.info-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--gold-light);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-chip strong {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.info-chip span {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.3;
}

.info-chip-link span {
    color: var(--gold-light);
    font-weight: 600;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}

.terms {
    margin: 0 !important;
    text-align: center;
    font-size: clamp(9px, 1.4vh, 12.5px) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: rgba(246, 242, 232, 0.48) !important;
    max-width: 42ch;
    flex-shrink: 0;
}

/* LOADER */
.loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-ring {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 3px solid rgba(205, 164, 94, 0.18);
    border-top-color: var(--gold-light);
    animation: spin 0.85s linear infinite;
}

.loader-text {
    color: var(--muted);
    font-size: 13px;
}

/* ANIMATIONS */
@keyframes rotateSlow {
    to { transform: rotate(360deg); }
}

@keyframes rotateSlowReverse {
    to { transform: rotate(-360deg); }
}

@keyframes pulseRing {
    0% { opacity: 0.55; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(1.7); }
}

@keyframes shimmerSweep {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes moteTwinkle {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-6px); }
}

@keyframes buttonSheen {
    0% { left: -40%; opacity: 0; }
    15% { opacity: 0.9; }
    50% { left: 45%; }
    100% { left: 130%; opacity: 0; }
}

@keyframes rippleAnim {
    to { transform: scale(1); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* MOBILE */
@media (max-width: 560px) {
    .portal-page {
        padding: 0;
    }

    .portal-shell {
        align-items: stretch;
    }

    .hero-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: clamp(14px, 3vh, 26px) 18px calc(clamp(14px, 3vh, 26px) + env(safe-area-inset-bottom));
    }
}

/* SHORT VIEWPORTS (landscape phones, small laptops) */
@media (max-height: 700px) {
    .emblem {
        margin-bottom: 4px;
    }

    .mote-5,
    .mote-4 {
        display: none;
    }

    .stars {
        margin-top: 2px;
    }
}

@media (max-height: 520px) {
    .emblem {
        display: none;
    }
}
