/* ================================================================
   WINDOWS 96 THEME — Verity.exe
   ================================================================ */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
    --win-desktop: #008080;
    --win-surface: #c0c0c0;
    --win-surface-light: #dfdfdf;
    --win-surface-dark: #808080;
    --win-titlebar-active: #000080;
    --win-titlebar-active-end: #1084d0;
    --win-titlebar-inactive: #808080;
    --win-titlebar-inactive-end: #b5b5b5;
    --win-titlebar-text: #ffffff;
    --win-titlebar-inactive-text: #d4d0c8;
    --win-border-light: #ffffff;
    --win-border-dark: #000000;
    --win-border-medium: #808080;
    --win-button-face: #c0c0c0;
    --win-button-highlight: #ffffff;
    --win-button-shadow: #808080;
    --win-button-dark-shadow: #000000;
    --win-button-text: #000000;
    --win-input-bg: #ffffff;
    --win-input-text: #000000;
    --win-accent: #f8d626;
    --win-highlight: #000080;
    --win-highlight-text: #ffffff;
    --win-taskbar: #c0c0c0;

    --font-system: 'Microsoft Sans Serif', 'MS Sans Serif', Tahoma, Geneva, Verdana, sans-serif;
    --font-retro: 'VT323', 'Courier New', monospace;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-system);
    font-size: 12px;
    background: var(--win-desktop);
    color: var(--win-button-text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    user-select: none;
    image-rendering: pixelated;
}

/* ── Boot Screen ──────────────────────────────────────────────── */
#boot-screen {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 40px;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

#boot-screen.boot-fade-out {
    animation: bootFadeOut 0.05s ease-out forwards;
}

.boot-header {
    text-align: center;
    margin-bottom: 40px;
}

.boot-ascii {
    font-size: 11px;
    line-height: 1.15;
    white-space: pre;
    letter-spacing: 0px;
    margin-bottom: 8px;
    text-align: center;
    opacity: 0;
}

.boot-ascii.boot-visible {
    opacity: 1;
}

.boot-subtitle {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 6px;
    margin-bottom: 2px;
    opacity: 0;
}

.boot-subtitle.boot-visible {
    opacity: 1;
}

.boot-bios {
    font-size: 12px;
    color: #888;
    margin-bottom: 24px;
    opacity: 0;
}

.boot-bios.boot-visible {
    opacity: 1;
}

.boot-content {
    width: 100%;
    max-width: 500px;
}

.boot-divider {
    border: none;
    border-top: 1px solid #555;
    margin: 12px 0;
    width: 0%;
    transition: width 0.4s ease-out;
}

.boot-divider.boot-visible {
    width: 100%;
}

.boot-line {
    font-size: 13px;
    margin: 2px 0;
    opacity: 0;
}

.boot-line.boot-visible {
    opacity: 1;
}

.boot-progress {
    width: 400px;
    height: 14px;
    border: 1px solid #fff;
    margin-top: 16px;
    padding: 1px;
    display: none;
}

.boot-progress-bar {
    height: 100%;
    background: #ffffff;
    width: 0;
}

.boot-progress-bar.boot-loading {
    animation: bootLoad 1.2s linear forwards;
}

.boot-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.boot-login-title {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
}

.boot-login-divider {
    font-size: 12px;
    color: #555;
}

.boot-login-label {
    font-size: 13px;
    color: #fff;
    margin-top: 8px;
}

.boot-login-input {
    width: 300px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #fff;
    background: #000;
    border: 1px solid #fff;
    outline: none;
    caret-color: #fff;
    text-align: center;
}

.boot-login-input:focus {
    border-color: #fff;
}

.boot-login-hint {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

.boot-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.boot-welcome-text {
    font-size: 8px;
    line-height: 1.1;
    color: #fff;
    text-align: center;
    white-space: pre;
    animation: welcomeFade 2s ease-out forwards;
}

@keyframes welcomeFade {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.boot-prompt-blink {
    animation: bootBlink 1s step-end infinite;
    color: #f8d626; /* Retro yellow accent */
    font-size: 12px !important;
    letter-spacing: 2px !important;
}

@keyframes bootLoad {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes bootFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

@keyframes bootBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ── Desktop ──────────────────────────────────────────────────── */
#desktop {
    position: absolute;
    inset: 0;
    top: 24px;
    background:
        radial-gradient(ellipse at 20% 50%, #4a9e9e 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, #3d8b8b 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, #2e7a7a 0%, transparent 55%),
        linear-gradient(180deg, #008080 0%, #006666 100%);
    overflow: hidden;
}

/* ── Desktop Icons ────────────────────────────────────────────── */
.desktop-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.desktop-icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 72px;
    padding: 6px 4px;
    cursor: grab;
    border: 1px solid transparent;
    pointer-events: auto;
    user-select: none;
}

.desktop-icon.dragging {
    cursor: grabbing;
    opacity: 0.8;
    z-index: 100;
}

.desktop-icon:hover {
    border: 1px dotted rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 128, 0.15);
}

.desktop-icon:active {
    border: 1px dotted rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 128, 0.3);
}

.desktop-icon-img {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-icon-img svg { display: block; }

.desktop-icon span {
    font-size: 10px;
    font-family: var(--font-system);
    color: #ffffff;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    line-height: 1.2;
    max-width: 68px;
}

/* ── Windows ──────────────────────────────────────────────────── */
.window {
    position: absolute;
    z-index: 10;
    min-width: 200px;
    min-height: 100px;
    background: var(--win-surface);
    border-top: 2px solid var(--win-border-light);
    border-left: 2px solid var(--win-border-light);
    border-right: 2px solid var(--win-border-dark);
    border-bottom: 2px solid var(--win-border-dark);
    box-shadow:
        inset -1px -1px 0 0 var(--win-border-medium),
        inset 1px 1px 0 0 var(--win-surface-light),
        2px 2px 0 0 rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    font-family: var(--font-system);
}

.window.hidden, .desktop-icon.hidden { display: none; }
.window.active { z-index: 100; }

/* ── Window Title Bar ─────────────────────────────────────────── */
.window-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    padding: 3px 3px 3px 5px;
    background: linear-gradient(90deg, var(--win-titlebar-active), var(--win-titlebar-active-end));
    cursor: default;
    flex-shrink: 0;
}

.window.inactive .window-titlebar {
    background: linear-gradient(90deg, var(--win-titlebar-inactive), var(--win-titlebar-inactive-end));
}

.window-title {
    font-family: var(--font-system);
    font-size: 11px;
    font-weight: bold;
    color: var(--win-titlebar-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.window.inactive .window-title {
    color: var(--win-titlebar-inactive-text);
}

.window-controls {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.win-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 14px;
    font-size: 10px;
    line-height: 1;
    font-family: var(--font-system);
    font-weight: bold;
    border: none;
    background: var(--win-button-face);
    border-top: 1px solid var(--win-button-highlight);
    border-left: 1px solid var(--win-button-highlight);
    border-right: 1px solid var(--win-button-dark-shadow);
    border-bottom: 1px solid var(--win-button-dark-shadow);
    outline: none;
    cursor: pointer;
    padding: 0;
    color: var(--win-button-text);
}

.win-btn:active {
    border-top: 1px solid var(--win-button-dark-shadow);
    border-left: 1px solid var(--win-button-dark-shadow);
    border-right: 1px solid var(--win-button-highlight);
    border-bottom: 1px solid var(--win-button-highlight);
}

.win-btn-close { font-size: 8px; }

.win-btn-minimize { font-size: 10px; font-weight: bold; line-height: 0.6; }

.win-btn-maximize { font-size: 10px; font-weight: normal; }

/* ── Window Resize Handle ─────────────────────────────────────── */
.window-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background:
        linear-gradient(135deg, transparent 50%, var(--win-border-dark) 50%, var(--win-border-dark) 55%, transparent 55%,
        transparent 65%, var(--win-border-dark) 65%, var(--win-border-dark) 70%, transparent 70%,
        transparent 80%, var(--win-border-dark) 80%, var(--win-border-dark) 85%, transparent 85%);
    z-index: 200;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 28px) !important;
}

/* ── Window Body ──────────────────────────────────────────────── */
.window-body {
    flex: 1;
    background: var(--win-surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Canvas Container (pixelart frame — inside Verity.exe) ───── */
#canvas-container {
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixelart-frame {
    width: 180px;
    height: 180px;
    object-fit: contain;
    image-rendering: pixelated;
    user-select: none;
}

/* ── Tasks Overlay (top-left of canvas) ───────────────────────── */
.tasks-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    padding: 8px 12px;
    max-width: 300px;
    pointer-events: auto;
}

.tasks-header {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    font-family: var(--font-system);
    margin-bottom: 4px;
}

.tasks-desc {
    font-size: 11px;
    color: #808080;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #808080;
    font-family: var(--font-system);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.task-box {
    background: #ffffff;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    padding: 4px 8px;
    font-family: var(--font-system);
}

.task-box.done .task-box-text {
    text-decoration: line-through;
    color: #808080;
}

.task-box.current {
    background: #000080;
}

.task-box.current .task-box-text {
    color: #ffffff;
}

.task-box-text {
    font-size: 12px;
    color: #000;
    line-height: 1.4;
}

.tasks-overlay.all-done {
    background: rgba(200, 200, 200, 0.85);
}

.tasks-overlay.all-done .tasks-desc {
    color: #000080;
    font-weight: bold;
}

/* ── Chat ─────────────────────────────────────────────────────── */
.chat-container {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    height: 100%;
    font-family: var(--font-system);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #ffffff;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.chat-msg {
    font-size: 11px;
    color: #000;
    line-height: 1.3;
    word-break: break-word;
    padding: 3px 5px;
    max-width: 90%;
}

.chat-msg.you {
    align-self: flex-end;
    background: #ffffc0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    font-size: 14px; /* Increased 25% from 11px to match verity */
}

.chat-msg.verity {
    align-self: flex-start;
    background: #e0e8f0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    font-size: 14px; /* Increased 25% from 11px */
}

.chat-sender {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 4px;
}

.chat-msg.you .chat-sender { color: #808080; }
.chat-msg.verity .chat-sender { color: #000080; }

/* cursed output — looks like normal verity message, gibberish with buried phrases */
.chat-msg.cursed {
    font-family: var(--font-system);
    font-size: 14px; /* Increased 25% from 11px */
    letter-spacing: 0.3px;
    word-break: break-all;
}

.chat-msg.cursed .cursed-hidden {
    font-weight: bold;
}

/* cursed-dark — full horror mode, add alongside cursed to activate */
.chat-msg.cursed.cursed-dark {
    background: #1a0000;
    border-top: 1px solid #330000;
    border-left: 1px solid #330000;
    border-right: 1px solid #660000;
    border-bottom: 1px solid #660000;
    color: #8b0000;
    font-family: 'Courier New', monospace;
    font-size: 13px; /* Increased 25% from 10px */
    letter-spacing: 0.5px;
    word-break: break-all;
    animation: cursedFlicker 4s infinite;
    text-shadow: 0 0 2px rgba(139, 0, 0, 0.5);
}

.chat-msg.cursed.cursed-dark .chat-sender {
    color: #660000;
}

.chat-msg.cursed.cursed-dark .cursed-hidden {
    color: #cc1100;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(200, 0, 0, 0.6);
}

@keyframes cursedFlicker {
    0%, 94%, 100% { opacity: 1; }
    95% { opacity: 0.7; }
    96% { opacity: 0.9; }
    97% { opacity: 0.6; }
    98% { opacity: 1; }
}

.chat-text {
    display: block;
    margin-top: 1px;
    white-space: pre-wrap;
}

.chat-msg.typing {
    align-self: flex-start;
    background: #e0e8f0;
}

.typing-dots span {
    animation: dotPulse 1.4s infinite;
    opacity: 0;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 60%, 100% { opacity: 0; }
    30% { opacity: 1; }
}

.chat-msg .chat-timestamp {
    color: #808080;
    font-size: 9px;
    margin-right: 4px;
}

.chat-empty {
    color: #808080;
    font-size: 10px;
    text-align: center;
    padding: 8px 0;
}

/* Verity-initiated messages (unprompted) — normal blue background */
.chat-msg.verity.verity-initiate {
    background: #e0e8f0;
}

/* Glitch text effect (HUMANS -> Coconut ice cream) */
.chat-msg.glitch {
    animation: textGlitch 0.3s steps(2) infinite;
}

@keyframes textGlitch {
    0% { transform: translate(0); text-shadow: none; }
    25% { transform: translate(-2px, 1px); text-shadow: 2px 0 #ff0000, -2px 0 #00ff00; }
    50% { transform: translate(1px, -1px); text-shadow: -1px 0 #ff0000, 1px 0 #0000ff; }
    75% { transform: translate(-1px, 2px); clip-path: inset(30% 0 20% 0); }
    100% { transform: translate(0); text-shadow: none; }
}

/* Full-screen flicker for final escalation */
.screen-flicker {
    animation: screenFlicker 0.15s steps(2) infinite;
}

@keyframes screenFlicker {
    0% { opacity: 1; filter: none; }
    50% { opacity: 0.8; filter: hue-rotate(180deg) brightness(1.5); }
    100% { opacity: 1; filter: none; }
}

.chat-input-row {
    display: flex;
    gap: 4px;
    padding: 4px 6px 6px;
    border-top: 1px solid #808080;
    background: #c0c0c0;
}

.chat-input {
    flex: 1;
    background: #ffffff;
    font-family: var(--font-system);
    font-size: 14px; /* Increased 25% from 11px to match verity and you messages */
    color: #000;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    padding: 2px 4px;
    outline: none;
}

.chat-input::placeholder { color: #808080; }

.chat-input:disabled {
    background: #c0c0c0;
    color: #808080;
}

.chat-send-btn {
    background: var(--win-button-face);
    color: var(--win-button-text);
    font-family: var(--font-system);
    font-size: 11px;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    padding: 2px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.chat-send-btn:active {
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.chat-send-btn:disabled {
    color: #808080;
    text-shadow: 0 1px 0 #ffffff;
}

/* ── Taskbar (macOS-style top bar) ────────────────────────────── */
#taskbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    z-index: 1000;
    background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
    border-bottom: 1px solid #999;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#taskbar-windows {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow: hidden;
    justify-content: flex-end;
}

.taskbar-btn {
    flex: 0 0 auto;
    max-width: 180px;
    height: 18px;
    font-family: var(--font-system);
    font-size: 11px;
    color: #000;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 3px;
}

.taskbar-btn:hover {
    background: rgba(0,0,0,0.08);
}

.taskbar-btn.active {
    background: rgba(0,0,128,0.15);
    font-weight: bold;
}

.taskbar-tray {
    display: flex;
    align-items: center;
    height: 18px;
    padding: 0 8px;
    font-family: var(--font-system);
    font-size: 11px;
    color: #000;
    border-left: 1px solid #aaa;
}

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: #c0c0c0; }
::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
}
::-webkit-scrollbar-button {
    display: block;
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
}
::-webkit-scrollbar-corner { background: #c0c0c0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .window {
        left: 5px !important;
        right: 5px !important;
        width: auto !important;
        max-width: calc(100vw - 10px) !important;
    }
}

/* ── Taskbar Menu ─────────────────────────────────────────────── */
.taskbar-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.taskbar-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
}

.taskbar-menu-btn:hover {
    background: rgba(0,0,0,0.08);
}

.menu-dot {
    width: 3px;
    height: 3px;
    background: #000;
    border-radius: 50%;
}

.taskbar-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
    border: 1px solid #999;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 180px;
    padding: 4px 0;
    z-index: 1001;
}

.taskbar-menu-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-system);
    font-size: 12px;
    color: #000;
    cursor: pointer;
}

.taskbar-menu-item:hover {
    background: rgba(0,0,0,0.08);
}

#taskbar-terminate-btn {
    color: #d00;
    font-weight: bold;
}

#taskbar-terminate-btn:hover {
    background: #d00;
    color: #fff;
}

@keyframes heavyGlitch {
    0% { transform: translate(0) skew(0deg); filter: hue-rotate(0deg) invert(0); }
    10% { transform: translate(-5px, 2px) skew(5deg); filter: hue-rotate(90deg) invert(0.2); }
    20% { transform: translate(4px, -3px) skew(-8deg); filter: hue-rotate(180deg) invert(0.5); }
    30% { transform: translate(-2px, 5px) skew(3deg); filter: hue-rotate(270deg) invert(0); }
    40% { transform: translate(3px, 1px) skew(-2deg); filter: hue-rotate(0deg) invert(0.8); }
    50% { transform: translate(-4px, -4px) skew(10deg); filter: hue-rotate(120deg) invert(0.3); }
    60% { transform: translate(5px, 3px) skew(-5deg); filter: hue-rotate(240deg) invert(0.6); }
    70% { transform: translate(-3px, -1px) skew(2deg); filter: hue-rotate(60deg) invert(0.1); }
    80% { transform: translate(2px, 4px) skew(-3deg); filter: hue-rotate(300deg) invert(0.9); }
    90% { transform: translate(-1px, -2px) skew(0deg); filter: hue-rotate(150deg) invert(0); }
    100% { transform: translate(0) skew(0deg); filter: hue-rotate(0deg) invert(0); }
}

.heavy-desktop-glitch {
    animation: heavyGlitch 0.2s steps(2) infinite;
    background: #000 !important;
}

/* ── Notepad App Styles ────────────────────────────────────────── */
.notepad-menu {
    display: flex;
    gap: 12px;
    padding: 2px 8px;
    border-bottom: 1px solid var(--win-border-medium);
    background: var(--win-surface);
    font-size: 11px;
}

.notepad-menu-item {
    cursor: default;
    color: #000;
}

.notepad-menu-item span {
    text-decoration: underline;
}

.notepad-textarea {
    flex: 1;
    background: #fff;
    color: #000;
    border-top: 2px solid var(--win-border-medium);
    border-left: 2px solid var(--win-border-medium);
    border-right: 2px solid var(--win-border-light);
    border-bottom: 2px solid var(--win-border-light);
    padding: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 1.4;
    overflow-y: auto;
    resize: none;
    outline: none;
    white-space: pre-wrap;
    user-select: text; /* Allows players to highlight/copy text */
}
