:root {
    --share-accent: #b63c17;
    --share-accent-dark: #8d2b10;
    --share-warm: #fff8ea;
    --share-cream: #fffdf8;
    --share-text: #34251e;
    --share-muted: #776b64;
    --share-line: #eadbd0;
    --share-green: #2f8764;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--share-text);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 216, 151, 0.34), transparent 30rem),
        linear-gradient(180deg, #f7fafc 0%, #edf2f5 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.share-page-shell {
    width: 100%;
    max-width: 720px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--share-cream);
}

.share-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

.share-page-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 20px 17px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #c64a20 0%, #9d2f10 100%);
}

.share-page-header::after {
    position: absolute;
    right: -46px;
    bottom: -82px;
    width: 190px;
    height: 190px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 224, 171, 0.13);
}

.share-back-link {
    position: relative;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 36px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.share-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.share-brand img {
    width: 43px;
    height: 43px;
    padding: 3px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 7px 18px rgba(91, 25, 7, 0.2);
}

.share-brand span {
    display: grid;
    gap: 1px;
}

.share-brand strong {
    font-size: 22px;
    letter-spacing: 0.08em;
}

.share-brand small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.share-page-content {
    padding: 18px 20px calc(30px + env(safe-area-inset-bottom));
}

.share-invitation {
    position: relative;
    padding: 24px 22px 23px;
    overflow: hidden;
    border: 1px solid #f0d8c4;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 195, 102, 0.36), transparent 10rem),
        linear-gradient(145deg, #fff9ec 0%, #fffdf8 74%);
    box-shadow: 0 12px 28px rgba(96, 58, 34, 0.08);
}

.share-invitation-eyebrow {
    display: inline-flex;
    padding: 5px 10px;
    color: var(--share-accent-dark);
    border-radius: 999px;
    background: #ffe8be;
    font-size: 12px;
    font-weight: 700;
}

.share-invitation h1 {
    margin: 12px 0 10px;
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.14;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.share-invitation p {
    max-width: 100%;
    margin: 0;
    color: var(--share-muted);
    font-size: 16px;
    line-height: 1.8;
}

.share-people {
    display: flex;
    margin-top: 20px;
    padding-left: 8px;
}

.share-people span {
    display: grid;
    width: 44px;
    height: 44px;
    margin-left: -8px;
    place-items: center;
    color: #fff;
    border: 3px solid #fffaf0;
    border-radius: 50%;
    background: #d46438;
    box-shadow: 0 5px 13px rgba(98, 54, 28, 0.15);
    font-size: 15px;
    font-weight: 800;
}

.share-people span:nth-child(2) { background: #4f8b75; }
.share-people span:nth-child(3) { background: #d79835; }
.share-people span:nth-child(4) { background: #83669a; }

.share-qr-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #d6e9df;
    border-radius: 21px;
    background: #f4fbf7;
}

.share-qr-image-link {
    display: block;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border: 8px solid #fff;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 14px rgba(48, 82, 66, 0.12);
}

.share-qr-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.share-qr-copy {
    min-width: 0;
}

.share-qr-kicker {
    color: var(--share-green);
    font-size: 12px;
    font-weight: 800;
}

.share-qr-copy h2 {
    margin: 4px 0 5px;
    font-size: 21px;
}

.share-qr-copy p {
    margin: 0 0 7px;
    color: var(--share-muted);
    font-size: 13px;
    line-height: 1.55;
}

.share-qr-copy strong {
    color: var(--share-accent-dark);
    font-size: 15px;
}

.share-primary-actions {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.share-button,
.share-enter-link {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 15px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
}

.share-button {
    border: 0;
    cursor: pointer;
}

.share-button-primary {
    color: #fff;
    background: linear-gradient(135deg, #c84b20, #9f3010);
    box-shadow: 0 8px 17px rgba(164, 51, 16, 0.2);
}

.share-button-secondary {
    color: var(--share-accent-dark);
    border: 1px solid #e6c9b8;
    background: #fff;
}

.share-button:focus-visible,
.share-back-link:focus-visible,
.share-qr-image-link:focus-visible,
.share-enter-link:focus-visible {
    outline: 3px solid rgba(47, 135, 100, 0.38);
    outline-offset: 3px;
}

.share-button:active,
.share-enter-link:active {
    transform: translateY(1px);
}

.share-action-status {
    min-height: 20px;
    margin: 8px 4px 0;
    color: var(--share-green);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.share-action-status.is-error {
    color: var(--share-accent-dark);
}

.share-feature-section {
    margin-top: 28px;
}

.share-section-heading span {
    color: var(--share-accent);
    font-size: 12px;
    font-weight: 800;
}

.share-section-heading h2 {
    margin: 5px 0 14px;
    font-size: 22px;
}

.share-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.share-feature-card {
    min-height: 175px;
    padding: 17px;
    border: 1px solid var(--share-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(58, 49, 42, 0.05);
}

.share-feature-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    border-radius: 13px;
    background: #c54b21;
    font-size: 15px;
    font-weight: 800;
}

.share-feature-friends .share-feature-icon { background: #3b896c; }
.share-feature-forum .share-feature-icon { background: #ce8b2f; }
.share-feature-growth .share-feature-icon { background: #806197; }

.share-feature-card h3 {
    margin: 12px 0 7px;
    font-size: 17px;
}

.share-feature-card p {
    margin: 0;
    color: var(--share-muted);
    font-size: 13px;
    line-height: 1.65;
}

.share-leisure-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f3f0f8;
}

.share-leisure-note > span {
    font-size: 25px;
}

.share-leisure-note p {
    margin: 0;
    color: #716879;
    font-size: 13px;
    line-height: 1.55;
}

.share-leisure-note strong {
    display: block;
    margin-bottom: 1px;
    color: #553f64;
    font-size: 14px;
}

.share-enter-link {
    margin-top: 20px;
    color: #fff;
    text-decoration: none;
    background: var(--share-green);
    box-shadow: 0 8px 18px rgba(44, 118, 87, 0.2);
}

.share-address-note {
    margin: 13px 0 0;
    color: #948880;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.06em;
}

@media (max-width: 420px) {
    .share-page-content {
        padding-right: 14px;
        padding-left: 14px;
    }

    .share-invitation h1 {
        font-size: clamp(26px, 7.2vw, 30px);
        letter-spacing: 0.02em;
    }

    .share-qr-card {
        gap: 14px;
        padding: 15px;
    }

    .share-qr-image-link {
        width: 102px;
        height: 102px;
        flex-basis: 102px;
    }

    .share-feature-card {
        min-height: 184px;
        padding: 15px;
    }
}

@media (max-width: 350px) {
    .share-invitation {
        padding-right: 18px;
        padding-left: 18px;
    }

    .share-invitation h1 {
        font-size: 24px;
    }

    .share-feature-grid,
    .share-primary-actions {
        grid-template-columns: 1fr;
    }

    .share-qr-card {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
