/* Pockling: soft, round and warm. Everything here floats over the WebGL stage. */

:root {
  --cream: #fff8ef;
  --paper: #fffdf9;
  --ink: #4a3540;
  --soft: #8c7480;
  --line: rgba(120, 80, 90, 0.14);
  --pink: #ff6f97;
  --pink-2: #ffa6be;
  --gold: #ffc247;
  --mint: #4fcfa8;
  --sky: #5eb8ff;
  --plum: #9a7bea;
  --shadow: 0 8px 24px rgba(80, 40, 50, 0.16), 0 2px 6px rgba(80, 40, 50, 0.1);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --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);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #ffe9d6;
  color: var(--ink);
  font-family: var(--font);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: block;
  touch-action: none;
}

#safe-probe {
  position: fixed;
  visibility: hidden;
  padding-top: var(--safe-t);
  padding-bottom: var(--safe-b);
}

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  zoom: var(--ui, 1);
}
#ui[hidden] { display: none; }
#ui button, #ui input, #ui a, #ui .tap { pointer-events: auto; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
button:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.noscript { text-align: center; padding: 40px 16px; }

/* ── Loading and scene changes ───────────────────────────────────────────────────────────────── */

#veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #fff4e6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}
#veil.on { opacity: 1; pointer-events: auto; }

#loader {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--soft);
  font-weight: 700;
  transition: opacity 0.3s;
}
#loader.done { opacity: 0; pointer-events: none; }
#loader p { margin: 0; }
.loader-egg {
  width: 74px;
  height: 92px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 34% 28%, #fffdf6, #ffe7c9 58%, #f5c79c);
  box-shadow: 0 12px 22px rgba(160, 100, 70, 0.28);
  animation: wobble 0.9s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes wobble { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

/* ── Top bar ─────────────────────────────────────────────────────────────────────────────────── */

#topbar {
  position: absolute;
  top: calc(var(--safe-t) + 8px);
  left: calc(var(--safe-l) + 10px);
  right: calc(var(--safe-r) + 10px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.spacer { flex: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 13px 5px 8px;
  background: rgba(255, 253, 249, 0.93);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.12s;
}
.chip:active, .round:active, .dock-btn:active, .side-btn:active { transform: scale(0.93); }

.level-heart {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffa6be, #ff6f97);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 -2px 3px rgba(190, 40, 90, 0.35);
}
.name-box { display: flex; flex-direction: column; gap: 3px; min-width: 60px; text-align: left; }
.name-box .nm { line-height: 1; max-width: 118px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp { display: block; height: 5px; border-radius: 3px; background: rgba(255, 111, 151, 0.2); overflow: hidden; }
.xp i { display: block; height: 100%; border-radius: 3px; background: var(--pink); transition: width 0.4s; }

.berry-chip { padding-left: 11px; color: #c2355f; }
.berry-chip .pop { display: inline-block; }
.berry-chip .pop.go { animation: popIn 0.34s ease; }
@keyframes popIn { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }

.round {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 249, 0.93);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 19px;
  transition: transform 0.12s;
}

/* ── Need rings ──────────────────────────────────────────────────────────────────────────────── */

#needs {
  position: absolute;
  top: calc(var(--safe-t) + 58px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.ring {
  --v: 50;
  --c: var(--pink);
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, 0.55) 0);
  box-shadow: 0 3px 10px rgba(80, 40, 50, 0.16);
  transition: --v 0.4s;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--paper);
}
.ring span { position: relative; font-size: 20px; line-height: 1; }
.ring.low { animation: throb 1.2s ease-in-out infinite; --c: #ff5a5f; }
@keyframes throb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* ── Side buttons ────────────────────────────────────────────────────────────────────────────── */

#side {
  position: absolute;
  right: calc(var(--safe-r) + 10px);
  bottom: calc(var(--safe-b) + 112px);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.side-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.93);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 23px;
  transition: transform 0.12s;
}
.side-btn.on { background: linear-gradient(180deg, #ffa6be, #ff6f97); }

/* ── Dock ────────────────────────────────────────────────────────────────────────────────────── */

#dock {
  position: absolute;
  left: calc(var(--safe-l) + 10px);
  right: calc(var(--safe-r) + 10px);
  bottom: calc(var(--safe-b) + 12px);
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 7px;
  background: rgba(255, 253, 249, 0.94);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 7px;
  border-radius: 21px;
  font-size: 12px;
  font-weight: 800;
  color: var(--soft);
  transition: transform 0.12s, background 0.15s;
}
.dock-btn .ico { font-size: 27px; line-height: 1.1; filter: drop-shadow(0 2px 2px rgba(80, 40, 50, 0.16)); }
.dock-btn.want { background: rgba(255, 111, 151, 0.14); color: #d9406e; }
.dock-btn.want .ico { animation: nudge 1.3s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-5px) rotate(-7deg); } 60% { transform: translateY(0) rotate(5deg); } }

/* ── Bottom panels ───────────────────────────────────────────────────────────────────────────── */

#tray {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 0 calc(var(--safe-b) + 10px);
  background: rgba(255, 253, 249, 0.96);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 26px rgba(80, 40, 50, 0.16);
  pointer-events: auto;
  animation: rise 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
#tray .tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 6px 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--soft);
}
.tray-row {
  display: flex;
  gap: 8px;
  overflow-x: hidden;
  padding: 2px 14px;
  touch-action: none;
}
.food {
  position: relative;
  flex: none;
  width: 76px;
  padding: 6px 2px 5px;
  border-radius: 18px;
  background: #fff4e8;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--soft);
  touch-action: none;
}
.food img { display: block; width: 52px; height: 52px; margin: 0 auto 2px; pointer-events: none; -webkit-user-drag: none; }
.food .price { color: #c2355f; }
.food.poor { opacity: 0.45; }
.food.fav::after { content: "💖"; position: absolute; top: 3px; right: 5px; font-size: 14px; }

@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Sheets: full panels for menus. */
#sheet-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(60, 30, 40, 0.28);
  pointer-events: auto;
  animation: fade 0.18s ease;
  z-index: 3;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
#sheet-wrap.see-pet { background: transparent; }
#ui:has(.see-pet) #needs { opacity: 0; }
@media (orientation: portrait) and (max-height: 760px) {
  /* Short phones: two rows that slide sideways, so there's room left to see the pet. */
  .see-pet .grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: 31%;
    overflow-x: auto;
    touch-action: pan-x;
    margin: 0 -16px;
    padding: 3px 16px;
    scrollbar-width: none;
  }
  .see-pet .muted { display: none; }
}
@media (orientation: landscape) {
  /* Wide screens: down the side, with the pet beside it. */
  #ui:has(.see-pet) #dock, #ui:has(.see-pet) #side { opacity: 0; }
  #sheet-wrap.see-pet { align-items: flex-end; justify-content: stretch; }
  #sheet-wrap.see-pet .sheet {
    flex: 1;
    width: 52%;
    max-height: none;
    border-radius: 28px 0 0 28px;
    padding-right: calc(var(--safe-r) + 16px);
    animation: none;
  }
}
#sheet-wrap.still, #sheet-wrap.still .sheet { animation: none; }
.sheet {
  max-height: 86dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  padding: 18px 16px calc(var(--safe-b) + 18px);
  box-shadow: 0 -10px 30px rgba(60, 30, 40, 0.24);
  animation: rise 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.08);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sheet h2 { margin: 0; font-size: 23px; font-weight: 900; }
.sheet h3 { margin: 16px 0 8px; font-size: 15px; font-weight: 900; color: var(--soft); }
.sheet p { margin: 6px 0; line-height: 1.4; }
.close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4e6da;
  font-size: 18px;
  font-weight: 900;
  color: var(--soft);
}
.muted { color: var(--soft); }
.center { text-align: center; }

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 18px;
  font-weight: 900;
  font-size: 17px;
  text-align: center;
  background: linear-gradient(180deg, #ff93b2, #ff6f97);
  color: #fff;
  box-shadow: 0 5px 0 #d84d78, 0 10px 18px rgba(216, 77, 120, 0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #d84d78; }
.btn.alt { background: #f7e9dd; color: var(--ink); box-shadow: 0 4px 0 #e2cfbf; }
.btn.alt:active { box-shadow: 0 1px 0 #e2cfbf; }
.btn + .btn { margin-top: 12px; }
.btn[disabled] { opacity: 0.5; }

/* Play cards. */
.play-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(80, 40, 50, 0.08);
  text-align: left;
  transition: transform 0.12s;
}
.play-card:active { transform: scale(0.97); }
.play-card .art {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: linear-gradient(180deg, #ffe8d3, #ffd4b5);
}
.play-card:nth-child(3n) .art { background: linear-gradient(180deg, #e1f5ff, #bfe6ff); }
.play-card:nth-child(3n + 1) .art { background: linear-gradient(180deg, #e6fbe9, #c5f1cf); }
.play-card b { display: block; font-size: 17px; font-weight: 900; }
.play-card small { display: block; color: var(--soft); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.play-card .best { color: #c2355f; font-weight: 800; }

/* Closet and shop tiles. */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.tab {
  flex: 1;
  padding: 9px 0;
  border-radius: 14px;
  background: #f4e6da;
  font-weight: 800;
  font-size: 14px;
  color: var(--soft);
}
.tab.on { background: var(--pink); color: #fff; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 9px;
}
.tile {
  position: relative;
  padding: 8px 4px 7px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(80, 40, 50, 0.08);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.12s;
}
.tile:active { transform: scale(0.95); }
.tile img { display: block; height: 56px; max-width: 80px; object-fit: contain; margin: 0 auto 3px; pointer-events: none; }
.tile.on { box-shadow: 0 0 0 3px var(--pink), 0 2px 8px rgba(80, 40, 50, 0.08); }
.tile .price { display: block; margin-top: 2px; color: #c2355f; }
.tile.locked { opacity: 0.66; }
.swatch { display: block; height: 56px; margin: 0 6px 5px; border-radius: 12px; }

/* Stamp book. */
.stamps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.stamp {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f7ebe0;
  font-size: 21px;
}
.stamp.today { box-shadow: 0 0 0 2.5px var(--pink); background: #fff; }
.stamp.empty { background: rgba(244, 230, 218, 0.45); }
.streak-big { font-size: 42px; font-weight: 900; color: var(--pink); line-height: 1; }

/* Settings rows. */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 9px 14px;
  margin-bottom: 7px;
  border-radius: 15px;
  background: var(--paper);
  font-weight: 800;
  text-align: left;
}
.row small { display: block; font-weight: 600; color: var(--soft); }
.switch {
  flex: none;
  width: 48px;
  height: 29px;
  border-radius: 15px;
  background: #e8d9cc;
  position: relative;
  transition: background 0.15s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.15s;
}
.switch.on { background: var(--mint); }
.switch.on::after { left: 22px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}
.stat { padding: 10px 4px; border-radius: 15px; background: var(--paper); text-align: center; }
.stat b { display: block; font-size: 20px; font-weight: 900; color: var(--pink); }
.stat span { font-size: 11px; font-weight: 800; color: var(--soft); }

.card-preview {
  display: block;
  width: min(62vw, 250px);
  margin: 2px auto 14px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(60, 30, 40, 0.24);
}

/* Toasts and banners. */
#toasts {
  position: absolute;
  top: calc(var(--safe-t) + 112px);
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 6;
}
.toast {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(74, 53, 64, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  animation: toastIn 2.8s ease both;
}
@keyframes toastIn {
  0% { opacity: 0; transform: translateY(-10px) scale(0.9); }
  8% { opacity: 1; transform: translateY(0) scale(1); }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}

.banner-wrap {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  background: rgba(60, 30, 50, 0.2);
}
.banner {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  width: min(82vw, 330px);
  padding: 18px 16px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(60, 30, 40, 0.28);
  text-align: center;
  pointer-events: auto;
  animation: bannerIn 0.36s cubic-bezier(0.2, 1.3, 0.4, 1);
  z-index: 7;
}
@keyframes bannerIn { from { opacity: 0; transform: translateX(-50%) scale(0.7); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.banner .big { font-size: 46px; line-height: 1.1; }
.banner h2 { margin: 4px 0; font-size: 23px; font-weight: 900; }
.banner p { margin: 4px 0 14px; color: var(--soft); font-weight: 700; }

/* Bedtime strip and game bars. */
#bedtime {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--safe-b) + 18px);
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
  color: #eef0ff;
  font-weight: 800;
}
#bedtime p { margin: 0 0 11px; text-shadow: 0 1px 8px rgba(0, 0, 40, 0.6); }

.gamebar {
  position: absolute;
  top: calc(var(--safe-t) + 8px);
  left: calc(var(--safe-l) + 10px);
  right: calc(var(--safe-r) + 10px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gamebar .score {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.93);
  box-shadow: var(--shadow);
  font-size: 18px;
  font-weight: 900;
  color: #c2355f;
}
.hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 36px);
  top: calc(var(--safe-t) + 66px);
  padding: 7px 14px;
  border-radius: 16px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  color: #fff;
  background: rgba(70, 40, 62, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.3s;
}

/* Bath tools. */
#tools {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-b) + 14px);
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: var(--shadow);
}
.tool {
  width: 74px;
  padding: 7px 0 6px;
  border-radius: 19px;
  font-size: 12px;
  font-weight: 800;
  color: var(--soft);
  text-align: center;
  transition: transform 0.12s, background 0.15s;
}
.tool .ico { display: block; font-size: 29px; line-height: 1.1; }
.tool.on { background: rgba(94, 184, 255, 0.2); color: #2c7fc9; }
.tool.next .ico { animation: nudge 1.2s ease-in-out infinite; }

/* Hatching: the egg picker. */
#hatch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 18px calc(var(--safe-b) + 22px);
  text-align: center;
}
#hatch h1 { margin: 0 0 4px; font-size: 27px; font-weight: 900; color: var(--ink); }
#hatch p { margin: 0 0 14px; color: var(--soft); font-weight: 700; }
#hatch-top {
  position: absolute;
  top: calc(var(--safe-t) + 34px);
  left: 18px;
  right: 18px;
  text-align: center;
}
#hatch-top h1 { margin: 0; font-size: 31px; font-weight: 900; line-height: 1.12; }
#hatch-top p { margin: 7px auto 0; max-width: 310px; color: var(--soft); font-weight: 700; line-height: 1.35; }
.name-input {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 54px;
  margin: 0 auto 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2.5px var(--pink-2);
  color: var(--ink);
  font: inherit;
  font-size: 21px;
  font-weight: 900;
  text-align: center;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}
.name-input:focus { box-shadow: inset 0 0 0 3px var(--pink); }
.name-picks { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.name-pick {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  font-weight: 800;
  font-size: 14px;
  color: var(--soft);
}
#hatch .btn { max-width: 320px; margin: 0 auto; }

/* Short screens and landscape. */
@media (max-height: 640px) {
  .ring { width: 38px; height: 38px; }
  .ring span { font-size: 17px; }
  #needs { gap: 7px; top: calc(var(--safe-t) + 54px); }
  .dock-btn { padding: 5px 0 4px; font-size: 11px; }
  .dock-btn .ico { font-size: 22px; }
  #side { bottom: calc(var(--safe-b) + 90px); }
  .side-btn { width: 42px; height: 42px; font-size: 19px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  #needs { top: calc(var(--safe-t) + 8px); left: 180px; right: 160px; }
  #dock { max-width: 400px; bottom: calc(var(--safe-b) + 6px); }
  #side { bottom: calc(var(--safe-b) + 8px); flex-direction: row; }
  .sheet { max-height: 92dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .ring.low, .dock-btn.want .ico, .tool.next .ico, .loader-egg { animation: none; }
}
.hint:empty {
  display: none;
}
