/* ========================================
   HOMEPAGE: START HERE DOORS (see home.js)
   Uses the theme variables, so light mode needs nothing extra.
======================================== */

.hm-start {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 8px;
}

.hm-doors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 26px;
}

.hm-door {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
}

.hm-door:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hm-door[aria-pressed="true"] {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent) inset;
}

.hm-door-ico {
    font-size: 1.8rem;
}

.hm-door b {
    font-size: 1.1rem;
}

.hm-door span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.hm-doors-all {
    margin: 14px 0 0;
    text-align: center;
}

.hm-linkbtn {
    border: none;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hm-linkbtn[hidden],
#courseCatalogGrid > [hidden],
#progressSection[hidden] {
    display: none !important;
}

@media (max-width: 760px) {

    .hm-doors {
        grid-template-columns: 1fr;
    }

    .hm-door {
        padding: 16px 18px;
    }
}

#courses {
    scroll-margin-top: 80px;
}

/* ---------- Waferbound game banner ---------- */

.hm-game {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 15% 20%, rgba(84, 224, 199, .16), transparent 55%),
        radial-gradient(circle at 90% 90%, rgba(245, 176, 76, .14), transparent 50%),
        var(--panel);
}

.hm-game-shot img,
.hm-game-thumbs img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    border-radius: 14px;
    border: 3px solid #0b1020;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.hm-game-shot {
    display: block;
    transition: transform .2s;
}

.hm-game-shot:hover {
    transform: translateY(-3px) rotate(-.4deg);
}

.hm-game-new {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #06121a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.hm-game h2 {
    margin: 0;
    font-family: "Courier New", monospace;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.hm-game-tag {
    margin: 2px 0 14px;
    font-size: 0.82rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #f5b04c;
}

.hm-game-copy > p:not([class]) {
    color: var(--muted);
    line-height: 1.6;
}

.hm-game-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    max-width: 360px;
}

.hm-game-thumbs img {
    border-width: 2px;
    border-radius: 10px;
    box-shadow: none;
}

@media (max-width: 860px) {

    .hm-game {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
    }

    .hm-game-thumbs {
        display: none;
    }
}

html[data-theme="light"] .hm-game-tag {
    color: #a35f00;
}
