/* Neon Stride - 全UIスタイル */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
  overflow: hidden;
  background: #0a0a0a;
  font-family: 'Orbitron', monospace, sans-serif;
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
}

canvas {
  display: block;
}

/* ==================== タイトル画面 ==================== */
#title-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a0a2a 0%, #000 80%);
  z-index: 200;
  cursor: pointer;
}

.title-content {
  text-align: center;
}

.title-logo {
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 900;
  color: #0ff;
  text-shadow:
    0 0 10px #0ff,
    0 0 20px #0ff,
    0 0 40px #0ff,
    0 0 80px #00aaff;
  letter-spacing: 0.15em;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff, 0 0 80px #00aaff; }
  50% { text-shadow: 0 0 15px #0ff, 0 0 30px #0ff, 0 0 60px #0ff, 0 0 120px #00aaff; }
}

.title-sub {
  font-size: clamp(0.7rem, 2vw, 1.2rem);
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  margin-top: 0.5em;
  letter-spacing: 0.3em;
}

.title-start {
  font-size: clamp(0.6rem, 1.5vw, 1rem);
  color: #fff;
  margin-top: 2em;
  animation: blink 1.2s step-start infinite;
  letter-spacing: 0.2em;
  cursor: pointer;
  padding: 15px 30px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.title-logo, .title-sub {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* タイトルボタン */
.title-buttons {
  margin-top: 2em;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.title-btn {
  padding: 14px 30px;
  background: rgba(0, 255, 255, 0.05);
  border: 2px solid rgba(0, 255, 255, 0.5);
  color: #0ff;
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.1em;
  text-shadow: 0 0 5px #0ff;
  -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  min-width: 100px;
  min-height: 44px;
  position: relative;
  z-index: 210;
}

.title-btn:hover, .title-btn:active {
  background: rgba(0, 255, 255, 0.15);
  border-color: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* 説明画面 */
#help-screen, #language-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 10, 0.95);
  z-index: 210;
}

.help-box {
  background: rgba(8, 8, 25, 0.98);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 14px;
  padding: 25px 30px;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  width: 90vw;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

.help-title {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}

.help-content h3 {
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
  margin-top: 16px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.help-content p {
  font-size: clamp(0.55rem, 1.2vw, 0.72rem);
  color: #bbc;
  line-height: 1.6;
  margin-bottom: 8px;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.help-table td {
  font-size: clamp(0.55rem, 1.2vw, 0.72rem);
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.help-table td:first-child {
  color: #0ff;
  text-shadow: 0 0 3px #0ff;
  white-space: nowrap;
  width: 40%;
}

.help-table td:last-child {
  color: #aab;
}

/* 言語設定 */
.language-box {
  max-width: 350px;
}

.language-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
  touch-action: manipulation;
}

.language-btn:hover, .language-btn:active {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.5);
}

.language-btn.active-lang {
  border-color: #0ff;
  background: rgba(0, 255, 255, 0.1);
}

.lang-flag {
  font-size: 1.8rem;
}

.lang-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: #ccc;
}

/* ==================== HUD ==================== */
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#timer {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #0ff;
  text-shadow: 0 0 8px #0ff, 0 0 16px #0ff;
  letter-spacing: 0.1em;
}

#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.5);
  pointer-events: none;
}

#stage-name-flash {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#guide-text {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 255, 0.4);
  padding: 12px 24px;
  border-radius: 8px;
  text-shadow: 0 0 5px #0ff;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
  white-space: nowrap;
}

/* ==================== 速度線（風エフェクト） ==================== */
#speed-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#wind-canvas {
  width: 100%;
  height: 100%;
}

/* ==================== 死亡フラッシュ ==================== */
#death-flash {
  position: fixed;
  inset: 0;
  background: red;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.2s ease;
}

/* ==================== メニュー共通 ==================== */
#pause-menu, #result-screen, #hub-menu {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
}

.hub-controls-info {
  text-align: left;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 255, 255, 0.03);
}

.hub-controls-title {
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
  margin-bottom: 10px;
  text-align: center;
}

.hub-controls-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: clamp(0.55rem, 1.2vw, 0.7rem);
}

.hub-controls-grid .ctrl-key {
  color: #0ff;
  font-weight: 700;
}

.hub-controls-grid .ctrl-desc {
  color: #aaa;
}

.menu-box {
  background: rgba(10, 10, 30, 0.95);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 12px;
  padding: 30px 40px;
  text-align: center;
  min-width: 280px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1), inset 0 0 30px rgba(0, 255, 255, 0.05);
}

.menu-box h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
  margin-bottom: 20px;
  letter-spacing: 0.15em;
}

.neon-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin: 10px 0;
  background: transparent;
  border: 1px solid rgba(0, 255, 255, 0.5);
  color: #0ff;
  font-family: 'Orbitron', monospace;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
  -webkit-user-select: none;
  user-select: none;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.1em;
  text-shadow: 0 0 5px #0ff;
  pointer-events: auto;
}

.neon-btn:hover {
  background: rgba(0, 255, 255, 0.15);
  border-color: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.neon-btn:active {
  background: rgba(0, 255, 255, 0.3);
}

/* ==================== リザルト画面 ==================== */
.result-box .stars {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #ffcc00;
  text-shadow: 0 0 10px #ffcc00, 0 0 20px #ff8800;
  margin: 15px 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-row span:first-child {
  color: #888;
}

.result-row span:last-child {
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
}

.result-unlock {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  font-size: clamp(0.6rem, 1.3vw, 0.9rem);
  margin: 15px 0;
  animation: unlockPulse 0.5s ease-in-out 3;
}

@keyframes unlockPulse {
  50% { transform: scale(1.1); }
}

/* ==================== ポータルプロンプト ==================== */
#portal-prompt {
  position: fixed;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 15;
  pointer-events: none;
  letter-spacing: 0.1em;
}

/* ==================== ステージ選択UI ==================== */
#stage-select {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 110;
}

.stage-select-box {
  background: rgba(8, 8, 25, 0.97);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 16px;
  padding: 30px 35px;
  min-width: 340px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.1), inset 0 0 40px rgba(0, 255, 255, 0.03);
}

.stage-select-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.8rem;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  transition: color 0.2s;
  padding: 8px 12px;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
  touch-action: manipulation;
}

.stage-select-close:hover {
  color: #fff;
}

.stage-select-title {
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.2em;
}

/* 進捗バー */
.stage-select-progress {
  margin-bottom: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.55rem, 1.2vw, 0.75rem);
  color: #aab;
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-stars {
  text-align: right;
  font-size: clamp(0.5rem, 1.1vw, 0.65rem);
  color: #ffcc00;
  margin-top: 5px;
  text-shadow: 0 0 4px #ffcc00;
}

.stage-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.stage-select-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
  touch-action: manipulation;
  user-select: none;
}

.stage-select-item:hover:not(.locked) {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.15);
}

.stage-select-item.locked {
  opacity: 0.35;
  cursor: default;
}

.stage-select-num {
  font-size: clamp(0.65rem, 1.4vw, 0.85rem);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}

.stage-select-stars {
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  color: #ffcc00;
  text-shadow: 0 0 6px #ffcc00;
  margin-bottom: 4px;
}

.stage-select-time {
  font-size: clamp(0.5rem, 1.1vw, 0.7rem);
  color: #0ff;
  text-shadow: 0 0 4px #0ff;
}

.stage-select-lock {
  font-size: 1.3rem;
  margin-top: 5px;
}

.stage-select-lock-text {
  font-size: clamp(0.45rem, 1vw, 0.6rem);
  color: #555;
  margin-top: 3px;
}

.stage-clear-badge {
  font-size: clamp(0.45rem, 1vw, 0.55rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.stage-clear-badge.new {
  color: #88ff88;
  text-shadow: 0 0 5px #88ff88;
}

.stage-select-item.cleared {
  background: rgba(255, 255, 255, 0.05);
}

/* ==================== 特殊効果UI ==================== */
#skin-ui {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 90;
}

.power-box {
  padding: 20px 25px;
  min-width: 300px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.skin-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 0, 255, 0.4);
  border-radius: 50%;
  color: #ff00ff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  z-index: 5;
}

.skin-close-btn:hover, .skin-close-btn:active {
  background: rgba(255, 0, 255, 0.2);
  border-color: #ff00ff;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
  color: #fff;
}

.power-title {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
  margin-bottom: 15px;
  letter-spacing: 0.2em;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  text-align: center;
}

/* --- パワーアイテム共通 --- */
.power-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(255, 0, 255, 0.2);
  touch-action: manipulation;
}

/* --- 購入済みパワー --- */
.power-unlocked:hover {
  background: rgba(255, 0, 255, 0.08);
  transform: translateX(3px);
}

.power-item.selected {
  border-color: #ff00ff !important;
  background: rgba(255, 0, 255, 0.15);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.3);
}

.power-color {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.power-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.power-name {
  font-size: clamp(0.65rem, 1.4vw, 0.8rem);
  font-weight: 700;
}

.power-desc {
  font-size: clamp(0.5rem, 1.1vw, 0.65rem);
  color: #888;
}

.power-equipped {
  font-size: clamp(0.55rem, 1.1vw, 0.65rem);
  color: #ff00ff;
  font-weight: 700;
  text-shadow: 0 0 6px #ff00ff;
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid rgba(255, 0, 255, 0.4);
  border-radius: 4px;
  background: rgba(255, 0, 255, 0.1);
}

.power-equip-btn {
  font-size: clamp(0.5rem, 1.1vw, 0.6rem);
  color: #aaa;
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.power-unlocked:hover .power-equip-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

/* --- コイン表示 --- */
.power-coins {
  text-align: center;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  color: #ffcc00;
  text-shadow: 0 0 8px #ffcc00;
  margin-bottom: 15px;
  padding: 8px;
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 8px;
  background: rgba(255, 204, 0, 0.05);
}

/* --- 未購入・ロック中パワー --- */
.power-locked {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.power-lock-badge {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  line-height: 22px;
}

.power-buy-price {
  font-size: clamp(0.6rem, 1.3vw, 0.75rem);
  color: #666;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.power-buy-price.can-buy {
  color: #ffcc00;
  text-shadow: 0 0 5px #ffcc00;
  border-color: rgba(255, 204, 0, 0.4);
  background: rgba(255, 204, 0, 0.08);
}

.power-locked.buyable {
  cursor: pointer;
}

.power-locked.buyable:hover {
  background: rgba(255, 204, 0, 0.08);
  border-color: rgba(255, 204, 0, 0.3);
  transform: translateX(3px);
}

.power-locked.cant-afford {
  opacity: 0.45;
  cursor: default;
}

.skin-hint {
  font-size: clamp(0.45rem, 1vw, 0.55rem);
  color: #555;
  margin-top: 12px;
  text-align: center;
}

/* ==================== モバイルタッチUI ==================== */
#touch-ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

#joystick-outer {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

#joystick-inner {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.touch-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.5);
  color: #0ff;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  text-shadow: 0 0 5px #0ff;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.touch-btn:active {
  background: rgba(0, 255, 255, 0.3);
}

.touch-btn.active {
  background: rgba(0, 255, 255, 0.3);
  border-color: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

#btn-touch-jump {
  right: 20px;
  bottom: 130px;
}

#btn-touch-dash {
  right: 90px;
  bottom: 60px;
}

#btn-touch-slide {
  right: 20px;
  bottom: 60px;
}

.touch-pause {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 50px;
  height: 50px;
  font-size: 20px;
  border-radius: 10px;
  z-index: 25;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ==================== 縦画面推奨オーバーレイ ==================== */
#orientation-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 10, 0.97);
  z-index: 999;
}

.orientation-content {
  text-align: center;
  padding: 30px;
  max-width: 90vw;
}

.orientation-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: orientationRotate 2s ease-in-out infinite;
}

@keyframes orientationRotate {
  0%, 100% { transform: rotate(90deg); }
  50% { transform: rotate(0deg); }
}

.orientation-title {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.orientation-sub {
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  color: #aab;
  line-height: 1.6;
  margin-bottom: 20px;
}

.orientation-divider {
  width: 60%;
  height: 1px;
  background: rgba(0, 255, 255, 0.2);
  margin: 20px auto;
}

.orientation-alt {
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
  color: #667;
  margin-bottom: 12px;
}

.orientation-btn {
  display: inline-block;
  padding: 10px 25px;
  background: transparent;
  border: 1px solid rgba(0, 255, 255, 0.4);
  color: #0ff;
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.6rem, 1.4vw, 0.8rem);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  letter-spacing: 0.1em;
  text-shadow: 0 0 5px #0ff;
  -webkit-tap-highlight-color: transparent;
}

.orientation-btn:hover, .orientation-btn:active {
  background: rgba(0, 255, 255, 0.15);
  border-color: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* ==================== スクロールバー ==================== */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.3);
  border-radius: 2px;
}
