*,
html,
body {
  padding: 0;
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:virsted {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
a:active {
  text-decoration: none;
}

.back {
  display: block;
  margin: 5px;
  width: 25px;
  height: 25px;
  border: 2px solid #ff8aac;
  border-radius: 50%;
  font-size: 25px;
  color: #ff8aac;
  text-align: center;
}
.back span {
  display: block;
  transform: translateX(-1px);
}

.container {
  width: 500px;
  color: white;
  font-size: 17px;
  padding: 0 5px;
  margin: 0 auto;
}
.mobile .container {
  width: calc(100% - 10px);
}

.game_container {
  position: relative;
  margin: 0 auto;
  background-color: #ff8aac;
  border-radius: 10px;
  margin-top: 50px;
  overflow: visible;
}
.game_container .before {
  position: relative;
  overflow: hidden;
  padding: 7px 0;
  border-radius: 10px;
}
.game_container .before::after,
.game_container .before::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
.game_container .before::after {
  background-color: #ff8aac;
  border-radius: 10px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
}
.game_container .before::before {
  width: 200%;
  height: 200%;
  background: #f46891;
} 
.game_container.win .before::before {
  animation: rotation 1s linear infinite;
  background: conic-gradient(red, lime, yellow, aqua, blue, magenta, red);
}
@keyframes rotation {
  from{
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
  }
  to{
    transform: translateX(-50%) translateY(-50%) rotate(360deg);
  }
}
.game_container .before > div {
  position: relative;
  z-index: 3;
}

.game_table {
  position: absolute;
  top: 35px;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: calc(100% - 60px);
  background-color: #f6a2ff;
  border-radius: 5px;
  background-repeat: no-repeat;
  background-position: 0;
  background-size: cover;
  border-spacing: 0;
  border: 2px solid white;
  border-collapse: collapse;
  table-layout: fixed;
}

.game_table tr {
  margin: 0;
  padding: 0;
}

.game_table .cell {
  min-width: 15px;
  min-height: 15px;
  position: relative;
  background-color: #FF8AAC;
  margin: 0;
  border: 2px solid transparent;
  user-select: none !important;
  transition: all .3s;
  font-size: 28px;
  -webkit-text-stroke: .5px #ff8aac;
  border-radius: 5px;
}

.game_table .cell:hover {
  border-color: white;
}

.game_table .cell::after {
  width: 100%;
  height: 100%;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game_table .cell.m1::after {
  content: '1';
  color: #2473c4;
}
.game_table .cell.m2::after {
  content: '2';
  color: #398d3c;
}
.game_table .cell.m3::after {
  content: '3';
  color: #e45953;
}
.game_table .cell.m4::after {
  content: '4';
  color: #e45953;
}
.game_table .cell.m5::after {
  content: '5';
  color: #e45953;
}
.game_table .cell.m6::after {
  content: '6';
  color: #e45953;
}
.game_table .cell.m7::after {
  content: '7';
  color: #e45953;
}
.game_table .cell.m8::after {
  content: '8';
  color: #e45953;
}

.game_table .cell.star::after {
  content: '★';
}

.game_table .cell.flag::after {
  content: '▲';
}

.game_table .cell.boom::after {
  color: red;
}

.game_table .cell.open {
  background-color: transparent;
  border-color: transparent;
}

.game_table .cell div {
  display: none;
  width: 0;
  height: 0;
  color: #f9f9f9;
  font-size: 12px;
  font-weight: bold;
  line-height: 12px;
  -webkit-text-stroke: none;
  transform: translateY(-15px);
  white-space: pre;
}
.game_table.show-numbers .cell div {
  display: block;
}
.game_table .cell.open div {
  display: none;
}

.top_controls .win {
  position: absolute;
  left: 4px;
  top: 0px;
}

.top_controls .reset {
  position: absolute;
  right: 4px;
  top: 0px;
}

.tip_wrap {
  width: 100%;
  position: relative;
  transform: translateY(7px);
}

.tip_wrap .tip {
  margin: 0 auto;
  width: fit-content;
  height: 27px;
  font-size: 15px;
}

.bottom_controls {
  transform: translateY(5px);
}

.bottom_controls .time_wrap {
  width: 100%;
  position: relative;
  bottom: 5px;
}

.bottom_controls .time_wrap .time {
  margin: 0 auto;
  width: fit-content;
  height: 27px;
  line-height: 30px;
}

.bottom_controls .mine_left_wrap {
  position: absolute;
  left: 0;
  bottom: 4px;
  display: flex;
  align-items: center;
}

.bottom_controls .settings {
  position: absolute;
  bottom: 4px;
  right: 4px;
}

.settings_form {
  display: none;
  width: calc(100% - 45px);
  border: 2px solid #ff4689;
  background-color: #FF8AAC;
  padding: 15px 20px;
  margin-top: 5px;
  border-radius: 10px;
  opacity: 0;
  transform: opacity .5s;
}

.settings_form.on {
  display: flex;
  opacity: 1;
}

.settings_form .left {
  padding-right: 10px;
  border-right: 2px solid #ccc;
}
.settings_form .right {
  padding-left: 10px;
}

.settings_form .input {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.settings_form .input span {
  display: inline;
  margin-right: 5px;
}

.settings_form .input input {
  width: 60px;
  height: 20px;
  line-height: 20px;
  border: none;
  outline: none;
  background: white;
  border-radius: 2px;
  padding-left: 5px;
  font-size: 17px;
}

.btn {
  margin-top: 5px;
  padding: 2px 10px;
  background: #fff;
  color: #ff8aac;
  border: 2px solid #ff8aac;
  border-radius: 5px;
  outline: none;
  box-shadow: unset;
}

.slider {
  width: 55px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 20px;
}
.slider.on {
  
}
.slider-dot {
  width: 22px;
  height: 22px;
  margin: 4px;
  border-radius: 50%;
  background: #fff;
  transition: transform .8s;
}
.slider.on .slider-dot {
  background: green;
  transform: translateX(22px);
}

.introduction {
  margin-top: 80px;
  padding: 20px;
  color: #ff8aac;
  border: 2px solid #ff8aac;
  border-radius: 20px;
}