@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,400..800&family=Noto+Serif+TC:wght@400;500;600;700;900&display=swap");
:root {
    --font-sans: "Manrope", "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
    --font-cjk: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
    --font-display: "Newsreader", "Noto Serif TC", "Songti TC", serif;
    --font-serif: "Newsreader", "Noto Serif TC", "Songti TC", serif;

    color-scheme: dark;
    --ink: #fffaf1;
    --soft: rgba(255, 250, 241, 0.72);
    --accent: #ff7a59;
    --accent-2: #ffd166;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #070912;
    color: var(--ink);
    font-family: var(--font-sans);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(128deg, rgba(255, 122, 89, 0.2), transparent 34%),
        linear-gradient(248deg, rgba(116, 215, 255, 0.18), transparent 46%),
        linear-gradient(180deg, #070912, #0b1322);
}

.portal-bar {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 20;
    width: min(920px, calc(100% - 28px));
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(15, 18, 31, 0.7);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    transform: translateX(-50%);
}

.return-link,
.open-direct {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 820;
}

.return-link {
    gap: 10px;
    padding: 0 16px 0 8px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.return-link img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.open-direct {
    padding: 0 16px;
    color: #090a10;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.5)),
        linear-gradient(135deg, var(--accent), var(--accent-2));
}

.cloud-frame {
    position: fixed;
    inset: 0;
    padding-top: 0;
}

iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 620px) {
    .portal-bar {
        align-items: stretch;
        border-radius: 28px;
        flex-direction: column;
    }

    .return-link,
    .open-direct {
        width: 100%;
    }
}

.portal-card h1, .portal-card h2, .cloud-copy h1, .cloud-copy h2 { font-family: var(--font-serif); }
