:root {
  --ink: #f4ecdf; --dim: #b9ad9c; --pink: #ff3d8b; --cyan: #3de0ff; --gold: #ffd23a;
  --paper: #f3ead8; --paper-ink: #1d1813; --paper-dim: #6f6353; --rule: #d8cbb2;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #07070b; color: var(--ink); font: 15px/1.45 "IBM Plex Sans Condensed", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
#shop { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }

#top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; pointer-events: none; z-index: 5; }
#top > * { pointer-events: auto; }
.logo { background: none; border: 0; padding: 0; font: 34px/1 "Yellowtail", cursive; color: #fff; text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink), 0 0 36px rgba(255, 61, 139, .6); }
#where { font: 15px "Anton", Impact, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-view="door"] #where { display: none; }
.grow { flex: 1; }
.pill { border: 1px solid rgba(255, 255, 255, .18); background: rgba(12, 10, 16, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.pill:hover { border-color: rgba(255, 255, 255, .4); }
.pill.hot { border-color: var(--pink); box-shadow: 0 0 12px rgba(255, 61, 139, .35); }
.icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(12, 10, 16, .62); }
.icon.off { opacity: .45; text-decoration: line-through; }
.icon svg .slash { display: none; }
.icon.off svg .slash { display: inline; }
.icon.off svg .waves { display: none; }
#musicBtn, #mute { display: grid; place-items: center; color: var(--ink); }

#nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 16px max(14px, env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; z-index: 5; background: linear-gradient(transparent, rgba(5, 4, 8, .85) 45%); }
#nav::-webkit-scrollbar { display: none; }
#nav button { flex: none; border: 1px solid rgba(255, 255, 255, .16); background: rgba(16, 13, 20, .7); border-radius: 6px; padding: 8px 12px; font: 14px "Anton", Impact, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
#nav button.on { color: #120a10; background: var(--gold); border-color: var(--gold); }
#count { position: fixed; left: 16px; bottom: 62px; margin: 0; font-size: 12px; color: var(--dim); z-index: 4; text-shadow: 0 1px 3px #000; }
body:not([data-view="door"]) #count { display: none; }
#pager { position: fixed; left: 50%; bottom: 66px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(10, 8, 14, .75); border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; padding: 4px; z-index: 5; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#pager[hidden] { display: none; }
#pager button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); }
#pager button:hover { background: var(--pink); }
#pageNo { font-size: 13px; color: var(--dim); white-space: nowrap; }

/* the back of the box: printed paper */
#app, .sheet { position: fixed; z-index: 8; transition: transform .25s ease, opacity .25s ease; opacity: 0; }
#app { top: 0; right: 0; bottom: 0; width: min(460px, 100vw); overflow-y: auto; transform: translateX(30px); padding: 64px 14px 14px 0; overscroll-behavior: contain; }
#app.in, .sheet.in { opacity: 1; transform: none; }
#app { pointer-events: none; }
#app > * { pointer-events: auto; }
.paper { position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 4px; padding: 22px 22px 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); background-image: radial-gradient(rgba(120, 90, 40, .06) 1px, transparent 1px); background-size: 3px 3px; }
.paper h2 { font: 30px/1.05 "Anton", Impact, sans-serif; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .01em; }
.paper h3 { font: 15px "Anton", Impact, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin: 22px 0 8px; padding-top: 10px; border-top: 2px solid var(--paper-ink); }
.paper .dim, .dim { color: var(--paper-dim); font-weight: 400; }
.x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--paper-ink); color: var(--paper); z-index: 2; }
.head { display: flex; gap: 14px; align-items: flex-start; padding-right: 30px; }
.ico { border-radius: 20px; flex: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.by { margin: 0 0 6px; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; color: inherit; }
.tags { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 12px; border: 1px solid var(--paper-ink); border-radius: 3px; padding: 0 6px; }
.tag.au { background: var(--gold); border-color: #b08a00; font-weight: 600; }
.tag.indie { background: #3de0ff33; border-color: #1898b0; }
.tag.drop { background: #ff3d8b22; border-color: var(--pink); }
.buy { margin: 16px 0 6px; display: grid; gap: 8px; }
.store { display: block; text-align: center; background: var(--paper-ink); color: var(--paper); border: 0; border-radius: 8px; padding: 13px 16px; text-decoration: none; font-size: 16px; font-weight: 600; width: 100%; }
.store b { margin-left: 6px; color: var(--gold); }
.store s { opacity: .6; margin-left: 4px; }
.store:hover { background: #000; }
.st { color: #d99a00; letter-spacing: 1px; }
.shots { display: flex; gap: 8px; overflow-x: auto; margin: 12px -22px 0; padding: 4px 22px 8px; scroll-snap-type: x mandatory; }
.shots img { height: 300px; border-radius: 8px; scroll-snap-align: start; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); background: #ddd; }
.vids { display: grid; gap: 10px; }
.vid { display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto 1fr; column-gap: 10px; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.vid img { grid-row: 1 / 4; width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.vid .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #b0141e; font-weight: 600; }
.vid .vt { font-weight: 600; line-height: 1.25; }
.vid .vc { font-size: 13px; color: var(--paper-dim); }
.vid.playing { display: block; }
.vid iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 6px; }
blockquote { margin: 0 0 12px; padding: 10px 12px; background: #fffaf0; border-left: 4px solid var(--gold); border-radius: 3px; }
blockquote p { margin: 4px 0; }
blockquote cite { font-size: 12px; color: var(--paper-dim); font-style: normal; }
.press { margin: 0; padding-left: 18px; }
.press a { color: inherit; }
.desc { white-space: normal; max-height: 260px; overflow-y: auto; font-size: 14px; }
.desc.small { max-height: 160px; }
.req { width: 100%; border-collapse: collapse; font-size: 14px; }
.req td { border-bottom: 1px dotted var(--rule); padding: 4px 0; }
.req td:first-child { color: var(--paper-dim); width: 40%; }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more button { background: none; border: 0; display: grid; justify-items: center; gap: 4px; font-size: 12px; line-height: 1.2; text-align: center; }
.more img { width: 60px; height: 60px; border-radius: 14px; }
.fine { font-size: 12px; color: var(--paper-dim); margin: 18px 0 0; }

.sheet { inset: 0; display: grid; place-items: start center; padding: 70px 16px 20px; overflow-y: auto; background: rgba(4, 3, 6, .55); transform: translateY(20px); }
.sheet[hidden] { display: none; }
.sheet .paper { width: min(980px, 100%); }
.sheet input, .sheet select, .sheet textarea { font: inherit; border: 2px solid var(--paper-ink); border-radius: 6px; padding: 10px 12px; background: #fffaf0; color: var(--paper-ink); width: 100%; }
.sheet form { display: grid; gap: 10px; margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.filters select { width: auto; padding: 6px 8px; }
.filters label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.filters input { width: auto; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hit { display: grid; grid-template-columns: 52px 1fr; column-gap: 10px; text-align: left; background: #fffaf0; border: 1px solid var(--rule); border-radius: 8px; padding: 8px; color: var(--paper-ink); }
.hit:hover { border-color: var(--paper-ink); }
.hit img { grid-row: 1 / 4; width: 52px; height: 52px; border-radius: 12px; }
.hit .n { font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit .d, .hit .m { font-size: 12px; color: var(--paper-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit i { font-style: normal; opacity: .8; }
.sale { color: #c81e1e; }
.hp { position: absolute; left: -9999px; height: 0; opacity: 0; }
.msg { min-height: 1.5em; font-weight: 600; }
#submit .paper { width: min(560px, 100%); }

#load { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 10px; background: #07070b; transition: opacity .6s; }
#load.gone { opacity: 0; pointer-events: none; }
#load b { font: 64px/1 "Yellowtail", cursive; font-weight: 400; color: #fff; text-shadow: 0 0 8px var(--pink), 0 0 24px var(--pink); animation: hum 3s infinite; }
#load span { color: var(--dim); font-size: 13px; }
.bar { width: 180px; height: 3px; background: #222; border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 5%; background: var(--pink); transition: width .4s; }
@keyframes hum { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 47% { opacity: .55; } 48% { opacity: 1; } }

@media (max-width: 640px) {
  #top { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .logo { font-size: 28px; }
  .pill span { display: none; }
  .pill { padding: 8px 12px; }
  #where { display: none; }
  #app { width: 100vw; top: 30vh; padding: 0; transform: translateY(40px); }
  #app .paper { border-radius: 14px 14px 0 0; min-height: 70vh; }
  .shots img { height: 240px; }
  .vid { grid-template-columns: 120px 1fr; }
  .vid img { width: 120px; }
}
#sale { position: fixed; top: max(62px, calc(env(safe-area-inset-top) + 52px)); left: 50%; transform: translateX(-50%) rotate(-1.5deg); z-index: 5; border: 0; border-radius: 4px; padding: 8px 14px; background: #ff2d2d; color: #fff; font-size: 14px; white-space: nowrap; box-shadow: 0 0 22px rgba(255, 45, 45, .55); animation: hum 4s infinite; }
#sale[hidden] { display: none; }
#sale b { font: 16px "Anton", Impact, sans-serif; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
#sale span { opacity: .85; margin-left: 6px; }
body:not([data-view="door"]) #sale { display: none; }
.store em { font-style: normal; background: #ff2d2d; color: #fff; border-radius: 3px; padding: 0 5px; margin-left: 4px; }
.prices { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.prices span { display: grid; text-align: center; font-weight: 600; }
.prices i { font-style: normal; font-size: 11px; color: var(--paper-dim); font-weight: 400; }
#about .paper { width: min(640px, 100%); }
#about ul { padding-left: 20px; margin: 0; }
#about li { margin: 4px 0; }
#about a { color: inherit; }
@media (max-width: 640px) { #aboutBtn { padding: 8px 10px; } }
#stepper { position: fixed; z-index: 7; left: 0; right: 0; bottom: 70px; display: none; justify-content: center; align-items: center; gap: 12px; pointer-events: none; }
body.holding #stepper { display: flex; }
body.holding #pager { display: none; }
#stepper button { pointer-events: auto; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); background: rgba(10, 8, 14, .8); color: var(--gold); font-size: 20px; box-shadow: 0 0 16px rgba(255, 210, 58, .3); }
#stepper button:hover { background: var(--gold); color: #120a10; }
#stepNo { pointer-events: auto; background: rgba(10, 8, 14, .8); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--ink); white-space: nowrap; }
@media (min-width: 901px) { #stepper { right: min(460px, 100vw); } }
@media (max-width: 640px) { #stepper { bottom: auto; top: 22vh; } #stepper button { width: 46px; height: 46px; } }
.pill.cabo { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-color: #ffc21a; }
.pill.cabo img { width: 30px; height: 30px; border-radius: 50%; background: #ffe9b0; object-fit: cover; object-position: 50% 30%; }
#chat { position: fixed; z-index: 9; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; transition: .25s; width: min(760px, calc(100vw - 32px)); display: flex; align-items: flex-end; gap: 0; }
#chat.in { transform: translate(-50%, 0); opacity: 1; }
#chat[hidden] { display: none; }
#chat .portrait { width: 170px; height: 170px; object-fit: cover; object-position: 50% 25%; margin-right: -26px; margin-bottom: 18px; z-index: 1; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); flex: none; }
#chat .bubble { position: relative; flex: 1; background: #fff6df; color: #3a2a1a; border-radius: 34px; padding: 30px 26px 16px 40px; box-shadow: 0 14px 40px rgba(0,0,0,.5), inset 0 0 0 4px #f1dfb6; }
#chat .name { position: absolute; top: -16px; left: 30px; background: #ffc21a; color: #3a2a1a; font: 20px "Anton", Impact, sans-serif; letter-spacing: .06em; padding: 3px 18px; border-radius: 999px; transform: rotate(-4deg); box-shadow: 0 3px 0 #d79e00; }
#chat .x { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #3a2a1a; color: #fff6df; }
#chatText { font-size: 18px; line-height: 1.45; min-height: 3.2em; margin: 0 26px 10px 0; font-weight: 600; }
#chat.typing .bubble { cursor: pointer; }
#chat.typing #chatText::after { content: '  ▸▸ skip'; font-size: 12px; font-weight: 600; opacity: .4; white-space: nowrap; }
#chatOpts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#chatOpts button { border: 2px solid #3a2a1a; background: #fff; color: #3a2a1a; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
#chatOpts button:hover { background: #ffc21a; }
#chatOpts .app { display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; background: #3a2a1a; color: #fff6df; }
#chatOpts .app img { width: 26px; height: 26px; border-radius: 7px; }
#chat form { display: flex; gap: 8px; }
#chat input { flex: 1; font: inherit; border: 2px solid #e2cd9c; background: #fff; border-radius: 999px; padding: 8px 14px; color: #3a2a1a; }
#chat form button { border: 0; background: #3a2a1a; color: #fff6df; border-radius: 999px; padding: 8px 16px; font-weight: 600; }
@media (max-width: 640px) {
  .pill.cabo span { display: none; } .pill.cabo { padding: 4px; }
  #chat .portrait { width: 96px; height: 96px; margin-right: -30px; position: absolute; top: -78px; left: -6px; }
  #chat .bubble { padding: 28px 16px 12px 18px; border-radius: 24px; }
  #chat .name { left: 74px; }
  #chatText { font-size: 16px; }
}
body.chatting #stepper, body.chatting #pager { display: none !important; }
body.shot #top, body.shot #nav, body.shot #count, body.shot #sale, body.shot #stepper, body.shot #pager { display: none !important; }
#chatChart { margin: 0 4px 12px 0; max-height: 46vh; overflow-y: auto; }
.viz { margin: 0; --bar: #c22a68; }
.viz figcaption { font: 13px "Anton", Impact, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #7a6650; margin-bottom: 6px; }
.hb { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; padding: 3px 4px; border-radius: 6px; }
.hb + .hb { margin-top: 2px; }
.hb.go { cursor: pointer; }
.hb:hover { background: #f3e5c3; }
.hb:hover .track i, .col:hover .cbar i { filter: brightness(1.15); }
.hb .lab { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3a2a1a; }
.hb .lab img { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.hb .track { height: 14px; display: block; }
.hb .track i { display: block; height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; }
.hb .val { font-size: 13px; font-weight: 600; color: #3a2a1a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb .val em { font-style: normal; font-weight: 400; color: #7a6650; }
.cols { display: flex; align-items: stretch; gap: 2px; height: 150px; }
.col { flex: 1; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; min-width: 0; }
.cv { font-size: 12px; font-weight: 600; color: #3a2a1a; font-variant-numeric: tabular-nums; }
.cbar { width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #d9c7a2; }
.cbar i { display: block; width: min(34px, 80%); background: var(--bar); border-radius: 4px 4px 0 0; }
.cl { font-size: 11px; color: #7a6650; margin-top: 4px; white-space: nowrap; }
.viz.hero .big { font: 56px/1 "Anton", Impact, sans-serif; color: #3a2a1a; }
.viz.hero .meter { height: 12px; background: #ecdcb8; border-radius: 6px; margin: 8px 0 6px; overflow: hidden; }
.viz.hero .meter i { display: block; height: 100%; background: var(--bar); border-radius: 6px; }
@media (max-width: 640px) { .hb { grid-template-columns: 38% 1fr auto; gap: 6px; } .cols { height: 120px; } }
.wrong { font-size: 12px; color: var(--paper-dim); margin-left: 4px; }
.fixform { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 13px; }
.fixform select, .fixform input { font: inherit; border: 1px solid var(--paper-ink); border-radius: 6px; padding: 4px 6px; background: #fffaf0; color: var(--paper-ink); }
.fixform input { flex: 1; min-width: 140px; }
.fixform button { border: 0; background: var(--paper-ink); color: var(--paper); border-radius: 6px; padding: 4px 10px; }
.fixmsg { width: 100%; color: var(--paper-dim); }
.fixform[hidden] { display: none; }
@media (max-width: 640px) {
  #app { top: 48vh; }
  #app .paper { min-height: 52vh; }
  body.holding #stepper { top: calc(48vh - 64px); bottom: auto; }
  #chatText { min-height: 0; max-height: 24vh; overflow-y: auto; font-size: 15px; }
  #chatOpts { max-height: 26vh; overflow-y: auto; gap: 6px; }
  #chatOpts button { font-size: 13px; padding: 5px 10px; }
  #chatChart { max-height: 30vh; }
}
.pill.basket { display: flex; align-items: center; gap: 6px; }
.pill.basket b { font-weight: 600; font-size: 13px; min-width: 18px; height: 18px; border-radius: 9px; background: rgba(255,255,255,.12); display: inline-grid; place-items: center; padding: 0 4px; }
.pill.basket.full { border-color: var(--gold); }
.pill.basket.full b { background: var(--gold); color: #120a10; }
.pill2 { border: 2px solid var(--paper-ink); background: transparent; color: var(--paper-ink); border-radius: 8px; padding: 9px 14px; font-weight: 600; }
.pill2:hover { background: #f3e5c3; }
.buy .bk.on { background: var(--gold); border-color: #b08a00; }
#basket .paper { width: min(620px, 100%); }
.blist { display: grid; gap: 6px; margin: 14px 0; }
.brow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; background: #fffaf0; border: 1px solid var(--rule); border-radius: 8px; padding: 6px 8px; }
.bopen { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; text-align: left; background: none; border: 0; padding: 0; color: var(--paper-ink); min-width: 0; }
.bopen img { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px; }
.bopen .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bopen .d { font-size: 12px; color: var(--paper-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp { font-weight: 600; font-size: 14px; white-space: nowrap; }
.bp s { font-weight: 400; color: var(--paper-dim); }
.brm { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #ecdcb8; color: var(--paper-ink); }
.bempty { color: var(--paper-dim); padding: 20px 0; text-align: center; }
.btotal { font-size: 14px; color: var(--paper-dim); }
.btotal b { color: var(--paper-ink); }
.bactions { display: flex; flex-wrap: wrap; gap: 8px; }
.bactions .store { width: auto; flex: 1 1 100%; }
.bactions[hidden] { display: none; }
@media (max-width: 640px) { .pill.basket { padding: 8px 10px; } }
#lightsBtn { display: grid; place-items: center; color: var(--gold); }
#lightsBtn[data-mode="dim"] { color: #c9a24a; opacity: .85; }
#lightsBtn[data-mode="off"] { color: var(--dim); opacity: .6; }
.tag.stale { background: #f1e2c4; border-color: #b0862a; color: #6a4a10; }
#about .paper { font-size: 17px; line-height: 1.55; }
#about h2 { font-size: 38px; }
#about h3 { font-size: 18px; }
#about .fine { font-size: 14px; }
@media (max-width: 640px) { #about .paper { font-size: 16px; } #about h2 { font-size: 32px; } }
#load b { font-size: 54px; }
.lcabo { display: flex; align-items: flex-end; gap: 0; margin-top: 6px; }
.lcabo img { width: 120px; height: 120px; object-fit: cover; object-position: 50% 25%; margin-right: -14px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); position: relative; z-index: 1; }
#loadSay { margin: 0 0 22px; background: #fff6df; color: #3a2a1a; font-weight: 600; font-size: 15px; line-height: 1.35; padding: 12px 16px 12px 22px; border-radius: 18px; width: min(300px, 64vw); min-height: 3.1em; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.bar { margin-top: 4px; width: 220px; }
/* the back of the box can be resized: drag the left edge (desktop) or the top bar (phones) */
#app { width: var(--appw, min(460px, 100vw)); }
.grab { position: absolute; left: -9px; top: 0; bottom: 0; width: 16px; cursor: ew-resize; touch-action: none; z-index: 3; }
.grab::after { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 46px; margin-top: -23px; border-radius: 2px; background: rgba(29,24,19,.35); }
.grab:hover::after { background: var(--pink); }
@media (min-width: 901px) { #stepper { right: var(--appw, min(460px, 100vw)); } }
@media (max-width: 640px) {
  #app { top: var(--apptop, 48vh); width: 100vw; }
  #app .paper { min-height: calc(100vh - var(--apptop, 48vh)); padding-top: 26px; }
  body.holding #stepper { top: calc(var(--apptop, 48vh) - 64px); }
  .grab { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 26px; cursor: ns-resize; }
  .grab::after { left: 50%; top: 9px; width: 46px; height: 5px; margin: 0 0 0 -23px; }
}
#pager.empty button { display: none; }
#pager.empty #pageNo { padding: 8px 14px; }
/* phones: the header keeps Cabo, saved and search; the rest folds into ⋯ */
#menuBtn { display: none; font-size: 20px; line-height: 1; }
#extra { display: contents; }
@media (max-width: 640px) {
  #top { gap: 6px; }
  .logo { font-size: 26px; }
  #menuBtn { display: grid; place-items: center; }
  #extra { display: none; position: fixed; top: calc(max(10px, env(safe-area-inset-top)) + 48px); right: 12px; z-index: 12; flex-direction: column; align-items: stretch; gap: 8px;
    background: rgba(12, 10, 16, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 10px; min-width: 200px; }
  body.menu-open #extra { display: flex; }
  #extra .pill, #extra .icon { width: 100%; height: auto; border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; justify-content: flex-start; }
  #extra .pill span { display: inline; }
  #extra #lightsBtn::after { content: "Lights"; color: var(--ink); }
  #extra #musicBtn::after { content: "Muzak"; color: var(--ink); }
  #extra #musicBtn.off::after { content: "Muzak off"; }
  #extra #mute::after { content: "Sound effects"; color: var(--ink); }
  #extra #mute.off::after { content: "Sound effects off"; }
  #extra #musicBtn, #extra #mute { display: flex; }
}
.spotted { font-size: 14px; background: #ffe9e6; border: 1px solid #ff9a8a; border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; }
.spotted a { color: #b0141e; font-weight: 600; }
.iap { font-size: 14px; border-radius: 8px; padding: 7px 10px; margin: 8px 0 0; }
.iap.ok { background: #e4f4e0; border: 1px solid #8ac47c; color: #1e4a16; }
.iap.warn { background: #fff0d6; border: 1px solid #e0a643; color: #5a3a08; }
#news .paper { width: min(640px, 100%); }
.nhead { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.nhead img { width: 92px; height: 92px; object-fit: cover; object-position: 50% 25%; border-radius: 50%; background: #ffe9b0; flex: none; }
.ntag { display: inline-block; background: #ffc21a; color: #3a2a1a; font: 14px "Anton", Impact, sans-serif; letter-spacing: .06em; padding: 1px 10px; border-radius: 999px; transform: rotate(-3deg); }
#news h2 { margin: 4px 0 2px; }
.nicons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0 4px; }
.nicons button { background: none; border: 0; padding: 0; display: grid; justify-items: center; gap: 4px; font-size: 11px; line-height: 1.15; color: var(--paper-ink); text-align: center; }
.nicons img { width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.nicons span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#news .ngo { margin-top: 18px; }
@media (max-width: 640px) { .nicons { grid-template-columns: repeat(4, 1fr); } .nicons button:nth-child(n+5) { display: none; } }
.notesbtn { display: none; }
@media (max-width: 640px) { #extra .notesbtn { display: flex; } }
#notes .paper.notebook { width: min(640px, 100%); background-color: #fbf6e6; background-image: linear-gradient(90deg, transparent 52px, #e8a4a4 52px, #e8a4a4 54px, transparent 54px), repeating-linear-gradient(transparent 0 31px, #c9dbe9 31px 32px); background-size: auto; padding-left: 72px; }
#notes h2 { font: 700 44px/1 "Caveat", cursive; text-transform: none; margin: 6px 0 2px; }
#notes .nsub { font: 500 20px "Caveat", cursive; color: #6f6353; margin: 0 0 8px; }
.nentry { margin: 18px 0 8px; }
.nentry h3 { font: 700 26px/1.2 "Caveat", cursive; text-transform: none; letter-spacing: 0; border: 0; padding: 0; margin: 0; color: #2a2016; }
.nentry .nd { font: 500 18px "Caveat", cursive; color: #b0141e; }
.nentry ul { margin: 6px 0 0; padding-left: 18px; }
.nentry li { font: 500 21px/32px "Caveat", cursive; color: #2a2016; }
@media (max-width: 640px) { #notes .paper.notebook { padding-left: 46px; background-image: linear-gradient(90deg, transparent 30px, #e8a4a4 30px, #e8a4a4 32px, transparent 32px), repeating-linear-gradient(transparent 0 31px, #c9dbe9 31px 32px); } }
