/* phone layout: controls under the board, bottom-sheet menus */
body.mobile { padding: 4px 0 8px; }
body.mobile .app { gap: 4px; }
body.mobile .top { padding-inline: 8px; gap: 4px; }
body.mobile .top h1 { display: none; }
body.mobile .chips { gap: 4px; flex-wrap: nowrap; }
body.mobile .chips .stat { flex: 1 1 0; padding: 2px 6px; }
body.mobile .chips .stat .k { font-size: 10px; letter-spacing: .04em; }
body.mobile .chips .stat .v { font-size: 14px; }
body.mobile .chips .stat .v small, body.mobile .chips #sDay { font-size: 10px; }
body.mobile .chips #sNeeds, body.mobile .chips #sWeather, body.mobile .chips #sCoop, body.mobile .chips #sDay { display: none; }
body.mobile .track { margin-inline: 8px; }
body.mobile .stage { width: 100%; min-width: 0; border-radius: 0; border-inline: 0; }
body.mobile .ticker, body.mobile .todo { margin-inline: 8px; }
body.mobile .todo li:nth-child(n+2) { display: none; }
body.mobile .touch { padding-inline: 12px; }
body.mobile .stick { width: 112px; height: 112px; } body.mobile .stick b { left: 30px; top: 30px; }
body.mobile .act { width: 84px; height: 84px; }
body.mobile .menubar { margin-inline: 8px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
body.mobile .menubar .btn { flex: none; padding: 6px 10px; }
body.mobile .sheet { align-items: end; padding: 0; }
body.mobile .sheet-panel { width: 100%; max-height: 82%; border-radius: 14px 14px 0 0; }
@media (max-width: 560px) { .top h1 { font-size: 18px; } }
@media (orientation: landscape) and (max-height: 520px) {
  body.mobile .stage { width: calc(100% - 270px); }      /* between the joystick and the Act button; its height is what is left (boardSize) */
  body.mobile .touch { position: fixed; left: 0; right: 0; bottom: 44px; padding: 0 10px; pointer-events: none; z-index: 5; }
  body.mobile .touch > * { pointer-events: auto; }
  body.mobile .ticker, body.mobile .todo { display: none; }
}

.cartbtn { position: absolute; left: 8px; top: 8px; z-index: 6; display: flex; align-items: center; gap: 6px; background: var(--panel); color: var(--fg); border: 2px solid #7b5a36; border-radius: 22px; padding: 4px 12px 4px 8px; font: 600 14px var(--font-body); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.cartbtn .ci { font-size: 18px; } .cartbtn b { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 0 7px; font-family: var(--font-mono); font-size: 12px; }
.inv-body { display: grid; gap: 10px; font-size: 14px; } .inv-body h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 14px; } .inv-body ul { margin: 0; padding-left: 18px; }
.inv-hands { display: flex; gap: 8px; } .inv-slot { flex: 1; border: 1px dashed var(--line); border-radius: 8px; padding: 8px; text-align: center; background: var(--panel); }

.chips .sky { flex: 1.7 1 150px; position: relative; padding: 0; overflow: hidden; min-height: 52px; }
.sky svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-t { position: relative; padding: 3px 9px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.65); font-family: var(--font-display); line-height: 1.15; }
.sky-t b { font-size: 18px; } .sky-t small { font-family: var(--font-body); font-size: 10px; font-weight: 600; margin-left: 4px; opacity: .95; }
.sky-t .wx { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .95; }
.ico { font-size: 12px; } .chips .stat .k .lab { font-size: 10px; }
.menubar .btn .ico { font-size: 14px; margin-right: 3px; }
body.mobile .chips .lab, body.mobile .menubar .lab { display: none; } body.mobile .chips .sky { flex: 1.6 1 0; min-height: 44px; } body.mobile .sky-t b { font-size: 14px; } body.mobile .sky-t .wx { display: none; }
.todo .tag { width: 14px !important; font-size: 12px !important; } .todo .tag.dot { letter-spacing: 0; }

.debt { color: var(--bad) !important; font-weight: 700 !important; }
.stagebtns .btn[aria-pressed="true"] { background: var(--accent); color: #111; }
.dropchip { display: inline-flex; align-items: center; gap: 6px; animation: dropPulse 5s ease-in-out infinite; } .dropchip[hidden], #bAuto[hidden] { display: none; } .dropchip .dico { display: inline-block; width: 22px; height: 18px; text-align: center; line-height: 18px; } .dropchip .dico svg { width: 22px; height: 18px; } .dropchip .dn { font-weight: 600; }
@keyframes dropPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(236,172,32,0); } 50% { box-shadow: 0 0 0 4px rgba(236,172,32,.55); } }
#bAuto { background: #ecac20 !important; border-color: #8a6410 !important; font-weight: 600; }
.stagebtns { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 6px; z-index: 6; } .stagebtns .btn, .dropbar .btn { color: #111; padding: 5px 11px; font-size: 12px; background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.ticker { display: none !important; }
.menubtns { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .menubtns .btn { padding: 5px 10px; font-size: 12px; }
.trackrow { display: flex; align-items: center; gap: 10px; } .trackrow .track { flex: 1; min-width: 0; } .trackrow .btn { flex: none; padding: 4px 11px; font-size: 12px; }
.todo { padding: 5px 8px; display: flex; align-items: center; gap: 6px; }
.todo #todo { display: flex; flex-wrap: nowrap; gap: 5px; padding: 3px 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; } .todo #todo::-webkit-scrollbar { display: none; }
.todo-label { flex: none; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 14px; border: 0; background: none; color: var(--fg); cursor: pointer; padding: 2px 6px; white-space: nowrap; } .todo-label b { font-family: var(--font-mono); font-size: 10px; background: var(--accent); color: var(--accent-ink); border-radius: 9px; padding: 0 6px; margin-left: 3px; }
.tarrow { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-size: 10px; cursor: pointer; padding: 0; } .tarrow:disabled { opacity: .25; cursor: default; }
.tchip { flex: none; cursor: pointer !important; }
.chips { gap: 6px; } .chips .stat { flex: 0 1 auto !important; min-width: 0; padding-inline: 12px; } .chips .wxcard, .chips .tmcard { flex: 0 0 auto !important; }
#todo.fr { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 34px), transparent); }
#todo.fl { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 34px), transparent); }
#todo.fl.fr { -webkit-mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent); }
.todo-tip { position: fixed; z-index: 80; max-width: 260px; padding: 7px 11px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 12px; line-height: 1.35; box-shadow: 0 3px 12px rgba(0,0,0,.3); transform: translateX(-50%); }
.todo-tip::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--fg); }
.tchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font-size: 12px; line-height: 1.3; cursor: default; }
.tchip .e { font-size: 18px; } .tchip small { color: var(--muted); font-weight: 600; }
.tchip.now { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--bg)); } .tchip.soon { border-color: var(--accent); } .tchip.ok { border-color: var(--good); }
.ctrl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ctrl-grid > div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ctrl-grid > div > span:first-child { white-space: nowrap; } .ctrl-grid kbd { font-size: 14px; padding: 3px 8px; } .ctrl-grid b { font-weight: 600; } .ctrl-grid .mi { font-size: 22px; }
details.howto-d summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; padding: 6px 0; }
.ip-meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 3px 0 5px; } .ip-meter i { display: block; height: 100%; background: #6aa86a; transition: width .2s; } .ip-meter.full i { background: #c0502a; }
.ip-cells { display: flex; gap: 2px; margin: 2px 0 3px; } .ip-cells i { flex: 1; height: 9px; border-radius: 2px; background: var(--line); } .ip-cells i.on { background: #6aa86a; } .ip-cells.full i.on { background: #c0502a; }
.invpanel { position: absolute; right: 6px; top: 6px; width: 224px; max-height: calc(100% - 12px); overflow-y: auto; background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--line); border-radius: 9px; padding: 5px 8px 8px; font-size: 12px; z-index: 5; user-select: none; -webkit-user-select: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.invpanel.collapsed { width: auto; }
#ipHead { position: sticky; top: -5px; z-index: 2; }      /* stays at the top of the panel when the list is scrolled, so it can always be closed */
.flockpanel { right: 236px; left: auto; width: 258px; max-height: calc(100% - 62px); }
.flockpanel .ip-h { cursor: pointer; gap: 10px; }
.fl-c.dead::after { content: ''; position: absolute; left: 4px; top: 4px; width: 40px; height: 2px; background: #c0392b; transform-origin: 0 0; transform: translate(0, 1px) rotate(40deg) scaleX(1.05); } .invpanel.collapsed .ip-body { display: none; }
.ip-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; cursor: pointer; }
.ip-zone { border: 1px dashed transparent; border-radius: 6px; padding: 2px; margin-top: 3px; }
.ip-zone h4 { margin: 0 0 2px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ip-zone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ip-zone.ok { border-color: var(--good); background: color-mix(in srgb, var(--good) 20%, transparent); }
.ip-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 3px 6px; margin: 3px 0; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); cursor: grab; touch-action: none; line-height: 1.25; }
.ip-item:hover { border-color: var(--accent); }
.ip-fly { position: fixed; z-index: 9999; pointer-events: none; left: 0; top: 0; display: flex; align-items: center; justify-content: center; } .ip-fly .ip-ico { width: 22px; height: 22px; font-size: 18px; display: flex; align-items: center; justify-content: center; } .ip-fly svg { width: 100%; height: 100%; }

.keys-note { margin: 10px 0 4px; font-size: 12px; opacity: .85; } .keys-note kbd { font-size: 12px; padding: 1px 6px; }
.lumps { display: inline-flex; gap: 3px; } .lump { width: 9px; height: 7px; border-radius: 50% 50% 45% 45%; border: 1px solid #b9a98a; background: transparent; } .lump.on { background: #7a4a22; border-color: #4e2e12; }
.eggs { display: flex; flex-wrap: wrap; gap: 2px 3px; align-items: center; flex: 1; min-width: 0; padding: 2px 0; } .eg { display: inline-block; border-radius: 50% 50% 48% 48% / 62% 62% 38% 38%; border: 1px solid rgba(110,90,50,.55); box-shadow: inset -1px -1px 2px rgba(120,90,40,.2); flex: none; } .menuov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: linear-gradient(180deg, #9cc8e8 0%, #cfe6c0 55%, #7fae5a 100%); padding: 16px; overflow-y: auto; }
.menuov[hidden] { display: none; }
.mm { width: min(480px, 100%); background: rgba(255,255,255,.94); border: 3px solid #7b5a36; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); padding: 18px 20px; color: #2a2208; }
.mm h1 { font-family: var(--font-display, 'Bricolage Grotesque', sans-serif); margin: 0 0 2px; font-size: 30px; } .mm .sub { margin: 0 0 14px; color: #6a5a30; font-size: 12px; }
.mm h3 { margin: 14px 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #7a6a3a; }
.mm button { font: 700 12px 'DM Sans', sans-serif; padding: 7px 12px; border-radius: 9px; border: 1px solid #b8a470; background: #fff; color: #2a2208; cursor: pointer; } .mm button.go { background: #f0b73a; border-color: #b9851a; } .mm button.danger { color: #9a2a1a; }
.mm input { flex: 1; font: 600 14px 'DM Sans', sans-serif; padding: 8px 10px; border-radius: 9px; border: 1px solid #b8a470; min-width: 0; }
.mm .note { font-size: 10px; color: #7a6a3a; margin-top: 10px; }
#dayCard { position: absolute; left: 10px; top: 46px; z-index: 6; width: 210px; background: rgba(255,252,240,.96); border: 2px solid #7b5a36; border-radius: 12px; padding: 8px 12px 8px; font: 600 12px 'DM Sans', sans-serif; color: #2a2208; box-shadow: 0 4px 14px rgba(0,0,0,.28); } #dayCard b { font-size: 12px; } #dayCard ul { list-style: none; margin: 4px 0 0; padding: 0; } #dayCard li { margin: 3px 0; font-weight: 500; } #dayCard .dcx { position: absolute; right: 6px; top: 2px; border: 0; background: none; font-size: 18px; cursor: pointer; color: #7a6a3a; } #dayCard[hidden] { display: none; }
#toast { position: absolute; top: 8px; z-index: 9; display: flex; justify-content: center; pointer-events: none; } #toast[hidden] { display: none; } #toast span { background: rgba(20,28,22,.86); color: #fff; font: 600 12px/1.4 'DM Sans', sans-serif; padding: 5px 14px; border-radius: 14px; text-align: center; max-width: 100%; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
#tutBox { position: absolute; left: 50%; transform: translateX(-50%); top: 66px; z-index: 4; max-width: min(420px, 86%); background: rgba(34,44,34,.94); color: #fff; border-radius: 12px; padding: 8px 14px 8px; font: 600 12px/1.6 'DM Sans', sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.3); text-align: center; } #tutBox small { display: block; font-weight: 500; opacity: .75; margin-top: 3px; } #tutBox button { margin-left: 8px; font: 600 10px 'DM Sans', sans-serif; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: 8px; padding: 1px 8px; cursor: pointer; } #tutBox[hidden] { display: none; }
#saveChip { position: absolute; right: 10px; bottom: 18px; z-index: 6; background: rgba(30,40,30,.82); color: #fff; font: 600 12px 'DM Sans', sans-serif; padding: 4px 10px; border-radius: 12px; opacity: 0; transition: opacity .3s; pointer-events: none; } #saveChip.on { opacity: 1; }
.ip-ico img.itm, .ip-ico img.tool-ico { width: 100%; height: 100%; object-fit: contain; }
.ip-cat { display: flex; flex-direction: column; align-items: stretch; gap: 3px; margin: 3px 0; padding: 2px 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); } .ip-cl { flex: none; font: 700 10px var(--font-sans, 'DM Sans', sans-serif); line-height: 1.15; color: var(--muted, #6a5a3a); text-transform: uppercase; letter-spacing: .02em; }
.ip-units { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 4px; padding-top: 8px;align-items: center; justify-items: stretch; } .ip-item.unit { position: relative; margin: 0; padding: 1px 2px; gap: 0; min-width: 0; height: 28px; justify-content: center; border-color: transparent; background: rgba(255,255,255,.55); } .ip-item.unit:hover { border-color: var(--accent); }
.ip-item.unit .ip-ico { width: 22px; height: 22px; font-size: 18px; display: flex; align-items: center; justify-content: center; } .ip-item.unit .ip-ico.wide { width: 40px; height: 31px; } .ip-item.unit .ip-ico.long { width: 64px; height: 46px; } .ip-item.unit .ip-ico.long img { object-fit: cover; } .ip-x { position: absolute; top: -4px; right: -3px; width: 13px; height: 13px; padding: 0; border: 1px solid rgba(0,0,0,.35); border-radius: 50%; background: #fff; color: #7a2a1a; font: 800 10px/11px var(--font-sans, 'DM Sans', sans-serif); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; } .ip-drop.dx { width: 15px; height: 15px; padding: 0; border-radius: 50%; font-size: 10px; line-height: 13px; color: #7a2a1a; text-align: center; }
.ip-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px 2px; font: 600 14px var(--font-sans, 'DM Sans', sans-serif); } .ip-total b { font-weight: 800; }
.ip-x.no { color: #999; border-color: rgba(0,0,0,.2); }
.ip-x:hover { background: #ffd9d0; } .ip-item.unit .ip-ico svg { width: 100%; height: 100%; } .ip-item.unit .ub { position: absolute; left: 3px; bottom: 1px; height: 2px; background: #e0b84c; border-radius: 1px; max-width: calc(100% - 6px); } .ip-more { font-size: 10px; color: var(--muted); }
.ip-zone.near .ip-cat { cursor: pointer; }
.ip-drop { margin-left: auto; font: 600 10px var(--font-sans, 'DM Sans', sans-serif); padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #222; cursor: pointer; } .ip-drop:hover { border-color: var(--accent); }
#dropPop { position: fixed; z-index: 60; background: #fff; color: #222; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 6px 20px rgba(0,0,0,.25); font: 600 12px 'DM Sans', sans-serif; display: flex; flex-direction: column; gap: 6px; width: 190px; } #dropPop .row { display: flex; gap: 6px; align-items: center; } #dropPop input[type=range] { flex: 1; } #dropPop button { font: 600 10px 'DM Sans', sans-serif; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #222; cursor: pointer; } .ip-item.child { background: var(--panel); margin-left: 8px; }
.ip-item .qty { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted); } .ip-item small { color: var(--muted); font-size: 10px; }
.ip-kids { flex-basis: 100%; min-height: 14px; border-radius: 5px; } .ip-empty { color: var(--muted); font-style: italic; padding: 0 4px; }
.ip-ghost { position: fixed; z-index: 90; pointer-events: none; padding: 3px 8px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; transform: translate(-50%, -130%); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.ip-tip { position: fixed; z-index: 91; pointer-events: none; padding: 3px 8px; border-radius: 6px; background: rgba(20,28,22,.92); color: #fff; font-size: 12px; max-width: 220px; transform: translate(12px, 14px); }
/* before you let go: a tick and green when the drop works there, a cross and red when it does not (the map outlines the same thing) */
.ip-tip.ok { box-shadow: inset 3px 0 #4fd160; } .ip-tip.ok::before { content: "\2713\a0"; color: #7fe58b; font-weight: 700; }
.ip-tip.no { box-shadow: inset 3px 0 #e8503a; } .ip-tip.no::before { content: "\2717\a0"; color: #ff8a75; font-weight: 700; }
body.mobile .invpanel { width: 150px; font-size: 10px; }
.ip-ico { width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center; font-size: 18px; line-height: 1; } .ip-ico svg { width: 26px; height: 26px; }
.ip-main { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; min-width: 0; } .ip-main span.nm { flex: 1; min-width: 0; }
.ip-bar { flex: 1 1 100%; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 1px 0 0; } .ip-bar i { display: block; height: 100%; border-radius: 3px; }
.ip-cap { flex: 1 1 100%; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.ip-cartons { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; } .ip-cartons svg { width: 34px; height: 24px; }
.track { height: 20px; border-radius: 10px; margin: 8px 0 6px; background: linear-gradient(90deg, #16204a, #f7d868); border-color: rgba(0,0,0,.25); }
.track i { top: -3px; width: 26px; height: 26px; background: none; border-radius: 0; transform: translateX(-13px); display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.track i svg { width: 26px; height: 26px; display: block; }
.chips .wxcard, .chips .tmcard { flex: 1.25 1 128px; display: flex; align-items: center; gap: 8px; padding: 3px 10px; min-height: 56px; position: relative; overflow: hidden; }
.chips .wxcard svg { width: 24px; height: 52px; flex: none; } .chips .tmcard svg { width: 50px; height: 50px; flex: none; }
.wx-t, .tm-t { display: grid; line-height: 1.15; min-width: 0; font-family: var(--font-display); }
.wx-t b, .tm-t b { font-size: 18px; font-variant-numeric: tabular-nums; } .wx-t small, .tm-t small { font-family: var(--font-body); font-size: 10px; font-weight: 600; }
.wx-t .wx { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mobile .chips .wxcard, body.mobile .chips .tmcard { min-height: 44px; padding: 2px 6px; gap: 4px; } body.mobile .chips .wxcard svg { height: 40px; width: 18px; } body.mobile .chips .tmcard svg { width: 38px; height: 38px; } body.mobile .wx-t b, body.mobile .tm-t b { font-size: 14px; }
body:not(.mobile) #cardPop svg { height: 28px; max-width: 56px; }
#cardPop { align-self: stretch; }
.ip-toolrow { display: flex; align-items: center; gap: 4px; } .ip-toolrow .ip-item { flex: 1; min-width: 0; }
.ip-up { flex: none; width: 22px; height: 22px; padding: 0; border: 1px solid rgba(0,0,0,.25); border-radius: 6px; background: #fff; color: #555; font-size: 10px; cursor: pointer; } .ip-up:hover { background: #e8f4e0; }
.ip-pk { margin-top: 6px; }

/* the Build panel: the Inventory's twin in the top left corner. Its header switches building on and off (orange while on, as is the outline
   round the board); under it each kind of piece is a section that opens and shuts, its pieces one to a row with how many you carry and how
   many the truck holds. Move, Rotate and Remove are a toolbar along the top of the board while you build. */
:root { --build: #e0801c; }
.buildpanel { left: 6px; right: auto; width: 232px; z-index: 7; }      /* in front of the day's summary card (#dayCard), as Craft is */
/* the panels' titles (Build, Inventory, the flock) look alike; the Build one turns orange while you build */
.invpanel > .ip-h { border-radius: 7px; padding: 2px 8px; margin: -2px -5px 0; background: color-mix(in srgb, var(--panel) 92%, transparent); }
.buildpanel.on .ip-h { background: var(--build); color: #fff; }
.buildpanel .ip-h .bh-k { font-size: 11px !important; font-weight: 500; opacity: .7; margin-left: 6px; }
.buildpanel.on .ip-h .bh-k { opacity: .9; }
#buildTools[hidden] { display: none; }
.buildpanel .build-hint { margin: 8px 2px 2px; font-size: 12px !important; line-height: 1.4; color: var(--muted); }
.buildpanel .build-hint[hidden] { display: none; }
.bm-sec { margin-top: 6px; }
.bm-list { display: grid; gap: 2px; margin-top: 2px; }
.bm-item { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--fg); cursor: pointer; text-align: left; font: inherit; }
.bm-item:hover { background: color-mix(in srgb, var(--zc, #888) 14%, transparent); }
.bm-item[aria-pressed="true"] { background: var(--zc, #888); color: #fff; }
.bm-item.none { opacity: .45; filter: grayscale(1); }      /* none with you: it can still be picked, and says so */
.bm-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-ico { flex: none; display: inline-block; width: 20px; height: 20px; }
.bm-ico img.itm, .bm-ico svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.bm-item b { flex: none; font-family: var(--font-mono) !important; font-weight: 500; font-size: 12px !important; opacity: .85; }
.bm-find { width: 100%; box-sizing: border-box; margin-top: 6px; font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: #111; }
.bm-none { font-size: 12px; color: var(--muted); }
.adjustbar { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: color-mix(in srgb, var(--panel) 78%, transparent); backdrop-filter: blur(3px); border: 2px solid var(--build); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.adjustbar[hidden] { display: none; }
.adjustbar .bm-item { width: auto; padding: 4px 12px; border-color: var(--line); background: var(--panel); --zc: #2f8f8a; }
.adjustbar .bm-item[aria-pressed="true"] { background: var(--zc); color: #fff; }
body.building .stage { border-color: var(--build) !important; box-shadow: 0 0 0 2px var(--build), 0 6px 14px rgba(0,0,0,.25); }
/* the toolbar takes the top of the board: messages that sit there move down below it */
body.building #toast, body.building #custPops { margin-top: 44px; }
body.building #tutBox { margin-top: 44px; }
/* the layout mode's bar of buttons (press L in the game; see docs/LAYOUT.md) */
#layoutPanel { position: absolute; left: 50%; transform: translateX(-50%); top: 8px; z-index: 7; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 94%; padding: 6px 10px; border-radius: 12px; background: rgba(30, 36, 28, .88); color: #fff; font: 600 12px var(--font-sans, 'DM Sans', sans-serif); }
#layoutPanel[hidden] { display: none; }
#layoutPanel b { font-size: 14px; } #layoutPanel span { opacity: .85; margin-right: 4px; }
#layoutPanel button { font: 700 12px var(--font-sans, 'DM Sans', sans-serif); padding: 4px 9px; border-radius: 8px; border: 1px solid #c9b98a; background: #fffaf0; color: #2a2208; cursor: pointer; }
#layoutPanel { flex-direction: column; align-items: stretch; } #layoutPanel .lay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#layoutPanel .lay-k { font-size: 10px; text-transform: uppercase; opacity: .7; margin: 0 0 0 6px; } #layoutPanel button[aria-pressed=true] { background: #ffd65a; }
#layoutPanel button img { width: 20px; height: 20px; vertical-align: middle; margin-right: 4px; image-rendering: pixelated; }
#layMini { display: block; align-self: center; border-radius: 6px; cursor: pointer; image-rendering: pixelated; }
#layoutPanel button[aria-pressed="true"] { background: #ffd65a; }
body.laying #invPanel, body.laying #tutBox, body.laying #ticker, body.laying #nearPanels { visibility: hidden; }      /* the layout mode has the map to itself */
/* the version, small at the foot of the board */
#verRow { position: absolute; right: 8px; bottom: 3px; z-index: 6; display: flex; align-items: center; gap: 6px; }      /* the debug bug and the version
#ver { font: 600 10px 'DM Sans', sans-serif; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; }      /* the version, beside the frame rate */

/* the tool in use: a green row with an arrow pointing at it (30-inventory-motion); the "Which tool?" menu beside the Inventory (26m) */
.ip-toolrow { position: relative; border-radius: 9px; cursor: pointer; } .ip-toolrow:hover { background: rgba(120,190,90,.12); }
.ip-toolrow.on { background: #b6ec7a; } .ip-toolrow.on::before { content: ''; position: absolute; left: -16px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left: 11px solid #7ad21f; border-right: 0; }
#toolMenu { position: fixed; z-index: 70; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
#toolMenu .tm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
#toolMenu .tm-x { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; line-height: 18px; padding: 0; }
#toolMenu .tm-tool { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font: inherit; font-size: 14px; text-align: left; }
#toolMenu .tm-tool:hover { background: #b6ec7a; } #toolMenu .tm-tool img { width: 30px; height: 30px; } #toolMenu .tm-tool small { display: block; font-size: 10px; color: var(--muted); }
.dropchip .dico img.tool-ico, .dropchip .dico img.itm { width: 22px; height: 22px; display: block; }

/* a carried container is a big picture with its level on it (29) */
.ip-item .ip-ico.big { width: 44px; height: 44px; } .ip-item .ip-ico.big svg { width: 44px; height: 44px; }
.ip-kids.none { min-height: 0; padding: 0; margin: 0; border: 0; }
/* a level in the Inventory (a container's contents, a can's label, a section's bar) eases to its new height (animateLevels, 29) */
[data-lv] { transition: transform .6s ease, width .6s ease; }
/* what is inside a container (eggs in the basket, fish in the bucket) sits indented under it, on a faint line, so it reads as inside */
#ipMine .ip-kids.ip-zone:not(.none), #nearPanels .ip-kids.ip-zone:not(.none) { margin-left: 22px; padding-left: 8px; border-left: 2px solid rgba(60,40,20,.18); border-radius: 0 8px 8px 0; }
#fps { font: 600 10px 'DM Sans', sans-serif; color: rgba(255,255,255,.75); text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; }      /* how smoothly it runs */

/* the Drop buttons: a row along the top of the board, just left of the Inventory (or of the Flock, when that is open); placeDropChips sets right */
.dropbar { position: absolute; top: 6px; right: 268px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; z-index: 6; max-width: 50%; }
.dropbar:empty { display: none; }
/* the first-time tip for a tool: a dark bubble beside its row in the Inventory, its arrow pointing at it (26m) */
#toolTip { position: fixed; z-index: 70; max-width: 240px; padding: 8px 12px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 14px;
  line-height: 1.35; box-shadow: 0 3px 12px rgba(0,0,0,.35); pointer-events: none; }
#toolTip::after { content: ''; position: absolute; right: -7px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right: 0;
  border-left-color: var(--fg); }
/* the dashboard while you drive (19h): the key, the light switch and the gauges in a row along the bottom of the board, the tractor's throttle too */
/* the dashboard, and beside it the seat window (19h4), side by side along the bottom */
#dashRow { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 6; display: flex; align-items: flex-end; gap: 6px;
  max-width: calc(100% - 12px); pointer-events: none; }
#dashRow > * { pointer-events: auto; }
#seatBox { flex: none; padding: 3px 6px 4px; border-radius: 12px; background: rgba(28,30,34,.82); box-shadow: 0 2px 10px rgba(0,0,0,.4); color: #f4f2ea; }
#seatBox[hidden] { display: none; }
#seatBox h4 { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 0; font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; user-select: none; }
#seatBox h4 .fold { font-size: 14px; line-height: 1; }
#seatBox svg { display: block; margin-top: 2px; }
#seatBox .seat-role { margin: 1px 0 0; font-size: 8px; text-align: center; letter-spacing: .06em; text-transform: uppercase; }
#dash { display: flex; align-items: flex-end; gap: 4px; min-width: 0;
  padding: 4px 8px; border-radius: 12px; background: rgba(28,30,34,.82); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
#dash[hidden] { display: none; }
#dash .gauge, #dash .dial { flex: 0 1 64px; min-width: 40px; } #dash .dial { cursor: pointer; } #dash svg { display: block; width: 100%; height: auto; }
#dash #throttle { flex: 0 1 230px; min-width: 120px; cursor: pointer; touch-action: none; } #dash #throttle[hidden], #dash .gauge[hidden] { display: none; }
#dash .lamps { flex: 0 1 44px; min-width: 30px; align-self: center; }
#dash .dial.wide { flex-basis: 86px; } #dash .dial.lift { flex-basis: 44px; } #dash .dial.loader { flex-basis: 52px; } #dash .dial[hidden] { display: none; }
.trackrow { position: relative; }
/* the Forecast and the Calendar: little panels that drop from their buttons by the day bar */
.toppanel { position: absolute; top: 100%; right: 0; margin-top: 6px; z-index: 80; width: min(420px, calc(100vw - 32px)); padding: 10px 12px; border-radius: 12px;
  background: var(--panel, #fffdf6); color: var(--fg); box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 12px; }
.toppanel[hidden] { display: none; } #forecast .fc-h { display: block; font-size: 14px; margin-bottom: 4px; }
.toppanel .fc-note { display: block; margin-top: 6px; opacity: .7; }
/* the calendar: a plain month, days with a coloured dot for what happens that day and a coloured band for the months to sow */
#calendar .cal-h { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; text-align: center; font-size: 14px; margin-bottom: 6px; }
#calendar .cal-h .btn { padding: 2px 0; font-size: 14px; }
#calendar .cal-w, #calGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
#calendar .cal-w i { font-style: normal; text-align: center; font-size: 10px; opacity: .6; }
#calGrid .cal-d { position: relative; height: 40px; border-radius: 6px; background: rgba(0,0,0,.035); padding: 2px 4px; overflow: hidden; }
#calGrid .cal-d em { font-style: normal; font-size: 10px; opacity: .8; }
#calGrid .cal-d.past { opacity: .4; } #calGrid .cal-d.today { box-shadow: inset 0 0 0 2px #e08a2c; }
#calGrid .cal-d b { position: absolute; left: 4px; right: 4px; top: 15px; display: flex; flex-wrap: wrap; gap: 2px; }
#calGrid .cal-d s { width: 9px; height: 9px; border-radius: 50%; }
#calGrid .cal-d p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
#calGrid .cal-d u { display: block; height: 3px; opacity: .75; }
#calKey { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
#calKey div { display: grid; grid-template-columns: 12px 1fr; gap: 6px; align-items: start; } #calKey i { width: 10px; height: 10px; border-radius: 3px; margin-top: 2px; }
#calKey .cal-none { display: block; opacity: .7; }
#forecast .fc-day { display: grid; grid-template-columns: 74px 22px 1fr auto auto; gap: 2px 8px; align-items: center; padding: 4px 0; border-top: 1px solid rgba(0,0,0,.08); }
#forecast .fc-day small { grid-column: 1; grid-row: 2; opacity: .7; } #forecast .fc-day b { grid-column: 1; }
#forecast .fc-ico { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; } #forecast .fc-day > span:nth-of-type(2) { grid-column: 3; grid-row: 1 / span 2; }
#forecast .fc-t { grid-column: 4; grid-row: 1 / span 2; font-weight: 700; } #forecast .fc-r { grid-column: 5; grid-row: 1 / span 2; opacity: .8; }
#netCode { width: 100%; font: 10px monospace; word-break: break-all; margin: 4px 0; } #netCode[hidden] { display: none; } #netIn { min-width: 0; padding: 6px 8px; font-size: 14px; }
/* the network rows: three buttons, then the code box as wide as it can be beside Go */
.set-row.net { grid-template-columns: 130px 1fr 1fr 90px; } .set-row.net-code { grid-template-columns: 1fr 90px; }
#netList { display: flex; flex-direction: column; gap: 4px; margin: 4px 0; } #netList[hidden] { display: none; } #netList .btn { text-align: left; }
#forecast .fc-soil { padding: 6px 0 0; border-top: 1px solid rgba(0,0,0,.08); }

/* ---------- Craft (33b): beside Build; one row of boxes, ingredients + container + tool = what it makes ---------- */
.craftpanel { left: 270px; right: auto; z-index: 7; }      /* beside Build; its width and type sizes: type-and-colour.css, after the panels' own */
.craftpanel.on .ip-h { background: #7b5a36; color: #fff; }
#craftBody[hidden] { display: none; }
.cr-row { display: flex; align-items: flex-start; gap: 6px; padding: 8px 4px 4px; }
.cr-col { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 6px 6px; border-radius: 8px; }
/* each column a faint colour of its own (the owner) */
.cr-col.ing { background: rgba(240, 183, 58, .10); } .cr-col.box { background: rgba(88, 140, 200, .10); }
.cr-col.tool { background: rgba(80, 160, 90, .10); } .cr-col.out { background: rgba(123, 90, 54, .12); }
.cr-col > b { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cr-op { align-self: flex-start; margin-top: 36px; font: 700 18px var(--font-display); color: #7b5a36; }      /* level with the first row */
.cr-box { width: 64px; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px;
  border: 1.5px dashed #c9b98a; border-radius: 8px; background: #fffaf0; cursor: pointer; }
.cr-box.full { border-style: solid; background: #fff; }
.cr-box.more:not(.full) { border-style: dotted; opacity: .45; }      /* room for a second and third tool */ .cr-box.picking { border-color: #e0a82e; box-shadow: 0 0 0 2px #f0b73a; }
.cr-box small { font-size: 10px; line-height: 1.1; text-align: center; color: #4a3412; }
.cr-box img, .cr-ch img { width: 26px; height: 26px; object-fit: contain; }
.cr-box.result { cursor: default; border-color: #7b5a36; }
.cr-emo { font-size: 20px; line-height: 1; }
/* GO, big and orange as the main buttons are, in the middle; Reset small to its left */
.cr-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 4px 6px; }
.cr-go { padding: 6px 22px; border-radius: 10px; background: #f0b73a; border: 1.5px solid #b9851a; color: #2a2208; cursor: pointer; }
.cr-go:hover:not(:disabled) { background: #f4c24f; } .cr-go:disabled { opacity: .45; cursor: default; }
.cr-reset { justify-self: start; padding: 2px 8px; border-radius: 7px; border: 1px solid #c9b98a; background: #fffaf0; color: #6a5a30; cursor: pointer; }
.cr-why { margin: 2px 0 0; max-width: 140px; font-size: 10px; color: #9a2a1a; text-align: center; }
.cr-pick { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 4px 4px; border-top: 1px solid #e6dcc0; }
.cr-ch { display: flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px 3px 4px; border: 1px solid #c9b98a; border-radius: 8px; background: #fff;
  cursor: pointer; } .cr-ch small { color: var(--muted); }
/* making it: a bar that fills, then a poof over the result, which shows faintly until it is made */
.cr-box.result.ghost > *:not(.cr-poof) { opacity: .35; filter: grayscale(1); }
.cr-box.result { position: relative; }
.cr-box.result.made { box-shadow: 0 0 0 2px #f0b73a; }
.cr-poof { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: #b9851a; white-space: nowrap; pointer-events: none;
  animation: crPoof .9s ease-out forwards; }
@keyframes crPoof { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.6); } 25% { opacity: 1; transform: translate(-50%, 0) scale(1.25); }
  100% { opacity: 0; transform: translate(-50%, -12px) scale(1); } }
.cr-bar { position: relative; height: 6px; margin: 0 4px 4px; border-radius: 3px; background: #b9b0a8; overflow: hidden; }      /* the width of the panel */
.cr-bar i { display: block; height: 100%; width: 0; background: #8b5cf6; animation: crFill linear forwards; }
.cr-why { margin: 0 auto 2px; text-align: center; }
@keyframes crFill { from { width: 0; } to { width: 100%; } }
/* the recipe book */
.cr-foot { display: flex; justify-content: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.18); }
.cr-bookbtn { cursor: pointer; font: inherit; font-size: 12px; color: inherit; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 12px; border-radius: 8px; } .cr-bookbtn:hover { background: rgba(255,255,255,.24); }
.cr-book { display: flex; flex-direction: column; gap: 4px; padding: 8px 4px 6px; border-bottom: 1px solid #e6dcc0; }
.cr-rec { display: flex; align-items: center; gap: 3px; padding: 4px 8px; border: 1px solid #c9b98a; border-radius: 8px; background: #fffaf0; cursor: pointer;
  white-space: nowrap; } .cr-rec:hover { background: #fff1c8; }
.cr-rec i { font-style: normal; color: var(--muted); margin: 0 2px; } .cr-rec b { margin-left: 6px; }
.cr-bk img { width: 18px; height: 18px; }

/* the Phone page (19k): Raven, and the lumber yard's order form, a row a thing with its price and - count + */
#phoneBody h3 { margin: 12px 0 2px; font-size: 18px; } #phoneBody p { margin: 2px 0 8px; font-size: 12px; color: var(--muted); }
.ph-row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.ph-ico { display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ph-name b { display: block; font-size: 14px; } .ph-name small { display: block; font-size: 12px; color: var(--muted); }
.ph-price { font: 700 14px 'JetBrains Mono', monospace; }
.ph-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; }
#phoneBody .ph-due { color: var(--fg); font-weight: 600; }
#phoneBody .ip-price .pv { display: inline-block; min-width: 26px; text-align: center; }
/* the generator's page (26y) */
#genBody p { margin: 4px 0 8px; font-size: 14px; } #genBody h3 { margin: 12px 0 4px; font-size: 18px; }
.gen-gauges { display: flex; gap: 16px; font: 700 14px 'JetBrains Mono', monospace; margin: 6px 0; }
.gen-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gen-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); font-size: 14px; }
.gen-row small { font-size: 12px; color: var(--muted); } .gen-row.far { opacity: .55; }
#genBody .gen-warn { color: #b8321e; font-weight: 700; } #genBody details { margin-top: 10px; font-size: 12px; } #genBody summary { font-size: 14px; cursor: pointer; }
/* the wild bees' page (26z) */
#beeBody p { margin: 4px 0 8px; font-size: 14px; } #beeBody details { margin: 8px 0; font-size: 12px; } #beeBody summary { font-size: 14px; cursor: pointer; }
#beeBody li { margin: 3px 0; } #beeBody .bee-note { color: var(--muted); font-size: 12px; }
/* a day on the calendar, on its morning (showBanner, 25e): a big banner across the top of the board */
#banner { position: absolute; left: 50%; top: 180px; z-index: 8; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 28px; border-radius: 16px; background: rgba(255,250,236,.97);
  border: 3px solid #e8a33c; box-shadow: 0 6px 24px rgba(0,0,0,.3); max-width: min(560px, 90%); text-align: center; cursor: pointer; }
#banner.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#banner b { font-size: 30px; color: #2b2418; } #banner span { font-size: 14px; color: #5a4a30; }
/* the rototiller's dashboard (26w2): a bar above the to-do strip while you push it */
#rotoDash { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; background: rgba(40,30,26,.9); color: #fff; font-size: 12px; }
#rotoDash[hidden] { display: none; } #rotoDash b { font-size: 14px; color: #ff8a6a; } #rotoDash .rd-g { font: 700 12px 'JetBrains Mono', monospace; }
#rotoDash button { font: 600 12px 'DM Sans', sans-serif; padding: 5px 9px; border-radius: 8px; border: 1px solid #6a5a50; background: #4a3a32; color: #fff; cursor: pointer; }
#rotoDash button.primary { background: #e8a33c; border-color: #e8a33c; color: #2b2418; } #rotoDash button:disabled { opacity: .45; cursor: default; }
#rotoDash input[type=range] { width: 80px; vertical-align: middle; }
/* the Talk panel (33c): beside Craft, one of Build, Craft and Talk open at a time; its sentence is a row of nodes */
.talkpanel { left: 410px; right: auto; z-index: 7; width: 320px; } .talkpanel.on .ip-h { background: #2f6a8a; color: #fff; }
#talkBody .tk-tabs, #talkBody .tk-sent, #talkBody .tk-col { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 6px 0; }
#talkBody .tk-col small { width: 100%; font-size: 12px; color: var(--muted); }
.tk-node { font: 600 12px 'DM Sans', sans-serif; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #2b2418; cursor: pointer; }
.tk-node.on { background: #2f6a8a; border-color: #2f6a8a; color: #fff; } .tk-node.fixed { background: #e8e0cc; cursor: default; }
#talkBody input[type=number] { width: 64px; font-size: 12px; } #talkBody .tk-items { max-height: 120px; overflow-y: auto; }
/* the Call tab, greyed out for now with "coming soon!" across it (33c) */
.tk-soon { position: relative; margin: 6px 0; padding: 10px 6px; }
.tk-soon-body { display: flex; flex-wrap: wrap; gap: 5px; opacity: .35; filter: grayscale(1); pointer-events: none; }
.tk-soon b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 18px 'DM Sans', sans-serif;
  color: #2b2418; transform: rotate(-6deg); text-shadow: 0 0 6px #fff, 0 0 2px #fff; pointer-events: none; }
#talkBody .tk-note { font-size: 12px; color: var(--muted); } #talkBody .tk-log p { margin: 3px 0; font-size: 12px; padding: 4px 8px; border-radius: 8px; }
#talkBody .tk-log p.me { background: #e8f0f4; text-align: right; } #talkBody .tk-log p.them { background: #f4eedc; }
/* a conversation (33c): what they say in a speech bubble over their head (#talkSay), your answers in one over yours (#talkCard), white like
   the pills, each pointing down at its speaker (--tip, placeTalkCard); on the phone their words sit at the top of the board */
.bubble { position: absolute; z-index: 9; transform: translate(-50%, -100%); width: max-content; max-width: min(320px, 90%); padding: 8px 12px;
  border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 4px 14px rgba(0,0,0,.25); font: 600 12px 'DM Sans', sans-serif; color: #241900; }
.bubble[hidden] { display: none; }
.bubble::after { content: ''; position: absolute; left: var(--tip, 50%); bottom: calc(-7px - var(--tail, 0px)); margin-left: -6px; border: 6px solid transparent;
  border-bottom: 0; border-top-color: rgba(255,255,255,.97); }
/* a long pointer: a stalk from the bubble down to the speaker when the bubble had to move up out of the way (placeTalkCard, 33c) */
.bubble::before { content: ''; position: absolute; left: var(--tip, 50%); top: 100%; height: var(--tail, 0px); width: 3px; margin-left: -1.5px;
  background: rgba(255,255,255,.97); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.bubble.phone::before { display: none; }
.bubble.tailed::after { display: none; }      /* the stalk alone points at the speaker */
.bubble.phone { transform: translate(-50%, 0); } .bubble.phone::after { display: none; }
.bubble.answers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 6px 8px; }
.bubble.answers .btn { font-size: 12px; padding: 4px 10px; } .bubble.answers input { width: 64px; font-size: 12px; }
/* Craft (33b): the stove's heat, the green done window on the bar, the boxes fading after a make, the Recent row, the picture flying home */
.cr-heat, .cr-recent { display: flex; align-items: center; gap: 5px; margin: 2px 4px 6px; font-size: 12px; }
.cr-heat button { font: 600 12px 'DM Sans', sans-serif; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.cr-heat button.on { background: #c8501e; border-color: #c8501e; color: #fff; }
.cr-recent button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 2px 4px; cursor: pointer; }
.cr-bar em { position: absolute; top: 0; bottom: 0; z-index: 1; background: rgba(60,200,90,.55); box-shadow: inset 0 0 0 1px #2f8a3a; }
.cr-bar i { position: relative; }
.cr-box.fade { opacity: .15; transition: opacity .6s; }
.cr-fly { transition: transform .7s ease-in, opacity .7s ease-in; font-size: 22px; }
.buildpanel.on, .craftpanel.on, .talkpanel.on { z-index: 8; }      /* the open one of Build, Craft and Talk in front of the others' headings */

/* the lessons' arrow at a control on the screen (placeTutArrow, 26k3): yellow, pointing down at it, bobbing */
#tutArrow { position: fixed; z-index: 30; width: 14px; height: 24px; transform: translate(-50%, -100%); pointer-events: none; animation: tutBob 0.6s ease-in-out infinite alternate; }
#tutArrow::before { content: ''; position: absolute; left: 4px; top: 0; width: 6px; height: 12px; background: #ffd24a; border: 1px solid #7a5a10; border-bottom: 0; }
#tutArrow::after { content: ''; position: absolute; left: -1px; top: 12px; border: 8px solid transparent; border-bottom: 0; border-top: 12px solid #ffd24a; }
#tutArrow[hidden] { display: none; }
@keyframes tutBob { from { margin-top: -6px; } to { margin-top: 0; } }
#tutBox .tutnav { display: flex; gap: 8px; } #tutBox .tutbig[disabled] { opacity: .35; cursor: default; }

/* your cell phone ringing (33c): a card in the corner above the to-do strip, who is calling, Answer and Decline */
#cellCall { position: absolute; right: 16px; bottom: 76px; z-index: 9; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px;
  background: rgba(255,255,255,.97); box-shadow: 0 4px 14px rgba(0,0,0,.3); font: 600 12px 'DM Sans', sans-serif; color: #241900; animation: cellShake 2s ease-in-out infinite; }      /* a short buzz every two seconds, still between (easy to press) */
#cellCall[hidden] { display: none; } #cellCall .cell-ic { font-size: 22px; } #cellCall small { display: block; font-weight: 500; opacity: .7; }
#cellCall .btn { font-size: 12px; padding: 4px 10px; } #cellCall .btn.go { background: #22c84a; border-color: #179a36; color: #10301a; }
@keyframes cellShake { 0%, 16%, 100% { transform: rotate(0); } 4%, 12% { transform: rotate(-1.5deg); } 8% { transform: rotate(1.5deg); } }
