@charset "UTF-8";
@import url("bootstrap.min.css");
@import url("https://fonts.googleapis.com/css?family=Rubik:300,400,500,600,700,800,900&display=swap");

:root {
  /* Text size style */
  --text-xs: clamp(12px, 0.4vw + 10.8px, 14px);
  --text-s: clamp(14px, 0.4vw + 12.8px, 16px);
  --text-m: clamp(16px, 0.5vw + 13.5px, 18px);
  --text-l: clamp(18px, 0.6vw + 14.5px, 20px);
  --text-xl: clamp(20px, 0.7vw + 15.5px, 22px);
  --text-xxl: clamp(22px, 0.9vw + 16px, 24px);

  /* Text weight style */
  --text-weight-s: 300;
  --text-weight-m: 400;
  --text-weight-l: 500;
  --text-weight-xl: 600;
  --text-weight-xxl: 700;

  /* Line height style */
  --line-height-s: 1;
  --line-height-m: 1.4;
  --line-height-l: 1.6;

  /* Borders-radius style */
  --border-radius-circle: 999px;
  --border-radius-xs: 2px;
  --border-radius-s: 6px;
  --border-radius-m: 12px;
  --border-radius-l: 16px;
  --border-radius-xl: 16px;

  /* Safe area insets */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Shared text and accent colors */
  --text-base: var(--text-main), 0.7;
  --text-muted: var(--text-main), 0.6;
  --text-dark: 40, 40, 40;
  --primary: 244, 131, 97; /* основний акцент (#F48361) */
  --warning: 251, 191, 36; /* попередження (#FBBF24) */
  --danger: 234, 101, 123; /* помилка (#EA657B) */
  --success: 80, 220, 160; /* успіх (#50DC9F) */
  --info: 100, 180, 255; /* інформація (#64B4FF) */
  --highlight: 152, 192, 232; /* підсвітка (#98C0E8) */
  --focus: 224, 168, 200; /* фокус/active (#E0A8C8) */
  --indigo: 99, 102, 241; /* індиго (#6366F1) */

  /* Shared effects */
  --bg-menu-blur: blur(10px);
}

::-webkit-scrollbar {
  width: 0;
  -webkit-appearance: none;
  display: none;
}

html {
  margin: 0;
}

body {
  font-family: 'Rubik', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-m);
  font-weight: var(--text-weight-m);
  line-height: var(--line-height-m);
  letter-spacing: 0.04em;
  color: rgba(var(--text-main));
  background-color: rgba(var(--bg-level-0));
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent rubber-band/bounce in webview revealing the area behind the page. */
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

.is-animated {
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease,
    border-color 0.2s ease,
    background-color 0.15s ease;
  cursor: pointer;
  position: relative;
  will-change: transform;
}

.is-animated:hover {
  border-color: rgba(var(--primary), 0.7) !important;
}

.is-animated:active {
  background-color: rgba(var(--bg-level-0)) !important;
  border-color: rgba(var(--primary), 0.7) !important;
  transition-duration: 0s;
}

.is-selected {
  background-color: rgba(var(--bg-level-0)) !important;
  border-color: rgba(var(--primary), 0.7) !important;
}

.no-display {
  display: none !important;
}

main {
  margin: 0;
}

.mb-2 {
  margin-bottom: 16px !important;
}

.label {
  font-size: var(--text-s);
  margin: 0;
  font-weight: var(--text-weight-m);
  color: rgba(var(--text-base));
}

a {
  color: inherit;
  outline: 0 !important;
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  outline: 0 !important;
  text-decoration: none;
  color: inherit;
}

.appHeader {
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  backdrop-filter: var(--bg-menu-blur);
}

@media (min-width: 900px) {
  .appHeader {
    height: 50px;
    width: 100%;
    max-width: 800px;
    margin: auto;
  }

  .appHeader .page-title {
    margin-right: 0px !important;
  }
}

.appHeader .left,
.appHeader .right {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  color: rgba(var(--text-base));
}

.appHeader .left .headerButton,
.appHeader .right .headerButton {
  color: rgba(var(--text-base));
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  position: relative;
}

.appHeader .theme-icon {
  width: 22px;
  height: 22px;
}

.appHeader .left {
  left: 4px;
  top: 0;
}

.appHeader .right {
  right: 10px;
  top: 0;
}

.appHeader .page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-right: 40px;
}

.appHeader .page-title .logo {
  display: inline-flex;
  height: 22px;
}

.appHeader .page-title .name {
  display: inline-flex;
  font-size: var(--text-l);
  font-weight: var(--text-weight-xl);
}

.lang-selector-hover {
  position: relative;
}

.lang-selector-hover .current-lang {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-selector-hover .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(var(--bg-level-2));
  border: 1px solid rgba(var(--border-level-2));
  border-radius: var(--border-radius-m);
  box-shadow: var(--shadow-level-2);
  min-width: 100px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 1000;
  overflow: hidden;
}

.lang-selector-hover:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-selector-hover .dropdown-item {
  display: block;
  padding: 12px 16px;
  color: rgba(var(--text-main));
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(var(--border-level-2));
}

.lang-selector-hover .dropdown-item:last-child {
  border-bottom: none;
}

.lang-selector-hover .dropdown-item:hover {
  background: rgba(var(--bg-level-0));
  color: rgba(var(--primary));
}

.lang-selector-hover .dropdown-item.active {
  color: rgba(var(--primary));
  background: rgba(var(--bg-level-0));
}

.app-box {
  width: 100%;
  max-width: 800px;
  margin: auto;
}

section {
  padding: 0 16px;
}

.row {
  align-items: center;
  justify-content: center;
}

.section-heading {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.section-heading .title {
  margin: 0;
  font-size: var(--text-l);
  line-height: var(--line-height-s);
  color: rgba(var(--text-main)) !important;
}

.stat-box {
  display: block;
  text-align: center;
  background: rgba(var(--bg-level-1));
  box-shadow: var(--shadow-level-1);
  border-radius: var(--border-radius-l);
  padding: 10px 5px;
}

.stat-box .title {
  color: rgba(var(--text-base));
  font-weight: var(--text-weight-l);
  display: block;
  margin-bottom: 8px;
}

.stat-box .value {
  font-size: var(--text-xxl);
  font-weight: var(--text-weight-xl);
  color: rgba(var(--text-main));
  line-height: var(--line-height-s);
}

.btn {
  height: 36px;
  padding: 3px 18px;
  font-size: var(--text-s);
  font-weight: var(--text-weight-l);
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  border-radius: var(--border-radius-l);
  border-width: 1px;
}

.btn.rounded {
  border-radius: var(--border-radius-circle) !important;
}

.btn.square {
  border-radius: 0 !important;
}

.btn-lg {
  height: 48px;
  padding: 3px 24px;
  font-size: var(--text-l);
}

.btn-block {
  width: 100%;
}

.btn-group .btn:active {
  transform: none;
}

.btn-primary {
  background-color: rgba(var(--primary)) !important;
  border: 1px solid rgba(var(--primary)) !important;
  color: rgba(var(--text-dark)) !important;
  font-weight: var(--text-weight-xl) !important;
  box-shadow: var(--shadow-level-1) !important;
}

.btn-secondary {
  background-color: rgba(var(--bg-level-2)) !important;
  border: 1px solid rgba(var(--border-level-2)) !important;
  color: rgba(var(--text-main)) !important;
  box-shadow: var(--shadow-level-1) !important;
}

.btn-hidden {
  background: transparent !important;
  border: none !important;
  color: rgba(var(--text-base)) !important;
  font-size: var(--text-s) !important;
}

.btn-hidden:active {
  background-color: transparent !important;
}

.form-group {
  width: 100%;
}

.form-group.boxed {
  margin: 0;
  padding: 8px 0;
}

.form-group.boxed .form-control {
  color: rgba(var(--text-main));  
  height: 42px;
  border-radius: var(--border-radius-l);
  padding: 0 40px 0 16px;
}

.form-group.boxed .label {
  margin-bottom: 6px;
}

.form-group.boxed .form-control.custom-select {
  background-image: url("data:image/svg+xml,%0A%3Csvg width='13px' height='8px' viewBox='0 0 13 8' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline id='Path' stroke='%23ff7657' stroke-width='2' points='1.59326172 1.79663086 6.59326172 6.79663086 11.5932617 1.79663086'%3E%3C/polyline%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
}

.form-group.boxed .form-control.custom-select {
  background-position: right 12px center !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: rgba(var(--text-main));
  margin: 0 0 10px 0;
}

h1 {
  font-size: var(--text-xxl);
  font-weight: var(--text-weight-xl);
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--text-weight-xl);
}

.lucide {
  stroke-width: 1.25;
}

/* .lucide * {
  vector-effect: non-scaling-stroke;
} */

.home-page,
.themes-page {
  padding: 56px 0;
}

.home-page .top-box {
  text-align: center;
  padding: 16px 16px 22px;
  margin-top: 10px;
  margin-bottom: 40px;
  background: rgba(var(--bg-level-1));
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow-level-1);
}

.home-page .top-box p {
  color: rgba(var(--text-base));
}

.home-page .top-box .btn-primary {
  margin-top: 10px;
}

.home-page .tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.home-page .tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.home-page .tabs .tab-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 50%;
  height: 35px;
  color: rgba(var(--text-base));
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  margin: 0 auto 32px auto;
  padding: 6px;
  border-bottom: 1px solid rgba(var(--border-level-2));
}

.home-page .tabs .tab-label .lucide {
  display: flex;
  align-items: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;

}

.home-page .tabs input:checked + .tab-label {
  color: rgba(var(--primary));
  border-bottom: 1px solid rgba(var(--primary));
}

.home-page .tabs .tab-content {
  display: none;
}

.home-page .tabs #stats:checked ~ .stats,
.home-page .tabs #achievements:checked ~ .achievements {
  display: block;
}

.home-page .stat-box .lucide {
  color: rgba(var(--primary));
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
}

.home-page .reset-stats {
  display: flex;
  align-items: center;
  justify-content: right;
}

.home-page .reset-btn {
  background: none;
  border: none;
  color: rgba(var(--text-muted));
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  opacity: 0.8;
}

.home-page .reset-btn .lucide {
  width: 20px;
  height: 20px;
}

.home-page .confirm-reset {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 10px;
}

.home-page .confirm-reset span {
  display: flex;
  align-items: center;
  font-size: var(--text-s);
  color: rgba(var(--primary));
}

.home-page .confirm-reset .btn {
  width: 80px;
  max-width: 80px;
  border-radius: var(--border-radius-m);
}

.home-page .achievements-section .achievement-category {
  margin-bottom: 24px;
}

.home-page .achievements-section .achievement-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-l);
  font-weight: var(--text-weight-xl);
  color: rgba(var(--primary));
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(var(--border-level-2));
}

.home-page .achievements-section .achievement-category-title .lucide {
  width: 28px;
  height: 28px;
  color: rgba(var(--primary));
}

.home-page .achievements-section .achievement-card {
  background: rgba(var(--bg-level-1));
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow-level-1);
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-page .achievements-section .achievement-card.unlocked {
  border: 1px solid rgba(var(--success));
}

.home-page .achievements-section .achievement-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.home-page .achievements-section .achievement-icon {
  width: 44px;
  height: 44px;
  background: rgba(var(--bg-level-2));
  border: 1px solid rgba(var(--border-level-2));
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--primary));
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.home-page .achievements-section .achievement-info {
  flex: 1;
  min-width: 0;
}

.home-page .achievements-section .achievement-name {
  font-size: var(--text-m);
  font-weight: var(--text-weight-xxl);
  color: rgba(var(--text-main));
  margin-bottom: 6px;
}

.home-page .achievements-section .achievement-description {
  font-size: var(--text-s);
  color: rgba(var(--text-base));
}

.home-page .achievements-section .achievement-progress {
  margin-top: 10px;
}

.home-page .achievements-section .progress-text {
  font-size: var(--text-s);
  color: rgba(var(--success));
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  opacity: 0.8;
}

.home-page .achievements-section .progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(var(--bg-level-0));
  border-radius: var(--border-radius-s);
  overflow: hidden;
}

.home-page .achievements-section .progress-bar-fill {
  height: 100%;
  background: rgba(var(--info));
  transition: width 0.5s ease;
  border-radius: var(--border-radius-s);
  position: relative;
  overflow: hidden;
}

.home-page .achievements-section .achievement-card.unlocked .progress-bar-fill {
  background: rgba(var(--success));
}

.home-page .home-chessnode-promo {
  display: grid;
  grid-template-columns: 55% 45%;
  grid-template-areas: "content media";
  width: auto;
  margin: 44px 16px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-xl);
  background: rgba(var(--bg-level-1));
  box-shadow: var(--shadow-level-1);
}

.home-page .home-chessnode-media {
  grid-area: media;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  background: rgba(var(--bg-level-0));
}

.home-page .home-chessnode-media img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-page .home-chessnode-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 20px;
}

.home-page .home-chessnode-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(var(--primary));
  font-size: var(--text-xs);
  font-weight: var(--text-weight-xl);
  text-transform: uppercase;
}

.home-page .home-chessnode-eyebrow .lucide {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.home-page .home-chessnode-content h2 {
  margin-bottom: 10px;
  font-size: var(--text-xxl);
  font-weight: var(--text-weight-l);
}

.home-page .home-chessnode-content p {
  max-width: 52ch;
  margin-bottom: 24px;
  color: rgba(var(--text-base));
}

.home-page .home-chessnode-link {
  align-self: flex-start;
  gap: 8px;
  width: 100%;
}

.home-page .home-chessnode-link .lucide {
  width: 16px;
  height: 16px;
}

@media (max-width: 899px) {
  .home-page .home-chessnode-promo {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
  }

  .home-page .home-chessnode-media {
    display: flex;
    min-height: 0;
    aspect-ratio: 2 / 1;
  }
}

  .puzzles-game-page  {
    overflow: hidden;
  }

.puzzles-game-page #newPuzzleBtn:disabled,
.puzzles-game-page #restartPuzzleBtn:disabled {
  opacity: 1 !important;
  box-shadow: var(--shadow-level-1) !important;
}

.puzzles-game-page .toast {
  position: absolute;
  top: 0;
  display: flex;
  font-size: var(--text-m);
  font-weight: var(--text-weight-m);
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  text-align: center;
  background: rgba(var(--bg-level-1));
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow-level-1);
  animation:
    slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
    slideOut 0.4s ease 2.6s forwards;
}

.puzzles-game-page .new-achievement.toast {
  border-color: rgba(var(--success));
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(500px);
    opacity: 0;
  }
}

.puzzles-game-page .toast .info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.puzzles-game-page .toast .info .lucide {
  min-width: 50px;
  min-height: 50px;
  stroke-width: 2;
  padding: 8px;
  background: rgba(var(--bg-level-2));
  border: 1px solid rgba(var(--border-level-2));
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow-base);
  color: rgba(var(--success));
}

.puzzles-game-page .toast .info .text {
  display: flex;
  align-items: center;
  color: rgba(var(--text-main));
  height: 100%;
  overflow: scroll;
}

.puzzles-game-page .new-achievement.toast .info .lucide {
  min-width: 60px;
  min-height: 60px;
  padding: 12px;
  color: rgba(var(--success));
  border-color: rgba(var(--success));
}

.puzzles-game-page .new-achievement.toast .info .title {
  font-size: var(--text-l);
  color: rgba(var(--primary));
}

.puzzles-game-page .success-message {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px 30px 16px 16px;
  text-align: center;
  background: rgba(var(--bg-level-1));
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow-level-1);
  animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

  .puzzles-game-page {
    display: block;
    padding: 56px 0 24px;
  }

.puzzles-game-page[hidden] {
  display: none;
}

.puzzles-game-page .success-message .close-btn {
  position: absolute;
  top: 6px;
  right: 5px;
  background: transparent;
  color: rgba(var(--text-muted));
}

.puzzles-game-page .success-message .close-btn .lucide {
  width: 24px;
  height: 24px;
}

.puzzles-game-page .success-message .info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.puzzles-game-page .success-message .info .lucide {
  min-width: 50px;
  min-height: 50px;
  stroke-width: 2;
  padding: 8px;
  background: rgba(var(--bg-level-2));
  border: 1px solid rgba(var(--border-level-2));
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow-base);
}

.puzzles-game-page .success-message.warning .lucide {
  color: rgba(var(--danger));
}

.puzzles-game-page .success-message.success .lucide {
  color: rgba(var(--success));
}

.puzzles-game-page .success-message .info .text {
  display: flex;
  align-items: center;
  color: rgba(var(--text-main));
  font-size: var(--text-m);
  font-weight: var(--text-weight-m);
  height: 100%;
  overflow: scroll;
}

.puzzles-game-page .game-right {
  height: auto;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 900px) {
  .puzzles-game-page .game-right {
    width: 100%;
    max-width: 480px;
    min-width: 0;
    padding-left: 20px;
  }
}

.puzzles-game-page .puzzle-header {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.puzzles-game-page .puzzle-header .puzzle-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0px 10px 0px;
  border-bottom: 1px solid;
  border-image: linear-gradient(
      to right,
      transparent,
      var(--info),
      transparent
    )
    1;
}

.puzzles-game-page .puzzle-header .puzzle-info .puzzle-elo .label {
  padding-left: 5px;
}

.puzzles-game-page .puzzle-header .puzzle-info .puzzle-elo .value {
  font-size: var(--text-xxl);
  font-weight: var(--text-weight-xl);
  color: rgba(var(--text-main));
  line-height: var(--line-height-s);
  padding-left: 10px;
}

.puzzles-game-page .puzzle-header .puzzle-moves {
  display: flex;
  align-items: center;
  gap: 10px;
}

.puzzles-game-page .puzzle-header .puzzle-info .puzzle-moves .move-turn {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 1px 16px;
  color: rgba(var(--info));
  text-transform: uppercase;
  background: rgba(var(--bg-level-1));
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-m);
  box-shadow: var(--shadow-base);
}

.puzzles-game-page .puzzle-header .puzzle-info .puzzle-moves .moves-count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--digits-font);
  height: 40px;
  padding: 1px 16px;
  color: rgba(var(--success));
  background: rgba(var(--bg-level-1));
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-m);
  box-shadow: var(--shadow-base);
}

.puzzles-game-page .puzzle-header .filtered {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding-top: 10px;
  font-size: var(--text-l);
}

.puzzles-game-page .puzzle-header .filtered .title {
  color: rgba(var(--text-base));
}

.puzzles-game-page .puzzle-header .filtered .value {
  color: rgba(var(--text-main));
  font-weight: var(--text-weight-xl);
}

.puzzles-game-page .puzzle-header .filtered .lucide {
  width: 28px;
  height: 28px;
  padding: 4px;
  color: rgba(var(--primary));
}

.puzzles-game-page .buttons-section {
  margin-bottom: 10px;
}

.puzzles-game-page .buttons-section .buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  gap: 12px;
  width: 100%;
}

.puzzles-game-page .buttons-section .buttons button {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
}

.puzzles-game-page .buttons-section .lucide {
  min-width: 20px;
  min-height: 20px;
}

@media (min-width: 900px) {
  .puzzles-game-page .buttons-section {
    margin-top: 50px;
  }
}

.puzzles-game-page .buttons-section .btn-primary {
  margin-top: 20px;
  margin-bottom: 20px;
}

.puzzles-game-page .puzzle-theme-description {
  padding: 16px;
  margin-top: 20px;
  background: rgba(var(--bg-level-1));
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-level-1);
}

.puzzles-game-page .puzzle-theme-description h2 {
  margin-bottom: 6px;
  color: rgba(var(--primary));
  font-size: var(--text-m);
  font-weight: var(--text-weight-l);
  text-transform: uppercase;
}

.puzzles-game-page .puzzle-theme-description p {
  margin: 0;
  color: rgba(var(--text-base));
}

.puzzles-game-page .settings-panel,
.puzzles-game-page .filter-panel {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  transform-origin: top center;
  transition:
    grid-template-rows 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.24s ease,
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.puzzles-game-page .settings-panel > *,
.puzzles-game-page .filter-panel > * {
  min-height: 0;
}

.puzzles-game-page .settings-panel.hidden,
.puzzles-game-page .filter-panel.hidden {
  margin: 0;
  grid-template-rows: 0fr;
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.puzzles-game-page #board {
  margin-top: 5px;
  margin-bottom: 10px;
  max-width: 100% !important;
  overflow: hidden;
}

.puzzles-game-page .app-box {
  width: 100% !important;
  max-width: 800px !important;
  max-height: none;
  margin: 0 auto;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

@media (min-width: 900px) {
    .puzzles-game-page {
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top: 56px;
      padding-left: clamp(16px, 15vw, 300px);
      padding-right: 24px;
    }

  .puzzles-game-page .app-box {
    width: fit-content !important;
    max-width: 100% !important;
    max-height: 80vh;
    margin: 0 auto;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: grid;
    align-items: center;
    grid-template-columns: clamp(320px, min(80vh, calc(100vw - 520px)), 80vh) clamp(320px, 26vw, 480px);
    grid-template-rows: auto;
    overflow: visible;
  }

  .puzzles-game-page .game-left {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
  }

  .puzzles-game-page #boardWrapper {
    width: 100%;
    aspect-ratio: 1;
  }

  .puzzles-game-page .game-right {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .puzzles-game-page #board {
    width: 100%;
    overflow: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

.puzzles-game-page .cm-chessboard {
  border-radius: var(--border-radius-s) !important;
}

.puzzles-game-page .cm-chessboard .markers .marker.marker-hint-beam {
  fill: transparent;
  stroke: rgba(var(--danger));
  stroke-width: 3px;
  stroke-linecap: round;
  filter: brightness(0.8) drop-shadow(0 0 4px rgba(var(--warning)));
  animation: puzzle-hint-blink 1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .puzzles-game-page .cm-chessboard .markers .marker.marker-hint-beam {
    opacity: 1;
    animation: none;
  }
}

@keyframes puzzle-hint-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.themes-page .large-description {
  color: rgba(var(--text-base));
}

.themes-page .themes-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(var(--bg-level-1));
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-l);
  box-shadow: var(--shadow-level-1);

}

.themes-page .themes-list-item .lucide {
  display: flex;
  min-width: 26px;
  min-height: 26px;
  color: rgba(var(--primary));
}

.themes-page .themes-list-item .title {
  margin: 0;
  display: flex;
  font-size: var(--text-m);
  font-weight: var(--text-weight-l);
  color: rgba(var(--text-base));
}

.appHeader.theme-seo-header {
  width: 100%;
  max-width: none;
  height: 64px;
}

.theme-seo-header-nav {
  display: flex;
  width: min(calc(100% - 32px), 1180px);
  height: 64px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.appHeader .theme-seo-brand {
  justify-content: flex-start;
  margin: 0;
}

.theme-catalog-header .theme-seo-header-nav {
  justify-content: center;
}

.theme-seo-page {
  padding: 88px 0 0;
}

.theme-seo-page :is(.theme-seo-hero, .theme-puzzle-stage, .theme-related-section, .theme-faq-section) {
  padding: 0;
}

.theme-seo-container {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
}

.theme-seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 16px;
  color: rgba(var(--text-muted));
  font-size: var(--text-xs);
}

.theme-seo-breadcrumbs a:hover,
.theme-seo-breadcrumbs a:focus-visible {
  color: rgba(var(--primary));
}

.theme-seo-breadcrumbs [aria-current='page'] {
  color: rgba(var(--text-base));
}

.theme-seo-card {
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-l);
  background: rgba(var(--bg-level-1));
  box-shadow: var(--shadow-level-1);
}

.theme-seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.theme-hero-copy {
  padding: 40px;
}

.theme-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(var(--primary));
  font-size: var(--text-xs);
  font-weight: var(--text-weight-xxl);
  text-transform: uppercase;
}

.theme-eyebrow::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: '';
}

.theme-seo-page h1 {
  margin: 0 0 20px;
  font-size: calc(2 * var(--text-xxl));
}

.theme-seo-page h2,
.theme-seo-page h3,
.theme-seo-page p {
  margin-top: 0;
}

.theme-hero-lead {
  margin-bottom: 24px;
  color: rgba(var(--text-base));
  font-size: var(--text-m);
  line-height: var(--line-height-l);
}

.theme-chips,
.theme-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-chips {
  margin-bottom: 24px;
}

.theme-chip {
  padding: 7px 11px;
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-circle);
  background: rgba(var(--bg-level-2));
  color: rgba(var(--text-base));
  font-size: var(--text-xs);
  font-weight: var(--text-weight-l);
}

.theme-btn {
  display: inline-flex;
  width: auto;
  min-height: 48px;
  width: 50%;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: var(--border-radius-m);
  font-size: var(--text-s);
  font-weight: var(--text-weight-xxl);
}

.theme-btn .lucide {
  width: 18px;
  height: 18px;
}

.theme-btn-block {
  width: 100%;
}

.theme-puzzle-copy > p,
.theme-section-heading p,
.theme-article-card p,
.theme-faq-item p {
  color: rgba(var(--text-base));
  line-height: var(--line-height-l);
}

.theme-puzzle-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  min-height: 450px;
  margin-bottom: 24px;
  overflow: hidden;
}

.theme-board-wrap {
  display: grid;
  min-height: 448px;
  place-items: center;
  padding: 16px;
  background: rgba(var(--bg-level-0), 0.48);
}

.theme-preview-board {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--border-radius-s);
  box-shadow: var(--shadow-level-1);
}

.theme-board-grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
}

.theme-board-square {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
}

.theme-board-square.is-light {
  background: #e5dfc9;
}

.theme-board-square.is-dark {
  background: #4e9e77;
}

.theme-board-piece {
  display: block;
  width: 88%;
  height: 88%;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.22));
}

.theme-preview-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: var(--border-radius-s);
  background: rgba(var(--bg-level-0), 0.9);
  color: rgba(var(--text-main));
  font-size: var(--text-xs);
  font-weight: var(--text-weight-xl);
}

.theme-puzzle-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border-left: 1px solid rgba(var(--border-level-1));
}

.theme-puzzle-copy h2 {
  margin-bottom: 12px;
  font-size: var(--text-xxl);
}

.theme-puzzle-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0 24px;
}

.theme-metric {
  padding: 16px;
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-m);
  background: rgba(var(--bg-level-2));
}

.theme-metric span {
  display: block;
  margin-bottom: 4px;
  color: rgba(var(--text-muted));
  font-size: var(--text-xs);
}

.theme-metric strong {
  font-size: var(--text-m);
}

.theme-trust-line {
  margin: 16px 0 0;
  color: rgba(var(--text-muted));
  font-size: var(--text-xs);
  text-align: center;
}

.theme-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  margin-bottom: 48px;
}

.theme-article-flow,
.theme-seo-sidebar,
.theme-faq-list {
  display: grid;
  align-content: start;
  gap: 24px;
}

.theme-article-card {
  padding: 32px;
}

.theme-article-card h2,
.theme-section-heading h2 {
  margin-bottom: 16px;
  font-size: var(--text-xxl);
}

.theme-article-card h3 {
  margin: 24px 0 8px;
  font-size: var(--text-l);
}

.theme-article-card p:last-child,
.theme-faq-item p:last-child {
  margin-bottom: 0;
}

.theme-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.theme-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-m);
  background: rgba(var(--bg-level-2));
}

.theme-step:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.theme-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--border-radius-s);
  background: rgba(var(--primary), 0.13);
  color: rgba(var(--primary));
  font-weight: var(--text-weight-xxl);
}

.theme-step p {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--line-height-l);
}

.theme-callout {
  border-color: rgba(var(--info), 0.35);
  background: linear-gradient(145deg, rgba(var(--info), 0.1), rgba(var(--bg-level-1)));
}

.theme-seo-toc,
.theme-training-card {
  padding: 24px;
}

.theme-seo-toc {
  position: sticky;
  top: 82px;
}

.theme-seo-toc strong,
.theme-training-card > strong {
  display: block;
  margin-bottom: 14px;
  font-size: var(--text-s);
}

.theme-seo-toc a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(var(--border-level-1));
  color: rgba(var(--text-base));
  font-size: var(--text-xs);
  line-height: var(--line-height-m);
}

.theme-seo-toc a:first-of-type {
  border-top: 0;
}

.theme-seo-toc a:hover,
.theme-seo-toc a:focus-visible {
  color: rgba(var(--primary));
}

.theme-training-card > span {
  display: block;
  color: rgba(var(--success));
  font-size: var(--text-xxl);
  font-weight: var(--text-weight-xxl);
}

.theme-training-card p {
  margin: 6px 0 0;
  color: rgba(var(--text-muted));
  font-size: var(--text-xs);
}

.theme-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid rgba(var(--primary), 0.34);
  border-radius: var(--border-radius-l);
  background: linear-gradient(120deg, rgba(var(--primary), 0.14), rgba(var(--primary), 0.04));
  box-shadow: var(--shadow-level-1);
}

.theme-cta-band h2 {
  margin-bottom: 8px;
  font-size: var(--text-xl);
}

.theme-cta-band p {
  margin-bottom: 0;
  color: rgba(var(--text-base));
  line-height: var(--line-height-m);
}

.theme-related-section,
.theme-faq-section {
  margin-bottom: 48px;
}

.theme-section-heading {
  margin-bottom: 24px;
}

.theme-section-heading p {
  margin-bottom: 0;
  font-size: var(--text-s);
}

.theme-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.theme-related-card {
  min-height: 132px;
  padding: 24px;
}

.theme-related-card > span {
  color: rgba(var(--primary));
  font-size: var(--text-xs);
  font-weight: var(--text-weight-xl);
  text-transform: uppercase;
}

.theme-related-card h3 {
  margin: 16px 0 0;
  font-size: var(--text-s);
  line-height: var(--line-height-m);
}

.theme-all-themes-link {
  margin-top: 24px;
}

.theme-faq-item {
  padding: 24px;
}

.theme-faq-item h3 {
  margin-bottom: 8px;
  font-size: var(--text-s);
}

.theme-seo-footer {
  display: block;
  padding: 24px 16px;
  border-top: 1px solid rgba(var(--border-level-1));
  color: rgba(var(--text-muted));
  font-size: var(--text-xs);
  text-align: center;
}

.theme-seo-page :is(a, button):focus-visible,
.theme-seo-header :is(a, button):focus-visible {
  outline: 2px solid rgba(var(--focus));
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .appHeader.theme-seo-header,
  .theme-seo-header-nav {
    height: 56px;
  }

  .theme-seo-page {
    padding-top: 72px;
  }

  .theme-seo-hero,
  .theme-puzzle-stage,
  .theme-content-layout {
    grid-template-columns: 1fr;
  }

  .theme-hero-copy,
  .theme-puzzle-copy,
  .theme-article-card {
    padding: 24px;
  }

  .theme-puzzle-stage {
    min-height: 0;
  }

  .theme-board-wrap {
    min-height: 0;
    padding: 16px;
  }

  .theme-preview-board {
    width: min(100%, 380px);
  }

  .theme-puzzle-copy {
    border-top: 1px solid rgba(var(--border-level-1));
    border-left: 0;
  }

  .theme-content-layout {
    margin-bottom: 40px;
  }

  .theme-seo-hero,
  .theme-puzzle-stage,
  .theme-related-section,
  .theme-faq-section {
    margin-bottom: 40px;
  }

  .theme-seo-sidebar {
    grid-row: 1;
  }

  .theme-seo-toc {
    position: static;
  }

  .theme-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-cta-band {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-cta-band .theme-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .theme-seo-container,
  .theme-seo-header-nav {
    width: min(calc(100% - 24px), 1180px);
  }

  .theme-hero-copy,
  .theme-puzzle-copy,
  .theme-article-card,
  .theme-cta-band {
    padding: 24px;
  }

  .theme-seo-toc,
  .theme-training-card,
  .theme-related-card,
  .theme-faq-item {
    padding: 20px;
  }

  .theme-cta-row,
  .theme-cta-row .theme-btn,
  .theme-all-themes-link {
    width: 100%;
  }

  .theme-steps,
  .theme-related-grid,
  .theme-puzzle-metrics {
    grid-template-columns: 1fr;
  }

  .theme-step:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .theme-related-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-seo-page .is-animated,
  .theme-seo-header .is-animated {
    transition: none;
  }
}

/* Themes catalog */
.theme-catalog-page {
  padding: 88px 0 0;
}

.theme-catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.65fr);
  gap: 24px;
  padding: 24px 0;
}

.theme-catalog-hero-copy {
  padding: clamp(28px, 5vw, 48px);
}

.theme-catalog-page h1 {
  margin: 0 0 20px;
  font-size: calc(2 * var(--text-xxl));
}

.theme-catalog-page h2,
.theme-catalog-page h3,
.theme-catalog-page p {
  margin-top: 0;
}

.theme-catalog-lead {
  margin-bottom: 0;
  color: rgba(var(--text-base));
  font-size: var(--text-m);
  line-height: var(--line-height-l);
}

.theme-catalog-hero-copy .theme-chips {
  margin-top: 26px;
}

.theme-catalog-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 20px;
}

.theme-catalog-intro .theme-eyebrow {
  margin-bottom: 12px;
}

.theme-catalog-intro h2 {
  margin-bottom: 8px;
  font-size: calc(1.5 * var(--text-xl));
}

.theme-catalog-intro p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(var(--text-muted));
  line-height: var(--line-height-l);
}

.theme-catalog-count {
  flex: none;
  color: rgba(var(--text-muted));
  font-size: var(--text-xs);
}

.theme-catalog-group {
  margin-bottom: 24px;
  padding: 28px;
}

.theme-catalog-group-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.theme-catalog-group-heading h2 {
  margin-bottom: 7px;
  font-size: var(--text-xl);
}

.theme-catalog-group-heading p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(var(--text-muted));
  line-height: var(--line-height-m);
}

.theme-catalog-group-number {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(var(--primary), 0.38);
  border-radius: var(--border-radius-m);
  background: rgba(var(--primary), 0.1);
  color: rgba(var(--primary));
  font-weight: var(--text-weight-xxl);
}

.theme-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-catalog-card {
  display: grid;
  min-height: 146px;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-m);
  background: rgba(var(--bg-level-2));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.theme-catalog-card:hover {
  border-color: rgba(var(--primary), 0.6);
}

.theme-catalog-card.is-featured {
  border-color: rgba(var(--primary), 0.38);
  background: linear-gradient(140deg, rgba(var(--primary), 0.1), rgba(var(--bg-level-2)) 46%);
}

.theme-catalog-card h3 {
  margin-bottom: 9px;
  font-size: var(--text-l);
}

.theme-catalog-card p {
  margin-bottom: 0;
  color: rgba(var(--text-muted));
  font-size: var(--text-s);
  line-height: var(--line-height-m);
}

.theme-catalog-card > .lucide {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: var(--border-radius-s);
  background: rgba(var(--primary), 0.1);
  color: rgba(var(--primary));
}

.theme-catalog-closing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 40px 0 64px;
  padding: 0;
}

.theme-catalog-guide,
.theme-catalog-random {
  padding: 30px;
}

.theme-catalog-guide h2,
.theme-catalog-random h2 {
  margin-bottom: 12px;
  font-size: var(--text-l);
}

.theme-catalog-guide > p,
.theme-catalog-random > p {
  margin-bottom: 0;
  color: rgba(var(--text-muted));
  line-height: var(--line-height-l);
}

.theme-catalog-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.theme-catalog-steps li {
  padding: 14px;
  border: 1px solid rgba(var(--border-level-1));
  border-radius: var(--border-radius-m);
  background: rgba(var(--bg-level-2));
  color: rgba(var(--text-base));
  font-size: var(--text-xs);
  line-height: var(--line-height-m);
}

.theme-catalog-steps strong {
  display: block;
  margin-bottom: 5px;
  color: rgba(var(--primary));
}

.theme-catalog-random {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(var(--primary), 0.12), rgba(var(--bg-level-1)));
}

.theme-catalog-random .theme-btn {
  width: 100%;
  margin-top: 22px;
}

.theme-catalog-page a:focus-visible {
  outline: 2px solid rgba(var(--focus));
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .theme-catalog-page {
    padding-top: 72px;
  }

  .theme-catalog-hero,
  .theme-catalog-closing {
    grid-template-columns: 1fr;
  }

  .theme-catalog-hero {
    padding-top: 0px;
  }

  .theme-catalog-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-catalog-group {
    padding: 22px;
  }
}

@media (max-width: 560px) {

  .theme-catalog-hero-copy {
    padding: 24px;
  }

  .theme-catalog-grid,
  .theme-catalog-steps {
    grid-template-columns: 1fr;
  }

  .theme-catalog-group {
    padding: 18px;
  }

  .theme-catalog-group-heading p {
    font-size: var(--text-s);
  }

  .theme-catalog-card {
    min-height: 0;
    padding: 17px;
  }

  .theme-catalog-guide,
  .theme-catalog-random {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-catalog-page .is-animated {
    transition: none;
  }
}
