/* Linked by the pages that use it; the layer keeps its old place in the
   cascade, from when core/main.css imported it. */
@layer components {
/* Trap pages: Outlaw, Brainiac, Jackpot */

.trap-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 60px;
    gap: 24px;
}

/* Variants */
.trap-page--outlaw {
    background: linear-gradient(180deg, #1a0a0a 0%, #2d0f0f 50%, #0d0505 100%);
}

.trap-page--brainiac {
    background: linear-gradient(180deg, #e8f4f8 0%, #87ceeb 50%, #b0dff0 100%);
}

.trap-page--jackpot {
    background: linear-gradient(180deg, #2a1f00 0%, #3d2e00 50%, #1a1200 100%);
}

/* Two-column grid */
.trap-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 32px;
    align-items: stretch;
}

/* Hero image — full view, no crop */
.trap-hero-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.trap-hero-img img {
    width: 300px;
    height: auto;
    display: block;
}

/* Right column */
.trap-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Game area */
.trap-game-area {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Title */
.trap-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
}

.trap-page--outlaw .trap-title {
    color: #e04040;
    text-shadow: 0 2px 10px rgba(224, 64, 64, 0.4);
}

.trap-page--brainiac .trap-title {
    color: #1a3a5c;
}

.trap-page--jackpot .trap-title {
    color: var(--accent-gold);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

/* CTA button */
.trap-cta {
    display: inline-block;
    margin-top: auto;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trap-page--outlaw .trap-cta {
    background: #cc1100;
    color: var(--surface);
    box-shadow: 0 4px 16px rgba(204, 17, 0, 0.4);
}

.trap-page--brainiac .trap-cta {
    background: #1a3a5c;
    color: var(--surface);
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.3);
}

.trap-page--jackpot .trap-cta {
    background: var(--accent-gold);
    color: #1a1200;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

/* Small screens: single column */
@media (max-width: 640px) {
    .trap-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .trap-page { padding: 24px 4px 40px; gap: 16px; }
    .trap-hero-img img { width: 250px; }
    .trap-game-area { width: 250px; height: 250px; }
    .trap-title { font-size: 1.6rem; }
}

/* 480 -- space is gold: the shell gives its padding back to the content. */
@media (max-width: 480px) {
  .trap-page { padding-left: 4px; padding-right: 4px; }
}

}
