* {
    box-sizing: border-box;
}

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

body {
    color: #23865f;
    background: #dceee4;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: #dceee4;
}

.page {
    position: relative;
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    overflow: hidden;
    background-color: #f4f6ea;
}

.page::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    content: "";
    pointer-events: none;
}

.page-home::before {
    background-color: #29966b;
    background-image: url("../images/home-bg.png");
}

.page-form::before {
    background-color: #f4f6ea;
    background-image: url("../images/form-bg.png");
}

.page-result::before {
    background-color: #f4f6ea;
    background-image: url("../images/result-bg.png");
}

.home-content,
.home-query,
.logo-home-link,
.identity-form,
.result-content,
.back-link {
    position: relative;
    z-index: 1;
}

.home-content {
    display: block;
    width: 100%;
    height: 177.8vw;
    max-height: 853px;
    padding: 0 24px;
    text-align: center;
}

.brand-placeholder {
    align-self: flex-start;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    color: #fff;
    background: rgba(19, 123, 86, .74);
    font-size: 13px;
    letter-spacing: 2px;
}

.event-title {
    position: absolute;
    top: 21.3%;
    right: 0;
    left: 0;
    width: 100%;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 2px rgba(27, 110, 75, .16);
}

.event-title p {
    margin: 0 0 8px;
    font-size: min(6.46vw, 31px);
    font-weight: 800;
}

.event-title h1 {
    margin: 0;
    font-size: min(8.13vw, 39px);
    line-height: 1.2;
}

.event-title h2 {
    margin: 12px 0 0;
    font-size: min(6.04vw, 29px);
}

.primary-button {
    display: inline-flex;
    min-width: 208px;
    min-height: 54px;
    padding: 10px 24px;
    border: 0;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #df4f91;
    box-shadow: 0 8px 20px rgba(192, 52, 117, .22);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

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

.primary-button:disabled {
    opacity: .7;
    cursor: wait;
}

.home-start {
    position: absolute;
    top: 39.8%;
    left: 26%;
    width: 48%;
    min-width: 0;
    min-height: 0;
    height: 6%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: min(5.21vw, 25px);
}

.home-start:active {
    transform: translateY(1px);
}

.home-query {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 22.8vw;
    max-height: 109px;
    min-height: 72px;
    padding-bottom: env(safe-area-inset-bottom);
    color: #fff;
    background: transparent;
    text-align: center;
}

.home-query a {
    display: flex;
    height: 100%;
    min-height: 74px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.logo-home-link {
    position: absolute;
    top: 5vw;
    left: 25%;
    z-index: 2;
    width: 50%;
    height: 27vw;
    max-height: 130px;
}

.identity-form {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: center;
}

.field-stack {
    position: absolute;
    top: 53.5vw;
    left: 22.5%;
    width: 55%;
}

.identity-form input {
    display: block;
    width: 100%;
    height: 13.3vw;
    max-height: 64px;
    margin-bottom: 10.8vw;
    padding: 0 18px;
    border: 1px solid #55ae6a;
    border-radius: 0;
    outline: 0;
    color: #247e58;
    background: rgba(244, 246, 234, .55);
    font-size: 16px;
    text-align: center;
    -webkit-appearance: none;
}

.identity-form input:focus {
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(84, 174, 106, .13);
}

.identity-form input::placeholder {
    color: #69b978;
    opacity: 1;
}

.form-message {
    min-height: 48px;
    margin-top: -7vw;
}

.form-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.message-error {
    color: #be326f;
}

.message-info {
    color: #247e58;
}

.submit-button {
    position: absolute;
    top: 135vw;
    left: 28%;
    width: 44%;
    min-width: 0;
    min-height: 0;
    height: 11.2vw;
    max-height: 54px;
    margin: 0;
    padding: 0;
}

.back-link {
    display: block;
    width: 100%;
    margin-top: 34px;
    padding: 18px 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    color: #478c67;
    font-size: 14px;
    text-align: center;
}

.result-content {
    position: absolute;
    top: 67.8vw;
    right: 0;
    left: 0;
    margin: 0;
    padding: 0 24px;
    text-align: center;
}

.result-content h1 {
    margin: 0;
    color: #62b56e;
    font-size: min(6.04vw, 29px);
    font-weight: 500;
}

.result-number {
    display: flex;
    width: 39.8vw;
    max-width: 191px;
    height: 39.8vw;
    max-height: 191px;
    margin: 5.5vw auto 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: transparent;
    box-shadow: none;
    font-size: min(17.92vw, 86px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
}

.result-content p {
    margin: 28px 0 0;
    color: #5a8e70;
    font-size: 14px;
}

.page-result .back-link {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (min-width: 480px) {
    .logo-home-link {
        top: 24px;
        height: 130px;
    }

    .field-stack {
        top: 257px;
    }

    .identity-form input {
        height: 64px;
        margin-bottom: 52px;
    }

    .form-message {
        margin-top: -34px;
    }

    .submit-button {
        top: 648px;
        height: 54px;
    }

    .result-content {
        top: 325px;
    }

    .result-number {
        width: 191px;
        height: 191px;
        margin-top: 26px;
    }
}
