:root {
  --bg-color: #252525;
  --bg-layer-color: #1f1f1f;
  --bg-layer-grid-cells: rgba(214, 238, 255, 0.05);
  --bg-color-game: #353535;
  --bg-color-game: #2a2a2a;
  --accent-1: #d6eeff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  --card-bg-color: #333333;
  --border-color: #3a3a3a;
  --primary-color: #d6eeff;
  --primary-hover-color: #6fb1fc;
  --accent-color: #ff6f61;
  --text-color: #f0f0f0;
  --text-secondary-color: #b0b0b0;
  --gradient-text: linear-gradient(94deg, #6fb1fc 27%, rgb(196, 35, 177) 70%);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --grid-bg: rgba(81, 80, 83, 0.7);
  --cell: rgb(19, 131, 191);
  --empty-cell: rgb(18, 117, 171);
  --succes-cell: #4caf50;
  --selected-cell: rgb(14, 92, 135);
  --error-cell: #ff6f61;
  --card-bg: #2a2a2a;
  --bg-menu-btn: #4d4d4d;
  --bg-menu-btn-hover: #303030;
  --bg-menu-btn-border: #6fb1fc;
}

.light-mode {
  --bg-layer-color: #513c3c;
  --bg-layer-grid-cells: rgba(214, 238, 255, 0.09);
  --bg-color: #a69c9c;
  --bg-color: #775252;
  --bg-color-game: #826565;
  --grid-bg: #47418e;
  --cell: #6366f1;
  --succes-cell: #22d3ee;
  --error-cell: #f87171;
  --selected-cell: #4f46e5;
  --empty-cell: #3730a3;
  --card-bg: #6f504d;
  --gradient-text: linear-gradient(94deg, #6fb1fc 27%, rgb(255, 254, 255) 70%);
  --bg-menu-btn: #b97474;
  --bg-menu-btn-hover: #a95b5b;
  --bg-menu-btn-border: #88b0dd;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

input,
textarea,
a,
[contenteditable=true] {
  user-select: text;
  -webkit-user-select: text;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 62.5%;
}
@media (max-width: 68.75em) {
  html {
    font-size: 58.5%;
  }
}
@media (max-width: 43.75em) {
  html {
    font-size: 50%;
  }
}
@media (max-width: 33.75em) {
  html {
    font-size: 42%;
  }
}
@media (max-width: 23.75em) {
  html {
    font-size: 40%;
  }
}

body {
  min-height: 100dvh;
  box-sizing: border-box;
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 5rem 3rem;
  user-select: none;
  -webkit-user-select: none;
}

body:has(.popup--open) {
  overflow: hidden;
}

ul {
  list-style: none;
}

button,
input,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

button {
  touch-action: manipulation;
}

.container {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  margin: 0 auto;
  max-width: 130rem;
  padding: 3rem;
  min-height: 100%;
  box-shadow: 0 0 4rem rgba(125, 20, 205, 0.09);
  border-radius: 0.8rem;
  min-height: calc(100dvh - 10rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.container:has(.game) {
  background-color: var(--bg-color-game);
}

.title {
  text-align: center;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 3.6rem;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg-layer-color);
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(transparent 98%, var(--bg-layer-grid-cells) 2%), linear-gradient(90deg, transparent 98%, var(--bg-layer-grid-cells) 2%);
  background-size: 80px 80px;
  animation: gridMove 30s linear infinite;
  opacity: 0.25;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-80px, -80px);
  }
}
.start {
  display: flex;
  flex-direction: column;
  overflow: auto;
  flex: 1;
  gap: 5rem;
}
.start > :last-child {
  margin-top: auto;
}
.start__bottom {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  gap: 1rem;
}
.start__modes {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}
.start__mode-card {
  user-select: none;
  cursor: pointer;
  padding: 2rem 4rem;
  width: 34rem;
  background-color: var(--card-bg);
  border-radius: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.start__mode-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(111, 177, 252, 0.2), transparent);
  transition: left 0.5s ease;
}
@media (hover: hover) and (pointer: fine) {
  .start__mode-card:hover {
    box-shadow: 0 0.8rem 2.5rem rgba(111, 177, 252, 0.4);
    transform: translateY(-2px);
    animation: glow-pulse 3s ease-in-out infinite;
  }
  .start__mode-card:hover::before {
    left: 100%;
  }
}
.start__mode-card > :last-child {
  display: block;
  margin-top: auto;
  justify-self: center;
}
.start__btn {
  padding: 1rem 2rem;
  font-size: 1.6rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--bg-menu-btn);
  color: #f0f0f0;
  border: 2px solid var(--bg-menu-btn-border);
}
.start__btn--active {
  background: #6fb1fc;
  color: white;
  box-shadow: 0 0 0 0 rgba(111, 177, 252, 0.7);
  animation: pulse-border 2.4s infinite;
}
@media (hover: hover) and (pointer: fine) {
  .start__btn--active:hover {
    transform: scale(1.05);
    background: #5a9de0;
  }
}
@media (hover: hover) and (pointer: fine) {
  .start__btn:hover {
    background: var(--bg-menu-btn-hover);
    border-color: #6fb1fc;
  }
}

.author-link {
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.8rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}
.author-link:visited, .author-link:active {
  color: var(--primary-color);
}
@media (hover: hover) and (pointer: fine) {
  .author-link:hover {
    color: var(--primary-hover-color);
  }
  .author-link:hover .author-link__icon {
    filter: brightness(1.3);
    opacity: 1;
  }
}
.author-link p {
  user-select: text;
  -webkit-user-select: text;
}
.author-link__icon {
  width: 4.2rem;
  height: 4.2rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0.8rem 2.5rem rgba(111, 177, 252, 0.3);
  }
  50% {
    box-shadow: 0 0.8rem 3.5rem rgba(111, 177, 252, 0.45);
  }
}
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 177, 252, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(111, 177, 252, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 177, 252, 0);
  }
}
.game {
  position: relative;
  width: 100%;
  display: flex;
  gap: 2rem;
  height: calc(100dvh - 16rem);
}
@media (max-width: 62.5em) {
  .game {
    flex-direction: column;
  }
}
.game__interface {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  overflow-y: auto;
  padding-right: 1rem;
  align-content: end;
  width: 35%;
}
@media (max-width: 62.5em) {
  .game__interface {
    width: 100%;
    gap: 2.5rem;
    height: auto;
    overflow-y: visible;
  }
}
.game__interface-title {
  font-size: 2.1rem;
  text-align: end;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 62.5em) {
  .game__interface-title {
    display: none;
  }
}
.game__interface::-webkit-scrollbar {
  width: 1rem;
}
.game__interface::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 0.2rem;
  transition: background 0.3s ease;
  background: transparent;
}
.game__interface::-webkit-scrollbar-thumb {
  background: #6fb1fc;
  border-radius: 0.2rem;
  background: rgba(111, 177, 252, 0.3);
  backdrop-filter: blur(10px);
}
.game__interface::-webkit-scrollbar-thumb:hover {
  background: rgba(111, 177, 252, 0.5);
}
.game__info {
  display: flex;
  justify-content: space-between;
}
.game__assists, .game__controls-btns {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: end;
  justify-items: end;
  gap: 1.5rem;
}
.game__assists .game__btn, .game__controls-btns .game__btn {
  width: 100%;
}
@media (max-width: 62.5em) {
  .game__assists, .game__controls-btns {
    display: flex;
    width: 100%;
  }
}
.game__field {
  width: 65%;
  overflow-y: auto;
}
@media (max-width: 62.5em) {
  .game__field {
    width: 100%;
    order: 2;
  }
}
.game__field::-webkit-scrollbar {
  width: 1rem;
}
.game__field::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 0.2rem;
  transition: background 0.3s ease;
  background: transparent;
}
.game__field::-webkit-scrollbar-thumb {
  background: #6fb1fc;
  border-radius: 0.2rem;
  background: rgba(111, 177, 252, 0.3);
  backdrop-filter: blur(10px);
}
.game__field::-webkit-scrollbar-thumb:hover {
  background: rgba(111, 177, 252, 0.5);
}
.game__title-mode {
  text-align: center;
  font-size: 2.6rem;
  background: linear-gradient(94deg, #6fb1fc 27%, rgb(255, 254, 255) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
@media (max-width: 62.5em) {
  .game__title-mode {
    display: none;
  }
}
.game__grid {
  background-color: var(--grid-bg);
  border-radius: 0.45rem;
  display: grid;
  margin-top: 2rem;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.5rem;
  padding: 2rem;
  min-height: 85%;
  grid-auto-rows: min-content;
}
.game__cell {
  user-select: none;
  cursor: pointer;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  border-radius: 0.15rem;
  background-color: var(--cell);
  transition: background-color 0.16s;
  box-shadow: 0 0 10px rgba(10, 10, 10, 0.08);
}
@media (hover: hover) and (pointer: fine) {
  .game__cell:hover {
    background-color: rgb(19, 157, 231);
  }
}
.game__cell:active {
  scale: 0.95;
}
.game__cell--selected {
  background-color: var(--selected-cell);
}
@media (hover: hover) and (pointer: fine) {
  .game__cell--selected:hover {
    background-color: var(--selected-cell);
    filter: brightness(1.1);
  }
}
.game__cell--empty {
  background-color: var(--empty-cell);
  pointer-events: none;
}
.game__cell--success {
  background-color: var(--succes-cell);
  transition: background-color 0.4s ease, color 0.3s ease;
  animation: fadeOut 0.4s ease forwards;
  animation-delay: 0.45s;
}
@media (hover: hover) and (pointer: fine) {
  .game__cell--success:hover {
    background-color: var(--succes-cell);
  }
}
.game__cell--error {
  background-color: var(--error-cell);
  color: white;
  transition: all 0.05s;
  animation: shake 0.5s ease;
}
@media (hover: hover) and (pointer: fine) {
  .game__cell--error:hover {
    background-color: var(--error-cell);
  }
}
.game__btn {
  padding: 0.5rem 0.5rem;
  display: grid;
  place-items: center;
  font-family: inherit;
  font-size: 1.7rem;
  width: 13rem;
  min-height: 5rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .game__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }
}
.game__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.game__btn-close {
  cursor: pointer;
  position: absolute;
  font-size: 2.2rem;
  width: 4rem;
  height: 4rem;
  padding: 0.5rem;
  border-radius: 50%;
  top: -6.4rem;
  right: -6.3rem;
  border: none;
  color: #f0f0f0;
  background: transparent;
  opacity: 0.8;
  transform: rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
  perspective: 600px;
  transform-origin: center center;
}
@media (hover: hover) and (pointer: fine) {
  .game__btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
  }
}
.game__score {
  font-weight: 600;
  font-size: 2.6rem;
}
.game__timer {
  font-size: 2.4rem;
  font-weight: 300;
}
.game__hint {
  font-size: 2rem;
  text-transform: uppercase;
  text-align: center;
}
@media (max-width: 62.5em) {
  .game__hint {
    /* position: absolute;
    left: 50%;
    transform: translate(-50%); */
    order: 4;
  }
}

.notification {
  position: fixed;
  top: -100px;
  right: 2rem;
  z-index: 9999;
  padding: 1.5rem 2rem;
  min-width: 25rem;
  backdrop-filter: blur(1rem);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  font-size: 1.6rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--succes-cell);
  transition: all 0.3s ease;
}
.notification--show {
  top: 2rem;
}

@keyframes fadeOut {
  from {
    background-color: var(--succes-cell);
  }
  to {
    background-color: var(--empty-cell);
    color: transparent;
  }
}
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-2px);
  }
  30% {
    transform: translateX(2px);
  }
  45% {
    transform: translateX(-2px);
  }
  60% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-1px);
  }
  90% {
    transform: translateX(1px);
  }
  100% {
    transform: translateX(0);
  }
}
.settings {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-width: 40rem;
  font-size: 2rem;
}
.settings__section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.settings__setting {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.settings__volume {
  margin-top: 1.6rem;
}

.volume-slider {
  cursor: pointer;
  width: 73%;
  transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb {
  transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb {
  transition: all 0.2s ease;
}

.results {
  min-width: 60rem;
  min-height: 16rem;
}
@media (max-width: 43.75em) {
  .results {
    min-width: 35rem;
    min-height: 16rem;
    font-size: 1.6rem;
  }
}
.results--empty {
  font-size: 2.2rem;
}
.results--empty p {
  font-size: 2.2rem;
  text-align: center;
  margin-top: 3rem;
}
.results__title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.results__row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  place-content: center;
  text-align: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.results__row:last-child {
  border-bottom: none;
}
@media (max-width: 33.75em) {
  .results__row--header {
    font-size: 1.8rem;
  }
}
.results__row--header {
  font-size: 2.1rem;
  font-weight: 600;
  font-weight: 600;
  background-color: rgba(111, 177, 252, 0.3);
}

.switcher {
  display: inline;
  height: 2.9rem;
  width: 5.8rem;
}
.switcher__input {
  position: absolute;
  height: 0;
  width: 0;
  opacity: 0;
  appearance: none;
}
.switcher__input:checked + .switcher__checkbox::before {
  background-color: #34d399;
}
.switcher__input:checked + .switcher__checkbox::after {
  transform: translateX(2.9rem);
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.switcher__checkbox {
  display: inline-flex;
  position: relative;
  height: 2.9rem;
  width: 5.8rem;
  cursor: pointer;
}
.switcher__checkbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #bebfc1;
  border-radius: 1.6rem;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 4rem rgba(125, 20, 205, 0.09);
}
.switcher__checkbox::after {
  content: "";
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #ededed;
  border-radius: 50%;
  left: 2px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.popup {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.2s ease;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(1.3rem);
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.popup--open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.3);
}
.popup--open .popup__content {
  transform: scale(1);
  opacity: 1;
}
.popup__content {
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease;
  transform: scale(0.45);
  padding: 5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.1), inset 0 0 4px 2px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.popup__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}
.popup__content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
}
.popup__close-btn {
  user-select: none;
  position: absolute;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: inherit;
  top: 1.6rem;
  right: 1.6rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 2.1rem;
  color: var(--text-color);
  cursor: pointer;
  background-color: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .popup__close-btn:hover {
    color: var(--primary-hover-color);
  }
}

.end-screen {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  gap: 2rem;
}
.end-screen__title {
  font-size: 3.4rem;
  margin-bottom: 2rem;
}
.end-screen__text {
  font-size: 2.2rem;
}
.end-screen__btns {
  margin-top: 3rem;
  justify-self: end;
  display: flex;
  gap: 4rem;
}

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