:root {
    --page-bg: #ffffff;
    --ink: #050505;
    --blue-shadow: #0f4f9d;
    --blue-accent: #1097ff;
    --green: #02d52c;
    --green-dark: #03b92a;
    --red: #ff2c06;
    --red-dark: #e12500;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--ink);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

body.is-ready .mobile-card {
    opacity: 1;
    transform: translateY(0);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 10px 24px;
}

.mobile-card {
    width: min(100%, 390px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-mark {
    margin-top: 0;
}

.logo-link {
    display: inline-block;
    margin: 0 auto 16px;
    text-decoration: none;
}

.logo-image {
    display: block;
    width: 178px;
    height: 178px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 14px 28px rgba(28, 74, 173, 0.24);
}

.logo-orb {
    position: relative;
    width: 178px;
    height: 178px;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.98) 0 12%, rgba(157, 246, 255, 0.9) 12%, rgba(112, 208, 255, 0.6) 21%, transparent 30%),
        radial-gradient(circle at 72% 18%, rgba(224, 230, 255, 0.92) 0 16%, rgba(131, 89, 255, 0.2) 17%, transparent 31%),
        radial-gradient(circle at 68% 76%, rgba(255, 237, 140, 0.7) 0 10%, transparent 24%),
        linear-gradient(140deg, #89f5ff 0%, #43b3ff 26%, #3766eb 60%, #6f34d9 100%);
    box-shadow: 0 14px 28px rgba(28, 74, 173, 0.24);
}

.logo-orb::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 24%, rgba(255, 255, 255, 0.14) 24% 25%, transparent 25% 49%, rgba(255, 255, 255, 0.14) 49% 50%, transparent 50% 74%, rgba(255, 255, 255, 0.14) 74% 75%, transparent 75%),
        linear-gradient(transparent 0 24%, rgba(255, 255, 255, 0.14) 24% 25%, transparent 25% 49%, rgba(255, 255, 255, 0.14) 49% 50%, transparent 50% 74%, rgba(255, 255, 255, 0.14) 74% 75%, transparent 75%);
    opacity: 0.8;
}

.logo-orb::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.orb-title,
.orb-clover,
.orb-star,
.orb-digit {
    position: absolute;
    z-index: 1;
}

.orb-title {
    font-family: "Baloo 2", cursive;
    font-size: 48px;
    line-height: 0.86;
    font-weight: 800;
    letter-spacing: -1.4px;
    color: #eff7ff;
    -webkit-text-stroke: 4px #1744b8;
    text-shadow: 0 4px 0 rgba(93, 24, 158, 0.6), 0 8px 16px rgba(16, 53, 148, 0.34);
}

.orb-title-top {
    top: 42px;
    left: 18px;
}

.orb-title-bottom {
    top: 90px;
    right: 16px;
}

.orb-clover {
    top: 62px;
    left: 96px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    background: radial-gradient(circle at 35% 35%, #efe0ff 0 30%, #aa68ff 48%, #8647f9 70%, #7235df 100%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85);
}

.orb-star {
    font-size: 20px;
    color: #ffe15e;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
}

.star-one {
    top: 34px;
    right: 32px;
    transform: rotate(10deg);
}

.star-two {
    top: 112px;
    left: 16px;
    color: #72f2ff;
}

.star-three {
    top: 122px;
    right: 36px;
}

.orb-digit {
    font-family: "Baloo 2", cursive;
    font-size: 18px;
    color: rgba(219, 248, 255, 0.7);
    text-shadow: 0 1px 4px rgba(42, 93, 179, 0.35);
}

.digit-one {
    top: 10px;
    left: 43px;
}

.digit-two {
    top: 22px;
    left: 68px;
}

.digit-three {
    top: 28px;
    left: 92px;
}

.digit-four {
    bottom: 18px;
    right: 26px;
}

.digit-five {
    bottom: 26px;
    left: 58px;
}

.digit-six {
    top: 124px;
    left: 112px;
}

h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.1px;
}

.emoji-strip {
    margin: 10px 0 44px;
    font-size: 24px;
    letter-spacing: 5px;
}

.logic-line {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    white-space: nowrap;
}

.cta-block {
    margin-top: 30px;
}

.cta-line,
.join-link {
    margin: 0;
    font-style: italic;
    font-weight: 800;
    line-height: 1.15;
}

.cta-line {
    font-size: 20px;
    letter-spacing: -0.2px;
}

.join-link {
    display: inline-block;
    margin-top: 8px;
    color: #020202;
    text-decoration: none;
    font-size: 18px;
}

.action-stack {
    width: 100%;
    margin-top: 38px;
}

.action-button {
    width: 100%;
    height: 74px;
    border: none;
    border-radius: 28px;
    padding: 0 22px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: -0.8px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    box-shadow: 0 4px 0 var(--blue-shadow), 0 14px 24px rgba(14, 42, 108, 0.12);
}

.action-button + .action-button {
    margin-top: 18px;
}

.action-button:hover {
    filter: brightness(1.02);
}

.action-button:active,
.action-button.tap {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--blue-shadow), 0 10px 16px rgba(14, 42, 108, 0.12);
}

.register {
    background: linear-gradient(180deg, #05d92c 0%, var(--green) 64%, var(--green-dark) 100%);
}

.login {
    background: linear-gradient(180deg, #ff360e 0%, var(--red) 64%, var(--red-dark) 100%);
}

.credit-line {
    display: inline-block;
    margin: 72px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.credit-line span {
    color: var(--blue-accent);
}

@media (max-width: 410px) {
    .page-shell {
        padding: 10px 8px 24px;
    }

    .logic-line {
        white-space: normal;
    }

    .cta-line {
        font-size: 18px;
    }

    .join-link {
        font-size: 17px;
    }

    .action-button {
        height: 72px;
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-card,
    .action-button {
        transition: none;
    }
}