* { margin: 0; padding: 0; box-sizing: border-box; }
button, .hud-btn, #toolbar, #panel, #hud, #menu .menu-btns, .hud-pop, #tut, #report {
  -webkit-user-select: none; user-select: none;
}
html, body { height: 100%; overflow: hidden; background: #12203a; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Cascadia Mono", monospace; }
canvas { display: block; cursor: crosshair; }

#hud {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; color: #fff; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0));
  font-size: 14px;
}
.hud-item { margin-right: 16px; text-shadow: 0 1px 2px rgba(0,0,0,.7); font-weight: 600; }
#hud-stars { color: #ffd97a; }
#hud { flex-wrap: nowrap; }
#hud-left { min-width: 0; overflow: hidden; white-space: nowrap; display: flex; align-items: center; }
#hud-left .hud-item { flex: none; }
/* the readouts must take pointer events themselves: #hud is pointer-events:none
   so drags pass through to the canvas, which also swallowed their hovers */
#hud-cash, #hud-pop, #hud-conf, #hud-stars, #hud-name { pointer-events: auto; }
#hud-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
/* narrow windows: drop the softest information first rather than chopping words */
@media (max-width: 900px) { #hud-name { display: none; } }
@media (max-width: 820px) { #hud-stars { display: none; } }
#hud-right {
  flex-shrink: 0; display: flex; align-items: center;
  pointer-events: auto; position: relative; z-index: 60;
}
.hud-btn {
  pointer-events: auto; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 6px; padding: 6px 13px; margin-left: 6px; cursor: pointer; font: inherit;
  position: relative; z-index: 30; line-height: 1;
}
.hud-btn:hover { background: rgba(255,255,255,.26); }

#toolbar {
  position: fixed; left: 10px; top: 56px; z-index: 5; width: 268px;
  max-height: calc(100vh - 70px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px;
  scrollbar-width: thin;
}
.tool-sec {
  color: rgba(255,255,255,.7); font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  margin: 4px 2px 1px; text-shadow: 0 1px 3px #000, 0 0 6px #000;
}
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.tool {
  display: flex; align-items: center; gap: 6px;
  background: #171d26; color: #f2f5f9;
  border: 1px solid rgba(255,255,255,.22); padding: 5px 6px; border-radius: 8px;
  cursor: pointer; font: inherit; font-size: 10.5px; text-align: left;
  min-width: 0; box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.tool .ic { font-size: 13px; flex: none; }
.tool .tx { display: flex; flex-direction: column; min-width: 0; }
.tool .nm { white-space: nowrap; letter-spacing: -0.2px; }
.tool .cost { opacity: .55; font-size: 9px; white-space: nowrap; }
.tool:hover { background: #27303c; border-color: rgba(255,255,255,.4); }
.tool.active { background: #2f6fb1; border-color: #9fcdf5; box-shadow: 0 0 0 1px rgba(159,205,245,.5), 0 2px 8px rgba(0,0,0,.4); }
.tool .nm { color: #f2f5f9; }
.tool .cost { opacity: .62; }
/* locked tools read as locked: desaturated, dimmer, star requirement in gold */
.tool.locked { background: #12161c; border-color: rgba(255,255,255,.1); filter: grayscale(.75); opacity: .5; }
.tool.locked .nm { color: #aab3bd; }
.tool.locked .cost { opacity: 1; color: #ffd97a; }

#toasts {
  position: fixed; top: 52px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  pointer-events: none; z-index: 10;
}
.toast {
  background: rgba(10,14,18,.82); color: #fff; padding: 8px 18px; border-radius: 20px;
  font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.4);
  animation: toast-in .25s ease-out; white-space: nowrap;
}
.toast.good { background: rgba(23,102,46,.92); }
.toast.bad { background: rgba(140,47,47,.92); }
.toast.star { background: rgba(151,117,26,.95); }
.toast.out { opacity: 0; transition: opacity .5s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.hud-pop {
  position: fixed; z-index: 70; display: none;
  background: rgba(12,17,23,.95); border: 1px solid rgba(255,255,255,.28);
  border-radius: 9px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
#speed-pop button {
  display: block; width: 64px; margin: 3px 0; padding: 6px 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #eee; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px;
}
#speed-pop button:hover { background: rgba(47,111,177,.8); }
#speed-pop button.on { background: rgba(47,111,177,.85); border-color: #7fb4e6; }
#vol-pop { padding: 10px 12px; }
.vp-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 11px; color: #e8ecf1; }
.vp-row label { display: flex; align-items: center; gap: 5px; width: 82px; cursor: pointer; }
.vp-row input[type="range"] { width: 110px; accent-color: #7fb4e6; }
.vp-row input[type="checkbox"] { accent-color: #7fb4e6; }
.vp-row b { width: 34px; text-align: right; font-weight: 400; opacity: .75; }
#vp-now {
  margin: 8px 2px 2px; font-size: 10.5px; color: #ffd97a; opacity: .85;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}
#vp-skip {
  width: 100%; margin-top: 6px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); color: #ddd; border-radius: 6px;
  padding: 5px 0; cursor: pointer; font: inherit; font-size: 11px;
}
#vp-skip:hover { background: rgba(47,111,177,.8); }



#panel {
  position: fixed; right: 12px; top: 56px; z-index: 8; display: none; width: 232px;
  pointer-events: auto;
  background: rgba(12,17,23,.92); color: #e8e8e8; border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.p-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.p-title { font-weight: 700; font-size: 13px; }
.p-x { background: none; border: none; color: #aaa; cursor: pointer; font: inherit; }
.p-x:hover { color: #fff; }
.p-row { margin: 3px 0; opacity: .9; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-bar { flex: 1; height: 5px; min-width: 60px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; display: inline-block; }
.p-bar span { display: block; height: 100%; border-radius: 3px; }
.p-eval { margin: 7px 0; padding: 6px 8px; background: rgba(255,255,255,.08); border-radius: 6px; font-size: 11.5px; }
.p-rates { display: flex; gap: 4px; margin: 4px 0 8px; }
.p-rate {
  flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #ddd; border-radius: 6px; padding: 4px 0; cursor: pointer; font: inherit; font-size: 10.5px;
}
.p-rate.on { background: rgba(47,111,177,.85); border-color: #7fb4e6; color: #fff; }
.p-btns { display: flex; gap: 6px; }
.p-btns button {
  flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #ddd; border-radius: 6px; padding: 4px 0; cursor: pointer; font: inherit; font-size: 10.5px;
}
.p-btns button:hover { background: rgba(255,255,255,.2); }
#p-demolish:hover { background: rgba(160,50,45,.6); }

#report {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 12;
  display: none; width: 340px; max-width: calc(100vw - 40px);
  background: rgba(12,17,23,.94); color: #e8e8e8; border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px; padding: 12px 16px; font-size: 12.5px; backdrop-filter: blur(8px);
  box-shadow: 0 12px 36px rgba(0,0,0,.5); pointer-events: auto;
  transition: opacity .8s;
}
#report.fade { opacity: 0; }
.r-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; color: #ffd97a; }
.r-item { margin: 4px 0; line-height: 1.45; }
.r-item.bad { color: #ff9d94; }
.r-item.good { color: #9de8ab; }
.r-item.star { color: #ffd97a; }
#r-ok {
  margin-top: 10px; width: 100%; background: rgba(47,111,177,.85); border: 1px solid #7fb4e6;
  color: #fff; border-radius: 7px; padding: 6px 0; cursor: pointer; font: inherit; font-weight: 700;
}
#r-ok:hover { filter: brightness(1.15); }

#p-name {
  flex: 1; min-width: 0; background: rgba(255,255,255,.12); border: 1px solid #7fb4e6;
  color: #fff; border-radius: 5px; padding: 3px 6px; font: inherit; font-size: 12px;
  text-transform: uppercase;
}
#p-nameok {
  background: rgba(47,111,177,.85); border: 1px solid #7fb4e6; color: #fff;
  border-radius: 5px; padding: 3px 8px; cursor: pointer; font: inherit; margin-left: 5px;
}

#tip {
  position: fixed; pointer-events: none; display: none; z-index: 6;
  background: rgba(0,0,0,.8); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 5px;
}
#tip.bad { background: rgba(140,40,40,.9); }

/* ---- intro sequence & main menu ---- */
body.in-menu #hud, body.in-menu #toolbar, body.in-menu #panel,
body.in-menu #report, body.in-menu #tut, body.in-menu #toasts { display: none !important; }

#menu { position: fixed; inset: 0; z-index: 20; color: #eee; }
#menu .screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(10,16,30,.35), rgba(6,10,20,.82));
  animation: scr-in .5s ease-out;
}
#menu .screen.hidden { display: none; }
@keyframes scr-in { from { opacity: 0; } }

#splash1 { background: #06090f; cursor: pointer; }
.made-by { font-size: 13px; letter-spacing: 4px; opacity: .55; margin-bottom: 14px; text-transform: uppercase; }
.ir-mark {
  width: 130px; height: auto; margin-bottom: 20px;
  filter: drop-shadow(0 6px 24px rgba(156,53,64,.45));
  animation: ir-bob 3s ease-in-out infinite alternate;
}
@keyframes ir-bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.ir-logo {
  font-size: 34px; font-weight: 700; letter-spacing: 10px; line-height: 1.35;
  color: #7fe08a; text-shadow: 0 0 24px rgba(127,224,138,.45);
  animation: ir-glow 2.4s ease-in-out infinite alternate;
}
@keyframes ir-glow { from { text-shadow: 0 0 12px rgba(127,224,138,.3); } to { text-shadow: 0 0 34px rgba(127,224,138,.7); } }
.ir-link { display: block; margin-top: 22px; color: #9ec7ff; font-size: 13px; }

#splash2 { cursor: pointer; }
.logo-img {
  display: block; margin: 0 auto 4px;
  width: min(520px, 82vw); height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.6));
  animation: logo-rise .8s cubic-bezier(.2,.8,.3,1) both;
}
.logo-img.small { width: min(320px, 66vw); margin-bottom: 24px; animation: none; }
@keyframes logo-rise {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.logo-word {
  font-size: 40px; letter-spacing: 12px; color: #ffd97a;
  text-shadow: 0 3px 0 rgba(120,80,10,.6), 0 8px 28px rgba(0,0,0,.6);
}
.logo-word.small { font-size: 26px; letter-spacing: 8px; margin-bottom: 26px; }
.logo-tag { margin-top: 10px; opacity: .75; font-size: 13px; }

.menu-btns { display: flex; flex-direction: column; gap: 10px; width: 250px; }
.menu-btns button, #m-confirm button, .m-back {
  background: rgba(16,24,38,.88); border: 1px solid rgba(255,255,255,.25); color: #eee;
  font: inherit; font-size: 15px; padding: 11px 0; border-radius: 9px; cursor: pointer;
  backdrop-filter: blur(6px);
}
.menu-btns button:hover, #m-confirm button:hover, .m-back:hover { background: rgba(47,111,177,.75); border-color: #7fb4e6; }
#m-new { background: rgba(201,151,58,.85); border-color: #ffd97a; color: #1c1608; font-weight: 700; }
#m-new:hover { background: #ffd97a; }
#m-resume { background: rgba(47,111,177,.85); border-color: #7fb4e6; color: #fff; font-weight: 700; }
#m-resume:hover { background: rgba(70,140,210,.95); }
button.danger:hover { background: rgba(160,50,45,.8) !important; border-color: #ff9d94 !important; }
#m-confirm { margin-top: 16px; background: rgba(20,12,12,.9); border: 1px solid rgba(255,120,110,.4);
  border-radius: 10px; padding: 14px 18px; font-size: 13px; }
#m-confirm button { margin: 8px 4px 0; padding: 7px 14px; font-size: 13px; }
.menu-foot { margin-top: 30px; font-size: 12px; opacity: .7; }
.menu-foot a { color: #9ec7ff; }

#menu h2 { color: #ffd97a; letter-spacing: 4px; margin-bottom: 16px; }
.menu-card {
  background: rgba(12,18,28,.92); border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  padding: 18px 22px; width: 540px; max-width: calc(100vw - 48px); max-height: 62vh;
  overflow-y: auto; text-align: left; font-size: 13px;
}
.menu-card.instructions p { margin: 0 0 11px; line-height: 1.55; }
.menu-card .wink { opacity: .55; font-style: italic; }
.set-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; cursor: pointer; }
#set-erase { margin-top: 14px; font-size: 13px; padding: 7px 14px; background: rgba(16,24,38,.88);
  border: 1px solid rgba(255,255,255,.25); color: #eee; border-radius: 8px; cursor: pointer; font-family: inherit; }
#set-erased { color: #ff9d94; font-size: 12px; margin-top: 8px; }
.m-back { margin-top: 18px; width: 140px; }
.set-note { opacity: .55; font-size: 11.5px; margin-top: 12px; }
.set-slider {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 12px 26px; font-size: 12px;
}
.set-slider span { opacity: .6; width: 62px; }
.set-slider input { flex: 1; accent-color: #7fb4e6; }
.set-slider b { width: 40px; text-align: right; opacity: .8; font-weight: 400; }
.set-hr { border: none; border-top: 1px solid rgba(255,255,255,.14); margin: 14px 0; }

/* long-press affordance on HUD buttons that expand */
.hud-btn.expandable { padding-right: 17px; }
.hud-btn.expandable::after {
  content: '▾'; position: absolute; right: 5px; bottom: 3px;
  font-size: 8px; opacity: .75; line-height: 1;
}

.slot-row {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px; padding: 9px 12px; margin: 7px 0;
}
.slot-info { flex: 1; min-width: 0; }
.slot-info b { display: block; font-size: 13.5px; }
.slot-info small { opacity: .65; font-size: 11px; }
.slot-row button {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #eee;
  border-radius: 7px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 12px;
}
.slot-load:hover { background: rgba(47,111,177,.8); border-color: #7fb4e6; }
.slot-del:hover { background: rgba(160,50,45,.8); border-color: #ff9d94; }
.slot-ren:hover { background: rgba(150,120,40,.8); border-color: #ffd97a; }
.slot-name {
  flex: 1; min-width: 0; background: rgba(255,255,255,.12); border: 1px solid #ffd97a;
  color: #fff; border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 13px;
}

.name-card { width: 400px; }
#name-input {
  width: 100%; background: rgba(255,255,255,.12); border: 1px solid #7fb4e6;
  color: #fff; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px;
}
.name-btns { display: flex; gap: 8px; margin-top: 14px; }
.name-btns button {
  flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #eee; border-radius: 8px; padding: 9px 0; cursor: pointer; font: inherit; font-size: 14px;
}
.name-btns .m-back { margin-top: 0; width: auto; }
#name-go { background: rgba(201,151,58,.85); border-color: #ffd97a; color: #1c1608; font-weight: 700; }
#name-go:hover { background: #ffd97a; }

#hud-name { opacity: .75; font-weight: 400; }

#tut {
  position: fixed; bottom: 46px; left: 50%; transform: translateX(-50%); z-index: 9;
  background: rgba(201,151,58,.94); color: #1c1608; font-weight: 600; font-size: 13px;
  padding: 9px 20px; border-radius: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  border: 1px solid #ffd97a; pointer-events: none; max-width: calc(100vw - 40px);
}

.p-blurb { font-size: 11px; opacity: .6; line-height: 1.4; margin: 4px 0 6px; }
#hud-conf { font-variant-numeric: tabular-nums; letter-spacing: -1px; }

/* recall overlay: the fail state */
#recall {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 10, 16, .82);
  display: flex; align-items: center; justify-content: center;
}
.recall-card {
  background: #171d26; border: 1px solid #3a4356; border-radius: 12px;
  padding: 28px 34px; max-width: 440px; text-align: center;
  color: #dfe6f2; box-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.recall-card h2 { margin: 0 0 8px; color: #ff9d94; letter-spacing: 2px; }
.recall-card .rc-vote { opacity: .75; font-size: 13px; margin: 0 0 14px; }
.recall-card .rc-stats { color: #ffd97a; font-size: 13px; }
.recall-card .rc-note { opacity: .6; font-size: 12px; }
.recall-card button {
  margin-top: 12px; padding: 10px 22px; border-radius: 8px; border: 0;
  background: #ffd97a; color: #1a1408; font-weight: 700; cursor: pointer;
}
.r-act {
  margin-left: 8px; padding: 3px 10px; border-radius: 6px; border: 0;
  background: #ffd97a; color: #1a1408; font-weight: 700; cursor: pointer; font-size: 11px;
}

/* HUD tooltips: the app shell never draws native title= tooltips */
#hud-tip {
  position: fixed; z-index: 120; display: none; pointer-events: none;
  max-width: 300px; padding: 8px 10px;
  background: rgba(10,14,20,.96); border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px; box-shadow: 0 8px 26px rgba(0,0,0,.55);
  font-size: 11.5px; line-height: 1.45; color: #dfe6f2; font-weight: 400;
  text-shadow: none;
}
#hud-tip b { display: block; color: #ffd97a; margin-bottom: 3px; font-size: 12px; }
#hud-tip span { display: block; opacity: .85; }

.hud-lbl { opacity: .55; font-weight: 400; font-size: 11px; }
.conf-bar { letter-spacing: -1px; }
.hud-open { cursor: pointer; }
.hud-open:hover { filter: brightness(1.25); }

/* confidence breakdown */
#conf-pop { padding: 10px 12px; max-width: 340px; }
.cp-head { color: #ffd97a; font-size: 12px; margin-bottom: 7px; }
.cp-row { display: flex; align-items: center; gap: 8px; font-size: 11px; margin: 3px 0; color: #dfe6f2; }
.cp-row .cp-name { flex: 1; opacity: .8; }
.cp-row .cp-bar { letter-spacing: -1px; font-size: 10px; }
.cp-row b { width: 34px; text-align: right; font-weight: 600; opacity: .9; }
.cp-row.worst .cp-name { opacity: 1; color: #ff9d94; }
.cp-foot {
  margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 11px; line-height: 1.45; opacity: .8; color: #dfe6f2;
}
.cp-notes { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.cp-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: .5; margin-bottom: 6px; line-height: 1.3; }
.cp-note { font-size: 11px; line-height: 1.45; opacity: .85; margin: 3px 0; color: #e8ecf1; }
@media (max-width: 980px) { .hud-lbl { display: none; } }
.cp-worst {
  margin-top: 8px; padding: 7px 9px; border-radius: 6px;
  background: rgba(255,157,148,.12); border-left: 2px solid #ff9d94;
  font-size: 11px; line-height: 1.45; color: #ffd7d2;
}

/* ticker: a running feed rather than a clipped last-message */

/* the news feed: a fixed title, then items scrolling past it */
/* Only while a co-op is actually open. The menu sits over a live render of
   the world rather than an opaque backdrop, so anything left visible behind
   it shows straight through onto the splash and home screens. */
#ticker { display: none; }
body.playing #ticker { display: flex; }
#ticker {
  position: fixed; left: 290px; right: 12px; bottom: 12px; z-index: 8;
  height: 26px; overflow: hidden; border-radius: 13px;
  align-items: stretch;
  background: linear-gradient(90deg, rgba(9,13,20,.88), rgba(9,13,20,.7));
  border: 1px solid rgba(255,255,255,.14);
  color: #dfe6f2; font-size: 11.5px; text-shadow: 0 1px 2px rgba(0,0,0,.8);
  /* takes the pointer so hovering holds the feed — which also suppresses the
     build ghost, since the canvas stops seeing the move */
  pointer-events: auto; cursor: default;
}
.tk-title {
  flex: none; display: flex; align-items: center; padding: 0 11px;
  background: linear-gradient(180deg, #c9973a, #a97a24);
  color: #1c1608; font-weight: 700; font-size: 10.5px;
  letter-spacing: .6px; text-transform: uppercase; text-shadow: none;
  border-right: 1px solid rgba(0,0,0,.35);
}
.tk-track { flex: 1 1 auto; position: relative; overflow: hidden; min-width: 0; }
.tk-run {
  position: absolute; left: 0; top: 0; height: 100%;
  display: flex; align-items: center; white-space: nowrap; will-change: transform;
}
.tk-sep { color: #c9973a; margin: 0 14px; opacity: .9; font-size: 9px; }
.tk-item { opacity: .92; }
@keyframes tk-run {
  from { transform: translateX(var(--tk-from, 100%)); }
  to   { transform: translateX(var(--tk-to, -100%)); }
}
#ticker:hover { background: linear-gradient(90deg, rgba(9,13,20,.96), rgba(9,13,20,.86)); }
#ticker:hover .tk-run { animation-play-state: paused; }
@media (max-width: 820px) { #ticker { left: 12px; } }
.cp-row.locked .cp-name { opacity: .45; }
.cp-locked { font-size: 10px; opacity: .45; font-style: italic; }
.tk-item { opacity: .92; }
/* what the assembly is holding you to */
.cp-tasks { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); }
.cp-task {
  display: flex; align-items: baseline; gap: 6px; font-size: 11px;
  line-height: 1.45; margin: 3px 0; color: #dfe6f2;
}
.cp-task .cp-when { margin-left: auto; font-size: 10px; opacity: .55; white-space: nowrap; }
.cp-task.urgent { color: #ffd0a8; }
.cp-task.urgent .cp-when { color: #ffb37a; opacity: .9; }
.cp-task.done { opacity: .6; }

/* the summit: what crowning the building looks like */
#summit {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(circle at 50% 30%, rgba(30,40,72,.86), rgba(6,9,16,.93));
  display: flex; align-items: center; justify-content: center;
}
.summit-card {
  background: #171d26; border: 1px solid #c9973a; border-radius: 14px;
  padding: 26px 34px 24px; max-width: 500px; text-align: center; color: #dfe6f2;
  box-shadow: 0 20px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,217,122,.15);
  animation: sm-in .5s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes sm-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.sm-dome { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.summit-card h2 { margin: 0 0 10px; color: #ffd97a; letter-spacing: 2px; font-size: 20px; }
.sm-lead { font-size: 13px; line-height: 1.55; opacity: .9; margin: 0 0 16px; }
.sm-stats { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.sm-stats div {
  flex: 1 1 96px; background: rgba(255,255,255,.05); border-radius: 8px; padding: 9px 6px;
}
.sm-stats b { display: block; color: #ffd97a; font-size: 17px; }
.sm-stats span { display: block; font-size: 10px; opacity: .6; margin-top: 2px; }
.sm-note { font-size: 11.5px; opacity: .62; font-style: italic; margin: 0 0 16px; }
.sm-btns { display: flex; gap: 10px; justify-content: center; }
.sm-btns button {
  padding: 10px 20px; border-radius: 8px; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700;
}
#sm-go { background: #ffd97a; color: #1a1408; }
#sm-menu { background: rgba(255,255,255,.12); color: #dfe6f2; }
#menu-dl { margin-bottom: 2px; }
#menu-dl a { color: #ffd97a; font-weight: 700; font-size: 13px; text-decoration: none; }
#menu-dl a:hover { text-decoration: underline; }
#menu-dl .dl-note { display: block; font-size: 10.5px; opacity: .5; margin-top: 3px; }
.menu-foot.kofi { margin-top: 4px; font-size: 12px; opacity: .75; }
.menu-foot.kofi a { color: #ffd97a; }
