/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[9].use[3]!../../node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[14].oneOf[9].use[4]!../../node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[14].oneOf[9].use[5]!./src/app/minelayer/Minelayer.module.scss ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/* Minelayer, in the plain style of 2048: warm off-white, a beige board, brown buttons and very little else. */
/* While Minelayer is on screen, the page behind it is its off-white too, so no site background shows above or below; the site's wood
   layer (body::before, which iOS draws behind its bars and which runs past the bottom of the screen) is not drawn at all. */
html:has(.Minelayer_root__JTaDN),
body:has(.Minelayer_root__JTaDN) {
  background: #faf8ef;
}

body:has(.Minelayer_root__JTaDN)::before {
  content: none;
}

.Minelayer_root__JTaDN {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 14px) 12px calc(env(safe-area-inset-bottom) + 20px);
  background: #faf8ef;
  color: #776e65;
  font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.Minelayer_column__Ag2rI {
  width: min(440px, 100%);
}

.Minelayer_header__Vlc1D {
  display: flex;
  align-items: center;
  gap: 8px;
}

.Minelayer_home__oCzoN {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #8f7a66;
  color: #f9f6f2;
}

.Minelayer_title__JKczu {
  flex: 1 1;
  margin: 0 0 0 4px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
}

.Minelayer_score__xzCmM {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 4px 10px 6px;
  border-radius: 6px;
  background: #bbada0;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.Minelayer_score__xzCmM small {
  color: #eee4da;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.Minelayer_bar__eHar_ {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
}

.Minelayer_spacer__y8fpO {
  flex: 1 1;
}

/* The streak's multiplier, while it is above one. */
.Minelayer_boost__GGsCn {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f67c5f;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  animation: Minelayer_appear__mk8_C 0.3s ease-out;
}

.Minelayer_level__fWzVw {
  color: #776e65;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.Minelayer_mute__LjciT {
  display: flex;
  padding: 6px;
  border: none;
  border-radius: 6px;
  background: rgba(187, 173, 160, 0.35);
  color: #776e65;
  cursor: pointer;
}

.Minelayer_hearts__baUd_ {
  display: flex;
  gap: 4px;
}
.Minelayer_hearts__baUd_ svg {
  width: 24px;
  height: 24px;
}

.Minelayer_heart__shdvI {
  fill: #e8574a;
}

/* A life just lost: the heart empties with a shake. */
.Minelayer_heartLost__OycNr {
  fill: rgba(187, 173, 160, 0.45);
  animation: Minelayer_lose__iAHCY 0.5s ease-out;
}

@keyframes Minelayer_lose__iAHCY {
  0% {
    fill: #e8574a;
    transform: scale(1.3);
  }
  30% {
    transform: scale(1.3) rotate(-12deg);
  }
  60% {
    transform: scale(1) rotate(10deg);
  }
}
/* A move that broke the rules, in the middle of the screen for a moment. */
.Minelayer_warning__dKLVu {
  position: fixed;
  left: 50%;
  top: 45%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 26px;
  border-radius: 8px;
  background: rgba(119, 110, 101, 0.94);
  color: #f9f6f2;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: Minelayer_warn__0drDF 1.5s ease-out forwards;
}
.Minelayer_warning__dKLVu b {
  font-size: 24px;
  font-weight: 800;
}
.Minelayer_warning__dKLVu span {
  color: #ffb3a8;
  font-size: 18px;
  font-weight: 800;
}

@keyframes Minelayer_warn__0drDF {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
  20% {
    transform: translate(-50%, -50%) scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
}
.Minelayer_button__FqYI7 {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: #8f7a66;
  color: #f9f6f2;
  font: 700 15px "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.Minelayer_board__Rtx9h {
  position: relative;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #bbada0;
}

/* A big grid packs its cells closer, so they stay a good size on a phone. */
.Minelayer_big__jBIjP {
  gap: 4px;
  padding: 5px;
}
.Minelayer_big__jBIjP .Minelayer_cell__q3RfA {
  border-radius: 4px;
}

.Minelayer_cell__q3RfA {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(238, 228, 218, 0.35);
  container-type: size;
  cursor: pointer;
  transition: background 0.12s;
  /* Held to flag, so no callout or magnifier on a long press. */
  -webkit-touch-callout: none;
}

/* Faces pencilled into an empty cell: a small grid, each face in its own spot (a mine top left, the flag top right, the numbers
   along the bottom). */
.Minelayer_notes__T5b9B {
  position: absolute;
  inset: 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
}

.Minelayer_notesMany___1mBi {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
}

.Minelayer_note__SagtX {
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  opacity: 0.85;
}
.Minelayer_note__SagtX .Minelayer_number__bXZlH {
  font-size: 90cqh;
}
.Minelayer_note__SagtX .Minelayer_mine__KDwpw {
  width: 85%;
  height: 85%;
}
.Minelayer_note__SagtX {
  /* A 0 as a note, darker than on a tile, to show on an empty cell. */
}
.Minelayer_note__SagtX .Minelayer_n0__CpLnE {
  color: #9a8d7f;
}

/* Notes on and off: a white tile with a pencil over a faded cell of notes, square at the end of the powers' row. */
.Minelayer_notesButton__EMGYk {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #fffdf6;
  box-shadow: 0 5px 0 #d8cbb8;
  color: #776e65;
  container-type: size;
  cursor: pointer;
}

.Minelayer_notesFaded__QSezV {
  inset: 8%;
  opacity: 0.35;
}

.Minelayer_flagFaded__JB2ER {
  opacity: 0.35;
}

.Minelayer_notesOn__4F5VQ {
  box-shadow: 0 5px 0 #d8cbb8, 0 0 0 3px #edc22e;
}

.Minelayer_pencil__Mei3v {
  position: absolute;
  inset: 26%;
  width: 48%;
  height: 48%;
}

/* Over the bag while Notes is on, with the flag and eraser beside it. */
.Minelayer_noteHint__aFl1I {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 -6px;
  color: #776e65;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  opacity: 0.8;
}

.Minelayer_noteTool__RQZug {
  display: flex;
  width: 30px;
  height: 30px;
  padding: 4px;
  border: none;
  border-radius: 7px;
  background: #fffdf6;
  box-shadow: 0 2px 0 #d8cbb8;
  cursor: pointer;
}
.Minelayer_noteTool__RQZug svg {
  width: 100%;
  height: 100%;
}

/* Ends Notes: a small button like the flag and eraser beside it, with its word. */
.Minelayer_noteDone__dWl6j {
  height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 7px;
  background: #8f7a66;
  box-shadow: 0 2px 0 #6b5a4b;
  color: #f9f6f2;
  font: 800 13px "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

/* Clear all: a red square with a white X, sized like the flag and eraser. */
.Minelayer_noteClear__wQbxj {
  background: #e06c5f;
  box-shadow: 0 2px 0 #a8483d;
}
.Minelayer_noteClear__wQbxj:disabled {
  opacity: 0.45;
  cursor: default;
}

.Minelayer_noteToolOn__Zhgjh {
  box-shadow: 0 2px 0 #d8cbb8, 0 0 0 2.5px #edc22e;
}

/* The flag beside the line. */
.Minelayer_noteToolFlag__zcJLh {
  width: 100%;
  height: 100%;
}

/* A flag you put on a cell, in its top right corner. It comes in tilted from above and is planted, rocking upright on the foot of
   its pole. */
.Minelayer_flag__TwZgY {
  position: absolute;
  top: 6%;
  right: 6%;
  width: 30%;
  height: 30%;
  pointer-events: none;
  transform-origin: 29% 92%;
  animation: Minelayer_plant__Wce2Z 0.42s ease-out;
}

/* The flag in the tutorial's line on flagging, the size of the text. */
.Minelayer_inlineFlag__z6Pn2 {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
}

/* Brown sparks of dirt flying out from the foot of a flag's pole (where the flag's box puts it) as it is planted, then gone. */
.Minelayer_dirt__j8ewx {
  position: absolute;
  left: 72.75%;
  top: 33.5%;
  pointer-events: none;
}
.Minelayer_dirt__j8ewx i {
  position: absolute;
  width: 3.5px;
  height: 1.4px;
  margin: -0.7px 0 0 -1.75px;
  border-radius: 0.7px;
  background: #6b4528;
  opacity: 0;
  animation: Minelayer_dirt__j8ewx 0.35s ease-out 0.13s forwards;
}

@keyframes Minelayer_dirt__j8ewx {
  0% {
    opacity: 1;
    transform: rotate(var(--angle)) translateX(2px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(12px);
  }
}
@keyframes Minelayer_plant__Wce2Z {
  0% {
    opacity: 0;
    transform: translateY(-45%) rotate(-35deg);
  }
  55% {
    opacity: 1;
    transform: translateY(4%) rotate(9deg);
  }
  78% {
    transform: rotate(-4deg);
  }
  100% {
    transform: none;
  }
}
/* A placed die seen from above: its face, a little raised. */
.Minelayer_tile__s58tb {
  background: #fffdf6;
  box-shadow: inset 0 -3px 0 rgba(119, 110, 101, 0.18);
}

/* Placed this turn, so it can still be picked back up. */
.Minelayer_fresh__B_tch {
  box-shadow: inset 0 -3px 0 rgba(119, 110, 101, 0.18), inset 0 0 0 3px #f2b179;
}

/* Placed this turn while the rest have nowhere to go: pick some back up. */
.Minelayer_loose__HXIL_ {
  box-shadow: inset 0 -3px 0 rgba(119, 110, 101, 0.18), inset 0 0 0 3px #f2b179;
  animation: Minelayer_throb__rlbXc 0.9s ease-in-out infinite alternate;
}

@keyframes Minelayer_throb__rlbXc {
  to {
    transform: scale(0.9);
  }
}
/* Given from the start in Escalation: sunk into the board, and fixed. */
.Minelayer_given__L455B {
  background: #efe5d3;
  box-shadow: inset 0 2px 0 rgba(119, 110, 101, 0.15);
}

/* A number just settled: it jumps and flashes green. */
.Minelayer_pop__cxcgr {
  animation: Minelayer_pop__cxcgr 0.5s ease-out;
}

@keyframes Minelayer_pop__cxcgr {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.2);
    background: #c9efb4;
  }
  100% {
    transform: scale(1);
  }
}
/* Points rising from the cell just played, and a combo across the board when several numbers settle at once. */
.Minelayer_points__MWhh8 {
  position: absolute;
  z-index: 3;
  color: #f67c5f;
  font-size: 22px;
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
  animation: Minelayer_rise__9Ann_ 0.9s ease-out forwards;
}

@keyframes Minelayer_rise__9Ann_ {
  to {
    opacity: 0;
    transform: translate(-50%, -36px);
  }
}
.Minelayer_combo__EB46J {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 3;
  color: #f67c5f;
  font-size: 40px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 3px 0 #fff;
  animation: Minelayer_combo__EB46J 0.9s ease-out forwards;
}

@keyframes Minelayer_combo__EB46J {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -70%);
  }
}
/* A number with every neighbour filled is done with, and fades back. */
.Minelayer_settled__FIYF_ .Minelayer_number__bXZlH {
  opacity: 0.45;
}

.Minelayer_number__bXZlH {
  font-size: 60cqw;
  font-weight: 800;
  line-height: 1;
}

.Minelayer_n0__CpLnE {
  color: #c4b8aa;
}

.Minelayer_n1__3GsrQ {
  color: #3b6fd1;
}

.Minelayer_n2__H4urD {
  color: #3a9a48;
}

.Minelayer_n3__db5vV {
  color: #d6453a;
}

.Minelayer_n4__Sr7Q4 {
  color: #2b2f8f;
}

.Minelayer_n5__Zrt6c {
  color: #8a2b1c;
}

.Minelayer_n6__eVdmm {
  color: #1b8a8a;
}

.Minelayer_n7__W31zG {
  color: #1c1a17;
}

.Minelayer_n8__dYAgL {
  color: #7d7770;
}

.Minelayer_mine__KDwpw {
  width: 64%;
  height: 64%;
  color: #3a3631;
}

.Minelayer_end__bvwuV {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 8px;
  background: rgba(250, 248, 239, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: Minelayer_appear__mk8_C 0.4s ease-out;
}
.Minelayer_end__bvwuV b {
  font-size: 40px;
  font-weight: 800;
}

@keyframes Minelayer_appear__mk8_C {
  from {
    opacity: 0;
  }
}
.Minelayer_tray__jg7Zs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-top: 18px;
  padding: 0 8px;
}

.Minelayer_slot__bRree {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(187, 173, 160, 0.22);
}

.Minelayer_pick__gzsko {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: -webkit-grab;
  cursor: grab;
  touch-action: none;
  transition: transform 0.15s;
}

.Minelayer_picked__k_kwH {
  transform: translateY(-8px);
  filter: drop-shadow(0 6px 0 rgba(237, 194, 46, 0.9));
}

.Minelayer_lifted__DdSU6 {
  opacity: 0.25;
}

/* No die left in the tray fits anywhere: they shake, and this turn's dice throb to be picked back up. */
.Minelayer_stuck__hUjAP .Minelayer_pick__gzsko {
  animation: Minelayer_shake__M6njj 0.5s ease-in-out infinite;
}

@keyframes Minelayer_shake__M6njj {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
.Minelayer_dead__V90H9 .Minelayer_pick__gzsko {
  filter: grayscale(0.6) opacity(0.6);
}

/* A die in 3D: a cube whose six faces sit half its width out from its middle, thrown with a hop. */
.Minelayer_die__T7yqQ {
  display: block;
  width: 100%;
  height: 100%;
  container-type: size;
  perspective: 260px;
  animation: Minelayer_hop__TOVpc 0.95s cubic-bezier(0.3, 0.6, 0.4, 1) both;
}

@keyframes Minelayer_hop__TOVpc {
  0% {
    transform: translateY(-40px) scale(0.85);
  }
  45% {
    transform: translateY(0) scale(1);
  }
  65% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
.Minelayer_cube__XoUdG {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.Minelayer_tumbling___YglP {
  transition: transform 0.95s cubic-bezier(0.15, 0.7, 0.25, 1);
}

/* A hot die is tinted, so it is told apart from a standard one at a glance. */
.Minelayer_hot__6JIz2 .Minelayer_side__sUswH {
  background: #ffe1d2;
}

.Minelayer_side__sUswH {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18%;
  background: #fffdf6;
  box-shadow: inset 0 0 0 1px rgba(119, 110, 101, 0.15), inset 0 -4px 0 rgba(119, 110, 101, 0.12);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.Minelayer_front__i4Byg {
  transform: translateZ(50cqw);
}

.Minelayer_back__nG8af {
  transform: rotateY(180deg) translateZ(50cqw);
}

.Minelayer_right__ExkEC {
  transform: rotateY(90deg) translateZ(50cqw);
}

.Minelayer_left__zWr2B {
  transform: rotateY(-90deg) translateZ(50cqw);
}

.Minelayer_top__YR777 {
  transform: rotateX(90deg) translateZ(50cqw);
}

.Minelayer_bottom__iEuE8 {
  transform: rotateX(-90deg) translateZ(50cqw);
}

/* The powers: chunky buttons along the bottom, each with its picture and a word. */
.Minelayer_cost__qoF3p {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  font-weight: 700;
}
.Minelayer_cost__qoF3p svg {
  width: 16px;
  height: 16px;
  fill: #ff8a7a;
}

/* Two powers and Notes in one row (Roll for Mine): smaller words and pictures, to fit. */
.Minelayer_powersTight__0f8Bh .Minelayer_power__GmW_S {
  gap: 5px;
  font-size: 16px;
}
.Minelayer_powersTight__0f8Bh .Minelayer_power__GmW_S > svg {
  width: 22px;
  height: 22px;
}

/* The powers side by side, sharing the row, with the square Notes button last. */
.Minelayer_powers__0RhnA {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.Minelayer_powers__0RhnA .Minelayer_power__GmW_S {
  flex: 1 1;
  min-width: 0;
}
.Minelayer_powers__0RhnA .Minelayer_power__GmW_S > svg {
  flex-shrink: 0;
}

/* Escalation has the one power, Undo, across the whole row. */
.Minelayer_single__PH0f4 {
  grid-template-columns: 1fr;
}

.Minelayer_power__GmW_S {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 64px;
  border: none;
  border-radius: 10px;
  background: #8f7a66;
  box-shadow: 0 5px 0 #6b5a4b;
  color: #f9f6f2;
  font: 800 20px "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.08s;
}
.Minelayer_power__GmW_S:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #6b5a4b;
}
.Minelayer_power__GmW_S:disabled {
  opacity: 0.4;
  cursor: default;
}

.Minelayer_powerOn__2Sh4r {
  background: #f2b179;
  box-shadow: 0 5px 0 #c98a52, 0 0 0 3px #edc22e;
}

/* The dice will not all fit: the powers glow to say there is a way out. */
.Minelayer_powerHint__DNuh6 {
  animation: Minelayer_glow__q_5aE 0.9s ease-in-out infinite alternate;
}

@keyframes Minelayer_glow__q_5aE {
  to {
    box-shadow: 0 5px 0 #6b5a4b, 0 0 0 4px rgba(237, 194, 46, 0.8);
  }
}
/* What a power can be used on: dashed red. A die marked for a reroll: solid gold. */
.Minelayer_target__e0ykG {
  outline: 3px dashed #e8574a;
  outline-offset: -3px;
  border-radius: 8px;
}

.Minelayer_marked__K2RaU {
  outline: 3px solid #edc22e;
  outline-offset: -3px;
  border-radius: 8px;
  transform: translateY(-6px);
}

/* In the tray the outline sits just outside the die, where the cube cannot cover it. */
.Minelayer_tray__jg7Zs .Minelayer_target__e0ykG,
.Minelayer_tray__jg7Zs .Minelayer_marked__K2RaU {
  outline-offset: 2px;
}

/* Under the menu's title: a small grid filling itself in, tile by tile, over a line or two on how to play. */
.Minelayer_intro__xAAu4 {
  margin-top: 20px;
  text-align: center;
}
.Minelayer_intro__xAAu4 p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.Minelayer_demo__S_XUe {
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 132px;
  margin: 0 auto;
  padding: 5px;
}
.Minelayer_demo__S_XUe .Minelayer_cell__q3RfA {
  cursor: default;
}
.Minelayer_demo__S_XUe .Minelayer_tile__s58tb {
  animation: Minelayer_land__3euLi 0.3s ease-out;
}

@keyframes Minelayer_land__3euLi {
  from {
    opacity: 0;
    transform: scale(1.35);
  }
}
/* The menu: a big chunky button for each mode, its grid size and best score beneath its name. */
.Minelayer_modes___JdtI {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.Minelayer_mode__TwNu5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px;
  border: none;
  border-radius: 10px;
  background: #8f7a66;
  box-shadow: 0 5px 0 #6b5a4b;
  color: #f9f6f2;
  font: 800 26px "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}
.Minelayer_mode__TwNu5:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #6b5a4b;
}
.Minelayer_mode__TwNu5 small {
  color: #eee4da;
  font-size: 15px;
  font-weight: 700;
}
.Minelayer_mode__TwNu5 em {
  color: #f2b179;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

/* The bag: a chip for each face still to come with how many are left. In Escalation they are the dice you place. */
.Minelayer_bag__8E5jN {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.Minelayer_chip__7nS5k {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 3px;
  border: none;
  border-radius: 8px;
  background: rgba(187, 173, 160, 0.3);
  color: #776e65;
  font: 800 15px "Clear Sans", "Helvetica Neue", Arial, sans-serif;
}
.Minelayer_chip__7nS5k:disabled {
  opacity: 1;
}

.Minelayer_chipFace__j6GzJ {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #fffdf6;
  container-type: size;
}

/* Escalation's bag: each face a die the same size as the other modes' dice, its count chalked above; rows close together. */
.Minelayer_bagLive__SCiZv {
  gap: 6px 18px;
  margin-top: 16px;
  padding: 0 8px;
}
.Minelayer_bagLive__SCiZv .Minelayer_chip__7nS5k {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: calc((100% - 40px) / 6);
  flex-direction: column;
  gap: 10px;
  padding: 0;
  background: none;
  cursor: -webkit-grab;
  cursor: grab;
  touch-action: none;
  transition: transform 0.15s;
}
.Minelayer_bagLive__SCiZv .Minelayer_chipOn__dt4Q3 {
  transform: translateY(-6px);
}
.Minelayer_bagLive__SCiZv .Minelayer_chipOn__dt4Q3 .Minelayer_side__sUswH {
  box-shadow: inset 0 -4px 0 rgba(119, 110, 101, 0.12), 0 0 0 3px #edc22e;
}

.Minelayer_chipDie__G_zxy {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

/* A die that stays put: no hop when it appears. */
.Minelayer_still___LvJx {
  animation: none;
}

/* The menu's title. */
.Minelayer_heading__eUo_2 {
  flex: 1 1;
}
.Minelayer_heading__eUo_2 .Minelayer_title__JKczu {
  line-height: 1;
}

/* After the title, small and low: who made it, linking to the site (under the title, whole, where a phone is too narrow). */
.Minelayer_by__eeA12 {
  display: inline-block;
  margin-left: 6px;
  color: #776e65;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  opacity: 0.7;
  /* The site's name dashed underneath, so it reads as a link. */
}
.Minelayer_by__eeA12 span {
  -webkit-text-decoration: underline dashed;
          text-decoration: underline dashed;
  text-underline-offset: 2px;
}

/* Under the title in a game: which way you are playing. */
.Minelayer_modeName__83fzA {
  display: block;
  margin: 1px 0 0 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0.6;
}

/* A faded line of chalked handwriting, centred under the menu's filling grid. */
.Minelayer_tagline__yPadZ {
  display: block;
  margin: 12px 0 0;
  font-family: "Bradley Hand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.6;
  filter: url(#chalk);
}

.Minelayer_chalk__jF3nu {
  color: #1c1a17;
  font-family: "Chalkboard SE", Chalkboard, "Marker Felt", "Comic Sans MS", cursive;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  filter: url(#chalk);
}

.Minelayer_filters__m6DZA {
  position: absolute;
  width: 0;
  height: 0;
}

.Minelayer_stars__QlOc_ {
  display: flex;
  gap: 4px;
}
.Minelayer_stars__QlOc_ svg {
  width: 30px;
  height: 30px;
  fill: rgba(187, 173, 160, 0.5);
}
.Minelayer_stars__QlOc_ .Minelayer_starOn__dsBU2 {
  fill: #edc22e;
}

/* A finished board's stars: big, popping in one by one, and the more earned the brighter the glow and the more sparkles. */
.Minelayer_starsBig__POuI0 {
  position: relative;
  gap: 10px;
  padding: 10px 16px;
}
.Minelayer_starsBig__POuI0 svg {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  animation: Minelayer_starIn__7X3kP 0.55s cubic-bezier(0.3, 1.7, 0.5, 1) both;
}
.Minelayer_starsBig__POuI0 .Minelayer_starOn__dsBU2 {
  filter: drop-shadow(0 0 4px rgba(237, 194, 46, 0.55));
}

.Minelayer_shine2__UYJf2 .Minelayer_starOn__dsBU2 {
  filter: drop-shadow(0 0 10px rgba(237, 194, 46, 0.85));
}

.Minelayer_shine3__xmX_M .Minelayer_starOn__dsBU2 {
  fill: #ffcf2e;
  filter: drop-shadow(0 0 16px rgb(255, 210, 60)) drop-shadow(0 0 4px #fff6c8);
  animation: Minelayer_starIn__7X3kP 0.55s cubic-bezier(0.3, 1.7, 0.5, 1) both, Minelayer_starPulse__Ssfnf 1.2s ease-in-out 1.2s infinite alternate;
}

@keyframes Minelayer_starIn__7X3kP {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(-40deg);
  }
}
@keyframes Minelayer_starPulse__Ssfnf {
  to {
    transform: scale(1.1);
  }
}
.Minelayer_sparkle__mB3Qo {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #fff3b0;
  -webkit-clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
          clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0;
  animation: Minelayer_twinkle__GBkJY 1.1s ease-in-out infinite;
}

@keyframes Minelayer_twinkle__GBkJY {
  0%, 100% {
    opacity: 0;
    scale: 0.4;
  }
  50% {
    opacity: 1;
    scale: 1.2;
  }
}
/* Rays turning slowly behind three stars, and behind the words above and below them. */
.Minelayer_rays__MYp63 {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 214, 90, 0.45) 0 9deg, transparent 9deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%);
          mask: radial-gradient(circle, #000 25%, transparent 68%);
  opacity: 0;
  animation: Minelayer_raysIn__ToJL5 0.6s ease-out 0.8s forwards, Minelayer_spin__T9EJ3 9s linear infinite;
}

@keyframes Minelayer_raysIn__ToJL5 {
  to {
    opacity: 1;
  }
}
@keyframes Minelayer_spin__T9EJ3 {
  to {
    rotate: 360deg;
  }
}
.Minelayer_final__9utyv {
  font-size: 18px;
  font-weight: 700;
}

/* A small text button: the way to see a lost level's answer, and back. */
.Minelayer_link__QbXBb {
  padding: 4px 8px;
  border: none;
  background: none;
  color: #776e65;
  font: 700 15px "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* The answer: what you had not placed, or placed otherwise, in gold. */
.Minelayer_revealed__3loRp {
  background: #fbe6a6;
  box-shadow: inset 0 -3px 0 rgba(201, 150, 40, 0.35);
}

.Minelayer_solutionBar___02Xw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.Minelayer_toast__Zmuq_ {
  position: fixed;
  left: 50%;
  bottom: 60px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(119, 110, 101, 0.94);
  color: #f9f6f2;
  font-weight: 800;
  transform: translateX(-50%);
  animation: Minelayer_appear__mk8_C 0.2s ease-out;
}

/* A chalked line across the menu with words in its middle. */
.Minelayer_divider__I0GQm {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 2px;
}
.Minelayer_divider__I0GQm i {
  flex: 1 1;
  height: 3px;
  border-radius: 2px;
  background: #1c1a17;
  opacity: 0.8;
  filter: url(#chalk);
}
.Minelayer_divider__I0GQm .Minelayer_chalk__jF3nu {
  font-size: 20px;
}

/* A mode's best, in the top right of its button. */
.Minelayer_mode__TwNu5 {
  position: relative;
}

.Minelayer_badge__xVoLh {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.Minelayer_quick__5XT0c {
  background: #8fb8a0;
  box-shadow: 0 5px 0 #5e8a70;
}
.Minelayer_quick__5XT0c small {
  color: #eef8f1;
}

/* Roll for Mine: a slowly shifting run of warm colours. */
.Minelayer_rolling__bdmbi {
  background: linear-gradient(120deg, #f67c5f, #edc22e, #e86fa8, #8f6fd8, #f67c5f);
  background-size: 300% 100%;
  box-shadow: 0 5px 0 #8a4f8a;
  animation: Minelayer_drift__wJXIr 6s linear infinite;
}
.Minelayer_rolling__bdmbi small {
  max-width: 280px;
  color: #fff5ec;
  text-align: center;
}

@keyframes Minelayer_drift__wJXIr {
  to {
    background-position: 300% 0;
  }
}
/* Quick Play's difficulties, green for the easiest to red for the hardest. */
.Minelayer_tier0__0Yg0H {
  background: #7fb069;
  box-shadow: 0 5px 0 #557a45;
}

.Minelayer_tier1__ecw0h {
  background: #e3b23c;
  box-shadow: 0 5px 0 #a8811f;
}

.Minelayer_tier2__ipfBX {
  background: #f08a4b;
  box-shadow: 0 5px 0 #b45f2a;
}

.Minelayer_tier3___NtR4 {
  background: #d9534f;
  box-shadow: 0 5px 0 #993431;
}

/* Quick Play's choice of difficulty, in a card over the menu; a tap outside closes it. */
.Minelayer_sheet__L65Bi {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(119, 110, 101, 0.45);
  animation: Minelayer_appear__mk8_C 0.2s ease-out;
}

.Minelayer_sheetCard__csMmZ {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, 100%);
  padding: 18px;
  border-radius: 12px;
  background: #faf8ef;
  box-shadow: 0 10px 30px rgba(60, 50, 40, 0.3);
}
.Minelayer_sheetCard__csMmZ > b {
  color: #776e65;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

/* Asking before a restart: the question, then Cancel beside Restart. */
.Minelayer_ask__xxiGU {
  margin: 0;
  color: #776e65;
  font-size: 16px;
  text-align: center;
}

.Minelayer_choices__yxbZj {
  display: flex;
  gap: 10px;
}
.Minelayer_choices__yxbZj button {
  flex: 1 1;
}

.Minelayer_cancel__xPNCZ {
  background: rgba(187, 173, 160, 0.35);
  color: #776e65;
}

/* Escalation's first-time tutorial: the menu's filling grid over how a run goes. */
.Minelayer_tutorial__lFbrO {
  color: #776e65;
  font-size: 15px;
  line-height: 1.4;
}
.Minelayer_tutorial__lFbrO p,
.Minelayer_tutorial__lFbrO ul {
  margin: 0;
}
.Minelayer_tutorial__lFbrO ul {
  padding-left: 20px;
}

/* The first page's way to the second: as wide as its words, on one line, with Play taking the rest. */
.Minelayer_choices__yxbZj .Minelayer_scoreNext__rIp_V {
  flex: none;
  padding: 0 14px;
  white-space: nowrap;
}

/* How scoring works: each row a tiny board playing out its way to score, on a 3 second loop, beside a line saying it. */
.Minelayer_scoreRow__sWWi1 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.Minelayer_scoreRow__sWWi1 p {
  flex: 1 1;
  font-size: 14px;
}

.Minelayer_scoreDemo__Y1fqA {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 76px;
}

.Minelayer_scoreBoard__sHTk_ {
  gap: 3px;
  padding: 3px;
}
.Minelayer_scoreBoard__sHTk_ .Minelayer_cell__q3RfA {
  width: 26px;
  cursor: default;
}
.Minelayer_scoreBoard__sHTk_ {
  /* The game's rising points and combo, sized for the tiny board. */
}
.Minelayer_scoreBoard__sHTk_ .Minelayer_points__MWhh8 {
  font-size: 13px;
  animation-duration: 1.4s;
}
.Minelayer_scoreBoard__sHTk_ .Minelayer_combo__EB46J {
  top: 30%;
  animation-duration: 1.8s;
  font-size: 15px;
  text-shadow: 0 2px 0 #fff;
}

/* The piece placed: dropping in a quarter of the way through the loop. */
.Minelayer_scoreDrop__mRIek {
  animation: Minelayer_scoreDrop__mRIek 3s ease-out infinite;
}

@keyframes Minelayer_scoreDrop__mRIek {
  0%, 20% {
    opacity: 0;
    transform: translateY(-14px) scale(1.2);
  }
  30%, 100% {
    opacity: 1;
    transform: none;
  }
}
/* The combo demo's points, rising a little from each number settled, outlined to read over the tiles. */
.Minelayer_scoreRise__aBuH0 {
  position: absolute;
  z-index: 3;
  color: #f67c5f;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
  animation: Minelayer_scoreRise__aBuH0 1.4s ease-out forwards;
}

@keyframes Minelayer_scoreRise__aBuH0 {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%);
  }
  15%, 70% {
    opacity: 1;
    transform: translate(-50%, -80%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -110%);
  }
}
/* The combo's name under its demo, popping in when two numbers settle at once; holding its line when there is none. */
.Minelayer_scoreCombo__OI_bH {
  min-height: 18px;
  color: #f67c5f;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  animation: Minelayer_appear__mk8_C 0.3s ease-out;
}

/* The combo demo's mine, landing as a tile does in the first page's demo. */
.Minelayer_scoreLand__c39dH {
  animation: Minelayer_land__3euLi 0.3s ease-out;
}

/* The points, floating up over the demo once the piece lands. */
.Minelayer_scorePoints__SM9lO {
  position: absolute;
  top: -8px;
  color: #f67c5f;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  animation: Minelayer_scorePoints__SM9lO 3s ease-out infinite;
}

@keyframes Minelayer_scorePoints__SM9lO {
  0%, 30% {
    opacity: 0;
    transform: translateY(6px);
  }
  40%, 80% {
    opacity: 1;
    transform: translateY(-6px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}
/* The streak: six dots filling one by one, then the multiplier. */
.Minelayer_scorePips___VAl6 {
  display: flex;
  gap: 3px;
}
.Minelayer_scorePips___VAl6 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(187, 173, 160, 0.45);
}
.Minelayer_scorePips___VAl6 i:nth-child(1) {
  animation: Minelayer_scorePip1__W4FA3 3s steps(1) infinite;
}
.Minelayer_scorePips___VAl6 i:nth-child(2) {
  animation: Minelayer_scorePip2__cDLT9 3s steps(1) infinite;
}
.Minelayer_scorePips___VAl6 i:nth-child(3) {
  animation: Minelayer_scorePip3__aesH2 3s steps(1) infinite;
}
.Minelayer_scorePips___VAl6 i:nth-child(4) {
  animation: Minelayer_scorePip4__q9_Vq 3s steps(1) infinite;
}
.Minelayer_scorePips___VAl6 i:nth-child(5) {
  animation: Minelayer_scorePip5__zabIi 3s steps(1) infinite;
}
.Minelayer_scorePips___VAl6 i:nth-child(6) {
  animation: Minelayer_scorePip6__MiUq4 3s steps(1) infinite;
}

/* Each dot lights in turn, a quarter of a second apart, and all go dark together at the end of the loop. */
@keyframes Minelayer_scorePip1__W4FA3 {
  0% {
    background: rgba(187, 173, 160, 0.45);
  }
  12% {
    background: #f67c5f;
  }
  94% {
    background: rgba(187, 173, 160, 0.45);
  }
}
@keyframes Minelayer_scorePip2__cDLT9 {
  0% {
    background: rgba(187, 173, 160, 0.45);
  }
  20% {
    background: #f67c5f;
  }
  94% {
    background: rgba(187, 173, 160, 0.45);
  }
}
@keyframes Minelayer_scorePip3__aesH2 {
  0% {
    background: rgba(187, 173, 160, 0.45);
  }
  28% {
    background: #f67c5f;
  }
  94% {
    background: rgba(187, 173, 160, 0.45);
  }
}
@keyframes Minelayer_scorePip4__q9_Vq {
  0% {
    background: rgba(187, 173, 160, 0.45);
  }
  36% {
    background: #f67c5f;
  }
  94% {
    background: rgba(187, 173, 160, 0.45);
  }
}
@keyframes Minelayer_scorePip5__zabIi {
  0% {
    background: rgba(187, 173, 160, 0.45);
  }
  44% {
    background: #f67c5f;
  }
  94% {
    background: rgba(187, 173, 160, 0.45);
  }
}
@keyframes Minelayer_scorePip6__MiUq4 {
  0% {
    background: rgba(187, 173, 160, 0.45);
  }
  52% {
    background: #f67c5f;
  }
  94% {
    background: rgba(187, 173, 160, 0.45);
  }
}
.Minelayer_scoreBoost__7R4ou {
  animation: Minelayer_scoreBoost__7R4ou 3s ease-out infinite;
}

@keyframes Minelayer_scoreBoost__7R4ou {
  0%, 58% {
    opacity: 0;
    transform: scale(0.6);
  }
  66%, 92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
/* Hearts left, each paying its 50 in turn. */
.Minelayer_scoreHearts__y8t3B {
  display: flex;
  gap: 2px;
}
.Minelayer_scoreHearts__y8t3B > span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.Minelayer_scoreHearts__y8t3B svg {
  width: 22px;
  height: 22px;
}
.Minelayer_scoreHearts__y8t3B small {
  color: #f67c5f;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  animation: Minelayer_scoreHeart__9cpFZ 3s ease-out infinite;
}

@keyframes Minelayer_scoreHeart__9cpFZ {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  10%, 60% {
    opacity: 1;
    transform: none;
  }
  80%, 100% {
    opacity: 0;
  }
}
/* The tutorial's grid and bag, with the die flying between them. The bag keeps the height of its row of dice once empty. */
.Minelayer_flight__5c6dE {
  position: relative;
  container-type: inline-size;
}
.Minelayer_flight__5c6dE .Minelayer_tile__s58tb {
  animation: none;
}
.Minelayer_flight__5c6dE .Minelayer_bag__8E5jN {
  min-height: calc(34px + (100cqw - 56px) / 6);
}

/* The tutorial's die on its way from the bag to its cell, lifted off the page. */
.Minelayer_flyer__U7KtI {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fffdf6;
  box-shadow: 0 8px 18px rgba(119, 110, 101, 0.35);
  container-type: size;
  pointer-events: none;
  transform-origin: 0 0;
}

/* Classic, in green (its save name, escalation, is from before it was renamed). */
.Minelayer_escalation__Hx0Jw {
  background: #6aaa64;
  box-shadow: 0 5px 0 #4e8a49;
}
.Minelayer_escalation__Hx0Jw small,
.Minelayer_escalation__Hx0Jw em {
  color: #eaf6e8;
}

.Minelayer_ghost__Ag14b {
  position: fixed;
  z-index: 10;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fffdf6;
  box-shadow: 0 8px 18px rgba(119, 110, 101, 0.35);
  container-type: size;
  pointer-events: none;
  transform: translate(-50%, -70%);
}

/* A track of levels: little tiles in the board's looks joined by short bars. A cleared level is a placed tile, yours has a picked
   tile's yellow outline, those ahead are faded; a checkpoint has a flag planted in its corner, leaning out. */
.Minelayer_track__PAofB {
  /* A tile, and the room between two (a bar and its margins). */
  --tile: 34px;
  --step: 20px;
  box-sizing: border-box;
  max-width: 100%;
  margin: 6px auto 0;
  padding: 10px 3px 9px;
  overflow: hidden;
  color: #776e65;
  transition: width 0.5s ease-in-out;
}

.Minelayer_trackRow__5WyAK {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease-in-out;
}

/* Ten levels (Escalation) in smaller tiles, to fit across. */
.Minelayer_trackLong__cxDRs {
  --tile: 27px;
  --step: 9px;
}

/* A bar fills from the left when you pass along it, and empties back when you go back. */
.Minelayer_trackBar__897Qm {
  position: relative;
  flex-shrink: 0;
  width: calc(var(--step) - 6px);
  height: 3px;
  margin: 0 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(187, 173, 160, 0.45);
}
.Minelayer_trackBar__897Qm::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #bbada0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.Minelayer_trackBarDone__DL15o::after {
  transform: none;
}

.Minelayer_trackTile__Fe_uG {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: 6px;
  background: rgba(187, 173, 160, 0.3);
  color: rgba(119, 110, 101, 0.5);
  font-size: calc(var(--tile) * 0.42);
  font-weight: 800;
  transition: background 0.25s, box-shadow 0.25s;
}

.Minelayer_trackDone__FUuDc,
.Minelayer_trackAt__8_IIj {
  background: #fffdf6;
  color: #776e65;
  box-shadow: inset 0 -3px 0 rgba(119, 110, 101, 0.18);
}

/* A cleared level's tick: a small green circle on its bottom right corner, half on the tile. */
.Minelayer_trackDone__FUuDc::after {
  content: "✓";
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6aaa64;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 1.5px #fffdf6;
}

/* Cleared just now, as the track moves on: the tick pops in, with a burst of green sparkles round it. */
.Minelayer_trackJust__4TmYC::after {
  animation: Minelayer_tickPop__Ae2xI 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.Minelayer_trackJust__4TmYC::before {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 2;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  box-shadow: 0 -17px 0 #6aaa64, 12px -12px 0 #9fd36a, 17px 0 0 #6aaa64, 12px 12px 0 #9fd36a, 0 17px 0 #6aaa64, -12px 12px 0 #9fd36a, -17px 0 0 #6aaa64, -12px -12px 0 #9fd36a;
  animation: Minelayer_tickSparkle__pTVqq 0.6s ease-out 0.1s both;
  pointer-events: none;
}

@keyframes Minelayer_tickPop__Ae2xI {
  from {
    transform: scale(0);
  }
}
@keyframes Minelayer_tickSparkle__pTVqq {
  from {
    opacity: 1;
    transform: scale(0.55);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}
.Minelayer_trackAt__8_IIj {
  box-shadow: inset 0 -3px 0 rgba(119, 110, 101, 0.18), 0 0 0 3px #edc22e;
}

.Minelayer_trackFailed__L02_K {
  background: #e8574a;
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.Minelayer_trackFlag__4LfCZ {
  position: absolute;
  bottom: 62%;
  left: 60%;
  width: 15px;
  height: 15px;
  transform-origin: 29% 92%;
  transform: rotate(18deg);
}

/* On a coloured button: the bars white, the tiles ahead faint white; close under the title and with the button's own padding below. */
.Minelayer_trackLight__oqN1n {
  margin-top: -6px;
  margin-bottom: -10px;
}
.Minelayer_trackLight__oqN1n .Minelayer_trackBar__897Qm {
  background: rgba(255, 255, 255, 0.35);
}
.Minelayer_trackLight__oqN1n .Minelayer_trackBar__897Qm::after {
  background: #fff;
}
.Minelayer_trackLight__oqN1n .Minelayer_trackTile__Fe_uG:not(.Minelayer_trackDone__FUuDc, .Minelayer_trackAt__8_IIj, .Minelayer_trackFailed__L02_K) {
  background: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

/* A Classic loss: the path back to the checkpoint and the score falling with it. */
.Minelayer_setback__7JsRZ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.Minelayer_lost__rIVcy {
  color: #e8574a;
  font-size: 15px;
  font-weight: 800;
}

/* Escalation in the menu, and its end of run (its title a little smaller, to fit "Escalation cleared!"). */
.Minelayer_end__bvwuV b.Minelayer_tenTitle__ciiNe {
  font-size: 34px;
}

.Minelayer_ten__wqbdc {
  background: #f67c5f;
  box-shadow: 0 5px 0 #c4583f;
}
.Minelayer_ten__wqbdc small {
  color: #ffe8e0;
}

/* The daily in the menu, in the yellow it has always had. */
.Minelayer_dailyMode__QuUew {
  background: #edc22e;
  box-shadow: 0 5px 0 #b8941c;
}
.Minelayer_dailyMode__QuUew:active {
  box-shadow: 0 1px 0 #b8941c;
}
.Minelayer_dailyMode__QuUew small {
  color: #fdf5d8;
}

/* The daily's date under the title, in italics, as written (Nov 8th) rather than in capitals, and a touch fainter. */
.Minelayer_modeDate__VFzcR {
  text-transform: none;
  opacity: 0.75;
}

/* The daily history window: four counts, then the month's calendar of stars. */
.Minelayer_history__nTy3w .Minelayer_historyStats__EDgru {
  display: flex;
  gap: 6px;
}
.Minelayer_history__nTy3w .Minelayer_historyStats__EDgru .Minelayer_score__xzCmM {
  flex: 1 1;
  min-width: 0;
  padding: 4px 0 6px;
}

.Minelayer_historyMonth__0wsgH {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #776e65;
  font-size: 16px;
  font-weight: 800;
}
.Minelayer_historyMonth__0wsgH button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(187, 173, 160, 0.3);
  color: #776e65;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.Minelayer_historyMonth__0wsgH button:disabled {
  opacity: 0.35;
  cursor: default;
}

.Minelayer_historyDays__Zcj9z {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 4px;
  gap: 4px;
}
.Minelayer_historyDays__Zcj9z > small {
  color: #776e65;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  opacity: 0.5;
}

/* A day: its number, and under it the stars it earned or a cross for a loss. */
.Minelayer_historyDay__VMFY_ {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  aspect-ratio: 1;
  padding-top: 4px;
  border-radius: 6px;
  background: rgba(187, 173, 160, 0.18);
  color: rgba(119, 110, 101, 0.55);
  font-size: 12px;
  font-weight: 700;
}
.Minelayer_historyDay__VMFY_ .Minelayer_stars__QlOc_ {
  gap: 0;
}
.Minelayer_historyDay__VMFY_ .Minelayer_stars__QlOc_ svg {
  width: 11px;
  height: 11px;
}
.Minelayer_historyDay__VMFY_ > svg {
  width: 11px;
  height: 11px;
}

.Minelayer_historyWon__OGxZH {
  background: #fffdf6;
  box-shadow: inset 0 -2px 0 rgba(119, 110, 101, 0.15);
  color: #776e65;
}

.Minelayer_historyLost___EHqH {
  background: #fffdf6;
  box-shadow: inset 0 -2px 0 rgba(119, 110, 101, 0.15);
  color: #776e65;
}
.Minelayer_historyLost___EHqH > svg {
  color: #e8574a;
}

.Minelayer_historyToday__BIf88 {
  outline: 2px solid #edc22e;
  outline-offset: -2px;
}
