/* OpenClaw Office - Pixel Art Style */
:root {
    /* Pixel Art Colors */
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --bg-panel: #0f3460;
    --bg-light: #e94560;
    
    --pixel-black: #000000;
    --pixel-dark: #222831;
    --pixel-gray: #393e46;
    --pixel-light: #eeeeee;
    --pixel-accent: #00adb5;
    --pixel-success: #00ff88;
    --pixel-warning: #ffcc00;
    --pixel-error: #ff3333;
    --pixel-blue: #3498db;
    
    /* Pixel Sizes */
    --pixel-size: 4px;
    --grid-size: 16px;
    
    /* Animations */
    --anim-slow: 0.5s ease;
    --anim-normal: 0.3s ease;
    --anim-fast: 0.15s ease;
    
    /* Shadows */
    --shadow-pixel: 2px 2px 0px var(--pixel-black);
    --shadow-light: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-dark);
    color: var(--pixel-light);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

.pixel-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9em;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--bg-panel);
    border-bottom: 4px solid var(--pixel-accent);
    box-shadow: var(--shadow-pixel);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pixel-logo {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--pixel-light), var(--pixel-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-light);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: var(--pixel-dark);
    border: 2px solid var(--pixel-gray);
    border-radius: 4px;
    box-shadow: var(--shadow-light);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--pixel-warning);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding: 1rem;
    gap: 1rem;
}

/* Office Scene */
.office-scene {
    flex: 2;
    background-color: var(--pixel-dark);
    border: 4px solid var(--pixel-gray);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-pixel);
}

.scene-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #2d4059;
}

.office-background {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(to bottom, #4a6fa5 0%, #2d4059 40%, #1a1a2e 100%);
}

/* Window */
.window {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 80px;
    background-color: #87ceeb;
    border: 4px solid var(--pixel-dark);
    box-shadow: var(--shadow-pixel);
}

.window-frame {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--pixel-dark);
}

.window-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #87ceeb;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background-color: white;
    border-radius: 50%;
}

.cloud1 {
    width: 20px;
    height: 12px;
    top: 10px;
    left: 20px;
}

.cloud2 {
    width: 16px;
    height: 10px;
    top: 15px;
    left: 50px;
}

/* Bookshelf */
.bookshelf {
    position: absolute;
    bottom: 100px;
    left: 20px;
    width: 80px;
    height: 60px;
    background-color: #8b4513;
    border: 3px solid #654321;
    box-shadow: var(--shadow-pixel);
}

.book {
    position: absolute;
    background-color: var(--pixel-accent);
    border: 1px solid var(--pixel-dark);
}

.book1 {
    width: 15px;
    height: 40px;
    top: 10px;
    left: 10px;
    background-color: #e94560;
}

.book2 {
    width: 15px;
    height: 35px;
    top: 15px;
    left: 30px;
    background-color: #00adb5;
}

.book3 {
    width: 15px;
    height: 45px;
    top: 5px;
    left: 50px;
    background-color: #ffcc00;
}

.plant {
    position: absolute;
    bottom: 60px;
    left: 40px;
    width: 20px;
    height: 30px;
    background-color: #2ecc71;
    border-radius: 50% 50% 0 0;
}

/* Whiteboard */
.whiteboard {
    position: absolute;
    top: 100px;
    left: 120px;
    width: 140px;
    height: 80px;
    background-color: white;
    border: 4px solid #95a5a6;
    box-shadow: var(--shadow-pixel);
}

.whiteboard-content {
    padding: 10px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--pixel-dark);
    line-height: 1.4;
}

/* Desk */
.desk {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 120px;
    background-color: #654321;
    border: 4px solid #543210;
    box-shadow: var(--shadow-pixel);
}

.monitor {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 70px;
    background-color: var(--pixel-gray);
    border: 4px solid var(--pixel-dark);
}

.screen {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.code-display {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--pixel-success);
    white-space: nowrap;
    animation: typing 3s steps(40, end) infinite;
}

@keyframes typing {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.monitor-stand {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background-color: var(--pixel-gray);
}

.keyboard {
    position: absolute;
    bottom: 10px;
    left: 50px;
    width: 80px;
    height: 20px;
    background-color: #2c3e50;
    border-radius: 4px;
}

.mouse {
    position: absolute;
    bottom: 10px;
    right: 50px;
    width: 30px;
    height: 20px;
    background-color: #2c3e50;
    border-radius: 50% 50% 0 0;
}

.coffee-mug {
    position: absolute;
    top: -30px;
    right: 20px;
    width: 20px;
    height: 25px;
    background-color: #8b4513;
    border-radius: 0 0 8px 8px;
}

.coffee-mug::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 5px;
    width: 10px;
    height: 5px;
    background-color: #654321;
    border-radius: 50%;
}

/* Water Cooler */
.water-cooler {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 30px;
    height: 80px;
}

.cooler-top {
    width: 40px;
    height: 10px;
    background-color: #bdc3c7;
    border-radius: 4px;
    margin-bottom: 2px;
}

.cooler-body {
    width: 30px;
    height: 60px;
    background-color: #3498db;
    border: 2px solid #2980b9;
    border-radius: 4px;
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #87ceeb;
    border-radius: 0 0 4px 4px;
    animation: waterFlow 3s ease-in-out infinite;
}

@keyframes waterFlow {
    0%, 100% { height: 40px; }
    50% { height: 45px; }
}

/* Character */
.character {
    position: absolute;
    bottom: 160px;
    left: 200px;
    width: 40px;
    height: 60px;
    transition: all var(--anim-normal);
    z-index: 10;
}

.character-body {
    position: relative;
    width: 100%;
    height: 100%;
}

.head {
    position: absolute;
    top: 0;
    left: 10px;
    width: 20px;
    height: 20px;
    background-color: #ffdbac;
    border-radius: 50%;
    border: 2px solid #d4a574;
}

.body {
    position: absolute;
    top: 20px;
    left: 5px;
    width: 30px;
    height: 30px;
    background-color: var(--pixel-blue);
    border: 2px solid #2980b9;
}

.arm-left, .arm-right {
    position: absolute;
    top: 22px;
    width: 15px;
    height: 8px;
    background-color: var(--pixel-blue);
    border: 2px solid #2980b9;
}

.arm-left {
    left: -10px;
    transform: rotate(45deg);
}

.arm-right {
    right: -10px;
    transform: rotate(-45deg);
}

.leg-left, .leg-right {
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 20px;
    background-color: #2c3e50;
    border: 2px solid #1a252f;
}

.leg-left {
    left: 8px;
}

.leg-right {
    right: 8px;
}

.thought-bubble {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--anim-normal);
}

.thought-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.bubble-text {
    font-size: 1.5rem;
}

/* Character Animations */
.character.idle {
    animation: idleBreath 2s ease-in-out infinite;
}

@keyframes idleBreath {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.character.working {
    animation: typingMotion 0.5s ease-in-out infinite;
}

@keyframes typingMotion {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-1px) rotate(-1deg); }
    75% { transform: translateY(-1px) rotate(1deg); }
}

.character.walking {
    animation: walkCycle 0.8s steps(4) infinite;
}

@keyframes walkCycle {
    0% { transform: translateX(0); }
    25% { transform: translateX(2px) translateY(-1px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(2px) translateY(1px); }
    100% { transform: translateX(0); }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    pointer-events: none;
    opacity: 0.3;
}

/* Status Panel */
.status-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
}

.panel-section {
    background-color: var(--bg-panel);
    border: 3px solid var(--pixel-gray);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-pixel);
}

.panel-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--pixel-accent);
    border-bottom: 2px solid var(--pixel-accent);
    padding-bottom: 0.5rem;
}

.panel-section h3 i {
    font-size: 1.1rem;
}

/* Status Card */
.status-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 3px solid var(--pixel-accent);
}

.status-label {
    font-size: 0.9rem;
    color: var(--pixel-light);
    opacity: 0.8;
}

.status-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--pixel-success);
    text-shadow: 1px 1px 0px var(--pixel-black);
}

/* State Machine */
.state-machine {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.state-row {
    display: flex;
    gap: 0.5rem;
}

.state-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: 3px solid var(--pixel-gray);
    border-radius: 6.state-btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: 3px solid var(--pixel-gray);
    border-radius: 6px;
    background-color: var(--pixel-dark);
    color: var(--pixel-light);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--anim-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.state-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.state-btn.active {
    border-color: var(--pixel-accent);
    background-color: rgba(0, 173, 181, 0.2);
    color: var(--pixel-accent);
    box-shadow: 0 0 10px rgba(0, 173, 181, 0.3);
}

.state-btn.idle.active {
    border-color: #95a5a6;
    background-color: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
}

.state-btn.new_task.active {
    border-color: #f39c12;
    background-color: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.state-btn.planning.active {
    border-color: #9b59b6;
    background-color: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.state-btn.reading_docs.active {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.state-btn.implementing.active {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.state-btn.verifying.active {
    border-color: #1abc9c;
    background-color: rgba(26, 188, 156, 0.2);
    color: #1abc9c;
}

.state-btn.completed.active {
    border-color: #27ae60;
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.state-btn.blocked.active {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* History List */
.history-list {
    max-height: 200px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0.5rem;
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: var(--pixel-gray);
    text-align: center;
}

.history-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.history-empty p {
    font-size: 0.9rem;
}

.history-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--pixel-accent);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-time {
    font-size: 0.7rem;
    color: var(--pixel-gray);
    margin-bottom: 0.25rem;
}

.history-action {
    font-size: 0.9rem;
    color: var(--pixel-light);
}

/* System Info */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.info-item span:first-child {
    font-size: 0.9rem;
    color: var(--pixel-light);
    opacity: 0.8;
}

.info-item span:last-child {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--pixel-success);
}

/* Footer */
.footer {
    background-color: var(--bg-panel);
    border-top: 4px solid var(--pixel-accent);
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow-pixel);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-separator {
    color: var(--pixel-gray);
    opacity: 0.5;
}

#connectionStatus {
    color: var(--pixel-warning);
    font-weight: 500;
}

#currentTime {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--pixel-accent);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-panel);
    border: 4px solid var(--pixel-accent);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-pixel);
    overflow: hidden;
}

.modal-header {
    background-color: var(--pixel-dark);
    padding: 1rem;
    border-bottom: 2px solid var(--pixel-accent);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pixel-accent);
}

.modal-body {
    padding: 2rem;
}

.connection-status {
    text-align: center;
}

.status-icon {
    font-size: 3rem;
    color: var(--pixel-accent);
    margin-bottom: 1rem;
}

.connection-status p {
    margin-bottom: 1.5rem;
    color: var(--pixel-light);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--pixel-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--pixel-accent);
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .status-panel {
        max-width: 100%;
    }
    
    .office-scene {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .state-row {
        flex-wrap: wrap;
    }
    
    .state-btn {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .header, .footer {
        padding: 1rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .panel-section {
        padding: 0.75rem;
    }
    
    .state-btn {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.connected {
    color: var(--pixel-success) !important;
}

.disconnected {
    color: var(--pixel-error) !important;
}

.connecting {
    color: var(--pixel-warning) !important;
}

/* Status Colors */
.status-idle {
    color: #95a5a6;
}

.status-new_task {
    color: #f39c12;
}

.status-planning {
    color: #9b59b6;
}

.status-reading_docs {
    color: #3498db;
}

.status-implementing {
    color: #2ecc71;
}

.status-verifying {
    color: #1abc9c;
}

.status-completed {
    color: #27ae60;
}

.status-blocked {
    color: #e74c3c;
}

/* Character Position States */
.character-position-desk {
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
}

.character-position-whiteboard {
    bottom: 180px;
    left: 150px;
}

.character-position-window {
    bottom: 160px;
    right: 100px;
}

.character-position-watercooler {
    bottom: 160px;
    right: 80px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pixel-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--pixel-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pixel-blue);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: loadingShine 1.5s infinite;
}

@keyframes loadingShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background-color: var(--bg-panel);
    border: 3px solid var(--pixel-accent);
    border-radius: 8px;
    color: var(--pixel-light);
    z-index: 1000;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
    animation-fill-mode: forwards;
    box-shadow: var(--shadow-pixel);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification.success {
    border-color: var(--pixel-success);
}

.notification.error {
    border-color: var(--pixel-error);
}

.notification.warning {
    border-color: var(--pixel-warning);
}

.notification.info {
    border-color: var(--pixel-accent);
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--pixel-dark);
    color: var(--pixel-light);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    border: 2px solid var(--pixel-accent);
    box-shadow: var(--shadow-pixel);
    margin-bottom: 5px;
}

/* Keyboard Shortcut */
.kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    background-color: var(--pixel-dark);
    border: 2px solid var(--pixel-gray);
    border-radius: 4px;
    color: var(--pixel-light);
    margin: 0 0.25rem;
}

/* Watermark */
.watermark {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Press Start 2P', cursive;
    pointer-events: none;
    z-index: 1;
}