@font-face {font-family:"Plymouth Android Serif";src:url("/assets/fonts/NotoSerif-Regular.ttf") format("truetype");font-weight:normal;font-style:normal;font-display:swap}
@font-face {font-family:"Plymouth Android Serif";src:url("/assets/fonts/NotoSerif-Bold.ttf") format("truetype");font-weight:bold;font-style:normal;font-display:swap}
@font-face {font-family:"Plymouth Android Serif";src:url("/assets/fonts/NotoSerif-Italic.ttf") format("truetype");font-weight:normal;font-style:italic;font-display:swap}
@font-face {font-family:"Plymouth Android Serif";src:url("/assets/fonts/NotoSerif-BoldItalic.ttf") format("truetype");font-weight:bold;font-style:italic;font-display:swap}
/* CSS pixels are the browser equivalent of Android density-independent pixels. */
.native-panel,.native-panel *, .equipment-picker,.field-context {box-sizing:border-box}
.native-panel {position:fixed;inset:auto;margin:0;padding:0;border:0;border-radius:0;max-width:100vw;max-height:100dvh;
  background:#392b21;color:#f2deb1;font:10px/1.16 "Plymouth Android Serif",serif;box-shadow:0 3px 6px #22180f66;overflow:hidden}
.native-panel[open] {display:flex;flex-direction:column}
.native-panel header,.native-panel .panel-content {position:relative}
.native-panel button,.field-context button,.equipment-picker button {appearance:none;min-width:0;min-height:0;font:inherit;
  line-height:inherit;letter-spacing:normal;text-transform:none;color:inherit;background:none;border:0;box-shadow:none;border-radius:0;margin:0;padding:0;cursor:pointer}
.native-panel button:disabled {opacity:.55;cursor:default}
.native-panel button:focus-visible,.field-context button:focus-visible,.equipment-picker button:focus-visible {outline:1px solid #edcc89;outline-offset:-1px}
.native-panel > header {display:flex;align-items:center;flex:none;touch-action:none;cursor:grab}
.native-panel > header strong {flex:1;font:inherit;padding-left:5px}
.native-panel header > button:last-child {font-size:13px;width:25px;height:100%}
.leather-binding {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.native-panel.storage {padding:1px 7px 7px}
.storage >header {height:16px;font-size:8px}
.storage >header button:last-child {font-size:12px;width:32px}
.pocket-grid {display:grid;justify-content:center}
.pack-pocket {position:relative;box-shadow:inset -1px -1px #5d4933,inset 1.5px 2px #1a1815!important;background-color:#302c25!important;
  background-image:repeating-linear-gradient(0deg,transparent 0 2px,#0000000a 2px 2.5px),repeating-linear-gradient(45deg,transparent 0 1.9px,#baa58c0d 1.9px 2.34px)!important}
.pack-pocket:nth-child(3n+1){background-color:#302e26!important}
.pack-pocket img {position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);object-fit:fill}
.pack-pocket[aria-pressed=true] {outline:1px solid #f2deb1;outline-offset:-1px}
.pack-pocket span {position:absolute;bottom:0;right:2px;font-size:5.5px;text-shadow:0 0 2px black}
.drying-progress {position:absolute;inset:auto 3px 3px;height:3px;background:linear-gradient(90deg,#b99459 var(--fill),#211d17 var(--fill))}
.storage-foot {display:flex;align-items:center;height:22px;gap:2px;padding-left:5px}
.storage-foot[hidden] {display:none}
.storage-foot span {flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:5.5px}
.storage-foot button,.storage .chamber-fuel {background:#392c21;border:1px solid #b99459;border-radius:2px;padding:0 4px;height:20px;font-size:7px}
.storage .chamber-fuel {height:28px;width:100%;font-size:10px;background:#503b29;border:0;border-radius:0}
.native-panel.equipment {padding:1px 6px 6px;width:min(339px,100vw - 8px);height:min(238px,100dvh - 10px)}
.equipment >header {height:21px;font-size:10px;font-weight:bold}
.equipment .panel-content {display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);gap:4px;flex:1;min-height:0}
.equipment-portrait {position:relative;border:1px solid #987c4c;background:url('/assets/almanac/equipment/equip_clearing.webp') center / cover}
.equipment-figure {position:absolute;inset:0}
.equipment-figure canvas {width:100%;height:100%;object-fit:contain}
.equipment-portrait button {position:absolute;bottom:0;width:42px;height:42px;padding:9px}
.equipment-portrait button img {width:100%;height:100%}
.turn-left {left:0;transform:scaleX(-1)}
.turn-right {right:0}
.rack-scroll {overflow-y:auto;scrollbar-width:none;padding:2px 3px;background:linear-gradient(#312e25,#211e18)}
.equipment-rack {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.equipment-rack button {height:48px;display:grid;place-items:center;border:1px solid #635640;border-radius:2px;background:linear-gradient(#35392e,#1c211c)}
.equipment-rack button[aria-pressed=true] {background:linear-gradient(#574833,#392c20);border-color:#e2bc7b}
.equipment-rack img {width:28px;height:28px;object-fit:contain}
.equipment-rack .empty-art {filter:saturate(.2);opacity:.45}
.equipment-picker,.field-context {position:fixed;z-index:9999;color:#f2deb1;font:12px/1.2 "Plymouth Android Serif",serif;display:flex;flex-direction:column;box-shadow:0 3px 6px #22180f66;max-height:100vh;overflow:auto}
.equipment-picker {width:min(128px,100vw);padding:3px 6px;background:linear-gradient(#473d2d,#302a20);border:1px solid #b19665;border-radius:2px;font-size:8px}
.equipment-picker > span {padding:6px 0}
.equipment-picker button {height:26px;display:flex;align-items:center;gap:3px;text-align:left}
.equipment-picker img {width:20px;height:20px;object-fit:contain}
.equipment-picker button:disabled {opacity:.5}
.field-context {background:#402b20;padding:2px 3px}
.field-context button {text-align:left;min-height:32px;padding:0 9px}
.native-panel.recipe-book {padding:4px 5px 5px;outline:1px solid #b09160;outline-offset:-1px;border-radius:4px;background:#513922;color:#392b1d}
.recipe-book .panel-content {height:100%;display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr)}
.book-left,.book-right,.study-paper,.specimen-strip,.manual-paper {background-color:#e8d7b1;background-image:url('/assets/almanac/paper.png');background-blend-mode:multiply;background-size:calc(256px / var(--screen-density,1))}
.book-left,.book-right {padding:5px 9px 6px 10px;min-height:0;display:flex;flex-direction:column}
.book-left {box-shadow:inset -12px 0 16px -12px #67472755}
.book-right {box-shadow:inset 15px 0 17px -13px #674727aa}
.book-title,.book-running {touch-action:none;cursor:grab}
.book-title {text-align:center;border-bottom:1px solid #6f543598}
.book-title b {display:block;font-size:7.5px;letter-spacing:.19em;color:#6b4e35}
.book-title strong {font:23px/1.22 "Plymouth Android Serif",serif;color:#392b1d}
.book-running {display:flex;align-items:center;height:24px;flex:none;font-size:8px;letter-spacing:.08em;color:#6b4e35}
.book-running b {flex:1}
.book-running button:last-child {width:27px!important;font-size:18px!important}
.book-nav,.book-scroll {flex:1;overflow:auto;min-height:0;scrollbar-width:none}
.book-trail {height:24px;white-space:nowrap;overflow-x:auto;align-content:center;font-size:10px;font-style:italic;color:#6b4e35;scrollbar-width:none}
.book-trail button {text-decoration:underline}
.book-tiles {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
.book-tiles button {position:relative;min-width:0;height:55px;border:1px solid #8d6c4157;background:#ffffff06;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;text-align:center}
.book-tiles button[aria-pressed=true] {background:#5c3c1829}
.book-tiles img {width:100%;height:33px;object-fit:contain}
.book-tiles span {line-height:11px}
.book-grip {width:32px;height:24px;position:relative;touch-action:none;cursor:nesw-resize!important}
.book-grip:before {content:"";position:absolute;bottom:3px;left:2px;width:16px;height:16px;clip-path:polygon(0 0,100% 100%,0 100%);background:repeating-linear-gradient(45deg,transparent 0 3px,#6b4e35 3px 4px)}
.book-detail h3,.journey h3 {font:22px/1.2 "Plymouth Android Serif",serif;color:inherit;margin:0}
.book-detail {display:flex;min-height:100%;flex-direction:column}
.book-detail >* {flex-shrink:0}
.book-specimen {flex:1 0 auto;display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);align-items:center}
.book-specimen.plan {grid-template-columns:minmax(0,1.16fr) minmax(0,1.06fr)}
.book-specimen img {width:100%;height:72px;object-fit:contain}
.book-specimen.plan img {height:116px}
.book-specimen em {font-size:10.5px;padding-left:5px;color:#6b4e35}
.book-detail p {margin:0;font-size:10px}
.book-ingredient {display:flex;gap:3px;align-items:center;font-size:11px;min-height:18px}
.book-ingredient img {width:19px;height:18px;object-fit:contain}
.book-ingredient span {flex:1}.book-ingredient small {font-size:10px}
.recipe-book .book-action {background:#51402e;color:#ffe9bc;border:1px solid #987b50;border-radius:1px;width:90px;height:24px;align-self:flex-end;margin-top:2px;font-size:11px;flex:none}
.wax-seal,.hud-unread:after,.study-ready:after {content:"";position:absolute;top:2px;right:4px;width:7px;height:7px;border-radius:50%;background:#a33229;border:1px solid #ffd994;pointer-events:none}
.hud-unread:after,.study-ready:after {width:9px;height:9px;top:3px;right:3px}
.study-ready:after {background:#e9ad51;border-color:#684729}
.native-panel.journey {width:min(682px,100vw - 12px);height:min(350px,100dvh - 22px);padding:3px;background:#392b21;border:1px solid #9a7748;color:#eee0bf}
.journey >header {height:30px;padding:1px 8px}
.journey >header strong {font-size:16px;font-weight:bold;padding:0}
.journey >header >button:last-child {width:32px;height:25px;font-size:16px}
.journey-tabs {display:flex}
.journey .journey-tabs button {width:85px;height:28px;font:bold 11px "Plymouth Android Serif",serif;border:1px solid #9a7748;background:#3f3529}
.journey button[aria-pressed=true] {background:#526048;border-color:#9a7748}
.journey-balance {padding:0 8px;white-space:pre}
.journey-body,.combat-body {flex:1;min-height:0;display:grid}
.journey-body {grid-template-columns:minmax(0,1fr) minmax(0,.9fr) minmax(0,2fr)}
.study-column,.calling-column,.manual-index {display:flex;min-height:0;flex-direction:column;border:1px solid #9a7748;border-radius:2px;padding:2px 4px;background:#323f34}
.calling-column {container-type:inline-size;background:#40392d}
.column-title {font-weight:bold;padding:3px}
.study-column em,.calling-shelf em {font-size:9px;padding:3px}
.study-list,.calling-shelf {min-height:0;overflow:auto;scrollbar-width:none}
.study-list {flex:1}
.study-list button,.calling-shelf button,.manual-index > button {display:flex;width:100%;height:19px;gap:3px;align-items:center;text-align:left;padding:0 2px;font-size:9px}
.study-list img {width:16px;height:17px;object-fit:contain}
.study-list button small {width:17px;text-align:center;margin-left:auto;font-size:9px}
.study-meter {line-height:1;text-align:center;align-content:center;color:#eee0bf;border:1px solid #9a7748;border-radius:2px;background:linear-gradient(90deg,#77814e var(--fill),#40372d var(--fill));font-size:8px}
.study-controls {display:flex;align-items:center;gap:2px;padding:1px 2px}
.study-controls b {flex:1}
.study-controls button,.study-column>button,.study-paper>button,.manual-actions button,.manual-tabs button {background:#514434;border:1px solid #9a7748;color:#eee0bf;font-size:9.5px;font-weight:bold;height:22px}
.study-controls button {width:25px}.study-controls button:last-child {width:56px}
.shelf-label {padding:1px 4px;background:#362e24;color:#e3c991;font-size:9px;font-style:italic;font-weight:bold}
.calling-shelf.learned {flex:1}.calling-shelf.available {flex:2}
.calling-shelf button {height:28px}.calling-shelf img {width:24px;height:24px;object-fit:contain}
.journey-leaf {display:flex;flex-direction:column;min-height:0}
.study-paper,.manual-paper {padding:6px 8px;color:#36291e;min-height:0;overflow:auto;scrollbar-width:none;background-color:#e3cfaa;box-shadow:inset 15px 0 16px -15px #61422377}
.study-paper {flex:1}
.journey h3 {font-size:20px}
.calling-plate {display:flex;align-items:center;padding:4px 0;gap:8px}
.calling-plate img {width:104px;height:104px;object-fit:contain}
.calling-plate em {font-size:11px}
.study-missing {font-size:8.5px;padding:2px 1px}.study-subheading {padding:4px 0;font-size:9px;font-weight:bold}
.study-points {padding:4px 0;font-size:9px;white-space:pre}
.study-paper >button {width:100%;height:24px}
.specimen-strip {display:flex;align-items:center;padding:2px 6px;height:34px;flex:none;overflow-x:auto}
.specimen-strip button {position:relative;flex:none;width:34px;height:29px;margin-left:3px;background:#dbccaa;border:1px solid #9a7748;color:#36291e}
.specimen-strip img {width:27px;height:23px;object-fit:contain}
.specimen-strip small {position:absolute;bottom:0;right:0;font-size:8px;background:#eee0bf}
.folio-caption {background:#433426;padding:1px 5px;font-size:11px;font-weight:bold}
.study-cells {display:grid}
.study-cells button {position:relative;min-width:0;height:min(calc(100cqw / var(--columns)),38.5px,calc((100dvh - 22px)*.11));background-color:#302c25;box-shadow:inset -1px -1px #5d4933,inset 1.5px 2px #1a1815;
  background-image:repeating-linear-gradient(0deg,transparent 0 2px,#0000000a 2px 2.5px),repeating-linear-gradient(45deg,transparent 0 1.9px,#baa58c09 1.9px 2.34px)}
.study-cells img {height:94%;width:100%;object-fit:contain}
.study-cells .study-meter {position:absolute;bottom:2px;left:3px;right:3px}
.filed-specimen {display:block;width:100%;height:95px;object-fit:contain}
.observed-specimen {height:92px;position:relative;display:grid;place-items:center}
.observed-specimen img {height:86px;width:100%;object-fit:contain;transform:rotate(-8deg)}
.observed-specimen button {position:absolute;border:1px solid #9a7748;font-size:10px;background:#ede0c0;color:#36291e;padding:2px 5px;height:24px}
.observed-specimen button:first-of-type {left:0;bottom:0}.observed-specimen button:last-of-type {right:0;top:0}
.observed-specimen button[aria-pressed=true] {background:#323f34;color:#eee0bf}
.study-option {display:flex;align-items:center;padding:4px 0}
.study-option input {width:18px;height:18px;margin:5px}
.study-option+button {width:78px;height:26px;float:right}
.combat-body {grid-template-columns:minmax(0,.34fr) minmax(0,.66fr);grid-template-rows:minmax(0,1fr) auto}
.manual-index {padding:4px;overflow:auto}
.manual-tabs,.manual-stats,.manual-actions,.manual-slots {display:flex}
.manual-tabs button,.manual-actions button {flex:1;height:29px}
.manual-index>button {height:32px;font-size:12px;gap:6px}
.manual-index svg {width:22px;height:22px}
.manual-title,.manual-illustration {display:flex;align-items:center;justify-content:space-between}
.manual-title h3 {font-weight:bold;font-size:22px}
.manual-illustration canvas {width:39%;height:63px;object-fit:contain}
.manual-illustration em {flex:1;padding:0 7px;font-size:12px}
.manual-stats>div {flex:1;padding:2px 4px;background:#745c3118;border:1px solid #745c3150}
.manual-stats small,.manual-stats b {display:block;font-size:9px}.manual-stats b {font-size:12px}
.manual-req {padding:5px 0}
.manual-set {grid-column:span 2}
.manual-set-title,.manual-set-count {display:inline-block;margin:2px 4px}.manual-set-title {font-size:12px;font-weight:bold}.manual-set-count{float:right}
 .manual-slots button {display:flex;align-items:center;justify-content:center;height:39px;flex:1;border:1px solid #9a7748;background:#514535}
.manual-slots .empty {background:#312b25}
.manual-slots small {padding:0 2px;font-size:9px}
.slot-emblem {display:flex;align-items:center;flex-direction:column;font-size:9px}
.slot-emblem svg {width:19px;height:19px}
.manual-index>button[aria-pressed=true],.calling-shelf button[aria-pressed=true] {background:#68533b;box-shadow:inset 0 0 0 1px #9a7748;border-radius:2px}
#shortcuts #book,#shortcuts #journey {position:relative}

.reset-study {position:fixed;box-sizing:border-box;width:min(560px,calc(100vw - 48px));max-width:none;background:#424242;color:white;border:0;border-radius:2px;padding:24px 24px 8px;box-shadow:0 12px 30px #0007;font:16px/1.4 Roboto,Arial,sans-serif}
.reset-study::backdrop {background:#0005}
.reset-study h2 {font:500 20px/1.3 Roboto,Arial,sans-serif;margin:0;cursor:grab;touch-action:none}
.reset-study p {margin:16px 0 24px}
.reset-study>div {display:flex;justify-content:flex-end}
.reset-study button {border:0;background:transparent;color:#80cbc4;padding:0 10px;height:48px;font:500 14px Roboto,Arial,sans-serif;text-transform:uppercase}

.discovery-lights {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.discovery-announcement {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
