:root {
  --bg: #1b1410; --panel: #2a201a; --panel2: #352920; --line: #4a3a2e; --ink: #f4ead8; --dim: #b9a88f;
  --gold: #e3a92b; --gold2: #f6c95a; --good: #6cc48a; --bad: #e0614f; --teal: #3fa7a0;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: 'Nunito', system-ui, sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
#bay { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.screen { position: fixed; inset: 0; }
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 800; transition: transform .08s, background .15s; }
.btn:hover { background: #45362a; }
.btn:active { transform: scale(.96); }
.btn.big { padding: 12px 20px; font-size: 17px; background: var(--gold); color: #2a1a08; border-color: var(--gold2); }
.btn.big:hover { background: var(--gold2); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.go { background: var(--good); color: #0f2a18; border-color: #8fe0aa; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.icon-btn { background: rgba(42, 32, 26, .85); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; font-size: 17px; display: grid; place-items: center; flex: none; }

/* ---------------------------------------------------------------- title */
#title { display: flex; align-items: center; justify-content: flex-start; padding: calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(24px + var(--sal)); background: linear-gradient(90deg, rgba(27, 20, 16, .92) 0%, rgba(27, 20, 16, .55) 45%, rgba(27, 20, 16, 0) 70%); }
.t-card { max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.t-card h1 { font-family: 'Playfair Display', serif; font-size: clamp(38px, 8vh, 64px); line-height: .95; margin: 0; letter-spacing: -1px; text-shadow: 0 3px 18px rgba(0, 0, 0, .6); }
.t-card h1 span { color: var(--gold2); font-style: italic; }
.lede { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.4; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); max-width: 360px; }
.t-btns { display: flex; flex-direction: column; gap: 8px; max-width: 300px; }
.t-row { display: flex; gap: 8px; } .t-row .btn { flex: 1; }
/* #title raises it above the .bx-acct rule account.js injects later, which would drop it into the menu */
#title .t-acct { position: absolute; top: calc(10px + var(--sat)); right: calc(12px + var(--sar)); z-index: 2; }
[data-bumshi-back] { color: var(--dim); font-size: 13px; text-decoration: none; }

/* ---------------------------------------------------------------- hub */
#hub { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; background: radial-gradient(ellipse at 70% 0%, #3a2b20, var(--bg) 70%); }
.hub-top { grid-column: 1 / 3; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--sat)) calc(12px + var(--sar)) 8px calc(12px + var(--sal)); border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.money { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 22px; color: var(--gold2); min-width: 90px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.debt { color: #ffb3a6; border-color: #6a3a32; }
.grow { flex: 1; }
.btn.sun { background: #4a3a1c; border-color: #8a6a2a; }
.hub-nav { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px calc(10px + var(--sab)) calc(8px + var(--sal)); border-right: 1px solid var(--line); overflow-y: auto; }
.hub-nav button { background: none; border: 1px solid transparent; border-radius: 12px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; text-align: left; color: var(--dim); }
.hub-nav button i { font-style: normal; font-size: 20px; }
.hub-nav button b { font-size: 14px; }
.hub-nav button.on { background: var(--panel2); border-color: var(--line); color: var(--ink); }
.hub-nav button .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: auto; }
.hub-panel { overflow-y: auto; padding: 12px calc(14px + var(--sar)) calc(20px + var(--sab)) 14px; -webkit-overflow-scrolling: touch; }
.hub-panel h2 { font-family: 'Playfair Display', serif; margin: 0 0 4px; font-size: 24px; }
.hub-panel .sub { color: var(--dim); margin: 0 0 12px; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.card canvas { width: 100%; height: auto; border-radius: 8px; background: #d9d6cf; display: block; }
.card h3 { margin: 0; font-size: 15px; }
.card .meta { font-size: 12px; color: var(--dim); line-height: 1.35; }
.card .notes { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 6px; background: #3a2d23; color: var(--dim); }
.tag.bad { background: #4a2420; color: #ffb3a6; } .tag.good { background: #1e3a28; color: #9fe6b6; } .tag.uv { background: #34204a; color: #d8b6ff; }
.card .price { font-family: 'Titillium Web', sans-serif; font-size: 20px; font-weight: 700; color: var(--gold2); }
.card .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card .row .btn { flex: 1; }
.card.sold { opacity: .5; }
.card .ribbon { position: absolute; top: 16px; left: 16px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 6px; }
.card .ribbon.live { background: #b4232a; animation: pulse 1.2s infinite; }
.empty { color: var(--dim); padding: 24px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.up { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; display: flex; flex-direction: column; gap: 4px; }
.up h4 { margin: 0; font-size: 14px; } .up p { margin: 0; font-size: 12px; color: var(--dim); flex: 1; }
.up.own { opacity: .55; } .up.own .btn { background: none; }
.up.lock { opacity: .4; }
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-tabs button { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-weight: 800; font-size: 13px; color: var(--dim); }
.cat-tabs button.on { background: var(--gold); color: #2a1a08; border-color: var(--gold2); }
.lender { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.lender .face { font-size: 34px; } .lender .info { flex: 1; min-width: 160px; } .lender .info b { display: block; } .lender .info small { color: var(--dim); }
.nb { display: grid; gap: 6px; }
.nb p { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.nb p.unk { color: #6f5f50; }
.stat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.stat-row div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--dim); }
.stat-row b { display: block; color: var(--ink); font-size: 16px; }

/* ---------------------------------------------------------------- workshop HUD */
#shop { pointer-events: none; }
#shop > * { pointer-events: auto; }
.s-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--sat)) calc(10px + var(--sar)) 6px calc(10px + var(--sal)); background: linear-gradient(rgba(27, 20, 16, .88), rgba(27, 20, 16, .55)); }
.s-name { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.s-meter { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }
.s-meter .bar { width: 110px; height: 10px; background: #120d0a; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.s-meter .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bad), var(--gold), var(--good)); background-size: 110px 100%; transition: width .4s; }
.s-meter b { color: var(--ink); font-size: 14px; min-width: 36px; }
.s-bill { font-size: 12px; color: var(--dim); display: flex; gap: 5px; align-items: baseline; }
.s-bill b { color: #ffcf9a; font-family: 'Titillium Web', sans-serif; font-size: 15px; }
.s-side { position: absolute; left: calc(12px + var(--sal)); top: calc(60px + var(--sat)); bottom: calc(84px + var(--sab)); width: 240px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; overflow: hidden; }
.s-hint { background: rgba(27, 20, 16, .88); border: 1px solid var(--gold); color: var(--ink); padding: 6px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; text-align: left; pointer-events: none; transition: opacity .3s; }
.s-hint:empty { display: none; }
.s-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 6px calc(10px + var(--sar)) calc(6px + var(--sab)) calc(10px + var(--sal)); overflow-x: auto; background: linear-gradient(rgba(27, 20, 16, .5), rgba(27, 20, 16, .92)); scrollbar-width: none; touch-action: pan-x; }
.s-tools::-webkit-scrollbar { display: none; }
.s-tools { touch-action: none; }
.s-stick { display: none; }
#m-title:empty { display: none; }
/* phones: the tools down the right edge, the carpet fills the rest and a finger on it does the work (no move stick) */
body.touch .s-tools { left: auto; top: calc(52px + var(--sat)); width: calc(76px + var(--sar)); flex-direction: column; overflow-x: hidden; overflow-y: auto; padding: 4px calc(6px + var(--sar)) calc(6px + var(--sab)) 6px; background: linear-gradient(90deg, rgba(27, 20, 16, .5), rgba(27, 20, 16, .92)); }
body.touch .s-stick { display: none; position: absolute; left: calc(16px + var(--sal)); bottom: calc(14px + var(--sab)); width: 132px; height: 132px; border-radius: 50%; touch-action: none; background: radial-gradient(circle, rgba(27, 20, 16, .3) 0 22%, rgba(27, 20, 16, .6) 23% 100%); border: 2px solid rgba(255, 240, 220, .35); }
.s-stick::before, .s-stick::after { content: ''; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 1px; background: rgba(255, 255, 255, .16); }
.s-stick::after { top: 50%; left: 14px; right: 14px; bottom: auto; width: auto; height: 1px; }
.s-stick i { position: absolute; z-index: 1; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe7a8, #e0a83a 70%); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.s-stick span { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); font-size: 10px; font-weight: 800; letter-spacing: .14em; color: rgba(255, 255, 255, .75); }
.s-stick.on { border-color: var(--gold); }
body.touch .s-side { left: calc(8px + var(--sal)); top: calc(52px + var(--sat)); bottom: calc(14px + var(--sab)); width: 150px; }
.tool { flex: none; width: 64px; height: 56px; border-radius: 12px; background: var(--panel); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; position: relative; padding: 0; }
.tool i { font-style: normal; font-size: 22px; line-height: 1; }
.tool b { font-size: 9.5px; font-weight: 800; color: var(--dim); white-space: nowrap; max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
.tool small { position: absolute; top: 2px; left: 5px; font-size: 9px; color: #7d6b59; font-weight: 800; }
.tool.on { border-color: var(--gold2); background: #4a3720; box-shadow: 0 0 0 2px rgba(246, 201, 90, .3); }
.tool.on b { color: var(--ink); }
.tool.pulse { animation: pulse 1s infinite; border-color: var(--gold); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(227, 169, 43, .45); } }
.s-toast { background: #2a2236; border: 1px solid #6a4f8a; border-radius: 12px; padding: 8px 12px; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.s-toast.show { opacity: 1; transform: none; }
.s-toast b { color: #e2c8ff; }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; background: rgba(10, 7, 5, .72); display: grid; place-items: center; padding: calc(10px + var(--sat)) calc(10px + var(--sar)) calc(10px + var(--sab)) calc(10px + var(--sal)); z-index: 20; }
.m-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; width: min(440px, 100%); max-height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.m-box.wide { width: min(760px, 100%); }
.m-box h2:empty { display: none; }
/* the body scrolls, the title and buttons stay put, so the main button is always on screen */
#m-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.m-btns { flex: none; }
.m-box h2 { font-family: 'Playfair Display', serif; margin: 0; font-size: 24px; }
.m-box.menu .btn { width: 100%; }
.m-btns { display: flex; gap: 8px; flex-wrap: wrap; } .m-btns .btn { flex: 1; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.help-grid p { margin: 0; font-size: 14px; line-height: 1.4; color: #e6dac6; }
.set { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.set select, .set input[type=range] { width: 170px; }
.sheet { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.sheet span { color: var(--dim); } .sheet b { text-align: right; } .sheet .tot { border-top: 1px solid var(--line); padding-top: 6px; font-size: 17px; color: var(--gold2); }
.grade { font-family: 'Playfair Display', serif; font-size: 44px; line-height: 1; color: var(--gold2); }
.loan-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* auction */
.au-box { background: linear-gradient(#3a2418, #24170f); border: 2px solid #7a5530; border-radius: 18px; padding: 12px 14px; width: min(720px, 100%); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.au-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .au-head b { font-family: 'Playfair Display', serif; font-size: 22px; } .au-head span { color: var(--dim); font-size: 13px; }
.au-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
#au-pic { width: 100%; height: auto; border-radius: 10px; background: #d9d6cf; }
.au-right { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.au-price small { display: block; color: var(--dim); font-size: 12px; } .au-price b { font-family: 'Titillium Web', sans-serif; font-size: 36px; color: var(--gold2); line-height: 1; }
.au-timer { height: 6px; background: #120d0a; border-radius: 99px; overflow: hidden; } .au-timer i { display: block; height: 100%; width: 100%; background: var(--gold); transition: width .1s linear; }
.au-call { font-weight: 900; font-size: 16px; min-height: 22px; color: #ffcf9a; }
.au-call.sold { color: var(--good); font-size: 22px; }
.au-bidders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 150px; overflow-y: auto; }
.au-bidders li { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 3px 6px; border-radius: 8px; background: rgba(0, 0, 0, .2); transition: background .2s; }
.au-bidders li.lead { background: rgba(227, 169, 43, .25); }
.au-bidders li.out { opacity: .4; text-decoration: line-through; }
.au-bidders li.vip { background: linear-gradient(90deg, rgba(246, 201, 90, .45), rgba(246, 201, 90, .1)); font-weight: 900; }
.au-bidders li.me { border: 1px solid var(--teal); }
.au-bidders li em { margin-left: auto; font-style: normal; font-weight: 800; }
.au-btns { display: flex; gap: 8px; } .au-btns .btn { flex: 1; }

.rotate { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; text-align: center; }
.rotate.hidden { display: none; }
.rotate .phone { font-size: 56px; animation: tilt 1.6s infinite; } @keyframes tilt { 50% { transform: rotate(90deg); } }

/* ---------------------------------------------------------------- small landscape phones */
@media (max-height: 460px) {
  .t-card h1 { font-size: 40px; } .lede { font-size: 13px; } .t-card { gap: 8px; } .btn.big { padding: 9px 16px; font-size: 15px; }
  .hub-nav button b { display: none; } .hub-nav button { padding: 5px 8px; justify-content: center; } .hub-nav { gap: 2px; padding-top: 6px; padding-bottom: calc(4px + var(--sab)); } .hub-nav button i { font-size: 18px; } .hub-top { padding-top: calc(5px + var(--sat)); padding-bottom: 5px; } .btn.sun { padding: 6px 10px; }
  .money { font-size: 18px; min-width: 70px; } .chip { font-size: 12px; padding: 2px 8px; }
  .s-meter .bar { width: 70px; } .s-meter > span, .s-bill > span { display: none; }
  .tool { width: 54px; height: 48px; } .tool i { font-size: 19px; } .tool b { font-size: 8.5px; max-width: 52px; }
  .s-hint { font-size: 12px; padding: 4px 8px; }
  .s-toast { font-size: 11.5px; padding: 6px 8px; }
  body.touch .s-tools { top: calc(44px + var(--sat)); width: calc(66px + var(--sar)); } body.touch .s-stick { width: 116px; height: 116px; } body.touch .s-side { top: calc(44px + var(--sat)); bottom: calc(10px + var(--sab)); width: 136px; }
  .help-grid p { font-size: 12.5px; }
  .au-price b { font-size: 28px; } .au-bidders { max-height: 90px; } .au-box { padding: 8px 10px; gap: 6px; }
  .m-box { padding: 10px 14px; gap: 6px; } .m-box h2 { font-size: 19px; } .m-btns .btn { padding: 8px 12px; }
  .overlay { padding-top: calc(6px + var(--sat)); padding-bottom: calc(6px + var(--sab)); }
  .m-box, .m-box.wide { width: min(760px, 100%); }
  .ba figure img { max-height: calc(100vh - 150px); object-fit: contain; }
  .ba figcaption { margin-top: 2px; font-size: 14px; }
  .sheet { grid-template-columns: 1fr auto 1fr auto; gap: 2px 14px; font-size: 13px; }
  .sheet .tot { font-size: 15px; padding-top: 4px; } .sheet span.tot { grid-column: 1 / 4; } .sheet b.tot { grid-column: 4; }
  .grade { font-size: 40px; } .week { padding: 5px 10px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.35; }
  /* market, storeroom and jobs: picture on the left, details on the right, so a card is short enough to see whole */
  .cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
  .card { display: grid; grid-template-columns: 128px 1fr; column-gap: 10px; row-gap: 0; padding: 8px; align-content: start; }
  .card > canvas { grid-column: 1; grid-row: 1 / span 8; align-self: start; }
  .card > :not(canvas) { grid-column: 2; margin-bottom: 4px; }
  .card > .ribbon { grid-column: 1; margin: 0; top: 12px; left: 12px; font-size: 10px; }
  .card h3 { font-size: 14px; } .card .meta { font-size: 11.5px; line-height: 1.3; } .card .price { font-size: 17px; }
  .hub-panel h2 { font-size: 20px; margin-bottom: 2px; } .hub-panel .sub { margin-bottom: 8px; font-size: 12.5px; }
}
@media (max-width: 700px) { .s-name { display: none; } .help-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .au-main { grid-template-columns: 1fr; } }

/* v2: jobs, week banner, the day sheet, the Rug Palace, goals */
.tag.job { background: #3a3218; color: #ffe08a; }
.card.jobcard { border-color: #6b5a24; }
.week { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.warn { color: #ffb3a6; }
#h-money.neg { color: #ff8f7a; }
.sheet b.neg { color: #ffb3a6; }
p.note { font-size: 14px; margin: 8px 0 0; line-height: 1.45; }
.museum { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.m-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.m-row > b { flex: 0 0 150px; font-size: 13px; }
.m-row.full { border-color: var(--gold); }
.m-slot { display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; padding: 4px 6px; border-radius: 8px; border: 1px dashed var(--line); color: var(--dim); font-weight: 700; }
.m-slot i { font-style: normal; font-weight: 400; font-size: 10px; }
.m-slot.on { border-style: solid; border-color: var(--gold); color: var(--gold2); background: var(--panel2); }
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; margin-bottom: 14px; }
.goals p { margin: 3px 0; font-size: 13px; color: var(--dim); } .goals p.on { color: var(--ink); }
.goals em { font-style: normal; color: var(--gold2); font-size: 12px; }
h2 small { font-size: 13px; color: var(--dim); font-weight: 400; }
@media (max-height: 500px) { .m-row > b { flex-basis: 110px; } }
/* before and after at the end of the first rug */
.ba { display: flex; gap: 10px; } .ba figure { margin: 0; flex: 1; text-align: center; } .ba img { width: 100%; border-radius: 8px; display: block; } .ba figcaption { font-weight: 800; margin-top: 4px; }
/* points pop: floats up from the top when the shop worth beats its best */
.pts-pop { position: fixed; left: 50%; top: calc(64px + var(--sat)); z-index: 45; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 18px 8px; border-radius: 16px; background: linear-gradient(180deg, #3a2a12, #241a0e); border: 2px solid var(--gold); box-shadow: 0 8px 28px rgba(0, 0, 0, .5), 0 0 22px rgba(246, 201, 90, .35);
  animation: ptsPop 2.8s cubic-bezier(.2, .9, .3, 1.2) forwards; white-space: nowrap; }
.pts-pop b { font-family: 'Titillium Web', sans-serif; font-size: 26px; line-height: 1; color: var(--gold2); text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.pts-pop span { font-size: 12px; font-weight: 700; color: var(--ink); opacity: .85; }
@keyframes ptsPop {
  0% { transform: translate(-50%, 24px) scale(.6); opacity: 0; }
  12% { transform: translate(-50%, 0) scale(1.08); opacity: 1; }
  20% { transform: translate(-50%, 0) scale(1); }
  80% { transform: translate(-50%, -6px) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -40px) scale(.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pts-pop { animation: ptsFade 2.8s linear forwards; } @keyframes ptsFade { 0%, 85% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 0); opacity: 0; } } }
@media (max-height: 500px) { .pts-pop { top: calc(4px + var(--sat)); padding: 6px 14px 5px; } .pts-pop b { font-size: 21px; } }
