  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #f4f0ea;          /* Washi Paper */
    --surface: #ffffff;     /* Pure White Surface */
    --surface2: #eae4da;    /* Hover State */
    --border: #dfd7cc;      /* Soft Line */
    --border2: #c5bba9;     /* Stronger Line */
    --text: #2c2a28;        /* Sumi-e Black */
    --text2: #5e5954;       /* Charcoal */
    --text3: #948d85;       /* Ash Grey */
    --accent: #d96c75;      /* Sakura Pink / Red */
    --accent-light: #fce8ea;
    --accent2: #5c846f;     /* Matcha Green */
    --accent2-light: #e6f0eb;
    --warn: #c48a4d;        /* Golden / Karashi */
    --warn-light: #fbf2e8;
    --danger: #b33e4b;      /* Crimson / Beni */
    --danger-light: #fae1e4;
    --term-bg: #1c1a19;
    --term-text: #e6e3df;
    --term-green: #8ca376;
    --term-yellow: #d1b266;
    --term-blue: #8b9fb0;
    --term-red: #c96b53;
    --term-cyan: #72a38c;
    --term-prompt: #d96c75;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(44, 42, 40, 0.06);
    --shadow-lg: 0 16px 40px rgba(44, 42, 40, 0.12);
  }
  html, body { 
    height: 100%; 
    font-family: 'IBM Plex Sans', sans-serif; 
    background-color: var(--bg); 
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text); 
  }
  #root { height: 100%; display: flex; flex-direction: column; }
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
  button { font-family: inherit; cursor: pointer; border: none; }
  input { font-family: 'IBM Plex Mono', monospace; }
  .badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
  }
  .badge-green { background: var(--accent-light); color: var(--accent); }
  .badge-blue { background: var(--accent2-light); color: var(--accent2); }
  .badge-warn { background: var(--warn-light); color: var(--warn); }
  .badge-gray { background: var(--surface2); color: var(--text2); }
  @keyframes puppy-breathe {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.02) translateY(-2px); }
  }
  @keyframes puppy-run-frames {
    0%, 49% { background-image: url('../asset/puppy_run.png'); }
    50%, 100% { background-image: url('../asset/puppy_run2.png'); }
  }
  @keyframes puppy-jump-move {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-15px) scale(1.1); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-8px) scale(1.05); }
  }
  @keyframes puppy-curious {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.05); }
  }
  @keyframes puppy-sad {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px) rotate(-5deg); }
    75% { transform: translateX(4px) rotate(5deg); }
  }
  .puppy {
    position: absolute;
    right: 20px;
    bottom: 50px;
    width: 96px;
    height: 96px;
    background-image: url('../asset/cute_puppy.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 10;
  }
  .puppy.idle {
    background-image: url('../asset/cute_puppy.png');
    animation: puppy-breathe 3s infinite ease-in-out;
  }
  .puppy.typing {
    background-image: url('../asset/puppy_curious.png');
    animation: puppy-curious 0.2s forwards;
  }
  .puppy.success {
    animation: puppy-run-frames 0.2s infinite, puppy-jump-move 0.8s ease-out forwards;
  }
  .puppy.error {
    background-image: url('../asset/puppy_sad.png');
    animation: puppy-sad 0.4s ease-in-out;
  }
