
.tool-page-hero {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.5), transparent 32%),
        linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}

.tool-page-hero h1 {
    font-size: 42px;
    margin: 0 0 12px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.tool-page-hero p {
    font-size: 20px;
    max-width: 760px;
    margin: 0 auto 24px;
}

.game-box {
    max-width: 950px;
    margin: 40px auto;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.95), transparent 35%),
        linear-gradient(135deg, #ffffff, #fff0fa, #f4edff);
    padding: 30px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.game-label {
    color: #5b4fd6;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
}

.game-status {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 20px;
}

.status-pill {
    background: #fff;
    color: #5b4fd6;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
}

.category-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 10px;
}

.category-pills button {
    border: none;
    background: #fff;
    color: #5b4fd6;
    padding: 9px 13px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
}

.category-pills button:hover,
.category-pills button.active-category {
    background: #fff0fa;
}

.game-card {
    background: #fff;
    color: #333;
    padding: 26px 20px;
    border-radius: 24px;
    box-shadow: 0 7px 18px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.question-box {
    max-width: 700px;
    margin: 0 auto 18px;
    padding: 15px 18px;
    border-radius: 18px;
    background: #fff7d6;
    color: #6d5316;
    font-weight: bold;
    font-size: 18px;
}

.scene-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
}

.scene-box {
    background: linear-gradient(135deg, #f4edff, #fff0fa);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
}

.scene-title {
    color: #5b4fd6;
    font-weight: bold;
    margin-bottom: 10px;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.scene-cell {
    min-height: 58px;
    border: 2px solid transparent;
    border-radius: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.right-scene .scene-cell {
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.right-scene .scene-cell:hover {
    transform: scale(1.04);
    background: #fff7d6;
}

.right-scene .scene-cell.found {
    border-color: #44b76b;
    background: #d9ffe3;
}

.right-scene .scene-cell.wrong {
    border-color: #db5574;
    background: #ffe1e6;
}

.feedback-box {
    min-height: 66px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    color: #5b4fd6;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.generator-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.generator-buttons button,
.generator-buttons a {
    border: none;
    background: #4a6cf7;
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, background 0.2s ease;
}

.generator-buttons button:hover,
.generator-buttons a:hover {
    background: #5b4fd6;
    transform: translateY(-2px);
}

.helper-box {
    background: #fff;
    border-radius: 22px;
    padding: 20px;
    margin-top: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.book-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.book-links-list a {
    display: block;
    background: linear-gradient(135deg, #fff, #f4edff);
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: #4a3fd1;
    box-shadow: 0 5px 14px rgba(0,0,0,0.1);
}

@media (max-width: 760px) {
    .tool-page-hero {
        padding: 34px 16px;
    }

    .tool-page-hero h1 {
        font-size: 30px;
        margin-bottom: 8px;
    }

    .tool-page-hero p {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .game-box {
        margin: 18px auto;
        padding: 18px 12px;
    }

    .game-label {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .game-status {
        gap: 7px;
        margin: 8px 0 12px;
    }

    .status-pill {
        padding: 6px 10px;
        font-size: 14px;
    }

    .category-pills {
        margin: 12px 0 8px;
        gap: 6px;
    }

    .category-pills button {
        padding: 7px 9px;
        font-size: 13px;
    }

    .game-card {
        margin: 12px 0;
        padding: 16px 9px;
    }

    .question-box {
        padding: 12px;
        margin-bottom: 14px;
        font-size: 16px;
    }

    .scene-wrap {
        gap: 8px;
    }

    .scene-box {
        border-radius: 16px;
        padding: 8px;
    }

    .scene-title {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .scene-grid {
        gap: 5px;
    }

    .scene-cell {
        min-height: 42px;
        border-radius: 10px;
        font-size: 23px;
    }

    .feedback-box {
        min-height: 54px;
        margin-top: 14px;
        padding: 13px;
        font-size: 15px;
    }

    .generator-buttons {
        margin-top: 14px;
        gap: 8px;
    }

    .generator-buttons button {
        padding: 9px 13px;
        font-size: 14px;
    }
}
