@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Nunito:wght@500;700;900&display=swap');

body {
    margin: 0;
    font-family: "Nunito", Arial, sans-serif;
    color: #102033;
    background:
        linear-gradient(90deg, rgba(16, 32, 51, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(16, 32, 51, 0.05) 1px, transparent 1px),
        #f7fbff;
    background-size: 34px 34px;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 46px;
}

.back-link,
.game-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #102033;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.back-link:hover,
.game-card a:hover {
    background: #174ea6;
}

.hero {
    position: relative;
    padding: 10px 0 24px;
}

.eyebrow,
.tag {
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow {
    margin-top: 38px;
    color: #d64550;
    font-size: 15px;
}

h1 {
    margin: 6px 0 10px;
    font-family: "Bungee", Arial, sans-serif;
    font-size: clamp(46px, 8vw, 96px);
    line-height: 0.95;
}

.hero-text {
    max-width: 800px;
    margin: 0;
    color: #334155;
    font-size: 22px;
    line-height: 1.4;
}

.task-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 12px 0 20px;
}

.task-strip article,
.game-card,
.scratch-box {
    border: 2px solid #102033;
    border-radius: 8px;
    background: #fff;
}

.task-strip article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 12px;
    align-items: center;
    padding: 14px;
}

.task-strip span {
    grid-row: span 2;
    font-size: 34px;
}

.task-strip h2 {
    margin: 0;
    font-size: 22px;
}

.task-strip p {
    margin: 2px 0 0;
    color: #405168;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.game-card {
    display: flex;
    min-height: 290px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    box-shadow: 8px 8px 0 rgba(16, 32, 51, 0.18);
}

.game-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.game-icon {
    font-size: 44px;
}

.tag {
    color: #31445f;
    font-size: 12px;
    text-align: right;
}

.game-card h2 {
    margin: 16px 0 8px;
    font-size: 31px;
    line-height: 1.05;
}

.game-card p:not(.tag) {
    margin: 0;
    color: #24364d;
    font-size: 17px;
    line-height: 1.4;
}

.game-card a {
    margin-top: 20px;
}

.red { background: #ffe8e5; }
.blue { background: #e4f1ff; }
.green { background: #e8f8df; }
.yellow { background: #fff3bf; }
.purple { background: #f0e8ff; }
.dark {
    background: #172033;
    color: #fff;
}

.dark p,
.dark .tag {
    color: #d7e2f1 !important;
}

.dark a {
    background: #ffd60a;
    color: #102033;
}

.scratch-box {
    margin-top: 18px;
    padding: 20px;
    background: #fff;
    box-shadow: 8px 8px 0 #ffd60a;
}

.scratch-box h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.scratch-box p {
    margin: 0;
    color: #334155;
    font-size: 18px;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .task-strip,
    .game-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .task-strip article {
        grid-template-columns: 1fr;
    }

    .task-strip span {
        grid-row: auto;
    }
}
