:root {
  --micalo-sky-1: #52d6ff;
  --micalo-sky-2: #1baee8;
  --micalo-sky-3: #087ec9;
  --micalo-deep: #075a9a;
  --micalo-ink: #083e6b;
  --micalo-card: rgba(247, 253, 255, 0.94);
  --micalo-line: rgba(255, 255, 255, 0.92);
  --micalo-glow: rgba(71, 211, 255, 0.62);
  --micalo-green-1: #4de2ad;
  --micalo-green-2: #15b77b;
  --micalo-gold-1: #ffe777;
  --micalo-gold-2: #efb518;
  --micalo-dark-1: #313743;
  --micalo-dark-2: #151a22;
}

html,
body {
  background-color: #071d30;
}

body {
  color: var(--micalo-ink);
}

.game-shell {
  border: 6px solid var(--micalo-sky-1) !important;
  border-radius: 30px !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.75),
    0 0 26px var(--micalo-glow),
    0 20px 55px rgba(0, 0, 0, 0.32) !important;
  animation: micalo-theme-glow 5s ease-in-out infinite !important;
}

@keyframes micalo-theme-glow {
  0%,
  100% {
    border-color: #56d8ff;
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.72),
      0 0 22px rgba(75, 210, 255, 0.56),
      0 20px 55px rgba(0, 0, 0, 0.3);
  }

  50% {
    border-color: #b8f2ff;
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.9),
      0 0 38px rgba(77, 219, 255, 0.78),
      0 20px 55px rgba(0, 0, 0, 0.32);
  }
}

.fullscreen-button {
  filter: drop-shadow(0 7px 10px rgba(0, 78, 130, 0.22));
}

.fullscreen-button:hover {
  transform: translateY(-3px) scale(1.04);
}
.settings-card,
.result-wrapper,
.lose-wrapper,
.original-image-panel,
.puzzle-panel,
.level-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.home-page::after,
.settings-page::after,
.tutorial-page::after,
.steps-page::after,
.game-page::after,
.levels-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(49, 196, 246, 0.13),
    rgba(255, 255, 255, 0.03) 44%,
    rgba(5, 107, 180, 0.1)
  );
}

.home-page > *,
.settings-page > *,
.tutorial-page > *,
.steps-page > *,
.game-page > *,
.levels-page > * {
  position: relative;
  z-index: 2;
}

.main-btn {
  border-radius: 26px !important;
  filter: drop-shadow(0 8px 13px rgba(3, 99, 163, 0.22));
  transition:
    transform 0.16s ease,
    filter 0.16s ease !important;
}

.main-btn:hover {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 0 16px rgba(76, 216, 255, 0.72));
}
body.levels-one-theme .game-shell {
  border-color: #40ccff !important;
  box-shadow:
    0 0 0 3px #dff9ff,
    0 0 28px rgba(40, 197, 255, 0.7),
    0 20px 55px rgba(0, 0, 0, 0.28) !important;
}

body.levels-one-theme .level-card {
  border-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 0 0 2px rgba(62, 202, 250, 0.22),
    0 9px 20px rgba(0, 83, 145, 0.16) !important;
}

body.levels-one-theme .levels-footer {
  background: rgba(239, 251, 255, 0.93) !important;
  border-color: #64d8ff !important;
  color: #0866a6 !important;
}
.settings-card {
  background: rgba(247, 253, 255, 0.95) !important;
  border: 4px solid rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 0 0 4px rgba(67, 205, 255, 0.36),
    0 0 28px rgba(44, 190, 241, 0.34),
    0 14px 35px rgba(0, 73, 125, 0.18) !important;
}

.settings-card-header {
  background: linear-gradient(135deg, #54d8ff, #0a91d5) !important;
}

.option-card.selected,
.difficulty-card.selected {
  border-color: #44cfff !important;
  background: linear-gradient(#fff, #e9faff) !important;
  box-shadow:
    0 0 0 3px rgba(67, 208, 255, 0.18),
    0 0 17px rgba(53, 193, 241, 0.25) !important;
}

.language-setting {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 2px solid #d8edf7;
}

.language-open-button {
  width: 100%;
  min-height: 64px;
  border: 3px solid #bfeeff;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fdff, #e4f8ff);
  color: #075e9d;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(0, 88, 145, 0.09);
}

.language-panel {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.language-panel[hidden] {
  display: none;
}

.language-choice {
  min-height: 58px;
  border: 2px solid #cfeaf5;
  border-radius: 16px;
  background: #fff;
  color: #0b5b91;
  font-weight: 900;
  cursor: pointer;
  transition: 0.14s ease;
}

.language-choice:hover,
.language-choice.selected {
  border-color: #32c5f4;
  background: #e8faff;
  box-shadow: 0 0 14px rgba(47, 193, 240, 0.24);
  transform: translateY(-2px);
}
.game-status-bar {
  background: linear-gradient(135deg, #56d7ff, #169edc) !important;
}

.original-image-panel,
.puzzle-panel {
  border-color: #f4fdff !important;
  box-shadow:
    0 0 0 3px rgba(75, 210, 255, 0.48),
    0 0 22px rgba(56, 196, 243, 0.33),
    0 12px 28px rgba(0, 73, 124, 0.16) !important;
}

.puzzle-board,
.original-image-placeholder {
  box-shadow:
    inset 0 0 24px rgba(44, 183, 236, 0.14),
    0 0 16px rgba(59, 205, 252, 0.18);
}

.game-tile {
  transition:
    transform 0.08s ease,
    box-shadow 0.12s ease;
}

.game-tile:not(.empty-tile):hover {
  transform: scale(0.985);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 4px solid rgba(55, 205, 255, 0.65);
  outline-offset: 3px;
}
body.home-theme .puzzle-preview {
  border: 4px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 4px rgba(69, 207, 255, 0.34),
    0 0 28px rgba(52, 195, 243, 0.42),
    0 14px 35px rgba(0, 72, 122, 0.2) !important;
}

body.home-theme .game-subtitle {
  color: #087fbd !important;
  text-shadow:
    0 2px 0 #fff,
    0 5px 12px rgba(0, 83, 133, 0.14) !important;
}

body.home-theme .character-label {
  border-color: #58d6ff !important;
  box-shadow:
    0 0 0 3px rgba(44, 178, 225, 0.5),
    0 0 18px rgba(55, 200, 248, 0.3),
    0 7px 16px rgba(0, 71, 120, 0.14) !important;
}

body.home-theme .character-label strong {
  color: #0877b6 !important;
}
