/* Игры с Чарли: отрывной календарь.
   Картон (шерсть Чарли) как подложка, белый листок, чёрные цифры, красный праздник, синяя ручка. */

:root {
  --board: #C4832C;        /* картонная подложка, цвет шерсти Чарли */
  --board-deep: #9E661F;
  --leaf: #FBFAF6;         /* газетная бумага, почти белая */
  --leaf-edge: #E9E4D6;
  --ink: #141414;
  --ink-soft: #5E574C;
  --rule: #D8D2C3;
  --red: #C8102E;          /* красный день календаря */
  --red-soft: #F8E1E5;
  --blue: #1F4FB8;         /* шариковая ручка */
  --blue-soft: #E3EAF8;
  --honey-soft: #F5E6CC;   /* подсветка слова / области */
  --metal: #3B3D42;
  --metal-hi: #6C6F76;

  --font-body: 'PTSans', 'PT Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-num: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;

  --body: 20px;
  --tap: 52px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--board);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.35;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 26px; height: 26px; flex: none; }
[hidden] { display: none !important; }

/* Металлическая планка с двумя отверстиями, как у настоящего календаря */
.binding {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  height: calc(var(--safe-top) + 26px);
  background: linear-gradient(var(--metal-hi), var(--metal) 45%, #2A2B2F);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: flex; justify-content: center; gap: 120px; align-items: flex-end; padding-bottom: 7px;
}
.hole { width: 12px; height: 12px; border-radius: 50%; background: var(--board-deep); box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }

#app {
  min-height: 100%;
  padding: calc(var(--safe-top) + 26px) 10px calc(var(--safe-bottom) + 16px);
}

/* Листок */
.leaf {
  background: var(--leaf);
  min-height: calc(100dvh - var(--safe-top) - 26px - var(--safe-bottom) - 16px);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,.28), 0 1px 0 var(--leaf-edge);
  padding: 14px 14px 18px;
  display: flex; flex-direction: column;
  position: relative;
  transform-origin: 50% 0;
}
/* перфорация под планкой */
.leaf::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 3px;
  background-image: radial-gradient(circle, var(--board) 1.2px, transparent 1.4px);
  background-size: 8px 3px; opacity: .8;
}
.leaf.game { padding-left: 10px; padding-right: 10px; }
.leaf.tearing { animation: tear .55s cubic-bezier(.2,.7,.2,1) forwards; }
.leaf.arriving { animation: arrive .35s cubic-bezier(.2,.7,.2,1); }
@keyframes tear {
  0%   { transform: rotateX(0) translateY(0); opacity: 1; }
  60%  { transform: perspective(900px) rotateX(-70deg) translateY(-10px); opacity: 1; }
  100% { transform: perspective(900px) rotateX(-100deg) translateY(-60px); opacity: 0; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .leaf.tearing, .leaf.arriving { animation: none; } }

/* ГЛАВНАЯ */
.date-block { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.day-num { font-family: var(--font-num); font-weight: 700; font-size: 104px; line-height: .9; letter-spacing: -.02em; color: var(--ink); }
.day-num.holiday { color: var(--red); }
.date-text { padding-top: 6px; }
.month { font-family: var(--font-num); font-weight: 500; font-size: 30px; line-height: 1.05; text-transform: lowercase; }
.weekday { font-size: 20px; color: var(--ink-soft); margin-top: 2px; }
.weekday.holiday { color: var(--red); }
.app-name { margin-top: 8px; font-size: 18px; color: var(--ink-soft); letter-spacing: .02em; border-top: 2px solid var(--ink); padding-top: 6px; display: inline-block; }

.photo-of-day { margin: 4px 0 14px; }
.photo-of-day img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 8; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--ink); }
.photo-of-day figcaption { font-size: 18px; color: var(--ink-soft); margin-top: 8px; font-style: italic; }

.game-tabs { display: flex; flex-direction: column; border-top: 3px solid var(--ink); }
.tab {
  display: flex; align-items: center; gap: 12px;
  min-height: 78px; padding: 8px 4px 8px 0;
  border-bottom: 1px solid var(--rule);
}
.tab:active { background: var(--honey-soft); }
.tab-num { font-family: var(--font-num); font-weight: 700; font-size: 46px; width: 52px; text-align: center; line-height: 1; color: var(--ink); }
.tab-body { flex: 1; display: flex; flex-direction: column; }
.tab-title { font-family: var(--font-num); font-weight: 500; font-size: 28px; line-height: 1.1; }
.tab-sub { font-size: 18px; color: var(--ink-soft); margin-top: 3px; }
.tab-sub.inprogress { color: var(--blue); }
.tab-arrow { color: var(--ink-soft); }

.home-foot { margin-top: auto; padding-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.foot-link { display: flex; align-items: center; gap: 8px; min-height: var(--tap); white-space: nowrap; font-size: 22px; font-family: var(--font-num); font-weight: 500; border-radius: 8px; }
.foot-link + .foot-link { justify-content: flex-end; }
.foot-link svg { width: 28px; height: 28px; color: var(--board); }
.foot-link:active { background: var(--honey-soft); }
.head-sub { font-size: 18px; color: var(--ink-soft); margin-top: 4px; }

/* СТАТИСТИКА */
.stats { display: flex; flex-direction: column; gap: 18px; }
.st-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-big { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 1.2; color: var(--ink-soft); }
.st-num { font-family: var(--font-num); font-weight: 700; font-size: 56px; line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; border-top: 3px solid var(--ink); padding-top: 8px; }
.st-wd { text-align: center; font-size: 18px; color: var(--ink-soft); }
.st-wd.holiday { color: var(--red); }
.st-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-size: 20px; color: var(--ink-soft); border-radius: 50%; }
.st-day.on { color: var(--ink); box-shadow: inset 0 0 0 3px var(--red); }   /* день с игрой обведён, как в календаре */
.st-day.today { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.st-game { border-top: 3px solid var(--ink); padding-top: 8px; }
.st-game h2 { font-family: var(--font-num); font-weight: 500; font-size: 26px; margin: 0 0 6px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 18px; font-variant-numeric: tabular-nums; }
.st-table th, .st-table td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--rule); }
.st-table thead th { font-weight: 400; color: var(--ink-soft); }
.st-table th:last-child, .st-table td:last-child { text-align: right; }
.st-trend { margin: 10px 0 4px; font-size: 18px; line-height: 1.3; }
.st-chart { display: block; width: 100%; height: auto; margin-top: 8px; }
.st-chart rect.won { fill: var(--ink); }
.st-chart rect.lost { fill: var(--red); }
.st-chart rect.open { fill: var(--rule); }
.st-chart .axis { stroke: var(--ink); stroke-width: 1; }
.st-chart text { font-family: var(--font-body); font-size: 16px; fill: var(--ink-soft); }
.st-chart text.val { font-family: var(--font-num); font-size: 17px; fill: var(--ink); }
.st-level + .st-level { margin-top: 12px; }
.st-legend, .st-muted { margin: 4px 0 0; font-size: 18px; line-height: 1.3; color: var(--ink-soft); }
.st-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 12px; text-align: center; font-size: 20px; color: var(--ink-soft); }
.st-empty svg { width: 56px; height: 56px; color: var(--board); }

/* ШАПКА ИГРЫ */
.game-head { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; min-height: var(--tap); }
.game-head h1 { flex: 1; text-align: center; margin: 0; font-family: var(--font-num); font-weight: 500; font-size: 28px; line-height: 1; }
.head-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.head-title h1 { flex: none; }
.level-btn { position: relative; display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 3px 6px 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 18px; line-height: 1.1; color: var(--ink); background: var(--honey-soft); }
.level-btn::after { content: ""; position: absolute; inset: -8px -4px; }   /* зона нажатия ≥ 48px */
.level-btn svg { width: 18px; height: 18px; transform: rotate(90deg); }
.level-btn:active { background: var(--board); color: #fff; }
.game-head h1 small { font-family: var(--font-body); font-weight: 400; font-size: 18px; color: var(--ink-soft); display: block; margin-top: 4px; }
.back { display: flex; align-items: center; gap: 2px; min-height: var(--tap); min-width: var(--tap); padding-right: 8px; font-size: 19px; color: var(--blue); }
.icon-btn { width: var(--tap); height: var(--tap); display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--ink); }
.icon-btn:active { background: var(--honey-soft); }
.head-spacer { width: var(--tap); }

.tool-row { display: flex; gap: 6px; margin: 8px 0 6px; }
.tool {
  flex: 1; min-width: 0; min-height: var(--tap); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 18px; line-height: 1; letter-spacing: -.01em; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--leaf); padding: 6px 1px;
}
.tool svg { width: 22px; height: 22px; }
.tool:active { background: var(--honey-soft); }
.tool[disabled] { opacity: .4; pointer-events: none; }
.tool { position: relative; white-space: nowrap; }
.tool .badge { position: absolute; top: -8px; right: -6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--leaf); font-family: var(--font-num); font-size: 18px; font-weight: 500; display: flex; align-items: center; justify-content: center; }   /* осталось подсказок */

/* КРОССВОРД */
.cw-grid-wrap { display: flex; justify-content: center; }
.cw-grid { display: grid; gap: 0; border: 2px solid var(--ink); background: var(--ink); --cell: 32px; }
.cw-cell { width: var(--cell); height: var(--cell); background: var(--leaf); position: relative; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 700; font-size: calc(var(--cell) * .62); color: var(--blue); outline: 1px solid var(--rule); outline-offset: -.5px; text-transform: uppercase; }
.cw-cell.block { background: var(--ink); outline: none; }
.cw-cell .n { position: absolute; top: 1px; left: 2px; font-size: calc(var(--cell) * .3); font-weight: 400; line-height: 1; color: var(--ink); }
.cw-cell.word { background: var(--honey-soft); }
.cw-cell.cur { background: var(--board); color: #fff; }
.cw-cell.cur .n { color: #fff; }
.cw-cell.wrong { color: var(--red); }
.cw-cell.wrong::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 14%; height: 2px; background: var(--red); transform: rotate(-6deg); }
.cw-cell.wrong.cur { color: #fff; }
.cw-cell.wrong.cur::after { background: #fff; }
.cw-cell.given { color: var(--ink); }   /* подсказанная буква = напечатанная */
.cw-cell, .sd-cell, .card { touch-action: manipulation; }

.cw-clue { display: flex; align-items: center; gap: 4px; margin-top: 8px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); min-height: 60px; }
.clue-nav { width: var(--tap); height: var(--tap); flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--ink); }
.clue-nav:active { background: var(--honey-soft); }
.clue-text { flex: 1; font-size: 19px; line-height: 1.25; padding: 6px 2px; }
.clue-num { font-family: var(--font-num); font-weight: 700; font-size: 20px; margin-right: 4px; }
.clue-dir { color: var(--ink-soft); font-size: 18px; }
.clue-text .note { font-weight: 700; }
.clue-text .note.bad { color: var(--red); }
.clue-text .note.good { color: var(--ink); }
.clue-ok { width: 22px; height: 22px; color: var(--red); vertical-align: -4px; margin-left: 6px; }

.keyboard { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: auto; padding-top: 6px; }
.key { min-height: 48px; border: 1.5px solid var(--ink); border-radius: 7px; background: #fff; font-size: 24px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; justify-content: center; }
.key:active { background: var(--blue-soft); }
.key.wide { grid-column: span 2; }

/* Список вопросов */
.clue-lists h3 { font-family: var(--font-num); font-weight: 500; font-size: 22px; margin: 14px 0 4px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.clue-item { display: flex; gap: 8px; padding: 8px 4px; min-height: 48px; border-bottom: 1px solid var(--rule); font-size: 19px; line-height: 1.3; align-items: flex-start; text-align: left; width: 100%; }
.clue-item b { font-family: var(--font-num); font-weight: 700; min-width: 30px; font-size: 20px; }
.clue-item.solved { color: var(--ink-soft); }
.clue-item.solved b { color: var(--red); }
.clue-item.active { background: var(--honey-soft); }

/* СУДОКУ */
.sd-grid { display: grid; grid-template-columns: repeat(9, 1fr); border: 3px solid var(--ink); background: var(--leaf); aspect-ratio: 1; width: 100%; max-width: 440px; margin: 0 auto; }
.sd-cell { position: relative; display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-weight: 500; font-size: clamp(20px, 6.4vw, 30px); color: var(--blue); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sd-cell:nth-child(3n) { border-right: 2.5px solid var(--ink); }
.sd-cell:nth-child(9n) { border-right: 0; }
.sd-cell:nth-child(n+19):nth-child(-n+27), .sd-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 2.5px solid var(--ink); }
.sd-cell:nth-child(n+73) { border-bottom: 0; }
.sd-cell.given { color: var(--ink); font-weight: 700; }
.sd-cell.hinted { color: var(--ink); }   /* подсказка = напечатанная цифра */
.sd-cell.peer { background: #F3EFE4; }
.sd-cell.same { background: var(--honey-soft); }
.sd-cell.sel { background: var(--board); color: #fff; }
.sd-cell.wrong { color: var(--red); }
.sd-cell.wrong::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 14%; height: 2px; background: var(--red); transform: rotate(-6deg); }
.sd-cell.wrong.sel { color: #fff; }
.sd-cell.wrong.sel::after { background: #fff; }

.numpad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: auto; }
.numpad .key { min-height: 72px; font-family: var(--font-num); font-size: 32px; font-weight: 500; flex-direction: column; gap: 0; }
.numpad .key .left { font-family: var(--font-body); font-size: 18px; font-weight: 400; color: var(--ink-soft); line-height: 1; }
.numpad .key.done { color: var(--rule); border-color: var(--rule); }

/* НАЙДИ ПАРУ */
.mm-status { text-align: center; font-size: 19px; color: var(--ink-soft); margin-bottom: 8px; }
.mm-status b { font-weight: 700; color: var(--ink); }
.mm-status b.warn { color: var(--red); }
.mm-board { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 4), 1fr); flex: 1; align-content: start; }
.card { aspect-ratio: 1; perspective: 700px; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.card.open .card-inner, .card.done .card-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); }
.card-back { background: var(--board); display: flex; align-items: center; justify-content: center; }
.card-back svg { width: 44%; height: 44%; color: rgba(255,255,255,.75); }
.card-front { transform: rotateY(180deg); background: #fff; }
.card-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.done .card-face { border-color: var(--red); }
.card.done .card-front::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--red); border-radius: 6px; }
.card.done { animation: matched .5s ease-out; }
@keyframes matched { 0% { transform: scale(1);} 40% { transform: scale(1.06);} 100% { transform: scale(1);} }
.card.done .card-inner { transition: none; }

/* АЛЬБОМ */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.album-grid button { aspect-ratio: 1; overflow: hidden; border: 1px solid var(--rule); background: var(--leaf-edge); }
.album-grid button.own { border: 3px solid var(--blue); }   /* её фото = её ручка, синий */
.album-add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 2px dashed var(--ink); background: var(--honey-soft); color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; }
.album-add svg { width: 34px; height: 34px; }
.album-add:active { background: var(--board); color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden:focus-visible + .album-add { outline: 3px solid var(--blue); outline-offset: 2px; }
label.icon-btn { cursor: pointer; }
.album-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

.viewer { position: fixed; inset: 0; background: #000; z-index: 40; display: flex; flex-direction: column; }
.viewer img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.viewer-close { position: absolute; top: calc(var(--safe-top) + 8px); right: 8px; color: #fff; background: rgba(0,0,0,.5); z-index: 1; }
.viewer-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 0; color: #fff; font-size: 18px; }
.viewer-del { min-height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 8px; color: #fff; font-size: 18px; }
.viewer-del svg { width: 22px; height: 22px; }
.viewer-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px calc(var(--safe-bottom) + 10px); color: #fff; }
.viewer-btn { width: 64px; height: 56px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 8px; background: rgba(255,255,255,.12); }
.viewer-count { font-family: var(--font-num); font-size: 22px; }

/* ЛИСТЫ (диалоги) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(40,25,5,.55); z-index: 45; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--leaf); width: 100%; max-width: 560px; border-radius: 14px 14px 0 0; padding: 18px 16px 24px; box-shadow: 0 -6px 20px rgba(0,0,0,.3); max-height: 88dvh; display: flex; flex-direction: column; }
.sheet::after { content: ""; flex: none; height: var(--safe-bottom); }
.sheet-tall { height: 88dvh; }
.sheet h2 { font-family: var(--font-num); font-weight: 500; font-size: 26px; margin: 0 0 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; }
.clue-lists { overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: 4px; }
.picker-options { display: flex; flex-direction: column; gap: 8px; }
.opt { min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 10px; font-size: 22px; font-family: var(--font-num); font-weight: 500; text-align: left; }
.opt small { font-family: var(--font-body); font-size: 18px; line-height: 1.25; color: var(--ink-soft); }
.opt .opt-label { display: flex; align-items: center; gap: 10px; }
.opt em { font-style: normal; font-family: var(--font-body); font-size: 16px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--leaf); }
.opt.current { background: var(--honey-soft); }
.opt:active { background: var(--honey-soft); }
.sheet-cancel { margin-top: 14px; min-height: var(--tap); font-size: 19px; color: var(--ink-soft); }

.done-sheet { align-items: center; text-align: center; }
.done-num { width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; }
.done-num svg { width: 44px; height: 44px; }
.done-sheet h2 { color: var(--red); font-size: 34px; margin: 4px 0 2px; }
.done-sheet.fail .done-num { border-color: var(--ink); color: var(--board); }
.done-sheet.fail h2 { color: var(--ink); }
.done-sheet p { margin: 0 0 12px; font-size: 20px; }
.done-sheet img { width: 60%; max-width: 260px; height: auto; aspect-ratio: 9 / 11; object-fit: cover; border: 2px solid var(--ink); }
.done-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 16px; }
.big-btn { min-height: 58px; display: flex; align-items: center; justify-content: center; font-size: 21px; border: 2px solid var(--ink); border-radius: 10px; }
.big-btn.primary { background: var(--ink); color: var(--leaf); }

.toast { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 236px); transform: translateX(-50%); background: var(--ink); color: var(--leaf); padding: 12px 18px; border-radius: 10px; font-size: 19px; z-index: 50; max-width: 90vw; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.3); }

@media (min-width: 560px) {
  #app { max-width: 560px; margin: 0 auto; }
  .cw-grid { --cell: 40px; }
}
