/* Public home: all artwork is CSS, independent of player wallpapers and Vue. */
html:not([data-home-mode="member"]) body.home-page {
    padding: 0;
    animation: none;
}

.guest-home {
    --intro-ink: #ece8e1;
    --intro-red: #ff4655;
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #0f1923;
    color: var(--intro-ink);
}

.guest-home-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 79% 75%, rgba(255, 70, 85, .075), transparent 47%),
        linear-gradient(115deg, #111e29 0%, #0f1923 50%, #0c151e 100%);
}

.guest-home-grid {
    position: absolute;
    inset: 0;
    opacity: .34;
    background-image: linear-gradient(rgba(236, 232, 225, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 232, 225, .055) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(90deg, transparent 15%, #000 100%);
}

.guest-home-content {
    width: min(1200px, calc(100% - 160px));
    margin: 0 auto;
    padding: 100px 0 120px;
}

.guest-home-marker {
    display: flex;
    gap: 6px;
    width: fit-content;
    margin-bottom: 36px;
    animation: intro-reveal .8s var(--hud-ease) both;
}

.guest-home-marker span {
    width: 22px;
    height: 5px;
    background: var(--intro-red);
    transform: skewX(-32deg);
}

.guest-home-marker span:nth-child(2) { opacity: .45; }
.guest-home-marker span:nth-child(3) { opacity: .18; }

.guest-home-title {
    position: relative;
    width: fit-content;
    margin: 0;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 84px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 0;
}

.guest-home-title span {
    display: block;
    font-family: inherit;
    animation: intro-reveal 1s var(--hud-ease) .08s both;
}

.guest-home-title span:first-child {
    margin-bottom: 10px;
    color: rgba(236, 232, 225, .68);
    font-size: .57em;
    font-weight: 400;
    letter-spacing: 0;
}

.guest-home-title span:last-child {
    text-shadow: 0 6px 36px rgba(0, 0, 0, .14);
    animation-delay: .18s;
}

.guest-home-start {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 58px;
    min-width: 192px;
    min-height: 58px;
    margin-top: 52px;
    padding: 15px 23px;
    overflow: hidden;
    border: 1px solid rgba(255, 129, 139, .34);
    border-radius: var(--control-radius, 6px);
    background: var(--intro-red);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(255, 70, 85, .12);
    transition: background .25s ease, box-shadow .3s ease, transform .3s var(--hud-ease);
    animation: intro-reveal 1s var(--hud-ease) .32s both;
}

.guest-home-start span {
    position: relative;
    z-index: 1;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
}

.guest-home-start i {
    position: relative;
    z-index: 1;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: transform .3s var(--hud-ease);
}

.guest-home-start::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .17), transparent 80%);
    transform: translateX(-120%);
    transition: transform .65s var(--hud-ease);
}

.guest-home-start:hover {
    background: #ff5865;
    box-shadow: 0 10px 40px rgba(255, 70, 85, .23);
    transform: translateY(-3px);
}

.guest-home-start:hover::before { transform: translateX(120%); }
.guest-home-start:hover i { transform: translateX(4px); }
.guest-home-start:active { transform: translateY(0) scale(.98); }
.guest-home-start:focus-visible { outline: 2px solid var(--intro-ink); outline-offset: 6px; }

.guest-home-orbit {
    position: absolute;
    top: 50%;
    left: 76%;
    width: min(66vw, 950px);
    aspect-ratio: 1;
    border: 1px solid rgba(236, 232, 225, .045);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.guest-home-orbit::before,
.guest-home-orbit::after {
    content: '';
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(236, 232, 225, .025);
    border-radius: inherit;
}

.guest-home-orbit::after { inset: 24%; }

.guest-home-sigil {
    position: absolute;
    top: 50%;
    left: 77%;
    width: min(43vw, 620px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    animation: intro-sigil-in 1.5s var(--hud-ease) .15s both;
}

.guest-home-sigil span {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 70, 85, .8), rgba(255, 70, 85, .08));
    clip-path: polygon(5% 12%, 33% 12%, 78% 82%, 50% 82%);
    animation: intro-sigil-breathe 9s ease-in-out infinite;
}

.guest-home-sigil span:last-child {
    background: linear-gradient(165deg, rgba(236, 232, 225, .14), rgba(236, 232, 225, .015));
    clip-path: polygon(74% 12%, 95% 12%, 72% 48%, 51% 48%);
    animation-delay: -4.5s;
}

.guest-home-track {
    position: absolute;
    right: 6%;
    bottom: 9%;
    left: 6%;
    height: 1px;
    background: rgba(236, 232, 225, .1);
    transform-origin: left;
    animation: intro-track-in 1.3s var(--hud-ease) .2s both;
}

.guest-home-track span {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 1px;
    background: var(--intro-red);
    box-shadow: 0 0 12px rgba(255, 70, 85, .4);
    animation: intro-track-drift 12s ease-in-out infinite alternate;
}

.guest-home-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: .3;
}

.guest-home-corner-top { top: 7%; left: 6%; border-top: 1px solid var(--intro-ink); border-left: 1px solid var(--intro-ink); }
.guest-home-corner-bottom { right: 6%; bottom: 14%; border-right: 1px solid var(--intro-ink); border-bottom: 1px solid var(--intro-ink); }

@keyframes intro-reveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-sigil-in {
    from { opacity: 0; transform: translate(-46%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes intro-sigil-breathe {
    0%, 100% { opacity: .55; transform: translateY(0); }
    50% { opacity: .8; transform: translateY(-8px); }
}

@keyframes intro-track-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-track-drift { from { left: 0; } to { left: calc(100% - 64px); } }

@media (min-width: 1800px) { .guest-home-content { width: min(1400px, calc(100% - 240px)); } }

@media (max-width: 860px) {
    .guest-home-content { width: calc(100% - 80px); padding: 130px 0; }
    .guest-home-title { font-size: 64px; }
    .guest-home-sigil { left: 89%; width: 65vw; opacity: .48; }
    .guest-home-orbit { left: 90%; width: 100vw; }
    .guest-home-grid { background-size: 72px 72px; }
}

@media (max-width: 520px) {
    .guest-home-content { width: calc(100% - 56px); padding: 140px 0; }
    .guest-home-marker { margin-bottom: 30px; }
    .guest-home-title { font-size: 44px; }
    .guest-home-title span:first-child { margin-bottom: 12px; font-size: .6em; }
    .guest-home-start { min-width: 172px; min-height: 56px; margin-top: 38px; padding: 14px 20px; }
    .guest-home-sigil { top: 58%; left: 100%; width: 108vw; opacity: .25; }
    .guest-home-orbit { top: 58%; left: 100%; width: 170vw; }
    .guest-home-corner-top { top: max(36px, env(safe-area-inset-top)); left: 28px; }
    .guest-home-track { right: 28px; bottom: max(48px, env(safe-area-inset-bottom)); left: 28px; }
    .guest-home-corner-bottom { right: 28px; bottom: 88px; }
}

@media (max-width: 380px) { .guest-home-title { font-size: 38px; } }
@media (max-width: 330px) { .guest-home-title { font-size: 32px; } }

@media (prefers-reduced-motion: reduce) {
    .guest-home *, .guest-home *::before, .guest-home *::after {
        animation: none !important;
        transition: none !important;
    }
}
