/* One home for the primary game action: no reserved space for the old toolbar. */
.roll-controls {
  position: absolute;
  right: 28px;
  bottom: max(28px, env(safe-area-inset-bottom));
  width: clamp(260px, 25vw, 320px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "result sound" "roll roll";
  align-items: center;
  gap: 12px 8px;
}
.roll-controls output {
  grid-area: result;
  justify-self: end;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 10px;
  background: #fffaf0d9;
  color: #537362;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.roll-controls #sound-toggle {
  grid-area: sound;
  border: 1px solid #d4dfcb;
  border-radius: 10px;
  padding: 6px 9px;
  background: #fffdf0bb;
  color: #6c8475;
  font-size: 10px;
  white-space: nowrap;
}
#roll-dice {
  grid-area: roll;
  min-height: 94px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 16px 22px;
  border: 2px solid #fff7df;
  border-radius: 23px;
  background: linear-gradient(145deg, #edc782, #dfa64e);
  color: #3d4b32;
  box-shadow: 0 6px 0 #ad7e37, 0 12px 25px #805e2926;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
#roll-dice .roll-icon { font: 48px/1 "Segoe UI Symbol", sans-serif; }
#roll-dice:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 0 #ad7e37, 0 14px 28px #805e2930; }
#roll-dice:not(:disabled):active { transform: translateY(4px); box-shadow: 0 2px 0 #ad7e37; }
#roll-dice:disabled { opacity: .55; filter: saturate(.5); cursor: default; }
@media(max-width:700px) {
  .roll-controls { left: 16px; right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); width: auto; gap: 8px; }
  #roll-dice { min-height: 76px; padding: 12px 18px; border-radius: 20px; font-size: 24px; }
  #roll-dice .roll-icon { font-size: 40px; }
  .navigation-pads { bottom: calc(158px + env(safe-area-inset-bottom)); }
  .bottom-left { display: none; }
}
@media(prefers-reduced-motion:reduce) { #roll-dice { transition: none; } }
