/* css/paper.css: the Foldyssey look for pages and the game HUD. Cream card stock, ink brown type, terracotta and
   Aegean blue accents, cut edges with a short warm shadow. Fonts: Young Serif (display), Marcellus (inscriptions),
   Figtree (text). */
@font-face { font-family: 'Young Serif'; src: url('/fonts/YoungSerif.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Marcellus'; src: url('/fonts/Marcellus.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fonts/Figtree-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --paper: #f7f0de; --paper-2: #efe4c8; --paper-3: #e4d5b2; --kraft: #d9c296;
  --ink: #33251a; --ink-2: #6a5441; --ink-3: #9a8268;
  --terra: #c45b3c; --terra-d: #9b4027; --aegean: #2f5d8a; --aegean-d: #20446a; --olive: #6f7a3a; --gold: #c99a2e;
  --sea: #3e8aa3; --line: rgba(60, 34, 18, .2); --line-2: rgba(60, 34, 18, .34);
  --cut: 0 1px 0 rgba(255, 250, 238, .7) inset, 0 -1px 0 rgba(60, 34, 18, .12) inset;
  --lift: 0 1px 0 rgba(60, 34, 18, .22), 0 6px 14px -6px rgba(50, 25, 8, .35), 0 18px 32px -18px rgba(50, 25, 8, .35);
  --radius: 12px;
  --fd: 'Young Serif', Georgia, serif; --fl: 'Marcellus', Georgia, serif; --fb: 'Figtree', system-ui, -apple-system, Segoe UI, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--fb); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: var(--aegean); }

.sheet { background: var(--paper) var(--grain); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift), var(--cut); }
.label { font-family: var(--fl); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--fb); font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: 10px; line-height: 1;
  background: var(--terra) var(--grain); color: #fff8ec; box-shadow: 0 2px 0 var(--terra-d), 0 8px 18px -8px rgba(120, 40, 10, .55), inset 0 1px 0 rgba(255, 230, 200, .35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--terra-d), 0 4px 10px -6px rgba(120, 40, 10, .5); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; filter: grayscale(.4); }
.btn.blue { background-color: var(--aegean); box-shadow: 0 2px 0 var(--aegean-d), 0 8px 18px -8px rgba(20, 50, 90, .55), inset 0 1px 0 rgba(220, 235, 255, .3); }
.btn.ghost { background: var(--paper) var(--grain); color: var(--ink); box-shadow: 0 2px 0 var(--line-2), inset 0 0 0 1px var(--line), inset 0 1px 0 #fffaf0; }
.btn.small { font-size: 13px; padding: 8px 12px; border-radius: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--paper) var(--grain); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line-2); white-space: nowrap; }
.meander { height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M1 9V1h8v6H5V4' fill='none' stroke='%23c45b3c' stroke-width='1.6'/%3E%3Cpath d='M1 9h19' stroke='%23c45b3c' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x; opacity: .9; }
.bar { height: 8px; border-radius: 99px; background: var(--paper-3); box-shadow: inset 0 1px 1px rgba(60, 34, 18, .25); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(var(--terra), #b04e30); border-radius: inherit; transition: width .5s ease; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--aegean); outline-offset: 2px; }
