/* Blokkenregen (Block Rain): home tile, the age cards, the well with its blocks, the shadow where a
   shape lands, the line above it with the next shape and the rows still to go, and the four big
   buttons under it. Shared look lives in css/style.css; the HUD is Dogudoku's. */

/* ---------- home tile and menu ---------- */
#tile-blokken .tile-art { display: flex; align-items: center; justify-content: center; }
.bk-tile-svg { width: 100%; height: 100%; max-width: 104px; display: block; }
.bk-age .option-art > svg { border-radius: 10px; }
.bk-how-svg { width: min(100%, 300px); height: auto; display: block; margin: 0 auto; }

/* ---------- the well ---------- */
#bk-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px 10px;
}
.bk-top {
  flex: none;
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 12px;
}
.bk-nextbox {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2px 8px 4px;
  border-radius: var(--bz-radius-m);
  background: var(--bz-surface);
  box-shadow: var(--bz-shadow-s);
}
.bk-next-label { font-size: var(--bz-text-xs); font-weight: var(--bz-weight-head); color: var(--bz-ink-soft); }
#bk-next { width: 52px; height: 52px; display: flex; }
#bk-next svg { width: 100%; height: 100%; }
.bk-status {
  margin: 0;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  font-size: var(--bz-text-m);
  font-weight: var(--bz-weight-head);
  line-height: 1.25;
  color: var(--bz-ink);
  text-wrap: balance;
}
.bk-status.said { color: var(--bz-group-ink); }
.bk-dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.bk-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--bz-group-acc); background: transparent; }
.bk-dots i.on { background: var(--bz-group-acc); }
#bk-wellbox {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#bk-well {
  display: block;
  flex: none;
  border-radius: 14px;
  box-shadow: 0 4px 0 #c5d3ea, var(--bz-shadow-s);
  background: #eef3fb;
  cursor: pointer;
  overflow: visible;
}
.bk-pad { flex: none; display: flex; gap: 10px; justify-content: center; width: min(100%, 520px); }
.bk-pad .btn { flex: 1 1 0; max-width: 110px; min-height: 60px; padding: 0; display: flex; align-items: center; justify-content: center; }
.bk-pad .btn svg { width: 32px; height: 32px; }

/* a full row pops and floats away; a full well drifts up and fades */
.bk-pop { animation: bk-pop 0.42s ease-in forwards; transform-box: fill-box; transform-origin: center; }
.bk-float { animation: bk-float 1.1s ease-in forwards; transform-box: fill-box; transform-origin: center; }
@keyframes bk-pop { 40% { transform: scale(1.12); opacity: 1; } to { transform: scale(0.2); opacity: 0; } }
@keyframes bk-float { to { transform: translateY(-60%) scale(0.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bk-pop, .bk-float { animation: none; opacity: 0.25; }
}

/* short sideways phones: the line and the next shape on the left, the buttons in a block on the right */
@media (orientation: landscape) and (max-height: 520px) {
  #screen-blokken { flex-direction: row; }
  #bk-stage { flex-direction: row; align-items: stretch; padding: 4px 8px 4px 0; gap: 8px; }
  .bk-top { width: auto; flex: 0 1 180px; min-width: 120px; grid-template-columns: 1fr; align-content: center; justify-items: center; text-align: center; }
  .bk-nextbox { grid-row: auto; }
  .bk-status { justify-content: center; }
  .bk-dots { justify-content: center; }
  .bk-pad { width: 140px; flex-wrap: wrap; align-content: center; }
  .bk-pad .btn { flex: 0 0 62px; }
}
