/* =========================================================================
   3D PROTAGON PUZZLES — 3D landing page ("Crossword Paper" re-skin)
   -------------------------------------------------------------------------
   The 3D landing shares its markup vocabulary with the 2D landing, so it
   reuses the 2D stylesheet as its single source of truth and only layers
   on 3D-specific presentation. Visual layer only.
   ========================================================================= */

@import url('../index2D/styles.css');

/* The current-page 3D CTA carries aria-current="page" — give it an accent
   edge so the active dimension is recognisable. */
.big-btn[aria-current="page"] {
    border-color: var(--accent);
    color: var(--accent);
}
.big-btn[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 10px;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
}

/* =========================================================================
   3D CARD KEY ART
   -------------------------------------------------------------------------
   The nine cards use PuzzleIcon3D's lit dioramas instead of the flat paper
   glyphs the 2D landing uses. The art carries its own full-bleed dark stage,
   so the thumbnail becomes a small framed scene: a fixed ink backdrop (to
   avoid a flash of the card surface before the SVG paints), a hairline
   highlight, and a slightly deeper shadow than the 2D cards.

   The pill is re-skinned here because it now sits on dark artwork in BOTH
   themes. The shared rules colour it with --cat-* (dark inks in the light
   theme); these lighter accents keep the Word/Logic/Spatial coding legible
   against the ink stage without changing the 2D cards.
   ========================================================================= */
.card-thumb--3d {
    background: #0B1E22;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        0 6px 16px rgba(6, 18, 20, 0.28);
}

.card-thumb--3d .game-icon3d {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: 50% 56%;
    transition: transform 0.36s cubic-bezier(0.22, 0.68, 0, 1);
}

.card:hover .card-thumb--3d {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 12px 26px rgba(6, 18, 20, 0.34);
}

.card:hover .card-thumb--3d .game-icon3d,
.card:focus-within .card-thumb--3d .game-icon3d {
    transform: scale(1.035);
}

/* Category pills on the ink stage: dark glass, category-coloured ink. */
.card .card-thumb--3d .pill {
    background: rgba(6, 20, 23, 0.72);
    -webkit-backdrop-filter: blur(7px);
            backdrop-filter: blur(7px);
    border-color: currentColor;
    color: #F4EEE2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.card[data-category="word"] .card-thumb--3d .pill {
    color: #F6B26B;
    border-color: rgba(246, 178, 107, 0.55);
}

.card[data-category="logic"] .card-thumb--3d .pill {
    color: #EDD9A8;
    border-color: rgba(237, 217, 168, 0.52);
}

.card[data-category="spatial"] .card-thumb--3d .pill {
    color: #7FE7DC;
    border-color: rgba(127, 231, 220, 0.52);
}

@media (prefers-reduced-motion: reduce) {
    .card-thumb--3d .game-icon3d {
        transition: none;
    }
    .card:hover .card-thumb--3d .game-icon3d,
    .card:focus-within .card-thumb--3d .game-icon3d {
        transform: none;
    }
}
