:root {
  --neon-cyan: #00ffff;
  --bg-dark: #05070a;
  --panel-bg: rgba(20, 30, 50, 0.9);
}

* { box-sizing: border-box; }
body {
  margin: 0; width: 100%; height: 100%; overflow: hidden;
  background: var(--bg-dark); color: #e8eefc; font-family: 'Segoe UI', sans-serif;
}

#overlay, #resultOverlay, #ogpOverlay {
  position: fixed; inset: 0;
  background: rgba(0, 5, 15, 0.85); backdrop-filter: blur(10px);
  z-index: 100; display: flex; align-items: center; justify-content: center;
}
#ogpOverlay { z-index: 200; } /* さらに前面に */

#modal, #resultModal, #ogpModal {
  background: var(--panel-bg); padding: 40px; border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, 0.2); text-align: center; width: 95%; max-width: 550px;
  position: relative;
}
#ogpModal { max-width: 650px; }

.version-badge {
  position: absolute; top: 15px; right: 20px; color: var(--neon-cyan);
  font-family: monospace; font-size: 12px; opacity: 0.7;
}

h1 { color: var(--neon-cyan); margin: 0 0 20px; text-transform: uppercase; letter-spacing: 2px; font-size: 24px; }

#specs {
  background: rgba(0, 0, 0, 0.4); padding: 15px; margin-bottom: 25px;
  text-align: left; font-family: monospace; border-left: 3px solid var(--neon-cyan); font-size: 13px; line-height: 1.6;
}

.control-group { margin-bottom: 15px; font-size: 14px; }
#stepSize {
  background: #001122; color: var(--neon-cyan); border: 1px solid var(--neon-cyan);
  padding: 5px; border-radius: 5px; margin-left: 10px;
}

.result-actions {
  display: flex; gap: 15px; justify-content: center; margin-top: 25px;
}

#startButton, .neon-btn {
  background: var(--neon-cyan); color: #001122; border: none; padding: 15px 30px;
  font-size: 16px; font-weight: bold; border-radius: 50px; cursor: pointer;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
#startButton:hover, .neon-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 255, 255, 0.4); }

#scoreDisplay {
  font-size: 56px; font-weight: bold; color: #fff; margin: 15px 0;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

#retryButton, #closeOgpButton {
  background: transparent; color: var(--neon-cyan); border: 2px solid var(--neon-cyan);
  padding: 13px 30px; border-radius: 50px; cursor: pointer; transition: 0.2s;
  font-weight: bold; font-size: 14px;
}
#retryButton:hover, #closeOgpButton:hover { background: rgba(0, 255, 255, 0.1); }

#ogpPreviewImage {
  width: 100%; height: auto; border: 2px solid var(--neon-cyan);
  margin: 10px 0; border-radius: 10px; box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}
