
.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: 900px;
    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);
}

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

.clue-box {
    background: linear-gradient(135deg, #fff7e6, #f4edff);
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 21px;
    font-weight: bold;
    color: #5b4fd6;
    line-height: 1.5;
    white-space: pre-line;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.answer-button {
    border: none;
    background: linear-gradient(135deg, #ffffff, #f4edff);
    color: #333;
    padding: 18px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 21px;
    font-weight: bold;
    cursor: pointer;
    min-height: 72px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.11);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.answer-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.16);
    background: linear-gradient(135deg, #fff0fa, #f4edff);
}

.answer-button.correct {
    background: #d9ffe3;
    color: #176b2c;
}

.answer-button.wrong {
    background: #ffe1e1;
    color: #9b1c1c;
}

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

.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);
}

.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;
}

.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);
}

.floating-share {
    left: 20px;
    right: auto;
}

.share-menu {
    left: 20px;
    right: auto;
}

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

    .tool-page-hero h1 {
        font-size: 34px;
    }

    .tool-page-hero p {
        font-size: 18px;
    }

    .game-box {
        padding: 22px;
        margin: 28px auto;
    }

    .clue-box {
        font-size: 19px;
    }

    .answer-grid {
        grid-template-columns: 1fr;
    }

    .answer-button {
        font-size: 20px;
        min-height: 64px;
    }

    .generator-buttons button,
    .generator-buttons a {
        font-size: 15px;
        padding: 10px 15px;
    }
}
