/* Brolly Bay meta UI. Warm rainy seaside: cream paper, navy ink, sunflower accent, tomato for danger.
   HUD space contract: --hud-top / --hud-bottom (below). The canvas area is everything between them. */
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url('fonts/baloo2-700.woff2') format('woff2'); }
:root {
  --ink: #1d2a44; --ink2: #46506b; --cream: #fff8ea; --paper: #fdf1d8; --sun: #f4b731; --sun-d: #d99a16; --tom: #e8553f; --mint: #38b98a; --sky: #3d8fe0;
  --rain: #5a6d8f; --shadow: 0 6px 0 rgba(29, 42, 68, .22), 0 14px 26px rgba(29, 42, 68, .25);
  --hud-top: calc(56px + env(safe-area-inset-top, 0px));      /* top bar: pause, level, bays, coins */
  --hud-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); /* bottom bar: 3 boosters */
  --disp: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif; --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (max-height: 520px) { :root { --hud-top: calc(46px + env(safe-area-inset-top, 0px)); --hud-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); } }

.jm, .jm * { box-sizing: border-box; }
.jm { position: fixed; inset: 0; pointer-events: none; font: 600 15px/1.25 var(--body); color: var(--ink); z-index: 10; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.jm [hidden] { display: none !important; }
.jm h1, .jm h2, .jm h3 { font-family: var(--disp); margin: 0; font-weight: 700; line-height: 1.05; }
:where(.jm) button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; touch-action: manipulation; }
.jm .jm-i { display: block; flex: none; }
.jm small { font-size: 13px; font-weight: 600; }
.jm-spacer { flex: 1; }

/* ---------- buttons ---------- */
.jm-btn { min-height: 48px; min-width: 48px; padding: 8px 18px; border-radius: 18px; font: 700 17px/1 var(--disp); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cream); color: var(--ink); box-shadow: 0 4px 0 rgba(29, 42, 68, .28); transition: transform .12s cubic-bezier(.2, .9, .3, 1.4), box-shadow .12s; pointer-events: auto; position: relative; }
.jm-btn.primary { background: var(--sun); box-shadow: 0 5px 0 var(--sun-d), 0 10px 16px rgba(29, 42, 68, .2); }
.jm-btn.secondary { background: #bfe1f7; box-shadow: 0 4px 0 #86b8d9; }
.jm-btn.ghost { background: rgba(255, 248, 234, .82); box-shadow: 0 3px 0 rgba(29, 42, 68, .18); }
.jm-btn.big { min-height: 60px; font-size: 22px; border-radius: 22px; padding: 10px 26px; }
.jm-btn small { font: 700 13px/1 var(--body); display: inline-flex; gap: 4px; align-items: center; }
.jm-btn[aria-disabled=true], .jm-btn:disabled { filter: grayscale(.7) opacity(.65); box-shadow: 0 2px 0 rgba(29, 42, 68, .2); }
.jm .is-down { transform: translateY(3px) scale(.97); }
.jm-ibtn { width: 48px; height: 48px; border-radius: 16px; background: var(--cream); box-shadow: 0 4px 0 rgba(29, 42, 68, .26); display: grid; place-items: center; position: relative; pointer-events: auto; flex: none; }
.jm-ibtn .dot { position: absolute; top: 5px; right: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--tom); border: 2px solid var(--cream); animation: jm-pulse 1.6s ease-in-out infinite; }
.jm-ibtn .badge { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--tom); color: #fff; font: 700 14px/22px var(--disp); text-align: center; padding: 0 5px; border: 2px solid var(--cream); }
.jm-pill { height: 40px; padding: 0 14px 0 8px; border-radius: 20px; background: rgba(255, 248, 234, .94); box-shadow: 0 3px 0 rgba(29, 42, 68, .22); display: inline-flex; align-items: center; gap: 6px; font: 700 20px/1 var(--disp); pointer-events: auto; }
.jm-pill b { font-weight: 700; min-width: 2ch; }
.jm-pill.mini, .jm-pill.inline { box-shadow: none; background: #fff; }
.jm-pill.inline { margin: 0 0 10px; }

/* ---------- map ---------- */
.jm-map { position: absolute; inset: 0; pointer-events: auto; background: #3a4a6b; overflow: hidden; }
.jm-topbar { position: absolute; z-index: 3; left: 0; right: 0; top: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) 8px calc(10px + env(safe-area-inset-left, 0px)); display: flex; gap: 8px; align-items: center;
  background: linear-gradient(#1d2a44ee, #1d2a4400); }
.jm-unsaved { position: absolute; z-index: 3; top: calc(64px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); background: var(--cream); border-radius: 14px; padding: 6px 12px; font-size: 13px; display: flex; gap: 6px; align-items: center; box-shadow: 0 3px 0 rgba(29, 42, 68, .25); white-space: nowrap; max-width: 96%; }
.jm-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.jm-scroll::-webkit-scrollbar { display: none; }
.jm-sea { max-width: 520px; margin: 0 auto; padding-top: calc(60px + env(safe-area-inset-top, 0px)); }
.jm-pad { height: calc(190px + env(safe-area-inset-bottom, 0px)); }
.jm-dist { position: relative; }
.jm-dist.rainy { background: linear-gradient(#566a8f, #6c7f9e 50%, #7d8fae); }
.jm-dist.sunny { background: linear-gradient(#8fd2f2, #cdeaf0 45%, #fde9b8); }
.jm-dist.rainy::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 0; background: repeating-linear-gradient(104deg, rgba(255, 255, 255, .28) 0 1.5px, transparent 1.5px 17px); background-size: 120px 240px; animation: jm-rain 1.1s linear infinite; }
.jm-banner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 10px; overflow: hidden; }
.jm-banner h2 { font-size: 26px; color: var(--cream); text-shadow: 0 3px 0 rgba(29, 42, 68, .45); z-index: 1; text-align: center; padding: 0 12px; }
.jm-dist.sunny .jm-banner h2 { color: var(--ink); text-shadow: 0 2px 0 rgba(255, 255, 255, .7); }
.jm-banner small { z-index: 1; color: var(--cream); opacity: .9; font-size: 13px; } .jm-dist.sunny .jm-banner small { color: var(--ink2); }
.jm-sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 92px; }
.jm-sun { position: absolute; right: 18px; top: 12px; animation: jm-spin 30s linear infinite; }
.jm-rows { position: relative; z-index: 1; }
.jm-rows > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jm-rows > svg path { fill: none; stroke: rgba(255, 248, 234, .75); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1 14; }
.jm-dist.sunny .jm-rows > svg path { stroke: rgba(29, 42, 68, .35); }
.jm-lv { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.jm-node { width: 58px; height: 58px; border-radius: 50%; background: var(--cream); color: var(--ink); box-shadow: 0 5px 0 rgba(29, 42, 68, .35); display: grid; place-items: center; font: 700 24px/1 var(--disp); position: relative; pointer-events: auto; border: 3px solid var(--ink); }
.jm-node.won { background: var(--sun); }
.jm-node.open { background: var(--cream); }
.jm-node.locked { background: #8c9bb8; color: #4a5a7c; border-color: #5f6f90; box-shadow: 0 3px 0 rgba(29, 42, 68, .25); font-size: 20px; }
.jm-node.current { background: var(--tom); color: #fff; border-color: var(--ink); width: 66px; height: 66px; animation: jm-node 1.4s ease-in-out infinite; }
.jm-node.stormy { border-color: #3b4a6b; }
.jm-storm { position: absolute; top: -16px; right: -14px; filter: drop-shadow(0 2px 0 rgba(29, 42, 68, .35)); }
.jm-nstars { position: absolute; top: 100%; margin-top: 2px; display: flex; gap: 1px; pointer-events: none; background: rgba(29, 42, 68, .55); border-radius: 10px; padding: 2px 5px; }
.jm-lv:has(.jm-nstars) { padding-bottom: 0; }
.jm-dock { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 22px calc(12px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 0 auto;
  background: linear-gradient(#1d2a4400, #1d2a44d9 28%); }
.jm-chestbar { display: flex; gap: 10px; align-items: center; background: var(--cream); border-radius: 18px; padding: 6px 10px; box-shadow: 0 4px 0 rgba(29, 42, 68, .3); pointer-events: auto; }
.jm-cbox { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.jm-cinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .jm-cinfo b { font: 700 16px/1 var(--disp); }
.jm-prog { height: 10px; border-radius: 6px; background: rgba(29, 42, 68, .15); overflow: hidden; } .jm-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), #ffd566); border-radius: 6px; transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.jm-prog.sm { height: 7px; width: 70px; flex: none; }
.jm-chestbtn { position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #ffe3a1; flex: none; animation: jm-wiggle 1.6s ease-in-out infinite; pointer-events: auto; }
.jm-playrow { display: flex; gap: 12px; align-items: center; }
.jm-streak { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--cream); width: 104px; flex: none; text-align: center; line-height: 1.1; }
.jm-streak small { font-size: 12px; opacity: .95; }
.jm-streak .pips { display: flex; gap: 4px; }
.pip { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 248, 234, .22); opacity: .55; } .pip.on { background: var(--sun); opacity: 1; }
.pip .jm-i { filter: none; } .pip:not(.on) .jm-i { opacity: .35; }
.jm-streak.row { flex-direction: row; width: auto; color: var(--ink); gap: 8px; justify-content: center; } .jm-streak.row .pip { background: rgba(29, 42, 68, .12); } .jm-streak.row .pip.on { background: var(--sun); }
.jm-playbtn { flex: 1; flex-direction: column; gap: 2px; min-height: 66px; }
.jm-playbtn span { font-size: 28px; letter-spacing: .5px; } .jm-playbtn small { font-size: 13px; opacity: .85; }

/* ---------- HUD ---------- */
.jm-hud { position: absolute; inset: 0; }
.jm-hudtop { position: absolute; left: 0; right: 0; top: 0; height: var(--hud-top); padding: env(safe-area-inset-top, 0px) calc(8px + env(safe-area-inset-right, 0px)) 0 calc(8px + env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 8px; background: linear-gradient(#1d2a44cc, #1d2a4400); }
.jm-hudtop .jm-ibtn { width: 46px; height: 46px; }
.jm-lvl { display: flex; flex-direction: column; color: var(--cream); text-shadow: 0 2px 0 rgba(29, 42, 68, .5); min-width: 0; }
.jm-lvl b { font: 700 22px/1 var(--disp); white-space: nowrap; }
.jm-stormtag { display: inline-flex; gap: 3px; align-items: center; font-size: 13px; color: #ffd566; }
.jm-bays { height: 36px; font-size: 17px; padding: 0 10px 0 6px; } .jm-bays.low { background: #ffe3a1; } .jm-bays.full { background: #ffc1b6; animation: jm-pulse 1s ease-in-out infinite; }
.jm-hudbot { position: absolute; left: 0; right: 0; bottom: 0; height: var(--hud-bottom); padding: 6px calc(10px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(10px + env(safe-area-inset-left, 0px)); display: flex; gap: 10px; justify-content: center; align-items: stretch;
  background: linear-gradient(#1d2a4400, #1d2a44cc 40%); }
.jm-boost { flex: 1; max-width: 132px; min-width: 76px; min-height: 56px; border-radius: 20px; background: var(--cream); box-shadow: 0 4px 0 rgba(29, 42, 68, .3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; position: relative; pointer-events: auto; padding: 2px 4px; }
.jm-boost .lbl { font: 700 13px/1 var(--disp); letter-spacing: .3px; }
.jm-boost.locked { background: #aab5cc; } .jm-boost.target { background: var(--sun); box-shadow: 0 0 0 4px #fff, 0 4px 0 rgba(29, 42, 68, .3); animation: jm-pulse 1s ease-in-out infinite; }
.jm-boost.new { animation: jm-pulse 1.4s ease-in-out infinite; box-shadow: 0 0 0 3px var(--sun), 0 4px 0 rgba(29, 42, 68, .3); }
.bdg { position: absolute; top: -9px; right: -5px; font: 700 13px/1 var(--disp); border-radius: 12px; padding: 4px 8px; min-width: 24px; text-align: center; border: 2px solid var(--cream); font-style: normal; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.bdg.count { background: var(--mint); color: #fff; } .bdg.free { background: var(--tom); color: #fff; } .bdg.price { background: var(--sun); color: var(--ink); } .bdg.lock { background: var(--ink2); color: #fff; }
@media (max-height: 520px) { .jm-boost { flex-direction: row; gap: 6px; max-width: 150px; min-height: 48px; } .jm-boost .lbl { font-size: 12px; } .jm-hudbot { gap: 8px; } .jm-boost .ico .jm-i { width: 24px; height: 24px; } }

/* ---------- modal cards ---------- */
.jm-layer { position: absolute; inset: 0; pointer-events: auto; display: grid; place-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(10px + env(safe-area-inset-left, 0px)); }
.jm-dim { position: absolute; inset: 0; background: rgba(20, 28, 48, .62); pointer-events: auto; }
.jm-card { position: relative; width: min(100%, 400px); max-height: 100%; overflow-y: auto; background: var(--paper); border-radius: 28px; padding: 16px 16px 18px; box-shadow: var(--shadow); animation: jm-pop .45s cubic-bezier(.2, 1.2, .3, 1) both; text-align: center; scrollbar-width: none; }
.jm-card::-webkit-scrollbar { display: none; }
.jm-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: repeating-linear-gradient(90deg, var(--tom) 0 24px, var(--sun) 24px 48px, var(--sky) 48px 72px); border-radius: 28px 28px 0 0; }
.jm-card h2 { font-size: 30px; margin-top: 8px; } .jm-ctop { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jm-chip { display: inline-flex; gap: 4px; align-items: center; background: var(--ink); color: var(--sun); padding: 5px 12px; border-radius: 14px; font: 700 15px/1 var(--disp); }
.jm-stamps { display: flex; justify-content: center; gap: 4px; margin: 8px 0 4px; }
.jm-stamps .slot { position: relative; width: 62px; height: 62px; } .jm-stamps .slot > .jm-i { position: absolute; inset: 3px; width: 56px; height: 56px; }
.jm-stamps .st { position: absolute; inset: 0; opacity: 0; transform: scale(2.6) rotate(-25deg); } .jm-stamps .st .jm-i { position: absolute; inset: 3px; width: 56px; height: 56px; }
.jm-stamps .slot:nth-child(2) { transform: translateY(-8px); }
.jm-stamps .st.on { opacity: 1; transform: none; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .1s; }
.jm-earn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0; }
.jm-earn .plus { font: 700 26px/1 var(--disp); color: #8a5a00; } .jm-earn .plus small { font-size: 14px; color: var(--ink2); } .jm-earn .plus::before { content: '+'; }
.jm-earn .plus.fly { animation: jm-fly .5s ease-in forwards; }
.jm-note { margin: 4px 0 0; font-size: 13px; color: var(--ink2); } .jm-note.warn { color: var(--tom); }
.jm-sub { margin: 0 0 10px; color: var(--ink2); font-size: 14px; }
.jm-lines { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .jm-lines:empty { display: none; }
.jm-lines li { display: flex; align-items: center; gap: 8px; text-align: left; background: #fff; border-radius: 14px; padding: 7px 10px; font-size: 14px; animation: jm-in .4s both; }
.jm-lines li.ok { background: #e6f6ee; }
.jm-cbar { display: flex; align-items: center; gap: 8px; margin-top: 10px; text-align: left; }
.jm-mlist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.jm-mlist li { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 10px; text-align: left; font-size: 13px; } .jm-mlist .mt { flex: 1; min-width: 0; }
.jm-mlist li b { font: 700 14px/1 var(--disp); min-width: 28px; text-align: right; display: grid; justify-items: end; } .jm-mlist li.done b .jm-i { background: var(--mint); border-radius: 50%; padding: 2px; width: 20px; height: 20px; }
.jm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; align-items: stretch; } .jm-actions.row { flex-direction: row; justify-content: center; } .jm-actions.row .jm-btn { flex: 1; }
.jm-card.lose { background: #e9e6ee; } .jm-card.lose::before { background: repeating-linear-gradient(90deg, #6b7794 0 24px, #8c9bb8 24px 48px); }
.jm-brolly { margin-top: 10px; display: grid; place-items: center; animation: jm-droop 2.4s ease-in-out infinite; }
.jm-card.lose .jm-btn.big { margin-top: 12px; width: 100%; flex-wrap: wrap; }
.jm-ad { display: none; }

@media (orientation: landscape) and (max-height: 520px) {
  .jm-card.win { width: min(100%, 700px); display: grid; grid-template-columns: 1fr 1.15fr; gap: 6px 16px; padding: 12px 14px; text-align: center; }
  .jm-card.win h2 { font-size: 24px; margin-top: 4px; } .jm-stamps .slot, .jm-stamps .slot > .jm-i, .jm-stamps .st .jm-i { width: 44px; height: 44px; } .jm-stamps .slot > .jm-i, .jm-stamps .st .jm-i { inset: 2px; width: 40px; height: 40px; }
  .jm-card.win .wr { display: flex; flex-direction: column; } .jm-card.win .jm-actions { flex-direction: row; margin-top: 8px; } .jm-card.win .jm-actions .jm-btn { flex: 1; min-height: 52px; }
  .jm-card.win .jm-mlist li:nth-child(n+3) { display: none; } .jm-card.win .jm-streak.row { display: none; } .jm-card.win .jm-lines { margin-top: 0; }
  .jm-card.lose { width: min(100%, 460px); padding: 10px 14px 12px; } .jm-brolly { display: none; } .jm-card.lose h2 { font-size: 24px; } .jm-card.lose .jm-btn.big { min-height: 52px; margin-top: 6px; } .jm-card.lose .jm-actions { margin-top: 8px; }
}
@media (max-height: 600px) and (orientation: portrait) {
  .jm-card { padding-top: 12px; } .jm-card h2 { font-size: 26px; } .jm-stamps .slot { transform: none !important; } .jm-card.win .jm-mlist li:nth-child(n+3) { display: none; } .jm-card.win .jm-streak.row { display: none; } .jm-brolly .jm-i { width: 44px; height: 44px; }
}

/* ---------- sheets ---------- */
.jm-sheetwrap { position: absolute; inset: 0; pointer-events: auto; display: flex; align-items: flex-end; justify-content: center; z-index: 4; }
.jm-sheet { position: relative; width: min(100%, 460px); max-height: 88%; background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: var(--shadow); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); animation: jm-slide .38s cubic-bezier(.2, 1, .3, 1) both; }
.jm-sheet header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 4px 20px; } .jm-sheet h2 { font-size: 28px; }
.jm-sheetbody { overflow-y: auto; padding: 4px 16px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; gap: 2px; } .jm-sheetbody::-webkit-scrollbar { display: none; }
@media (orientation: landscape) and (max-height: 520px) { .jm-sheet { max-height: 100%; border-radius: 22px 22px 0 0; width: min(100%, 560px); } .jm-sheet h2 { font-size: 22px; } .jm-sheet header { padding-top: 6px; } }
.jm-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jm-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: 0 3px 0 rgba(29, 42, 68, .1); }
.jm-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .jm-row .info b { font: 700 17px/1.1 var(--disp); } .jm-row .info small { color: var(--ink2); }
.jm-row .rw { display: flex; flex-direction: column; gap: 2px; } .rc { display: inline-flex; align-items: center; gap: 3px; font: 700 15px/1 var(--disp); }
.jm-row .jm-btn { min-height: 46px; padding: 6px 14px; font-size: 16px; }
.jm-row.claimed { opacity: .6; } .jm-row.done:not(.claimed) { box-shadow: 0 0 0 3px var(--sun), 0 3px 0 rgba(29, 42, 68, .1); }
.jm-row.locked { opacity: .75; } .bic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); border-radius: 14px; flex: none; }
.jm-allbonus { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px; border-radius: 16px; border: 2.5px dashed rgba(29, 42, 68, .3); font-size: 14px; text-align: center; } .jm-allbonus.on { background: #e6f6ee; border-color: var(--mint); }
.jm-days { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.jm-day { position: relative; background: #fff; border-radius: 16px; min-height: 76px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; box-shadow: 0 3px 0 rgba(29, 42, 68, .1); }
.jm-day small { font-size: 13px; color: var(--ink2); } .jm-day .ic { display: flex; gap: 4px; justify-content: center; }
.jm-day.claimed { background: #e6f6ee; } .jm-day .tick { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: var(--mint); border-radius: 50%; display: grid; place-items: center; font-style: normal; }
.jm-day.current { box-shadow: 0 0 0 3px var(--sun), 0 3px 0 rgba(29, 42, 68, .15); background: #fff6d8; animation: jm-pulse 1.6s ease-in-out infinite; }
.jm-day.big { grid-column: span 2; background: #ffe9b5; }
.jm-switch { min-width: 88px; height: 46px; border-radius: 23px; background: #c9cfdb; display: flex; align-items: center; justify-content: flex-end; flex-direction: row-reverse; padding: 4px; gap: 6px; font: 700 15px/1 var(--disp); position: relative; pointer-events: auto; transition: background .2s; }
.jm-switch i { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(29, 42, 68, .25); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); } .jm-switch span { padding: 0 6px; width: 34px; text-align: center; }
.jm-switch.on { background: var(--mint); color: #fff; flex-direction: row; } .jm-switch.on i { transform: none; }
.jm-credits { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; } .jm-credits h3 { font-size: 30px; } .jm-credits p { margin: 0; color: var(--ink2); font-size: 14px; }

/* ---------- chest overlay ---------- */
.jm-layer, .jm-sheetwrap { transition: opacity .2s ease; }
.jm-chest-up > .jm-layer, .jm-chest-up > .jm-sheetwrap { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .jm-layer, .jm-sheetwrap { transition: none; } }
.jm-chestov { position: absolute; inset: 0; pointer-events: auto; display: grid; place-items: center; z-index: 6; }
.jm-cbody { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; width: min(92%, 420px); }
.jm-cbody h2 { color: var(--cream); font-size: 32px; text-shadow: 0 3px 0 rgba(29, 42, 68, .5); }
.jm-bigchest { position: relative; filter: drop-shadow(0 10px 0 rgba(29, 42, 68, .3)); } .jm-bigchest.shake { animation: jm-shake .9s ease-in-out both; } .jm-bigchest.open { animation: jm-openchest .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.jm-bigchest .burst { position: absolute; left: 50%; top: 40%; } .jm-bigchest .burst s { position: absolute; width: 12px; height: 12px; border-radius: 3px; background: var(--c); animation: jm-burst .8s cubic-bezier(.1, .8, .3, 1) forwards; }
.jm-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 64px; }
.jm-chips .chip { display: flex; align-items: center; gap: 8px; background: var(--cream); border-radius: 18px; padding: 8px 14px 8px 10px; font: 700 20px/1 var(--disp); box-shadow: 0 4px 0 rgba(29, 42, 68, .3); opacity: 0; transform: scale(.4) translateY(20px); }
.jm-chips .chip.in { opacity: 1; transform: none; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .15s; }
@media (max-height: 520px) { .jm-bigchest .jm-i { width: 84px; height: 84px; } .jm-cbody { gap: 4px; } .jm-cbody h2 { font-size: 24px; } .jm-chips { min-height: 48px; } }

/* ---------- toasts ---------- */
.jm-toasts { position: absolute; left: 0; right: 0; top: calc(var(--hud-top) + 10px); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 8; padding: 0 12px; }
.jm-toast { background: var(--ink); color: var(--cream); border-radius: 16px; padding: 9px 16px; font: 700 15px/1.2 var(--body); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); animation: jm-in .3s cubic-bezier(.2, 1.3, .4, 1) both; max-width: 92%; text-align: center; } .jm-toast.out { opacity: 0; transition: opacity .35s; }

/* ---------- motion ---------- */
@keyframes jm-pulse { 50% { transform: scale(1.07); } }
@keyframes jm-node { 0%, 100% { transform: scale(1); box-shadow: 0 5px 0 rgba(29, 42, 68, .35), 0 0 0 0 rgba(232, 85, 63, .55); } 50% { transform: scale(1.08); box-shadow: 0 5px 0 rgba(29, 42, 68, .35), 0 0 0 12px rgba(232, 85, 63, 0); } }
@keyframes jm-wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-8deg); } 86% { transform: rotate(8deg); } 94% { transform: rotate(-4deg); } }
@keyframes jm-pop { from { opacity: 0; transform: translateY(24px) scale(.88); } }
@keyframes jm-slide { from { transform: translateY(100%); } }
@keyframes jm-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes jm-rain { to { background-position: -40px 240px; } }
@keyframes jm-spin { to { transform: rotate(360deg); } }
@keyframes jm-fly { to { transform: translate(-60px, -20px) scale(.5); opacity: 0; } }
@keyframes jm-droop { 50% { transform: rotate(-6deg) translateY(2px); } }
@keyframes jm-shake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 30% { transform: rotate(8deg); } 45% { transform: rotate(-7deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } }
@keyframes jm-openchest { 0% { transform: scale(1); } 40% { transform: scale(1.25) translateY(-8px); } 100% { transform: scale(1); } }
@keyframes jm-burst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(240deg) scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .jm *, .jm *::before, .jm *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .jm-dist.rainy::after { animation: none !important; }
}

.jm-chestbtn .badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--tom); color: #fff; font: 700 14px/22px var(--disp); text-align: center; border: 2px solid var(--cream); font-style: normal; }

/* Similarity judge r1 (18 Nov): the booster row reads as a harbour-master's ticket tray, not a row of padlocked cards. */
.jm-hud .jm-hudbot { background: linear-gradient(180deg, #9a673f 0%, #7b4f2d 55%, #6a4325 100%); border-radius: 20px 20px 0 0;
  box-shadow: inset 0 3px 0 rgba(255, 220, 170, .35), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 -3px 10px rgba(20, 14, 8, .25); }
.jm-hud .jm-hudbot::before { content: ''; position: absolute; left: 14px; right: 14px; top: 4px; height: 3px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #e9d3a8 0 7px, #c9a76f 7px 14px); opacity: .7; pointer-events: none; }
.jm-boost { border-radius: 12px; outline: 2px dashed rgba(122, 79, 45, .35); outline-offset: -6px; }
.jm-boost.locked { background: #e7dcc6; }
.jm-boost.locked .ico { filter: grayscale(1); opacity: .45; }
.jm-boost.locked .lbl { opacity: .65; }
.jm-boost .from { font: 700 11px/1.1 var(--disp); color: #7a4f2d; opacity: .9; margin-top: 2px; white-space: nowrap; }

/* ---------- onboarding overlay (W10): click-through except the bubble buttons ---------- */
.tut, .tut * { box-sizing: border-box; }
.tut { position: fixed; inset: 0; z-index: 40; pointer-events: none; font: 700 16px/1.25 var(--body); color: var(--ink); overflow: hidden; }
.tut[hidden] { display: none; }
.tut-spot { position: absolute; left: 0; top: 0; box-shadow: 0 0 0 200vmax rgba(12, 18, 38, .6), 0 0 0 4px rgba(255, 248, 234, .9) inset, 0 0 26px 6px rgba(255, 213, 102, .55); pointer-events: none; }
.tut-hand { position: absolute; left: 0; top: 0; width: 64px; height: 76px; pointer-events: none; filter: drop-shadow(0 5px 4px rgba(12, 18, 38, .45)); }
.tut-hand svg { display: block; transform-origin: 28% 6%; animation: tut-tap 1.1s ease-in-out infinite; }
.tut-hand i { position: absolute; left: 14px; top: -4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #ffd566; opacity: 0; animation: tut-ring 1.1s ease-out infinite; }
.tut-bub { position: absolute; left: 0; top: 0; background: var(--cream); border-radius: 20px; padding: 12px 14px 12px; box-shadow: 0 5px 0 rgba(29, 42, 68, .3), 0 14px 28px rgba(12, 18, 38, .4); border: 3px solid #fff; pointer-events: none; }
.tut-bub p { margin: 0; font: 700 18px/1.2 var(--disp); text-align: center; }
.tut-btns { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.tut-btns button { border: 0; pointer-events: auto; cursor: pointer; color: var(--ink); min-height: 40px; min-width: 72px; padding: 6px 14px; border-radius: 14px; font: 700 16px/1 var(--disp); background: var(--sun); box-shadow: 0 3px 0 var(--sun-d); }
.tut-btns [data-k=skip] { background: rgba(29, 42, 68, .1); box-shadow: none; color: var(--ink2); }
.tut-btns [hidden] { display: none; }
.tut-arr { position: absolute; width: 18px; height: 18px; background: var(--cream); transform: translateX(-50%) rotate(45deg); border: 3px solid #fff; }
.tut-arr.down { bottom: -10px; border-top: 0; border-left: 0; }
.tut-arr.up { top: -10px; border-bottom: 0; border-right: 0; }
.tut.in .tut-bub { animation: tut-pop .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes tut-pop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes tut-tap { 0%, 100% { transform: translate(0, 6px) scale(1); } 40% { transform: translate(0, -4px) scale(1); } 60% { transform: translate(0, 4px) scale(.94); } }
@keyframes tut-ring { 0%, 50% { opacity: 0; transform: scale(.4); } 62% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@media (prefers-reduced-motion: reduce) { .tut-hand svg, .tut-hand i, .tut.in .tut-bub { animation: none; } }

/* ---------- W10: home = a painted world, signboard chrome in one centred column ---------- */
:root { --wood: #9a6a45; --wood-d: #6f4a2f; }
.jm-map { background: #2b3a55; }
/* top bar + dock: cream paper boards with a wooden rim, same family as the in-game ticket tray. Full-width layers stay clear. */
.jm-topbar { padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 0; background: none; display: block; pointer-events: none; }
.jm-topin { max-width: 520px; margin: 0 auto; display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 22px; pointer-events: auto;
  background: linear-gradient(#fff6df, #f6e2b4); border: 3px solid var(--wood); box-shadow: 0 4px 0 var(--wood-d), 0 12px 22px rgba(12, 18, 38, .38), inset 0 2px 0 rgba(255, 255, 255, .7); }
.jm-topin .jm-pill { background: #fff; box-shadow: inset 0 2px 0 rgba(29, 42, 68, .1), 0 0 0 2px rgba(154, 106, 69, .35); }
.jm-topin .jm-ibtn { width: 44px; height: 44px; background: #fffdf5; box-shadow: 0 3px 0 rgba(111, 74, 47, .45); }
.jm-dock { background: none; padding: 0 calc(8px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px)); max-width: none; pointer-events: none; }
.jm-dockin { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 24px; pointer-events: auto;
  background: linear-gradient(#fff6df, #f6e2b4); border: 3px solid var(--wood); box-shadow: 0 4px 0 var(--wood-d), 0 -6px 26px rgba(12, 18, 38, .35), inset 0 2px 0 rgba(255, 255, 255, .7); }
.jm-dockin .jm-chestbar { background: #fffdf5; box-shadow: inset 0 0 0 2px rgba(154, 106, 69, .3); }
.jm-dockin .jm-streak { color: var(--ink); } .jm-dockin .jm-streak .pip { background: rgba(29, 42, 68, .12); } .jm-dockin .jm-streak .pip.on { background: var(--sun); }
.jm-dockin .jm-playbtn { min-height: 62px; }
.jm-dockin .jm-playbtn.primary { background: linear-gradient(#ffd566, #f4b731); }
@media (max-height: 520px) {
  .jm-dockin { flex-direction: row; max-width: 760px; align-items: center; padding: 6px 8px; gap: 8px; } .jm-dockin .jm-streak small { display: none; } .jm-dockin .jm-streak { width: auto; } .jm-dockin .jm-chestbar { padding: 4px 8px; } .jm-dockin .jm-cinfo b { font-size: 14px; } .jm-dockin .jm-chestbar { flex: 1; } .jm-dockin .jm-playrow { flex: 1.2; }
  .jm-topin { max-width: 760px; } .jm-dockin .jm-playbtn { min-height: 52px; } .jm-dockin .jm-playbtn span { font-size: 24px; }
}
/* the painted world (its own stack, so the frame fades and tokens never paint over the bars) */
.jm-map .jm-scroll { z-index: 0; }
.jm-world { --s: .69; --tk: 72px; position: relative; background: var(--bg); min-height: 100%; }
.jm-frame { position: relative; width: calc(var(--tw) * var(--s) * 1px); margin-left: calc(50% - var(--tw) * var(--s) * .5px); }
.jm-world.framed .jm-frame::before, .jm-world.framed .jm-frame::after { content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 4; pointer-events: none; }
.jm-world.framed .jm-frame::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.jm-world.framed .jm-frame::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.jm-skytop { position: relative; height: calc(360px + env(safe-area-inset-top, 0px)); overflow: hidden; background: linear-gradient(#27345a, #4a5d82 55%, #6c7f9e); }
.jm-skytop i { position: absolute; left: var(--x); top: var(--y); width: calc(190px * var(--z)); height: calc(62px * var(--z)); border-radius: 50%; background: #d9e2ef; opacity: .85; filter: blur(2px);
  box-shadow: calc(60px * var(--z)) calc(-22px * var(--z)) 0 calc(6px * var(--z)) #d9e2ef, calc(-50px * var(--z)) calc(-10px * var(--z)) 0 calc(-4px * var(--z)) #c9d4e6; animation: jm-cloud 26s ease-in-out infinite alternate; }
.jm-skytop i:nth-child(2n) { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes jm-cloud { to { transform: translateX(46px); } }
.jm-tile { position: relative; width: 100%; height: calc(var(--th) * var(--s) * 1px); overflow: hidden; background: linear-gradient(#556a8e, #7a8fb0); content-visibility: auto; contain-intrinsic-size: auto 800px; }
.jm-tile.sunny { background: linear-gradient(#8fd2f2, #fde9b8); }
.jm-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.jm-tint { position: absolute; inset: 0; pointer-events: none; }
.jm-tile.rainy .jm-tint { background: linear-gradient(rgba(58, 82, 128, .16), rgba(80, 100, 140, .1)); }
.jm-tile.rainy > img { filter: saturate(.88); }
.jm-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 38% at 50% 58%, rgba(255, 214, 120, .26), transparent 70%); }
.jm-rain { position: absolute; left: 0; right: 0; top: -221px; bottom: 0; pointer-events: none; opacity: .22; will-change: transform;
  background: repeating-linear-gradient(102deg, rgba(255, 255, 255, .5) 0 1.2px, transparent 1.2px 23.51px); background-size: 141px 221px; animation: jm-fall .9s linear infinite; }
@keyframes jm-fall { to { transform: translateY(221px); } }
.jm-plaque { position: absolute; transform: translate(-50%, -50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 20px 7px; border-radius: 14px; pointer-events: none; text-align: center; white-space: nowrap;
  background: linear-gradient(#fff3d3, #f2d9a2); border: 3px solid var(--wood); box-shadow: 0 4px 0 var(--wood-d), 0 10px 16px rgba(12, 18, 38, .35), inset 0 2px 0 rgba(255, 255, 255, .7); }
.jm-plaque::before, .jm-plaque::after { content: ''; position: absolute; top: -13px; width: 3px; height: 11px; background: var(--wood-d); border-radius: 2px; } .jm-plaque::before { left: 22%; } .jm-plaque::after { right: 22%; }
.jm-plaque b { font: 700 clamp(18px, 3.4vw, 24px)/1 var(--disp); color: var(--ink); }
.jm-plaque small { display: inline-flex; gap: 4px; align-items: center; color: var(--ink2); font-size: 13px; }
.jm-tile.sunny .jm-plaque { box-shadow: 0 4px 0 var(--wood-d), 0 0 26px 6px rgba(255, 213, 102, .6), inset 0 2px 0 rgba(255, 255, 255, .7); }
.jm-world .jm-lv { z-index: 3; }
.jm-world .jm-node { width: var(--tk); height: var(--tk); font-size: calc(var(--tk) * .4); }
.jm-world .jm-node.current { width: calc(var(--tk) * 1.12); height: calc(var(--tk) * 1.12); animation: none; }
.jm-world .jm-node.locked { opacity: .78; filter: saturate(.7); }
.jm-world .jm-node.art { background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: contain; border: 0; box-shadow: none; }
.jm-world .jm-node.a-done { background-image: var(--tk-done); } .jm-world .jm-node.a-open { background-image: var(--tk-open); }
.jm-world .jm-node.a-current { background-image: var(--tk-current); } .jm-world .jm-node.a-locked { background-image: var(--tk-locked); }
.jm-world .jm-node .jm-num { text-shadow: 0 2px 0 rgba(29, 42, 68, .5), 0 0 6px rgba(29, 42, 68, .35); color: #fff; -webkit-text-stroke: 3px #1d2a44; paint-order: stroke fill; }
.jm-world .jm-node.art.a-locked .jm-num { color: #cfd6e6; }
.jm-world .jm-node:not(.art).open .jm-num, .jm-world .jm-node:not(.art).locked .jm-num { -webkit-text-stroke: 0; color: inherit; text-shadow: none; }
.jm-world .jm-lv.cur::before { content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--tk) * 1.5); height: calc(var(--tk) * 1.5); margin: calc(var(--tk) * -.75) 0 0 calc(var(--tk) * -.75); border-radius: 50%;
  background: radial-gradient(rgba(255, 213, 102, .7), rgba(255, 213, 102, 0) 70%); animation: jm-halo 1.5s ease-in-out infinite; pointer-events: none; }
@keyframes jm-halo { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.2); opacity: 1; } }
.jm-world .jm-node.current { animation: jm-bob 1.5s ease-in-out infinite; }
@keyframes jm-bob { 50% { transform: translateY(-4px) scale(1.05); } }
.jm-mark { position: absolute; top: 50%; width: calc(var(--tk) * 1.1); pointer-events: none; filter: drop-shadow(0 3px 3px rgba(12, 18, 38, .4)); animation: jm-drive 1.6s ease-in-out infinite alternate; }
.jm-mark.r { left: calc(100% - var(--tk) * .1); transform: translateY(-40%); } .jm-mark.l { right: calc(100% - var(--tk) * .1); transform: translateY(-40%) scaleX(-1); }
.jm-mark svg, .jm-mark img { display: block; width: 100%; height: auto; }
@keyframes jm-drive { to { margin-top: -3px; } }
.jm-world .jm-nstars { background: rgba(29, 42, 68, .62); }
@media (prefers-reduced-motion: reduce) { .jm-rain, .jm-skytop i, .jm-world .jm-node.current, .jm-mark, .jm-world .jm-lv.cur::before { animation: none; } }

/* ---------- W11: announcers (booster modal, district banner, in-level banner) ---------- */
.jm-ann { position: absolute; inset: 0; z-index: 9; pointer-events: auto; display: grid; place-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); }
.jm-card.ann { width: min(100%, 340px); padding: 14px 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jm-card.ann h2 { font-size: 30px; margin-top: 2px; }
.jm-card.ann .jm-sub { margin: 0; font-size: 15px; max-width: 26ch; }
.jm-free { margin: 0; font: 700 13px/1.2 var(--body); color: #8a5a00; background: #ffe7a3; padding: 4px 12px; border-radius: 12px; }
.jm-card.ann .jm-btn { width: 100%; margin-top: 6px; }
.jm-link { min-height: 44px; padding: 8px 18px; font: 700 15px/1 var(--body); color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; pointer-events: auto; }
.jm-burst-wrap { position: relative; width: 190px; height: 150px; display: grid; place-items: center; margin-top: 8px; }
.jm-sunburst { position: absolute; width: 300px; height: 300px; left: 50%; top: 50%; margin: -150px 0 0 -150px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(244, 183, 49, .55) 0 10deg, rgba(244, 183, 49, 0) 10deg 20deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%); animation: jm-spin 26s linear infinite; }
.jm-bigico { position: relative; width: 112px; height: 112px; border-radius: 50%; background: var(--cream); border: 4px solid var(--ink); box-shadow: 0 6px 0 rgba(29, 42, 68, .3), 0 0 0 8px rgba(244, 183, 49, .6); display: grid; place-items: center; animation: jm-bob 1.6s ease-in-out infinite; }
.jm-newtag { position: absolute; z-index: 2; top: 6px; right: 8px; background: var(--tom); color: #fff; font: 800 14px/1 var(--disp); padding: 5px 10px; border-radius: 12px; border: 2px solid var(--cream); transform: rotate(10deg); box-shadow: 0 3px 0 rgba(29, 42, 68, .25); }
/* new district: top of the home, plaque on rays, taps pass through */
.jm-dban { position: absolute; left: 0; right: 0; top: 24%; display: grid; place-items: center; pointer-events: none; z-index: 9; animation: jm-pop .5s cubic-bezier(.2, 1.2, .3, 1) both; transition: opacity .5s, transform .5s; }
.jm-dban.out { opacity: 0; transform: translateY(-16px) scale(.96); }
.jm-dban .jm-sunburst { width: 460px; height: 460px; margin: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); animation: none; }
.jm-dban .jm-sunburst { animation: jm-spin2 30s linear infinite; }
@keyframes jm-spin2 { to { transform: translate(-50%, -50%) rotate(360deg); } }
.jm-plq { position: relative; min-width: 230px; max-width: 86vw; padding: 12px 26px 12px; text-align: center; background: var(--paper); border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 7px 0 rgba(29, 42, 68, .35), 0 16px 28px rgba(29, 42, 68, .3); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.jm-plq::before { content: ''; position: absolute; left: 14px; right: 14px; top: -4px; height: 7px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--tom) 0 20px, var(--sun) 20px 40px, var(--sky) 40px 60px); }
.jm-plq small { font: 800 13px/1 var(--disp); letter-spacing: 1.2px; text-transform: uppercase; color: var(--tom); margin-top: 4px; }
.jm-plq b { font: 700 32px/1.05 var(--disp); color: var(--ink); }
.jm-plq span { display: inline-flex; }
/* in-level banner: below the "coming next" chips, slides in and out, never takes a tap */
.jm-ban { position: absolute; left: 50%; top: calc(var(--hud-top) + 44px); transform: translateX(-50%); z-index: 8; pointer-events: none; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); width: max-content;
  background: var(--ink); color: var(--cream); padding: 8px 16px 8px 10px; border-radius: 18px; border: 2px solid var(--sun); box-shadow: 0 5px 0 rgba(0, 0, 0, .28); animation: jm-ban-in .4s cubic-bezier(.2, 1.2, .3, 1) both; transition: opacity .35s, transform .35s; }
.jm-ban.out { opacity: 0; transform: translate(-50%, -22px); }
.jm-ban .ic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.jm-ban.storm .ic { background: #8fb7e8; }
.jm-ban .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.jm-ban b { font: 700 18px/1.05 var(--disp); color: var(--sun); }
.jm-ban small { font: 600 13px/1.2 var(--body); color: var(--cream); }
@keyframes jm-ban-in { from { opacity: 0; transform: translate(-50%, -26px); } }
@media (max-height: 520px) { .jm-ban { top: calc(var(--hud-top) + 6px); } .jm-card.ann { flex-direction: column; } .jm-burst-wrap { height: 120px; transform: scale(.85); margin: -6px 0; } .jm-dban { top: 14%; } }
@media (prefers-reduced-motion: reduce) { .jm-sunburst, .jm-dban .jm-sunburst, .jm-bigico, .jm-ban, .jm-dban { animation: none; } .jm-dban .jm-sunburst { transform: translate(-50%, -50%); } .jm-ban.out, .jm-dban.out { transform: none; } }

/* revenue layer (store app only): banner room on the map, video buttons, money rows */
html.jm-banner .jm-map { bottom: 60px; }
.jm-videobtn { min-height: 44px; }
.jm-btn[aria-disabled="true"].jm-videobtn { opacity: .6; }
.jm-starter { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; margin-top: 10px; min-height: 52px; }
.jm-starter small { grid-column: 1; opacity: .85; font-weight: 600; } .jm-starter b { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.jm-h3 { font-size: 18px; margin: 10px 4px 2px; }
.jm-input { width: 100%; min-height: 40px; font-size: 16px; border-radius: 12px; border: 2px solid rgba(0,0,0,.18); padding: 4px 10px; text-transform: uppercase; box-sizing: border-box; }

/* ---------- r5: tappable coin pill, booster bag on the home, booster info card, shop sections, test-shop note ---------- */
.jm-coinbtn { position: relative; padding-right: 36px; cursor: pointer; }
.jm-coinbtn .plus { position: absolute; right: 5px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--mint); color: #fff;
  font: 800 21px/26px var(--disp); text-align: center; box-shadow: 0 2px 0 rgba(29, 42, 68, .3); }
.jm-coinbtn.is-down, .jm-bagi.is-down, .jm-invi.is-down { transform: translateY(2px); }
.jm-topin { flex-wrap: wrap; row-gap: 6px; }
.jm-bag { order: 9; flex-basis: 100%; display: flex; align-items: center; gap: 6px; min-width: 0; }
.jm-bag > small { font: 800 12px/1 var(--disp); letter-spacing: .5px; text-transform: uppercase; color: var(--wood-d); margin: 0 2px 0 4px; white-space: nowrap; }
.jm-bagi { position: relative; height: 38px; min-width: 58px; padding: 0 12px 0 6px; border-radius: 19px; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font: 700 18px/1 var(--disp); color: var(--ink); box-shadow: inset 0 2px 0 rgba(29, 42, 68, .1), 0 0 0 2px rgba(154, 106, 69, .35); pointer-events: auto; }
.jm-bagi.locked { background: #efe6d2; } .jm-bagi.locked > .jm-i { opacity: .45; filter: grayscale(.7); }
.jm-bagi .lk { position: absolute; right: 6px; bottom: 4px; display: grid; }
@media (min-width: 600px) { .jm-bag { order: 0; flex-basis: auto; } .jm-bag > small { display: none; } }
.jm-world .jm-nstars.sl, .jm-world .jm-nstars.sr { top: 50%; margin: 0; transform: translateY(-85%); }
.jm-world .jm-nstars.sl { right: 100%; margin-right: 2px; } .jm-world .jm-nstars.sr { left: 100%; margin-left: 2px; }

.jm-binfo { position: absolute; inset: 0; z-index: 11; display: grid; place-items: center; pointer-events: auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); }
.jm-card.binfo { width: min(100%, 340px); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 18px 14px; }
.jm-card.binfo .jm-bigico { width: 104px; height: 104px; animation: none; }
.jm-card.binfo h2 { margin: 2px 0 0; font-size: 30px; }
.jm-card.binfo p { margin: 0; }
.binfo .have { font: 700 17px/1 var(--disp); color: var(--ink); background: #fff; border-radius: 14px; padding: 7px 14px; display: inline-flex; gap: 6px; align-items: center; }
.binfo .have.lock { color: var(--ink2); }
.binfo .what { font: 600 16px/1.35 var(--body); color: var(--ink); max-width: 30ch; }
.binfo .how { display: flex; gap: 8px; align-items: flex-start; text-align: left; background: var(--cream); border: 2px solid rgba(29, 42, 68, .12); border-radius: 14px; padding: 9px 12px; font: 600 14px/1.35 var(--body); color: var(--ink2); }
.binfo .how .jm-i { flex: none; margin-top: 1px; }
.binfo .price { font: 700 30px/1 var(--disp); color: var(--ink); }
.jm-card.binfo .jm-actions { width: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.jm-card.binfo .jm-btn { width: 100%; }
.binfo .bic.pk.big { width: 104px; height: 104px; border-radius: 50%; background: var(--cream); border: 4px solid var(--ink); }

.jm-inv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 6px; }
.jm-invi { position: relative; min-height: 100px; padding: 12px 6px 9px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 rgba(29, 42, 68, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; pointer-events: auto; }
.jm-invi b { font: 700 26px/1 var(--disp); color: var(--ink); }
.jm-invi small { font: 800 12px/1.1 var(--disp); letter-spacing: .4px; color: var(--ink2); text-transform: uppercase; text-align: center; }
.jm-invi.locked { background: #f4ecdb; } .jm-invi.locked > .jm-i { opacity: .45; filter: grayscale(.7); } .jm-invi .lk { display: grid; height: 26px; place-items: center; }
.jm-invi .q, .jm-chips .chip .q { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--sky); color: #fff; font: 800 15px/22px var(--disp); text-align: center; }
.jm-chips .chip.tip { position: relative; padding-right: 34px; cursor: pointer; pointer-events: auto; }
.jm-chips .chip .q { top: 50%; margin-top: -11px; right: 8px; }
.jm-chiphint { margin: 2px 0 0; font: 600 14px/1.3 var(--body); color: var(--cream); display: inline-flex; gap: 6px; align-items: center; opacity: 0; transition: opacity .4s; }
.jm-chiphint.in { opacity: 1; } .jm-chiphint .jm-i { filter: brightness(1.6); }
.jm-demo { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 2px 0 10px; padding: 8px 12px; border-radius: 14px; background: #fff3c4; border: 2px dashed #d9a400; font: 600 13px/1.35 var(--body); color: #5e4500; }
.jm-demo .jm-i { flex: none; margin-top: 1px; }
.jm-row.money .info { gap: 3px; }
.jm-row.money.hot { box-shadow: 0 0 0 3px var(--sun), 0 3px 0 rgba(29, 42, 68, .1); background: #fffaf0; }
.jm-tag { align-self: flex-start; background: var(--sky); color: #fff; font: 800 11px/1 var(--disp); letter-spacing: .5px; text-transform: uppercase; padding: 4px 8px 3px; border-radius: 8px; }
.jm-tag.hot { background: var(--tom); }
.bic.pk { position: relative; width: 52px; height: 52px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; }
.bic.pk i { display: grid; place-items: center; }
.bic.pk.n2 i:nth-child(2), .bic.pk.n3 i:nth-child(2) { margin-left: -10px; } .bic.pk.n3 i:nth-child(3) { margin-top: -10px; }
.bic.pk.n4 i { margin: -3px; }
.jm-row.money .jm-btn { min-width: 92px; }
.jm-sheetbody .jm-h3 { margin-top: 14px; } .jm-sheetbody > .jm-h3:first-child { margin-top: 2px; }
.jm-sheetbody .jm-pill.inline { width: max-content; }
@media (max-width: 380px) { .jm-topin { gap: 5px; padding-left: 6px; padding-right: 6px; } .jm-topin .jm-ibtn { width: 40px; height: 40px; } .jm-coinbtn { padding-right: 32px; } .jm-bagi { min-width: 52px; padding-right: 10px; } }

/* ---- r6: the home map through five seasons (30 districts), season gates, next-season teaser, super storms ---- */
.jm-season { position: relative; height: var(--sh, 140px); display: flex; align-items: center; justify-content: center; z-index: 1;
  background: linear-gradient(180deg, var(--a, #8fd2f2), var(--b, #fde9b8));
  box-shadow: inset 0 8px 12px -8px rgba(0, 0, 0, .35), inset 0 -8px 12px -8px rgba(0, 0, 0, .35); }
.jm-season.s-summer { --a: #7fd0ee; --b: #fde3a6; }
.jm-season.s-autumn { --a: #f3b56c; --b: #d9774a; }
.jm-season.s-winter { --a: #eef6fc; --b: #b4cde2; }
.jm-season.s-night { --a: #1f2a52; --b: #3b4a7e; }
.jm-season > .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff8ea; border: 3px solid #1d2a44; box-shadow: 0 3px 0 rgba(29, 42, 68, .35); margin-right: -10px; z-index: 1; }
.jm-season > .tx { display: flex; flex-direction: column; padding: 7px 18px 7px 20px; border-radius: 14px; background: #fff8ea; border: 3px solid #1d2a44; box-shadow: 0 4px 0 rgba(29, 42, 68, .35); line-height: 1.15; }
.jm-season > .tx b { font-size: 19px; letter-spacing: .02em; color: #1d2a44; }
.jm-season > .tx small { font-size: 13px; color: #4b5675; font-weight: 700; }
.jm-tile.season-summer.tinted > img { filter: saturate(1.25) brightness(1.06) contrast(1.04); }
.jm-tile.season-autumn.tinted > img { filter: sepia(.35) saturate(1.3) hue-rotate(-12deg); }
.jm-tile.season-winter.tinted > img { filter: saturate(.4) brightness(1.2) contrast(.94); }
.jm-tile.season-night.tinted > img { filter: brightness(.5) saturate(.85) hue-rotate(14deg) contrast(1.12); }
.jm-tile.teaser .jm-fog { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 239, 226, .97) 0%, rgba(246, 239, 226, .9) 55%, rgba(246, 239, 226, .55) 85%, rgba(246, 239, 226, .25) 100%); }
.jm-tile.teaser .jm-plaque { z-index: 5; }
.jm-node .jm-x3 { position: absolute; right: -8px; bottom: -6px; padding: 3px 5px; border-radius: 8px; background: #7b4fd6; color: #fff; border: 2px solid #fff8ea;
  font-weight: 900; font-size: 12px; line-height: 1; box-shadow: 0 2px 0 rgba(29, 42, 68, .4); pointer-events: none; }
.jm-node.superstorm { filter: drop-shadow(0 0 7px rgba(123, 79, 214, .85)); }
.jm-stormtag.super { background: #7b4fd6; color: #fff; }
.jm-plq.season small svg { vertical-align: -5px; }
.jm-stormtag.super { padding: 2px 7px; border-radius: 9px; }
.jm-stormtag.super { white-space: nowrap; font-size: 12px; }
.jm-world { background: var(--sides, var(--bg)); }
.jm-world.framed .jm-frame::before { background: var(--sides, var(--bg)); -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.jm-world.framed .jm-frame::after { background: var(--sides, var(--bg)); -webkit-mask-image: linear-gradient(270deg, #000, transparent); mask-image: linear-gradient(270deg, #000, transparent); }

/* ---- r7: music shortcut (home + level), language switch ---- */
.jm-bagrow { order: 9; flex-basis: 100%; display: flex; align-items: center; gap: 6px; min-width: 0; }
.jm-bagrow > .jm-bag { order: 0; flex: 1 1 auto; flex-basis: auto; }
.jm-bagrow > .jm-mus { margin-left: auto; flex: 0 0 auto; }
@media (min-width: 600px) { .jm-bagrow { order: 0; flex-basis: auto; } }
.jm-topin .jm-mus { width: 40px; height: 40px; }
.jm-hudtop .jm-mus { width: 40px; height: 40px; flex: 0 0 auto; }
.jm-mus.off { opacity: .8; }
.jm-mus.wait { animation: jm-muspulse 1.3s ease-in-out infinite; }
@keyframes jm-muspulse { 0%, 100% { box-shadow: 0 3px 0 rgba(111, 74, 47, .45), 0 0 0 0 rgba(244, 183, 49, .9); } 50% { box-shadow: 0 3px 0 rgba(111, 74, 47, .45), 0 0 0 7px rgba(244, 183, 49, 0); } }
@media (prefers-reduced-motion: reduce) { .jm-mus.wait { animation: none; outline: 3px solid #f4b731; } }
.jm-langs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 4px 10px; }
.jm-lang { min-height: 44px; border-radius: 14px; border: 0; background: #fff; color: var(--ink); font: 700 16px/1 var(--disp); box-shadow: inset 0 2px 0 rgba(29, 42, 68, .1), 0 0 0 2px rgba(154, 106, 69, .35); pointer-events: auto; transition: background-color .18s ease, box-shadow .18s ease; }
.jm-lang:hover { box-shadow: inset 0 2px 0 rgba(29, 42, 68, .1), 0 0 0 3px rgba(154, 106, 69, .6); }
.jm-lang:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.jm-lang.on { background: var(--sun); box-shadow: 0 3px 0 rgba(111, 74, 47, .45), 0 0 0 2px var(--ink); }
.jm-row.langrow { padding-bottom: 4px; }

/* r7: level top bar fits a 360 px phone with the music button: the free-bays counter and the storm chip sit under the
   level number; the storm chip shows its words only where there is room (the level-start banner always says it) */
.jm-lvl { overflow: hidden; padding-bottom: 3px; }
.jm-lvl b { overflow: hidden; text-overflow: ellipsis; font-size: clamp(17px, 5.2vw, 22px); }
.jm-lvl2 { display: flex; align-items: center; gap: 5px; margin-top: 3px; min-width: 0; }
.jm-lvl2:not(:has(> :not([hidden]))) { display: none; }
.jm-lvl2 .jm-bays { height: 24px; padding: 0 8px 0 4px; font-size: 15px; gap: 3px; color: var(--ink); text-shadow: none; box-shadow: 0 2px 0 rgba(29, 42, 68, .25); flex: 0 0 auto; }
.jm-lvl2 .jm-stormtag { height: 24px; padding: 0 7px 0 5px; border-radius: 12px; background: rgba(29, 42, 68, .6); white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.jm-lvl2 .jm-stormtag.super { padding: 0 7px 0 5px; background: #7b4fd6; }
@media (max-width: 479px) { .jm-lvl2 .jm-stormtag .st { display: none; } .jm-lvl2 .jm-stormtag, .jm-lvl2 .jm-stormtag.super { padding: 0 4px; } }
@media (max-width: 380px) { .jm-hudtop { gap: 6px; } .jm-hudtop .jm-ibtn { width: 44px; height: 44px; } .jm-hudtop .jm-mus { width: 38px; height: 38px; } }

/* 19 Nov: No ads offer on the win card (only where forced ads can play). Hover/focus ease, never invert. */
.jm-noads { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 38px; padding: 6px 14px;
  border-radius: 999px; border: 2px solid rgba(29, 42, 68, .22); background: rgba(255, 248, 234, .9); color: var(--ink);
  font: 700 14px/1.1 var(--body); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.jm-noads svg { flex: none; }
.jm-noads b { color: var(--tom); font-weight: 800; }
.jm-noads:hover { background: #fff; border-color: var(--sun-d); }
.jm-noads:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.jm-noads:active { transform: translateY(1px); }
.jm-noads[disabled] { opacity: .6; cursor: default; }
@media (max-height: 520px) { .jm-noads { margin-top: 6px; min-height: 34px; } }

/* ======================================================================================================================
   r10 (operator 21 Nov: "the icons/Buttons/CTA should be more in line with our other games"): Buses joins the Brolly family look
   of Bolts, Bonbons and Barges. ONE system: cream tiles with a brown-ink outline and a bottom lip, oak plates with a brass rim,
   gold primary buttons, Baloo 2 everywhere. Hover only lifts/brightens (never swaps fill and text colour); every control has
   hover, focus-visible and pressed. This block re-skins the classes above; layout rules above still apply.
   ====================================================================================================================== */
:root { --ink: #2a1d16; --ink2: #5b4636; --cream: #fff3dc; --paper: #fbefd2; --card: #fffaf0; --lip: #dcc08a; --line: #e6cf9b;
  --sun: #f6cf6b; --sun-d: #c98f22; --brass: #e2a93b; --tom: #d85a3c; --mint: #3f9d8f; --oak: #6a4630; --oak2: #4a3022; --deep: #1a100a;
  --wood: #6a4630; --wood-d: #4a3022; --ease: cubic-bezier(.3, .7, .3, 1); --shadow: 0 8px 0 rgba(20, 12, 8, .5), 0 22px 40px rgba(0, 0, 0, .45);
  --hud-bottom: calc(98px + env(safe-area-inset-bottom, 0px)); /* the oak booster tray (8 + 3 + 8 + 64 + 8 + 3 + lip) */ }
@media (max-height: 520px) { :root { --hud-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); } }
.jm button:focus-visible, .jm input:focus-visible { outline: 3px solid #16a5e0; outline-offset: 2px; }

/* ---- buttons: primary = gold, secondary = teal, ghost = cream ---- */
.jm-btn { --lip: #dcc08a; border: 2.5px solid var(--ink); border-radius: 16px; min-height: 50px; padding: 6px 18px 10px; font: 700 18px/1.05 var(--disp); color: var(--ink);
  background: linear-gradient(#fffaf0, #fbeecd); box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .45);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease); }
.jm-btn.primary, .jm-dockin .jm-playbtn.primary { background: linear-gradient(#fbdc86, #f0bb48); --lip: #c98f22; box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .45); }
.jm-btn.secondary { background: linear-gradient(#8fdace, #55b3a5); --lip: #2f7e72; box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .45); }
.jm-btn.ghost { background: linear-gradient(#fffaf0, #fbeecd); box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .45); }
.jm-btn.big { min-height: 60px; font-size: 23px; border-radius: 18px; padding: 6px 22px 12px; }
.jm-btn[aria-disabled=true], .jm-btn:disabled { filter: none; background: #e4d6b8; color: #7d6f5a; --lip: #c9b78f; box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .3); }
.jm-btn[aria-disabled=true] svg, .jm-btn:disabled svg { opacity: .6; }
@media (hover: hover) { .jm-btn:not([aria-disabled=true]):not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.05); } }
.jm-btn:active, .jm-btn.is-down { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--lip), 0 1px 0 rgba(26, 16, 10, .45); transition-duration: .06s; }
.jm-playbtn { padding-top: 4px; } .jm-playbtn span { font-size: 28px; letter-spacing: .02em; } .jm-playbtn small { font: 700 14px/1 var(--disp); opacity: .8; }
.jm-dockin .jm-playbtn { min-height: 64px; }

/* ---- tiles: icon buttons, pills, the booster bag ---- */
.jm-ibtn, .jm-topin .jm-ibtn, .jm-hudtop .jm-ibtn { width: 46px; height: 46px; padding: 0 0 3px; border-radius: 14px; border: 2.5px solid var(--ink); background: var(--card);
  box-shadow: inset 0 -4px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .5); transition: transform .16s var(--ease), filter .16s var(--ease); }
.jm-topin .jm-ibtn { background: #fffdf6; box-shadow: inset 0 -4px 0 #e9d3a4, 0 3px 0 rgba(26, 16, 10, .35); }
.jm-ibtn .dot { top: -6px; right: -6px; width: 16px; height: 16px; background: var(--tom); border: 2.5px solid var(--ink); animation: none; }
.jm-ibtn .badge, .jm-chestbtn .badge { top: -8px; right: -8px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--tom); color: #fff; font: 700 14px/19px var(--disp); border: 2.5px solid var(--ink); box-sizing: border-box; padding: 0 4px; }
.jm-pill, .jm-topin .jm-pill { height: 46px; padding: 0 12px 3px 8px; border-radius: 14px; border: 2.5px solid var(--ink); background: var(--card); color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .5); font: 700 19px/1 var(--disp); }
.jm-topin .jm-pill { background: #fffdf6; box-shadow: inset 0 -4px 0 #e9d3a4, 0 3px 0 rgba(26, 16, 10, .35); }
.jm-pill b { font-variant-numeric: tabular-nums; text-align: right; }
.jm-pill.mini, .jm-pill.inline { height: 40px; background: var(--card); box-shadow: inset 0 -3px 0 #f1dfb4; border-width: 2px; border-color: var(--line); }
.jm-coinbtn, .jm-topin .jm-coinbtn { padding-right: 38px; }
.jm-coinbtn .plus { right: 5px; width: 26px; height: 26px; margin-top: -14.5px; background: linear-gradient(#8fdace, #55b3a5); border: 2px solid var(--ink); box-sizing: border-box; font: 800 20px/21px var(--disp); box-shadow: inset 0 -2px 0 #2f7e72; }
@media (hover: hover) { .jm-ibtn:hover, .jm-pill:hover, .jm-bagi:hover, .jm-invi:hover { transform: translateY(-2px); filter: brightness(1.05); } }
.jm-ibtn:active, .jm-pill:active, .jm-bagi:active, .jm-ibtn.is-down, .jm-coinbtn.is-down, .jm-bagi.is-down, .jm-invi.is-down { transform: translateY(2px); }
.jm-bagi { height: 44px; min-width: 58px; border-radius: 14px; border: 2.5px solid var(--ink); background: #fffdf6; box-shadow: inset 0 -4px 0 #e9d3a4, 0 3px 0 rgba(26, 16, 10, .35); padding: 0 12px 3px 6px; }
.jm-bagi.locked { background: #e6dcc6; box-shadow: inset 0 -4px 0 #cbbd9d, 0 3px 0 rgba(26, 16, 10, .35); }
.jm-bag > small { color: var(--ink2); }
.jm-mus.off { opacity: 1; background: #eadcc0; }
@keyframes jm-muspulse { 0%, 100% { box-shadow: inset 0 -4px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .5), 0 0 0 0 rgba(246, 207, 107, .95); } 50% { box-shadow: inset 0 -4px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .5), 0 0 0 8px rgba(246, 207, 107, 0); } }

/* ---- home: top board and bottom dock = cream boards with an ink outline and a lip (as Bolts) ---- */
.jm-topin, .jm-dockin { border: 3px solid var(--ink); background: linear-gradient(#fff6e2, #f7e2b6); color: var(--ink);
  box-shadow: inset 0 -5px 0 var(--lip), inset 0 0 0 2px rgba(255, 255, 255, .65), 0 5px 0 rgba(26, 16, 10, .45), 0 12px 20px rgba(0, 0, 0, .3); }
.jm-topin { padding: 8px 10px 11px; } .jm-dockin { padding: 10px 10px 12px; }
.jm-chestbar, .jm-dockin .jm-chestbar { border: 2.5px solid var(--ink); border-radius: 16px; padding: 8px 12px 10px 10px; background: #fffdf6; box-shadow: inset 0 -4px 0 #e9d3a4, 0 3px 0 rgba(26, 16, 10, .3); }
.jm-cbox { width: 48px; height: 48px; border-radius: 14px; background: #fbe7b8; border: 2px solid var(--line); box-sizing: border-box; }
.jm-cinfo b { font: 700 17px/1.1 var(--disp); } .jm-cinfo small { color: var(--ink2); }
.jm-prog { height: 12px; border-radius: 7px; background: #e9d5a6; box-shadow: inset 0 2px 0 rgba(42, 29, 22, .18); }
.jm-prog i { background: linear-gradient(#fbdc86, #eeb53f); border-radius: 7px; box-shadow: inset 0 -3px 0 rgba(160, 100, 10, .35); }
.jm-chestbtn { width: 52px; height: 52px; padding: 0 0 3px; border: 2.5px solid var(--ink); background: linear-gradient(#fbdc86, #f0bb48); box-shadow: inset 0 -4px 0 #c98f22, 0 3px 0 rgba(26, 16, 10, .5); box-sizing: border-box; }
.jm-dockin .jm-streak, .jm-streak { color: var(--ink); font: 700 14px/1.1 var(--disp); }
.jm-dockin .jm-streak .pip, .jm-streak.row .pip, .pip { background: #e3d2ac; opacity: 1; box-shadow: inset 0 2px 0 rgba(42, 29, 22, .22); }
.pip:not(.on) .jm-i { opacity: .3; filter: grayscale(1); }
.jm-dockin .jm-streak .pip.on, .jm-streak.row .pip.on, .pip.on { background: #fffdf6; box-shadow: 0 0 0 2px var(--ink); }
.jm-unsaved { border: 2.5px solid var(--ink); box-shadow: inset 0 -3px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .4); background: var(--card); }
/* the district sign on the painted map */
.jm-plaque { border: 3px solid var(--ink); border-radius: 18px; padding: 8px 24px 12px; background: linear-gradient(#fffaf0, #fbe9c4);
  box-shadow: inset 0 -5px 0 var(--lip), inset 0 0 0 2px rgba(255, 255, 255, .7), 0 5px 0 rgba(26, 16, 10, .5), 0 12px 18px rgba(0, 0, 0, .35); }
.jm-plaque::before, .jm-plaque::after { top: 50%; margin-top: -6px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3dc, #b9801f 70%); box-shadow: 0 0 0 2px var(--ink); }
.jm-plaque::before { left: 9px; } .jm-plaque::after { right: 9px; left: auto; }
.jm-tile.sunny .jm-plaque { background: linear-gradient(#fbdc86, #f0bb48); box-shadow: inset 0 -5px 0 #c98f22, inset 0 0 0 2px rgba(255, 245, 210, .6), 0 5px 0 rgba(26, 16, 10, .5), 0 12px 18px rgba(0, 0, 0, .35); }
.jm-tile.sunny .jm-plaque small { color: #5b3a10; }
.jm-world .jm-nstars { background: #2a1d16; box-shadow: 0 2px 0 rgba(20, 10, 4, .4); }
.jm-season > .ic, .jm-season > .tx { border-color: var(--ink); background: var(--card); box-shadow: inset 0 -4px 0 var(--lip), 0 4px 0 rgba(26, 16, 10, .45); }
.jm-season > .tx b { color: var(--ink); } .jm-season > .tx small { color: var(--ink2); }

/* ---- level bar (as Bolts): house, oak level plaque, coins, music, pause; no dark band behind ---- */
.jm-hudtop { background: none; align-items: flex-start; gap: 8px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); height: auto; }
/* the oak level plaque; the free-bays counter and the storm tag sit INSIDE it on a second line, so the bar keeps its 56 px */
.jm-lvl.jm-lvpill { height: 46px; padding: 3px 12px 6px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; max-width: 100%;
  color: var(--cream); text-shadow: 0 2px 0 rgba(26, 16, 10, .6); border: 2.5px solid var(--ink); overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 9px), linear-gradient(var(--oak), var(--oak2));
  box-shadow: inset 0 0 0 2px var(--brass), inset 0 -5px 0 rgba(26, 16, 10, .35), 0 3px 0 rgba(26, 16, 10, .5); }
.jm-lvl.jm-lvpill b { font: 700 clamp(17px, 5.2vw, 21px)/1 var(--disp); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.jm-lvpill:has(.jm-lvl2 > :not([hidden])) b { font-size: 16px; }
.jm-lvl2 { margin-top: 0; padding: 0; gap: 4px; }
.jm-lvl2 .jm-bays { height: 18px; padding: 0 6px 0 3px; gap: 2px; font: 700 13px/1 var(--disp); border: 1.5px solid var(--ink); border-radius: 9px; background: var(--card); color: var(--ink); text-shadow: none; box-shadow: none; }
.jm-lvl2 .jm-bays .jm-i { width: 13px; height: 13px; }
.jm-bays.low, .jm-lvl2 .jm-bays.low { background: #ffe3a1; } .jm-bays.full, .jm-lvl2 .jm-bays.full { background: #ffc1b6; }
.jm-lvl2 .jm-stormtag { height: 18px; padding: 0 5px 0 3px; border: 1.5px solid var(--ink); border-radius: 9px; background: linear-gradient(#5a6d8f, #3d4d6e); color: #fff3dc; font-size: 12px; text-shadow: none; }
.jm-lvl2 .jm-stormtag .jm-i { width: 13px; height: 13px; }
.jm-lvl2 .jm-stormtag.super { background: #7b4fd6; }
.jm-hudtop .jm-mus { width: 46px; height: 46px; }
@media (max-width: 400px) { .jm-hudtop { gap: 5px; padding-left: calc(6px + env(safe-area-inset-left, 0px)); padding-right: calc(6px + env(safe-area-inset-right, 0px)); }
  .jm-hudtop .jm-ibtn, .jm-hudtop .jm-mus { width: 42px; height: 42px; } .jm-hudtop > .jm-pill { height: 42px; padding-left: 6px; }
  .jm-hudtop .jm-coinbtn { padding-right: 10px; } .jm-hudtop .jm-coinbtn .plus { display: none; } /* the coin pill still opens the shop */
  .jm-lvl.jm-lvpill { height: 42px; padding: 2px 9px 5px; } }

/* ---- booster tray: one oak plate with a brass rim, cream cards (as Bolts) ---- */
.jm-hud .jm-hudbot { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 16px), 400px); height: auto;
  padding: 8px; gap: 8px; border-radius: 22px; border: 3px solid var(--ink); pointer-events: auto;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 11px), linear-gradient(var(--oak), var(--oak2));
  box-shadow: inset 0 0 0 2px var(--brass), inset 0 -6px 0 rgba(26, 16, 10, .3), 0 5px 0 var(--deep), 0 12px 18px rgba(0, 0, 0, .35); }
.jm-hud .jm-hudbot::before { display: none; }
.jm-boost { max-width: none; min-width: 0; min-height: 64px; border-radius: 14px; outline: 0; border: 2.5px solid var(--ink); padding: 2px 4px 6px;
  background: linear-gradient(var(--card), #fbecc8); box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 var(--deep); transition: transform .16s var(--ease), filter .16s var(--ease), box-shadow .16s var(--ease); }
.jm-boost .lbl { font: 700 13px/1 var(--disp); letter-spacing: .02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-boost .ico .jm-i { width: 32px; height: 32px; }
.jm-boost.locked { background: #e4d6b8; --lip: #c9b78f; } .jm-boost.locked .ico { filter: grayscale(1); opacity: .5; }
.jm-boost .from { color: var(--ink2); font: 700 11px/1.1 var(--disp); }
.jm-boost.target { background: linear-gradient(#fbdc86, #f0bb48); box-shadow: inset 0 -5px 0 #c98f22, 0 0 0 3px #fff3dc, 0 3px 0 var(--deep); }
.jm-boost.new { box-shadow: inset 0 -5px 0 var(--lip), 0 0 0 3px var(--sun), 0 3px 0 var(--deep); }
@media (hover: hover) { .jm-boost:hover { transform: translateY(-2px); filter: brightness(1.05); } }
.jm-boost:active, .jm-boost.is-down { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--lip), 0 0 0 var(--deep); transition-duration: .06s; }
.bdg { border: 2px solid var(--ink); top: -10px; right: -6px; box-shadow: 0 2px 0 rgba(26, 16, 10, .4); }
.bdg.count { background: var(--mint); } .bdg.free { background: var(--tom); } .bdg.price { background: var(--sun); } .bdg.lock { background: var(--ink2); }
@media (max-height: 520px) { .jm-hud .jm-hudbot { width: min(calc(100% - 16px), 520px); padding: 6px; } .jm-boost { min-height: 48px; } .jm-hudtop { padding-top: calc(6px + env(safe-area-inset-top, 0px)); } }

/* ---- cards and sheets: cream paper, ink outline, a gold hazard stripe; sheet header = oak plank ---- */
.jm-dim { background: rgba(20, 12, 8, .66); }
.jm-card { border: 3px solid var(--ink); border-radius: 26px; background: linear-gradient(#fff8e8, #fbeacb); padding-top: 24px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), var(--shadow); }
.jm-card::before { height: 12px; border-radius: 0; background: repeating-linear-gradient(115deg, #f6cf6b 0 14px, #e2a93b 14px 28px); border-bottom: 3px solid var(--ink); }
.jm-card h2 { color: var(--ink); }
.jm-card.lose { background: linear-gradient(#f3eee6, #e4dccd); } .jm-card.lose::before { background: repeating-linear-gradient(115deg, #8c9bb8 0 14px, #6b7794 14px 28px); }
.jm-chip { background: var(--oak2); color: var(--sun); border: 2px solid var(--ink); }
.jm-lines li, .jm-mlist li { background: var(--card); border: 2px solid var(--line); }
.jm-lines li.ok { background: #e3f3e8; }
.jm-sheet { border: 3px solid var(--ink); border-bottom: 0; border-radius: 26px 26px 0 0; overflow: hidden; background: linear-gradient(#fff8e8, #fbeacb);
  box-shadow: 0 -6px 0 rgba(20, 12, 8, .35), 0 -14px 40px rgba(0, 0, 0, .4); }
.jm-sheet header { position: relative; padding: 12px 12px 22px 20px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 9px), linear-gradient(var(--oak), var(--oak2)); }
.jm-sheet header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-top: 3px solid var(--ink); background: repeating-linear-gradient(115deg, #f6cf6b 0 14px, #e2a93b 14px 28px); }
.jm-sheet h2 { color: var(--cream); text-shadow: 0 2px 0 rgba(26, 16, 10, .7); }
.jm-sheet header .jm-ibtn { border-radius: 50%; background: linear-gradient(#f08a6c, #d85a3c); box-shadow: inset 0 -4px 0 #a23c22, 0 3px 0 rgba(26, 16, 10, .5); }
.jm-sheetbody { padding-top: 14px; }
.jm-row { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px 11px; box-shadow: inset 0 -3px 0 #f1dfb4; }
.jm-row .info b { color: var(--ink); }
.jm-row.done:not(.claimed), .jm-row.money.hot { border-color: #d89e2c; background: #fff1c4; box-shadow: inset 0 -3px 0 #f3d98c; }
.jm-row.claimed { opacity: 1; background: #f6ecd4; } .jm-row.claimed .info { opacity: .7; }
.bic { border-radius: 14px; background: #fbe7b8; border: 2px solid var(--line); box-sizing: border-box; }
.jm-day { background: var(--card); border: 2px solid var(--line); box-shadow: inset 0 -3px 0 #f1dfb4; border-radius: 14px; }
.jm-day.claimed { background: #f1e6cc; }
.jm-day.current { border: 2.5px solid var(--ink); background: linear-gradient(#fff0b8, #fbdc86); box-shadow: inset 0 -4px 0 #e2a93b, 0 3px 0 rgba(26, 16, 10, .4); animation: none; }
.jm-day.big { background: linear-gradient(#fff1c4, #fbe3a4); }
.jm-day .tick { background: var(--mint); border: 2px solid var(--ink); }
.jm-allbonus { border-color: var(--line); } .jm-allbonus.on { background: #e3f3e8; border-color: var(--mint); }
.jm-switch { width: 72px; min-width: 72px; height: 44px; border-radius: 22px; border: 2.5px solid var(--ink); background: #cdb58a; padding: 0; justify-content: flex-start; box-shadow: inset 0 3px 0 rgba(42, 29, 22, .22); color: transparent; font-size: 0; }
.jm-switch span { display: none; }
.jm-switch i { width: 35px; height: 35px; margin: 2px; border: 2.5px solid var(--ink); background: #fffaf0; box-shadow: inset 0 -3px 0 var(--lip); box-sizing: border-box; transition: transform .16s var(--ease); }
.jm-switch.on { background: #55b3a5; flex-direction: row-reverse; } .jm-switch.on i { transform: none; }
.jm-lang { border: 2.5px solid var(--ink); background: linear-gradient(#fffaf0, #fbeecd); box-shadow: inset 0 -4px 0 var(--lip), 0 2px 0 rgba(26, 16, 10, .35); padding-bottom: 4px; transition: transform .16s var(--ease), filter .16s var(--ease); }
.jm-lang:hover { box-shadow: inset 0 -4px 0 var(--lip), 0 2px 0 rgba(26, 16, 10, .35); }
@media (hover: hover) { .jm-lang:hover { transform: translateY(-2px); filter: brightness(1.05); } }
.jm-lang.on { background: linear-gradient(#fbdc86, #f0bb48); box-shadow: inset 0 -4px 0 #c98f22, 0 2px 0 rgba(26, 16, 10, .35); }
.jm-invi { background: var(--card); border: 2px solid var(--line); box-shadow: inset 0 -3px 0 #f1dfb4; }
.jm-invi.locked { background: #f1e6cc; }
.jm-input { border: 2.5px solid var(--ink); background: #fff; color: var(--ink); }
.jm-demo { border-color: #d3b06a; background: #fbe7b8; color: var(--ink); }
.jm-tag { background: var(--mint); } .jm-tag.hot { background: var(--tom); }
.jm-noads { border: 2.5px solid var(--ink); background: linear-gradient(#fffaf0, #fbeecd); box-shadow: inset 0 -3px 0 var(--lip), 0 2px 0 rgba(26, 16, 10, .35); }
.jm-noads:hover { background: linear-gradient(#fffaf0, #fbeecd); border-color: var(--ink); filter: brightness(1.05); }
.jm-link { color: var(--ink2); }

/* ---- announcers, toasts, chest chips, tutorial bubble ---- */
.jm-bigico, .binfo .bic.pk.big { border: 3px solid var(--ink); background: repeating-conic-gradient(from 0deg, #fbdc86 0 15deg, #f6cf6b 15deg 30deg); box-shadow: inset 0 0 0 4px #fff8e8, 0 4px 0 rgba(26, 16, 10, .35); }
.jm-newtag { border: 2px solid var(--ink); }
.jm-plq { border: 3px solid var(--ink); background: linear-gradient(#fffaf0, #fbe9c4); box-shadow: inset 0 -5px 0 var(--lip), 0 6px 0 rgba(26, 16, 10, .45), 0 16px 28px rgba(0, 0, 0, .3); }
.jm-plq::before { left: 0; right: 0; top: 0; height: 10px; border-radius: 15px 15px 0 0; background: repeating-linear-gradient(115deg, #f6cf6b 0 14px, #e2a93b 14px 28px); border-bottom: 2.5px solid var(--ink); }
.jm-plq small { margin-top: 10px; }
.jm-ban { background: linear-gradient(#6a4630, #4a3022); border: 2.5px solid var(--ink); box-shadow: inset 0 0 0 2px var(--brass), 0 4px 0 rgba(26, 16, 10, .5); }
.jm-ban .ic { border: 2px solid var(--ink); }
.jm-toast { background: var(--card); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 16px; padding: 8px 18px 11px; font: 700 17px/1.2 var(--disp); box-shadow: inset 0 -4px 0 var(--lip), 0 4px 0 rgba(26, 16, 10, .45); }
.jm-chips .chip { border: 2.5px solid var(--ink); background: var(--card); box-shadow: inset 0 -4px 0 var(--lip), 0 4px 0 rgba(26, 16, 10, .45); }
.binfo .have { background: var(--card); border: 2px solid var(--line); }
.binfo .how { background: #fbe7b8; border: 2px dashed #d3b06a; color: var(--ink); }
.tut-spot { box-shadow: 0 0 0 9999px rgba(20, 12, 8, .55), 0 0 0 4px #f6cf6b inset, 0 0 0 3px var(--ink); }
.tut-bub { background: linear-gradient(#fff8e8, #fbeacb); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 5px 0 rgba(20, 12, 8, .45), 0 12px 24px rgba(0, 0, 0, .35); }
.tut-arr { background: #fbeacb; border-color: var(--ink); }
.tut-btns button { border: 2.5px solid var(--ink); background: linear-gradient(#fbdc86, #f0bb48); box-shadow: inset 0 -4px 0 #c98f22, 0 2px 0 rgba(26, 16, 10, .4); padding-bottom: 8px; }
.tut-btns [data-k=skip] { background: linear-gradient(#fffaf0, #fbeecd); box-shadow: inset 0 -4px 0 var(--lip), 0 2px 0 rgba(26, 16, 10, .4); color: var(--ink); }

/* r10: phone on its side - the pause sheet's Resume / Restart / Map come first, on one row (they sat below the screen edge, behind a scroll) */
@media (orientation: landscape) and (max-height: 520px) {
  .jm-sheet-pause .jm-actions { order: -1; flex-direction: row; margin: 6px 0 10px; gap: 8px; }
  .jm-sheet-pause .jm-actions .jm-btn { flex: 1; min-height: 52px; font-size: 17px; }
  .jm-sheet-pause .jm-actions .jm-btn.big { flex: 1.4; font-size: 20px; }
}

/* ---------- L144 reward tips + L145 Open chest buttons ---------- */
[data-act=tip] { pointer-events: auto; cursor: pointer; }
.jm-tip { position: absolute; z-index: 30; box-sizing: border-box; width: max-content; max-width: min(80vw, 300px); padding: 9px 13px 11px; border-radius: 16px; background: var(--card, #fffaf0); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 5px 0 rgba(26, 16, 10, .35), 0 10px 24px rgba(0, 0, 0, .3); pointer-events: none; animation: jm-tipin .16s var(--ease, ease-out); }
.jm-tip > b { display: flex; align-items: center; gap: 7px; font: 700 17px/1.15 var(--disp); }
.jm-tip > p { margin: 4px 0 0; font: 600 14px/1.3 var(--body); color: var(--ink2); }
.jm-tip > .ar { position: absolute; left: var(--ax, 50%); bottom: -9px; width: 14px; height: 14px; margin-left: -7px; background: var(--card, #fffaf0); border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }
.jm-tip.below > .ar { bottom: auto; top: -9px; transform: rotate(-135deg); }
.jm-tip.out { opacity: 0; transform: translateY(3px); transition: opacity .15s, transform .15s; }
@keyframes jm-tipin { from { opacity: 0; transform: translateY(5px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jm-tip { animation: none; } .jm-tip.out { transition: none; } }
.jm-chips .chip.tip { pointer-events: auto; }
.rc[data-act=tip] { padding: 6px 7px; margin: -6px -3px; }
.jm-day[data-act=tip], .jm-lines li[data-act=tip], .jm-cbar[data-act=tip] { cursor: pointer; }
.jm-btn.jm-chestopen { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 10px; padding-left: 10px; padding-right: 10px; }
.jm-btn.jm-chestopen > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.05; }
.jm-chestgrant { display: flex; flex-direction: column; gap: 0; align-items: stretch; margin: 0 0 10px; padding: 8px 10px 10px; border-radius: 16px; background: #fff3c4; border: 2px dashed var(--brass, #e2a93b); }
.jm-chestgrant .cg { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 18px/1.1 var(--disp); }
.jm-chestgrant .jm-chestopen { margin-top: 8px; }
@media (max-height: 520px) { .jm-btn.jm-chestopen { margin-top: 6px; min-height: 44px; } }
