:root {
  --paper: #FFFDF7;
  --ink: #0B1120;
  --ink2: #334155;
  --mute: #475569;
  --hair: #E2E8F0;
  --hair-strong: #CBD5E1;
  --accent: #EAB308;
  --accent-bright: #FACC15;
  --accent-dark: #CA8A04;
  --accent-text: #854D0E;
  --band: #FEFCE8;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(1000px 520px at 92% -8%, rgba(234, 179, 8, 0.16), transparent 62%),
    radial-gradient(800px 460px at -8% 8%, rgba(250, 204, 21, 0.12), transparent 58%),
    radial-gradient(700px 400px at 50% 100%, rgba(202, 138, 4, 0.06), transparent 60%),
    var(--paper);
  color: var(--ink);
}
.font-serif-display { font-family: 'Instrument Serif', Georgia, serif; }
.font-mono-code { font-family: 'Google Sans Code', monospace; }
.fade-in { animation: fadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
button, select, input, textarea { touch-action: manipulation; border-radius: 10px; }

article, .premium-card {
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(11, 17, 32, 0.04), 0 10px 30px -14px rgba(11, 17, 32, 0.10);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -12px rgba(11, 17, 32, 0.16);
}
.glass-nav {
  background: rgba(255, 253, 247, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ppt-stage {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(250, 204, 21, 0.10), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(234, 179, 8, 0.08), transparent 60%),
    #FFFFFF;
  box-shadow: 0 24px 60px -20px rgba(11, 17, 32, 0.22), 0 0 0 1px rgba(202, 138, 4, 0.20);
}
.draw-mode-active {
  box-shadow: 0 0 0 3px #FACC15, 0 24px 60px -20px rgba(11, 17, 32, 0.28) !important;
}
.pyq-opt-btn:active, .test-opt-btn:active, .rapid-opt-btn:active { transform: scale(0.99); }

/* Sidebar Annotation Tools (Yellow Active) */
.ann-tool-active {
  background: #FACC15 !important;
  color: #0B1120 !important;
  border-color: #FEF08A !important;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.40);
}
.ann-swatch-active {
  outline: 2.5px solid #FFFFFF;
  outline-offset: 2px;
  transform: scale(1.12);
}

.live-pulse { animation: pulseDot 1.6s infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.timer-ring-progress { transition: stroke-dashoffset 0.35s linear, stroke 0.25s ease; }
.timer-urgent { animation: urgentPulse 0.85s infinite; }
@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(225, 29, 72, 0); }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #EAB308; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #CA8A04; }
@media (max-width: 640px) {
  .tab-btn { min-height: 40px; white-space: nowrap; }
  .pyq-opt-btn, .test-opt-btn, .rapid-opt-btn { min-height: 46px; }
}
