*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #d4a80a #141414;
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: #141414;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f5c518 0%, #a88608 100%);
  border-radius: 6px;
  border: 3px solid #141414;
}

html::-webkit-scrollbar-thumb:hover {
  background: #f5c518;
}

body {
  background: #0a0a0a;
  min-height: 100vh;
  overflow-anchor: none;
}

.stage {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background: #0a0a0a;
}

.zoom-shell {
  width: min(100vw, 52rem);
}

.zoom-scaler {
  transform-origin: top center;
  will-change: transform;
}

#comic {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#comic canvas {
  display: block;
}

.zoom-controls {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 0.4rem;
  backdrop-filter: blur(8px);
  z-index: 10;
  user-select: none;
}

@media (min-width: 768px) and (pointer: fine) {
  .zoom-controls {
    display: flex;
  }
}

.zoom-controls button {
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  line-height: 1;
  color: #f5c518;
  background: transparent;
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.zoom-controls button:hover {
  background: rgba(245, 197, 24, 0.12);
  border-color: #f5c518;
}

.zoom-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#zoom-label {
  min-width: 3rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a1a1aa;
  font-family: system-ui, sans-serif;
}
