@font-face {
    font-family: 'ag5';
    src: url('./assets/AG5.ttf') format('truetype');
}

@font-face {
    font-family: 'frutiger';
    src: url('./assets/Frutiger.ttf') format('truetype');
}

@font-face {
    font-family: 'cute';
    src: url('./assets/CutieTopRegular-VArx.ttf') format('truetype');
}

canvas {
    width: 100vw;
    height: 100vh;
    display: none; /* Initially hidden to prevent flash */
    position: absolute;
}
body {
    margin: 0;
    overflow: hidden;
    background: black;
    /* font-family: 'ag5'; */
}
#labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.label {
    position: absolute;
    transform: translate(-50%, -100%);
    color: white;
    font-family: 'times new roman';
    font-size: 14px;
    text-shadow: 0 0 3px black, 0 0 3px black, 0 0 3px black;
    white-space: nowrap;
    transition: opacity 0.3s;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}
.label::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 1px;
    height: 15px;
    background: white;
    box-shadow: 0 0 3px black;
}
#streamInfo {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    color: rgb(133, 133, 133);
    font-family: 'times new roman';
    z-index: 1000;
    align-items: center;
    gap: 12px;
}
.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* background: rgba(0, 0, 0, 0.7); */
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}
.live-dot {
    width: 8px;
    height: 8px;
    margin-left: -8px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
.live-dot.no-animation {
    animation: none;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
.stream-time, #date {
    /* background: rgba(0, 0, 0, 0.7); */
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.stream-time {
    font-family: 'cute';
}
.now-playing {
    /* background: rgba(0, 0, 0, 0.7); */
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}
#playOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
    /* cursor: pointer; */
    z-index: 1001;
    font-family: 'times new roman';
    overflow: hidden;
}

/* Welcome Screen - positioned on top */
#welcomeScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    z-index: 20;
    /* display: none; */
}

#overlayLeft, #overlayRight {
    position: absolute;
    top: 0;
    height: 50%;
    width: 100%;
    /* background: black; */
    background: url('./assets/201.jpg');
    /* background: url('./gmbg.gif'); */
    /* background: url('./bck-grid.gif'); */
    transition: transform 1.5s ease-in;
}

#overlayLeft {
    top: 0;
}

#overlayRight {
    top: 50%;
}

#welcomeScreen.hidden #overlayLeft {
    transform: translateY(-100%);
}

#welcomeScreen.hidden #overlayRight {
    transform: translateY(100%);
}

#welcomeScreen.hidden #passwordForm {
    opacity: 0;
}

#welcomeScreen.hidden {
    pointer-events: none;
}

/* Character Selection - positioned behind welcome screen */
#characterSelection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Initially hidden to prevent flash */
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    z-index: 10;
    color: white;
    font-family: 'times new roman';
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

#characterOverlayLeft, #characterOverlayRight {
    position: absolute;
    top: 0;
    height: 50%;
    width: 100%;
    background: url('./assets/gmbg.gif');
    transition: transform 2.4s ease-in .5s;
    z-index: 1;
}

#characterOverlayLeft {
    top: 0;
}

#characterOverlayRight {
    top: 50%;
}

#characterSelection.hidden #characterOverlayLeft {
    transform: translateY(-100%);
}

#characterSelection.hidden #characterOverlayRight {
    transform: translateY(100%);
}

#characterForm {
    position: relative;
    z-index: 10;
    transition: opacity 0.5s ease;
    width: 100%;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: scroll;
    max-height: 100%;
}

#characterForm.animate {
    animation: blink .5s forwards;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#characterSelection.hidden #characterForm {
    opacity: 0;
}

#cubeStage {
    /* width: 400px; */
    /* filter: brightness(0.5); */
}

.current-event {
    
}
#passwordForm {
    /* background: rgb(0, 0, 0); */
    padding: 30px;
    /* backdrop-filter: blur(5px); */
    text-align: center;
    /* border: 4px ridge gray; */
    z-index: 10;
    position: relative;
    transition: opacity 0.5s ease;
}

#passwordForm.animate {
    animation: blink .5s forwards;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes blink {
    0% {transform: scaleY(1) scaleX(1);}
    30% {transform: scaleY(0.01) scaleX(1); filter: blur(10px) brightness(10.5);}
    100% {transform: scaleY(0) scaleX(0);
    filter: blur(10px) brightness(10.5);}
}

#enterButton:hover {
    /* background: rgba(255,255,255,0.3); */
}
#passwordMessage {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
#playOverlay p {
    font-family: 'cute';
    font-size: 18px;
    margin: 0;
    text-align: center;
}

/* Add particles for playful effect during transition */
.audio-particle {
    display: none;
}

/* Remove the ripple animation */
@keyframes ripple {
    0% { transform: scale(1); filter: none; }
    100% { transform: scale(1); filter: none; }
}

.canvas-ripple {
    animation: none;
}

#playOverlay.hidden #passwordForm {
    opacity: 0;
}

.old-hr {
    width: 100%;
    height: 1px;
    background: rgb(0, 0, 0);
    border-top: 1px solid rgb(55, 55, 55);
    margin: 10px 0;
}

.event-time {
    font-size: 18px;
    margin: 0;
    text-align: center;
    /* color: rgb(255, 178, 178); */
    /* font-family: 'ag5', monospace; */
    /* animation: concert 1.5s infinite alternate ease-in-out; */
}

@keyframes concert {
    0% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Event Calendar Styles */
.event-calendar {
    margin: 20px 0;
    font-family: 'Arial Narrow';
    font-size: 12px;
    /* opacity: 0.8; */
}

.calendar-title {
    font-size: 12px; /* Reduced from 14px */
    color: #ffffff; /* Dimmed from #ffff00 */
    background-color: #000000;
    text-shadow: 1px 1px 0px black;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #666;
    background: #0000ff;
    /* background: rgba(192, 192, 192, 0.3);  */
    /* font-family: 'MS Sans Serif', sans-serif; */
    font-size: 11pt; /* Reduced from 11px */
}

.calendar-table th {
    /* background: rgba(0, 128, 255, 0.6); */
    /* color: #ccc;  */
    padding: 3px 4px; /* Reduced padding */
    border: 1px solid #555; /* Subtle borders */
    font-weight: normal; /* Less bold */
    text-align: center;

    /* font-size: 12pt; Smaller header text */
}

.calendar-table td {
    padding: 2px 4px; /* Reduced padding */
    border: 1px solid #444; /* Subtle borders */
    /* background: rgba(255, 255, 255, 0.1); */
    vertical-align: top;
}

.calendar-table tr:nth-child(even) td {
    /* background: rgba(240, 240, 240, 0.05); */
}

.event-date {
    font-weight: normal; /* Less bold */
    /* color: #999; */
    white-space: nowrap;
    /* font-size: 10px; */
}

.event-name {
    /* color: #666; */
    /* font-size: 10px; */
}

.event-type {
    /* color: #555; */
    font-style: italic;
    /* font-size: 10px; Even smaller */
}

.calendar-note {
    font-size: 8px; /* Reduced from 10px */
    color: #555; /* Dimmed */
    margin-top: 6px; /* Reduced spacing */
    font-style: italic;
}

/* Enhanced main content hierarchy - moved after base styles to increase specificity */
body h1 {
    font-size: 48px; /* Much larger title */
    margin: 20px 0;
    text-shadow: 3px 3px 0px black, -1px -1px 0px black, 1px -1px 0px black, -1px 1px 0px black;
    font-weight: bold;
    letter-spacing: 2px;
}

body .event-status {
    margin: 15px 0;
}

body .event-time {
    font-size: 24px; /* Larger current event text */
    margin: 10px 0;
    text-align: center;
    /* color: #ffff88; Brighter yellow */
    text-shadow: 2px 2px 0px black;
    font-weight: bold;
}

body .event-artist {
    font-size: 2em; /* Larger artist name */
    margin: 8px 0;
    color: #ffffff; /* Bright magenta */
    text-decoration: underline;
    text-shadow: 2px 2px 0px black;
    font-weight: bold;
    /* font-family: 'ag5', monospace; */
}

body .event-title {
    font-size: 1.2em; /* Larger event title */
    margin: 8px 0;
    color: #00ffff; /* Bright cyan */
    text-shadow: 1px 1px 0px black;
}

body #enterButton {
    border-radius: 0;
    padding: 2px 20px;
    border: 1px outset #fff; 
    outline: 1px solid #000;
    font-size: 20px; /* Larger button text */
    cursor: pointer;
    transition: background 0.3s;
    margin: 20px 0;
}

body #enterButton:active {
    transform: translateY(0px);
    border: 1px inset #c0c0c0;
}

/* Mascot styles */
#mascot {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-140px, 0) scale(0.8); /* Center and offset left for chat bubble */
    width: 150px;
    height: auto;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

#mascot.show {
    opacity: 1;
    transform: translate(-50%, -50%) translate(-140px, 0) scale(1);
}

/* Modal overlay for blueby popup */
#bluebyOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(3px);
}

#bluebyOverlay.show {
    display: block;
}

#chatBubble {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(140px, 0) scale(0.8);
    width: 500px; /* Increased from 450px */
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    display: none;
    z-index: 10002;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#chatBubble.show {
    opacity: 1;
    transform: translate(-50%, -50%) translate(140px, 0) scale(1);
}

#chatBubble .chat-header {
    background: blue;
    color: white;
    padding: 2px 6px;
    /* margin: -8px -8px 4px -8px; */
    font-size: 11px;
    font-family: Arial Narrow, sans-serif;
    font-weight: bold;
}

#chatBubble .chat-content {
    background: blue;
    color: white;
    border: 1px inset #c0c0c0;
    padding: 4px 8px 4px 4px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 180px; /* Increased from 160px */
    position: relative; /* Added for positioning child elements */
    padding-right: 70px; /* Added space for the mascot image */
}

#chatBubble .chat-content div {
    margin-bottom: 4px;
    box-sizing: border-box;
}

#chatBubble .chat-content div:last-child {
    margin-bottom: 0;
}

.tutorial-message .username {
    color: rgb(0, 255, 255);
    font-weight: bold;
}

.got-it-button {
    color: #000000;
    /* background-color: lightgray; */
    background-color: #d3d3d3;
    /* background-color: #0cbe28; */
    border: 3px outset gray;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin: 8px auto 0 auto;
    display: block;
    pointer-events: auto;
    border-radius: 0;
    min-width: 80px;
    /* text-transform: uppercase; */
    /* letter-spacing: 1px; */
}

.got-it-button:active {
    border: 2px inset #c0c0c0;
}

.chat-bubble-image {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 115px;
    width: auto;
    z-index: 4; /* Lowered from 1004 to appear within blue content area */
    pointer-events: none; /* Ensures clicks pass through the image */
}

/* Auto-hide animation */
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

#mascot.hide, #chatBubble.hide {
    animation: fadeOut 0.5s ease-out forwards;
}

/* 3D Spinning Cube for Performer Info */
.performer-cube-container {
    perspective: 1000px;
    margin: 20px 0;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.performer-cube {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: spinCube 8s infinite linear;
    
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgb(166, 166, 166);
    background: url(./assets/gmbg.gif) no-repeat center center;
    /* border: 2px solid #0080ff; */
    backdrop-filter: blur(2px);
    text-shadow: 2px 2px 0px black;
    padding: 5px;
    box-sizing: border-box;
}

.cube-face.front {
    transform: translateZ(50px);
}

.cube-face.back {
    transform: translateZ(-50px) rotateY(180deg);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(50px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(50px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}

@keyframes spinCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(0deg) rotateY(180deg); }
}

body .cube-artist {
    font-size: 12px;
    margin: 2px 0;
    color: #ff6aff;
    text-decoration: underline;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

body .cube-title {
    font-size: 10px;
    margin: 2px 0;
    color: #88ffff;
    font-style: italic;
    text-align: center;
    line-height: 1.1;
}

#myst {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    width: 200px;
    height: auto;
    filter: blur(1px);

    /* opacity: 0; */
    transition: opacity 0.5s ease-out;
}

#characterForm img {
    max-width: 400px;
    height: auto;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Logo responsive sizing */
    body h1 img {
        width: 90vw;
        /* max-width: 300px; */
        height: auto;
    }

    /* Table responsive styling - simple max-width approach */
    .calendar-table {
        width: 95%;
        max-width: 95%;
        font-size: 10px;
        overflow-x: auto;
        display: table;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-table th,
    .calendar-table td {
        padding: 4px 6px;
        font-size: 10px;
        white-space: nowrap;
    }

    /* Mascot adjustments for mobile */
    #mascot {
        width: 120px;
        transform: translate(-50%, -50%) translate(-100px, 0) scale(0.8);
    }
    
    #mascot.show {
        transform: translate(-50%, -50%) translate(-100px, 0) scale(1);
    }

    /* Stream info adjustments */
    #streamInfo {
        top: 10px;
        left: 10px;
        font-size: 12px;
        flex-wrap: wrap;
    }

    /* Button adjustments */
    body #enterButton {
        font-size: 16px;
        padding: 8px 16px;
    }

    /* Text size adjustments */
    body h1 {
        font-size: 32px;
        margin: 10px 0;
    }

    body .event-time {
        font-size: 18px;
    }

    body .event-artist {
        font-size: 2rem;
    }

    body .event-title {
        font-size: 14px;
    }

    /* Calendar container adjustments */
    .event-calendar {
        /* margin: 15px 0; */
        /* padding: 0 10px; */
        overflow-x: auto;
    }

    #usernameInput {
        max-width: 220px;
        font-size: 16px; /* Keep at 16px to prevent iOS auto-zoom */
        padding: 10px;
        min-height: 44px;
        border: 2px inset #e0e0e0; /* Lighter border */
        background: #f0f0f0; /* Lighter background */
    }

    /* Mobile responsive orb buttons */
    .orb-retro-button {
        width: 55px;
        height: 55px;
    }
    
    .orb-colors {
        grid-template-columns: repeat(3, 1fr); /* 3 columns instead of 4 on mobile */
        gap: 15px;
        max-width: 250px;
    }
    
    #characterSelection {
        overflow-x: hidden; /* Prevent horizontal scrolling on character page */
    }
    
    #usernameInput {
        width: 100%;
        max-width: 250px;
        font-size: 16px;
        padding: 8px;
        color: #666;
        text-align: center;
        border: 2px inset #e0e0e0;
        background: #f0f0f0;
        /* Touch-friendly improvements */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px; /* Minimum touch target size */
    }

    #chatContainer {
        width: calc(100vw - 20px);
        height: 200px;
        bottom: 0;
        right: 0;
        left: 0;
        margin: 0 10px 10px 10px;
        position: fixed;
        z-index: 1001;
    }
    
    .chat-reminder {
        bottom: 220px;
        right: 20px;
    }
    
    /* Make join button stick to bottom on mobile */
    #joinButton {
        position: fixed;
        bottom: 60px; /* Move up to make room for message below */
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        padding: 6px 16px;
        font-size: 12px;
        margin-top: 20px;
        min-width: 180px;
        font-family: 'MS Sans Serif', sans-serif;
    }
    
    /* Make character message appear below join button, flush with bottom */
    #characterMessage {
        position: fixed;
        bottom: 10px; /* Flush with bottom */
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        margin-top: 0;
        width: auto;
        max-width: calc(100vw - 40px);
        font-size: 12px; /* Slightly smaller for bottom placement */
    }
    
    /* Add bottom padding to character form to account for fixed elements */
    #characterForm {
        padding-bottom: 140px; /* More space for button + message */
    }
    
    #chatBubble {
        width: 90%;
        max-width: 400px;
        font-size: 12px;
        transform: translate(-50%, -50%) translate(0, 40px) scale(0.8);
    }
    
    #chatBubble.show {
        transform: translate(-50%, -50%) translate(0, 40px) scale(1);
    }
    
    #mascot {
        width: 120px;
        transform: translate(-50%, -50%) translate(0, -60px) scale(0.8);
    }
    
    #mascot.show {
        transform: translate(-50%, -50%) translate(0, -60px) scale(1);
    }
}

@media screen and (max-width: 480px) {
    #chatContainer {
        width: calc(100vw - 16px);
        height: 180px;
        bottom: 0;
        right: 0;
        left: 0;
        margin: 0 8px 8px 8px;
        position: fixed;
        z-index: 1001;
    }
    
    .chat-reminder {
        bottom: 200px;
        right: 12px;
    }
    
    #joinButton {
        position: fixed;
        bottom: 55px; /* Move up to make room for message below */
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        min-width: 160px;
        padding: 6px 14px;
        font-size: 11px;
        margin-top: 18px;
        font-family: 'MS Sans Serif', sans-serif;
    }
    
    #characterMessage {
        position: fixed;
        bottom: 8px; /* Flush with bottom */
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        margin-top: 0;
        width: auto;
        max-width: calc(100vw - 32px);
        font-size: 11px; /* Smaller for mobile */
    }
    
    #characterForm {
        padding-bottom: 130px; /* Space for button + message */
    }

    /* Extra small screens */
    body h1 img {
        width: 90vw;
        max-width: 90vw;
    }

    .calendar-table {
        font-size: 9px;
        width: 100%;
    }

    .calendar-table th,
    .calendar-table td {
        padding: 3px 4px;
        font-size: 12px;
    }

    #chatBubble {
        width: 95%;
        max-width: 350px;
        font-size: 12px;
        transform: translate(-50%, -50%) translate(0, 40px) scale(0.8);
    }
    
    #chatBubble.show {
        transform: translate(-50%, -50%) translate(0, 40px) scale(1);
    }
    
    #chatBubble .chat-content {
        font-size: 12px;
    }
    
    .got-it-button {
        padding: 4px 12px;
        font-size: 12px;
    }

    #mascot {
        width: 100px;
        transform: translate(-50%, -50%) translate(0, -60px) scale(0.8);
    }
    
    #mascot.show {
        transform: translate(-50%, -50%) translate(0, -60px) scale(1);
    }

    body h1 {
        font-size: 24px;
    }

    body .event-time {
        font-size: 16px;
    }

    body .event-artist {
        font-size: 2rem;
    }

    body .event-title {
        font-size: 1.2rem;
    }

    /* More aggressive padding for very small screens */
    .event-calendar {
        /* padding: 0 5px;/ */
    }

    #passwordForm {
        padding: 20px 15px;
    }

    .orb-retro-button {
        width: 50px;
        height: 50px;
    }
    
    .orb-colors {
        grid-template-columns: repeat(3, 1fr); /* Ensure 3 columns on smaller mobile too */
        gap: 12px;
        max-width: 220px;
    }
    
    #characterSelection {
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
}

/* Live Chat Styles */
#chatContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 250px;
    background: transparent;
    border: none;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

#chatContainer.show {
    display: flex;
}

#chatHeader {
    display: none;
}

#chatToggle {
    display: none;
}

#chatClose {
    display: none;
}

#chatMessages {
    flex: 1;
    background: transparent;
    border: none;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    font-size: 11px;
    line-height: 1.3;
    pointer-events: none;
    max-height: 200px;
    min-height: 200px;
    position: relative;
    /* Make messages start at bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Add fade effect at the top */
    mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 15%, black 30%, black 100%);
    -webkit-mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 15%, black 30%, black 100%);
}

#chatInputContainer {
    padding: 0;
    background: transparent;
    border: none;
    display: none; /* Hidden by default until tutorial is complete */
    gap: 4px;
    pointer-events: auto;
    margin-top: 4px;
}

#chatInputContainer.tutorial-complete {
    display: flex; /* Show after tutorial is complete */
}

#chatInput {
    flex: 1;
    padding: 4px 6px;
    font-size: 16px; /* Increased from 11px to prevent iOS auto-zoom */
    background: rgba(0, 0, 0, 0.6);

    /* background: lightgray; */
    color: white;
    border: 2px inset gray;
    outline: none;
}

#chatInput::placeholder {
    /* color: rgba(0, 0, 0, 0.9); */
    font-style: italic;
}

#chatSend {
    /* background: gray; */
    cursor: pointer;
    /* border: 2px outset gray; */
    border-radius: 0px;

    color: black;
}

#chatSend:hover {
    /* background: rgba(0, 0, 0, 0.6); */
}

#chatSend:active {
    /* background: rgba(0, 0, 0, 0.8); */
}

.chat-message {
    margin: 1px 0;
    word-wrap: break-word;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white;
    pointer-events: none;
    font-size: 10px;
    line-height: 1.2;
}

.chat-username {
    font-weight: bold;
    margin-right: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.chat-timestamp {
    font-size: 8px;
    color: #ccc;
    margin-left: 4px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.chat-system {
    color: #ffff88;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Chat input focus indicator */
#chatInput:focus {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Chat reminder when not focused */
.chat-reminder {
    position: fixed;
    bottom: 20px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffff88;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-family: 'MS Sans Serif', sans-serif;
    z-index: 999;
    display: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    opacity: 0.8;
}

/* Chat typing indicator */
.chat-typing {
    display: none;
}

/* Mobile responsive chat */
@media screen and (max-width: 768px) {
    #chatContainer {
        width: calc(100vw - 20px);
        height: 200px;
        bottom: 0;
        right: 0;
        left: 0;
        margin: 0 10px 10px 10px;
        position: fixed;
        z-index: 1001;
    }
    
    .chat-reminder {
        bottom: 220px;
        right: 20px;
    }
    
    /* Make join button stick to bottom on mobile */
    #joinButton {
        position: fixed;
        bottom: 60px; /* Move up to make room for message below */
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        padding: 6px 16px;
        font-size: 12px;
        margin-top: 20px;
        min-width: 180px;
        font-family: 'MS Sans Serif', sans-serif;
    }
    
    /* Make character message appear below join button, flush with bottom */
    #characterMessage {
        position: fixed;
        bottom: 10px; /* Flush with bottom */
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        margin-top: 0;
        width: auto;
        max-width: calc(100vw - 40px);
        font-size: 12px; /* Slightly smaller for bottom placement */
    }
    
    /* Add bottom padding to character form to account for fixed elements */
    #characterForm {
        padding-bottom: 140px; /* More space for button + message */
    }
    
    #chatBubble {
        width: 90%;
        max-width: 400px;
        font-size: 12px;
        transform: translate(-50%, -50%) translate(0, 40px) scale(0.8);
    }
    
    #chatBubble.show {
        transform: translate(-50%, -50%) translate(0, 40px) scale(1);
    }
    
    #mascot {
        width: 120px;
        transform: translate(-50%, -50%) translate(0, -60px) scale(0.8);
    }
    
    #mascot.show {
        transform: translate(-50%, -50%) translate(0, -60px) scale(1);
    }
}

.character-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.character-form h2 {
    font-size: 1.8rem;
    margin: 20px 0;
    color: #ffffff;
    text-align: center;
}

.character-form h3 {
    font-size: 1.6rem;
    margin: 20px 0 15px 0;
    color: #ffffff;
    text-align: center;
}

.username-section {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.username-section label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}

#usernameInput {
    width: 100%;
    max-width: 250px;
    font-size: 16px;
    border: 2px inset #e0e0e0; /* Lighter border */
    background: #f0f0f0; /* Lighter background */
    color: black;
    text-align: center;
    box-sizing: border-box;
    /* Touch-friendly improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#usernameInput:focus {
    outline: none;
    border: 2px inset #e0e0e0;
    background: #ffffff;
}

#usernameInput::placeholder {
    color: #888; /* Darker placeholder for better contrast */
}

.orb-selection {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.orb-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    justify-items: center;
    /* background: lightgray; */
    /* border: inset 2px #ffffff; */
    padding: 8px;
}

.orb-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    max-width: 80px;
    min-height: 60px;
    justify-content: center;
    /* Touch-friendly improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Define color variables for the retro buttons */
.orb-option[data-color="#ff4444"] {
    --orb-color: #ff4444;
    --orb-light: #ff7777;
    --orb-dark: #cc2222;
}

.orb-option[data-color="#44ff44"] {
    --orb-color: #44ff44;
    --orb-light: #77ff77;
    --orb-dark: #22cc22;
}

.orb-option[data-color="#4444ff"] {
    --orb-color: #4444ff;
    --orb-light: #7777ff;
    --orb-dark: #2222cc;
}

.orb-option[data-color="#ffff44"] {
    --orb-color: #ffff44;
    --orb-light: #ffff77;
    --orb-dark: #cccc22;
}

.orb-option[data-color="#ff44ff"] {
    --orb-color: #ff44ff;
    --orb-light: #ff77ff;
    --orb-dark: #cc22cc;
}

.orb-option[data-color="#44ffff"] {
    --orb-color: #44ffff;
    --orb-light: #77ffff;
    --orb-dark: #22cccc;
}

.orb-option[data-color="#ff8844"] {
    --orb-color: #ff8844;
    --orb-light: #ffaa77;
    --orb-dark: #cc5522;
}

.orb-option[data-color="#8844ff"] {
    --orb-color: #8844ff;
    --orb-light: #aa77ff;
    --orb-dark: #5522cc;
}

/* Retro glossy button style */
.orb-retro-button {
    width: 65px;
    height: 65px; /* Made bigger for desktop */
    border-radius: 50%;
    position: relative;
    margin: 0 auto 8px auto; /* Center the button */
    /* Outer dark border */
    border: 3px solid #333;
    /* Inner bright border */
    box-shadow: 
        inset 0 0 0 2px #ff8800,
        inset 0 0 0 3px var(--orb-dark),
        /* Glossy highlight */
        inset 0 8px 12px rgba(255, 255, 255, 0.4),
        /* Bottom shadow */
        inset 0 -8px 12px rgba(0, 0, 0, 0.3),
        /* Simple outer shadow - no glow */
        0 2px 6px rgba(0, 0, 0, 0.4);
    
    /* Main gradient background */
    background: radial-gradient(circle at center, 
        var(--orb-light) 0%, 
        var(--orb-color) 40%, 
        var(--orb-dark) 100%);
    
    transition: all 0.15s ease;
}

.orb-option:hover .orb-retro-button {
    transform: translateY(-1px);
    box-shadow: 
        inset 0 0 0 2px #ffaa00,
        inset 0 0 0 3px var(--orb-dark),
        inset 0 8px 12px rgba(255, 255, 255, 0.5),
        inset 0 -8px 12px rgba(0, 0, 0, 0.2),
        0 3px 8px rgba(0, 0, 0, 0.5);
}

.orb-option:active .orb-retro-button {
    transform: translateY(1px);
    box-shadow: 
        inset 0 0 0 2px #ff6600,
        inset 0 0 0 3px var(--orb-dark),
        inset 0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 -4px 8px rgba(255, 255, 255, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.3);
}

.orb-option.selected .orb-retro-button {
    transform: scale(1.1);
    box-shadow: 
        inset 0 0 0 2px #ffdd00,
        inset 0 0 0 3px var(--orb-dark),
        inset 0 8px 12px rgba(255, 255, 255, 0.6),
        inset 0 -8px 12px rgba(0, 0, 0, 0.2),
        /* Removed the glow effect */
        0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Join Button and Character Message Styles */
#joinButton {
    background: #c0c0c0;
    color: black;
    border: 2px outset #c0c0c0;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 30px;
    font-family: 'MS Sans Serif', sans-serif;
    transition: none;
    min-width: 200px;
    /* Touch-friendly improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px; /* Minimum touch target size */
}

#joinButton:hover:not(:disabled) {
    background: #d0d0d0;
}

#joinButton:active:not(:disabled) {
    border: 2px inset #c0c0c0;
    background: #b0b0b0;
}

#joinButton:disabled {
    background: #808080;
    color: #404040;
    cursor: not-allowed;
    border: 2px outset #808080;
}

#characterMessage {
    margin-top: 15px;
    font-size: 14px;
    color: white !important;
    min-height: 12px;
    text-align: center;
    max-width: 400px;
    word-wrap: break-word;
    margin: 0 auto;
    background: blue;
    padding: 4px 12px;
    border: 2px inset #c0c0c0;
    font-family: Arial Narrow, sans-serif;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 400px;
}

/*
=== COMMENTED OUT CUBE STYLES FOR FUTURE RESTORATION ===

.orb-cube-container {
    perspective: 800px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    will-change: transform;
}

.orb-cube {
    position: relative;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    animation: spinOrbCube 12s infinite linear;
    will-change: transform;
    backface-visibility: hidden;
    transform-origin: center center;
}

.orb-cube-face {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.orb-cube-face.orb-front {
    transform: translateZ(25px);
}

.orb-cube-face.orb-back {
    transform: translateZ(-25px) rotateY(180deg);
}

.orb-cube-face.orb-right {
    transform: rotateY(90deg) translateZ(25px);
}

.orb-cube-face.orb-left {
    transform: rotateY(-90deg) translateZ(25px);
}

.orb-cube-face.orb-top {
    transform: rotateX(90deg) translateZ(25px);
}

.orb-cube-face.orb-bottom {
    transform: rotateX(-90deg) translateZ(25px);
}

@keyframes spinOrbCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes spinOrbCubeFirefox {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    50% { transform: rotateY(180deg) rotateX(15deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}

.orb-cube-container:hover .orb-cube {
    animation-play-state: paused;
}

.orb-option:hover .orb-cube {
    animation-duration: 2s;
}

.orb-option.selected .orb-cube {
    animation-duration: 1s;
    transform: scale(1.1);
    will-change: transform;
}

Firefox-specific optimizations:
@-moz-document url-prefix() {
    .orb-cube {
        animation: spinOrbCubeFirefox 10s infinite linear;
        transform-style: preserve-3d;
        backface-visibility: hidden;
    }
    
    .orb-cube-face {
        will-change: transform;
        backface-visibility: hidden;
        transform-style: flat;
    }
    
    .orb-option:hover .orb-cube {
        animation-duration: 6s;
    }
    
    .orb-option.selected .orb-cube {
        animation-duration: 3s;
    }
    
    .orb-cube-container {
        perspective: 600px;
        will-change: transform;
    }
    
    .orb-cube-face {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }
}

Mobile responsive orb cubes:
@media screen and (max-width: 768px) {
    .orb-cube-container {
        height: 50px;
    }
    
    .orb-cube {
        width: 40px;
        height: 40px;
    }
    
    .orb-cube-face {
        width: 40px;
        height: 40px;
    }
    
    .orb-cube-face.orb-front {
        transform: translateZ(20px);
    }
    
    .orb-cube-face.orb-back {
        transform: translateZ(-20px) rotateY(180deg);
    }
    
    .orb-cube-face.orb-right {
        transform: rotateY(90deg) translateZ(20px);
    }
    
    .orb-cube-face.orb-left {
        transform: rotateY(-90deg) translateZ(20px);
    }
    
    .orb-cube-face.orb-top {
        transform: rotateX(90deg) translateZ(20px);
    }
    
    .orb-cube-face.orb-bottom {
        transform: rotateX(-90deg) translateZ(20px);
    }
}

@media screen and (max-width: 480px) {
    .orb-cube-container {
        height: 45px;
    }
    
    .orb-cube {
        width: 35px;
        height: 35px;
    }
    
    .orb-cube-face {
        width: 35px;
        height: 35px;
    }
    
    .orb-cube-face.orb-front {
        transform: translateZ(17.5px);
    }
    
    .orb-cube-face.orb-back {
        transform: translateZ(-17.5px) rotateY(180deg);
    }
    
    .orb-cube-face.orb-right {
        transform: rotateY(90deg) translateZ(17.5px);
    }
    
    .orb-cube-face.orb-left {
        transform: rotateY(-90deg) translateZ(17.5px);
    }
    
    .orb-cube-face.orb-top {
        transform: rotateX(90deg) translateZ(17.5px);
    }
    
    .orb-cube-face.orb-bottom {
        transform: rotateX(-90deg) translateZ(17.5px);
    }
}

=== END COMMENTED CUBE STYLES ===
*/

/* Mobile responsive orb buttons */
@media screen and (max-width: 768px) {
    .orb-retro-button {
        width: 55px;
        height: 55px;
    }
    
    .orb-colors {
        grid-template-columns: repeat(3, 1fr); /* 3 columns instead of 4 on mobile */
        gap: 15px;
        max-width: 250px;
    }
    
    #characterSelection {
        overflow-x: hidden; /* Prevent horizontal scrolling on character page */
    }
    
    #usernameInput {
        width: 100%;
        max-width: 250px;
        font-size: 16px;
        padding: 8px;
        color: #666;
        text-align: center;
        border: 2px inset #e0e0e0;
        background: #f0f0f0;
        /* Touch-friendly improvements */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px; /* Minimum touch target size */
    }
}

@media screen and (max-width: 480px) {
    .orb-retro-button {
        width: 50px;
        height: 50px;
    }
    
    .orb-colors {
        grid-template-columns: repeat(3, 1fr); /* Ensure 3 columns on smaller mobile too */
        gap: 12px;
        max-width: 220px;
    }
    
    #characterSelection {
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
}

/* iPhone X and similar devices (375px) specific fixes */
@media screen and (max-width: 375px) {
    .calendar-table {
        width: 100%;
        max-width: calc(100vw - 20px);
        font-size: 8px;
        table-layout: fixed;
        margin: 0 auto;
        border-collapse: collapse;
    }

    .calendar-table th,
    .calendar-table td {
        padding: 2px 1px;
        font-size: 8px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.1;
        max-width: 0;
        overflow: hidden;
    }

    .calendar-table th:nth-child(1),
    .calendar-table td:nth-child(1) {
        width: 25%;
    }

    .calendar-table th:nth-child(2),
    .calendar-table td:nth-child(2) {
        width: 40%;
    }

    .calendar-table th:nth-child(3),
    .calendar-table td:nth-child(3) {
        width: 35%;
    }

    .event-date {
        font-size: 7px;
    }

    .event-name {
        font-size: 7px;
    }

    .event-type {
        font-size: 7px;
    }

    .calendar-note {
        font-size: 6px;
        margin: 5px 0;
    }

    .event-calendar {
        width: 100%;
        max-width: calc(100vw - 20px);
        margin: 0 auto;
        padding: 0 10px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 360px) {
    #chatContainer {
        width: calc(100vw - 16px);
        height: 160px;
        bottom: 0;
        right: 0;
        left: 0;
        margin: 0 8px 8px 8px;
        position: fixed;
        z-index: 1001;
    }

    .chat-reminder {
        bottom: 180px;
        right: 12px;
    }

    #joinButton {
        position: fixed;
        bottom: 45px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        min-width: 140px;
        padding: 6px 12px;
        font-size: 11px;
        font-family: 'MS Sans Serif', sans-serif;
    }

    #characterMessage {
        position: fixed;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1002;
        margin-top: 0;
        width: auto;
        max-width: calc(100vw - 24px);
        font-size: 10px;
    }

    #characterForm {
        padding-bottom: 110px;
    }
    
    body .character-form h1 img {
        width: 180px;
        height: auto;
    }

    .orb-colors {
        max-width: 200px;
        gap: 8px;
    }

    .orb-option {
        max-width: 80px;
        padding: 5px;
    }

    #usernameInput {
        max-width: 180px;
        font-size: 16px;
        padding: 6px;
        min-height: 44px;
        border: 2px inset #e0e0e0;
        background: #f0f0f0;
        color: #666;
    }
}

/* Tutorial message styles */
.tutorial-message {
    opacity: 0;
    /* transition: opacity 0.3s ease; */
    margin-bottom: 8px;
}

.tutorial-message.show {
    opacity: 1;
}

.tutorial-message .username {
    font-weight: bold;
}

/* User message in tutorial - left aligned like Blueby */
.tutorial-user-message {
    text-align: left;
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-user-message.show {
    opacity: 1;
}

.tutorial-user-message .username {
    color: #ff00ff;
    font-weight: bold;
}

.tutorial-user-message .username::after {
    content: " ►";
    color: #ffff00;
    font-weight: normal;
}

/* Typing indicator */
.typing-indicator {
    display: none;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 12px;
    margin-bottom: 8px;
}

.typing-indicator.show {
    display: block;
}

.typing-dots {
    display: inline-block;
    animation: typingDots 1.0s infinite;
}

@keyframes typingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Bottom section for input and buttons */
.chat-bottom-section {
    background: #c0c0c0;
    padding: 6px;
    border-top: 1px solid #888;
    position: relative;
}

/* Tutorial input section - sliding tray */
#tutorialInputSection {
    display: flex;
    margin-bottom: 2px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    max-height: 0;
}

#tutorialInputSection.show {
    transform: translateY(0);
    opacity: 1;
    max-height: 40px;
}

#tutorialInput {
    flex: 1;
    padding: 4px 6px;
    border: 1px inset #888;
    background-color: #ffffff;
    color: black;
    font-size: 12px;
    outline: none;
}

.tutorial-submit {
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    border-radius: 0;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 11px;
    margin-left: 4px;
    font-family: 'MS Sans Serif', sans-serif;
}

.tutorial-submit:hover {
    background-color: #d0d0d0;
}

.tutorial-submit:active {
    border: 2px inset #c0c0c0;
    background-color: #b0b0b0;
}

/* Set background colors for each color option */
.tutorial-color-option:nth-child(1) { background-color: #FF5252; }
.tutorial-color-option:nth-child(2) { background-color: #FF9800; }
.tutorial-color-option:nth-child(3) { background-color: #FFEB3B; }
.tutorial-color-option:nth-child(4) { background-color: #4CAF50; }
.tutorial-color-option:nth-child(5) { background-color: #2196F3; }
.tutorial-color-option:nth-child(6) { background-color: #9C27B0; }
.tutorial-color-option:nth-child(7) { background-color: #E91E63; }
.tutorial-color-option:nth-child(8) { background-color: #607D8B; }

/* Tutorial color picker - skeumorphic sphere style */
#tutorialColorPicker {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 0;
}

.tutorial-color-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    justify-content: center;
}

.tutorial-color-option {
    width: 50px;
    height: 50px;
    cursor: pointer;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    /* Outer orange/yellow border like in reference */
    border: 3px solid #ff8800;
    /* Inner dark border */
    box-shadow: 
        inset 0 0 0 2px #333333,
        /* Main glossy sphere effect */
        inset 0 8px 16px rgba(255, 255, 255, 0.4),
        inset 0 -8px 16px rgba(0, 0, 0, 0.3),
        /* Outer shadow */
        0 4px 8px rgba(0, 0, 0, 0.3);
    
    /* Radial gradient for sphere effect */
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.8) 0%, 
        transparent 40%), 
        var(--sphere-color, #ff0000);
    
    transition: all 0.15s ease;
}

/* Color variables for each sphere */
.tutorial-color-option[data-color="#FF5252"] {
    --sphere-color: #FF5252;
}

.tutorial-color-option[data-color="#FF9800"] {
    --sphere-color: #FF9800;
}

.tutorial-color-option[data-color="#FFEB3B"] {
    --sphere-color: #FFEB3B;
}

.tutorial-color-option[data-color="#4CAF50"] {
    --sphere-color: #4CAF50;
}

.tutorial-color-option[data-color="#2196F3"] {
    --sphere-color: #2196F3;
}

.tutorial-color-option[data-color="#9C27B0"] {
    --sphere-color: #9C27B0;
}

.tutorial-color-option[data-color="#E91E63"] {
    --sphere-color: #E91E63;
}

.tutorial-color-option[data-color="#607D8B"] {
    --sphere-color: #607D8B;
}

.tutorial-color-option:hover {
    transform: translateY(-1px);
    border-color: #ffaa00;
    box-shadow: 
        inset 0 0 0 2px #333333,
        inset 0 8px 16px rgba(255, 255, 255, 0.5),
        inset 0 -8px 16px rgba(0, 0, 0, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.4);
}

.tutorial-color-option:active {
    transform: translateY(1px);
    border-color: #ff6600;
    box-shadow: 
        inset 0 0 0 2px #333333,
        inset 0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 -4px 8px rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.tutorial-color-option.selected {
    transform: scale(1.1);
    border-color: #ffdd00;
    box-shadow: 
        inset 0 0 0 2px #333333,
        inset 0 8px 16px rgba(255, 255, 255, 0.6),
        inset 0 -8px 16px rgba(0, 0, 0, 0.2),
        0 0 16px rgba(255, 221, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4);
}