/* ===================================================
   VMS - style.css : ダークSFテーマ（モバイル縦画面優先）
   =================================================== */

/* --- リセット & 基本設定 --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* カラーパレット */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2236;
  --bg-card: #1e293b;
  --bg-hover: #253349;
  --border-color: #2a3a52;
  --border-glow: #0ea5e9;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  /* アクセント */
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-yellow: #eab308;
  --accent-purple: #a855f7;
  --accent-orange: #f97316;
  /* 属性色 */
  --type-fire: #ff6b35;
  --type-water: #4da6ff;
  --type-grass: #4ade80;
  --type-light: #fbbf24;
  --type-dark: #a78bfa;
  --type-neutral: #cbd5e1;
  /* HP/ステータス */
  --hp-color: #22c55e;
  --hp-low: #ef4444;
  --stamina-color: #eab308;
  --exp-color: #06b6d4;
  /* サイズ */
  --header-height: 40px;
  --status-height: 80px;
  --nav-height: 56px;
  --log-height: 80px;
  /* フォント */
  --font-ui: 'Orbitron', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* --- スクリーン管理 --- */
.screen {
  display: none;
  width: 100%;
  height: 100%;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

/* =========================================
   タイトル画面
   ========================================= */
.title-bg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a0e17 0%, #0f172a 40%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
}

.title-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(2%, -2%) scale(1.05);
  }
}

.title-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
}

.title-logo {
  margin-bottom: 12px;
}

.title-vms {
  display: block;
  font-family: var(--font-ui);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(6, 182, 212, 0.3);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    filter: brightness(1);
  }

  100% {
    filter: brightness(1.2);
  }
}

.title-sub {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.title-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 30px;
}

.title-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 220px;
  margin-bottom: 8px;
}

.input-group label {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: left;
}

.input-group input {
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

/* =========================================
   ボタン
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-lg {
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  width: 220px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 11px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  font-size: 18px;
  padding: 4px 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-color: var(--accent-blue);
  color: #fff;
  font-family: var(--font-ui);
  letter-spacing: 2px;
}

.btn-primary:active {
  background: linear-gradient(135deg, #0891b2, #2563eb);
}

.btn-secondary {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

.btn-danger {
  background: var(--accent-red);
  border-color: #dc2626;
  color: #fff;
}

.btn-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* =========================================
   ヘッダー
   ========================================= */
#header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 10px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-text {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.header-center .hud-text {
  color: var(--accent-cyan);
  font-size: 12px;
}

.speed-control button {
  font-family: var(--font-ui);
  color: var(--accent-yellow);
}

/* =========================================
   プレイヤーステータス
   ========================================= */
#player-status {
  padding: 6px 10px 8px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.stat-row {
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-label {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-muted);
  width: 24px;
  text-align: right;
}

.bar-container {
  flex: 1;
  height: 14px;
  background: var(--bg-primary);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.3s ease;
}

.hp-bar .bar-fill {
  background: linear-gradient(90deg, #16a34a, var(--hp-color));
}

.hp-bar.low .bar-fill {
  background: linear-gradient(90deg, #dc2626, var(--hp-low));
}

.stamina-bar .bar-fill {
  background: linear-gradient(90deg, #ca8a04, var(--stamina-color));
}

.exp-bar .bar-fill {
  background: linear-gradient(90deg, #0891b2, var(--exp-color));
}

.bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-ui);
  font-size: 9px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* =========================================
   メインコンテンツ
   ========================================= */
#main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.content-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 8px;
}

.content-panel.active {
  display: flex;
}

.panel-title {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 1px;
}

.sub-text {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* =========================================
   マップ
   ========================================= */
.map-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-template-rows: repeat(11, 1fr);
  gap: 1px;
  flex: 1;
  aspect-ratio: 1;
  max-width: 100%;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.map-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  min-height: 0;
}

.map-tile:active {
  filter: brightness(1.3);
}

.map-tile.player-tile {
  box-shadow: inset 0 0 8px var(--accent-cyan);
}

.map-tile.fog {
  background: #0a0e17 !important;
}

.tile-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

#tile-resources {
  color: var(--accent-green);
  font-size: 11px;
}

/* =========================================
   戦闘画面
   ========================================= */
#combat-view {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#combat-enemy-area {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  flex-shrink: 0;
}

.combat-entity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
}

.combat-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  background: var(--bg-tertiary);
}

.combat-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 戦闘画面内のバーコンテナが潰れないように */
.combat-stats .bar-container {
  flex: none;
  min-height: 14px;
}

/* 味方ステータスカード内のバーも */
.combat-ally-card .bar-container {
  flex: none;
  min-height: 14px;
}

.entity-name {
  font-weight: 700;
  font-size: 15px;
}

.entity-level {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

#combat-log {
  min-height: 80px;
  max-height: 150px;
  flex: 1;
  padding: 6px 8px;
  overflow-y: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

#combat-log .log-entry {
  padding: 2px 0;
  font-size: 12px;
  color: var(--text-primary);
}

#combat-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex-shrink: 0;
  padding-top: 4px;
}

/* =========================================
   アイテムリスト / レシピリスト
   ========================================= */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.item-row:active {
  background: var(--bg-hover);
}

.item-row.disabled {
  opacity: 0.4;
}

.item-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-desc {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-qty {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* --- クラフトキュー --- */
.craft-queue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.craft-job {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
}

.craft-progress {
  flex: 1;
}

.craft-progress .bar-container {
  height: 10px;
}

/* =========================================
   ヴァーモンリスト
   ========================================= */
.vermon-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vermon-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.vermon-card:active {
  background: var(--bg-hover);
}

.vermon-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.vermon-info {
  flex: 1;
  overflow: hidden;
}

.vermon-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.vermon-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.type-badge.fire {
  background: var(--type-fire);
  color: #fff;
}

.type-badge.water {
  background: var(--type-water);
  color: #fff;
}

.type-badge.grass {
  background: var(--type-grass);
  color: #1a1a1a;
}

.type-badge.light {
  background: var(--type-light);
  color: #1a1a1a;
}

.type-badge.dark {
  background: var(--type-dark);
  color: #fff;
}

.type-badge.neutral {
  background: var(--type-neutral);
  color: #1a1a1a;
}

.vermon-level {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-muted);
}

.vermon-hp-mini {
  height: 6px;
  margin-top: 3px;
}

.vermon-passive-tags {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.passive-tag {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* --- タブ --- */
.tab-group {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.tab-btn {
  flex: 1;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #fff;
}

/* =========================================
   ゲームログ
   ========================================= */
.log-area {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

#game-log {
  height: var(--log-height);
  padding: 4px 8px;
}

#log-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.log-entry {
  padding: 1px 0;
  border-bottom: 1px solid rgba(42, 58, 82, 0.3);
  animation: logFadeIn 0.2s ease;
}

@keyframes logFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-entry.important {
  color: var(--accent-cyan);
}

.log-entry.danger {
  color: var(--accent-red);
}

.log-entry.success {
  color: var(--accent-green);
}

/* =========================================
   下部ナビゲーション
   ========================================= */
#bottom-nav {
  display: flex;
  height: var(--nav-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s;
  padding: 4px 0;
}

.nav-btn.active {
  color: var(--accent-cyan);
}

.nav-btn:active {
  color: var(--accent-cyan);
}

.nav-icon {
  font-size: 20px;
  line-height: 1;
}

.nav-label {
  font-size: 9px;
  letter-spacing: 0.5px;
}

/* =========================================
   モーダル
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideUp 0.25s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(40px);
  }

  to {
    transform: translateY(0);
  }
}

.modal-sm {
  max-height: 50vh;
}

.modal-lg {
  max-height: 90vh;
  border-radius: 16px 16px 0 0;
}

.modal-title {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

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

/* =========================================
   トースト通知
   ========================================= */
#toast-container {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  width: 90%;
  max-width: 360px;
}

.toast {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.toast.success {
  border-color: var(--accent-green);
}

.toast.error {
  border-color: var(--accent-red);
}

.toast.info {
  border-color: var(--accent-cyan);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* =========================================
   マップのアクションボタン（採集等）
   ========================================= */
.map-action-bar {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.map-action-bar .btn {
  flex: 1;
  font-size: 12px;
  padding: 8px 4px;
}

/* =========================================
   ヴァーモン詳細モーダル
   ========================================= */
.vd-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.vd-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--border-color);
  background: var(--bg-tertiary);
}

.vd-basic {
  flex: 1;
}

.vd-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.vd-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.vd-section {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.vd-section-title {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.vd-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.vd-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 12px;
}

.vd-stat-label {
  color: var(--text-muted);
}

.vd-stat-value {
  font-family: var(--font-ui);
  font-weight: 700;
}

.vd-moves-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vd-move-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 12px;
}

.vd-move-name {
  font-weight: 500;
  flex: 1;
}

.vd-move-power {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

.vd-work-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vd-work-badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  font-size: 11px;
}

.vd-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.vd-actions .btn {
  flex: 1;
}

/* =========================================
   戦闘 - 味方ステータスカード
   ========================================= */
#combat-ally-area {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 6px 0;
  padding: 6px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.combat-ally-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 11px;
}

.combat-ally-card.fainted {
  opacity: 0.4;
  filter: grayscale(0.5);
}

.ally-thumb {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.ally-name {
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  min-width: 50px;
}

/* VMC残数バッジ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 10px;
  font-family: var(--font-ui);
  margin-left: 4px;
}

/* 捕獲揺れアニメーション */
@keyframes captureShake {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  25% {
    transform: translateX(-8px) rotate(-5deg);
  }

  50% {
    transform: translateX(0) rotate(0deg);
  }

  75% {
    transform: translateX(8px) rotate(5deg);
  }

  100% {
    transform: translateX(0) rotate(0deg);
  }
}

/* HPバー depleted状態 */
.bar-fill.depleted {
  background: linear-gradient(90deg, #666, #888) !important;
}

/* =========================================
   PC向けレスポンシブ
   ========================================= */
@media (min-width: 480px) {
  #game-screen {
    max-width: 420px;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.05);
  }

  .title-vms {
    font-size: 72px;
  }
}