  /* ============================================================
     PUEBLO v2
     Changes from v1:
     - Quit-to-menu button
     - Mobile virtual D-pad + action button (touch only)
     - Scrolling world camera (works on any screen size)
     - New private residence (Casa de Rosa, unlocks on friendship)
     - Office door fix (door-on-top logic)
     - Jobs tab on the apartment computer
     - English on-demand only (hover-to-translate removed)
     - Modal sizing improved for mobile
     ============================================================ */

  :root {
    --terracotta: #c25a3c;
    --terracotta-dark: #8a3a25;
    --ochre: #d4a04a;
    --ochre-dark: #a87a2c;
    --plaster: #f4ead5;
    --plaster-warm: #ebdcb8;
    --sage: #7a8c5c;
    --sage-dark: #4f5e3b;
    --sky: #e6c98c;
    --night: #2a1e1a;
    --night-soft: #4a352c;
    --ink: #2a1e1a;
    --paper: #faf3e0;
    --shadow: rgba(58, 32, 18, 0.25);
    --accent-blue: #3d6b8c;
    --accent-red: #b83a2a;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

  html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink);
    background: var(--night);
    -webkit-font-smoothing: antialiased;
    touch-action: none;
    overscroll-behavior: none;
    user-select: none;
    -webkit-user-select: none;
  }

  #game {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--sky);
  }

  #game::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      radial-gradient(circle at 20% 30%, transparent 0%, rgba(0,0,0,0.04) 100%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0 0.15  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: 0.7;
    z-index: 1000;
    mix-blend-mode: multiply;
  }

  canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }

  /* ============ TOPBAR ============ */
  .topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 50;
    gap: 10px;
    flex-wrap: wrap;
  }

  .stats-card, .info-card {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 4px 4px 0 var(--shadow);
    pointer-events: auto;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
  }

  .stats-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
  .stat { display: flex; align-items: center; gap: 6px; }
  .stat-icon { font-family: 'Fraunces', serif; font-weight: 800; font-size: 13px; }
  .stat-bar { width: 50px; height: 8px; background: var(--plaster-warm); border: 1px solid var(--ink); overflow: hidden; }
  .stat-bar-fill { height: 100%; transition: width 0.3s ease, background 0.3s ease; }
  .stat-hunger .stat-bar-fill { background: var(--terracotta); }
  .stat-thirst .stat-bar-fill { background: var(--accent-blue); }
  .stat-energy .stat-bar-fill { background: var(--ochre); }

  .info-card { text-align: right; min-width: 140px; }
  .info-money { font-size: 17px; font-weight: 600; color: var(--sage-dark); font-family: 'Fraunces', serif; }
  .info-time { color: var(--night-soft); margin-top: 2px; }
  .info-level { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--ink); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terracotta-dark); }

  /* Quit button — small icon in topbar */
  .quit-btn {
    pointer-events: auto;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    box-shadow: 4px 4px 0 var(--shadow);
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    transition: all 0.1s;
    flex-shrink: 0;
  }
  .quit-btn:hover, .quit-btn:active { background: var(--terracotta); color: var(--paper); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }

  @media (max-width: 600px) {
    .stats-card { padding: 6px 10px; gap: 10px; font-size: 11px; }
    .stat-bar { width: 40px; height: 7px; }
    .info-card { min-width: 100px; padding: 6px 10px; }
    .info-money { font-size: 15px; }
    .info-time { font-size: 11px; }
    .info-level { font-size: 9px; }
    .quit-btn { width: 32px; height: 32px; font-size: 14px; }
  }

  /* ============ DESKTOP CONTROLS HINT ============ */
  .controls-hint {
    position: absolute;
    bottom: 14px;
    left: 20px;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    box-shadow: 3px 3px 0 var(--shadow);
    z-index: 50;
    pointer-events: none;
  }

  .controls-hint kbd { background: var(--plaster-warm); border: 1px solid var(--ink); border-radius: 2px; padding: 1px 5px; font-family: inherit; font-size: 10px; margin: 0 1px; }

  body.touch .controls-hint { display: none; }

  /* ============ TOUCH CONTROLS ============ */
  .touch-controls {
    display: none;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    padding: 0 16px 24px;
    pointer-events: none;
  }

  body.touch .touch-controls { display: flex; justify-content: space-between; align-items: flex-end; }

  .dpad {
    position: relative;
    width: 150px;
    height: 150px;
    pointer-events: auto;
  }

  .dpad-btn {
    position: absolute;
    background: rgba(250, 243, 224, 0.85);
    border: 2px solid var(--ink);
    border-radius: 6px;
    box-shadow: 2px 2px 0 var(--shadow);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.05s, background 0.1s;
    touch-action: none;
  }

  .dpad-btn.pressed { background: var(--ochre); transform: scale(0.95); }
  .dpad-up { top: 0; left: 50%; transform: translateX(-50%); }
  .dpad-down { bottom: 0; left: 50%; transform: translateX(-50%); }
  .dpad-left { left: 0; top: 50%; transform: translateY(-50%); }
  .dpad-right { right: 0; top: 50%; transform: translateY(-50%); }

  .action-btn {
    pointer-events: auto;
    background: var(--terracotta);
    color: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 50%;
    width: 76px;
    height: 76px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 3px 3px 0 var(--shadow);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    touch-action: none;
    transition: transform 0.05s, background 0.1s;
  }

  .action-btn.pressed { background: var(--terracotta-dark); transform: scale(0.92); }

  @media (max-height: 600px) {
    .touch-controls { padding-bottom: 12px; }
    .dpad { width: 130px; height: 130px; }
    .dpad-btn { width: 40px; height: 40px; font-size: 18px; }
    .action-btn { width: 64px; height: 64px; font-size: 12px; }
  }

  /* ============ INTERACTION PROMPT ============ */
  .prompt {
    position: absolute;
    background: var(--ink);
    color: var(--paper);
    padding: 6px 12px;
    border-radius: 3px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    z-index: 60;
    box-shadow: 2px 2px 0 var(--shadow);
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
  }
  .prompt.show { opacity: 1; }
  .prompt::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--ink);
  }
  body.touch .prompt { display: none; }

  /* ============ MODAL ============ */
  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 30, 26, 0.55);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
  }
  .modal-backdrop.show { display: flex; }

  .modal {
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 6px;
    box-shadow: 8px 8px 0 var(--shadow);
    max-width: 560px;
    width: 100%;
    max-height: 86vh;
    max-height: 86dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.25s ease-out;
  }

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

  .modal-header {
    padding: 14px 18px;
    background: var(--plaster-warm);
    border-bottom: 1.5px solid var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .modal-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; color: var(--terracotta-dark); letter-spacing: -0.01em; }
  .modal-subtitle { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--night-soft); text-transform: uppercase; letter-spacing: 0.08em; }

  .modal-close {
    background: transparent;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    width: 32px; height: 32px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .modal-close:hover, .modal-close:active { background: var(--ink); color: var(--paper); }

  .modal-body { padding: 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }

  /* ============ NPC DIALOG ============ */
  .npc-portrait { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
  .npc-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--paper);
    box-shadow: 2px 2px 0 var(--shadow);
  }
  .npc-info { flex: 1; padding-top: 4px; }
  .npc-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; }
  .npc-role { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--night-soft); text-transform: uppercase; letter-spacing: 0.08em; }

  .speech {
    background: white;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: 3px 3px 0 var(--shadow);
  }
  .speech-spanish { font-family: 'Fraunces', serif; font-size: 19px; line-height: 1.4; color: var(--ink); font-weight: 500; }

  .translation-toggle {
    margin-top: 10px;
    background: transparent;
    border: 1px dashed var(--night-soft);
    color: var(--night-soft);
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .translation-toggle:hover, .translation-toggle:active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .translation {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--night-soft);
    font-family: 'Caveat', cursive;
    font-size: 17px;
    color: var(--sage-dark);
    line-height: 1.3;
    display: none;
  }
  .translation.show { display: block; }

  /* ============ OPTIONS ============ */
  .options { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

  .option {
    background: var(--plaster);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 12px 38px 12px 14px;
    text-align: left;
    cursor: pointer;
    font-family: 'Fraunces', serif;
    font-size: 15px;
    transition: all 0.15s;
    line-height: 1.3;
    box-shadow: 2px 2px 0 var(--shadow);
    width: 100%;
    position: relative;
  }
  .option:hover, .option:active { background: var(--ochre); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }

  .option-hint-toggle {
    position: absolute;
    top: 6px; right: 6px;
    background: transparent;
    border: 1px dashed var(--night-soft);
    color: var(--night-soft);
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.6;
  }
  .option-hint-toggle:hover { opacity: 1; background: var(--paper); }
  .option-translation { display: none; margin-top: 6px; font-family: 'Caveat', cursive; font-size: 14px; color: var(--sage-dark); }
  .option-translation.show { display: block; }

  /* ============ SHOP ============ */
  .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }

  .shop-item {
    background: white;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    box-shadow: 2px 2px 0 var(--shadow);
    position: relative;
  }
  .shop-item:hover:not(.disabled), .shop-item:active:not(.disabled) { background: var(--plaster-warm); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
  .shop-item.disabled { opacity: 0.4; cursor: not-allowed; }
  .shop-item-icon { font-size: 28px; margin-bottom: 4px; line-height: 1; }
  .shop-item-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 14px; color: var(--terracotta-dark); }
  .shop-item-price { margin-top: 4px; font-family: 'DM Mono', monospace; font-size: 12px; color: var(--ink); }

  .shop-item-hint {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--plaster);
    border: 1px dashed var(--night-soft);
    color: var(--night-soft);
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 4px;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.6;
  }
  .shop-item-hint:hover { opacity: 1; }
  .shop-item-name-en { display: none; margin-top: 4px; font-family: 'Caveat', cursive; font-size: 12px; color: var(--sage-dark); }
  .shop-item-name-en.show { display: block; }

  /* ============ DEVICE SCREENS (computer, phone) ============ */
  .device-screen {
    background: var(--night);
    color: var(--plaster);
    padding: 16px;
    border-radius: 6px;
    border: 2px solid var(--ink);
    font-family: 'DM Mono', monospace;
    margin-top: 10px;
  }
  .device-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--ochre);
    padding-bottom: 4px;
  }
  .device-tab {
    background: transparent;
    color: var(--plaster);
    border: 1px solid transparent;
    border-bottom: none;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
  }
  .device-tab:hover { opacity: 1; }
  .device-tab.active { background: var(--ochre); color: var(--ink); opacity: 1; font-weight: 600; }

  .device-header {
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ochre);
  }

  .bill-list, .contact-list, .job-list { list-style: none; }

  .bill-item, .contact-item, .job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dotted rgba(244, 234, 213, 0.2);
    font-size: 13px;
  }

  .bill-item:last-child, .contact-item:last-child, .job-item:last-child { border-bottom: none; }
  .bill-info, .contact-info, .job-info { flex: 1; min-width: 0; }

  .bill-pay-btn, .contact-call-btn, .job-apply-btn {
    background: var(--ochre);
    color: var(--ink);
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }
  .bill-pay-btn:hover, .contact-call-btn:hover, .job-apply-btn:hover,
  .bill-pay-btn:active, .contact-call-btn:active, .job-apply-btn:active {
    background: var(--terracotta);
    color: var(--paper);
  }
  .bill-pay-btn:disabled, .job-apply-btn:disabled { opacity: 0.4; cursor: not-allowed; }

  .device-hint {
    font-size: 10px;
    color: var(--ochre);
    cursor: pointer;
    text-decoration: underline dashed;
    margin-left: 4px;
  }
  .device-hint-text {
    display: none;
    font-family: 'Caveat', cursive;
    font-size: 13px;
    color: var(--ochre);
    margin-left: 6px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
  }
  .device-hint-text.show { display: inline; }

  /* ============ TOAST ============ */
  .toast-container {
    position: absolute;
    top: 80px;
    right: 14px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: calc(100vw - 28px);
  }
  @media (max-width: 600px) { .toast-container { top: 100px; right: 10px; } }

  .toast {
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 10px 14px;
    box-shadow: 3px 3px 0 var(--shadow);
    font-family: 'Fraunces', serif;
    font-size: 14px;
    max-width: 280px;
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 3.5s forwards;
    pointer-events: auto;
    cursor: pointer;
  }
  .toast.toast-good { border-color: var(--sage-dark); color: var(--sage-dark); }
  .toast.toast-bad { border-color: var(--accent-red); color: var(--accent-red); }
  .toast.toast-money { border-color: var(--ochre-dark); color: var(--ochre-dark); }

  .toast-hint {
    display: block;
    margin-top: 4px;
    font-family: 'Caveat', cursive;
    font-size: 12px;
    color: var(--night-soft);
    font-style: italic;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s, max-height 0.2s;
  }
  .toast.show-hint .toast-hint { opacity: 1; max-height: 40px; }

  @keyframes toastIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
  @keyframes toastOut { to { transform: translateX(40px); opacity: 0; } }

  /* ============ TITLE SCREEN ============ */
  .title-screen {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #d4a85c 0%, #c25a3c 70%, #8a3a25 100%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    padding: 20px;
    overflow-y: auto;
  }
  .title-screen.hide { animation: fadeOut 0.5s forwards; }
  .title-screen.show-again { animation: fadeIn 0.4s forwards; opacity: 0; }
  @keyframes fadeOut { to { opacity: 0; pointer-events: none; } }
  @keyframes fadeIn { to { opacity: 1; pointer-events: auto; } }

  .title-main {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: clamp(56px, 14vw, 140px);
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-shadow: 4px 4px 0 var(--terracotta-dark);
    margin-bottom: 8px;
  }
  .title-sub {
    font-family: 'Caveat', cursive;
    font-size: clamp(20px, 4vw, 28px);
    color: var(--plaster);
    margin-bottom: 40px;
    transform: rotate(-2deg);
    text-align: center;
  }

  .level-select { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; max-width: 700px; }

  .level-btn {
    background: var(--paper);
    color: var(--ink);
    border: 2px solid var(--night);
    border-radius: 4px;
    padding: 14px 18px;
    cursor: pointer;
    text-align: left;
    box-shadow: 5px 5px 0 var(--night);
    transition: all 0.15s;
    width: 200px;
    max-width: 100%;
  }
  .level-btn:hover, .level-btn:active { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--night); }
  .level-num { font-family: 'DM Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terracotta-dark); margin-bottom: 4px; }
  .level-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; margin-bottom: 4px; }
  .level-desc { font-family: 'DM Mono', monospace; font-size: 11px; line-height: 1.5; color: var(--night-soft); }
  .title-credits { margin-top: 30px; font-family: 'DM Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.7; }

  /* ============ PHONE INDICATOR ============ */
  .phone-ringing {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: var(--paper);
    padding: 10px 18px;
    border: 1.5px solid var(--ink);
    border-radius: 30px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 3px 3px 0 var(--shadow);
    z-index: 80;
    cursor: pointer;
    animation: ring 0.6s infinite alternate;
    display: none;
    white-space: nowrap;
  }
  .phone-ringing.show { display: block; }
  @keyframes ring { from { transform: translateX(-50%) rotate(-2deg); } to { transform: translateX(-50%) rotate(2deg); } }

  /* ============ JOB / TYPING ============ */
  .typing-target {
    background: white;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 14px;
    margin: 14px 0;
    font-family: 'Fraunces', serif;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 2px 2px 0 var(--shadow);
  }
  .typing-input {
    width: 100%;
    background: var(--plaster);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 12px 14px;
    font-family: 'Fraunces', serif;
    font-size: 18px;
    outline: none;
  }
  .typing-input:focus { background: white; box-shadow: 0 0 0 3px var(--ochre); }
  .job-progress { height: 10px; background: var(--plaster-warm); border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; margin: 10px 0; }
  .job-progress-fill { height: 100%; background: var(--sage); transition: width 0.2s; }

  /* ============ SCENE LABEL ============ */
  .scene-label {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--paper);
    padding: 5px 16px;
    font-family: 'Caveat', cursive;
    font-size: 20px;
    border-radius: 30px;
    z-index: 40;
    box-shadow: 3px 3px 0 var(--shadow);
    pointer-events: none;
    white-space: nowrap;
  }
  @media (max-width: 600px) { .scene-label { top: 100px; font-size: 17px; padding: 4px 12px; } }

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--plaster-warm); }
  ::-webkit-scrollbar-thumb { background: var(--terracotta); border: 1px solid var(--ink); }
