.liquid-glass-btn {
  padding: 4px 8px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px; /* More rounded like Apple */
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0.05)
  );
  /*color: rgba(255, 255, 255, 0.55);*/
  color: rgba(139, 69, 19, 0.65);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  outline: none;
  border: none; /* If you want to remove any default border too */
}

/* Subtle inner glow */
.liquid-glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent
  );
}

.liquid-glass-btn:hover {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15), 
    rgba(255, 255, 255, 0.08)
  );
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.liquid-glass-btn.selected {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.25), 
    rgba(255, 255, 255, 0.15)
  );
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.liquid-glass-btn:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button-stack {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
/* Narrow screens: topics split into two columns, top-left and top-right.
   layoutScreen() in interface.js adds .split when one column would overlap the die. */
.button-stack.split {
  top: 12px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(9, auto);
  justify-content: space-between;
  pointer-events: none;   /* the empty middle must not block taps on the die */
}

.button-stack.split button {
  pointer-events: auto;
}

/* Keep buttons full height; if the column is too tall it overflows, which tells layoutScreen() to split it */
.button-stack button {
  flex-shrink: 0;
}
