:root {
    --brand: #1677ff;
    --brand-dark: #0958d9;
    --ink: #17233d;
    --muted: #5f6b7a;
    --line: #e6edf7;
    --surface: #ffffff;
    --background: #f3f7fd;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 4%, rgba(22, 119, 255, .15), transparent 29rem),
        radial-gradient(circle at 94% 96%, rgba(54, 207, 201, .14), transparent 27rem),
        var(--background);
}

.page {
    width: 100%;
    min-height: 100vh;
    padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
}

.card {
    width: min(100%, 420px);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(9, 88, 217, .10);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(30, 73, 136, .14);
}

.hero {
    padding: 34px 24px 26px;
    text-align: center;
    background: linear-gradient(145deg, #eef6ff, #ffffff 76%);
}

.mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    border-radius: 17px;
    

}

h1 { margin: 0; font-size: 24px; line-height: 1.35; letter-spacing: .02em; }
h2 { margin: 0; font-size: 16px; line-height: 1.5; }

.intro {
    max-width: 300px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.content { padding: 22px 24px 26px; }

.button,
.button-disabled {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    border-radius: 14px;
}

.button {
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand), #36cfc9);
    box-shadow: 0 12px 24px rgba(22, 119, 255, .24);
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.button:hover { background: linear-gradient(135deg, var(--brand-dark), #13c2c2); }
.button:active { transform: translateY(1px); box-shadow: 0 7px 16px rgba(22, 119, 255, .28); }
.button:focus-visible { outline: 3px solid rgba(22, 119, 255, .35); outline-offset: 3px; }

.button-secondary {
    color: var(--brand-dark);
    background: #f4f8ff;
    border: 1px solid #d8e7ff;
    box-shadow: none;
}

.button-disabled { color: #8b98aa; background: #edf1f6; cursor: not-allowed; }
.button svg { width: 21px; height: 21px; flex: none; }

.actions { display: grid; gap: 12px; }

.hint,
.countdown,
.qr-copy {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.hint { margin: 12px 0 0; }
.countdown { margin: 8px 0 0; color: var(--brand-dark); font-weight: 600; }

.qr-section {
    margin-top: 23px;
    padding-top: 22px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.qr-copy { margin: 6px 0 14px; line-height: 1.65; }

.qr {
    width: min(100%, 190px);
    display: block;
    margin: 0 auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.footer { margin: 18px 0 0; color: #8b98aa; font-size: 12px; text-align: center; }

@media (max-width: 360px) {
    .hero { padding: 28px 20px 22px; }
    .content { padding: 20px; }
    h1 { font-size: 22px; }
}

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