/* bunker · a survivor's journal pinned up in a bunker. Paper, ink, pencil and tape, all drawn in CSS and inline SVG.
   Handwriting is the system's Ink Free (Segoe Print and Comic Sans as fallbacks); typed labels are Courier New. */
:root {
  --ink: #1e1b16; --ink2: #4b4337; --pencil: #93856a; --faint: #b5a681;
  --paper: #efe4c6; --paper-hi: #f6eed8; --paper-lo: #e2d3ab;
  --red: #b8322a; --redp: #c23a2e; --green: #3c7a4b; --teal: #2b7a80; --mustard: #e0b13c; --amber: #9a6a10;
  --tape: rgba(236, 224, 180, .82);
  --hand: 'Ink Free', 'Segoe Print', 'Comic Sans MS', cursive;
  --type: 'Courier New', Courier, monospace;
  --poster: Impact, 'Arial Black', sans-serif;

  --box: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M1.5 4.2Q50 1.4 98.8 3M97.2 1.2Q98.9 50 97.6 98.6M99 96.6Q50 99 1.3 97.3M3 99Q1.2 50 2.6 1.6' fill='none' stroke='%231e1b16' stroke-width='2.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --paper-btn: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M1.6 4.4Q50 1.2 98.6 2.8Q98.9 50 97.8 98.4Q50 99 1.4 97.4Q1.1 50 1.6 4.4Z' fill='%23f9f3e2' stroke='%231e1b16' stroke-width='3.2' stroke-linejoin='round' vector-effect='non-scaling-stroke'/></svg>");
  --paper-go: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M1.6 4.4Q50 1.2 98.6 2.8Q98.9 50 97.8 98.4Q50 99 1.4 97.4Q1.1 50 1.6 4.4Z' fill='%23f3dd96' stroke='%231e1b16' stroke-width='3.8' stroke-linejoin='round' vector-effect='non-scaling-stroke'/></svg>");
  --paper-sell: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M1.6 4.4Q50 1.2 98.6 2.8Q98.9 50 97.8 98.4Q50 99 1.4 97.4Q1.1 50 1.6 4.4Z' fill='%23f2cfc2' stroke='%231e1b16' stroke-width='3.8' stroke-linejoin='round' vector-effect='non-scaling-stroke'/></svg>");
  --f-t: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M0.4 4.8Q50 2.6 99.6 4' fill='none' stroke='%231e1b16' stroke-width='2.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --f-b: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M0.4 3.4Q50 5.6 99.6 4.4' fill='none' stroke='%231e1b16' stroke-width='2.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --f-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 100' preserveAspectRatio='none'><path d='M4.4 0.4Q2.8 50 4 99.6' fill='none' stroke='%231e1b16' stroke-width='2.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --f-r: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 100' preserveAspectRatio='none'><path d='M3.6 0.4Q5.4 50 4.2 99.6' fill='none' stroke='%231e1b16' stroke-width='2.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --fb-t: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M0.4 4.8Q50 2.6 99.6 4' fill='none' stroke='%231e1b16' stroke-width='3.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --fb-b: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M0.4 3.4Q50 5.6 99.6 4.4' fill='none' stroke='%231e1b16' stroke-width='3.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --fb-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 100' preserveAspectRatio='none'><path d='M4.4 0.4Q2.8 50 4 99.6' fill='none' stroke='%231e1b16' stroke-width='3.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --fb-r: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 100' preserveAspectRatio='none'><path d='M3.6 0.4Q5.4 50 4.2 99.6' fill='none' stroke='%231e1b16' stroke-width='3.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --frame: var(--f-t) top left / 100% 8px no-repeat, var(--f-b) bottom left / 100% 8px no-repeat, var(--f-l) top left / 8px 100% no-repeat, var(--f-r) top right / 8px 100% no-repeat;
  --frame-b: var(--fb-t) top left / 100% 8px no-repeat, var(--fb-b) bottom left / 100% 8px no-repeat, var(--fb-l) top left / 8px 100% no-repeat, var(--fb-r) top right / 8px 100% no-repeat;
  --ring: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M58 9C84 8 97 27 96 51C95 77 72 93 47 92C21 91 4 74 5 49C6 25 25 9 50 8C62 7.6 72 10 80 15' fill='none' stroke='%231e1b16' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --ring-g: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M58 9C84 8 97 27 96 51C95 77 72 93 47 92C21 91 4 74 5 49C6 25 25 9 50 8C62 7.6 72 10 80 15' fill='none' stroke='%233c7a4b' stroke-width='3.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --ring-r: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M58 9C84 8 97 27 96 51C95 77 72 93 47 92C21 91 4 74 5 49C6 25 25 9 50 8C62 7.6 72 10 80 15' fill='none' stroke='%23c23a2e' stroke-width='3.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --line: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'><path d='M0.5 6Q20 4.4 40 6.2T80 5.4T99.5 6' fill='none' stroke='%231e1b16' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --line-teal: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'><path d='M0.5 6Q20 4.4 40 6.2T80 5.4T99.5 6' fill='none' stroke='%232b7a80' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --scribble: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><path d='M1 17L9 9L13 22L22 6L26 23L35 7L39 24L48 6L52 22L61 8L65 23L74 7L78 21L87 9L91 20L99 12' fill='none' stroke='%231e1b16' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --under: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M3 8C50 3 120 3 197 6M14 12C70 8 130 9 180 10' fill='none' stroke='%231e1b16' stroke-width='2.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --rule: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'><path d='M0.5 3Q30 1.8 60 3.3T99.5 2.8' fill='none' stroke='%2393856a' stroke-width='1.8' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
  --caret: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'><path d='M2 3L8 10L14 2' fill='none' stroke='%231e1b16' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  --cbox: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'><path d='M3 4.5Q14 3 25 3.8M24.2 2.6Q25.2 14 24.4 25.4M25.6 24.4Q14 25.6 2.8 24.6M3.8 25.8Q2.6 14 3.4 3' fill='none' stroke='%231e1b16' stroke-width='2.4' stroke-linecap='round'/></svg>");
  --cbox-on: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'><path d='M3 4.5Q14 3 25 3.8M24.2 2.6Q25.2 14 24.4 25.4M25.6 24.4Q14 25.6 2.8 24.6M3.8 25.8Q2.6 14 3.4 3' fill='none' stroke='%231e1b16' stroke-width='2.4' stroke-linecap='round'/><path transform='translate(2 -1) scale(.6)' d='M4.6 25.4C8.8 22.9 12.4 24.2 15.2 28.3C16.9 30.8 18 32.7 19 34.1C24.2 22.6 31.3 12.9 43 3.8C44.7 2.6 46.4 4.6 45.1 6.2C35.4 15.6 27.4 27.3 21.4 41.1C20.4 43.6 17.5 43.6 16.5 41.4C14 36.1 10.2 31.1 5.6 28.3C3.7 27.4 3.5 26.1 4.6 25.4Z' fill='%231e1b16'/></svg>");
  --tick: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path d='M4.6 25.4C8.8 22.9 12.4 24.2 15.2 28.3C16.9 30.8 18 32.7 19 34.1C24.2 22.6 31.3 12.9 43 3.8C44.7 2.6 46.4 4.6 45.1 6.2C35.4 15.6 27.4 27.3 21.4 41.1C20.4 43.6 17.5 43.6 16.5 41.4C14 36.1 10.2 31.1 5.6 28.3C3.7 27.4 3.5 26.1 4.6 25.4Z' fill='%231e1b16'/></svg>");
  --cross: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path d='M7.6 6.4C9.6 4.6 12.1 5 13.6 7.1C18.4 14.1 24.4 20.3 40.6 36.6C42.6 38.7 41.1 42.2 38.4 41C30 34.4 20.9 25.2 8.2 10.4C6.8 8.8 6.6 7.3 7.6 6.4ZM39.2 5.1C41.4 4 43.6 6.3 42.2 8.3C33.2 19.4 22.4 30.5 10.3 42.2C8.5 43.9 5.3 42.1 7 39.9C17.1 27.9 27.9 15.1 39.2 5.1Z' fill='%23c23a2e'/></svg>");
  --bang: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path d='M22 6C24 5 27 5.5 27.5 8L26 30C25.8 32 22.4 32 22.3 30L20.6 9C20.5 7.6 21 6.5 22 6Z' fill='%239a6a10'/><circle cx='24' cy='39' r='3.6' fill='%239a6a10'/></svg>");
  --dash: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path d='M11 25Q24 22 37 24' fill='none' stroke='%2393856a' stroke-width='4' stroke-linecap='round'/></svg>");
  --tab-on: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 3L84 4.5L91 13L87 23L94 33L89 45L95 56L90 67L94 79L88 89L92 96.5L0 97' fill='%23fcf7e8' stroke='%231e1b16' stroke-width='3.4' stroke-linejoin='round' vector-effect='non-scaling-stroke'/></svg>");
  --tab-off: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0 3L84 4.5L91 13L87 23L94 33L89 45L95 56L90 67L94 79L88 89L92 96.5L0 97' fill='%23dccb98' stroke='%231e1b16' stroke-width='3.2' stroke-linejoin='round' vector-effect='non-scaling-stroke'/></svg>");
  --ribbon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 100' preserveAspectRatio='none'><path d='M2 0V99L12 89L22 99V0' fill='%23bf352b' stroke='%231e1b16' stroke-width='2.4' stroke-linejoin='round' vector-effect='non-scaling-stroke'/><path d='M7 0V90' stroke='%23e0685a' stroke-width='2' vector-effect='non-scaling-stroke'/></svg>");
  --string: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'><path d='M3 40L50 3L97 40' fill='none' stroke='%231e1b16' stroke-width='2.2' vector-effect='non-scaling-stroke'/></svg>");
  --noise: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .12 0 0 0 .26 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  --stain: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='700'><filter id='s' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.004 .007' numOctaves='3' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .18 0 0 0 -1.5 .74'/></filter><rect width='700' height='700' filter='url(%23s)'/></svg>");
  --worn: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='60'><filter id='w' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.05'/></filter><rect width='160' height='60' filter='url(%23w)'/></svg>");
}

* { box-sizing: border-box; }
html { background: #2c2c2e; scroll-padding-top: 20px; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 19px/1.38 var(--hand); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wall { position: fixed; inset: 0; z-index: -1; background: #3a3b3d url(/art/bunker.svg) center top / cover no-repeat; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
p { margin: 0 0 10px; }
:focus-visible { outline: 2.5px dashed var(--teal); outline-offset: 3px; border-radius: 3px; }
.mono { font-family: var(--type); font-weight: 700; font-size: .74em; letter-spacing: -.01em; }
.dim, .muted { color: var(--pencil); }
.q { color: var(--teal); }
.sell { color: var(--redp); }
.gold { color: var(--amber); }
.ink { display: inline-block; vertical-align: middle; overflow: visible; }
[hidden] { display: none !important; }

/* ---------- the wall: sign, radio, dog tag ---------- */
.top { position: relative; z-index: 4; max-width: 1340px; margin: 0 auto; min-height: 124px; padding: 0 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 20px; }
.sign { justify-self: start; position: relative; display: block; margin-top: 44px; text-decoration: none; transform: rotate(-3deg); transform-origin: 50% -36px; transition: transform .25s; }
.sign::before { content: ''; position: absolute; left: 16%; right: 16%; top: -38px; height: 40px; background: var(--string) 0 0 / 100% 100% no-repeat; }
.sign::after { content: ''; position: absolute; left: 50%; top: -44px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #6b6d70; border: 2px solid var(--ink); }
.sign .board { display: flex; align-items: center; gap: 10px; padding: 6px 20px 8px 10px; background: #c49b5e var(--noise); border: 3px solid var(--ink); border-radius: 5px 9px 6px 8px; box-shadow: 0 9px 14px rgba(0, 0, 0, .5), inset 0 0 20px rgba(90, 60, 20, .4); }
.sign .hatch { width: 72px; height: 72px; margin: -13px 0 -10px -2px; flex: none; }
.sign b { font: 400 46px/1 var(--hand); -webkit-text-stroke: 1.7px var(--ink); letter-spacing: .02em; color: var(--ink); }
.sign:hover { transform: rotate(-1deg); }

.radio { position: fixed; left: 28px; bottom: 14px; z-index: 20; }
/* the radio is the music switch: off it sits dark; on, the cloth glows from the valves, the dial lights, the needle swings across and the knobs turn */
.radio-art { position: relative; flex: none; display: grid; justify-items: center; gap: 0; padding: 0; background: none; border: 0; cursor: pointer; }
.radio-art .ink { width: 118px; height: 99px; display: block; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .5)); transition: transform .2s; }
.radio-art:hover .ink { transform: rotate(-2deg) translateY(-2px); }
.radio-art .needle { transform-box: view-box; transform-origin: 52.1px 77.1px; transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.radio-art .knob { transform-box: fill-box; transform-origin: center; transition: transform .5s; }
.radio-art .dial { transition: fill .4s; }
.radio-art .glow { opacity: 0; transition: opacity 1.2s ease-in; }
.radio-art[aria-pressed="true"] .needle { transform: rotate(84deg); }
.radio-art[aria-pressed="true"] .k1 { transform: rotate(-70deg); }
.radio-art[aria-pressed="true"] .k2 { transform: rotate(110deg); }
.radio-art[aria-pressed="true"] .dial { fill: #ffdc85; }
.radio-art[aria-pressed="true"] .glow { opacity: 1; }
.radio-art[aria-pressed="true"] .ink { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .5)) drop-shadow(0 0 8px rgba(255, 190, 100, .35)); }
.radio-art::before { content: ''; position: absolute; top: 30px; right: -32px; transform: scaleX(-1); width: 28px; height: 44px; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 44'><path d='M20 13Q14 22 20 31M12 6Q2 22 12 38' fill='none' stroke='%23f2e9cd' stroke-width='2.8' stroke-linecap='round'/></svg>") 0 0 / 100% 100% no-repeat; }
.radio-art[aria-pressed="true"]::before { opacity: .9; }
.radio-tag { padding: 1px 10px 2px; background: #f0e7cb; color: var(--ink); font: 700 11.5px/1.3 var(--type); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-2deg);
  clip-path: polygon(0 10%, 4% 0, 96% 8%, 100% 0, 98% 55%, 100% 100%, 3% 92%, 0 100%, 2% 50%); box-shadow: 0 3px 4px rgba(0, 0, 0, .4); }
.radio-art[aria-pressed="true"] .radio-tag { color: var(--redp); }
body.motion .radio-art[aria-pressed="true"]::before { animation: waves 1.6s ease-in-out infinite; }
@keyframes waves { 50% { opacity: .35; translate: 3px 0; } }

/* the $BUNKER CA on a typed strip and the X button on a pinned paper chit, left of the keyring */
.chits { justify-self: end; display: flex; align-items: center; gap: 14px; margin-top: 46px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)); }
.ca-strip { padding: 6px 18px 7px; background: #f0e7cb; color: var(--ink); border: 0; cursor: pointer; font: 700 15px/1.2 var(--type); letter-spacing: .07em; white-space: nowrap; transform: rotate(-1.6deg); transition: transform .2s;
  clip-path: polygon(0 10%, 3% 0, 97% 8%, 100% 0, 98.5% 55%, 100% 100%, 2% 92%, 0 100%, 1.5% 50%); }
.ca-strip b { color: var(--redp); }
.ca-strip:hover { transform: rotate(-.6deg) translateY(-1px); }
.xchit { position: relative; display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); background: var(--paper-btn) 0 0 / 100% 100% no-repeat; transform: rotate(3.5deg); transition: transform .2s; }
.xchit::after { content: ''; position: absolute; left: 50%; top: -5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e8746a, var(--redp) 60%); border: 2px solid var(--ink); }
.xchit .ink { width: 28px; height: 28px; margin-top: 3px; }
.xchit:hover { transform: rotate(0) translateY(-2px); }
.ca-strip:focus-visible, .xchit:focus-visible { outline: 2.5px dashed #f0e7cb; outline-offset: 4px; }
.account { justify-self: end; position: relative; margin-top: -7px; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 4px; }
.account > .pqline { margin-top: 50px; }
/* the wallet button: a brass key on a ring, hung from a nail, with a luggage tag on twine; it swings from the nail on hover */
.keyring { position: relative; display: block; min-height: 124px; padding: 0; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; list-style: none; }
.keyring::-webkit-details-marker { display: none; }
.keyring .swing { display: flow-root; position: relative; transform-origin: 55px 10px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.keyring:hover .swing, .acct[open] .keyring .swing { transform: rotate(-3deg); }
.keyring .i-keyring { position: absolute; left: 0; top: 0; width: 295px; height: 130px; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .45)); }
.ktag { position: relative; display: grid; gap: 1px; min-width: 150px; height: 52px; margin: 41.5px 0 0 110px; padding: 6px 18px 0 27px; transform: rotate(2deg); transform-origin: 10px 50%;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'><path d='M11 1.5L98.5 1.2L98.8 38.6L11.2 38.8L1.4 30.6L1.3 9.6Z' fill='%23e3c98f' stroke='%231e1b16' stroke-width='2.6' stroke-linejoin='round' vector-effect='non-scaling-stroke'/></svg>") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .45)); }
.ktag::before { content: ''; position: absolute; left: 5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #3a3b3d; border: 2.6px solid #f1e3be; box-shadow: 0 0 0 1.6px var(--ink); }
.ktag b { font: 400 22px/1.1 var(--hand); -webkit-text-stroke: .5px var(--ink); white-space: nowrap; }
.ktag small { font: 700 11px/1.2 var(--type); letter-spacing: .08em; text-transform: uppercase; color: #5a4a2c; white-space: nowrap; }
.keyring:focus-visible { outline: none; }
.keyring:focus-visible .ktag { outline: 2.5px dashed var(--ink); outline-offset: 4px; }
.acct { position: relative; }
.pqline { display: inline-block; padding: 2px 16px 3px; background: var(--tape); color: var(--ink); text-decoration: none; border: 0; cursor: pointer; font: 18px/1.2 var(--hand); transform: rotate(1.8deg);
  clip-path: polygon(0 10%, 3% 0, 97% 8%, 100% 0, 98.5% 50%, 100% 100%, 2% 92%, 0 100%, 1.5% 50%); }
.pqline.locked { color: var(--redp); }
.pqline:hover { background: rgba(244, 234, 196, .95); }
.acct-opts { position: absolute; right: 0; top: calc(100% + 12px); z-index: 30; min-width: 240px; padding: 14px 20px; display: grid; background: var(--paper) var(--noise); box-shadow: 0 12px 24px rgba(0, 0, 0, .55); }
.acct-opts::before { content: ''; position: absolute; inset: -4px; background: var(--frame); pointer-events: none; }
.acct-opts a, .acct-opts button { text-align: left; background: none; border: 0; padding: 4px 2px; font: 21px/1.25 var(--hand); color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-opts a:hover, .acct-opts button:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ---------- the journal ---------- */
.journal { position: relative; z-index: 2; max-width: 1240px; margin: 8px auto 0; padding-left: 40px; }
.journal::before, .journal::after { content: ''; position: absolute; top: 12px; bottom: -10px; left: 34px; right: -7px; z-index: -2; background: var(--paper-lo); border: 3px solid var(--ink); border-radius: 6px 12px 10px 8px; box-shadow: 0 16px 34px rgba(0, 0, 0, .6); }
.journal::after { top: 22px; bottom: -19px; left: 30px; right: -13px; z-index: -3; background: #d4c195; }
.page { position: relative; display: block; min-height: calc(100vh - 210px); padding: 30px 72px 64px 60px; border-radius: 6px 12px 10px 6px; outline: none;
  background-color: var(--paper);
  background-image: radial-gradient(circle at calc(100% - 330px) 74px, transparent 0 44px, rgba(128, 84, 30, .16) 45px 47px, rgba(128, 84, 30, .05) 48px 52px, transparent 53px), var(--stain), var(--noise);
  box-shadow: inset 0 0 90px rgba(150, 110, 45, .34), inset 0 0 16px rgba(120, 85, 30, .3); }
.page::before { content: ''; position: absolute; inset: -4px; z-index: 1; background: var(--frame-b); pointer-events: none; }
.roll { position: absolute; left: 0; top: 0; bottom: 0; width: 56px; z-index: 3; border: 3px solid var(--ink); border-radius: 26px / 44px;
  background: linear-gradient(90deg, #6f5b38 0, #b8a06f 14%, #e9dcb7 36%, #f8f0dc 50%, #e2d1a6 68%, #a48c5c 88%, #6d5935 100%); box-shadow: 5px 0 9px rgba(60, 40, 10, .35); }
.roll::before, .roll::after { content: ''; position: absolute; top: 30px; bottom: 30px; width: 2px; background: rgba(30, 27, 22, .22); left: 16px; }
.roll::after { left: 34px; background: rgba(30, 27, 22, .14); }
.ribbons { position: absolute; top: -18px; right: 22px; z-index: 4; display: flex; gap: 6px; pointer-events: none; filter: drop-shadow(2px 5px 3px rgba(0, 0, 0, .35)); }
.ribbons i { display: block; width: 19px; height: 168px; background: var(--ribbon) 0 0 / 100% 100% no-repeat; }
.ribbons i + i { height: 122px; transform: rotate(5deg); transform-origin: top; }

/* index tabs: torn paper sticking out of the right edge. Manila for every section, white paper pulled well out for the open one */
.index { position: absolute; top: 74px; bottom: 40px; right: -114px; width: 132px; z-index: -1; }
.index-in { position: sticky; top: 16px; display: grid; gap: 10px; }
.itab { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; width: 132px; height: 96px; padding: 8px 16px 6px 28px; background: var(--tab-off) 0 0 / 100% 100% no-repeat; border: 0; color: var(--ink);
  font: 19px/1 var(--hand); -webkit-text-stroke: .6px var(--ink); text-decoration: none; cursor: pointer; filter: drop-shadow(3px 4px 0 rgba(18, 16, 12, .38)); transition: transform .15s; }
.itab .ink { width: 46px; height: 46px; }
.itab span { max-width: 88px; font-size: 19px; line-height: .9; text-align: center; }
.itab:hover { transform: translateX(10px); }
.itab[aria-current="page"] { background-image: var(--tab-on); transform: translateX(26px); filter: drop-shadow(5px 6px 0 rgba(18, 16, 12, .42)); }
.itab[aria-current="page"] span::after { content: ''; display: block; height: 7px; margin: 2px -4px 0; background: var(--under) 0 0 / 100% 100% no-repeat; }
.itab sup { position: absolute; top: 5px; right: 16px; font: 22px/1 var(--hand); color: var(--redp); -webkit-text-stroke: .7px var(--redp); }
.itab sup:empty { display: none; }

/* ---------- the floor ---------- */
.floor { position: relative; z-index: 2; max-width: 1240px; margin: 40px auto 34px; padding: 0 20px 0 60px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .55)); }
.typed { margin: 0; padding: 5px 15px; background: #f0e7cb; font: 700 12.5px/1.35 var(--type); color: var(--ink); letter-spacing: .03em;
  clip-path: polygon(0 8%, 2% 0, 98% 6%, 100% 0, 99% 50%, 100% 100%, 3% 94%, 0 100%, 1% 50%); }
.typed b { color: var(--redp); }
.typed a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.typed a:hover { color: var(--redp); }
.floor .typed:nth-child(odd) { transform: rotate(-.8deg); }
.floor .typed:nth-child(even) { transform: rotate(.7deg); }

/* ---------- page furniture ---------- */
.day { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; margin: 0 0 20px; }
.day h1 { margin: 0; font: 400 68px/.95 var(--hand); -webkit-text-stroke: 2.3px var(--ink); letter-spacing: .03em; transform: rotate(-1.5deg); transform-origin: left bottom; overflow-wrap: anywhere; }
.day h1.small { font-size: 50px; -webkit-text-stroke-width: 1.8px; }
.day .titles::after { content: ''; display: block; width: min(300px, 70%); height: 14px; margin-top: 4px; background: var(--under) 0 0 / 100% 100% no-repeat; }
.day .sub { margin: 4px 0 0 4px; font-size: 24px; color: var(--ink2); }
.back { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 10px -6px; padding: 2px 6px; font-size: 21px; color: var(--ink); text-decoration: none; }
.back .ink { width: 58px; height: 29px; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.start { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px; font: 31px/1 var(--hand); -webkit-text-stroke: .9px var(--ink); color: var(--ink); text-decoration: none; }
.start .ink { width: 78px; height: 39px; }
.start::after { content: ''; position: absolute; inset: -6px -10px; background: var(--ring) 0 0 / 100% 100% no-repeat; opacity: 0; transition: opacity .15s; pointer-events: none; }
.start:hover::after, .start:focus-visible::after { opacity: 1; }
.rule { height: 6px; margin: 18px 0; background: var(--rule) 0 0 / 100% 100% no-repeat; border: 0; }

/* choices: the picked one is circled, the rest stay in grey pencil */
.choices { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.choices .lbl { margin-right: 6px; color: var(--ink2); }
.choice { position: relative; padding: 3px 11px; border: 0; background: none; color: #74684f; font: 20px/1.3 var(--hand); cursor: pointer; text-decoration: none; }
.choice:hover { color: var(--ink); }
.choice[aria-pressed="true"], .choice[aria-selected="true"], .choice[aria-current="page"] { color: var(--ink); -webkit-text-stroke: .5px currentColor; }
.choice[aria-pressed="true"]::after, .choice[aria-selected="true"]::after, .choice[aria-current="page"]::after { content: ''; position: absolute; inset: -3px -5px -2px; background: var(--ring) 0 0 / 100% 100% no-repeat; pointer-events: none; }
.choice.buy[aria-pressed="true"] { color: var(--green); }
.choice.buy[aria-pressed="true"]::after { background-image: var(--ring-g); }
.choice.sell[aria-pressed="true"] { color: var(--redp); }
.choice.sell[aria-pressed="true"]::after { background-image: var(--ring-r); }

/* buttons: marker words on a cut-out sheet of paper with a heavy drawn edge, lifted off the page by an ink shadow.
   The confirm button is on yellow paper and carries a brush tick; a sell is on red paper. */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 9px 24px; background: none; border: 0; color: var(--ink);
  font: 24px/1.1 var(--hand); -webkit-text-stroke: .7px var(--ink); text-decoration: none; cursor: pointer; transition: transform .12s; }
.btn::before { content: ''; position: absolute; inset: -2px; z-index: -1; background: var(--paper-btn) 0 0 / 100% 100% no-repeat; filter: drop-shadow(3px 4px 0 rgba(30, 27, 22, .3)); transition: filter .12s; pointer-events: none; }
.btn:hover { transform: translate(-1px, -2px); }
.btn:hover::before { filter: drop-shadow(5px 6px 0 rgba(30, 27, 22, .3)); }
.btn:active { transform: translate(2px, 2px); }
.btn:active::before { filter: drop-shadow(1px 1px 0 rgba(30, 27, 22, .3)); }
.btn:disabled { color: var(--pencil); -webkit-text-stroke-color: var(--pencil); cursor: default; transform: none; }
.btn:disabled::before { opacity: .5; filter: none; }
.btn .i-tick { width: 32px; height: 32px; margin: -6px -2px -4px -6px; }
.btn.go { min-height: 62px; padding: 10px 34px; font-size: 29px; -webkit-text-stroke-width: .9px; }
.btn.go::before { background-image: var(--paper-go); }
.btn.go .i-tick { width: 40px; height: 40px; }
.btn.full { display: flex; width: 100%; }
.btn.small { min-height: 42px; padding: 5px 18px; font-size: 21px; }
.btn.sell { color: #9e2a20; -webkit-text-stroke-color: #9e2a20; }
.btn.go.sell::before { background-image: var(--paper-sell); }
.linkish { padding: 0; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(30, 27, 22, .4); }
.linkish:hover { text-decoration-color: var(--ink); }

/* inputs: writing lines and ruled paper */
.field { margin: 0 0 22px; }
.field > label, .field > .label { display: block; margin-bottom: 2px; font-size: 20px; color: var(--ink2); }
input[type=text], input[type=search], input[type=number], input[type=password] { width: 100%; padding: 4px 2px 9px; border: 0; border-radius: 0; background: var(--line) left bottom / 100% 10px no-repeat; color: var(--ink); font: 24px/1.2 var(--hand); outline: none; }
input[type=text]:focus, input[type=search]:focus, input[type=number]:focus, input[type=password]:focus { background-image: var(--line-teal); }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input[type=search]::-webkit-search-cancel-button { display: none; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
textarea { display: block; width: 100%; min-height: 122px; padding: 0 2px; border: 0; resize: vertical; color: var(--ink); font: 21px/30px var(--hand); outline: none; background: repeating-linear-gradient(transparent 0 29px, rgba(43, 122, 128, .32) 29px 30px); background-attachment: local; }
textarea:focus { background-image: repeating-linear-gradient(transparent 0 28px, rgba(43, 122, 128, .65) 28px 30px); }
select { appearance: none; -webkit-appearance: none; padding: 4px 34px 7px 4px; border: 0; border-radius: 0; color: var(--ink); font: 21px var(--hand); cursor: pointer;
  background: var(--caret) right 6px center / 16px 12px no-repeat, var(--line) left bottom / 100% 8px no-repeat; }
select option { font-family: var(--type); }
input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 30px; margin: 0; background: var(--cbox) 0 0 / 100% 100% no-repeat; cursor: pointer; }
input[type=checkbox]:checked { background-image: var(--cbox-on); }
.check, .field > label.check { display: flex; gap: 12px; align-items: flex-start; margin: 0; cursor: pointer; }
.dialog > .btn.go, .dialog .how-steps + .btn { margin-top: 10px; }
.check b { display: block; font-size: 22px; font-weight: 400; -webkit-text-stroke: .4px var(--ink); }
.check small { display: block; font-size: 17px; color: var(--ink2); }
.note { margin: 8px 0; font-size: 17px; color: var(--ink2); }
.note.warn, .warn { color: var(--redp); }
.notice { margin: 0 0 14px; font-size: 19px; }
.lead { font-size: 21px; max-width: 760px; }
.tip { margin-top: 12px; font-size: 16.5px; color: var(--ink2); }

/* stamps and margin notes */
.stamp { display: inline-block; padding: 1px 7px 0; border: 2.4px solid currentColor; border-radius: 4px; color: #5b5346; font: 13px/1.3 var(--poster); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transform: rotate(-3deg);
  -webkit-mask: var(--worn); mask: var(--worn); }
.stamp.pq { color: var(--teal); }
.stamp.grad { color: var(--red); transform: rotate(4deg); }
.tags { display: flex; flex-wrap: wrap; gap: 7px 9px; align-items: center; }
.tags > :nth-child(even) { transform: rotate(2deg); }
.flagnote { font-size: 16.5px; color: var(--redp); white-space: nowrap; cursor: help; }
.flagnote.warn { color: var(--amber); }
.wb { font: 700 12.5px var(--type); color: var(--ink); text-decoration: none; border-bottom: 1.5px dotted rgba(30, 27, 22, .5); white-space: nowrap; }
a.wb:hover { border-bottom-style: solid; }
.wb.you { color: var(--teal); }

/* ---------- board ---------- */
.board-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 18px; }
.hill-head { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 30px; }
.hill-title { margin: 0; font: 30px/1 var(--hand); -webkit-text-stroke: .8px var(--ink); }
.hill-title.bunker { color: var(--redp); -webkit-text-stroke-color: var(--redp); }
.hill-card .coin { grid-template-columns: 172px minmax(0, 1fr); gap: 22px; }
.hill-card .coin .name { font-size: 28px; }
.hill-empty { display: flex; gap: 18px; align-items: center; padding: 10px 0; }
.hill-empty .hatch { width: 78px; height: 78px; flex: none; }
.hill-empty span { display: block; font-size: 23px; }
.hill-empty small { display: block; margin-bottom: 6px; font-size: 17px; color: var(--ink2); }
.entry { font-size: 19.5px; }
.entry .when { margin-bottom: 2px; font-size: 17px; color: var(--ink2); }
.entry p { margin: 0 0 12px; }
.entry b { font-weight: 400; -webkit-text-stroke: .5px var(--ink); }
.controls { display: grid; gap: 12px; padding: 18px 0 14px; background: var(--rule) top left / 100% 6px no-repeat; }
.search { display: flex; align-items: flex-end; gap: 12px; max-width: 600px; }
.search .i-mag { width: 34px; height: 34px; flex: none; margin-bottom: 6px; }
.search input { flex: 1; min-width: 0; }
.ctl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 34px; }
.live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17.5px; color: var(--ink2); }
.live > i { width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--ink); }
.live.off > i { background: var(--redp); }
.live .linkish { display: inline-flex; align-items: center; gap: 4px; }
.live .i-refresh { width: 22px; height: 22px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 36px 38px; padding: 24px 0 8px; background: var(--rule) top left / 100% 6px no-repeat; }
.board-note { max-width: 780px; margin: 38px auto 0; font-size: 17px; color: var(--ink2); text-align: center; }
.empty-board { grid-column: 1 / -1; padding: 46px 10px; text-align: center; }
.empty-board p { margin: 0 0 4px; font-size: 30px; -webkit-text-stroke: .6px var(--ink); }
.empty-board small { display: block; margin-bottom: 12px; font-size: 19px; color: var(--ink2); }
.empty-board a, .empty-board button { font-size: 21px; }
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; margin: 32px 0 4px; }
.pager .choice { font-size: 23px; padding: 3px 12px; }
.pager .arr { padding: 2px 8px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.pager .arr .ink { width: 70px; height: 35px; }
.pager .arr:disabled { opacity: .22; cursor: default; }

/* coin cards: taped photos with notes beside them */
.coin { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; padding: 4px; cursor: pointer; --tilt: -1.6deg; }
.coin:nth-child(3n+2) { --tilt: 1.5deg; }
.coin:nth-child(3n) { --tilt: -.5deg; }
.photo { position: relative; display: block; padding: 6px 6px 18px; background: #f7f2e4; border: 2.4px solid var(--ink); box-shadow: 3px 4px 0 rgba(30, 27, 22, .2); transform: rotate(var(--tilt)); transition: transform .18s; }
.photo::before, .dialog::after, .upload::before, .lost-photo::before { content: ''; position: absolute; top: -11px; left: 50%; z-index: 2; width: 62px; height: 22px; margin-left: -31px; background: var(--tape); transform: rotate(-4deg);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 2%, 100% 4%, 96% 20%, 100% 38%, 95% 58%, 100% 78%, 96% 100%, 4% 96%, 0 80%, 4% 60%, 0 40%, 4% 20%); }
.photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1.5px solid var(--ink); filter: sepia(.14) saturate(.92); }
.photo .i-crown { position: absolute; top: -34px; right: -28px; width: 62px; height: 46px; transform: rotate(18deg); z-index: 3; }
.coin:hover .photo { transform: rotate(0) translateY(-3px); }
.coin .name { display: block; font: 22px/1.12 var(--hand); -webkit-text-stroke: .55px var(--ink); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.coin .name:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.coin .tk { color: var(--ink2); -webkit-text-stroke-width: 0; font-size: .8em; }
.coin .cap { margin-top: 3px; font-size: 18px; }
.coin .cap b { font-weight: 400; -webkit-text-stroke: .5px var(--ink); }
.coin .sub2 { font-size: 16px; color: var(--ink2); }
.coin .by { margin: 1px 0 2px; font-size: 15.5px; color: var(--ink2); }
.coin .desc { margin: 3px 0 7px; font-size: 16.5px; line-height: 1.24; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.coin .crowned { font-size: 16px; color: var(--amber); }
.fav { position: absolute; top: -8px; right: -6px; width: 36px; height: 36px; padding: 3px; background: none; border: 0; color: var(--pencil); opacity: 0; cursor: pointer; transition: opacity .15s; }
.fav .ink { width: 100%; height: 100%; }
.coin:hover .fav, .fav.on, .fav:focus-visible { opacity: 1; }
.fav:hover { color: var(--ink); }
.fav.on { color: var(--ink); --star-fill: #e0b13c; }
.coin.dumped .photo img { filter: grayscale(1) contrast(.9) brightness(1.05); }
.coin.dumped .name { position: relative; }
.coin.dumped .name::after { content: ''; position: absolute; left: -6px; right: -6px; top: 4px; height: 20px; background: var(--scribble) 0 0 / 100% 100% no-repeat; pointer-events: none; }
.margin-note { display: inline-block; margin: 2px 0 4px; font-size: 16.5px; color: var(--redp); transform: rotate(-2deg); }

/* ---------- coin page: a two-page spread ---------- */
.spread { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: linear-gradient(90deg, transparent calc(56.5% - 36px), rgba(120, 85, 30, .17) 56.5%, transparent calc(56.5% + 36px)); }
.leaf { min-width: 0; }
.leaf.left { padding-right: 42px; }
.leaf.right { padding-left: 42px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-bottom: 14px; font-size: 18px; }
.meta .cap b { font-weight: 400; -webkit-text-stroke: .5px var(--ink); }
.ca { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 9px; background: rgba(255, 252, 240, .6); border: 0; border-bottom: 1.5px dashed var(--ink2); color: var(--ink); font: 700 12.5px var(--type); cursor: pointer; }
.ca:hover { background: rgba(255, 252, 240, .95); }
.chart { position: relative; margin: 4px 0 20px; padding: 8px 10px 6px; background-color: #f3ecd4;
  background-image: linear-gradient(rgba(43, 122, 128, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 122, 128, .13) 1px, transparent 1px); background-size: 14px 14px; }
.chart::before { content: ''; position: absolute; inset: -4px; background: var(--frame); pointer-events: none; }
.chart-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.chart-bar .choice { font-size: 17px; padding: 1px 9px; }
.legend { margin-left: auto; font-size: 15px; color: var(--ink2); }
.legend b { font-weight: 400; }
.up { color: var(--green); }
.down { color: var(--redp); }
.plot { display: block; width: 100%; height: 340px; }
.chart-foot { display: flex; justify-content: space-between; gap: 10px; font: 700 11.5px var(--type); color: var(--ink2); }
.dtabs { margin-bottom: 4px; }
.dtabs .choice { font-size: 22px; }
.post { padding: 12px 0; border-bottom: 2px dashed rgba(30, 27, 22, .16); }
.post .row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font: 700 12px var(--type); color: var(--ink2); }
.post .row .linkish { font: 15px var(--hand); }
.post p { margin: 5px 0 0; font-size: 19.5px; overflow-wrap: anywhere; }
.post.op .op-intro { display: flex; gap: 16px; margin-top: 8px; }
.op-intro img { width: 96px; height: 96px; flex: none; object-fit: cover; padding: 4px; background: #f7f2e4; border: 2.4px solid var(--ink); transform: rotate(-2deg); }
.jump { margin: 10px 0; }
table.trades { width: 100%; border-collapse: collapse; font: 700 12.5px var(--type); }
.trades th { padding: 4px 6px; border-bottom: 2px solid var(--ink); color: var(--ink2); font: 17px var(--hand); text-align: left; }
.trades td { padding: 5px 6px; border-bottom: 1px solid rgba(43, 122, 128, .26); }
.trades .b { color: var(--green); }
.trades .s { color: var(--redp); }
.trades tr.you { background: rgba(224, 177, 60, .2); }
.lbl { margin-left: 6px; font: 14.5px var(--hand); color: var(--redp); }
.lbl.dev { color: var(--amber); }
.side > * + * { margin-top: 22px; padding-top: 20px; background: var(--rule) top left / 100% 6px no-repeat; }
.side h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; font: 24px/1.15 var(--hand); -webkit-text-stroke: .55px var(--ink); }
.side h2 b { font-weight: 400; -webkit-text-stroke-width: 0; }
.side p { margin: 6px 0; font-size: 17.5px; }
.side small { font-size: 15.5px; color: var(--ink2); }
.trade .seg .choice { font-size: 28px; padding: 2px 18px; }
.trade-opts { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 2px; font: 700 12px var(--type); color: var(--ink2); }
.amount { display: flex; align-items: flex-end; gap: 10px; margin: 4px 0; }
.amount input { font-size: 32px; }
.amount span { padding-bottom: 10px; font-size: 20px; color: var(--ink2); white-space: nowrap; }
.opts { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 16px; }
.opts button { padding: 2px 8px; background: none; border: 0; color: var(--ink2); font: 18px var(--hand); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 4px; }
.opts button:hover { color: var(--ink); text-decoration-style: solid; }
.about { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
.about img { width: 100px; height: 100px; object-fit: cover; padding: 4px; background: #f7f2e4; border: 2.4px solid var(--ink); transform: rotate(2deg); }
.about h2 { font-size: 21px; }
.socials { display: flex; gap: 12px; font-size: 17px; }
progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 24px; margin: 6px 0; padding: 4px; border: 0; background: var(--box) 0 0 / 100% 100% no-repeat; }
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { background: repeating-linear-gradient(-55deg, var(--green) 0 2.6px, transparent 2.6px 6px); }
progress::-moz-progress-bar { background: repeating-linear-gradient(-55deg, var(--green) 0 2.6px, transparent 2.6px 6px); }
progress.crown::-webkit-progress-value { background: repeating-linear-gradient(-55deg, #b8860b 0 2.6px, transparent 2.6px 6px); }
progress.crown::-moz-progress-bar { background: repeating-linear-gradient(-55deg, #b8860b 0 2.6px, transparent 2.6px 6px); }
.crowned { color: var(--amber); }
.grade { display: inline-block; padding: 0 8px; border: 2.4px solid currentColor; border-radius: 4px; font: 14px/1.4 var(--poster); letter-spacing: .08em; text-transform: uppercase; -webkit-text-stroke-width: 0; transform: rotate(-3deg); -webkit-mask: var(--worn); mask: var(--worn); }
.grade.clean { color: var(--teal); }
.grade.caution { color: var(--amber); }
.grade.risky { color: var(--red); }
ul.flags, .steps { list-style: none; margin: 8px 0; padding: 0; }
.flags li, .steps li { position: relative; padding: 3px 0 3px 32px; font-size: 17.5px; }
.flags li::before, .steps li::before { content: ''; position: absolute; left: 0; top: 4px; width: 23px; height: 23px; background: center / contain no-repeat; }
.flags li.bad::before, .steps li.no::before { background-image: var(--cross); }
.flags li.warn::before { background-image: var(--bang); }
.flags li.good::before, .steps li.ok::before { background-image: var(--tick); }
.flags li.fact::before { background-image: var(--dash); }
.steps li.no { color: var(--redp); }
.steps li.run { color: var(--ink2); }
.steps li.run::before { content: '…'; top: -2px; background: none; font-size: 24px; line-height: 1; color: var(--pencil); }
dl.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 8px 0; font-size: 17.5px; }
dl.kv dt { color: var(--ink2); font: 700 11.5px/2 var(--type); letter-spacing: .06em; text-transform: uppercase; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
ol.holders { list-style: none; margin: 6px 0; padding: 0; counter-reset: h; font-size: 16.5px; }
.holders li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px dotted rgba(30, 27, 22, .28); }
.holders li::before { counter-increment: h; content: counter(h) '.'; width: 24px; flex: none; font: 700 11.5px var(--type); color: var(--ink2); }
.holders .pct { margin-left: auto; font: 700 12.5px var(--type); }
.chains { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 3px; margin: 10px 0; }
.chains i { font: normal 700 12px/22px var(--type); text-align: center; color: var(--faint); border: 1.5px solid rgba(30, 27, 22, .22); border-radius: 3px; }
.chains i.on { color: var(--ink); border-color: var(--ink); }
.chains i.ok { background: rgba(43, 122, 128, .16); }
.chains i.cs { border-style: dashed; }
.ladder { display: grid; gap: 3px; margin: 8px 0; padding: 0; list-style: none; }
.ladder li { display: flex; gap: 10px; align-items: baseline; font: 700 12px var(--type); color: var(--faint); }
.ladder li b { width: 66px; flex: none; font: 400 15px var(--hand); }
.ladder li.on { color: var(--ink); }
.ladder li.root { color: var(--teal); }
.verdict { display: inline-block; margin: 14px 0 0; padding: 6px 16px; border: 3px solid currentColor; border-radius: 5px; font: 21px/1.25 var(--hand); transform: rotate(-1.5deg); -webkit-mask: var(--worn); mask: var(--worn); }
.verdict.ok { color: var(--teal); }
.verdict.no { color: var(--red); }
.sim .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; font-size: 18px; }
.sim .head b { font-weight: 400; -webkit-text-stroke: .4px currentColor; }
details > summary { cursor: pointer; }

/* ---------- create, verify, profile ---------- */
.create-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 52px; align-items: start; }
.upload { position: relative; display: block; aspect-ratio: .84; background: #f7f2e4; border: 2.6px solid var(--ink); box-shadow: 4px 5px 0 rgba(30, 27, 22, .2); transform: rotate(-2deg); cursor: pointer; }
.upload .frame { position: absolute; inset: 14px 14px 58px; display: grid; place-items: center; padding: 10px; border: 2px dashed rgba(30, 27, 22, .35); text-align: center; color: var(--ink2); font-size: 19px; }
.upload img { position: absolute; inset: 14px 14px 58px; width: calc(100% - 28px); height: calc(100% - 72px); object-fit: cover; border: 1.5px solid var(--ink); }
.upload .cap-line { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: 14.5px; line-height: 1.2; color: var(--ink2); text-align: center; }
.upload input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload:hover { transform: rotate(-1deg); }
.upload:focus-within { outline: 2.5px dashed var(--teal); outline-offset: 5px; }
.gen { margin: 18px 0 0; text-align: center; }
.gate { display: inline-block; margin-bottom: 22px; padding: 12px 18px; background: #f3e39b; color: var(--ink); font-size: 19px; box-shadow: 3px 5px 8px rgba(60, 40, 10, .25); transform: rotate(-1deg); }
details.more { margin: 0 0 18px; }
details.more > summary { margin-bottom: 14px; color: var(--ink2); font-size: 19px; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
.file-head { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.file-head .addr { margin: 8px 0 4px; font: 700 18px var(--type); overflow-wrap: anywhere; }
.file-head .sub { font-size: 18px; color: var(--ink2); }
.stats { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.stats > span { display: grid; justify-items: start; gap: 2px; font-size: 17px; color: var(--ink2); }
.stats b { font: 400 34px/1 var(--hand); -webkit-text-stroke: .8px var(--ink); color: var(--ink); }
.stats b.sell { color: var(--redp); -webkit-text-stroke-color: var(--redp); }
.tally { height: 30px; width: auto; color: var(--ink); }
.ptabs { margin: 8px 0 14px; }
.ptabs .choice { font-size: 21px; }
.ledger { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 3px; max-width: 800px; margin: 16px 0; }
.ledger > * { display: block; aspect-ratio: 1; border: 1.6px solid rgba(30, 27, 22, .45); border-radius: 2px; }
.ledger .reg { background: var(--mustard); }
.ledger .coin-l { background: var(--teal); }
.ledger .used { background: repeating-linear-gradient(-45deg, #8a2a1e 0 1.6px, transparent 1.6px 4px); }
.ledger .proof { background: var(--ink); }
.ledger a:hover { outline: 2px solid var(--ink); }
.ledger-key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 16.5px; }
.ledger-key i { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; border: 1.6px solid rgba(30, 27, 22, .45); border-radius: 2px; }
dl.reg-kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 18px; margin: 10px 0; }
dl.reg-kv dt { font-size: 18px; color: var(--ink2); }
dl.reg-kv dd { margin: 0; font: 700 13px/1.6 var(--type); overflow-wrap: anywhere; }
.btnline { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; }
.narrow { max-width: 720px; }

/* ---------- dialogs and toasts ---------- */
#modal-root .backdrop { position: fixed; inset: 0; z-index: 50; display: grid; padding: 34px 16px; overflow-y: auto; background: rgba(18, 16, 13, .64); }
.dialog { position: relative; width: min(560px, 100%); margin: auto; padding: 30px 36px 32px; background: var(--paper) var(--noise); box-shadow: 0 20px 44px rgba(0, 0, 0, .62), inset 0 0 54px rgba(150, 110, 45, .28); outline: none; }
.dialog::before { content: ''; position: absolute; inset: -4px; background: var(--frame-b); pointer-events: none; }
.dialog.wide { width: min(760px, 100%); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.dialog-head h2 { margin: 0; font: 31px/1.1 var(--hand); -webkit-text-stroke: .8px var(--ink); overflow-wrap: anywhere; }
.x { flex: none; width: 42px; height: 42px; margin: -6px -10px 0 0; padding: 5px; background: none; border: 0; color: #8f8b84; cursor: pointer; }
.x .ink { width: 100%; height: 100%; }
.x:hover { color: var(--ink2); }
.wallet-option { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin: 10px 0; padding: 12px 18px; background: none; border: 0; color: var(--ink); text-align: left; font: 23px/1.15 var(--hand); cursor: pointer; }
.wallet-option::before { content: ''; position: absolute; inset: -2px; z-index: -1; background: var(--paper-btn) 0 0 / 100% 100% no-repeat; filter: drop-shadow(3px 4px 0 rgba(30, 27, 22, .28)); pointer-events: none; }
.wallet-option small { display: block; margin-top: 2px; font-size: 16.5px; color: var(--ink2); }
.wallet-option .ink { width: 56px; height: 28px; flex: none; }
.wallet-option:hover { transform: translate(-1px, -2px); }
.wallet-option:hover::before { filter: drop-shadow(5px 6px 0 rgba(30, 27, 22, .28)); }
.wallet-option:disabled { color: var(--pencil); cursor: default; transform: none; }
.wallet-option:disabled::before { opacity: .45; filter: none; }
.idbox { position: relative; margin-top: 16px; padding: 14px 18px; background: rgba(255, 252, 240, .55); font-size: 18px; }
.idbox::before { content: ''; position: absolute; inset: -4px; background: var(--frame); pointer-events: none; }
.idbox .addr { margin: 4px 0 8px; font: 700 14px var(--type); overflow-wrap: anywhere; }
.bar-q { height: 24px; padding: 4px; background: var(--box) 0 0 / 100% 100% no-repeat; }
.bar-q i { display: block; width: 0; height: 100%; background: repeating-linear-gradient(-55deg, var(--teal) 0 2.6px, transparent 2.6px 6px); }
.how-steps p { font-size: 19.5px; }
.how-steps b { font-weight: 400; -webkit-text-stroke: .5px var(--ink); }
.fb-opts { margin: 4px 0 10px; }
.hd { margin: 18px 0 4px; font: 23px/1.2 var(--hand); -webkit-text-stroke: .5px var(--ink); }
.coin-view.dumped .day h1 { position: relative; }
.coin-view.dumped .day h1::after { content: ''; position: absolute; left: -8px; right: -8px; top: 14%; bottom: 10%; background: var(--scribble) 0 0 / 100% 100% no-repeat; }
#toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; max-width: min(640px, 92vw); padding: 10px 24px; background: #f2e9cd; color: var(--ink); font: 700 14px/1.4 var(--type); box-shadow: 0 8px 18px rgba(0, 0, 0, .5);
  transform: translate(-50%, 220%) rotate(-.6deg); visibility: hidden; transition: transform .25s, visibility 0s .25s; pointer-events: none; }
#toast.show { transform: translate(-50%, 0) rotate(-.6deg); visibility: visible; transition: transform .25s, visibility 0s; }
#toast.err { color: var(--red); }

/* ---------- the 404 photo ---------- */
.lost { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 50px; align-items: center; padding: 30px 0; }
.lost-photo { position: relative; margin: 0; padding: 10px 10px 40px; background: #f7f2e4; border: 2.6px solid var(--ink); box-shadow: 5px 6px 0 rgba(30, 27, 22, .22); transform: rotate(-2.5deg); }
.lost-photo .ink { display: block; width: 100%; height: auto; }
.lost-photo figcaption { position: absolute; left: 0; right: 0; bottom: 8px; font-size: 17px; text-align: center; color: var(--ink2); }
.lost h1 { margin: 0; font: 60px/1 var(--hand); -webkit-text-stroke: 2px var(--ink); }
.lost p { margin: 12px 0 18px; font-size: 23px; }

/* ---------- bunker extras ---------- */
/* knock five times: the handwheel on the bunker door spins a turn and a half and stops */
.hatch .wheel { transform-box: fill-box; transform-origin: center; }
.hatch.spin .wheel { animation: wheel 1.6s cubic-bezier(.45, 0, .2, 1); }
@keyframes wheel { to { transform: rotate(540deg); } }
.term { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; flex-direction: column; width: min(640px, calc(100vw - 32px)); height: 410px; background: #f5efdc var(--noise); color: #26231d; font: 700 14px/1.45 var(--type); box-shadow: 0 18px 40px rgba(0, 0, 0, .62); }
.term::before { content: ''; position: absolute; inset: -4px; background: var(--frame-b); pointer-events: none; }
.term-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px 6px; border-bottom: 2px dashed rgba(30, 27, 22, .25); font: 20px var(--hand); }
.term-head button { padding: 0; background: none; border: 0; font: 18px var(--hand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.term-out { flex: 1; overflow-y: auto; padding: 10px 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-out .dim, .term-in span { color: #7d735f; }
.term-out .err { color: var(--red); }
.term-out .ok { color: var(--teal); }
.term-out .cmd { margin-top: 6px; }
.term-in { display: flex; gap: 8px; padding: 8px 18px 12px; border-top: 2px dashed rgba(30, 27, 22, .25); }
.term-in span { white-space: nowrap; }
.term-in input[type=text] { flex: 1; min-width: 0; padding: 0; background: none; color: inherit; font: inherit; caret-color: var(--red); }
.drill { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(18, 16, 13, .72); }
.drill-box { position: relative; width: min(620px, 100%); padding: 26px 38px 28px; background: #e8b73a var(--noise); color: #1b1712; border: 6px solid #1b1712; box-shadow: 0 0 0 7px #e8b73a, 0 0 0 10px #1b1712, 0 22px 54px rgba(0, 0, 0, .65);
  font: 700 14.5px/1.45 var(--type); text-align: center; transform: rotate(-.8deg); }
.drill-box .trefoil { width: 86px; height: 86px; }
.drill-box h2 { margin: 6px 0 0; font: 60px/1 var(--poster); letter-spacing: .04em; }
.drill-box .kicker { margin: 4px 0 14px; font: 20px/1.1 var(--poster); letter-spacing: .14em; }
.drill-box .row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 2px solid rgba(27, 23, 18, .35); text-align: left; }
.drill-box .dead { color: #8f1d14; }
.drill-box .alive { color: #1c5a39; }
.drill-box p { margin: 14px 0 0; }
.drill-box button { margin-top: 18px; padding: 10px 24px; background: #1b1712; color: #e8b73a; border: 0; font: 19px var(--poster); letter-spacing: .1em; cursor: pointer; }
#pow { position: fixed; top: 58px; left: 50%; z-index: 30; pointer-events: none; }
#pow .ink { position: absolute; top: 0; width: 156px; height: 98px; animation: pow 1s ease-out forwards; }
@keyframes pow { 0% { transform: scale(.2) rotate(-14deg); opacity: 0; } 18% { transform: scale(1.12) rotate(4deg); opacity: 1; } 32% { transform: scale(1) rotate(0); } 72% { opacity: 1; } 100% { transform: translateY(-10px) scale(1.04); opacity: 0; } }

/* motion: only after an event, and only with animations switched on */
body.motion .coin.bumped .photo { animation: bump .6s ease-out; }
@keyframes bump { 30% { transform: rotate(-6deg) translateY(-7px); } 60% { transform: rotate(3deg); } }
body.motion .arrive { animation: arrive .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes arrive { from { transform: translateY(-34px) rotate(-7deg); opacity: 0; } }
@keyframes jig { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- narrower screens ---------- */
/* where the wall beside the journal gets narrow, the radio shrinks into the corner, over the journal's spine, clear of the page */
@media (max-width: 1500px) { .radio { left: 6px; bottom: 4px; transform: scale(.72); transform-origin: 0 100%; } }
@media (max-width: 1180px) {
  .top { grid-template-columns: auto 1fr auto; }
  .radio { display: none; }
  .journal { display: flex; flex-direction: column; margin: 8px 12px 0; padding-left: 28px; }
  .roll { width: 40px; }
  .index { position: static; width: auto; margin: 0 0 -6px 10px; z-index: auto; order: -1; }
  .index-in { display: flex; gap: 4px; overflow-x: auto; padding-top: 4px; }
  .itab { width: 84px; height: 66px; padding: 4px; background: #d7c493; border: 2.6px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
  .itab[aria-current="page"] { background: #f3e9cf; transform: translateY(-4px); }
  .itab:hover { transform: translateY(-2px); }
  .ribbons { display: none; }
  .page { padding: 26px 26px 44px 40px; }
  .spread { grid-template-columns: minmax(0, 1fr); background: none; }
  .leaf.left, .leaf.right { padding: 0; }
  .leaf.right { margin-top: 26px; }
}
@media (max-width: 760px) {
  .account { margin-top: 12px; flex-direction: column; align-items: flex-end; gap: 8px; }
  .account > .pqline { margin-top: 0; font-size: 16px; }
  .keyring { min-height: 0; }
  .keyring .swing { transform-origin: 10px 50%; }
  .keyring .i-keyring { display: none; }
  .ktag { height: auto; min-width: 0; margin: 0; padding: 4px 12px 5px 25px; }
  .ktag b { font-size: 18px; }
  .ktag small { display: none; }
  body { font-size: 18px; }
  .top { padding: 0 12px; grid-template-columns: auto 1fr; row-gap: 0; }
  .chits { grid-column: 1 / -1; grid-row: 2; margin: 0 4px 12px 0; gap: 10px; }
  .ca-strip { font-size: 13px; padding: 5px 14px 6px; }
  .xchit { width: 40px; height: 40px; }
  .xchit .ink { width: 23px; height: 23px; }
  .sign b { font-size: 34px; }
  .sign .hatch { width: 52px; height: 52px; margin: -10px -2px -9px -4px; }
  .day h1 { font-size: 50px; }
  .board-top, .create-grid, .lost { grid-template-columns: minmax(0, 1fr); }
  .create-grid .upload { max-width: 260px; }
  .page { padding: 22px 16px 40px 32px; }
  .hill-card .coin { grid-template-columns: 120px minmax(0, 1fr); }
  .ledger { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .floor { padding: 0 12px; }
}
