.test-onboarding-pending body {
    background: #f7f2e9;
}

.test-onboarding-pending body::before {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #152b49;
    content: "별빛을 불러오는 중…";
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.test-onboarding-pending .app-container {
    visibility: hidden;
}

.test-notice-view {
    background:
        radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.2), transparent 34%),
        linear-gradient(180deg, #0b1026 0%, #050713 100%);
}

.test-notice-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    min-height: 100%;
    color: #fff;
}

.test-notice-header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: max(18px, env(safe-area-inset-top)) 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 7, 19, 0.86);
}

.test-notice-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.test-notice-back-btn:focus-visible,
.test-notice-confirm:has(input:focus-visible),
.test-notice-continue-btn:focus-visible {
    outline: 2px solid rgba(255, 232, 179, 0.72);
    outline-offset: 3px;
}

.test-notice-eyebrow {
    margin: 0 0 4px;
    color: #e0be77;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.test-notice-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    word-break: keep-all;
}

.test-notice-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 20px 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 190, 119, 0.5) transparent;
}

.test-notice-intro {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.75;
    word-break: keep-all;
}

.test-notice-list {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: test-notice-item;
}

.test-notice-item {
    position: relative;
    padding: 17px 16px 17px 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.055);
    counter-increment: test-notice-item;
}

.test-notice-item::before {
    position: absolute;
    top: 16px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: rgba(224, 190, 119, 0.18);
    color: #f0d599;
    content: counter(test-notice-item);
    font-size: 11px;
    font-weight: 900;
}

.test-notice-item h2 {
    margin: 1px 0 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    word-break: keep-all;
}

.test-notice-item p,
.test-notice-item li {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.75;
    word-break: keep-all;
}

.test-notice-item p {
    margin: 0 0 9px;
}

.test-notice-item p:last-child {
    margin-bottom: 0;
}

.test-notice-item ul {
    display: grid;
    gap: 3px;
    margin: 0 0 10px;
    padding-left: 17px;
}

.test-notice-item strong {
    color: #f3d899;
    font-weight: 800;
}

.test-notice-warning {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 194, 102, 0.34);
    border-radius: 10px;
    background: rgba(255, 179, 71, 0.1);
}

.test-notice-warning p {
    margin: 0;
    color: rgba(255, 238, 209, 0.9);
}

.test-notice-warning + p {
    margin-top: 14px;
}

.test-notice-footer {
    padding: 14px 20px max(18px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 7, 19, 0.96);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.28);
}

.test-notice-confirm {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.test-notice-confirm input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #c5a059;
    flex: 0 0 auto;
}

.test-notice-continue-btn {
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 14px;
    background: #c5a059;
    color: #fff;
    font-family: 'NanumSquareNeo', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.test-notice-continue-btn:disabled {
    background: rgba(197, 160, 89, 0.24);
    color: rgba(255, 255, 255, 0.42);
    cursor: not-allowed;
}

@media (max-height: 620px) {
    .test-notice-header {
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: 10px;
    }

    .test-notice-scroll {
        padding-top: 16px;
        padding-bottom: 20px;
    }

    .test-notice-footer {
        padding-top: 10px;
    }
}
