/* Layout idea: sky-blue dotted paper, doodled ink outlines, cardboard controls, one pink yarn accent. */
:root {
  color-scheme: light;
  --bg: #CDEAF2;
  --bg-dot: #A6D2E0;
  --ink: #4A3328;
  --ink-soft: #6A4C3E;
  --glass: rgba(255, 255, 255, .6);
  --glass-line: rgba(74, 51, 40, .55);
  --card: #EBC18A;
  --card-edge: #B98349;
  --card-ink: #4A3328;
  --sheet: #FFF8EC;
  --sheet-line: #C9A97C;
  --yarn: #F58BA0;
  --yarn-ink: #3A1020;
  --ok: #1E9E4F;
  --warn: #A8320E;
  --font-display: 'Chewy', 'Comic Sans MS', 'Chalkboard SE', system-ui, sans-serif;
  --font-body: 'Patrick Hand', 'Comic Sans MS', 'Chalkboard SE', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--bg-image, radial-gradient(circle, var(--bg-dot) 1.6px, transparent 2px));
  background-size: var(--bg-image-size, 22px 22px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

button { font-family: var(--font-display); color: inherit; letter-spacing: .3px; }
img { max-width: none; }

.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;
}

:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }

.app {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
}
.icon-btn {
  width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center;
  border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
  border: 2.5px solid var(--ink);
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
}
.title-block { text-align: center; line-height: 1.05; }
.level {
  font-family: var(--font-display); font-size: 34px; font-weight: 400; letter-spacing: .5px;
  background: none; border: 0; padding: 0 8px; color: inherit; cursor: pointer;
  text-decoration: underline dashed rgba(74, 51, 40, .35); text-underline-offset: 6px;
}
.moves {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 19px; font-weight: 400; color: var(--ink-soft); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.moves.low { color: var(--warn); }

.goal { margin: 12px 0 0; text-align: center; }
.goal span {
  display: inline-block;
  padding: 4px 18px;
  border: 2.5px solid var(--ink);
  border-radius: 22px 18px 24px 16px / 18px 24px 16px 22px;
  background: var(--glass);
  color: var(--ink-soft);
  font-size: 18px; font-weight: 400;
}

/* Board */
.board-wrap { margin-top: 16px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.board {
  display: grid;
  grid-template-columns: 20px repeat(var(--n, 4), minmax(0, 1fr));
  gap: 12px 8px;
  align-items: center;
}
.row-marker { display: grid; place-items: center; transition: transform .25s; }
.row-marker svg { width: 20px; height: 20px; overflow: visible; }
.row-marker.done { transform: scale(1.25); filter: drop-shadow(0 0 4px rgba(255, 196, 40, .95)); }

.cell {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 120 / 136;
  padding: 0; border: 0; background: none;
  border-radius: 12px;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: transform .15s ease, filter .15s ease;
}
.cell .layer {
  position: absolute; left: 0; width: 100%; height: auto;
  display: block; pointer-events: none;
  -webkit-user-drag: none;
}
.cell .box-back  { bottom: 0; z-index: 1; aspect-ratio: 120 / 70; }
.cell .cat       { top: -8cqw; z-index: 2; aspect-ratio: 120 / 100; transform-origin: 50% 100%; }
.cell .box-front { bottom: 0; z-index: 3; aspect-ratio: 120 / 60; }
.cell .paws      { bottom: 45cqw; z-index: 4; aspect-ratio: 120 / 16; }
.cell .lock      { left: auto; right: 7cqw; bottom: 7cqw; width: 15cqw; aspect-ratio: 1; z-index: 5; }

.cell.sel { transform: translateY(-8px); filter: drop-shadow(0 0 6px rgba(255, 190, 30, .95)); }
.cell.locked { cursor: not-allowed; }
.cell.hint { animation: hint-pulse .9s ease-in-out infinite; }
.cell.shake { animation: shake .32s ease-in-out; }

@keyframes hint-pulse {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(255, 170, 20, 0)); }
  50% { transform: translateY(-6px); filter: drop-shadow(0 0 9px rgba(255, 160, 20, .95)); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.spark {
  position: absolute; left: 50%; top: 40%;
  width: 8px; height: 8px; border-radius: 50%;
  pointer-events: none; z-index: 6;
}

.yarn-line { margin: 18px 0 0; height: 30px; }
.yarn-line svg { display: block; }

/* Power-ups */
.tools { display: flex; justify-content: center; gap: 30px; padding: 18px 0 14px; }
.tool {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0;
  color: var(--ink-soft);
  cursor: pointer;
}
.tool:disabled { opacity: .45; cursor: default; }
.tool-face {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 20px 16px 22px 15px / 16px 22px 15px 20px;
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: 0 4px 0 var(--ink);
  color: var(--card-ink);
  transition: transform .1s, box-shadow .1s;
}
.tool:active:not(:disabled) .tool-face { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tool-face--text { font-family: var(--font-display); font-size: 27px; font-weight: 400; }
.tool-label { font-size: 18px; font-weight: 400; }
.ad-badge {
  position: absolute; top: -6px; right: -6px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ok);
  border: 2.5px solid var(--ink);
}

.banner {
  height: 62px;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF;
  border-radius: 10px 10px 0 0;
  border: 2.5px solid var(--ink); border-bottom: 0;
  margin-bottom: env(safe-area-inset-bottom, 0px);
}
.banner-box {
  width: min(320px, 100%); height: 50px;
  display: grid; place-items: center;
  border: 1.5px dashed #A9B0BF; border-radius: 6px;
  color: #555C6B; font-size: 13px;
}

/* Overlays */
.overlay {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(74, 51, 40, .5);
}
.sheet {
  width: min(360px, 100%);
  padding: 26px 24px 24px;
  border-radius: 26px 22px 28px 20px / 22px 28px 20px 26px;
  border: 3.5px solid var(--ink);
  background: var(--sheet);
  color: var(--card-ink);
  text-align: center;
  box-shadow: 5px 6px 0 var(--ink);
  animation: sheet-in .25s ease-out;
}
.sheet--left { text-align: left; }
.sheet h2 { margin: 0 0 6px; font-family: var(--font-display); font-size: 36px; line-height: 1.1; font-weight: 400; }
.sheet p { margin: 8px 0 0; font-size: 20px; font-weight: 400; line-height: 1.25; }
.stars { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.stars svg { width: 44px; height: 44px; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn {
  min-height: 48px; padding: 10px 20px;
  border: 3px solid var(--ink); border-radius: 18px 14px 20px 13px / 14px 20px 13px 18px;
  font-size: 22px; font-weight: 400;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn--primary { background: var(--yarn); color: var(--yarn-ink); box-shadow: 0 4px 0 var(--ink); }
.btn--card { background: var(--card); color: var(--card-ink); box-shadow: 0 4px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--card-ink); border: 3px dashed var(--ink-soft); box-shadow: none; }
.btn--small { min-height: 44px; padding: 8px 18px; }
.btn-ad {
  padding: 1px 8px; border-radius: 10px;
  background: var(--ok); color: #FFFFFF; font-size: 14px; border: 2px solid var(--ink);
}

.row-opt { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 21px; font-weight: 400; }
.row-opt input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--yarn); }
.row-opt--field { flex-direction: column; align-items: stretch; gap: 6px; }
.field-line { display: flex; gap: 10px; }
.field-line input {
  flex: 1; min-width: 0; min-height: 44px;
  padding: 6px 12px;
  border: 2.5px solid var(--ink); border-radius: 12px 10px 13px 9px;
  background: #FFFFFF; color: var(--card-ink);
  font-family: var(--font-body); font-size: 22px; font-weight: 400;
}
.actions--stack .btn { width: 100%; }

.sheet--ad { text-align: center; }
.ad-tag {
  display: inline-block; margin: 0 !important; padding: 2px 12px;
  border-radius: 10px; background: #E7DCC4;
  font-size: 15px !important; font-weight: 400 !important;
}
.ad-bar { margin-top: 18px; height: 10px; border-radius: 6px; background: #E7DCC4; overflow: hidden; }
.ad-bar span { display: block; width: 0; height: 100%; background: var(--ok); }

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cell, .row-marker, .sheet, .tool-face { transition: none; animation: none; }
  .cell.hint { animation: none; filter: drop-shadow(0 0 9px rgba(255, 160, 20, .95)); }
}

/* neighbor-only levels: boxes you can swap with the selected one */
.cell.reach { filter: drop-shadow(0 0 5px rgba(80, 190, 120, .95)); }
.cell.dim { opacity: .62; }

/* level map */
.sheet--map { max-height: 88vh; display: flex; flex-direction: column; }
.map-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
  margin: 12px 0 4px; overflow-y: auto; padding: 4px 2px 8px;
}
.map-cell {
  position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2.5px solid var(--ink); border-radius: 13px 10px 14px 9px / 10px 14px 9px 13px;
  background: var(--card); color: var(--card-ink); font-size: 22px; cursor: pointer; padding: 0;
}
.map-cell.cleared { background: #BFE6C8; }
.map-cell.current { background: var(--yarn); color: var(--yarn-ink); box-shadow: 0 3px 0 var(--ink); }
.map-cell.twist::after { content: ''; position: absolute; top: 3px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #3E8FD0; border: 1.5px solid var(--ink); }
.map-cell:disabled { opacity: .45; cursor: default; }
.map-stars { display: flex; gap: 1px; margin-top: 1px; }
.map-stars svg { width: 11px; height: 11px; }

/* cats breathe a little so the board feels alive */
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.035); } }
.cell .cat { animation: breathe 3.8s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); }
.cell.locked .cat { animation-duration: 6s; }
@media (prefers-reduced-motion: reduce) { .cell .cat { animation: none; } }

.stats { margin: 6px 0 0; font-size: 18px; color: var(--ink-soft); }
.board { position: relative; }

.cell .lid { top: -27cqw; bottom: auto; z-index: 5; aspect-ratio: 120 / 140; }
.cell .lid[hidden] { display: none; }

.cell .box-back, .cell .box-front, .cell .lid { filter: var(--box-filter, none); }
.cell .badge {
  position: absolute; left: 50%; bottom: 2cqw; transform: translateX(-50%); z-index: 4;
  font-size: 24cqw; line-height: 1; pointer-events: none;
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 0 3px #fff;
}
.cell .badge[hidden] { display: none; }

.album { overflow-y: auto; margin: 8px 0; display: grid; gap: 10px; }
.album-item { display: flex; gap: 12px; align-items: center; text-align: left; border: 2.5px solid var(--ink); border-radius: 14px 11px 15px 10px; padding: 8px 10px; background: #fff; }
.album-item img { width: 76px; height: 63px; object-fit: contain; flex: none; }
.album-item strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.album-item em { font-style: normal; font-size: 16px; color: var(--ink-soft); }
.album-item p { margin: 2px 0 0; font-size: 17px; }
.album-item small { font-size: 15px; color: var(--ink-soft); }
.sheet { max-height: 94vh; overflow-y: auto; }

/* Short phones: tighten the vertical spacing so the power-ups stay on screen */
@media (max-height: 700px) {
  .top { padding-top: 6px; }
  .level { font-size: 28px; }
  .goal { margin-top: 6px; }
  .goal span { font-size: 16px; padding-block: 3px; }
  .board-wrap { margin-top: 6px; }
  .board { gap: 6px 6px; }
  .yarn-line { margin-top: 6px; height: 18px; }
  .yarn-line svg { height: 18px; }
  .title-block { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 12px; }
  .title-block .level { grid-column: 1 / -1; }
  .coins { margin-top: 0; }
  .tools { padding: 8px 0 8px; gap: 24px; }
  .tool-face { width: 50px; height: 50px; }
  .tool-label { font-size: 15px; }
  .banner { height: 50px; }
  .banner-box { height: 40px; }
}
@media (max-height: 600px) {
  .app { max-width: 360px; }
  .tool-face { width: 44px; height: 44px; }
  .tool-label { font-size: 14px; }
  .banner { height: 44px; }
  .banner-box { height: 34px; }
  .yarn-line { height: 12px; margin-top: 2px; }
  .yarn-line svg { height: 12px; }
}

.tool.free .ad-badge { background: var(--yarn); width: auto; min-width: 26px; padding: 0 6px; border-radius: 13px; }
.tool.free .ad-badge svg { display: none; }
.tool.free .ad-badge::after { content: 'Free'; font-family: var(--font-display); font-size: 12px; color: var(--yarn-ink); }

.coins { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 17px; color: var(--ink-soft); margin-top: 1px; }
.tool.coin .ad-badge { background: #F2C94C; }
.tool.coin .ad-badge svg { display: none; }
.tool.coin .ad-badge::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-sizing: border-box; }

.how { margin: 8px 0 0; padding-left: 22px; font-size: 19px; line-height: 1.3; }
.how li { margin: 6px 0; }

/* column-slide levels */
.slide-col { display: flex; gap: 4px; justify-content: center; }
.slide-btn {
  flex: 1; min-width: 0; max-width: 48px; height: 36px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 2.5px solid var(--ink); border-radius: 12px 9px 13px 8px / 9px 13px 8px 12px;
  background: var(--card); color: var(--card-ink); box-shadow: 0 3px 0 var(--ink);
}
.slide-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.slide-btn.hint { animation: hint-pulse .9s ease-in-out infinite; background: #FFD84D; }

/* title screen */
.overlay--title { background: var(--bg); z-index: 30; background-image: radial-gradient(circle, var(--bg-dot) 1.6px, transparent 2px); background-size: 22px 22px; }
.title-card { width: min(380px, 100%); text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.title-card h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 58px; line-height: 1; letter-spacing: 1px; text-shadow: 3px 3px 0 var(--yarn); }
.title-sub { margin: -6px 0 6px; font-size: 21px; color: var(--ink-soft); }
.btn--big { font-size: 30px; min-height: 64px; }
.title-foot { margin: 4px 0 0; font-size: 17px; color: var(--ink-soft); }
.title-cats { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; }
.tc { cursor: pointer; position: relative; width: 20%; aspect-ratio: 120 / 130; animation: bob 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.5s); }
.tc img { position: absolute; left: 0; width: 100%; display: block; }
.tc img:first-child { top: -4%; }
.tc .tb { bottom: 0; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .tc { animation: none; } }

.cell .zzz { position: absolute; right: 6cqw; top: -6cqw; z-index: 6; pointer-events: none; font-family: var(--font-display); font-style: normal; }
.cell .zzz i { position: absolute; right: 0; top: 0; font-style: normal; font-size: 26cqw; color: var(--ink); opacity: 0; animation: zfloat 3.2s ease-in infinite; text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff; }
.cell .zzz i:nth-child(2) { animation-delay: 1.6s; font-size: 19cqw; }
@keyframes zfloat { 0% { transform: translate(0, 10px); opacity: 0; } 20% { opacity: .9; } 100% { transform: translate(8cqw, -22px) rotate(12deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cell .zzz i { animation: none; opacity: .8; } }

.cell { touch-action: none; }
.cell.drag-src .cat { opacity: .35; }

.cell:active:not(.locked):not(.sel) { transform: scale(.96); }

.btn-ad--coin { background: #F2C94C; color: var(--card-ink); }

/* seasonal bats */
#bats { position: fixed; left: 0; top: 0; width: 100%; height: 0; z-index: 4; pointer-events: none; }
#bats img { position: absolute; width: 44px; height: auto; top: 90px; left: -60px; animation: bat-fly 14s linear infinite; }
#bats img:nth-child(2) { top: 170px; width: 34px; animation-duration: 19s; animation-delay: -7s; }
#bats img:nth-child(3) { top: 30px; width: 28px; animation-duration: 23s; animation-delay: -15s; }
@keyframes bat-fly {
  0% { transform: translate(0, 0) scaleY(1); }
  25% { transform: translate(28vw, 24px) scaleY(.8); }
  50% { transform: translate(58vw, -10px) scaleY(1); }
  75% { transform: translate(86vw, 20px) scaleY(.8); }
  100% { transform: translate(115vw, 0) scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { #bats { display: none; } }

/* seasonal snow */
#snow { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
#snow i { position: absolute; top: -20px; font-style: normal; color: #fff; opacity: .85; text-shadow: 0 0 3px rgba(120,150,190,.7); animation: snow-fall 12s linear infinite; }
@keyframes snow-fall {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(18px, 55vh) rotate(180deg); }
  100% { transform: translate(-6px, 110vh) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) { #snow { display: none; } }
@media (max-width: 340px) { .moves { font-size: 16px; gap: 4px; } }
.map-cell.boss { box-shadow: 0 0 0 3px #F2C94C, 0 2px 0 3px var(--ink); }

.lb { list-style: none; margin: 8px 0; padding: 0; overflow-y: auto; display: grid; gap: 8px; text-align: left; }
.lb li { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 8px; border: 2.5px solid var(--ink); border-radius: 14px 11px 15px 10px; padding: 8px 12px; background: #fff; }
.lb li.me { background: #FFF1B8; }
.lb li b { grid-row: 1 / 3; align-self: center; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.lb .bn { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .bs { font-size: 14px; color: var(--ink-soft); }
.lb li.lb-note { display: block; text-align: center; color: var(--ink-soft); }

/* lives */
.coins { gap: 10px; }
.coins .lives { display: inline-flex; align-items: center; gap: 4px; }
.coins .lives.empty { color: #C0392B; }

/* floating combo text */
.pop { position: fixed; z-index: 70; pointer-events: none; font-family: var(--font-display); font-size: 34px; color: #F0788E; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); white-space: nowrap; }

/* daily gift */
.chest-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0 6px; }
.chest-day { border: 2.5px solid var(--ink); border-radius: 10px; background: #fff; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; }
.chest-day small { font-size: 11px; color: var(--ink-soft); }
.chest-day b { font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.chest-day.got { background: #D9F2DD; opacity: .85; }
.chest-day.today { background: #FFF1B8; transform: translateY(-3px); box-shadow: 0 3px 0 var(--ink); }
.chest-day.big { background: #FFE9A8; }
.btn:disabled { opacity: .55; cursor: default; }

/* wardrobe */
.ward-title { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 14px 0 0; }
.ward-sub { margin: 2px 0 8px; font-size: 14px; color: var(--ink-soft); }
.wardrobe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.ward { border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; color: inherit; cursor: pointer; min-height: 84px; justify-content: center; }
.ward img { height: 42px; width: auto; }
.ward span { font-size: 15px; }
.ward small { font-size: 12px; color: var(--ink-soft); }
.ward.on { background: #FFF1B8; box-shadow: 0 3px 0 var(--ink); }
.ward.locked { opacity: .5; cursor: default; }

/* four tools */
.tools { gap: 18px; }
@media (max-width: 360px) { .tools { gap: 10px; } .tool-face { width: 54px; height: 54px; } .tool-label { font-size: 16px; } }
.album { flex: none; overflow: visible; }
.sheet { max-height: 94vh; overflow-y: auto; }
@media (max-height: 700px) { .title-block { column-gap: 8px; } .coins { font-size: 15px; gap: 6px; } .coins .lives { gap: 3px; } }
@media (max-width: 340px) { .moves { font-size: 15px; } .moves svg { width: 16px; height: 16px; } }

.nick{margin:0 0 10px;text-align:left}
.nick label{display:block;font-weight:700;margin-bottom:6px}
.nick-row{display:flex;gap:8px}
.nick-row input{flex:1;min-width:0;padding:10px 12px;border-radius:12px;border:2px solid #4a3328;font:inherit;font-size:16px}
.nick-row .btn{flex:none}
.nick-err{color:#c0392b;min-height:1em;margin:4px 0 0;font-size:.9rem}
.board-me{font-weight:700;margin:0 0 8px}
.map-cell.teaser { box-shadow: 0 0 0 3px #B07CE8, 0 2px 0 3px var(--ink); }

.ver{margin:10px 0 0;text-align:center;font-size:.8rem;opacity:.6}
#fbText{width:100%;box-sizing:border-box;padding:10px 12px;border-radius:12px;border:2px solid #4a3328;font:inherit;font-size:16px;resize:vertical;background:#fff}

.lives{display:none!important}
