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

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

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

.drawing-starter {
    margin: 0 auto 18px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #f4edff, #fff0fa);
    color: #5b4fd6;
    font-size: 72px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.1);
}

.challenge-rule {
    max-width: 680px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    color: #5b4fd6;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.drawing-canvas-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f4edff, #fff0fa);
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
}

#drawingCanvas {
    width: 100%;
    height: 360px;
    display: block;
    background: #fff;
    border-radius: 16px;
    cursor: crosshair;
    touch-action: none;
}

.canvas-tools {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.canvas-tools label {
    font-weight: bold;
    color: #5b4fd6;
}

.canvas-tools input[type="color"] {
    width: 48px;
    height: 38px;
    padding: 3px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.canvas-tools input[type="range"] {
    width: 120px;
}

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

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

    .drawing-prompt-box {
        padding: 14px;
        font-size: 17px;
    }

    .drawing-starter {
        min-height: 90px;
        font-size: 56px;
        border-radius: 18px;
    }

    .challenge-rule {
        padding: 12px;
        font-size: 15px;
    }

    .drawing-canvas-wrap {
        padding: 8px;
        border-radius: 16px;
    }

    #drawingCanvas {
        height: 280px;
        border-radius: 12px;
    }

    .canvas-tools {
        gap: 8px;
    }

    .canvas-tools input[type="range"] {
        width: 100px;
    }

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

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

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