/* Движок «Столбик»: разряды друг под другом, перенос сверху, уголок деления. */

.col-head {
  text-align: center;
  font-size: clamp(20px, 3.6vmin, 26px);
  font-weight: 700;
  margin: 0;
  opacity: 0.7;
}

/* Ширина считается по числу разрядов: столбик из двух цифр не должен
   расползаться на всю страницу, а из шести — влезать без переноса. */
.column {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  width: min(calc(var(--cols, 4) * 64px), 100%);
  margin: 0 auto;
  font-variant-numeric: tabular-nums;
}

.col-cell,
.col-carry {
  display: grid;
  place-items: center;
  font-size: clamp(28px, 6vmin, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.col-carry {
  font-size: clamp(14px, 2.6vmin, 18px);
  color: var(--theme-accent);
  min-height: 22px;
}

.col-line {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.7;
  margin: 6px 0 8px;
}

.col-slot {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 2px rgba(46, 42, 79, 0.12);
  min-height: 1.5em;
}

.col-slot.is-now {
  box-shadow: inset 0 0 0 3px var(--theme-accent);
}

.col-slot.is-done {
  background: var(--card);
  box-shadow: none;
}

.col-tip {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  min-height: 24px;
  opacity: 0.75;
}

/* ---------- уголок ---------- */

.corner {
  display: flex;
  justify-content: center;
  gap: 0;
  font-variant-numeric: tabular-nums;
}

.corner-left {
  padding: 0 14px 0 0;
  border-right: 4px solid rgba(46, 42, 79, 0.7);
}

.corner-right {
  padding: 0 0 0 14px;
}

.corner-num {
  font-size: clamp(28px, 6vmin, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.corner-answer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 4px solid rgba(46, 42, 79, 0.7);
}

.corner-answer .col-slot {
  min-width: 1.1em;
  padding: 0 6px;
}

.corner-rest {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.7;
  margin-left: 8px;
}
