/* paodao.fr's inventory book (book.js), their rules from their stylesheet (#GAME .InventoryReactView ...), their rem
   written as var(--r): their root is 19px, 12px under 64em wide. Their images: page, cover and spiral (pao/img/inventory),
   the arrow keys (pao/img/key-*.webp), their script font Indie Flower (SIL OFL). */
@font-face { font-family: indie_flowerregular; src: url(/game/client/pao/fonts/indieflower-regular-webfont.woff2) format('woff2'), url(/game/client/pao/fonts/indieflower-regular-webfont.woff) format('woff'); font-weight: 400; font-style: normal; font-display: swap; }

#mpHud .mp-bag { z-index: 51; }   /* their bag stays above the darkened book view */
#mpHud #paoBook {
  --r: 19px; --view-transition: 0; --color-black: rgb(11 11 11); --fontFamily-script: "indie_flowerregular", arial; --transitionDuration: .25s;
  position: absolute; inset: 0; z-index: 50; pointer-events: all;   /* over every HUD layer (toasts 36, flash 40, confetti 45), as theirs covers all but the bag and the gears */
  font-size: var(--r); text-shadow: none; line-height: normal;
  opacity: var(--view-transition); will-change: opacity;
  background-color: #00000077; background-position: center; color: var(--color-black); font-family: var(--fontFamily-script);
}
#mpHud #paoBook[hidden] { display: none; }
#mpHud #paoBook button {
  all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  display: flex; align-items: center; justify-content: center; gap: 2dvh; flex-direction: row-reverse;
  margin: 0; padding: 0; border: none; background: none; font-size: 1em;
  pointer-events: all; color: var(--color-black); font-family: var(--fontFamily-script); line-height: 100%;
}
#mpHud #paoBook button.new { text-decoration: underline dotted; }
#mpHud #paoBook .buttonBase_shortcut_img { height: calc(var(--r) * 1.5); display: inline-block; }
#mpHud #paoBook .pagesContainer { position: absolute; top: 50%; left: 50%; aspect-ratio: 1.5; height: min(80dvh, 50vw); width: auto; transform: translate(-50%, -50%) translateY(calc((1 - var(--view-transition)) * 100%)); perspective: 2000px; transform-style: preserve-3d; pointer-events: none; }
#mpHud #paoBook .pagesContainer .cerceaux { position: absolute; top: 50%; left: 50%; width: 20%; height: 80%; transform: translate(-50%, -50%) translateZ(10px); background-image: url(/game/client/pao/img/inventory/cerceaux.webp); background-size: contain; background-repeat: no-repeat; background-position: center; transform-origin: 50% 50%; }
#mpHud #paoBook .pagesContainer .page { position: absolute; width: 50%; height: 100%; top: 0; left: 50%; transform-style: preserve-3d; transform-origin: 0 50%; pointer-events: all; }
#mpHud #paoBook .pagesContainer .page .turnButton { position: absolute; bottom: calc(var(--r) * .5); gap: calc(var(--r) * .25); }
#mpHud #paoBook .pagesContainer .page .turnButton img, #mpHud #paoBook .pagesContainer .page .turnButton span { transition: transform var(--transitionDuration); }
#mpHud #paoBook .pagesContainer .page .turnButton.recto { right: 5%; flex-direction: row-reverse; }
#mpHud #paoBook .pagesContainer .page .turnButton.recto:focus span, #mpHud #paoBook .pagesContainer .page .turnButton.recto:hover span { transform: rotate(-5deg) scale(1.1); }
#mpHud #paoBook .pagesContainer .page .turnButton.recto:focus img, #mpHud #paoBook .pagesContainer .page .turnButton.recto:hover img { transform: translate(.25em); }
#mpHud #paoBook .pagesContainer .page .turnButton.verso { left: 5%; flex-direction: row; }
#mpHud #paoBook .pagesContainer .page .turnButton.verso:focus span, #mpHud #paoBook .pagesContainer .page .turnButton.verso:hover span { transform: rotate(5deg); }
#mpHud #paoBook .pagesContainer .page .turnButton.verso:focus img, #mpHud #paoBook .pagesContainer .page .turnButton.verso:hover img { transform: translate(-.25em) scale(1.1); }
#mpHud #paoBook .pagesContainer .page .infoButton { position: relative; transition: transform var(--transitionDuration); }
#mpHud #paoBook .pagesContainer .page .infoButton::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 0%; height: .05em; transform-origin: center; background-color: var(--color-black); transform: translate(-50%); transition: width var(--transitionDuration) ease-out; }
#mpHud #paoBook .pagesContainer .page .infoButton:focus, #mpHud #paoBook .pagesContainer .page .infoButton:hover { transform: translateY(0) scale(1.05); }
#mpHud #paoBook .pagesContainer .page .infoButton:focus::after, #mpHud #paoBook .pagesContainer .page .infoButton:hover::after { width: 100%; }
#mpHud #paoBook .pagesContainer .page.couverture .pageContent .back { background-image: url(/game/client/pao/img/inventory/couverture.webp); }
#mpHud #paoBook .pagesContainer .page.couverture1Page .pageContent .content { align-items: center; justify-content: center; }
#mpHud #paoBook .pagesContainer .page.couverture1Page .pageContent .content .title { text-decoration: underline; font-size: calc(var(--r) * 2); line-height: 100%; text-align: center; }
#mpHud #paoBook .pagesContainer .page.couverture3Page .pageContent .content { align-items: center; }
#mpHud #paoBook .pagesContainer .page.couverture3Page .pageContent .content .title { text-decoration: underline; margin-bottom: calc(var(--r) * 2); font-size: 1.5em; }
#mpHud #paoBook .pagesContainer .page .pageContent { position: absolute; top: 0; left: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d; overflow: hidden; padding: 10% 5% 5%; padding-bottom: calc(var(--r) * 2.5); box-sizing: border-box; }
#mpHud #paoBook .pagesContainer .page .pageContent .back { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url(/game/client/pao/img/inventory/page.webp); background-size: 100% 100%; --back-rotation: 0deg; transform: rotate(var(--back-rotation)); }
#mpHud #paoBook .pagesContainer .page .pageContent .content { touch-action: none; position: relative; width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 0; overflow-y: auto; gap: calc(var(--r) * .25); -webkit-overflow-scrolling: touch; transform: translateZ(0); scrollbar-width: none; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .name { font-size: calc(var(--r) * 2); font-weight: 700; line-height: 100%; width: 100%; text-align: center; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .description { text-align: left; line-height: 120%; margin-bottom: calc(var(--r) * 2); }
#mpHud #paoBook .pagesContainer .page .pageContent .content .imageContainer { width: 100%; height: 100%; padding: calc(var(--r) * 2) 0; box-sizing: border-box; min-height: 0; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .imageContainer .image { width: 100%; height: 100%; object-fit: contain; }
#mpHud #paoBook .pagesContainer .page .pageContent .pageNumber { display: none; position: absolute; bottom: var(--r); left: 50%; font-size: calc(var(--r) * .85); }
#mpHud #paoBook .pagesContainer .page.recto .pageContent { padding-left: 12%; }
#mpHud #paoBook .pagesContainer .page.verso .pageContent { transform: rotateY(180deg); padding-right: 12%; }
#mpHud #paoBook .pagesContainer .page.verso .pageContent .back { transform: scaleX(-1) rotate(var(--back-rotation)); }
/* ours: the Collection's count under their "Notes:" list, in their note text */
#mpHud #paoBook .pagesContainer .page.couverture3Page .pageContent .content .count { margin-top: calc(var(--r) * 2); font-size: calc(var(--r) * .85); text-align: center; }
@media screen and (max-width: 64em) { #mpHud #paoBook { --r: 12px; } }
/* ours: on a screen shorter than theirs the book shrinks but their 19px did not, so a page's notes ran off it; the unit
   follows the book's height instead (19px on a book 720px tall, as at 1600 x 900), never above their 19px; their 12px
   still holds under 64em wide */
@media screen and (min-width: 64.0625em) { #mpHud #paoBook { --r: clamp(12px, calc(min(80dvh, 50vw) / 37.9), 19px); } }
/* ours: the guide's contents (section names over their chapter list), lists, the two-column rows and the pictures */
#mpHud #paoBook .pagesContainer .page.couverture3Page .pageContent .content .title { margin-bottom: var(--r); }
#mpHud #paoBook .pagesContainer .page.couverture3Page .pageContent .content .toc { width: 100%; column-count: 2; column-gap: 1em; }
#mpHud #paoBook .pagesContainer .page.couverture3Page .pageContent .content .group { break-inside: avoid; display: flex; flex-direction: column; align-items: center; gap: calc(var(--r) * .25); padding-bottom: calc(var(--r) * .9); }
#mpHud #paoBook .pagesContainer .page.couverture3Page .pageContent .content .section { margin-bottom: calc(var(--r) * .15); font-size: calc(var(--r) * .85); text-decoration: underline; opacity: .75; }
#mpHud #paoBook .pagesContainer .page.couverture3Page .pageContent .content .infoButton { text-align: center; white-space: normal; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .list { margin: 0 0 calc(var(--r) * 1.2); padding: 0 0 0 1.1em; line-height: 120%; list-style: none; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .list li { position: relative; margin-bottom: .45em; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .list li::before { content: '-'; position: absolute; left: -1em; }
/* a payout's Solscan, after its line (owner 2026-10-22) */
#mpHud #paoBook .pagesContainer .page .pageContent .content .list li .link { color: inherit; text-decoration: underline; text-underline-offset: 2px; margin-left: .35em; cursor: pointer; pointer-events: auto; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .rows { display: grid; grid-template-columns: auto 1fr; column-gap: 1.2em; row-gap: .3em; width: 100%; margin-bottom: calc(var(--r) * 1.2); line-height: 120%; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .rows .k { white-space: nowrap; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .imageContainer svg { width: 100%; height: 100%; display: block; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .imageContainer .image.invert { filter: invert(1) brightness(.35); }
#mpHud #paoBook .pagesContainer .page .pageContent .content .description:last-child, #mpHud #paoBook .pagesContainer .page .pageContent .content .list:last-child { margin-bottom: 0; }
/* ours, to find a page fast (owner 2026-10-22: "organized in the book to quickly be able to navigate it"): */
/* the contents over the first spread (the cover's inside is a paper page now) */
#mpHud #paoBook .pagesContainer .page.contentsPage .pageContent .content .toc { column-gap: 1.4em; }
/* the small Contents link at the top of a chapter's left page */
#mpHud #paoBook .pagesContainer .page .pageContent .homeLink { position: absolute; top: 3.4%; left: 6%; z-index: 2; flex-direction: row; gap: .35em; font-size: calc(var(--r) * .8); opacity: .6; transition: opacity var(--transitionDuration) ease, transform var(--transitionDuration) ease; }
#mpHud #paoBook .pagesContainer .page .pageContent .homeLink::before { content: '\2039'; font-size: 1.3em; line-height: .7; }
#mpHud #paoBook .pagesContainer .page .pageContent .homeLink:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) { #mpHud #paoBook .pagesContainer .page .pageContent .homeLink:hover { opacity: 1; transform: translateX(-.15em); } }
/* a picture over both pages (the island map): each page holds the whole spread's box and shows its own half */
#mpHud #paoBook .pagesContainer .page .pageContent .spread { position: absolute; top: 3%; bottom: calc(var(--r) * 2.2); left: 0; width: 200%; pointer-events: none; }
#mpHud #paoBook .pagesContainer .page.recto .pageContent .spread { left: -100%; }
#mpHud #paoBook .pagesContainer .page .pageContent .spread svg { display: block; width: 100%; height: 100%; }
#mpHud #paoBook .pagesContainer .page .pageContent .content .imageContainer.map { padding: calc(var(--r) * .9) 0 0; }
/* the section tabs: coloured paper tucked under the right-hand pages, one per section and one for the contents; the
   open section's tab pulled out a little further. Off on a narrow screen, where the book leaves no room beside it. */
#mpHud #paoBook .pagesContainer .tabs { position: absolute; left: 100%; top: 3%; bottom: 3%; width: min(calc(var(--r) * 6.6), calc((100vw - 100%) / 2 + var(--r) * 1.2)); display: flex; flex-direction: column; gap: calc(var(--r) * .2); pointer-events: none; transform: translateZ(-1px); }
#mpHud #paoBook .pagesContainer .tabs .tab { --tab: #e9cf7a; pointer-events: all; flex: 1 1 0; min-height: 0; max-height: calc(var(--r) * 3); flex-direction: row; justify-content: flex-start; box-sizing: border-box; padding: 0 calc(var(--r) * .45) 0 calc(var(--r) * 1.6);
  border-radius: 0 calc(var(--r) * .4) calc(var(--r) * .4) 0; background: var(--tab) url(/game/client/pao/img/paper.webp) center / cover; background-blend-mode: multiply;
  box-shadow: inset calc(var(--r) * .9) 0 calc(var(--r) * .5) calc(var(--r) * -.5) #00000059, 0 1px 3px #00000047;
  font-size: calc(var(--r) * .8); line-height: 1.05; white-space: nowrap; overflow: hidden;
  transform: translateX(calc(var(--r) * -1.2)); transition: transform .25s cubic-bezier(.23, 1, .32, 1); }
#mpHud #paoBook .pagesContainer .tabs .tab span { overflow: hidden; text-overflow: ellipsis; }
#mpHud #paoBook .pagesContainer .tabs .tab.on { transform: translateX(calc(var(--r) * -.3)); }
#mpHud #paoBook .pagesContainer .tabs .tab:focus-visible { outline: 2px solid var(--color-black); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) { #mpHud #paoBook .pagesContainer .tabs .tab:not(.on):hover { transform: translateX(calc(var(--r) * -.75)); } }
#mpHud #paoBook .pagesContainer .tabs .tab-1 { --tab: #a9cfa0; }
#mpHud #paoBook .pagesContainer .tabs .tab-2 { --tab: #e8a68f; }
#mpHud #paoBook .pagesContainer .tabs .tab-3 { --tab: #a7c3e0; }
#mpHud #paoBook .pagesContainer .tabs .tab-4 { --tab: #d9b0d4; }
#mpHud #paoBook .pagesContainer .tabs .tab-5 { --tab: #e6d9a6; }
@media (max-width: 760px) { #mpHud #paoBook .pagesContainer .tabs { display: none; } }
@media (prefers-reduced-motion: reduce) { #mpHud #paoBook .pagesContainer .tabs .tab, #mpHud #paoBook .pagesContainer .page .pageContent .homeLink { transition: none; } }
#mpHud #paoBook .pagesContainer .page.contentsPage .pageContent .content .title.blank { visibility: hidden; }
