:root {
    --bg-light: #94deff;
    --app-blue: #32a1f8;
    --panel-bg: #fff;
    --border-lite: #b9e0f5;
    --text-dark: #124b6b;
    --btn-shadow: 0 4px 0px rgba(0, 0, 0, 0.15);
}

body {
    background-color: var(--bg-light);
    font-family: 'Nunito', sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    /* Prevent page scroll */
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.background-scenery {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(180deg, #6ecbf5 0%, #b5eaff 60%);
}

.background-scenery::after {
    content: '';
    position: absolute;
    bottom: -10vh;
    width: 120%;
    left: -10%;
    height: 35vh;
    background: #64d14b;
    border-radius: 50% 50% 0 0;
    box-shadow: inset 0 20px 0 #7ee060;
}

.clouds {
    position: absolute;
    background: white;
    border-radius: 50px;
    opacity: 0.9;
}

.cloud-1 {
    top: 10%;
    left: 15%;
    width: 120px;
    height: 40px;
    box-shadow: 20px 10px 0 10px white, -10px 5px 0 5px white;
}

.cloud-2 {
    top: 20%;
    right: 20%;
    width: 150px;
    height: 50px;
    box-shadow: 30px 15px 0 15px white, -15px 10px 0 10px white;
}

.cloud-3 {
    top: 5%;
    left: 60%;
    width: 80px;
    height: 25px;
    box-shadow: 10px 5px 0 5px white;
}

.app-container {
    max-width: 1300px;
    width: 95%;
    margin: 15px auto 5px;
    background: var(--app-blue);
    border-radius: 40px;
    /* Increased radius for smoother look */
    padding: 20px 25px 30px;
    /* More bottom padding for corner safety */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), inset 0 5px 0 rgba(255, 255, 255, 0.3);
    border: 4px solid #1474be;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    overflow: hidden;
    /* Re-enabled with better internal height management */
    box-sizing: border-box;
}

.app-header {
    background: #2a9bf5;
    color: white;
    border-radius: 25px;
    padding: 0px 25px;
    /* Thinner header */
    border: 3px solid #1474be;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 70px;
    /* Fixed height for consistency */
    position: relative;
}

.header-left-side {
    position: relative;
    padding-left: 200px;
    /* Make space for overlapping logo */
}

.cloud-logo {
    position: absolute;
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    top: -5px;
    left: 0px;
    /* Positioned left */
    transform: scale(0.9);
    transform-origin: top left;
}

.cloud-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: drop-shadow(0px 4px 0px rgba(0, 0, 0, 0.15));
}

.bubble {
    position: absolute;
    background: #c3e8ff;
    border: 3px solid #1474be;
    border-radius: 50%;
}

.bubble.b1 {
    width: 70px;
    height: 70px;
    left: 10px;
    top: 20px;
}

.bubble.b2 {
    width: 90px;
    height: 90px;
    left: 45px;
    top: -5px;
}

.bubble.b3 {
    width: 80px;
    height: 80px;
    left: 105px;
    top: -10px;
}

.bubble.b4 {
    width: 75px;
    height: 75px;
    right: 15px;
    top: 15px;
}

.bubble.b5 {
    width: 60px;
    height: 60px;
    right: 45px;
    bottom: 5px;
}

.bubble.b6 {
    width: 65px;
    height: 65px;
    left: 40px;
    bottom: 0px;
}

.bubble.center-fill {
    width: 160px;
    height: 60px;
    left: 40px;
    top: 25px;
    border-radius: 30px;
    border: none;
}

/* Masking borders */
.bubble::after {
    content: '';
    position: absolute;
    background: #c3e8ff;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    z-index: 2;
}

.bubble.center-fill::after {
    border-radius: 30px;
}

.logo-text-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(-2deg);
}

.draw-text {
    font-size: 38px;
    font-weight: 900;
    line-height: 0.8;
    display: flex;
    letter-spacing: -1px;
    position: relative;
}

.draw-text span {
    text-shadow: -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, 0px 4px 0px rgba(0, 0, 0, 0.3);
}

.l-d {
    color: #ff5722;
    transform: translateY(2px) rotate(-3deg);
}

.l-r {
    color: #ff9800;
    transform: translateY(-2px) rotate(2deg);
}

.l-a {
    color: #ff5722;
    transform: translateY(1px) rotate(-1deg);
}

.l-w {
    color: #ff9800;
    transform: translateY(-1px) rotate(4deg);
}

.logo-brush {
    position: absolute;
    right: -35px;
    top: -5px;
    width: 40px;
    transform: scaleX(-1) rotate(-15deg);
    /* Flipped direction to match new reference */
    filter: drop-shadow(-2px 2px 0px #333);
}

.play-text {
    font-size: 32px;
    font-weight: 900;
    line-height: 0.8;
    display: flex;
    letter-spacing: 0px;
    margin-top: 5px;
}

.play-text span {
    text-shadow: -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333, 2px 2px 0 #333, 0px 3px 0px rgba(0, 0, 0, 0.3);
}

.l-amp {
    color: #fff;
    font-size: 24px;
    margin-right: 5px;
    transform: translateY(5px);
}

.l-p {
    color: #8bc34a;
    transform: translateY(-1px) rotate(-2deg);
}

.l-l {
    color: #8bc34a;
    transform: translateY(2px) rotate(1deg);
}

.l-a2 {
    color: #8bc34a;
    transform: translateY(-2px) rotate(-3deg);
}

.l-y {
    color: #8bc34a;
    transform: translateY(1px) rotate(2deg);
}

.main-nav-container {
    background: #0f86e8;
    border-radius: 30px;
    padding: 4px 15px;
    border: 3px solid #005a9c;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.2);
}

.main-nav .nav-link-btn {
    background: transparent;
    border: none;
    color: white;
    font-weight: 900;
    font-size: 15px;
    padding: 6px 16px;
    margin: 0 2px;
    border-radius: 20px;
    transition: 0.2s;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
}

.main-nav .nav-link-btn:hover {
    transform: scale(1.05);
    color: #ffeb3b;
}

.main-nav .nav-link-btn.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Mascot Badge */
.header-right-side {
    position: relative;
}

.mascot-badge {
    background: #eef8ff;
    padding: 6px 15px 6px 60px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    position: relative;
}

.mascot-circle {
    position: absolute;
    left: -25px;
    bottom: -10px;
    width: 80px;
    height: 80px;
    background: #ffeb3b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid #f9a825;
    /* Gold/Orange border */
    overflow: hidden;
    /* Crucial: This keeps everything inside the circle */
}

.mascot-circle img {
    height: 75px;
    /* Slightly smaller than container to prevent edge clipping issues */
    width: 75px;
    border-radius: 50%;
    /* Trims the square edges of the API images */
    transform-origin: center center;
    margin-bottom: 0px;
    animation: floatAvatar 3s infinite ease-in-out;
}

.mascot-greeting {
    line-height: 1.1;
    font-size: 13px;
    font-weight: 800;
    color: #124b6b;
}

@keyframes floatAvatar {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

.main-workspace {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
    padding-bottom: 5px;
    /* Tiny gap to stay clear of container corner */
}

.main-workspace>div {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.side-panel {
    background: var(--panel-bg);
    border-radius: 20px;
    border: 4px solid var(--border-lite);
    padding: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent content from bleeding out of individual panels */
}

.panel-title {
    text-align: center;
    font-weight: 900;
    color: #1a6f9e;
    text-shadow: 1px 1px 0 #fff;
    letter-spacing: 1px;
    font-size: 22px;
    flex-shrink: 0;
}

/* Left Panel */
.left-panel {
    display: flex;
    flex-direction: column;
}

.galleries-container {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 300px);
    /* More conservative height to prevent layout push */
    padding-right: 6px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #b9e0f5 #f0f8ff;
}

/* Custom Scrollbar for side panel */
.galleries-container::-webkit-scrollbar {
    width: 6px;
}

.galleries-container::-webkit-scrollbar-track {
    background: #f0f8ff;
    border-radius: 10px;
}

.galleries-container::-webkit-scrollbar-thumb {
    background: #b9e0f5;
    border-radius: 10px;
}

.galleries-container::-webkit-scrollbar-thumb:hover {
    background: #85cbf2;
}

.category-title {
    text-align: center;
    position: relative;
    margin-bottom: 12px;
    color: #499bc9;
    font-weight: 800;
    font-size: 14px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: #b9e0f5;
    z-index: 1;
}

.category-title span {
    background: var(--panel-bg);
    padding: 0 10px;
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

.picture-btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 3px solid #eee;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 10px 5px;
    color: #444;
    position: relative;
    box-shadow: 0 4px 0 #eee;
}

.picture-btn:hover:not(.locked) {
    border-color: #32a1f8;
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #32a1f822;
}

.picture-btn.active {
    border-color: #32a1f8;
    background-color: #eef9ff;
    box-shadow: 0 4px 0 #1474be;
    transform: translateY(1px);
}

.picture-btn img,
.picture-btn svg {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
}

.picture-btn i {
    font-size: 40px;
    margin-bottom: 5px;
    display: block;
}

.picture-btn span {
    font-size: 12px;
    font-weight: 800;
    color: #333;
}

/* Premium Locked Items */
.picture-btn.locked {
    cursor: not-allowed;
    background: #f8f9fa;
}

.picture-btn.locked>* {
    opacity: 0.5;
    filter: grayscale(100%);
}

.picture-btn.locked::after {
    content: '';
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"%3E%3Cpath fill="%23ffd54f" d="M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"/%3E%3Cpath fill="none" stroke="%23000" stroke-width="15" d="M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"/%3E%3C/svg%3E') center/contain no-repeat;
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.5));
}

/* Center Panel */
.canvas-wrapper {
    background: transparent;
    border-radius: 25px;
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
    min-height: 250px;
    max-height: calc(100vh - 320px);
    /* Increased from 380px to utilize more space */
    flex: 1;
}

.canvas-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: conic-gradient(from 0deg, #ff416c, #ff9e00, #ffeb3b, #4caf50, #2196f3, #9c27b0, #ff416c);
    border-radius: 35px 30px 40px 25px / 25px 35px 30px 40px;
    z-index: -1;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.canvas-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

#drawingCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

#drawingCanvas.cursor-brush {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="%23ff9800" d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3m13.71-9.37l-1.34-1.34a2 2 0 0 0-2.83 0L9 10.83l4.17 4.17 7.54-7.54a2 2 0 0 0 0-2.83z"/></svg>') 0 32, crosshair;
}

#drawingCanvas.cursor-eraser {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="%23f44336" d="M15.14 3c-.51 0-1.02.2-1.41.59L2.59 14.73c-.78.77-.78 2.04 0 2.83L5.03 20h7.66l8.72-8.73c.79-.77.79-2.04 0-2.83l-4.85-4.85c-.39-.39-.9-.59-1.42-.59M17 18v2h5v-2h-5z"/></svg>') 0 32, crosshair;
}

.reference-box {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    border: 3px dashed #b9e0f5;
    border-radius: 15px;
    padding: 10px;
    width: 110px;
    /* Reduced from 140px for more professional look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
    transform: rotate(-3deg);
    transition: 0.3s;
}

.reference-title {
    font-size: 11px;
    font-weight: 900;
    color: #ff9800;
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.reference-box img {
    width: 100%;
    height: auto;
    display: block;
}

#outlineImage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    max-height: 85%;
    pointer-events: none;
    transition: 0.3s;
    user-select: none;
    mix-blend-mode: multiply;
}

.tools-panel {
    background: #eaf6fc;
    border-radius: 20px;
    border: 4px solid #c7e8fa;
    padding: 6px 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
    /* Space between canvas and tools */
}

.tool-btn {
    text-align: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 12px;
    transition: 0.2s;
    color: #5d90a8;
    border: 2px solid transparent;
}

.tool-btn .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.tool-btn span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.7);
}

.tool-btn.active {
    background: white;
    color: #ff5e00;
    border-color: #ff9800;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.tool-btn.active .icon-circle {
    transform: scale(1.1);
}

.color-palette {
    gap: 6px;
    flex: 1;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 8px 12px;
    border-radius: 30px;
    margin: 0 5px;
    border: 2px solid #e1f1fa;
    max-width: 350px;
    /* Keep it compact */
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid white;
    cursor: pointer;
    transition: 0.15s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.color-swatch.active {
    transform: scale(1.3);
    outline: 3px solid #ffca28;
    outline-offset: 1px;
    z-index: 10;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #ffca28;
    color: #9c6c00;
    font-size: 16px;
    box-shadow: 0 4px 0 #cc9b14;
    cursor: pointer;
    transition: 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 transparent;
}

/* Right Panel */
/* Action Buttons Grid Layout */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    padding: 0 5px;
}

.action-btn {
    border: none;
    border-radius: 18px;
    padding: 10px 8px;
    /* Slightly tighter */
    color: white;
    font-weight: 900;
    font-size: 13px;
    transition: all 0.2s;
    box-shadow: 0 5px 0px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    letter-spacing: 0.5px;
    min-height: 60px;
    /* Ensure consistent height */
}

.action-btn:active {
    transform: translateY(4px) !important;
    box-shadow: 0 0 0 transparent !important;
}

.btn-swim {
    background: #3fe2ff;
    border: 3px solid #1baac4;
    box-shadow: 0 5px 0 #1baac4;
    color: #0d4b57;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-jump {
    background: #ff9800;
    border: 3px solid #d87e00;
    box-shadow: 0 5px 0 #d87e00;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-swim:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #1baac4;
}

.btn-jump:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #d87e00;
}

.btn-save {
    background: #8bc34a;
    border: 3px solid #629629;
    box-shadow: 0 5px 0 #629629;
    font-size: 16px;
}

.btn-share {
    background: #c553d8;
    border: 3px solid #942b9c;
    box-shadow: 0 5px 0 #942b9c;
    font-size: 16px;
    flex-direction: row;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #629629;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #942b9c;
}

@keyframes swim {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: translate(-10px, -10px) rotate(-5deg);
    }

    50% {
        transform: translate(10px, 10px) rotate(5deg);
    }

    75% {
        transform: translate(10px, -10px) rotate(-2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.animating-swim {
    animation: swim 2s infinite ease-in-out;
}

@keyframes jump {

    0%,
    100% {
        transform: translateY(0);
    }

    20% {
        transform: scaleY(0.9);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }

    80% {
        transform: translateY(0) scaleY(0.9);
    }
}

.animating-jump {
    animation: jump 1s ease-in-out;
}

.animating-swim {
    animation: swim 2s ease-in-out;
}

.footer {
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 12px;
}

@media (max-width: 992px) {
    .app-container {
        height: auto;
        padding: 15px;
    }

    .cloud-logo {
        width: 160px;
        transform: scale(0.8);
        transform-origin: top left;
    }

    .header-left-side {
        padding-left: 155px;
    }
}

@media (max-width: 768px) {

    /* ===================== BODY & APP LAYOUT ===================== */
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .app-container {
        height: auto !important;
        min-height: 90vh !important;
        /* Restore presence to avoid empty screen */
        margin: 5px auto 10px;
        padding: 10px;
        border-radius: 12px;
        flex: 1 !important;
        overflow: visible !important;
        /* Ensure mobile tools never hide */
    }

    /* Balanced layout on mobile - allow items to fill enough space */
    .row.h-100,
    .col-md-4,
    .col-md-3,
    .col-md-8,
    .main-workspace {
        height: auto !important;
        min-height: unset !important;
        flex: 1 !important;
    }

    .app-header {
        height: auto;
        min-height: 50px;
        padding: 2px 10px;
        margin-bottom: 8px !important;
        border-radius: 10px;
        flex: none !important;
        position: relative;
    }

    .main-nav-container {
        display: none !important;
    }

    /* Premium Cloud Logo for Mobile */
    .cloud-logo {
        position: absolute;
        width: 200px;
        height: 80px;
        transform: scale(0.42);
        transform-origin: top left;
        top: -9px;
        /* Nudged higher up as requested */
        left: 5px;
        background: none !important;
        /* Remove the pill bg */
        border: none !important;
        box-shadow: none !important;
        padding: 0;
    }

    /* Re-enable cloud look on mobile but scaled */
    .cloud-bg,
    .bubble {
        display: block !important;
    }

    .header-left-side {
        padding-left: 85px;
        margin-bottom: 20px;
    }

    .draw-text {
        font-size: 26px;
    }

    .play-text {
        font-size: 14px;
    }

    .mascot-badge {
        padding: 2px 8px 2px 32px;
        height: 35px;
        display: flex;
        align-items: center;
    }

    .mascot-circle {
        width: 45px;
        height: 45px;
        left: -12px;
        bottom: -5px;
    }

    .mascot-circle img {
        width: 40px;
        height: 40px;
    }

    .mascot-greeting {
        font-size: 9px;
        line-height: 1.1;
    }

    /* ===================== LEFT PANEL = HORIZONTAL SCROLL GALLERY ===================== */
    .left-panel {
        flex-direction: column !important;
    }

    .panel-title {
        font-size: 14px;
        margin-bottom: 4px !important;
    }

    .galleries-container {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: none !important;
        gap: 8px;
        padding: 2px 2px 6px;
        scrollbar-width: none;
    }

    .galleries-container::-webkit-scrollbar {
        display: none;
    }

    .galleries-container .category {
        display: flex !important;
        flex-direction: column !important;
        flex-shrink: 0;
        margin-top: 0 !important;
        border-left: 2px solid #b9e0f5;
        padding-left: 8px;
    }

    .galleries-container .category:first-child {
        border-left: none;
        padding-left: 0;
    }

    .galleries-container .category-title {
        font-size: 9px;
        font-weight: 900;
        margin-bottom: 4px;
        white-space: nowrap;
    }

    .galleries-container .row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px;
        margin: 0 !important;
    }

    .galleries-container .col-6 {
        width: auto !important;
        flex: none !important;
        padding: 0 !important;
    }

    .picture-btn {
        width: 65px;
        padding: 5px 2px;
        border-radius: 10px;
    }

    .picture-btn img,
    .picture-btn svg {
        width: 30px;
        height: 30px;
        margin-bottom: 2px;
    }

    .picture-btn i {
        font-size: 24px;
        margin-top: 2px;
    }

    .picture-btn span {
        font-size: 8px;
    }

    /* ===================== CANVAS & TOOLS ===================== */
    .canvas-wrapper {
        min-height: 200px;
    }

    .reference-box {
        width: 65px;
        top: 5px;
        right: 5px;
        padding: 2px;
        border-width: 1px;
    }

    .reference-title {
        font-size: 7px;
    }

    /* Premium Sleek Tools Panel */
    .tools-panel {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 6px 10px;
        justify-content: center;
        align-items: center;
        background: #f0f8ff;
        border: 3px solid #c7e8fa;
        border-radius: 50px;
        /* Pill shape */
        margin-top: 8px !important;
    }

    .tool-btn {
        padding: 0;
        min-width: 44px;
        height: 44px;
        border-radius: 50%;
        /* Perfect circles */
        background: white;
        border: 2px solid #eee;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .tool-btn.active {
        border-color: #2a9bf5;
        background: #eaf6fc;
        transform: scale(1.05);
    }

    .tool-btn .icon-circle {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin: 0;
    }

    .tool-btn span {
        display: none;
    }

    /* Hide text on mobile for premium look */

    .color-palette {
        flex: 1;
        margin: 0 4px;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 2px 0;
        gap: 5px;
        min-width: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .color-palette::-webkit-scrollbar {
        display: none;
    }

    .color-swatch {
        width: 24px;
        height: 24px;
        border: 2px solid white;
        flex-shrink: 0;
        /* Crucial for horizontal scroll */
    }

    .history-tools {
        gap: 4px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 50%;
    }

    /* Fix vertical stretching / white space */
    .side-panel,
    .right-panel {
        height: auto !important;
        min-height: unset !important;
        flex: none !important;
    }

    /* Stacking Layout for Mobile */
    .actions-grid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 6px !important;
        margin-bottom: 8px !important;
    }

    .right-panel {
        display: flex !important;
        flex-direction: column !important; /* STACK ACTION ROW ABOVE SCORE */
        justify-content: center !important;
        align-items: center !important;
        padding: 10px !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
        background: rgba(255, 255, 255, 0.4) !important;
        border-radius: 20px !important;
    }

    /* Make wrapper flex column */
    .right-panel>div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .right-panel h5,
    .right-panel .panel-header {
        display: none !important;
    }

    .action-btn {
        padding: 4px 0 !important;
        font-size: 1px !important;
        color: transparent !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
        height: 54px !important; /* Standardized height */
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        border-width: 2px !important;
        box-shadow: 0 3px 0px rgba(0, 0, 0, 0.2) !important;
    }

    /* Only show icons */
    .action-btn i {
        font-size: 20px !important;
        margin: 0 !important;
        color: white !important;
        display: inline-block !important;
    }

    /* Specific overrides for swim/jump multi-icons to ensure they are visible */
    .action-btn .d-flex {
        display: flex !important;
        margin-bottom: 0 !important;
        gap: 4px;
        font-size: 14px;
    }

    .btn-swim,
    .btn-jump {
        height: 54px !important;
        flex: 1 !important;
    }

    /* Small Adjustments for footer */
    .footer {
        margin-top: 8px !important;
        opacity: 0.8;
    }
}