* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(ellipse at top, #241f18 0%, var(--color-bg) 65%);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  margin: 0 0 var(--space-2) 0;
  color: var(--color-accent-strong);
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img, svg {
  display: block;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#screen-root {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

#modal-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

#toast-root {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  pointer-events: none;
}

/* panneau d'actions rapides — voir ui/components/QuickActionPanel.js. Ancré
   en bas, entre les orbes HP/Mana (au-dessus de la barre de stamina, voir
   .hud-center/.hud-orb-group dans components.css), visible uniquement sur
   l'onglet Carte (voir Router.js). Au-dessus de #modal-root (z-index 100)
   pour rester utilisable par-dessus la carte ET le popup de combat, mais
   sous les orbes (z-index 260) qui masquent les bords au défilement. */
#quickpanel-root {
  position: fixed;
  bottom: 74px;
  left: 40px;
  right: 40px;
  z-index: 90;
  pointer-events: none;
}

/* popovers — voir ui/components/Popover.js. Toujours par-dessus tout le
   reste (modales comprises), complètement indépendant de l'endroit d'où ils
   sont ouverts. */
#popover-root {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 4px;
}
