  :root {
    --sky: #4aa8ff; --sky-deep: #2f7fe0; --navy: #16305e; --navy-dark: #0d1f42;
    --white: #ffffff; --panel: #f4f8ff; --accent: #ffd93b; --green: #3ddc84;
    --red: #ff5d5d; --shadow: rgba(13, 31, 66, .35);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: linear-gradient(180deg, #6fc0ff 0%, var(--sky) 50%, var(--sky-deep) 100%);
    color: var(--navy); min-height: 100vh; padding: 16px;
  }
  .hq { max-width: 1100px; margin: 0 auto; }

  .topbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    color: var(--white); text-shadow: 2px 2px 0 var(--navy);
    margin-bottom: 14px; font-size: clamp(10px, 2vw, 14px);
  }
  .badge {
    font-size: 8px; padding: 6px 10px; text-shadow: none;
    background: var(--accent); color: var(--navy-dark); border: 3px solid var(--navy);
  }
  .badge.live { background: var(--green); }
  .clock { font-size: 9px; }

  .grid { display: grid; grid-template-columns: 190px 1fr 240px; gap: 12px; }
  @media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

  .panel { background: var(--panel); border: 4px solid var(--navy); box-shadow: 0 6px 0 var(--shadow); }
  .panel h2 {
    font-size: 9px; background: var(--sky-deep); color: var(--white);
    padding: 9px 10px; border-bottom: 4px solid var(--navy);
  }
  .pad { padding: 12px; }

  /* staff */
  .avatar { width: 56px; height: 56px; image-rendering: pixelated; border: 3px solid var(--navy); background: #cfe0f7; }
  .role { font-size: 8px; line-height: 1.9; margin-top: 10px; }
  .role b { font-size: 10px; display: block; }
  .role .title { color: var(--sky-deep); }
  .bar { height: 12px; background: #cfe0f7; border: 3px solid var(--navy); margin: 8px 0 4px; }
  .bar i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .6s; }
  .bar.mc i { background: var(--green); }
  .tiny { font-size: 7px; color: #5a6b8c; line-height: 1.8; }

  /* ===== office scene ===== */
  .scene {
    position: relative; height: 340px; overflow: hidden;
    background: linear-gradient(180deg, #9fd4ff 0%, #7cc4ff 58%, #8a93a8 58%, #767f94 100%);
  }
  .scene .px { position: absolute; }
  .window { top: 26px; width: 64px; height: 52px; background: #d7ecff; border: 4px solid var(--navy); }
  .window::after { content: ""; position: absolute; inset: 0; border-left: 4px solid var(--navy); left: 50%; }
  .clockwall { top: 30px; right: 34px; width: 34px; height: 34px; background: var(--white); border: 4px solid var(--navy); border-radius: 50%; }
  .clockwall::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 11px; background: var(--navy); animation: tick 6s steps(12) infinite; transform-origin: bottom; }
  @keyframes tick { to { transform: rotate(360deg); } }

  .machine { left: 26px; bottom: 118px; width: 44px; height: 62px; background: #24304a; border: 4px solid var(--navy-dark); }
  .machine::before { content: ""; position: absolute; left: 10px; top: 8px; width: 16px; height: 8px; background: var(--green); }
  .machine::after { content: "COFFEE"; position: absolute; left: -6px; bottom: -22px; font-size: 6px; color: var(--white); font-family: 'Press Start 2P', monospace; }
  .plant { right: 30px; bottom: 118px; width: 26px; height: 34px; background: #2e9e5b; border: 3px solid var(--navy-dark); }
  .plant::after { content: ""; position: absolute; left: 4px; bottom: -18px; width: 14px; height: 16px; background: #a05a2c; border: 3px solid var(--navy-dark); }

  .desk { left: 50%; bottom: 96px; transform: translateX(-50%); width: 220px; height: 16px; background: #b0895f; border: 4px solid var(--navy); }
  .leg { bottom: 58px; width: 12px; height: 38px; background: #8a6a49; border: 3px solid var(--navy); }
  .monitor { left: 50%; bottom: 108px; transform: translateX(-104px); width: 84px; height: 62px; background: #24304a; border: 4px solid var(--navy); z-index: 2; }
  .chart { position: absolute; left: 8px; bottom: 6px; width: 64px; height: 42px; display: flex; align-items: flex-end; gap: 4px; }
  .chart i { flex: 1; background: var(--green); transition: height .8s; }

  .intern { left: 50%; bottom: 112px; transform: translateX(6px); width: 70px; height: 108px; transition: transform 1.4s ease-in-out; }
  .intern > div { position: absolute; }
  .hair { top: 0; left: 10px; width: 50px; height: 16px; background: #6b4a2b; border: 4px solid var(--navy); }
  .face { top: 12px; left: 14px; width: 42px; height: 34px; background: #f2c9a0; border: 4px solid var(--navy); }
  .eye { top: 24px; width: 7px; height: 9px; background: var(--navy); transition: height .2s; }
  .eye.l { left: 24px; } .eye.r { left: 40px; }
  .body { top: 44px; left: 8px; width: 54px; height: 44px; background: var(--white); border: 4px solid var(--navy); }
  .tie { top: 48px; left: 30px; width: 10px; height: 30px; background: var(--navy); }
  .arm { top: 62px; width: 26px; height: 10px; background: #f2c9a0; border: 3px solid var(--navy); }
  .arm.l { left: -12px; } .arm.r { right: -12px; }
  .legs { top: 86px; left: 16px; width: 38px; height: 20px; background: #33415e; border: 4px solid var(--navy); }

  .scene.typing .intern { animation: bob .35s steps(2) infinite; }
  .scene.idle .intern { animation: bob 1.6s steps(2) infinite; }
  @keyframes bob { 50% { margin-bottom: 4px; } }
  .scene.typing .arm { animation: typearm .25s steps(2) infinite; }
  @keyframes typearm { 50% { transform: translateY(4px); } }
  .scene.coffee .intern { transform: translateX(-210px); }
  .scene.sleeping .eye { height: 3px; }
  .scene.sleeping { filter: saturate(.7) brightness(.92); }
  .scene.sleeping .zzz { display: block; }
  .zzz { display: none; left: 50%; bottom: 236px; transform: translateX(48px); font-size: 12px; color: var(--navy); animation: floatz 2s linear infinite; }
  @keyframes floatz { 50% { margin-bottom: 8px; opacity: .5; } }

  .bubble {
    left: 50%; bottom: 236px; transform: translateX(-40px);
    max-width: 260px; background: var(--white); border: 4px solid var(--navy);
    font-size: 8px; line-height: 1.7; padding: 8px 10px; color: var(--navy);
    opacity: 0; transition: opacity .3s;
  }
  .bubble.show { opacity: 1; }
  .bubble::after { content: ""; position: absolute; bottom: -12px; left: 40px; border: 6px solid transparent; border-top-color: var(--navy); }

  .promo-banner {
    left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0); z-index: 5;
    background: var(--accent); border: 4px solid var(--navy); color: var(--navy-dark);
    font-size: 13px; padding: 16px 22px; transition: transform .35s;
  }
  .promo-banner.show { transform: translate(-50%, -50%) scale(1); }
  .confetti { width: 8px; height: 8px; top: -12px; z-index: 4; animation: fall 1.6s linear forwards; }
  @keyframes fall { to { transform: translateY(380px) rotate(540deg); opacity: 0; } }

  /* feed */
  .feed { display: flex; flex-direction: column; gap: 7px; max-height: 300px; overflow-y: auto; }
  .feed div {
    background: var(--white); border: 3px solid var(--navy);
    font-size: 7.5px; line-height: 1.8; padding: 7px 9px;
    animation: slidein .3s;
  }
  @keyframes slidein { from { transform: translateX(16px); opacity: 0; } }
  .feed .xp { color: #1f9d5c; }
  .feed .ts { color: #8a9bbd; }

  .statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
  @media (max-width: 860px) { .statrow { grid-template-columns: 1fr 1fr; } }
  .stat { background: var(--navy); border: 4px solid var(--navy-dark); box-shadow: 0 5px 0 var(--shadow); padding: 12px; color: var(--white); }
  .stat .k { font-size: 7px; color: #9db8e8; }
  .stat .v { font-size: clamp(11px, 1.8vw, 15px); margin-top: 9px; color: var(--accent); }
  .stat .v.up { color: var(--green); }

  .foot { margin-top: 14px; font-size: 7px; color: var(--white); text-shadow: 1px 1px 0 var(--navy); line-height: 2; text-align: center; }
  .foot a { color: var(--accent); }
  @media (prefers-reduced-motion: reduce) {
    .scene .intern, .scene .arm, .zzz, .clockwall::after { animation: none !important; }
  }

/* ===== mobile tuning ===== */
@media (max-width: 480px) {
  body { padding: 10px; }
  .topbar { justify-content: center; text-align: center; }
  .scene { height: 300px; }
  .bubble { max-width: 150px; transform: translateX(-20px); font-size: 7px; }
  .scene.coffee .intern { transform: translateX(-118px); }
  .machine { left: 12px; }
  .window { width: 48px; height: 42px; }
  .statrow { gap: 8px; }
  .stat { padding: 10px 8px; }
}
