/* ============================================================================
   Blockville — the interface
   Chunky, bright and readable from across a classroom. Panels look like
   polished wood and paper, buttons press down like blocks. Every touch target
   is at least 44px; nothing depends on hover.
   ========================================================================= */
:root {
  --ink: #1E2A3A; --ink-2: #3C4A5E; --paper: #FFF8EC; --paper-2: #F6EBD6; --line: rgba(30, 42, 58, .16);
  --wood: #B8884E; --wood-d: #7A5530; --grass: #5DB346; --go: #2E7D32; --go-d: #1F5E23;
  --sky: #4FA8E8; --sky-d: #1F6FB2; --sun: #FFC933; --sun-d: #D99A0B; --berry: #D93A4A; --berry-d: #A3212F;
  --purple: #7B5EA7; --purple-d: #5A4080;
  --r: 14px; --r-lg: 20px;
  --pop: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --slot: 52px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #4FA8E8; color: var(--ink);
  font: 700 16px/1.35 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
[hidden] { display: none !important; }
#gl { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.uw { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(ellipse at center, rgba(40, 120, 200, .18), rgba(10, 50, 110, .5)); pointer-events: none; }

/* ── shared pieces ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 18px;
  font-family: 'Baloo 2', 'Nunito', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: .01em;
  background: var(--paper); color: var(--ink); border-radius: var(--r);
  box-shadow: inset 0 -4px 0 rgba(30, 42, 58, .14), 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink);
  transition: transform .08s, box-shadow .08s; margin: 3px 3px 8px;
}
.btn:active, .btn.down { transform: translateY(4px); box-shadow: inset 0 -2px 0 rgba(30, 42, 58, .14), 0 0 0 3px var(--ink), 0 1px 0 3px var(--ink); }
.btn:focus-visible, .hb:focus-visible, .chip-btn:focus-visible, .slot:focus-visible, .card:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }
.btn.go { background: var(--go); color: #fff; box-shadow: inset 0 -5px 0 var(--go-d), 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); }
.btn.sky { background: var(--sky-d); color: #fff; box-shadow: inset 0 -5px 0 #154F80, 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); }
.btn.sun { background: var(--sun); box-shadow: inset 0 -5px 0 var(--sun-d), 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); }
.btn.red { background: var(--berry); color: #fff; box-shadow: inset 0 -5px 0 var(--berry-d), 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); }
.btn.purple { background: var(--purple); color: #fff; box-shadow: inset 0 -5px 0 var(--purple-d), 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); }
.btn.big { min-height: 64px; font-size: 24px; padding: 10px 26px; }
.btn.small { min-height: 40px; font-size: 16px; padding: 6px 12px; }
.btn[disabled] { opacity: .45; cursor: default; }
.tr { display: block; font: 700 13px/1.2 'Nunito', sans-serif; color: var(--ink-2); opacity: .85; }
.no-tr .tr { display: none; }

/* ── the HUD ───────────────────────────────────────────────────────────── */
.hud { position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-top { position: absolute; top: calc(8px + var(--safe-t)); left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r));
  display: flex; align-items: center; gap: 8px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.grow { flex: 1; }
.hb { min-width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 248, 236, .94); color: var(--ink);
  box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px var(--ink); font-size: 22px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; padding: 0 8px; }
.hb em { font: 800 11px/1 'Baloo 2', sans-serif; font-style: normal; margin-top: 2px; }
.hb:active { transform: translateY(3px); box-shadow: 0 0 0 3px var(--ink), 0 1px 0 3px var(--ink); }
.chip { height: 40px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(30, 42, 58, .78); color: #fff; font: 800 18px/1 'Baloo 2', sans-serif; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.chip small { font-size: 13px; opacity: .7; }
.chip.room { background: var(--purple); letter-spacing: .12em; }

.quests { position: absolute; top: calc(70px + var(--safe-t)); left: calc(10px + var(--safe-l)); width: min(330px, 46vw); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.qcard { background: rgba(255, 248, 236, .92); border-radius: 12px; padding: 7px 10px 7px 10px; box-shadow: 0 0 0 2px rgba(30, 42, 58, .5);
  display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; animation: slideIn .35s var(--pop); }
.qcard img { width: 36px; height: 36px; border-radius: 8px; image-rendering: pixelated; background: var(--paper-2); }
.qcard b { display: block; font: 800 15px/1.2 'Baloo 2', sans-serif; }
.qcard .prog { font: 800 15px/1 'Baloo 2', sans-serif; color: var(--sky-d); white-space: nowrap; }
.qcard.ready { box-shadow: 0 0 0 3px var(--sun-d); background: #FFF3C4; }
.qcard.ready .prog { color: var(--go); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

.place { position: absolute; top: 18%; left: 50%; transform: translate(-50%, 0); text-align: center; pointer-events: none; opacity: 0; transition: opacity .6s; }
.place.on { opacity: 1; }
.place b { display: block; font: 800 clamp(34px, 7vw, 64px)/1 'Baloo 2', sans-serif; color: #fff; text-shadow: 0 3px 0 var(--ink), 0 0 18px rgba(0, 0, 0, .35); -webkit-text-stroke: 1.5px var(--ink); }
.place span { display: inline-block; margin-top: 6px; font: 800 18px/1 'Baloo 2', sans-serif; color: #fff; background: rgba(30, 42, 58, .6); padding: 6px 12px; border-radius: 10px; }

.cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; }
.cross::before, .cross::after { content: ''; position: absolute; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55); border-radius: 1px; }
.cross::before { left: 10px; top: 2px; width: 2px; height: 18px; }
.cross::after { top: 10px; left: 2px; width: 18px; height: 2px; }
.touchmode .cross { display: none; }
/* soft lock (no pointer lock, e.g. Safe Exam Browser): the crosshair is the aim */
.softlock #gl { cursor: none; }
.label { position: absolute; left: 50%; top: calc(50% + 26px); transform: translateX(-50%); background: rgba(30, 42, 58, .82); color: #fff;
  border-radius: 12px; padding: 6px 14px; font: 800 20px/1.1 'Baloo 2', sans-serif; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 40px; }
.label .spk { font-size: 16px; opacity: .9; }
.label small { font: 700 13px 'Nunito', sans-serif; opacity: .8; }
.touchmode .label { top: auto; bottom: calc(var(--slot) + 30px + var(--safe-b)); }

.toasts { position: absolute; right: calc(12px + var(--safe-r)); top: calc(74px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.toast { background: rgba(30, 42, 58, .88); color: #fff; padding: 8px 14px; border-radius: 12px; font: 800 16px/1.2 'Baloo 2', sans-serif;
  display: flex; align-items: center; gap: 8px; animation: toastIn .3s var(--pop), toastOut .4s 2.6s forwards; max-width: 70vw; }
.toast img { width: 26px; height: 26px; image-rendering: pixelated; }
.toast.gold { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.toast.warn { background: var(--berry); }
.toast.item { background: rgba(46, 125, 50, .92); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

.newword { position: absolute; left: 50%; top: 26%; transform: translateX(-50%); background: var(--paper); border-radius: var(--r-lg);
  box-shadow: 0 0 0 4px var(--ink), 0 8px 0 4px var(--ink); padding: 14px 22px 12px; text-align: center; animation: nwIn .5s var(--pop); min-width: 220px; pointer-events: auto; }
.newword .k { font: 800 14px/1 'Baloo 2', sans-serif; letter-spacing: .12em; color: var(--go); text-transform: uppercase; }
.newword img { width: 72px; height: 72px; image-rendering: pixelated; display: block; margin: 8px auto 4px; }
.newword .em { font-size: 56px; line-height: 72px; display: block; }
.newword b { font: 800 34px/1.05 'Baloo 2', sans-serif; display: block; }
.newword p { margin: 4px 0 0; font-size: 16px; color: var(--ink-2); }
@keyframes nwIn { from { opacity: 0; transform: translate(-50%, 20px) scale(.7); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

.hotbar { position: absolute; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%); display: flex; gap: 4px;
  background: rgba(30, 42, 58, .72); padding: 5px; border-radius: 14px; box-shadow: 0 0 0 3px rgba(30, 42, 58, .5); }
.slot { width: var(--slot); height: var(--slot); border-radius: 9px; background: rgba(255, 255, 255, .14); position: relative; display: flex; align-items: center; justify-content: center; }
.slot img { width: 78%; height: 78%; image-rendering: pixelated; pointer-events: none; }
.slot i { position: absolute; left: 4px; top: 1px; font: 800 11px 'Baloo 2', sans-serif; font-style: normal; color: rgba(255, 255, 255, .75); }
.slot.on { background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 3px var(--sun), 0 0 0 5px var(--ink); transform: translateY(-4px); }
.slot.on i { color: var(--ink); }
.slot.lock img { filter: grayscale(1) brightness(.6); }
.hotname { position: absolute; left: 50%; bottom: calc(var(--slot) + 26px + var(--safe-b)); transform: translateX(-50%); color: #fff;
  font: 800 22px/1 'Baloo 2', sans-serif; text-shadow: 0 2px 0 var(--ink), 0 0 10px rgba(0, 0, 0, .5); pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.touchmode .hotname { bottom: calc(var(--slot) + 80px + var(--safe-b)); }

/* touch controls */
.touch { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.pad { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: auto; touch-action: none; }
.joy { position: absolute; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5); pointer-events: none; }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.tb { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 248, 236, .82); color: var(--ink); font: 800 30px/1 'Baloo 2', sans-serif;
  box-shadow: 0 0 0 3px rgba(30, 42, 58, .7), 0 4px 0 3px rgba(30, 42, 58, .6); pointer-events: auto; touch-action: none; }
.tb.down, .tb:active { background: #fff; transform: translateY(3px); }
.t-jump { right: calc(22px + var(--safe-r)); bottom: calc(var(--slot) + 44px + var(--safe-b)); }
.t-down { right: calc(104px + var(--safe-r)); bottom: calc(var(--slot) + 36px + var(--safe-b)); width: 60px; height: 60px; font-size: 24px; }
.t-fly { right: calc(28px + var(--safe-r)); bottom: calc(var(--slot) + 128px + var(--safe-b)); width: 60px; height: 60px; font-size: 26px; }
.t-fly.on { background: var(--sun); }
.t-cam { right: calc(104px + var(--safe-r)); bottom: calc(var(--slot) + 112px + var(--safe-b)); width: 52px; height: 52px; font-size: 22px; }

.ctp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(30, 42, 58, .86); color: #fff; border-radius: var(--r-lg);
  padding: 18px 26px; text-align: center; box-shadow: 0 0 0 3px #fff; }
.ctp b { display: block; font: 800 30px/1.1 'Baloo 2', sans-serif; }
.ctp span { display: block; margin-top: 6px; font-size: 15px; opacity: .85; }

/* names over heads */
.tags { position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap; text-align: center; will-change: transform; }
.tag .nm { display: inline-block; background: rgba(30, 42, 58, .7); color: #fff; font: 800 14px/1 'Baloo 2', sans-serif; padding: 4px 8px; border-radius: 8px; }
.tag .nm small { opacity: .75; font-weight: 700; }
.tag .mk { display: block; margin: 0 auto 4px; width: 34px; height: 34px; border-radius: 10px; font: 800 24px/34px 'Baloo 2', sans-serif; animation: bob 1.1s ease-in-out infinite; }
.tag .mk.new { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 3px var(--ink); }
.tag .mk.wait { background: rgba(255, 255, 255, .85); color: var(--ink-2); box-shadow: 0 0 0 3px rgba(30, 42, 58, .5); font-size: 18px; }
.tag .mk.done { background: var(--go); color: #fff; box-shadow: 0 0 0 3px var(--ink); }
.tag .bub { display: block; margin: 0 auto 6px; max-width: 220px; white-space: normal; background: #fff; color: var(--ink); border-radius: 14px; padding: 6px 12px;
  font: 800 16px/1.2 'Baloo 2', sans-serif; box-shadow: 0 0 0 3px var(--ink); position: relative; animation: pop .3s var(--pop); }
.tag .bub::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── dialog with a villager ────────────────────────────────────────────── */
.dialog { position: fixed; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%); width: min(780px, calc(100vw - 20px));
  background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 4px var(--ink), 0 8px 0 4px var(--ink); padding: 14px 16px 12px;
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; animation: dlgIn .35s var(--pop); z-index: 20; }
@keyframes dlgIn { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.dlg-face { width: 92px; height: 92px; border-radius: 16px; background: var(--paper-2); box-shadow: 0 0 0 3px var(--ink); image-rendering: pixelated; }
.dlg-who { font: 800 22px/1 'Baloo 2', sans-serif; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dlg-job { font: 800 14px/1 'Baloo 2', sans-serif; background: var(--sky-d); color: #fff; padding: 5px 9px; border-radius: 8px; }
.dlg-text { margin: 8px 0 10px; font: 800 clamp(19px, 2.6vw, 24px)/1.3 'Baloo 2', sans-serif; min-height: 2.6em; }
.dlg-text .w { transition: color .15s; color: rgba(30, 42, 58, .5); }
.dlg-text .w.lit { color: var(--ink); }
.dlg-text.you { color: var(--sky-d); }
.dlg-task { font-size: 14px; color: var(--ink-2); margin: -4px 0 8px; }
.dlg-acts { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dlg-acts .again { margin-left: auto; }
.dlg-close { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border-radius: 10px; font-size: 22px; }

/* ── panels ────────────────────────────────────────────────────────────── */
.panel { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(12, 24, 40, .55); display: flex; align-items: center; justify-content: center; z-index: 30;
  padding: calc(10px + var(--safe-t)) calc(10px + var(--safe-r)) calc(10px + var(--safe-b)) calc(10px + var(--safe-l)); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.pcard { background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 4px var(--ink), 0 8px 0 4px var(--ink); width: min(880px, 100%);
  max-height: 100%; display: flex; flex-direction: column; overflow: hidden; animation: cardIn .3s var(--pop); }
.pcard.narrow { width: min(520px, 100%); }
@keyframes cardIn { from { transform: scale(.92); opacity: 0; } }
.phead { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px 18px; background: var(--wood); color: #fff;
  box-shadow: inset 0 -4px 0 var(--wood-d); }
.phead h2 { margin: 0; flex: 1; font: 800 26px/1.1 'Baloo 2', sans-serif; text-shadow: 0 2px 0 var(--wood-d); }
.phead h2 small { font: 700 15px 'Nunito', sans-serif; opacity: .9; margin-left: 6px; text-shadow: none; }
.pclose { width: 46px; height: 46px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 24px; font-weight: 800; box-shadow: 0 0 0 3px var(--ink), 0 3px 0 3px var(--ink); }
.pbody { padding: 14px 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 0; background: var(--paper-2); }
.tab { min-height: 42px; padding: 6px 14px; border-radius: 12px 12px 0 0; font: 800 16px/1 'Baloo 2', sans-serif; background: rgba(30, 42, 58, .08); color: var(--ink-2); }
.tab.on { background: var(--paper); color: var(--ink); box-shadow: 0 -3px 0 var(--sun) inset; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.card { background: #fff; border-radius: 14px; padding: 8px 6px 8px; text-align: center; box-shadow: 0 0 0 2px var(--line), 0 3px 0 2px var(--line); position: relative; min-height: 118px; }
.card:active { transform: translateY(2px); }
.card img, .card .em { width: 56px; height: 56px; image-rendering: pixelated; display: block; margin: 2px auto 4px; font-size: 42px; line-height: 56px; }
.card b { display: block; font: 800 16px/1.1 'Baloo 2', sans-serif; }
.card .n { position: absolute; right: 6px; top: 6px; background: var(--ink); color: #fff; border-radius: 8px; font: 800 13px/1 'Baloo 2', sans-serif; padding: 4px 6px; }
.card.locked { background: rgba(30, 42, 58, .06); box-shadow: 0 0 0 2px dashed var(--line); }
.card.locked img, .card.locked .em { filter: brightness(0) opacity(.18); }
.card.locked b { color: rgba(30, 42, 58, .35); }
.card.sel { box-shadow: 0 0 0 3px var(--sun-d), 0 3px 0 3px var(--sun-d); background: #FFF6D6; }
.card .lk { position: absolute; left: 6px; top: 6px; font-size: 14px; }

.book-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.meter { flex: 1; min-width: 180px; height: 22px; border-radius: 11px; background: rgba(30, 42, 58, .12); overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--go), var(--grass)); border-radius: 11px; transition: width .6s var(--ease); }
.sentence { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 0 0 2px var(--line); display: flex; gap: 12px; align-items: center; min-height: 76px; }
.sentence img, .sentence .em { width: 52px; height: 52px; image-rendering: pixelated; font-size: 40px; line-height: 52px; text-align: center; flex: none; }
.sentence b { font: 800 24px/1.1 'Baloo 2', sans-serif; display: block; }
.sentence p { margin: 2px 0 0; font-size: 17px; }

.recipes { display: grid; gap: 12px; }
.recipe { background: #fff; border-radius: 16px; padding: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: 0 0 0 2px var(--line); }
.recipe .ing { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--paper-2); border-radius: 10px; padding: 4px 8px; font: 800 15px/1 'Baloo 2', sans-serif; }
.pill img { width: 28px; height: 28px; image-rendering: pixelated; }
.pill.miss { background: #FDE2E2; color: var(--berry-d); }
.recipe .out { display: flex; align-items: center; gap: 6px; font: 800 20px/1 'Baloo 2', sans-serif; }
.recipe .out img { width: 48px; height: 48px; image-rendering: pixelated; }

.phr-group h3 { margin: 10px 0 8px; font: 800 18px/1 'Baloo 2', sans-serif; color: var(--ink-2); }
.phr { display: flex; flex-wrap: wrap; gap: 4px; }
.phr .btn { font-size: 17px; min-height: 46px; }

.mapwrap { position: relative; margin: 0 auto; width: min(100%, 560px); aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 3px var(--ink); background: #2F6FB0; }
.mapwrap canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.mapmark { position: absolute; transform: translate(-50%, -50%); font: 800 12px/1 'Baloo 2', sans-serif; white-space: nowrap; }
.mapmark.pl { background: rgba(255, 255, 255, .9); padding: 3px 6px; border-radius: 6px; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.mapmark.pl.locked { background: rgba(255, 255, 255, .55); color: rgba(30, 42, 58, .55); }
.mapmark.me { width: 22px; height: 22px; }
.mapmark.me::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--berry); -webkit-clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%); clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%); }
.mapmark.npc { width: 26px; height: 26px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 2px var(--ink); overflow: hidden; }
.mapmark.npc img { width: 100%; height: 100%; image-rendering: pixelated; }
.mapmark.npc .q { position: absolute; right: -8px; top: -10px; }
.mapmark.peer { width: 14px; height: 14px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 2px #fff; }

.form { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row label, .row .lab { min-width: 150px; font: 800 17px/1.2 'Baloo 2', sans-serif; }
.row input[type=range] { flex: 1; min-width: 160px; accent-color: var(--go); height: 34px; }
.seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.seg .btn { min-height: 42px; font-size: 16px; padding: 4px 12px; }
.seg .btn.on { background: var(--sun); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 2px var(--ink); }
.sw.on { box-shadow: 0 0 0 3px var(--sun), 0 0 0 6px var(--ink); }
.me-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: start; }
.doll { width: 150px; background: linear-gradient(#BFE3FF, #E8F5FF); border-radius: 16px; box-shadow: 0 0 0 3px var(--ink); padding: 12px; image-rendering: pixelated; }
.doll img { width: 100%; display: block; image-rendering: pixelated; }
.name-big { font: 800 28px/1.1 'Baloo 2', sans-serif; }
.code-in { font: 800 34px/1 'Baloo 2', sans-serif; letter-spacing: .25em; text-transform: uppercase; width: 100%; max-width: 330px; padding: 10px 14px;
  border-radius: 14px; border: 0; box-shadow: 0 0 0 3px var(--ink); background: #fff; color: var(--ink); text-align: center; -webkit-user-select: text; user-select: text; }
.code-big { font: 800 56px/1 'Baloo 2', sans-serif; letter-spacing: .18em; background: #fff; border-radius: 16px; padding: 12px 18px; display: inline-block; box-shadow: 0 0 0 3px var(--ink); }
.note { background: #EAF4FF; border-radius: 12px; padding: 10px 12px; font-size: 15px; color: var(--ink-2); }
.err { background: #FDE2E2; color: var(--berry-d); border-radius: 12px; padding: 10px 12px; }
.slots { display: grid; gap: 10px; }
.wslot { background: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: 0 0 0 2px var(--line); }
.wslot .info { flex: 1; min-width: 160px; }
.wslot b { font: 800 20px/1.1 'Baloo 2', sans-serif; display: block; }
.wslot span { font-size: 14px; color: var(--ink-2); }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.help-card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 0 0 2px var(--line); }
.help-card b { font: 800 18px/1.1 'Baloo 2', sans-serif; display: block; margin-bottom: 4px; }
.help-card kbd { display: inline-block; min-width: 26px; padding: 2px 6px; border-radius: 6px; background: var(--paper-2); box-shadow: 0 2px 0 var(--line); font: 800 14px 'Baloo 2', sans-serif; text-align: center; }

/* ── title screen ──────────────────────────────────────────────────────── */
.title { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(79, 168, 232, 0) 40%, rgba(20, 60, 100, .35)); padding: calc(64px + var(--safe-t)) 14px calc(14px + var(--safe-b)); overflow-y: auto; }
.title-bar { position: absolute; top: calc(10px + var(--safe-t)); left: calc(10px + var(--safe-l)); right: calc(10px + var(--safe-r)); height: 48px; display: flex; align-items: center; }
/* the academy account: "Sign in", or the character's face and name */
.title-bar .acct { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; max-width: 60vw; white-space: nowrap; }
.title-bar .acct span { overflow: hidden; text-overflow: ellipsis; }
.title-bar .acct img { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; flex-shrink: 0; }
.title-main { text-align: center; max-width: 820px; width: 100%; }
.logo { margin: 0 0 6px; display: flex; justify-content: center; flex-wrap: nowrap; gap: clamp(3px, .7vw, 8px); }
.logo .lb { width: clamp(28px, 7.2vw, 64px); height: clamp(28px, 7.2vw, 64px); flex: none; background-size: 100% 100%; image-rendering: pixelated; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font: 800 clamp(20px, 4.8vw, 44px)/1 'Baloo 2', sans-serif; color: #fff; padding-top: .08em;
  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 4px 0 var(--ink);
  box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink); animation: lbIn .6s var(--pop) both; }
@keyframes lbIn { from { transform: translateY(-40px) rotate(-8deg); opacity: 0; } }
.title-tag { margin: 12px 0 18px; font: 800 clamp(18px, 3vw, 26px)/1.2 'Baloo 2', sans-serif; color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 14px rgba(0, 0, 0, .35); }
.title-menu { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.title-menu .btn.big { width: min(420px, 90vw); }
.title-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.ollie { position: absolute; right: calc(14px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.owl { width: clamp(80px, 12vw, 120px); animation: owl 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes owl { 50% { transform: rotate(-4deg) translateY(-3px); } }
.ollie-say { order: -1; max-width: 230px; background: #fff; border-radius: 16px; padding: 10px 14px; font: 800 16px/1.25 'Baloo 2', sans-serif; box-shadow: 0 0 0 3px var(--ink); margin-bottom: 70px; }
@media (max-height: 560px) { .ollie { display: none; } .title { justify-content: flex-start; } }
@media (max-width: 640px) { .ollie-say { display: none; } .ollie { opacity: .92; } }

/* ── loading ── */
.loading { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(#4FA8E8, #9ED6FF); z-index: 40; }
.load-card { text-align: center; width: min(440px, 90vw); }
.load-cube { position: relative; width: 70px; height: 70px; margin: 0 auto 18px; animation: spin 1.6s linear infinite; }
.load-cube i { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 10px; }
.load-cube i:nth-child(1) { background: var(--grass); transform: translate(-14px, -8px); box-shadow: 0 0 0 3px var(--ink); }
.load-cube i:nth-child(2) { background: #8A6244; transform: translate(14px, 8px); box-shadow: 0 0 0 3px var(--ink); animation: hop 1.6s ease-in-out infinite; }
.load-cube i:nth-child(3) { background: var(--sun); transform: translate(0, 0) scale(.5); box-shadow: 0 0 0 3px var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hop { 50% { transform: translate(14px, -10px); } }
.load-t { font: 800 26px/1.1 'Baloo 2', sans-serif; color: #fff; text-shadow: 0 2px 0 var(--ink); margin: 0 0 12px; }
.load-bar { height: 24px; border-radius: 12px; background: rgba(255, 255, 255, .4); box-shadow: 0 0 0 3px var(--ink); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--grass); box-shadow: inset 0 -5px 0 var(--go); transition: width .15s; }
.load-tip { color: #fff; font-size: 17px; margin-top: 14px; text-shadow: 0 1px 0 var(--ink); min-height: 2.6em; }

.fatal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; background: #4FA8E8; z-index: 60; padding: 20px; text-align: center; }
.fatal .pcard { padding: 22px; }
.fatal-static { position: fixed; top: 0; right: 0; bottom: 0; left: 0; margin: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #4FA8E8; color: #fff; }

@media (max-width: 720px) {
  :root { --slot: min(44px, calc((100vw - 60px) / 9)); }
  .hb { min-width: 46px; height: 46px; font-size: 20px; padding: 0 6px; }
  .hb em { display: none; }
  .chip { height: 36px; font-size: 16px; padding: 0 9px; }
  .quests { width: min(270px, 62vw); top: calc(64px + var(--safe-t)); }
  .qcard { grid-template-columns: 28px 1fr auto; padding: 5px 8px; }
  .qcard img { width: 28px; height: 28px; }
  .qcard b { font-size: 13px; }
  .qcard .tr { font-size: 11px; }
  .dialog { grid-template-columns: 64px 1fr; padding: 12px; }
  .dlg-face { width: 64px; height: 64px; }
  .me-wrap { grid-template-columns: 1fr; }
  .doll { margin: 0 auto; width: 130px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .card { min-height: 104px; }
  .card img, .card .em { width: 46px; height: 46px; font-size: 34px; line-height: 46px; }
  .card b { font-size: 14px; }
  .phead h2 { font-size: 22px; }
}
@media (max-height: 460px) {
  .quests { display: none; }
  .touchmode .quests.peek { display: flex; }
  .dialog { grid-template-columns: 56px 1fr; padding: 10px; }
  .dlg-face { width: 56px; height: 56px; }
  .dlg-text { margin: 4px 0 6px; font-size: 18px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo .lb, .owl, .tag .mk, .load-cube { animation: none; }
}

/* The touch pad fills the screen, so everything tappable sits above it. */
.touch { z-index: 1; }
.hud-top, .hotbar, .quests, .label, .newword, .toasts, .ctp, .hotname, .place { z-index: 5; }
.touch .tb { z-index: 6; }
@media (max-width: 480px) {
  .hud-top { gap: 5px; left: calc(6px + var(--safe-l)); right: calc(6px + var(--safe-r)); }
  .hb { min-width: 40px; width: 40px; height: 40px; font-size: 18px; padding: 0; border-radius: 11px; }
  .chip { height: 34px; padding: 0 7px; font-size: 15px; border-radius: 10px; }
  .chip small { display: none; }
  .recipe { display: grid; grid-template-columns: auto 1fr; }
  .recipe > span { display: none; }
  .recipe .ing { grid-column: 1 / -1; }
  .recipe .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-height: 520px) {
  .title { padding-top: calc(56px + var(--safe-t)); }
  .logo .lb { width: min(7.2vw, 11vh); height: min(7.2vw, 11vh); font-size: min(4.8vw, 7.4vh); }
  .title-tag { margin: 6px 0 8px; font-size: 17px; }
  .btn.big { min-height: 50px; font-size: 20px; }
  .title-menu .btn.big { width: min(360px, 60vw); }
  .title-row .btn { min-height: 42px; font-size: 16px; padding: 6px 12px; }
  .phead { padding: 6px 10px 6px 14px; }
  .phead h2 { font-size: 20px; }
  .pclose { width: 40px; height: 40px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-top: 6px; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
  .tab { flex: none; min-height: 38px; }
  .pbody { padding: 10px 12px 12px; }
  .book-top { margin-bottom: 6px; }
  .sentence { min-height: 0; padding: 6px 10px; margin-bottom: 8px; }
  .newword { top: 12%; padding: 8px 16px 8px; }
  .newword img, .newword .em { width: 48px; height: 48px; font-size: 38px; line-height: 48px; }
  .newword b { font-size: 26px; }
  .place { top: 10%; }
  .t-jump { bottom: calc(var(--slot) + 30px + var(--safe-b)); }
  .t-fly { bottom: calc(var(--slot) + 108px + var(--safe-b)); }
  .t-cam { bottom: calc(var(--slot) + 96px + var(--safe-b)); }
}
.phead, .tabs { flex: none; }
.pbody { flex: 1 1 auto; min-height: 0; }
@media (max-height: 520px) { .title-tag { margin-top: 14px; } }

/* ══════════════════════════════════════════════════════════════════════════
   2026-09-24 — pause screen, inventory screen, survival HUD
   The pause screen follows Minecraft Bedrock: a compact column of stone
   buttons with a row of square icon buttons under it, your player on the
   right, "Game is paused" in the corner. The game stays visible behind it.
   ══════════════════════════════════════════════════════════════════════════ */
/* The whole pause screen is one centred unit: the buttons on the left, you
   on the right, both sized from the height of the screen so it reads the
   same on a phone, a tablet and a classroom projector. (Earlier it hugged
   the top-left corner at phone size, with the player far off to the right.)
   Every clamp() has a plain value before it for browsers without clamp. */
.panel.pz-back { background: rgba(8, 14, 24, .62); background: radial-gradient(ellipse at center, rgba(8, 14, 24, .42), rgba(8, 14, 24, .74)); display: block; padding: 0; }
.pz { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(16px + var(--safe-t)) calc(18px + var(--safe-r)) calc(16px + var(--safe-b)) calc(18px + var(--safe-l)); animation: fade .18s; touch-action: pan-y; }
.pz-card { width: 100%; max-width: 1000px; margin: auto; display: -webkit-box; display: flex; align-items: center; justify-content: center; gap: 48px; gap: clamp(20px, 4.5vw, 64px); }
.pz-left { -webkit-box-flex: 0; flex: 0 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; gap: clamp(8px, 1.5vh, 16px); }
.pz-right { -webkit-box-flex: 0; flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pz-logo { display: flex; gap: 3px; }
.pz-logo .lb.sm { width: 30px; height: 30px; width: clamp(24px, 3.6vh, 38px); height: clamp(24px, 3.6vh, 38px); font-size: 19px; font-size: clamp(15px, 2.3vh, 24px);
  border-radius: 4px; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 2px var(--ink); animation: none;
  background-size: 100% 100%; image-rendering: pixelated; display: flex; align-items: center; justify-content: center; color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 800; padding-top: .08em;
  text-shadow: 1px 0 0 var(--ink), -1px 0 0 var(--ink), 0 1px 0 var(--ink), 0 -1px 0 var(--ink), 0 2px 0 var(--ink); flex: none; }
.pz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: #fff; font: 800 16px/1.2 'Baloo 2', sans-serif; font-size: clamp(14px, 1.9vh, 19px); text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.pz-meta b { font-size: 22px; font-size: clamp(18px, 2.8vh, 28px); width: 100%; }
.mode-b { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 8px; padding: 2px 9px; font: 800 14px/1.3 'Baloo 2', sans-serif; text-shadow: none; box-shadow: 0 0 0 2px var(--ink); }
.pz-btns { display: flex; flex-direction: column; gap: 10px; gap: clamp(7px, 1.2vh, 12px); }
/* stone buttons */
.mcb { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; min-height: clamp(44px, 6.6vh, 66px); padding: 6px 14px; border-radius: 7px;
  background: #D9D9D6; color: #222; font: 800 20px/1.1 'Baloo 2', 'Nunito', sans-serif; font-size: clamp(17px, 2.4vh, 25px); letter-spacing: .01em;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), inset 0 -4px 0 #8C8C88, 0 0 0 2px #1B1B1D; transition: background .08s, color .08s; }
.mcb:hover, .mcb:focus-visible { background: #4C9A2E; color: #fff; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 #2F6A1B, 0 0 0 2px #1B1B1D; outline: none; }
.mcb:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 #8C8C88, 0 0 0 2px #1B1B1D; }
.mcb.primary { background: #4C9A2E; color: #fff; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 #2F6A1B, 0 0 0 2px #1B1B1D; }
.mcb.primary:hover, .mcb.primary:focus-visible { background: #5CB23A; }
.mcb.small { width: auto; min-height: 42px; min-height: clamp(38px, 5vh, 50px); font-size: 16px; font-size: clamp(14px, 1.9vh, 19px); padding: 4px 12px; }
/* the icon row: as wide as the buttons, every icon the same size */
.pz-icons { display: flex; gap: 8px; gap: clamp(6px, 1vh, 10px); }
.mci { -webkit-box-flex: 1; flex: 1 1 0; min-width: 0; height: 64px; height: clamp(52px, 8.2vh, 84px); border-radius: 7px; background: #D9D9D6; color: #222;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .75), inset 0 -4px 0 #8C8C88, 0 0 0 2px #1B1B1D; }
.mci .ic { font-size: 24px; font-size: clamp(19px, 3vh, 30px); line-height: 1; }
.mci .lb2 { font: 800 11px/1 'Baloo 2', sans-serif; font-size: clamp(10px, 1.35vh, 13px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.mci:hover, .mci:focus-visible { background: #4C9A2E; color: #fff; outline: none; }
.mci:active { transform: translateY(2px); }
.pz-save { color: rgba(255, 255, 255, .88); font: 700 14px/1.2 'Nunito', sans-serif; font-size: clamp(12px, 1.6vh, 16px); min-height: 16px; }
.pz-save.bad { color: #FFD0D0; font-weight: 800; }
.pz-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pz-paused { color: #fff; background: rgba(0, 0, 0, .55); padding: 7px 12px; border-radius: 7px; font: 800 15px/1 'Baloo 2', sans-serif; font-size: clamp(13px, 1.8vh, 18px); }
.pz-doll { display: flex; align-items: flex-end; justify-content: center; }
.pz-doll img { height: 340px; height: clamp(180px, 42vh, 460px); max-width: 100%; image-rendering: pixelated; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .35)); }
.pz-name { color: #fff; font: 800 22px/1 'Baloo 2', sans-serif; font-size: clamp(17px, 2.6vh, 28px); text-shadow: 0 2px 0 rgba(0, 0, 0, .6); text-align: center; }
.pz-right > .mcb { width: 100%; max-width: 300px; }
/* phones held upright: one column, the player shrinks to a line */
@media (max-width: 640px) and (min-height: 461px) {
  .pz-card { flex-direction: column; align-items: stretch; gap: 16px; max-width: 480px; }
  .pz-left { flex: none; }
  .pz-right { flex: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; background: rgba(0, 0, 0, .28); border-radius: 12px; padding: 10px; }
  .pz-doll { display: none; }
  .pz-top { justify-content: flex-start; }
  .pz-right > .mcb { width: auto; }
  .mci .lb2 { font-size: 10px; }
}
/* phones on their side: side by side, smaller, no logo, no icon captions */
@media (max-height: 460px) {
  .pz { padding-top: calc(8px + var(--safe-t)); padding-bottom: calc(8px + var(--safe-b)); }
  .pz-card { gap: 20px; }
  .pz-left { flex-basis: 380px; gap: 6px; }
  .pz-right { flex-basis: 220px; gap: 6px; }
  .pz-logo { display: none; }
  .pz-meta b { font-size: 18px; }
  .mcb { min-height: 38px; font-size: 16px; }
  .pz-btns { gap: 6px; }
  .mci { height: 44px; }
  .mci .ic { font-size: 19px; }
  .mci .lb2 { display: none; }
  .pz-doll img { height: 44vh; }
  .pz-save { display: none; }
}

/* ── the inventory screen ── */
.pcard.inv { width: min(940px, 100%); }
.pfoot { flex: none; background: var(--paper-2); box-shadow: inset 0 3px 0 var(--line); padding: 8px 12px 10px; }
.strip-t { font: 700 13px/1.2 'Nunito', sans-serif; color: var(--ink-2); margin-bottom: 6px; }
.strip { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x; background: rgba(30, 42, 58, .72); padding: 5px; border-radius: 12px; width: max-content; max-width: 100%; }
.strip .slot.on { transform: none; }
.slot em { position: absolute; right: 3px; bottom: 1px; font: 800 13px/1 'Baloo 2', sans-serif; font-style: normal; color: #fff; text-shadow: 1px 1px 0 var(--ink), -1px 0 0 var(--ink), 0 -1px 0 var(--ink); }
.slot.clear { color: #fff; font-size: 20px; background: rgba(217, 58, 74, .55); }
.slot.more { color: #fff; font: 800 26px/1 'Baloo 2', sans-serif; background: rgba(255, 255, 255, .22); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chipbtn { min-height: 40px; padding: 6px 12px; border-radius: 10px; background: #fff; color: var(--ink-2); font: 800 15px/1 'Baloo 2', sans-serif; box-shadow: 0 0 0 2px var(--line); }
.chipbtn small { font: 700 12px 'Nunito', sans-serif; opacity: .75; }
.chipbtn.on { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.card .eat { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; background: var(--go); color: #fff; border-radius: 8px; padding: 4px 8px;
  font: 800 12px/1 'Baloo 2', sans-serif; box-shadow: 0 0 0 2px var(--ink); }
.grid .card { margin-bottom: 4px; }
.vline { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; font: 800 17px/1 'Baloo 2', sans-serif; }
.empty-bag { text-align: center; padding: 20px 10px; }
.empty-bag .em { font-size: 48px; display: block; }
.empty-bag b { font: 800 22px/1.2 'Baloo 2', sans-serif; display: block; }
.empty-bag p { margin: 6px 0 0; color: var(--ink-2); }
.craft-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.craft-top .st { font: 800 20px/1.1 'Baloo 2', sans-serif; flex: 1; }
.recipe { opacity: .72; }
.recipe.can { opacity: 1; box-shadow: 0 0 0 2px var(--go), 0 3px 0 2px var(--go-d); }
.recipe .out em { font-style: normal; background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 5px; font-size: 14px; }
.recipe .btn { margin: 0; }
.boxwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.boxcol h3 { margin: 0 0 8px; font: 800 18px/1 'Baloo 2', sans-serif; }
.mapmark.home { font-size: 16px; line-height: 1; }
@media (max-width: 640px) { .boxwrap { grid-template-columns: 1fr; } }

/* ── hearts, food, air ── */
.vitals { position: absolute; left: 50%; bottom: calc(var(--slot) + 34px + var(--safe-b)); transform: translateX(-50%); width: calc(var(--slot) * 9 + 46px); max-width: calc(100vw - 16px);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 2px 8px; pointer-events: none; z-index: 5; }
.vrow { display: flex; gap: 1px; }
.vrow.hearts { grid-column: 1; grid-row: 2; }
.vrow.air { grid-column: 2; grid-row: 1; justify-content: flex-end; }
.vrow.foods { grid-column: 2; grid-row: 2; justify-content: flex-end; flex-direction: row-reverse; }
.vrow.armor { grid-column: 1; grid-row: 1; }
.u { position: relative; width: min(20px, calc((100vw - 40px) / 22)); height: min(20px, calc((100vw - 40px) / 22)); flex: none; }
.u b { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: 100% 100%; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.u.e b { filter: grayscale(1) brightness(.35) opacity(.55); }
.u.h b { -webkit-clip-path: inset(0 50% 0 0); clip-path: inset(0 50% 0 0); }
.vrow.foods .u.h b { -webkit-clip-path: inset(0 0 0 50%); clip-path: inset(0 0 0 50%); }
.vitals.low .hearts .u { animation: shake .5s ease-in-out infinite; }
.vitals.low .hearts .u:nth-child(2n) { animation-delay: .12s; }
@keyframes shake { 50% { transform: translateY(-2px); } }
.hurtfx { position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 4; opacity: 0; box-shadow: inset 0 0 120px 30px rgba(220, 20, 30, .6); }
.hurtfx.on { animation: hurt .45s ease-out; }
@keyframes hurt { 0% { opacity: 1; } 100% { opacity: 0; } }
.sleepfx { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 45; background: #0B1026; opacity: 0; pointer-events: none; }
.sleepfx.on { animation: sleep 3.3s ease-in-out forwards; }
@keyframes sleep { 0% { opacity: 0; } 35% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; } }
.death { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(ellipse at center, rgba(150, 20, 30, .45), rgba(60, 0, 10, .75)); animation: fade .5s; }
.death-card { width: min(380px, 100%); text-align: center; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.death-card .em { font-size: 64px; line-height: 1; }
.death-card h2 { margin: 0; font: 800 40px/1 'Baloo 2', sans-serif; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.death-card p { margin: 0; font-size: 17px; }
.death-card .tr { color: #fff; opacity: .85; }

/* ── new island: game modes ── */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modecard { background: #fff; border-radius: 14px; padding: 12px 10px; text-align: center; box-shadow: 0 0 0 2px var(--line), 0 4px 0 2px var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.modecard .mi { font-size: 34px; line-height: 1.1; }
.modecard b { font: 800 20px/1 'Baloo 2', sans-serif; }
.modecard p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.modecard p.tr { margin-top: 2px; font-size: 12px; }
.modecard.on { background: #FFF6D6; box-shadow: 0 0 0 3px var(--sun-d), 0 4px 0 3px var(--sun-d); }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } .modecard { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 6px 10px; } .modecard p { width: 100%; margin: 0; } }
@media (max-height: 460px) { .vitals { bottom: calc(var(--slot) + 18px + var(--safe-b)); } }
@media (max-width: 720px) { .touchmode { --slot: min(44px, calc((100vw - 72px) / 10)); } }
/* menus open: the HUD steps away */
.menu-open .hud, .menu-open .tags { visibility: hidden; }
/* touch: the name label sits above hearts and food */
.touchmode .label { bottom: calc(var(--slot) + 58px + var(--safe-b)); }
/* short screens (phones on their side): more room for the list itself */
@media (max-height: 460px) {
  .pcard.inv .phead { padding: 4px 8px 4px 12px; }
  .pcard.inv .phead h2 { font-size: 18px; }
  .pcard.inv .pclose { width: 36px; height: 36px; font-size: 20px; }
  .pcard.inv .tab { min-height: 34px; padding: 4px 10px; font-size: 14px; }
  .pfoot { padding: 4px 8px 6px; }
  .strip-t { display: none; }
  .strip .slot { width: 38px; height: 38px; }
  .craft-top { margin-bottom: 6px; }
  .craft-top .st { font-size: 16px; }
  .chipbtn { min-height: 34px; font-size: 13px; }
  .recipe { padding: 6px 8px; gap: 8px; }
  .recipe .out { font-size: 16px; }
  .recipe .out img { width: 32px; height: 32px; }
  .pill img { width: 22px; height: 22px; }
  .pill { font-size: 13px; }
  .vline { margin-bottom: 6px; font-size: 15px; }
}
@media (min-width: 760px) and (max-height: 520px) { .recipes { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* ══════════════════════════════════════════════════════════════════════════
   2026-09-25 — the campaign, missions, players, magic stones, the sky
   ══════════════════════════════════════════════════════════════════════════ */
.btn.camp { background: var(--purple); color: #fff; box-shadow: inset 0 -5px 0 var(--purple-d), 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); }
.chip.sky { cursor: pointer; }
.chip.sky b { font-weight: 800; }

/* the arrow to the next mission */
.way { position: absolute; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: min(60vw, 420px);
  background: rgba(30, 42, 58, .82); color: #fff; border-radius: 12px; padding: 6px 12px 6px 8px; font: 800 16px/1.1 'Baloo 2', sans-serif; pointer-events: none; z-index: 5;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.way .arr { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--sun); color: var(--ink);
  font-size: 18px; flex: none; transition: transform .15s linear; }
.way b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.menu-open .way { visibility: hidden; }
/* Between phones and wide screens the chips (stars, words, sky, room code)
   reach the middle of the top bar, so the arrow moves to the bar's right
   end; on narrow screens it gets a row of its own under the bar. */
@media (min-width: 901px) and (max-width: 1399px) { .way { left: auto; right: calc(12px + var(--safe-r)); transform: none; max-width: min(38vw, 400px); } }
@media (max-width: 900px) { .way { top: calc(62px + var(--safe-t)); font-size: 14px; max-width: 72vw; } .way .arr { width: 26px; height: 26px; font-size: 15px; } }
@media (max-width: 900px) { .quests { top: calc(108px + var(--safe-t)); } }

/* the mission journal */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-bottom: 10px; }
.chap { background: #fff; border-radius: 12px; padding: 6px 4px; box-shadow: 0 0 0 2px var(--line); display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 64px; }
.chap .ci { font-size: 22px; line-height: 1.1; }
.chap b { font: 800 15px/1 'Baloo 2', sans-serif; }
.chap small { font: 700 12px/1 'Nunito', sans-serif; color: var(--ink-2); }
.chap.on { background: var(--sun); box-shadow: 0 0 0 3px var(--ink); }
.chap.done { background: #DFF4DC; }
.chap.done.on { background: var(--sun); }
.chap.locked { opacity: .55; }
.chap-h { margin: 4px 0 8px; font: 800 20px/1.2 'Baloo 2', sans-serif; }
.mlist { display: grid; gap: 8px; }
.mrow { background: #fff; border-radius: 14px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; box-shadow: 0 0 0 2px var(--line); }
.mrow.done { background: #EEF8EC; opacity: .8; }
.mrow.locked, .mrow.later { opacity: .6; }
.mrow.ready { box-shadow: 0 0 0 3px var(--sun-d); background: #FFF6D6; }
.mrow.new { box-shadow: 0 0 0 2px var(--sun-d); }
.mface { width: 40px; height: 40px; border-radius: 10px; image-rendering: pixelated; background: var(--paper-2); flex: none; }
.mtext { flex: 1; min-width: 0; }
.mtext b { display: block; font: 800 16px/1.2 'Baloo 2', sans-serif; }
.mtext small { display: block; font: 700 13px/1.2 'Nunito', sans-serif; color: var(--ink-2); margin-top: 2px; }
.mst { font-size: 22px; flex: none; }
.mrow .chipbtn { flex: none; }
@media (max-width: 480px) { .mrow { flex-wrap: wrap; } .mrow .chipbtn { margin-left: 50px; } }

/* players in the room */
.room-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font: 800 18px/1 'Baloo 2', sans-serif; }
.code-mid { font: 800 30px/1 'Baloo 2', sans-serif; letter-spacing: .16em; background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 0 0 3px var(--ink); }
.plist { display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 6px 10px; box-shadow: 0 0 0 2px var(--line); }
.prow img { width: 40px; height: 40px; border-radius: 10px; image-rendering: pixelated; background: var(--paper-2); flex: none; }
.pname { flex: 1; min-width: 0; }
.pname b { display: block; font: 800 18px/1.1 'Baloo 2', sans-serif; }
.pname small { font: 700 13px/1.2 'Nunito', sans-serif; color: var(--ink-2); }
.prow .btn { margin: 0; }
.pz-players { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 320px; }
.pz-players span { background: rgba(0, 0, 0, .55); color: #fff; border-radius: 6px; padding: 4px 8px; font: 800 13px/1 'Baloo 2', sans-serif; }
.pz-players span.me { background: var(--go); }
@media (max-width: 560px) and (min-height: 441px) { .pz-players { max-width: 100%; justify-content: flex-start; width: 100%; } }

/* magic stones and the map */
.travel { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.travel .card .em { font-size: 40px; }
.mapmark.stone { width: 26px; height: 26px; border-radius: 50%; background: #3CC8E8; color: #fff; font-size: 14px; box-shadow: 0 0 0 2px var(--ink); display: flex; align-items: center; justify-content: center; }
.mapmark.stone.locked { background: rgba(255, 255, 255, .6); color: var(--ink-2); }
.mapmark.goal { font-size: 20px; animation: bob 1s ease-in-out infinite; }
.mapmark.peer span { position: absolute; left: 16px; top: -4px; background: var(--purple); color: #fff; border-radius: 5px; padding: 1px 4px; font: 800 10px/1.2 'Baloo 2', sans-serif; white-space: nowrap; }

/* quiz answers */
.btn.qopt { font-size: 19px; min-width: 120px; }
.btn.qopt.wrong { background: #FDE2E2; color: var(--berry-d); text-decoration: line-through; }

/* graduation */
.grad { display: grid; gap: 12px; justify-items: center; text-align: center; }
.diploma { background: #FFFDF4; border-radius: 16px; padding: 18px 16px; box-shadow: 0 0 0 4px #C9A04A, 0 0 0 7px var(--ink); max-width: 420px; }
.diploma img { width: 72px; height: 72px; image-rendering: pixelated; }
.diploma h3 { margin: 6px 0 2px; font: 800 26px/1.1 'Baloo 2', sans-serif; color: var(--purple-d); }
.diploma b { display: block; font: 800 30px/1.1 'Baloo 2', sans-serif; margin: 4px 0; }
.diploma p { margin: 4px 0; }
.diploma .stars { font: 800 22px/1 'Baloo 2', sans-serif; margin-top: 6px; }
.seg .btn[disabled] { opacity: .45; }

/* ══════════════════════════════════════════════════════════════════════
   2026-09-26: Minecraft's rules — crafting grid, oven, armour, trading,
   experience, durability
   ══════════════════════════════════════════════════════════════════════ */
.xpbar { position: absolute; left: 50%; bottom: calc(var(--slot) + 21px + var(--safe-b)); transform: translateX(-50%); width: calc(var(--slot) * 9 + 32px); max-width: calc(100vw - 16px);
  height: 7px; border-radius: 4px; background: rgba(12, 20, 12, .72); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55); pointer-events: none; z-index: 5; }
.xpbar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(#B8F048, #6CC830); transition: width .25s var(--ease); }
.xpbar b { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); font: 800 15px/1 'Baloo 2', sans-serif; color: #B8F048;
  text-shadow: 0 1px 0 #1E2A1A, 1px 0 0 #1E2A1A, -1px 0 0 #1E2A1A, 0 -1px 0 #1E2A1A; }
.menu-open .xpbar { visibility: hidden; }
s.dur { position: absolute; left: 12%; right: 12%; bottom: 6%; height: 3px; background: #1A1A1A; border-radius: 2px; overflow: hidden; pointer-events: none; }
s.dur i { display: block; height: 100%; }
.card s.dur { left: 18%; right: 18%; bottom: 8px; height: 4px; }
.cross.draw::before, .cross.draw::after { background: #FFE27A; }
.t-sneak { right: calc(104px + var(--safe-r)); bottom: calc(var(--slot) + 176px + var(--safe-b)); width: 52px; height: 52px; font-size: 22px; }
.t-sneak.on { background: var(--sun); }

/* one slot: a picture, a count, a durability bar */
.cs { position: relative; width: 58px; height: 58px; border-radius: 10px; background: #8B8B8B; box-shadow: inset 2px 2px 0 #555, inset -2px -2px 0 #C6C6C6;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cs img { width: 76%; height: 76%; image-rendering: pixelated; pointer-events: none; }
.cs em { position: absolute; right: 4px; bottom: 1px; font: 800 15px/1 'Baloo 2', sans-serif; font-style: normal; color: #fff; text-shadow: 1px 1px 0 #3A3A3A; pointer-events: none; }
.cs .ph { font-size: 22px; opacity: .45; }
.cs.empty { background: #8B8B8B; }
.cs.pick { box-shadow: 0 0 0 3px var(--sun), inset 2px 2px 0 #555, inset -2px -2px 0 #C6C6C6; background: #A8A08A; }
.cs.dim { opacity: .45; }
.cs.out { width: 70px; height: 70px; }
.cs.out.ready { background: #9AA88A; box-shadow: 0 0 0 3px var(--go), inset 2px 2px 0 #555, inset -2px -2px 0 #C6C6C6; }
.cs:active { transform: translateY(1px); }

.craftwrap { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 16px; align-items: start; }
.carea { background: #C6C6C6; border-radius: 14px; padding: 12px; box-shadow: inset 0 0 0 2px #FFF, 0 0 0 2px #555; display: grid; gap: 10px; justify-items: start; }
.carea .st { font: 800 18px/1 'Baloo 2', sans-serif; }
.carea .st small { font-size: 14px; opacity: .7; }
.grow-row { display: flex; align-items: center; gap: 10px; }
.cgrid { display: grid; gap: 4px; }
.cgrid.w2 { grid-template-columns: repeat(2, 58px); }
.cgrid.w3 { grid-template-columns: repeat(3, 58px); }
.carrow { font: 800 32px/1 'Baloo 2', sans-serif; color: #555; }
.cinfo { display: grid; gap: 4px; max-width: 290px; font-size: 15px; }
.cinfo b { font: 800 18px/1.1 'Baloo 2', sans-serif; }
.cinfo .warn { color: var(--berry-d); }
.cbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.rbook { min-width: 0; display: grid; gap: 8px; align-content: start; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; max-height: 330px; overflow-y: auto; padding: 4px; }
.rtile { position: relative; height: 54px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 2px var(--line); display: flex; align-items: center; justify-content: center; }
.rtile img { width: 70%; height: 70%; image-rendering: pixelated; opacity: .42; filter: grayscale(.6); }
.rtile.can { background: #E6F6DF; box-shadow: 0 0 0 2px #7CC061; }
.rtile.can img { opacity: 1; filter: none; }
.rtile.big { background: #F4EFE6; }
.rtile.sel { box-shadow: 0 0 0 3px var(--sun-d); }
.rtile em { position: absolute; right: 3px; bottom: 1px; font: 800 12px/1 'Baloo 2', sans-serif; font-style: normal; }
.rtile .tb3 { position: absolute; left: 3px; top: 2px; font: 800 10px/1 'Baloo 2', sans-serif; font-style: normal; color: var(--wood-d); }
.bagstrip { margin-top: 14px; }
.bslots { display: flex; flex-wrap: wrap; gap: 4px; background: #C6C6C6; padding: 6px; border-radius: 12px; box-shadow: inset 0 0 0 2px #FFF, 0 0 0 2px #555; }
.bslots .note { margin: 0; }

.furnace { display: flex; align-items: center; gap: 18px; background: #C6C6C6; border-radius: 14px; padding: 16px 20px; width: max-content; max-width: 100%;
  box-shadow: inset 0 0 0 2px #FFF, 0 0 0 2px #555; margin-bottom: 10px; }
.fcol { display: grid; gap: 6px; justify-items: center; }
.flame { width: 22px; height: 24px; position: relative; background: #7A7A7A; border-radius: 4px; overflow: hidden; }
.flame i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#FFE060, #F28C28); }
.farrow { width: 64px; height: 18px; background: #7A7A7A; border-radius: 9px; overflow: hidden; }
.farrow i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFFFFF, #F4F4F4); }

.armrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.armpts { font: 800 16px/1.2 'Baloo 2', sans-serif; margin-left: 8px; }

.trades { display: grid; gap: 10px; margin: 10px 0; }
.trade { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 0 0 2px var(--line); }
.trade.can { box-shadow: 0 0 0 2px #7CC061; background: #F2FAEE; }
.trade .tg { display: flex; gap: 6px; flex-wrap: wrap; }
.trade .eq { font: 800 22px/1 'Baloo 2', sans-serif; color: var(--ink-2); }
.trade .btn { margin-left: auto; }

@media (max-width: 720px) {
  .craftwrap { grid-template-columns: 1fr; }
  .cs { width: 48px; height: 48px; }
  .cgrid.w2 { grid-template-columns: repeat(2, 48px); }
  .cgrid.w3 { grid-template-columns: repeat(3, 48px); }
  .cs.out { width: 58px; height: 58px; }
  .rgrid { max-height: 220px; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
  .rtile { height: 46px; }
  .t-sneak { bottom: calc(var(--slot) + 156px + var(--safe-b)); }
}

/* ── 2026-09-27: seeing each other — name tags, the locator bar, Tab ── */
.tag .nm.pn { background: rgba(20, 24, 30, .78); border: 2px solid; font-weight: 800; letter-spacing: .01em; }
.tag .nm.pn.sneak { opacity: .45; }
.locbar { position: absolute; left: 50%; bottom: calc(var(--slot) + 20px + var(--safe-b)); transform: translateX(-50%); width: calc(var(--slot) * 9 + 32px); max-width: calc(100vw - 16px);
  height: 11px; border-radius: 5px; background: rgba(12, 16, 22, .66); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55); pointer-events: none; z-index: 5; }
.menu-open .locbar { visibility: hidden; }
.lb-track { position: absolute; left: 6px; right: 6px; top: 0; bottom: 0; }
.lb-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .75); transition: left .1s linear; }
.lb-dot.ci { border-radius: 50%; }
.lb-dot.ssq { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.lb-dot.sci { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; }
.lb-dot b { position: absolute; left: 50%; width: 0; height: 0; margin-left: -4px; border: 4px solid transparent; display: none; }
.lb-dot.up b { display: block; bottom: calc(100% + 2px); border-bottom-color: #fff; border-top-width: 0; }
.lb-dot.down b { display: block; top: calc(100% + 2px); border-top-color: #fff; border-bottom-width: 0; }
.tablist { position: absolute; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%); min-width: 260px; max-width: calc(100vw - 24px); z-index: 6; pointer-events: none;
  background: rgba(14, 18, 24, .82); color: #fff; border-radius: 12px; padding: 10px 14px; display: grid; gap: 5px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.tl-t { font: 800 16px/1.2 'Baloo 2', sans-serif; text-align: center; margin-bottom: 2px; }
.tl-r { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; font: 800 15px/1.2 'Baloo 2', sans-serif; }
.tl-r i { width: 10px; height: 10px; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .7); }
.tl-r em { font-style: normal; }
.tl-r small { opacity: .75; font-weight: 700; }
