/* Match the window controls used throughout noahdoub.com. */
.window-top-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 6px 16px;
  border: 0;
  border-bottom: 2px solid #d6cb72;
  border-radius: 0;
  background: #1e1e1e;
  color: #d6cb72;
  box-shadow: none;
  font: 16px 'Play', sans-serif;
}

.window-top-bar .window-title {
  flex: 1;
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: #d6cb72;
  font-size: 16px;
  font-weight: normal;
  text-overflow: ellipsis;
  text-shadow: none;
  white-space: nowrap;
}

.window-top-bar .window-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.window-top-bar .window-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d6cb72;
  border-radius: 3px;
  background: #1e1e1e;
  color: #d6cb72;
  box-shadow: none;
  font: 16px 'Play', sans-serif;
  cursor: pointer;
}

.window-top-bar .window-controls button:hover {
  background: #c67cf4;
  color: #fff;
  box-shadow: none;
}

.window-top-bar .window-controls button.mute {
  border: 0;
  background: transparent;
  color: #04ef04;
}

.window-top-bar .window-controls button.mute:hover { color: #ff4500; }
.window-top-bar .mute svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.window-top-bar .mute .mute-mark { display: none; }
.window-top-bar .mute.muted .mute-mark { display: block; }

.window-top-bar .window-controls .volume-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 120px;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, #dfcc6c, #c67cf4);
  box-shadow: inset 0 1px 4px rgba(255,255,255,0.2), 0 0 5px rgba(198,124,244,0.4);
}

.window-top-bar .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #d6cb72;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px #d6cb72, 0 0 2px #fff;
  cursor: pointer;
}

.window-top-bar .volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #d6cb72;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px #d6cb72, 0 0 2px #fff;
  cursor: pointer;
}

nav.game-nav { top: 42px; }

@media (max-width: 600px) {
  .window-top-bar { height: 72px; padding: 6px 10px; flex-wrap: wrap; gap: 4px; }
  .window-top-bar .window-title { flex: 0 0 100%; font-size: 14px; }
  .window-top-bar .window-controls { width: 100%; justify-content: flex-end; }
  .window-top-bar .window-controls button { width: 28px; min-width: 28px; height: 28px; font-size: 14px; }
  .window-top-bar .window-controls .volume-slider { width: 90px; }
  nav.game-nav { top: 72px; }
}
