#hy-discover-age {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(25rem, calc(100% - 2rem));
    height: fit-content;
    max-height: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: clamp(20px, 5vw, 32px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #ded8ca;
    border-radius: 18px;
    background: #fffdf8;
    color: #10263c;
    box-shadow: 0 12px 40px rgb(16 38 60 / 12%);
    font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    text-align: start;
    color-scheme: light;
}

#hy-discover-age::backdrop { background: rgb(16 38 60 / 16%); }

#hy-discover-age h2 {
    margin: 0;
    color: #10263c;
    font: 650 clamp(21px, 5vw, 25px)/1.4 system-ui, sans-serif;
    letter-spacing: normal;
}

#hy-discover-age p, .hy-age-noscript p {
    margin: 10px 0 0;
    color: #495764;
    font: 400 15px/1.65 system-ui, sans-serif;
}

.hy-age-noscript p { margin: 3rem 1rem; text-align: center; }

#hy-discover-age .hy-age-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

#hy-discover-age button {
    box-sizing: border-box;
    flex: 1 1 7rem;
    min-height: 46px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #a58044;
    border-radius: 9px;
    background: #fffdf8;
    color: #10263c;
    font: 600 15px/1.4 system-ui, sans-serif;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

#hy-discover-age button[data-hy-age-answer="yes"] {
    background: #10263c;
    border-color: #10263c;
    color: #fffdf8;
}

#hy-discover-age h2:focus { outline: none; }
#hy-discover-age button:focus-visible { outline: 2px solid #967334; outline-offset: 3px; }

@media (max-height: 360px) {
    #hy-discover-age { padding: 16px 20px; }
    #hy-discover-age .hy-age-actions { margin-top: 14px; }
}
