/* Neon Tether — gravity-swing tether platformer theme */
:root {
  --bg: #070312;
  --cyan: #4de0ff;
  --green: #3dff8f;
  --pink: #ff5d9a;
  --gold: #ffe14d;
  --purple: #c060ff;
  --text: #e6ecff;
  --dim: #8a90b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#stage {
  position: relative;
  width: min(100vw, calc(100vh * 1.6));
  height: min(100vh, calc(100vw / 1.6));
  overflow: hidden;
}

#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.screen {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: rgba(7, 3, 18, 0.82);
  text-align: center;
}

#menu { display: flex; }

.hud {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between;
  padding: 10px 16px;
  pointer-events: none;
}
#hud { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 8px 14px; pointer-events: none; text-shadow: 0 0 6px rgba(77,224,255,.5); }
#hud.hidden { display: none; }
.hud-left, .hud-right { display: flex; flex-direction: column; gap: 6px; }
.hud-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.label { color: var(--dim); font-size: 11px; letter-spacing: 2px; }
.val { color: var(--text); font-size: 16px; font-weight: 700; }
#level { color: var(--green); font-size: 15px; letter-spacing: 3px; }
#gems { color: var(--gold); font-size: 12px; letter-spacing: 1px; }

#mute-btn {
  position: absolute; top: 6px; right: 54px;
  background: none; border: none; color: var(--dim);
  font-size: 10px; letter-spacing: 2px; cursor: pointer;
}
#mute-btn.off { color: var(--pink); text-decoration: line-through; }

.btn {
  font-size: 14px; letter-spacing: 2px;
  background: none; cursor: pointer;
  color: var(--cyan); border: 1px solid var(--cyan);
  border-radius: 4px; padding: 8px 18px;
  box-shadow: 0 0 10px rgba(77,224,255,.35);
}
.btn.pink { color: var(--pink); border-color: var(--pink); box-shadow: 0 0 10px rgba(255,93,154,.35); }
.btn:hover { filter: brightness(1.15); }

.hint { color: var(--dim); font-size: 12px; letter-spacing: 0.5px; }
.hint b { color: var(--text); }

.score-list { list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--gold); max-height: 40vh; overflow: auto; }
.score-entry { display: none; flex-direction: column; align-items: center; gap: 8px; }
.score-entry input { font-size: 18px; letter-spacing: 4px; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--dim); border-radius: 4px; padding: 6px; width: 90px; }

#menu h1, .title {
  font-size: 40px; letter-spacing: 8px; color: var(--cyan);
  text-shadow: 0 0 18px rgba(77,224,255,.6);
}
.blurb { color: var(--dim); font-size: 13px; max-width: 460px; line-height: 1.5; }
#intro-overlay { background: rgba(7,3,18,.45); justify-content: center; }
#intro-text { color: var(--gold); font-size: 26px; letter-spacing: 4px; text-shadow: 0 0 12px rgba(255,225,77,.5); }

#topbar { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 8; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid rgba(77, 224, 255, 0.4);
  background: rgba(7, 3, 18, 0.6);
  color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgba(77, 224, 255, 0.18); }
.back-link { color: var(--dim); font-size: 12px; text-decoration: none; }
.back-link:hover { color: var(--cyan); }
