#game {
  --neon-blue: #3cd6ff;
  --neon-blue-soft: rgba(60, 214, 255, 0.35);
  --neon-magenta: #fff;
  --neon-green: #ccff33;
  --tile-base: #0b1422;
  --tile-open: #13233a;
  --grid-bg: radial-gradient(circle at 20% 20%, rgba(44, 80, 140, 0.25), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(255, 77, 255, 0.18), transparent 50%),
    linear-gradient(135deg, #050912 0%, #070c18 45%, #090f1d 100%);
  display: grid;
  justify-content: center;
  margin: 0 auto;
  gap: 2px;
  padding: 10px;
  border-radius: 14px;
  background: var(--grid-bg);
  box-shadow: 0 0 24px rgba(60, 214, 255, 0.15), 0 0 40px rgba(255, 77, 255, 0.2);
}

.cell {
  width: 32px;
  height: 32px;
  border-radius: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  background: var(--tile-base);
  color: #bfe8ff;
  transition: background 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 0 10px rgba(60, 214, 255, 0.15),
    0 0 6px rgba(255, 96, 247, 0.25);
}

.cell.open {
  background: var(--tile-open);
  color: #e6f6ff;
  cursor: default;
  border-color: rgba(60, 214, 255, 0.85);
  box-shadow:
    inset 0 0 12px rgba(60, 214, 255, 0.25),
    0 0 8px rgba(60, 214, 255, 0.25);
}

/* .cell.mine {
  background: #fce24c !important;
  color: #fff;
} */

/* 地雷（爆発）マスにアイコン表示 */
.cell.mine {
  background-image: url("/img/minesweeper/flower.png");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #93d8ff;
}


/* .cell.flag {
  background: #4da6e8 !important;
} */

.cell.number-1,
.cell.number-2,
.cell.number-3,
.cell.number-4,
.cell.number-5,
.cell.number-6,
.cell.number-7,
.cell.number-8 {
  color: #79d7ff !important;
  text-shadow: 0 0 6px rgba(60, 214, 255, 0.6);
}

/* 各マス共通の背景（サイバーパネル） */
.cell {
  background-image: none;
}

/* 旗マークをかわいい旗画像に */
.cell.flag {
  background-image: url("/img/minesweeper/leaves.png");
  background-size: 60%; /* ← 80% → 60% に変更して余白を作る */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0e1b2c;
  color: transparent; /* テキスト非表示 */
  border-color: color-mix(in srgb, var(--neon-green) 85%, transparent);
  box-shadow:
    inset 0 0 10px color-mix(in srgb, var(--neon-green) 30%, transparent),
    0 0 8px color-mix(in srgb, var(--neon-green) 45%, transparent);
}

.cell {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* 開いたマスはちょっと明るく（掘った感じ） */
/* .cell.open {
  background-image: url("/img/minesweeper/mine/dug.png");
  background-color: #dcdcdc;
} */



#reset {
  min-width: 120px;
  font-weight: bold;
}

#timer, #flagsLeft {
  font-weight: bold;
  font-size: 1.2rem;
  color: #bfe8ff;
}

.bi-alarm, .bi-flag {
  font-size: 1.3rem;
  color: #ff4dff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* 📱 スマホ長押しによる選択・保存・メニューを無効化 */
#game, 
#game .cell {
  -webkit-touch-callout: none; /* iOS長押しメニュー無効（画像保存など） */
  -webkit-user-select: none;   /* テキスト選択禁止 */
  user-select: none;           /* ほぼ全ブラウザ対応 */
  -webkit-tap-highlight-color: transparent; /* タップ時の青枠消す */
}


