@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Lilita One'; src: url('fonts/LilitaOne-Regular.ttf') format('truetype'); font-display: swap; }
:root { --serif: Georgia, 'Times New Roman', serif; --type: 'Courier New', Courier, monospace; --round: 'Fredoka', system-ui, sans-serif; --paper: #f8f0e8; --paper2: #e0d8c8; --leather: #483020; --gold: #d8b840; --cta: #384828; --hs: 1; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #9dd2ff; font-family: var(--serif); color: #2a2620; user-select: none; -webkit-user-select: none; touch-action: none; }
canvas { display: block; width: 100vw; height: 100vh; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.hidden { display: none !important; }
.ol { text-shadow: 0 0 3px #000, 0 2px 2px rgba(0,0,0,.8); }
kbd { font-family: var(--round); font-size: 11px; background: #fff; color: #222; border-radius: 5px; padding: 1px 5px; box-shadow: 0 2px 0 rgba(0,0,0,.35); }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; color: #fff; }
#hud > * { pointer-events: auto; }
#hud.dim > *:not(#cards) { opacity: .25; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 2px #000; pointer-events: none; }
#area { position: absolute; left: 4.4%; top: 15%; width: 22%; min-width: 230px; transform: scale(var(--hs)); transform-origin: left top; pointer-events: none; }
#area .an { display: flex; align-items: center; gap: 6px; font-size: 21px; text-shadow: 0 0 3px #000, 0 2px 2px rgba(0,0,0,.8); }
#area .an i { font-style: normal; font-size: 16px; } #area .an b { margin-left: auto; font-size: 14px; font-weight: 400; }
#area .bar { height: 9px; border-radius: 6px; background: #786850; margin-top: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
#areaFill { height: 100%; width: 0; background: linear-gradient(#f0d060, #d8b840); border-radius: 6px; transition: width .2s; }
#quest { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 16px; text-shadow: 0 0 3px #000, 0 2px 2px rgba(0,0,0,.8); }
#quest i { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 2px; flex: none; box-shadow: 0 0 2px #000; }
#quest.pop { animation: qpop .5s ease-out; } @keyframes qpop { from { transform: translateX(-14px); opacity: 0; } }
#topR { position: absolute; right: 6%; top: 13%; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transform: scale(var(--hs)); transform-origin: right top; }
#cashRow { display: flex; align-items: center; gap: 8px; } #cash { font: 700 40px var(--round); text-shadow: 0 0 4px #000, 0 3px 2px rgba(0,0,0,.7); }
#cashRow i { font-style: normal; font-size: 30px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.6)); }
#journalBtn { position: relative; width: 62px; height: 62px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #8a5a34, #704828 70%); border: 3px solid #483020; box-shadow: 0 4px 0 #2a1a10, 0 6px 12px rgba(0,0,0,.35); }
#journalBtn i { font-style: normal; font-size: 30px; } #journalBtn kbd { position: absolute; left: -8px; top: -8px; }
#journalArrow { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 34px; color: #ffd23f; text-shadow: 0 0 3px #000; animation: bounce .6s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translate(-50%, 8px); } }
body.touch #journalBtn kbd { display: none; }
#runTime { font: 600 14px var(--round); text-shadow: 0 0 3px #000; opacity: .85; }
#offersBtn { position: absolute; left: 3.5%; top: 45%; width: 92px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: scale(var(--hs)); transform-origin: left center; }
#offersBtn .burst { position: absolute; inset: -10px; background: radial-gradient(circle, rgba(255,220,80,.85), rgba(255,200,40,0) 65%); animation: pulse 1.4s ease-in-out infinite; border-radius: 50%; }
#offersBtn i { position: relative; font-style: normal; font-size: 32px; } #offersBtn b { position: relative; font: 400 17px 'Lilita One', var(--round); color: #ffb21a; -webkit-text-stroke: 1px #4a2a00; text-shadow: 0 2px 0 #4a2a00; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .8; } }
#boosts { position: absolute; left: 3.5%; top: 59%; display: flex; flex-direction: column; gap: 4px; font: 600 14px var(--round); text-shadow: 0 0 3px #000; pointer-events: none; }
#sellBanner { position: absolute; left: 50%; top: 9%; transform: translateX(-50%) scale(.6); font: 800 54px var(--round); color: #8ef04a; -webkit-text-stroke: 2px #1d3a0c; text-shadow: 0 4px 0 #1d3a0c, 0 0 12px rgba(0,0,0,.4); opacity: 0; transition: .15s; pointer-events: none; white-space: nowrap; }
#sellBanner.on { opacity: 1; transform: translateX(-50%) scale(var(--hs)); }
#notice { position: absolute; left: 50%; top: 74%; transform: translateX(-50%); font-size: 21px; text-shadow: 0 0 3px #000, 0 2px 2px rgba(0,0,0,.8); opacity: 0; transition: opacity .25s; white-space: nowrap; pointer-events: none; }
#notice.on { opacity: 1; }
#feed { position: absolute; right: 8%; top: 56%; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 3px; font-size: 15px; text-shadow: 0 0 3px #000, 0 1px 2px #000; pointer-events: none; }
#feed div { animation: fin .25s ease-out; transition: opacity .5s; } #feed div.out { opacity: 0; } @keyframes fin { from { opacity: 0; transform: translateX(14px); } }
#cap { position: absolute; left: 5%; bottom: 6%; display: flex; align-items: flex-end; gap: 8px; transform: scale(var(--hs)); transform-origin: left bottom; }
#cap i { font-style: normal; font-size: 46px; filter: brightness(0) invert(1) drop-shadow(0 0 2px #000) drop-shadow(0 2px 1px rgba(0,0,0,.6)); }
#cap b { display: block; font: 700 40px var(--round); line-height: .9; text-shadow: 0 0 4px #000, 0 3px 2px rgba(0,0,0,.6); } #cap small { font: 600 16px var(--round); text-shadow: 0 0 3px #000; }
#cap .full { position: absolute; left: 56px; top: -22px; font: 800 18px var(--round); color: #f82800; text-shadow: 0 0 3px #000; display: none; }
#cap.full .full { display: block; } #cap.full b, #cap.full small { color: #ff3a14; }
#hotbar { position: absolute; left: 50%; bottom: 4.5%; transform: translateX(-50%) scale(var(--hs)); transform-origin: center bottom; display: flex; gap: 14px; align-items: flex-end; }
.slot { position: relative; width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.slot small { position: absolute; left: 2px; top: 0; font: 700 12px var(--round); text-shadow: 0 0 3px #000; }
.slot i { font-style: normal; font-size: 34px; filter: brightness(0) invert(1) drop-shadow(0 0 2px #000) drop-shadow(0 2px 1px rgba(0,0,0,.6)); }
.slot.on::after { content: ''; position: absolute; bottom: -4px; width: 26px; height: 3px; border-radius: 2px; background: #fff; box-shadow: 0 0 3px #000; }
.slot.lock i { font-size: 22px; opacity: .9; } .slot em { font: 700 12px var(--round); font-style: normal; text-shadow: 0 0 3px #000; }
#prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(20,22,26,.72); border-radius: 10px; padding: 7px 16px 7px 8px; pointer-events: none; font-family: var(--round); }
#prompt .key { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
#prompt small { display: block; font-size: 12px; color: #cfcfcf; } #prompt b { font-size: 17px; }
body.touch #prompt .key { display: none; }
#lockHint { position: absolute; left: 50%; top: 84%; transform: translateX(-50%); font-style: italic; font-size: 15px; text-shadow: 0 0 3px #000; pointer-events: none; opacity: .9; }
.wpop { position: fixed; transform: translate(-50%, -50%); font: 800 28px var(--round); color: #8ef04a; -webkit-text-stroke: 1.5px #1d3a0c; text-shadow: 0 3px 0 #1d3a0c; pointer-events: none; animation: wpop 1.4s ease-out forwards; z-index: 20; white-space: nowrap; }
.wpop i { font-style: normal; margin-left: 4px; } @keyframes wpop { 0% { transform: translate(-50%, -30%) scale(.6); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -160%) scale(1); opacity: 0; } }
/* touch controls */
.tonly { display: none !important; }
body.touch .tonly { display: flex !important; }
#stick { position: absolute; left: 4%; bottom: 8%; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.35); align-items: center; justify-content: center; }
#knob { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.55); }
body.touch #cap { left: 4%; bottom: calc(8% + 140px); transform-origin: left bottom; }
#grabBtn { position: absolute; right: 5%; bottom: 10%; width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.22); border: 3px solid rgba(255,255,255,.7); font-size: 40px; align-items: center; justify-content: center; }
#jumpBtn { position: absolute; right: calc(5% + 15px); bottom: calc(10% + 100px); width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.6); color: #fff; font-size: 26px; align-items: center; justify-content: center; }
#sellBtn, #actBtn { position: absolute; right: calc(5% + 102px); bottom: calc(10% + 14px); padding: 14px 22px; border-radius: 14px; background: linear-gradient(#5fcf3a, #3a9a22); border: 3px solid #1d3a0c; font: 800 22px var(--round); color: #fff; text-shadow: 0 2px 0 #1d3a0c; box-shadow: 0 4px 0 #1d3a0c; }
#actBtn { bottom: calc(10% + 80px); background: linear-gradient(#ffd23f, #e8a612); border-color: #6b4a00; text-shadow: 0 2px 0 #6b4a00; box-shadow: 0 4px 0 #6b4a00; }
body.touch #hotbar { bottom: 2%; } body.touch #lockHint { display: none; } body.touch #offersBtn { top: 36%; } body.touch #boosts { top: 50%; }

/* ---------- journal ---------- */
#journal { position: fixed; inset: 0; background: rgba(20,14,8,.45); z-index: 30; display: flex; align-items: center; justify-content: center; }
#journal .book { display: flex; width: min(1000px, 86vw); height: min(640px, 82vh); background: var(--leather); border-radius: 18px; padding: 16px; box-shadow: 0 0 0 3px #2a1a10, inset 0 0 0 2px #6a4a30, 0 20px 50px rgba(0,0,0,.5); position: relative; }
#journal .book::before { content: ''; position: absolute; inset: 7px; border: 2px dashed rgba(220,180,120,.45); border-radius: 13px; pointer-events: none; }
.page { flex: 1; background: linear-gradient(90deg, var(--paper), #f3e9dc); padding: 18px 22px; overflow-y: auto; position: relative; border-radius: 4px; }
#pageL { box-shadow: inset -12px 0 18px -10px rgba(0,0,0,.25); } #pageR { box-shadow: inset 12px 0 18px -10px rgba(0,0,0,.25); }
.spine { width: 6px; background: linear-gradient(90deg, #c9b9a0, #8a7a60, #c9b9a0); }
#jTabs { position: absolute; left: calc(50% - min(500px, 43vw) - 108px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
#jTabs button { width: 120px; padding: 9px 12px; font: 700 15px var(--type); text-align: left; border-radius: 8px 0 0 8px; color: #2a2016; box-shadow: -2px 2px 0 rgba(0,0,0,.25); transition: transform .12s; }
#jTabs button:nth-child(1) { background: #b89078; } #jTabs button:nth-child(2) { background: #a09060; } #jTabs button:nth-child(3) { background: #9aa890; } #jTabs button:nth-child(4) { background: #b09868; } #jTabs button:nth-child(5) { background: #88a090; } #jTabs button:nth-child(6) { background: #8898a8; } #jTabs button:nth-child(7) { background: #a09098; }
#jTabs button.on { background: var(--paper); transform: translateX(-14px); }
#jClose { position: absolute; right: calc(50% - min(500px, 43vw) - 28px); top: calc(50% - min(320px, 41vh) - 20px); width: 46px; height: 46px; border-radius: 50%; background: #b03830; color: #fff; font-size: 22px; box-shadow: 0 3px 0 #6a1a14; }
#jGear { position: absolute; right: calc(50% - min(500px, 43vw) - 28px); top: calc(50% - min(320px, 41vh) + 36px); width: 40px; height: 40px; border-radius: 50%; background: #483020; color: #f4e6cc; font-size: 20px; box-shadow: 0 3px 0 #2a1a10; }
#jMoneyRow { position: absolute; bottom: calc(50% - min(320px, 41vh) - 30px); left: 50%; transform: translateX(-50%); font: 700 15px var(--type); color: #f8f0e8; text-shadow: 0 1px 2px #000; }
.page h2 { font: 700 24px var(--serif); margin: 0 0 12px; border-bottom: 2px solid rgba(72,48,32,.2); padding-bottom: 6px; } .page h2 small { font: 400 15px var(--type); color: #7a6a58; margin-left: 8px; }
.page h3 { font: 700 16px var(--serif); margin: 10px 0 6px; }
.small { font-size: 13px; color: #6a5a48; } .money { font-family: var(--type); margin-top: 14px; }
.ok { color: #2f8a2a; font-weight: 700; } .no { color: #c0392b; font-weight: 700; }
.urow { display: flex; align-items: center; gap: 10px; margin: 10px 0 18px; } .un { width: 92px; flex: none; display: flex; flex-direction: column; } .un i { font-style: normal; font-size: 22px; } .un b { font-size: 15px; } .un small { font-size: 11px; color: #8a7a68; }
.nodes { display: flex; align-items: flex-start; gap: 6px; flex: 1; position: relative; } .nodes::before { content: ''; position: absolute; left: 18px; right: 18px; top: 18px; height: 3px; background: #c9b89a; z-index: 0; }
.node { position: relative; z-index: 1; width: 40px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.node span { width: 36px; height: 36px; border-radius: 50%; background: #d8b060; display: flex; align-items: center; justify-content: center; font: 700 11px var(--round); color: #3a2a10; box-shadow: 0 2px 0 #9a7a30; }
.node.lock span { background: #a09888; color: #f2eee8; box-shadow: 0 2px 0 #6a6258; } .node.next span { background: #ffe066; outline: 3px solid #a8c0d0; animation: pulse 1.2s ease-in-out infinite; cursor: pointer; }
.node em { position: absolute; top: -6px; right: -4px; font-style: normal; font-size: 12px; } .node small { font: 700 11px var(--round); white-space: nowrap; }
.ladder { display: flex; flex-direction: column; gap: 6px; } .tool { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; } .tool i { font-style: normal; font-size: 24px; width: 32px; text-align: center; }
.tool div { flex: 1; display: flex; flex-direction: column; } .tool b { font-size: 15px; } .tool small { font-size: 12px; color: #6a5a48; } .tool .where { color: #9a8a78; font-style: italic; }
.tool.own { opacity: .75; cursor: pointer; } .tool.own em { font-style: normal; color: #2f8a2a; font-weight: 700; } .tool.next { background: rgba(216,184,64,.18); outline: 2px solid rgba(216,184,64,.6); } .tool.lock { opacity: .55; } .tool .pr { font: 700 13px var(--round); }
.b { font: 700 15px var(--round); padding: 10px 18px; border-radius: 10px; } .b.sm { padding: 7px 10px; font-size: 13px; } .b.big { font-size: 24px; padding: 14px 44px; }
.b.cta { background: var(--cta); color: #fff; box-shadow: 0 3px 0 #1a2410; } .b.cta .ok, .b.cta .no { color: #fff; } .b.gold { background: #ffd23f; color: #3a2a00; box-shadow: 0 3px 0 #9a7a10; } .b.ghost { background: #e8dfd0; color: #3a2a20; box-shadow: 0 3px 0 #b8a890; }
.secs .sec { display: flex; align-items: baseline; gap: 8px; padding: 8px 4px; border-bottom: 1px dashed #d8c8b0; } .sec span { flex: 1; font-size: 16px; } .sec b { font: 700 14px var(--type); } .sec small { width: 92px; text-align: right; color: #2f8a2a; font: 700 12px var(--round); } .sec.lock { color: #a09080; }
.house { font-size: 110px; text-align: center; filter: grayscale(.3) sepia(.4); }
.pcard { background: #fff; padding: 12px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.15); transform: rotate(-1.5deg); } .pcard small { font: 700 11px var(--type); color: #8a7a68; } .pcard b { display: block; font-size: 18px; } .pcard p { margin: 4px 0 0; font-size: 13px; }
.polaroid { display: inline-flex; flex-direction: column; align-items: center; width: 44%; margin: 6px 2%; background: #fff; padding: 8px 8px 10px; box-shadow: 0 3px 8px rgba(0,0,0,.2); transform: rotate(-1deg); position: relative; vertical-align: top; }
.polaroid:nth-child(odd) { transform: rotate(1.2deg); } .polaroid .ph { width: 100%; height: 70px; background: #d8d0c4; display: flex; align-items: center; justify-content: center; font-size: 34px; } .polaroid.here .ph { background: #bfe0ff; }
.polaroid b { font: 700 15px 'Comic Sans MS', 'Chalkboard SE', var(--serif); margin-top: 4px; text-align: center; } .polaroid small { font-size: 11px; color: #8a7a68; text-align: center; }
.rib { position: absolute; top: 8px; right: -6px; background: #c0392b; color: #fff; font: 700 10px var(--round); padding: 3px 8px; transform: rotate(8deg); }
.subtabs { display: flex; gap: 6px; margin-bottom: 10px; } .subtabs button { padding: 6px 10px; border-radius: 8px; background: #e6dccb; font: 700 12px var(--round); } .subtabs button.on { background: #d8b060; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rb, .lf { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; } .rb > i { width: 8px; height: 8px; border-radius: 50%; } .rb small, .lf small { font-size: 11px; } .rb.no small, .lf.no small { color: #a09080; }
.ball { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--c) 30%, color-mix(in srgb, var(--c) 70%, #000) 100%); box-shadow: 0 2px 4px rgba(0,0,0,.3); margin: 0 auto; }
.lf i { font-style: normal; font-size: 30px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,.15); } .lf.no i { background: #e6dccb; color: #a09080; }
.pet { display: flex; gap: 12px; align-items: center; background: #fff; padding: 10px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.12); margin: 10px 0; } .pet .ph { font-size: 44px; width: 64px; text-align: center; } .pet b { display: block; font-size: 17px; } .pet small { display: block; font-size: 12px; color: #6a5a48; } .pet.no { opacity: .6; }
.dots { display: flex; gap: 4px; margin-top: 4px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: #d8d0c4; } .dots i.on { background: #d8b060; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font: 700 12px var(--round); margin-top: 4px; } .pill.g { background: #5fbf4a; color: #fff; }
.lb { margin-bottom: 14px; } .lr { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-bottom: 1px dashed #d8c8b0; } .lr .rk { width: 24px; height: 24px; border-radius: 50%; background: #e6dccb; display: flex; align-items: center; justify-content: center; font: 700 12px var(--round); }
.lr .r1 { background: #f0c430; } .lr .r2 { background: #c8ccd2; } .lr .r3 { background: #d89a5a; } .lr .nm { flex: 1; font-size: 14px; } .lr b { font: 700 13px var(--type); } .lr.you { background: rgba(216,184,64,.2); }
.offer { display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.12); margin-bottom: 10px; } .offer i { font-style: normal; font-size: 30px; } .offer div { flex: 1; } .offer b { display: block; } .offer small { font-size: 12px; color: #6a5a48; }
.tip { font-size: 15px; line-height: 1.4; margin: 6px 0; } .stats p { display: flex; justify-content: space-between; border-bottom: 1px dashed #d8c8b0; padding: 6px 0; margin: 0; }
.set { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 18px; font-weight: 700; } .set input { width: 100%; }

/* ---------- paper cards ---------- */
#cards { position: fixed; inset: 0; pointer-events: none; z-index: 40; display: flex; align-items: center; justify-content: center; }
.cardWrap { position: absolute; pointer-events: auto; animation: cin .3s cubic-bezier(.2,1.4,.4,1); }
.cardWrap.info { pointer-events: none; top: 13%; } .cardWrap.info * { pointer-events: none; } .cardWrap.out { animation: cout .25s ease-in forwards; pointer-events: none; } .cardWrap.out * { pointer-events: none !important; }
@keyframes cin { from { transform: scale(.6) rotate(-4deg); opacity: 0; } } @keyframes cout { to { transform: scale(.8); opacity: 0; } }
.card { background: linear-gradient(var(--paper), #efe4d4); border-radius: 6px; padding: 22px 28px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 0 0 1px rgba(120,90,60,.2); width: min(380px, 86vw); transform: rotate(-1deg); }
.card.small { width: min(320px, 80vw); padding: 14px 18px; } .card.small h3 { font-size: 18px; margin: 6px 0; } .card p { margin: 6px 0; } .card h2 { font-size: 28px; margin: 4px 0 8px; }
.card .ic, .card .medal, .card .ufo { font-size: 46px; } .card .new { color: #c0392b; font: 700 13px var(--round); } .card .tier { font: 800 14px var(--round); }
.card .note { font-style: italic; } .card .note span { display: block; font-style: normal; text-align: right; color: #6a5a48; }
.card .plus { display: block; font: 800 24px var(--round); color: #2f8a2a; margin: 6px 0 10px; } .card .plus.big { font-size: 32px; } .card .unl b { color: #2f6ed8; }
.card .nm { font: 700 20px var(--serif); } .card .green { color: #2f8a2a; font-weight: 700; } .card .row { display: flex; gap: 10px; justify-content: center; margin-top: 10px; } .card button { pointer-events: auto; }
.card.sheet { width: min(520px, 92vw); transform: rotate(.5deg); } .card .time { font: 800 48px var(--round); color: #2a2620; } .card .letter { font-family: var(--type); font-size: 14px; text-align: left; background: #fffaf2; padding: 10px; border-radius: 4px; } .card .letter span { display: block; text-align: right; }
.card.big { width: min(460px, 90vw); padding: 30px; } .card.big h1 { font: 400 40px 'Lilita One', var(--round); color: #2f6ed8; -webkit-text-stroke: 1px #123; margin: 10px 0; line-height: 1.05; }
.card .balls { display: flex; justify-content: center; gap: 6px; } .card .balls i { width: 26px; height: 26px; border-radius: 50%; animation: bob 1s ease-in-out infinite; }
.card .balls i:nth-child(1) { background: #e8352e; } .card .balls i:nth-child(2) { background: #f5891f; animation-delay: .1s; } .card .balls i:nth-child(3) { background: #f7d02a; animation-delay: .2s; } .card .balls i:nth-child(4) { background: #3cbf3a; animation-delay: .3s; } .card .balls i:nth-child(5) { background: #2f7fe6; animation-delay: .4s; } .card .balls i:nth-child(6) { background: #9a4fd8; animation-delay: .5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
#start { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(255,255,255,.1), rgba(20,30,60,.35)); z-index: 50; }
#loading { position: fixed; inset: 0; background: #2f6ed8; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; z-index: 60; }
#loading h1 { font: 400 40px 'Lilita One', var(--round); margin: 0 0 18px; text-align: center; } #loading .lb { width: min(360px, 70vw); height: 12px; background: rgba(0,0,0,.3); border-radius: 8px; overflow: hidden; } #loading .lb div { height: 100%; width: 60%; background: #ffd23f; animation: load 1.2s ease-in-out infinite; } @keyframes load { from { width: 10%; } to { width: 95%; } }
#loading p { font-style: italic; opacity: .85; }
@media (max-width: 700px), (max-height: 480px) {
  #journal .book { flex-direction: column; height: 88vh; width: 92vw; padding: 8px; } .spine { display: none; } .page { padding: 10px 12px; }
  #jTabs { left: 0; right: 0; top: 2px; transform: none; flex-direction: row; overflow-x: auto; justify-content: center; } #jTabs button { width: auto; padding: 6px 8px; font-size: 11px; border-radius: 8px 8px 0 0; } #jTabs button.on { transform: translateY(4px); }
  #journal { align-items: flex-end; padding-bottom: 2vh; } #jClose { right: 6px; top: 6px; width: 38px; height: 38px; } #jGear { right: 50px; top: 8px; width: 34px; height: 34px; } #jMoneyRow { display: none; }
}

#gearBtn { position: relative; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 26px; text-shadow: 0 0 3px #000; } #gearBtn kbd { position: absolute; right: -10px; bottom: -4px; font-size: 9px; } body.touch #gearBtn kbd { display: none; }
#jBadge { position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: #e0312b; color: #fff; font: 800 14px var(--round); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 #7a1410; }
#tryBanner { position: absolute; left: 50%; top: 0; transform: translateX(-50%) scale(var(--hs)); transform-origin: top center; display: flex; align-items: center; gap: 10px; background: linear-gradient(#f8f0e8, #ece0cc); border-radius: 0 0 10px 10px; padding: 6px 14px; color: #2a2620; box-shadow: 0 4px 10px rgba(0,0,0,.3); pointer-events: none; }
#tryBanner i { font-style: normal; font-size: 26px; } #tryBanner b { display: block; font: 700 16px var(--serif); } #tryBanner small { font-size: 12px; } #tryBanner span { background: #ffd23f; border-radius: 10px; padding: 3px 10px; font: 800 15px var(--round); }

/* phones held sideways with the browser bars showing: a short screen, so everything is smaller and laid out in
   corners: info top left, cash and journal top right, stick bottom left, hand and jump bottom right, SELL / BUY
   above the hand, carry count beside the stick, BOOSTS under the area name */
body.touch.short #area { top: 3%; left: 2.5%; min-width: 200px; }
body.touch.short #topR { top: 3%; right: 2.5%; gap: 4px; }
body.touch.short #offersBtn { left: 1.5%; top: 36%; }
body.touch.short #boosts { left: calc(2.5% + 64px); top: 38%; }
body.touch.short #stick { left: 3%; bottom: 5%; width: calc(120px * var(--ts)); height: calc(120px * var(--ts)); }
body.touch.short #cap { left: calc(3% + 120px * var(--ts) + 14px); bottom: 4%; }
body.touch.short #hotbar { bottom: 1.5%; }
body.touch.short #grabBtn { right: 3%; bottom: 5%; width: calc(88px * var(--ts)); height: calc(88px * var(--ts)); font-size: calc(40px * var(--ts)); }
body.touch.short #jumpBtn { right: calc(3% + 88px * var(--ts) + 12px); bottom: 5%; width: calc(58px * var(--ts)); height: calc(58px * var(--ts)); font-size: calc(26px * var(--ts)); }
body.touch.short #sellBtn, body.touch.short #actBtn { right: 3%; bottom: calc(5% + 88px * var(--ts) + 12px); padding: 8px 14px; font-size: 17px; border-radius: 11px; }
body.touch.short #actBtn { right: calc(3% + 104px); }
body.touch.short #feed { top: auto; bottom: calc(5% + 88px * var(--ts) + 64px); right: 3%; font-size: 13px; }
body.touch.short #prompt { top: 40%; }
