* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #18212f;
    background:
        radial-gradient(circle at 20% 12%, rgba(45, 165, 231, 0.15), transparent 30%),
        linear-gradient(180deg, #f5faff 0%, #ffffff 52%, #edf5fb 100%);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px 36px;
}

.topbar {
    width: min(100%, 520px);
    margin-bottom: 34px;
}

.topbar img {
    display: block;
    width: 131px;
    height: auto;
}

.join-panel {
    width: min(100%, 420px);
    text-align: center;
    padding: 28px 18px 22px;
}

.join-panel.compact {
    margin-top: 42px;
}

.avatar {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 14px 36px rgba(24, 33, 47, 0.16);
}

h1 {
    margin: 0 0 10px;
    font-size: 31px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0;
}

p {
    max-width: 340px;
    margin: 0 auto 22px;
    color: #556171;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 500;
}

.actions {
    display: grid;
    gap: 10px;
    width: min(100%, 320px);
    margin: 0 auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #ffffff;
    background: #2588d8;
    box-shadow: 0 10px 26px rgba(37, 136, 216, 0.28);
}

.button-primary:hover {
    background: #1f79c2;
}

.button-secondary {
    color: #24364b;
    background: #e7edf4;
}

.button-secondary:hover {
    background: #dde6ef;
}

@media (max-width: 380px) {
    h1 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }
}
