/* Drawing Wall - Premium Redesign */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-0: #050814;
    --accent: #f472b6;
    --accent-glow: rgba(244, 114, 182, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: radial-gradient(circle at 50% 0%, rgba(244, 114, 182, 0.12), transparent 50%), var(--bg-0);
    color: #fff;
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Navigation */
.game-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(10, 15, 37, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-home:hover {
    background: rgba(244, 114, 182, 0.2);
    border-color: rgba(244, 114, 182, 0.4);
}

.nav-icon {
    font-size: 18px;
}

.nav-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-spacer {
    width: 100px;
}

/* Tool Bar */
.tool-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.tool-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.slider {
    width: 100px;
    accent-color: var(--accent);
}

.tool-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 40px;
}

/* Color Bar */
.color-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 0 20px 16px;
    flex-wrap: wrap;
}

.color-presets {
    display: flex;
    gap: 8px;
}

.color-preset {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-preset:hover {
    transform: scale(1.15);
}

.color-preset.active {
    border-color: #fff;
    box-shadow: 0 0 10px var(--accent-glow);
}

.color-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

/* Buttons */
.btn-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-rainbow {
    background: linear-gradient(90deg, #f87171, #fbbf24, #4ade80, #22d3ee, #a78bfa, #f472b6);
    color: #fff;
}

.btn-xl {
    padding: 14px 28px;
    font-size: 16px;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 16px;
    flex-wrap: wrap;
}

/* Game Main */
.game-main {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.canvas-container {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 25, 50, 0.95), rgba(10, 15, 35, 0.98));
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    overflow: hidden;
}

#drawing-canvas {
    background: #fff;
    border-radius: 14px;
    display: block;
    max-width: 100%;
    height: auto;
    cursor: crosshair;
}

/* Overlay */
.overlay-panel {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 25, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    z-index: 50;
}

.overlay-panel.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 32px;
}

.overlay-emoji {
    font-size: 56px;
    margin-bottom: 14px;
}

.overlay-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overlay-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 12px;
}

.overlay-tip {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px;
}

/* Help Section */
.help-section {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.help-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.hi {
    font-size: 20px;
}

/* Recommendations */
.recommendations-section {
    max-width: 700px;
    margin: 48px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.game-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-card-mini:hover {
    background: rgba(244, 114, 182, 0.12);
    border-color: rgba(244, 114, 182, 0.4);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 28px;
}

.card-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* Responsive */
@media (max-width: 860px) {
    #drawing-canvas {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 500px) {
    .tool-bar {
        gap: 12px;
    }

    .tool-group {
        padding: 10px 14px;
    }

    .slider {
        width: 70px;
    }

    .nav-spacer {
        display: none;
    }
}

/* Legacy */
.header,
.instructions,
.tool-panel {
    display: none;
}

.container {
    display: contents;
}