/* ============================================================
   MINESWEEPER — Cyberpunk / Neon Gamer UI
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Exo+2:wght@400;600;700;800;900&display=swap');

/* ============================================================
   BASE RESET
   ============================================================ */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0a0a0f;
  font-family: 'Exo 2', sans-serif;
  color: #e0e8ff;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
#msPage {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: #0a0a0f;
}

/* ============================================================
   MODE SELECTION OVERLAY
   ============================================================ */
#msModeSelect {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0,200,255,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(140,0,255,.08) 0%, transparent 50%),
    linear-gradient(160deg, #07070d 0%, #0d0d1a 50%, #070712 100%);
  backdrop-filter: blur(4px);
  /* Animated grid background */
  --grid-color: rgba(0,200,255,.07);
}

/* Scanline grid overlay */
#msModeSelect::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  0%   { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

/* Scanlines effect */
#msModeSelect::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.08) 3px,
    rgba(0,0,0,.08) 4px
  );
  pointer-events: none;
}

.ms-mode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 28px;
  max-width: 760px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.ms-mode-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #00f5ff;
  text-shadow:
    0 0 10px rgba(0,245,255,.9),
    0 0 30px rgba(0,245,255,.5),
    0 0 60px rgba(0,245,255,.25);
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.ms-mode-subtitle {
  font-size: .85rem;
  color: rgba(160,200,255,.55);
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  margin-top: -12px;
}

.ms-mode-cards {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
}

.ms-mode-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  background: rgba(14,14,28,.85);
  backdrop-filter: blur(8px);
}

/* Shimmer sweep on hover */
.ms-mode-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transition: left .4s ease;
  pointer-events: none;
}
.ms-mode-card:hover::after {
  left: 150%;
}

.ms-mode-card:hover {
  transform: translateY(-4px);
}

/* Glow line at top */
.ms-mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  pointer-events: none;
}

/* Easy — cyan */
.ms-mode-card--easy {
  border: 1px solid rgba(0,245,255,.3);
  box-shadow:
    0 0 0 1px rgba(0,245,255,.08),
    0 8px 32px rgba(0,245,255,.12),
    inset 0 1px 0 rgba(0,245,255,.08);
}
.ms-mode-card--easy::before {
  background: linear-gradient(90deg, transparent, #00f5ff, transparent);
  box-shadow: 0 0 12px rgba(0,245,255,.6);
}
.ms-mode-card--easy:hover {
  border-color: rgba(0,245,255,.6);
  box-shadow:
    0 0 0 1px rgba(0,245,255,.2),
    0 12px 40px rgba(0,245,255,.22),
    inset 0 1px 0 rgba(0,245,255,.12);
}

/* Medium — purple */
.ms-mode-card--medium {
  border: 1px solid rgba(180,0,255,.3);
  box-shadow:
    0 0 0 1px rgba(180,0,255,.08),
    0 8px 32px rgba(180,0,255,.12),
    inset 0 1px 0 rgba(180,0,255,.08);
}
.ms-mode-card--medium::before {
  background: linear-gradient(90deg, transparent, #bf00ff, transparent);
  box-shadow: 0 0 12px rgba(180,0,255,.6);
}
.ms-mode-card--medium:hover {
  border-color: rgba(180,0,255,.6);
  box-shadow:
    0 0 0 1px rgba(180,0,255,.2),
    0 12px 40px rgba(180,0,255,.22),
    inset 0 1px 0 rgba(180,0,255,.12);
}

/* Hard — red/orange */
.ms-mode-card--hard {
  border: 1px solid rgba(255,50,80,.3);
  box-shadow:
    0 0 0 1px rgba(255,50,80,.08),
    0 8px 32px rgba(255,50,80,.12),
    inset 0 1px 0 rgba(255,50,80,.08);
}
.ms-mode-card--hard::before {
  background: linear-gradient(90deg, transparent, #ff3250, transparent);
  box-shadow: 0 0 12px rgba(255,50,80,.6);
}
.ms-mode-card--hard:hover {
  border-color: rgba(255,50,80,.6);
  box-shadow:
    0 0 0 1px rgba(255,50,80,.2),
    0 12px 40px rgba(255,50,80,.22),
    inset 0 1px 0 rgba(255,50,80,.12);
}

.ms-mode-card-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.ms-mode-card-name {
  font-family: 'Orbitron', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.ms-mode-card--easy   .ms-mode-card-name { color: #00f5ff; text-shadow: 0 0 10px rgba(0,245,255,.6); }
.ms-mode-card--medium .ms-mode-card-name { color: #bf00ff; text-shadow: 0 0 10px rgba(180,0,255,.6); }
.ms-mode-card--hard   .ms-mode-card-name { color: #ff3250; text-shadow: 0 0 10px rgba(255,50,80,.6); }

.ms-mode-card-info {
  font-size: .72rem;
  text-align: center;
  letter-spacing: .06em;
  opacity: .5;
  color: #a0b8e0;
}

/* Neon buttons */
.ms-mode-btn {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .08s, box-shadow .08s, filter .1s;
  margin-top: 4px;
}

.ms-mode-btn:active { transform: translateY(2px); }

/* Easy — cyan */
.ms-mode-btn--easy {
  background: linear-gradient(180deg, #00e8f5 0%, #00a8b8 55%, #007a88 100%);
  color: #001820;
  box-shadow: 0 4px 0 #004055, 0 6px 18px rgba(0,220,240,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.ms-mode-btn--easy:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 0 #004055, 0 8px 28px rgba(0,240,255,.5), inset 0 1px 0 rgba(255,255,255,.3);
}
.ms-mode-btn--easy:active {
  box-shadow: 0 1px 0 #004055, 0 2px 8px rgba(0,0,0,.3);
}

/* Medium — purple */
.ms-mode-btn--medium {
  background: linear-gradient(180deg, #d060ff 0%, #9000cc 55%, #680090 100%);
  color: #f0d0ff;
  box-shadow: 0 4px 0 #3a0060, 0 6px 18px rgba(160,0,220,.35), inset 0 1px 0 rgba(255,255,255,.28);
}
.ms-mode-btn--medium:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 0 #3a0060, 0 8px 28px rgba(200,0,255,.5), inset 0 1px 0 rgba(255,255,255,.28);
}
.ms-mode-btn--medium:active {
  box-shadow: 0 1px 0 #3a0060, 0 2px 8px rgba(0,0,0,.3);
}

/* Hard — red */
.ms-mode-btn--hard {
  background: linear-gradient(180deg, #ff5068 0%, #cc1830 55%, #991020 100%);
  color: #ffe0e8;
  box-shadow: 0 4px 0 #550010, 0 6px 18px rgba(220,0,40,.35), inset 0 1px 0 rgba(255,255,255,.28);
}
.ms-mode-btn--hard:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 0 #550010, 0 8px 28px rgba(255,0,50,.5), inset 0 1px 0 rgba(255,255,255,.28);
}
.ms-mode-btn--hard:active {
  box-shadow: 0 1px 0 #550010, 0 2px 8px rgba(0,0,0,.3);
}

/* ============================================================
   GAME AREA
   ============================================================ */
#msGame {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, #0c0c18 0%, #0a0a0f 100%);
}

/* ============================================================
   HUD HEADER BAR
   ============================================================ */
#msHeader {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 16px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #14141f 0%, #0e0e18 100%);
  border-bottom: 1px solid rgba(0,200,255,.2);
  box-shadow:
    0 1px 0 rgba(0,200,255,.08),
    0 4px 24px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(0,200,255,.06);
  position: relative;
}

/* Subtle top-border glow line */
#msHeader::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,.5), transparent);
  pointer-events: none;
}

/* LCD display — green neon terminal style */
.ms-lcd {
  background: #050a05;
  color: #00ff41;
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 54px;
  text-align: center;
  border: 1px solid rgba(0,255,65,.2);
  letter-spacing: .12em;
  text-shadow:
    0 0 6px rgba(0,255,65,.8),
    0 0 16px rgba(0,255,65,.4);
  box-shadow:
    inset 0 1px 4px rgba(0,0,0,.8),
    0 0 8px rgba(0,255,65,.08);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Face/restart button */
#msFace {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 1.4rem;
  cursor: pointer;
  background: linear-gradient(180deg, #1e1e30 0%, #12121e 100%);
  border: 1px solid rgba(0,200,255,.3);
  border-bottom: 2px solid rgba(0,200,255,.15);
  box-shadow:
    0 3px 0 rgba(0,0,0,.6),
    0 4px 12px rgba(0,200,255,.1),
    inset 0 1px 0 rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .08s, box-shadow .08s, border-color .12s;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  line-height: 1;
}

#msFace:hover {
  border-color: rgba(0,200,255,.6);
  box-shadow:
    0 3px 0 rgba(0,0,0,.6),
    0 0 16px rgba(0,200,255,.3),
    inset 0 1px 0 rgba(255,255,255,.1);
}

#msFace:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0,0,0,.6), inset 0 2px 4px rgba(0,0,0,.4);
}

/* Title centered */
.ms-title-center {
  flex: 1;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: .8rem;
  color: #00f5ff;
  text-shadow:
    0 0 8px rgba(0,245,255,.7),
    0 0 20px rgba(0,245,255,.3);
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Menu home button */
#msMenuBtn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  background: linear-gradient(180deg, #1e1e30 0%, #12121e 100%);
  border: 1px solid rgba(180,0,255,.3);
  border-bottom: 2px solid rgba(180,0,255,.15);
  color: #bf00ff;
  box-shadow:
    0 3px 0 rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform .08s, box-shadow .08s, border-color .12s;
}

#msMenuBtn:hover {
  border-color: rgba(180,0,255,.6);
  box-shadow:
    0 3px 0 rgba(0,0,0,.6),
    0 0 16px rgba(180,0,255,.3),
    inset 0 1px 0 rgba(255,255,255,.08);
}

#msMenuBtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0,0,0,.6), inset 0 2px 4px rgba(0,0,0,.4);
}

/* ============================================================
   GRID WRAPPER
   ============================================================ */
#msGridWrap {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  width: 100%;
}

/* ============================================================
   MINESWEEPER GRID
   ============================================================ */
#msGrid {
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell-size, 36px));
  gap: 2px;
  border: 1px solid rgba(0,200,255,.15);
  border-radius: 4px;
  padding: 2px;
  background: rgba(0,200,255,.04);
  box-shadow:
    0 0 30px rgba(0,200,255,.06),
    inset 0 0 20px rgba(0,0,0,.4);
}

/* ============================================================
   CELLS
   ============================================================ */
.ms-cell {
  width: var(--cell-size, 36px);
  height: var(--cell-size, 36px);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--cell-size, 36px) * .44);
  font-weight: 800;
  user-select: none;
  transition: filter .07s, transform .07s, border-color .1s, box-shadow .1s;
  /* Unrevealed: dark metallic raised tile */
  background: linear-gradient(145deg, #1e2030 0%, #14151f 60%, #0e0f18 100%);
  border-top: 1.5px solid rgba(80,100,160,.5);
  border-left: 1.5px solid rgba(80,100,160,.4);
  border-bottom: 2px solid rgba(0,0,0,.7);
  border-right: 2px solid rgba(0,0,0,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  box-sizing: border-box;
}

.ms-cell:hover:not(.ms-revealed):not(.ms-flagged) {
  border-color: rgba(0,200,255,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 8px rgba(0,200,255,.25),
    0 0 2px rgba(0,200,255,.4);
  filter: brightness(1.2);
}

.ms-cell:active:not(.ms-revealed) {
  transform: scale(.95);
  filter: brightness(.85);
}

/* Revealed cell — dark flat */
.ms-cell.ms-revealed {
  background: #0d0d16;
  border: 1px solid rgba(40,50,80,.6);
  border-radius: 2px;
  cursor: default;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.6);
  filter: none;
  transform: none;
}

/* Flagged cell */
.ms-cell.ms-flagged {
  background: linear-gradient(145deg, #1e2030 0%, #14151f 60%, #0e0f18 100%);
  border-top: 1.5px solid rgba(255,50,80,.55);
  border-left: 1.5px solid rgba(255,50,80,.45);
  border-bottom: 2px solid rgba(0,0,0,.7);
  border-right: 2px solid rgba(0,0,0,.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 6px rgba(255,50,80,.2);
}

/* All mines revealed on loss */
.ms-cell.ms-mine {
  background: rgba(200,20,40,.35) !important;
  border-color: rgba(255,50,80,.5) !important;
  box-shadow:
    inset 0 0 8px rgba(0,0,0,.5),
    0 0 6px rgba(255,30,60,.2) !important;
}

/* The mine the player clicked */
.ms-cell.ms-mine-hit {
  background: rgba(255,30,60,.6) !important;
  border-color: #ff3250 !important;
  box-shadow:
    0 0 16px rgba(255,30,60,.8),
    0 0 4px rgba(255,100,120,.9) !important;
}

/* ============================================================
   NUMBER COLORS — neon palette
   ============================================================ */
.ms-n1 { color: #00f5ff; text-shadow: 0 0 6px rgba(0,245,255,.7); }
.ms-n2 { color: #00ff41; text-shadow: 0 0 6px rgba(0,255,65,.7); }
.ms-n3 { color: #ff3250; text-shadow: 0 0 6px rgba(255,50,80,.8); }
.ms-n4 { color: #bf00ff; text-shadow: 0 0 6px rgba(180,0,255,.8); }
.ms-n5 { color: #ff8c00; text-shadow: 0 0 6px rgba(255,140,0,.8); }
.ms-n6 { color: #00ffb2; text-shadow: 0 0 6px rgba(0,255,178,.7); }
.ms-n7 { color: #ffffff; text-shadow: 0 0 6px rgba(200,200,255,.7); }
.ms-n8 { color: rgba(150,160,200,.6); }

/* ============================================================
   GAME OVER OVERLAY
   ============================================================ */
#msOverlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
}

#msOverlayBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 44px 36px;
  background: rgba(14,14,24,.92);
  border: 1px solid rgba(0,200,255,.25);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0,200,255,.06),
    0 16px 64px rgba(0,0,0,.7),
    0 0 40px rgba(0,200,255,.1),
    inset 0 1px 0 rgba(0,200,255,.1);
  min-width: 280px;
  position: relative;
  overflow: hidden;
}

/* Top glow line */
#msOverlayBox::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,.7), transparent);
  pointer-events: none;
}

/* Subtle grid inside box */
#msOverlayBox::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  border-radius: 16px;
}

.ms-overlay-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #00f5ff;
  text-shadow:
    0 0 10px rgba(0,245,255,.9),
    0 0 30px rgba(0,245,255,.4);
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Override for loss state (set by JS via textContent) — red */
.ms-overlay-title.ms-title-loss {
  color: #ff3250;
  text-shadow:
    0 0 10px rgba(255,50,80,.9),
    0 0 30px rgba(255,50,80,.4);
}

.ms-overlay-time {
  font-size: .88rem;
  color: rgba(140,180,220,.65);
  font-weight: 600;
  text-align: center;
  letter-spacing: .08em;
  position: relative;
  z-index: 1;
  font-family: 'Exo 2', sans-serif;
  text-transform: uppercase;
}

.ms-overlay-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Primary overlay button — cyan */
.ms-overlay-btn {
  padding: 11px 28px;
  border: none;
  border-radius: 8px;
  font-family: 'Exo 2', sans-serif;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #00d8f0 0%, #0098b0 55%, #006880 100%);
  color: #001820;
  box-shadow:
    0 4px 0 #003844,
    0 6px 20px rgba(0,200,240,.3),
    inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .08s, box-shadow .08s, filter .1s;
}

.ms-overlay-btn:hover {
  filter: brightness(1.15);
  box-shadow:
    0 4px 0 #003844,
    0 8px 28px rgba(0,220,255,.5),
    inset 0 1px 0 rgba(255,255,255,.3);
}

.ms-overlay-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #003844, 0 2px 8px rgba(0,0,0,.4);
}

/* Secondary — ghost/outline */
.ms-overlay-btn.ms-overlay-btn-secondary {
  background: transparent;
  color: rgba(160,200,240,.8);
  border: 1px solid rgba(0,200,255,.25);
  text-shadow: none;
  box-shadow: 0 2px 0 rgba(0,0,0,.4), inset 0 1px 0 rgba(0,200,255,.05);
}

.ms-overlay-btn.ms-overlay-btn-secondary:hover {
  background: rgba(0,200,255,.07);
  border-color: rgba(0,200,255,.4);
  box-shadow: 0 2px 0 rgba(0,0,0,.4), 0 0 12px rgba(0,200,255,.15);
}

.ms-overlay-btn.ms-overlay-btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0,0,0,.4);
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .ms-mode-cards {
    flex-direction: column;
  }

  .ms-mode-box {
    padding: 20px 12px 24px;
    gap: 16px;
  }

  .ms-mode-title {
    font-size: 1.5rem;
  }

  .ms-mode-subtitle {
    font-size: .75rem;
  }

  .ms-mode-card {
    padding: 16px 12px;
    gap: 8px;
  }

  .ms-mode-card-icon {
    font-size: 2.2rem;
  }

  #msHeader {
    padding: 6px 10px;
    gap: 8px;
  }

  .ms-lcd {
    font-size: 1.1rem;
    min-width: 44px;
    padding: 3px 8px;
  }

  #msFace {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .ms-title-center {
    font-size: .65rem;
  }

  #msOverlayBox {
    padding: 28px 24px 24px;
    min-width: 240px;
  }

  .ms-overlay-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 900px) {
  #msModeSelect {
    align-items: flex-start;
    overflow-y: auto;
    padding: 12px 8px;
  }

  .ms-mode-box {
    max-width: 100%;
  }
}
