@charset "UTF-8";
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

.loading-container {
  position: fixed;
  z-index: 9999;
  top: 0px;
  left: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* background: -webkit-linear-gradient(90deg,#354b75,#4c6ca8,#6f89b9,#789bfb);
  background: linear-gradient(90deg,#354b75,#4c6ca8,#6f89b9,#789bfb); */
  background: -webkit-linear-gradient(223deg, #6aacb9, #2470bf);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  background: linear-gradient(50deg, var(--primary-color), #27ae60);
  width: 100%;
  height: 100%;
  text-align: center;
}

.loader-container {
  width: 220px;
  height: 6px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.loading-text {
  font-size: 4rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 2px;
}

.loader-hidden {
  display: none;
}

.bomb {
  width: 100px;
  height: 100px;
  position: relative;
  animation: bombFloat 3s ease-in-out infinite;
  margin-bottom: 20px;
}

.bomb-body {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #666, #333);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

.bomb-shine {
  position: absolute;
  top: 20px;
  left: 15px;
  width: 30px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: rotate(45deg);
}

.bomb-fuse {
  width: 10px;
  height: 30px;
  background: linear-gradient(to bottom, #8B4513, #A0522D);
  border-radius: 5px 5px 0 0;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.bomb-spark {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
}

.spark {
  position: absolute;
  width: 4px;
  height: 15px;
  background: #ffd700;
  border-radius: 2px;
  animation: sparkle 1s ease-in-out infinite;
}

.spark:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: 0s;
}

.spark:nth-child(2) {
  transform: rotate(45deg);
  animation-delay: 0.1s;
}

.spark:nth-child(3) {
  transform: rotate(90deg);
  animation-delay: 0.2s;
}

.spark:nth-child(4) {
  transform: rotate(135deg);
  animation-delay: 0.3s;
}

.spark:nth-child(5) {
  transform: rotate(180deg);
  animation-delay: 0.4s;
}

.spark:nth-child(6) {
  transform: rotate(225deg);
  animation-delay: 0.5s;
}

.spark:nth-child(7) {
  transform: rotate(270deg);
  animation-delay: 0.6s;
}

.spark:nth-child(8) {
  transform: rotate(315deg);
  animation-delay: 0.7s;
}

/* Анимации */
@keyframes bombFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(-2deg);
  }
  50% {
    transform: translateY(0px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(2deg);
  }
}
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    height: 5px;
  }
  50% {
    opacity: 1;
    height: 20px;
    background: #ff9900;
  }
}
@keyframes textPulse {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 0 0 10px #ff0000;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 20px #ff0000, 0 0 30px #ff6b6b;
  }
}
.loading-progress {
  display: flex;
}

.dots {
  width: 40px;
  height: 9.6px;
  background: radial-gradient(circle closest-side, #ffffff 90%, rgba(0, 0, 0, 0)) 0 0/33% 100% space;
  clip-path: inset(0 100% 0 0);
  animation: dots-e3xtdg 0.9s steps(4) infinite;
  transform: translateY(28px);
}

@keyframes dots-e3xtdg {
  to {
    clip-path: inset(0 -34% 0 0);
  }
}
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  font-size: 10px;
  min-width: 300px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Source Sans Pro", sans-serif;
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: top left;
  background-size: auto;
  transition: background-image 0.3s ease-in-out;
}

h1 {
  padding: 20px 0px;
  margin: 0px;
  font-size: 3rem;
}

span {
  font-size: 2rem;
  font-weight: 700;
}

button {
  background: none;
}

:root {
  --primary-color: #0c6599;
  --primary-hover: #0a5480;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --bg-light: #ecf0f1;
  --bg-dark: #34495e;
  --border-color: #bdc3c7;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
}

.main {
  padding: 0px 20px 20px;
  min-height: 100vh;
}

.title, .story-res-box h2, .popup-text {
  text-align: center;
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--primary-color), #0a8070);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 30px auto;
  max-width: 800px;
}

.new-game,
.btn-ok, .store-game, .clear-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), #0a8070);
  color: white;
  box-shadow: var(--shadow);
  transform: translateY(0px);
  min-width: 140px;
  font-size: 1.6rem;
  margin: 0;
}
@media (hover: hover) {
  .new-game:hover,
  .btn-ok:hover, .store-game:hover, .clear-history:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}
@media (hover: none) {
  .new-game:active,
  .btn-ok:active, .store-game:active, .clear-history:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}
.new-game.btn-active,
.btn-ok.btn-active, .store-game.btn-active, .clear-history.btn-active {
  background: linear-gradient(135deg, var(--primary-color), #0a8070);
  border: none;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.easy-level, .medium-level, .hard-level {
  min-width: 140px;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: none;
  color: white;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--primary-color), #0a8070);
  transform: translateY(0px);
  padding: 8px;
  font-size: 2rem;
}
.easy-level.btn-active, .medium-level.btn-active, .hard-level.btn-active {
  background: linear-gradient(135deg, #45c08a, #2b8d80);
  border: none;
  color: #ffffff;
}
@media (hover: hover) {
  .easy-level:hover, .medium-level:hover, .hard-level:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}
@media (hover: none) {
  .easy-level:active, .medium-level:active, .hard-level:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}

.new-game {
  display: block;
  margin: 0 auto;
  min-width: 200px;
  font-size: 2.2rem;
  padding: 14px 32px;
  font-weight: 700;
}

.store-game {
  min-width: 160px;
}

.btn-ok {
  min-width: 40px;
  margin-right: 70px;
  border-radius: 0px 8px 8px 0px;
}

.clear-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), #0a8070);
  color: white;
  transform: translateY(0px);
  min-width: 180px;
  margin-top: 20px;
}
@media (hover: hover) {
  .clear-history:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}
@media (hover: none) {
  .clear-history:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}

.size-board, .number-mines, .info-game {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  max-width: 600px;
  height: 70px;
  margin: 20px auto;
  border-radius: var(--border-radius);
  padding: 0 24px;
  gap: 13px;
}
.size-board span, .number-mines span, .info-game span {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.number-mines-put {
  display: flex;
}

.number-mines input[type=number] {
  height: 39px;
  width: 70px;
  border: 2px solid var(--border-color);
  border-radius: 8px 0px 0px 8px;
  font-size: 2.2rem;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
  background: white;
  color: #63676b;
}
.number-mines input[type=number]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(12, 101, 153, 0.1);
  outline: none;
}

.info-game {
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-color), #0a8070);
}
.info-game .number-clics, .info-game .time-game, .info-game .number-flag {
  color: white;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
}
.info-game .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-game .info-item span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
}

.themes {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-image: url(../assets/img/theme-sprite.png);
  background-size: 100px 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.sound {
  position: fixed;
  top: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-image: url(../assets/img/sound-sprite.png);
  background-size: 200px 50px;
  background-position: -50px 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 1000;
}
.sound:hover {
  box-shadow: var(--shadow-hover);
}
.sound.mute {
  background-position: 0px 0;
}

.popup {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: min(90%, 400px);
  min-height: 250px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: var(--border-radius);
  z-index: 1001;
  padding: 32px;
  opacity: 0;
  transition: all 0.3s ease;
}
.popup.enable {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popup-text {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.4;
}

.popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-color), #0a8070);
  color: white;
  box-shadow: var(--shadow);
  transform: translateY(0px);
  min-width: 120px;
  font-size: 1.8rem;
  padding: 12px 24px;
}
@media (hover: hover) {
  .popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}
@media (hover: none) {
  .popup-btn:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }
}

.blackout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.blackout.enable {
  opacity: 1;
  visibility: visible;
}

.story-res-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  display: none;
  position: fixed;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 600px);
  max-height: 80vh;
  border-radius: var(--border-radius);
  padding: 40px;
  z-index: 1002;
  overflow: hidden;
}
.story-res-box.active {
  display: flex;
  animation: modalSlideIn 0.3s ease;
}
.story-res-box h2 {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
  font-weight: 700;
}
.story-res-box .story-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 24px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
  text-align: center;
  font-size: 20px;
  color: #3b3b3b;
  line-height: 1.5;
  /* WebKit браузеры (Chrome, Safari, Edge) */
}
.story-res-box .story-results {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.1); /* Firefox */
}
.story-res-box .story-results::-webkit-scrollbar {
  width: 6px;
}
.story-res-box .story-results::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}
.story-res-box .story-results::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}
.story-res-box .story-results span {
  font-size: 1.6rem;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}
.story-res-box .story-results span:nth-child(odd) {
  background: rgba(12, 101, 153, 0.1);
}
.story-res-box .story-results span:hover {
  background: rgba(12, 101, 153, 0.2);
  transform: translateX(4px);
}

.storyResBoxClose {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #e74c3c);
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 1;
  padding-top: 2px;
}
.storyResBoxClose:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
  opacity: 0.8;
}

input[type=number] {
  -moz-appearance: textfield; /* Firefox */
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Chrome, Safari, Edge */
  margin: 0;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 800px) {
  .themes {
    top: 20px;
    right: 80px;
    position: absolute;
  }
  .sound {
    top: 20px;
    right: 20px;
    position: absolute;
  }
}
@media (max-width: 768px) {
  .title {
    font-size: 3.5rem;
  }
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  .size-board, .number-mines, .info-game {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 12px;
    text-align: center;
  }
  .size-board span, .number-mines span, .info-game span {
    font-size: 2.5rem;
  }
  .info-game .info-item span {
    font-size: 2.5rem;
  }
  .info-game .info-item {
    justify-content: center;
  }
  .btn-ok {
    margin-right: 0px;
  }
}
@media (max-width: 640px) {
  .themes {
    background-size: 80px 40px;
    right: 70px;
    width: 40px;
    height: 40px;
  }
  .sound {
    background-size: 160px 40px;
    background-position: -40px 0;
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 590px) {
  .hard-level {
    display: none;
  }
}
@media (max-width: 460px) {
  .size-board {
    display: none;
  }
}
@media (max-width: 480px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .title {
    font-size: 3rem;
  }
  .themes {
    background-size: 60px 30px;
    right: 45px;
    width: 30px;
    height: 30px;
  }
  .sound {
    background-size: 120px 30px;
    background-position: -30px 0;
    right: 10px;
    width: 30px;
    height: 30px;
  }
  .popup {
    width: 95%;
    padding: 24px;
  }
  .popup-text {
    font-size: 2.2rem;
  }
  .story-res-box {
    width: 95%;
    padding: 24px;
  }
  .story-res-box h2 {
    font-size: 2.2rem;
  }
  .story-res-box .story-results span {
    font-size: 1.4rem;
  }
}
@media (max-width: 480px) and (max-width: 400px) {
  .title {
    text-align: left;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 24px;
}

[data-theme=dark] {
  --text-primary: #ecf0f1;
  --text-secondary: #bdc3c7;
  --bg-light: #2c3e50;
  --glass-bg: rgba(44, 62, 80, 0.95);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Отключаем hover эффекты на touch-устройствах */
@media (hover: hover) {
  .themes:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-hover);
  }
  .sound:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
  }
}
@media (hover: none) {
  .themes:active {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-hover);
  }
  .sound:active {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
  }
}
.board {
  display: flex;
  flex-wrap: wrap;
  margin: 0 10px;
  background: linear-gradient(135deg, var(--primary-color), #0a8070);
  padding: 8px;
}

.cell {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e2e2e2;
  width: 50px;
  height: 50px;
  box-shadow: inset 0 2px 0 0 #fcfcfc, inset 2px 0 0 0 #fcfcfc, inset 0 -2px 0 0 #c9c9c9, inset -2px 0 0 0 #c9c9c9;
  font-size: 2px;
  transition: 0.2s ease;
}
.cell.active {
  font-size: 3em;
}
.cell.flag {
  font-size: 3em;
}
.cell.num-one {
  font-size: 3em;
  color: rgb(0, 125, 228);
}
.cell.num-two {
  color: rgb(18, 153, 0);
}
.cell.num-three {
  color: rgb(204, 2, 2);
}
.cell.num-four {
  color: rgb(0, 40, 151);
}
.cell.num-five {
  color: rgb(145, 58, 0);
}
.cell.num-six {
  color: rgb(0, 150, 130);
}
.cell.num-seven {
  color: rgb(0, 0, 0);
}
.cell.num-eight {
  color: rgb(255, 255, 255);
}

.cell:hover {
  background: #eeeeee;
}

.active {
  background: #d5d5d5;
  box-shadow: inset 0 1px 0 0 #c9c9c9, inset 1px 0 0 0 #c9c9c9, inset 0 -1px 0 0 #c9c9c9, inset -1px 0 0 0 #c9c9c9;
  transition: 0.2s ease;
}

.active:hover {
  background: #d5d5d5;
}

.board-wrap {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.easy-size {
  width: 516px;
}

.medium-size {
  width: 766px;
}

.hard-size {
  width: 1266px;
}

/***********animation***********/
.board.easy-size {
  animation: fadeInUp 0.5s ease;
}

.medium-size {
  animation: fadeInUpMedium 0.5s ease;
}

.hard-size {
  animation: fadeInUpHard 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUpMedium {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUpHard {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1310px) {
  .hard-size {
    width: 1016px;
  }
  .hard-size .cell {
    width: 40px;
    height: 40px;
    font-size: 2.5rem;
  }
}
@media (max-width: 1060px) {
  .hard-size {
    width: 766px;
  }
  .hard-size .cell {
    width: 30px;
    height: 30px;
    font-size: 2rem;
  }
}
@media (max-width: 810px) {
  .medium-size {
    width: 616px;
  }
  .medium-size .cell {
    width: 40px;
    height: 40px;
    font-size: 2.5rem;
  }
  .hard-size {
    width: 516px;
  }
  .hard-size .cell {
    width: 20px;
    height: 20px;
    font-size: 1.7rem;
  }
}
@media (max-width: 650px) {
  .medium-size {
    width: 466px;
  }
  .medium-size .cell {
    width: 30px;
    height: 30px;
    font-size: 2rem;
  }
}
@media (max-width: 590px) {
  .easy-size {
    width: 416px;
  }
  .easy-size .cell {
    width: 40px;
    height: 40px;
    font-size: 2.5rem;
  }
}
@media (max-width: 550px) {
  .hard-size {
    width: 391px;
  }
  .hard-size .cell {
    width: 15px;
    height: 15px;
    font-size: 1.5rem;
  }
}
@media (max-width: 540px) {
  .medium-size {
    width: 391px;
  }
  .medium-size .cell {
    width: 25px;
    height: 25px;
    font-size: 2rem;
  }
}
@media (max-width: 500px) {
  .board-wrap {
    display: block;
  }
  .board {
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .easy-size {
    width: 316px;
  }
  .easy-size .cell {
    width: 30px;
    height: 30px;
    font-size: 2rem;
  }
}
@media (max-width: 350px) {
  .easy-size {
    width: 266px;
  }
  .easy-size .cell {
    width: 25px;
    height: 25px;
    font-size: 2rem;
  }
}
/* @media (min-width: 500px){

    .medium-size {
        max-width: 466px;
        .cell {
            width: 30px;
            height: 30px;
            font-size: 2rem;
        }
    }

}



} */
body.light {
  background-image: url("../assets/img/bg_light.jpg");
}

body.dark {
  background-image: url("../assets/img/bg_dark.jpg");
}

.dark {
  /****media****/
}
.dark .title, .dark .story-res-box h2, .dark .popup-text {
  background: linear-gradient(50deg, #1482c2, #42f18c);
  background-clip: text;
}
.dark .themes, .dark .sound {
  --shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}
.dark .themes {
  background-position: 50px 0;
}
.dark .sound.mute {
  background-position: 100px 0;
}
.dark h1, .dark h2 {
  color: #ffffff;
}
.dark .easy-level, .dark .medium-level, .dark .hard-level, .dark .btn-ok, .dark .store-game, .dark .info-game, .dark .new-game, .dark .board, .dark .clear-history {
  background: linear-gradient(135deg, var(--primary-color), #1c2f3b);
}
.dark .btn-active {
  background: linear-gradient(135deg, var(--primary-color), #368abe);
  box-shadow: 0px 1px 10px 2px rgba(162, 214, 237, 0.2);
}
.dark .cell {
  background: #3d3d3d;
  box-shadow: inset 0 2px 0 0 #797979, inset 2px 0 0 0 #6e6e6e, inset 0 -2px 0 0 #2f2f2f, inset -2px 0 0 0 #333333;
}
.dark .cell:hover {
  background: #575757;
}
.dark .cell.num-one {
  color: rgb(56, 165, 255);
}
.dark .cell.num-two {
  color: rgb(85, 245, 63);
}
.dark .cell.num-three {
  color: rgb(232, 0, 0);
}
.dark .cell.num-four {
  color: rgb(0, 46, 176);
}
.dark .cell.num-five {
  color: rgb(255, 143, 68);
}
.dark .cell.num-six {
  color: rgb(16, 223, 195);
}
.dark .size-board, .dark .number-mines {
  background: #3d3d3d;
}
.dark .active {
  background: #707070;
}
.dark .sound {
  background-image: url(../assets/img/sound-sprite.png);
  background-position: 50px 0;
}
.dark .mute {
  background-image: url(../assets/img/sound-sprite.png);
  background-position: 100px 0;
}
.dark .number-mines input[type=number] {
  background-color: #7a7a7a;
  color: #ffffff;
}
.dark .story-res-box {
  background: rgba(22, 22, 22, 0.95);
}
.dark span, .dark .number-clics, .dark .time-game, .dark .number-flag {
  color: #ffffff;
}
.dark .story-results {
  color: #fff;
}
.dark .story-results :nth-child(2n) {
  background: #2a2a2a;
}
.dark .popup {
  background: rgba(22, 22, 22, 0.95);
}
@media (max-width: 640px) {
  .dark .themes {
    background-size: 80px 40px;
    background-position: 40px 0;
  }
  .dark .sound {
    background-size: 160px 40px;
    background-position: 40px 0;
  }
  .dark .sound.mute {
    background-position: 80px 0;
  }
}
@media (max-width: 480px) {
  .dark .themes {
    background-size: 60px 30px;
    background-position: 30px 0;
  }
  .dark .sound {
    background-size: 120px 30px;
    background-position: 30px 0;
  }
  .dark .sound.mute {
    background-position: 60px 0;
  }
}

/*# sourceMappingURL=style.css.map */
