* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  background: #008080; /* classic Win95 teal desktop */
  font-family: Tahoma, "MS Sans Serif", Verdana, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#frame {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: 4px 4px 18px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
}
#titlebar {
  background: linear-gradient(to right, #000080, #1084d0);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 3px 4px 3px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: .3px;
}
#titlebar-btns i {
  display: inline-block;
  font-style: normal;
  background: #c0c0c0;
  color: #000;
  border: 1px solid;
  border-color: #fff #404040 #404040 #fff;
  width: 16px; height: 14px;
  line-height: 12px;
  text-align: center;
  font-size: 11px;
  margin-left: 2px;
}
#menubar {
  font-size: 12px;
  padding: 2px 4px;
  border-bottom: 1px solid #808080;
  position: relative;
}
.menu-item { padding: 1px 7px; cursor: default; }
.menu-item:hover { background: #000080; color: #fff; }
.popup-menu {
  position: absolute;
  top: 44px; left: 6px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  z-index: 30;
  font-size: 12px;
  min-width: 190px;
  box-shadow: 3px 3px 8px rgba(0,0,0,.4);
}
.popup-menu div { padding: 4px 12px; display:flex; justify-content:space-between; cursor: default; }
.popup-menu div:hover { background: #000080; color: #fff; }
.popup-menu.hidden { display: none; }
#stage { position: relative; line-height: 0; }
canvas#game {
  display: block;
  width: 100%;
  height: auto;
  background: #000010;
}
.touch-zone { position: absolute; bottom: 0; top: 55%; display: none; }
#touch-left { left: 0; width: 42%; }
#touch-right { left: 42%; width: 42%; }
#touch-plunger { left: 84%; width: 16%; top: 0; }
@media (pointer: coarse) {
  .touch-zone { display: block; }
}
#hint {
  font-size: 11px;
  color: #222;
  padding: 3px 8px;
  border-top: 1px solid #808080;
  background: #c0c0c0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
