html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0c0a09;
  color: #f1e7d6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}

.menu {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 5, 0.55);
  backdrop-filter: blur(2px);
}

.menu[hidden] { display: none; }

.panel {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px 28px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(48, 36, 28, 0.96), rgba(24, 18, 14, 0.97));
  border: 1px solid rgba(240, 200, 120, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
}

h1 {
  margin: 0 0 4px;
  font-size: 40px;
  letter-spacing: 0.04em;
  color: #f5d9a0;
  font-weight: 800;
}

.sub {
  margin: 0 0 18px;
  color: #b9ab96;
  font-size: 15px;
}

.sub:empty { display: none; }

.body {
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
  color: #d9cdb9;
  margin-bottom: 16px;
}

.body:empty { display: none; }
.body h3 { margin: 12px 0 4px; font-size: 14px; color: #f5d9a0; }
.body p { margin: 4px 0; }
.body .credit { font-size: 12px; color: #b9ab96; margin: 6px 0; word-break: break-word; }

.items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.items button {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #efe4d2;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.items button .val { color: #f5d9a0; font-weight: 500; }
.items button:only-child, .items button.plain { justify-content: center; }

.items button.focus {
  background: rgba(240, 200, 120, 0.2);
  border-color: rgba(240, 200, 120, 0.8);
  color: #fff;
}
