.difficulty-label { display: block; margin: 30px auto 8px; font-size: .9rem; color: #efdfbc; }
.difficulty-select { display: block; width: min(100%, 350px); min-height: 46px; margin: 0 auto 18px; padding: 10px 12px; border: 1px solid #d8bd80; border-radius: 12px; color: #fff0cc; background: #141e34; font: 500 .95rem/1.4 system-ui, sans-serif; cursor: pointer; }
.difficulty-select:focus-visible { outline: 2px solid #ffe4a5; outline-offset: 4px; }
.game-help { width: min(100%, 650px); margin: 22px auto; padding: 12px 18px; border-radius: 14px; color: #eee1c5; background: #10192cdb; font: .88rem/1.65 system-ui, sans-serif; text-align: left; }
.game-help summary { cursor: pointer; color: #ffe2a1; }
.game-help p { margin: 10px 0 0; }
.stage { position: relative; }
.level-progress { padding-right: 55px; }
.special-mark { display: none; position: absolute; right: 4%; bottom: 4%; min-width: 34%; height: 34%; align-items: center; justify-content: center; border-radius: 50%; font: 900 clamp(.6rem, 2vw, 1.3rem)/1 system-ui, sans-serif; color: #fff4c3; background: #1c1537df; box-shadow: 0 0 0 1px #fff2b5bb, 0 0 6px #ffcf78bb; text-shadow: 0 0 4px #fff; pointer-events: none; }
.cell[data-power="1"] .special-mark, .cell[data-power="2"] .special-mark, .cell[data-power="3"] .special-mark { display: flex; }
.cell[data-power="3"] { border-color: #e4b7f19e; background: radial-gradient(circle, #a16bd651, #1b2440); }
.cell[data-power="3"] .special-mark { color: #fff; background: #733b80; box-shadow: 0 0 0 1px #f8d0ffcc, 0 0 9px #eda2ff; }
.gem-tint { display: grid; place-items: center; position: relative; inline-size: 96%; block-size: 96%; pointer-events: none; }
.gem-tint .gem { inline-size: 100%; block-size: 100%; }
.cell[data-power="3"] .special-mark, .cell[data-power="4"] .special-mark { display: none; }
.cell[data-power="3"] .gem-tint { animation: star-shimmer 2.5s ease-in-out infinite alternate; }
.cell[data-power="4"] .gem-tint { filter: hue-rotate(var(--bomb-hue)); }
.cell[data-power="4"][data-color="1"] .gem-tint { filter: grayscale(1) sepia(1) saturate(4) brightness(1.55); }
.cell[data-power="4"] { border-color: #ffe1a15c; }
@keyframes star-shimmer { from { filter: brightness(1) drop-shadow(0 0 2px #ffe3a366); } to { filter: brightness(1.18) drop-shadow(0 0 6px #fff4bbaa); } }
.cell.is-hint { z-index: 3; animation: hint-hop 1.15s ease-in-out infinite; }
.cell.is-hint, .cell.is-hint-target { border-color: #ffe7a3; box-shadow: inset 0 0 10px #ffe5a52b, 0 0 12px #ffe5a56b; }
.reaction { font-size: clamp(.92rem, 3vw, 1.5rem); }
@keyframes hint-hop { 0%, 65%, 100% { transform: translateY(0); } 20% { transform: translateY(-5px) scale(1.06); } 40% { transform: translateY(0); } }
@media (orientation: landscape) and (max-height: 550px) {
  .stage .level-progress { padding-right: 52px; }
}
@media (prefers-reduced-motion: reduce) { .cell.is-hint, .cell[data-power="3"] .gem-tint { animation: none; } }
