* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
    background: #000;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    padding:
        calc(22px + env(safe-area-inset-top))
        calc(22px + env(safe-area-inset-right))
        calc(22px + env(safe-area-inset-bottom))
        calc(22px + env(safe-area-inset-left));
    color: #fff;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(229, 9, 20, .25), transparent 40%),
        linear-gradient(135deg, #000, #120000, #000);
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
}

.page {
    width: min(100%, 860px);
    margin: 0 auto;
}

.back {
    display: inline-block;
    min-height: 44px;
    margin-bottom: 22px;
    padding: 10px 0;
    color: #ccc;
    text-decoration: none;
    touch-action: manipulation;
}

.back:hover,
.back:focus-visible {
    color: #fff;
}

.header {
    margin-bottom: 26px;
    text-align: center;
}

.logo {
    display: block;
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    margin: 0 auto 12px;
    border: 2px solid #e50914;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(229, 9, 20, .6);
    object-fit: cover;
}

.header h1 {
    margin-bottom: 8px;
    font-size: 34px;
}

.header p {
    color: #bbb;
    line-height: 1.6;
}

.card {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid rgba(229, 9, 20, .25);
    border-radius: 18px;
    background: #151515;
}

.card h2 {
    margin-bottom: 12px;
    font-size: 20px;
}

.card p {
    color: #ccc;
    line-height: 1.6;
}

.highlight {
    color: #e50914;
    font-weight: 700;
}

.ref-box {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #333;
    border-radius: 12px;
    color: #eee;
    background: #090909;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
    user-select: text;
    -webkit-user-select: text;
}

button {
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 13px;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #e50914;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

button:hover,
button:focus-visible {
    background: #f31d27;
}

button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

button:disabled:hover {
    background: #e50914;
}

button:active {
    transform: scale(.98);
}

button:disabled:active {
    transform: none;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.stat {
    padding: 16px;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    background: #101010;
    text-align: center;
}

.stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.stat span {
    color: #aaa;
    font-size: 13px;
}

.steps {
    list-style-position: inside;
}

.steps li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: #ddd;
}

.steps li:last-child {
    border-bottom: 0;
}

.note {
    margin-top: 18px;
    color: #aaa;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    body {
        padding:
            calc(18px + env(safe-area-inset-top))
            calc(18px + env(safe-area-inset-right))
            calc(18px + env(safe-area-inset-bottom))
            calc(18px + env(safe-area-inset-left));
    }

    .header h1 {
        font-size: 28px;
    }
}
