/* ==========================================================================
   ARCVEL V38 — ONE FONT FOR EVERY WORD: Jersey 10 (loaded LAST in game.html)
   Change the font for the whole game by editing --font-ui below.
   Sizes scale with the game width (cqw), so nothing is clipped on smaller windows.
   ========================================================================== */
:root{
  --font-ui:'Jersey 10','Pixelify Sans',monospace;
  --font-display:var(--font-ui); --font-body:var(--font-ui);
  /* older stylesheets read these variables, point them all at the same font */
  --px-font:var(--font-ui); --f:var(--font-ui); --ui-font:var(--font-ui); --ui-display:var(--font-ui);
}
html body,html body *,html body *::before,html body *::after,
html body #gameShell *,html body .modal *,html body .guideOverlay *,html body .mobileControls *{
  font-family:var(--font-ui) !important;font-weight:400 !important;font-synthesis:none !important;text-rendering:auto;
}
html body #gameShell{container-type:inline-size;container-name:shell}

/* ---------- in-game bar (sizes follow the game width) ---------- */
html body .arcvelBrandName{font-size:clamp(24px,2.7cqw,36px) !important;letter-spacing:2px !important;line-height:1 !important}
html body #gameShell > header small{font-size:clamp(15px,1.5cqw,22px) !important;letter-spacing:2px !important;color:#c4beff !important}
html body #gameShell .topActions{gap:clamp(6px,.8cqw,10px) !important}
html body #gameShell .topActions button,html body #gameShell .backHome,html body #gameShell .volumeControl{
  font-size:clamp(15px,1.55cqw,21px) !important;letter-spacing:.5px !important;line-height:1 !important;padding:clamp(7px,.8cqw,11px) clamp(7px,.85cqw,12px) !important}
html body #gameShell .volumeControl input[type=range]{width:clamp(40px,5cqw,62px) !important}
html body #gameShell .hud span,html body #gameShell .hud small{font-size:clamp(18px,2.1cqw,28px) !important;letter-spacing:1px !important}
html body #gameShell #chapterLabel,html body #gameShell .hud > div:nth-child(2) > span{font-size:clamp(16px,1.9cqw,26px) !important;letter-spacing:.5px !important}
html body #gameShell .hud b#heroStats,html body #gameShell .hud > div:nth-child(2) > b{font-size:clamp(26px,2.8cqw,38px) !important;letter-spacing:1px !important}
html body #gameShell #shieldStatus b,html body #gameShell #shieldStatus span{font-size:clamp(26px,3cqw,40px) !important;letter-spacing:1px !important}
html body #gameShell .mission b{font-size:clamp(20px,2.3cqw,30px) !important;letter-spacing:.5px !important;line-height:1.15 !important}
html body #gameShell .mission span{font-size:clamp(20px,2.2cqw,28px) !important;letter-spacing:.5px !important;line-height:1.15 !important}
html body #gameShell .skillHints span{font-size:clamp(14px,1.4cqw,19px) !important;letter-spacing:.5px !important;line-height:1 !important;padding:clamp(7px,.9cqw,12px) clamp(8px,1cqw,14px) !important}
html body #gameShell .under{gap:clamp(10px,1.5cqw,20px) !important}
html body #gameShell .skillHints{flex-wrap:wrap !important;gap:clamp(8px,1cqw,14px) !important}
html body kbd{font-size:18px !important}

/* ---------- popups (menu, inventory, heroes, tutorial, victory / game over) ---------- */
html body .eyebrow{font-size:21px !important;letter-spacing:2px !important}
html body .startPanel h1,html body .modal .panel h1{font-size:58px !important;letter-spacing:3px !important;line-height:1.1 !important}
html body .modal .panel h2,html body #chapterIntroTitle,html body #victoryTitle,html body #gameOverTitle{font-size:40px !important;letter-spacing:2px !important;line-height:1.1 !important}
html body .modal .panel h3,html body .chapterRewardToast strong{font-size:28px !important;line-height:1.1 !important}
html body .modal button,html body .armoryTab,html body .slotToggle{font-size:21px !important;letter-spacing:1px !important;line-height:1.1 !important}
html body .modal .panel p,html body .modal .panel li,html body .modal .panel small,
html body .gearDesc,html body .gearMeta,html body .gearState,html body .gearRequirement,html body .revealItemDesc,html body .diceStatusText,
html body .chapterLore,html body .chapterHint,html body .tutorialGrid p,html body .guideBody,html body .guideBody *,html body .heroesNote,html body .hlHint,html body .soulText small,html body .startSubtitle{
  font-size:25px !important;line-height:1.15 !important;letter-spacing:.5px !important}
html body .menuFooter{font-size:22px !important}
html body .soulText b,html body .revealItemStat,html body .rarityBar span{font-size:26px !important}

/* ---------- small screens ---------- */
@media (max-width:900px){
  html body .arcvelBrandName{font-size:22px !important}
  html body #gameShell > header small{font-size:14px !important}
  html body #gameShell .topActions button,html body #gameShell .backHome,html body #gameShell .volumeControl{font-size:15px !important;padding:7px 8px !important}
  html body #gameShell .hud span,html body #gameShell .hud small{font-size:18px !important}
  html body #gameShell #chapterLabel,html body #gameShell .hud > div:nth-child(2) > span{font-size:16px !important}
  html body #gameShell .hud b#heroStats{font-size:24px !important}
  html body #gameShell #shieldStatus b,html body #gameShell #shieldStatus span{font-size:24px !important}
  html body #gameShell .mission b{font-size:20px !important}
  html body #gameShell .mission span{font-size:19px !important}
  html body #gameShell .skillHints span{font-size:14px !important;padding:7px 9px !important}
  html body .startPanel h1,html body .modal .panel h1{font-size:44px !important}
  html body .modal .panel h2{font-size:30px !important}
  html body .modal .panel p,html body .gearDesc,html body .chapterLore,html body .tutorialGrid p,html body .guideBody,html body .guideBody *{font-size:21px !important}
  html body .modal button,html body .armoryTab,html body .slotToggle{font-size:18px !important}
}

/* boost: beats older single-id rules so no word can fall back to another font */
html body #gameShell#gameShell,html body #gameShell#gameShell *,html body #gameShell#gameShell *::before,html body #gameShell#gameShell *::after,
html body .modal.modal,html body .modal.modal *,html body .guideOverlay.guideOverlay,html body .guideOverlay.guideOverlay *,
html body .mobileControls.mobileControls *,html body .chapterRewardToast.chapterRewardToast,html body .chapterRewardToast.chapterRewardToast *{
  font-family:var(--font-ui) !important;
}

/* header layout on desktop: one row of buttons (older mobile rules turned it into a grid), wraps only if the window is really narrow */
@media (min-width:901px){
  html body #gameShell#gameShell > header{display:flex !important;grid-template-columns:none !important;flex-wrap:nowrap !important}
  html body #gameShell#gameShell .topActions{display:flex !important;grid-template-columns:none !important;flex-wrap:nowrap !important;width:auto !important;overflow:visible !important}
  html body #gameShell#gameShell .topActions > *{flex:0 0 auto !important;width:auto !important}
}
@container shell (max-width:1000px){
  html body #gameShell#gameShell > header{flex-wrap:wrap !important}
  html body #gameShell#gameShell .topActions{flex-wrap:wrap !important;justify-content:flex-start !important}
}
