/* CCG two-frame button: homepage-only, no changes to Omega shell or other cards. */
html[data-ccg-page="home"] .ccg-dnp,
html[data-ccg-page="home"] .ccg-dnp * { box-sizing: border-box; }
html[data-ccg-page="home"] .ccg-dnp {
    --ccg-dnp-neon: #72d7ff;
    isolation: isolate;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: min(316px, calc(100% - 28px));
    min-height: 252px;
    padding: 13px 12px 14px;
    margin: 12px auto 18px;
    border: 1px solid rgba(114, 215, 255, .34);
    border-radius: 14px;
    background: radial-gradient(circle at 50% 50%, rgba(125, 15, 38, .15), transparent 58%), linear-gradient(150deg, rgba(8, 16, 34, .94), rgba(23, 12, 42, .96));
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .06);
    color: #fff;
    overflow: hidden;
}
html[data-ccg-page="home"] .ccg-dnp__title {
    margin: 0;
    color: #fff;
    font: 900 clamp(0.98rem, 3vw, 1.14rem)/1.1 system-ui, sans-serif;
    letter-spacing: .045em;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 59, 83, .27);
}
html[data-ccg-page="home"] .ccg-dnp__button-wrap {
    position: relative;
    flex: 0 0 auto;
    width: min(164px, 55vw);
    aspect-ratio: 1 / 1;
    margin: 0;
}
html[data-ccg-page="home"] .ccg-dnp__sprite {
    position: absolute;
    inset: 0;
    background-image: url("/resources/images/easter-eggs/ccg-do-not-press-two-state.webp");
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position: left center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
html[data-ccg-page="home"] .ccg-dnp.is-pressed .ccg-dnp__sprite {
    background-position: right center;
}
html[data-ccg-page="home"] .ccg-dnp__button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    appearance: none;
    display: block;
    width: 60%;
    height: 60%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    outline: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
html[data-ccg-page="home"] .ccg-dnp__button,
html[data-ccg-page="home"] .ccg-dnp__button:hover,
html[data-ccg-page="home"] .ccg-dnp__button:active,
html[data-ccg-page="home"] .ccg-dnp__button:focus {
    /* Shared button transitions must never displace this absolute centre hit area. */
    transform: translate(-50%, -50%) !important;
    border-radius: 50% !important;
    background: transparent !important;
    filter: none !important;
}
html[data-ccg-page="home"] .ccg-dnp__button::before,
html[data-ccg-page="home"] .ccg-dnp__button::after {
    /* Prevent shared button decorations or hover effects covering the red artwork. */
    content: none !important;
    display: none !important;
}
html[data-ccg-page="home"] .ccg-dnp__button:focus {
    outline: 0 !important;
    box-shadow: none !important;
}
html[data-ccg-page="home"] .ccg-dnp__button:focus-visible {
    /* Accessible keyboard focus ring, confined to the circular actuator. */
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9) !important;
}
html[data-ccg-page="home"] .ccg-dnp__counter-number {
    display: block;
    min-width: 5.6ch;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    margin: 0;
    padding: 3px 7px;
    border: 1px solid rgba(114, 215, 255, .42);
    border-radius: 6px;
    background: rgba(2, 8, 21, .65);
    box-shadow: inset 0 0 14px rgba(2, 7, 17, .7), 0 0 13px rgba(42, 169, 255, .11);
    color: var(--ccg-dnp-neon);
    font: 800 clamp(1.2rem, 4vw, 1.35rem)/1.15 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: .14em;
    text-align: center;
    text-shadow: 0 0 7px rgba(114, 215, 255, .92), 0 0 20px rgba(30, 166, 255, .48);
}
@media (max-width: 520px) {
    html[data-ccg-page="home"] .ccg-dnp {
        width: min(316px, calc(100% - 22px));
        min-height: 230px;
        padding: 11px 10px 12px;
    }
    html[data-ccg-page="home"] .ccg-dnp__button-wrap { width: min(148px, 55vw); }
}
@media (prefers-reduced-motion: reduce) {
    /* Both button states are static artwork; never use a moving or flashing animation. */
    html[data-ccg-page="home"] .ccg-dnp__sprite { transition: none; }
}
