/* Кнопки Kenney UI Pack (CC0, kenney.nl) — пауза, раскраска, «другой экран». */

.k-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 10px 22px rgba(0, 0, 0, 0.35);
}
.k-sub {
  margin: 0 0 14px;
  font-size: 14px;
  text-align: center;
  color: #fff;
  opacity: 0.88;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.k-rect {
  appearance: none; -webkit-appearance: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; margin: 0 0 10px;
  padding: 4px 16px 12px;
  border: 0; cursor: pointer;
  font: 700 16px/1.15 Montserrat, system-ui, sans-serif;
  color: #032033; text-align: center; text-decoration: none;
  background: url(/assets/ui/kenney/btn-rect-blue.png) center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
  transition: transform 0.08s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.k-rect.gold {
  background-image: url(/assets/ui/kenney/btn-rect-gold.png);
  color: #4a2c00;
}
.k-rect.green {
  background-image: url(/assets/ui/kenney/btn-rect-green.png);
  color: #14330c;
}
.k-rect:hover { transform: translateY(-2px); }
.k-rect:active { transform: translateY(4px); }
.k-rect i, .k-rect .ico { display: none; }
.k-rect b { font: inherit; }

.k-row {
  display: flex;
  gap: 8px;
}
.k-row .k-rect {
  flex: 1;
  width: auto;
  min-height: 48px;
  margin: 0;
  padding: 4px 8px 10px;
  font-size: 14px;
}

.k-tile {
  appearance: none; -webkit-appearance: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0; margin: 0; border: 0; cursor: pointer;
  font: inherit; color: #fff; background: none;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.k-tile .face {
  width: 100%; aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 10px 10px 16px;
  background: url(/assets/ui/kenney/btn-square-blue.png) center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 12px rgba(0, 20, 40, 0.4));
  transition: transform 0.08s;
}
.k-tile:hover .face { transform: translateY(-3px); }
.k-tile:active .face { transform: translateY(5px); }
.k-tile canvas { width: 82%; height: auto; display: block; }
.k-tile span {
  font-size: 12px; font-weight: 700; text-align: center; line-height: 1.25;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 6px 12px rgba(0, 0, 0, 0.3);
}

.k-tool {
  appearance: none; -webkit-appearance: none;
  width: 52px; height: 52px; padding: 0 0 6px; margin: 0;
  border: 0; cursor: pointer;
  font-size: 22px; line-height: 46px;
  background: url(/assets/ui/kenney/btn-square-blue.png) center / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.08s;
}
.k-tool[aria-pressed="true"] {
  background-image: url(/assets/ui/kenney/btn-square-gold.png);
  color: #4a2c00;
}
.k-tool:active { transform: translateY(3px); }
