/* Fonts, backgrounds, and global styles */
body {
  background: var(--body-bg, linear-gradient(120deg, #181a2a 0%, #6a5cff 20%, #64b5f6 40%, #a259f7 65%, #ff4e8e 100%));
  color: #e0e0e0;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background 0.6s;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #181a2acc;
  z-index: -1;
}

.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;
}
.main-container,
.gallery-grid,
.gallery-item {
  box-sizing: border-box;
}
/* Header styles */
.header {
  text-align: center;
  padding: 36px 10px 18px 10px; /* Increase top padding, reduce bottom padding */
  background: var(--header-bg, linear-gradient(90deg, #6a5cff, #64b5f6 40%, #a259f7 70%, #81c784 100%));
  color: #181a2a;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-size: 3em;
  font-weight: 900;
  letter-spacing: 0.06em;
  filter: drop-shadow(0 2px 18px #222a);
  border-bottom: 2px solid #fff176;
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: header-sheen 6s ease-in-out infinite;
  user-select: none;
  margin-bottom: 0;
  position: relative;
}
@keyframes header-sheen {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.header-sub {
  text-align: center;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-size: 1.35em;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  user-select: none;
  background: var(--header-sub-bg, linear-gradient(90deg, #ff4e8e, #a259f7 40%, #64b5f6 70%, #fff176 100%));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: header-sub-sheen 7s ease-in-out infinite;
  text-shadow: 0 2px 12px #6a5cff44;
}
@keyframes header-sub-sheen {
  0%,100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}
.header-byline {
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.98em;
  font-weight: 400;
  color: #e0e0e0;
  margin-top: 28px;      /* Add more space below the yellow divider */
  margin-bottom: 0;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* Container styles */
.super-container {
  max-width: 1100px;
  margin: 48px auto 48px auto;
  padding: 36px 36px 48px 36px;
  background: rgba(40,48,80,0.22);
  border-radius: 34px;
  box-shadow: 0 18px 56px rgba(95, 120, 255, 0.28), 0 0 26px rgba(210, 102, 255, 0.25);
  border: 2px solid rgba(210, 102, 255, 0.72);
  position: relative;
}
.main-container {
  max-width: 900px;
  margin: 12px auto 12px auto;
  padding: 20px 24px 10px 24px;
  background: rgba(24,26,42,0.85);
  border-radius: 20px;
  box-shadow: 0 4px 24px #181a2a44;
  border: 1.5px solid #64b5f633;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (max-width: 1000px) {
  .main-container,
  .gallery-grid,
  .gallery-item {
    max-width: 99vw;
    width: 100%;
    padding: 3vw 1vw 5vw 1vw;
    border-radius: 18px;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) {
  .main-container,
  .gallery-grid,
  .gallery-item {
    max-width: 99vw;
    width: 100%;
    padding: 4vw 1vw 8vw 1vw;
    border-radius: 14px;
    box-sizing: border-box;
  }
  .categories {
    max-width: 99vw;
    width: 100%;
    min-width: 0;
    padding: 0 2vw 24px 2vw;
    box-sizing: border-box;
  }
  .category {
    max-width: 99vw;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .search-bar {
    width: 100%;
    padding: 0 2vw;
    box-sizing: border-box;
  }
  .search-bar input {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Gallery styles */
.gallery-grid {
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
  margin-top: 18px;
}
.gallery-item {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(120deg, #232a3a 60%, #181a2a 100%);
  border-radius: 18px;
  box-shadow: 0 4px 32px #a259f7cc, 0 0 0 2px #6a5cff55;
  border: 1.5px solid #a259f7cc;
  padding: 18px 18px 24px 18px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  margin-bottom: 16px;
  background: #181a2a;
  cursor: default !important;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0;
}
.gallery-item img.gallery-image-clickable {
  cursor: zoom-in !important;
}
body.gallery-modal-open {
  overflow: hidden;
}
@media (max-width: 700px) {
  .gallery-item img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 90vw; /* Allow for much taller images on mobile */
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
    display: block;
  }
}
.gallery-desc,
.gallery-instruction {
  text-align: left !important;
  width: 100%;
  max-width: 820px;
  font-size: 1.08em;
  color: #e0e0e0;
  font-family: 'Inter', 'Orbitron', Arial, sans-serif;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 4px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
  letter-spacing: 0.01em;
  line-height: 1.72;
  opacity: 0.96;
  font-variant-numeric: tabular-nums;
  white-space: pre-line; /* Preserve line breaks and spacing */
}

.category-ref {
  display: inline-block;
  margin: 0 0.12em;
  padding: 0.08em 0.5em;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #032a34;
  background: linear-gradient(135deg, #7dfff0 0%, #55d7ff 52%, #7ab8ff 100%);
  border: 1px solid rgba(125, 255, 240, 0.75);
  box-shadow: 0 0 10px rgba(85, 215, 255, 0.28);
}
/* Commented out: hover effect for gallery-item and gallery-item img */
/*
.gallery-item:hover {
  box-shadow:
    0 0 0 8px #f73100aa,
    0 4px 24px #a259f799;
  border-color: #a259f7;
  transform: translateY(-4px) scale(1.03);
}
.gallery-item:hover img {
  box-shadow: none;
}
*/
.gallery-title {
  text-align: center;
  font-size: 1.18em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
}

body[data-guide-page] .gallery-title {
  color: #58f3ff;
  text-shadow: 0 0 10px rgba(88, 243, 255, 0.42), 0 1px 1px rgba(0, 0, 0, 0.72);
}

/* Modal styles */
#gallery-modal {
  display:none;
  position:fixed;
  z-index:99999;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background:rgba(24,26,42,0.96);
  backdrop-filter:blur(8px);
  align-items:center;
  justify-content:center;
}
#gallery-modal-content {
  background:#232a3add;
  border-radius:24px;
  box-shadow:0 8px 64px #a259f7cc;
  max-width:95vw;
  max-height:90vh;
  overflow:auto;
  padding:48px 32px;
  color:#e0e0e0;
  position:relative;
}
#gallery-modal-close {
  position:absolute;
  top:18px;
  right:28px;
  border:0;
  background:transparent;
  font-size:2.5em;
  color:#fff;
  cursor:pointer;
  z-index:10;
}
#gallery-modal-body {
  /* Additional styles for modal body if needed */
}
#gallery-modal-image {
  display:block;
  max-width:90vw;
  max-height:80vh;
  width:auto;
  height:auto;
  margin:0 auto;
  object-fit:contain;
}

/* Search bar styles */
.search-bar {
  display: flex;
  justify-content: center;
  margin: 32px 0 18px 0;
}
.search-bar input {
  width: 340px;
  padding: 12px 18px;
  font-size: 1.1em;
  border-radius: 24px;
  border: 1.5px solid #64b5f6;
  background: #181a2a;
  color: #e0e0e0;
  outline: 1px solid transparent;
  outline-offset: 2px;
  transition: border 0.2s;
  font-family: 'Inter', Arial, sans-serif;
}
.search-bar input:focus {
  border: 2px solid #81c784;
}

.search-bar input:focus-visible {
  outline: 2px solid rgba(155, 226, 255, 0.95);
}

.guide-top-actions {
  width: 100%;
  text-align: center;
  margin-top: 0;
  margin-bottom: 22px;
}

.theme-randomizer-btn {
  background:
    linear-gradient(175deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 20%, rgba(0, 0, 0, 0) 34%),
    linear-gradient(145deg, #2a2b2f 0%, #111216 48%, #030304 100%);
  color: #f2f8ff;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-size: 0.66em;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 8px;
  padding: 7px 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(210, 228, 248, 0.24);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.theme-randomizer-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -26%;
  width: 18%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(222, 238, 255, 0.34), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  opacity: 0;
  transition: left 0.62s ease, opacity 0.38s ease;
}

.theme-randomizer-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: conic-gradient(from 0deg, #64b5f6, #ff4e8e, #fff176, #81c784, #64b5f6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.22s ease;
}

.theme-randomizer-btn:hover::after {
  left: 114%;
  opacity: 1;
}

.theme-randomizer-btn:hover::before {
  opacity: 0.92;
  animation: spectrum-ring-spin 2.1s linear infinite;
}

.theme-randomizer-btn > * {
  position: relative;
  z-index: 1;
}

@keyframes spectrum-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.guide-featured-btn {
  display: inline-block;
  background: linear-gradient(90deg, #a259f7, #64b5f6 70%, #fff176 100%);
  color: #181a2a;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-size: 1.18em;
  font-weight: 900;
  letter-spacing: 0.04em;
  border-radius: 18px;
  padding: 16px 38px;
  box-shadow: 0 4px 24px #64b5f6cc;
  text-decoration: none;
  margin: 0 0 18px 0;
  transition: box-shadow 0.2s, background 0.2s;
}

.guide-community-links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 22px 0;
}

.guide-community-btn {
  display: inline-block;
  text-decoration: none;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 14px;
  padding: 12px 20px;
  border: 1px solid rgba(175, 220, 255, 0.34);
  box-shadow: 0 4px 18px rgba(24, 26, 42, 0.45), inset 0 1px 0 rgba(245, 252, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.guide-community-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 26, 42, 0.58), inset 0 1px 0 rgba(245, 252, 255, 0.26);
  border-color: rgba(190, 232, 255, 0.56);
  filter: saturate(1.03);
}

.guide-community-btn.discord {
  background:
    linear-gradient(145deg, rgba(15, 22, 40, 0.5), rgba(20, 30, 52, 0.38)),
    var(--community-discord-bg, linear-gradient(90deg, #5865f2, #7b8cff));
  color: #f6f7ff;
}

.guide-community-btn.youtube {
  background:
    linear-gradient(145deg, rgba(15, 22, 40, 0.5), rgba(20, 30, 52, 0.38)),
    var(--community-youtube-bg, linear-gradient(90deg, #ff3d3d, #ff7a3d));
  color: #fff7f0;
}

/* Categories styles */
.categories {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 12px 40px 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.category {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(60,80,120,0.18);
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 32px #0005;
  border: 1.5px solid #64b5f633;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
  /* Remove any flex or width restrictions here */
}
.category::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(120deg, #fff2 0%, #fff0 100%);
  opacity: 0.25; /* Subtle light sheen */
  z-index: 0;
}
.category > * {
  position: relative;
  z-index: 1;
}
.category-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 18px 18px 18px 24px; /* Less left padding, keep right comfortable */
  font-size: 1.3em;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-weight: 800;
  background: linear-gradient(90deg, #81c784, #64b5f6, #fff176, #81c784 80%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: showcase-hue-move 5s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px #222a);
  letter-spacing: 0.03em;
  border-bottom: 1px solid #2226;
  user-select: none;
  justify-content: flex-start; /* Ensures content is left-aligned within the flex container */
}
.category-header .icon {
  font-size: 1.3em;
  margin-right: 16px;
  filter: drop-shadow(0 2px 8px #222a);
}
.category-content {
  padding: 18px 18px 18px 18px; /* top, right, bottom, left */
  display: none;
  animation: fadeIn 0.4s;
  text-align: center;
}
.category.open > .category-content {
  display: block;
}
.subcategory {
  margin-bottom: 20px;
  max-height: none;
  opacity: 1;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, max-height 0.22s ease, margin-bottom 0.22s ease;
}
.subcategory-title {
  display: block;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.08em;
  font-weight: 700;
  color: #64b5f6;
  margin-bottom: 4px;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  letter-spacing: 0.02em;
}
.child-list {
  display: block;
  width: min(100%, 58ch);
  box-sizing: border-box;
  margin: 0 auto 10px auto;
  font-family: 'Sora', 'Inter', Arial, sans-serif;
  font-size: clamp(0.96rem, 0.26vw + 0.88rem, 1.06rem);
  font-weight: 500;
  color: rgba(224, 233, 246, 0.88);
  line-height: 1.68;
  letter-spacing: 0.006em;
  text-align: center;
  text-wrap: balance;
  padding: 10px 14px 0 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
  position: relative;
}

.child-list::before {
  content: "";
  display: block;
  width: clamp(86px, 20vw, 132px);
  height: 1px;
  margin: 0 auto 10px auto;
  background: linear-gradient(90deg, rgba(130, 186, 255, 0), rgba(130, 186, 255, 0.55), rgba(130, 186, 255, 0));
}

.subcategory:hover .child-list {
  color: rgba(235, 243, 255, 0.95);
}

.subcategory.search-hidden {
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.category {
  max-height: 10000px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.24s ease, margin-bottom 0.24s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category.search-hidden {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
  border-color: transparent;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .category,
  .subcategory {
    transition: none !important;
  }
}
@keyframes showcase-hue-move {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}
@media (max-width: 700px) {
  .header { font-size: 1.3em; padding: 22px 4px 12px 4px; }
  .main-container {
    max-width: 99vw;
    padding: 4vw 1vw 8vw 1vw;
    border-radius: 14px;
  }
  .categories {
    max-width: 99vw;
    width: 100%;
    min-width: 0;
    padding: 0 2vw 24px 2vw;
    box-sizing: border-box;
  }
  .category {
    max-width: 99vw;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .search-bar {
    width: 100%;
    padding: 0 2vw;
    box-sizing: border-box;
  }
  .search-bar input {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 1em;
  color: #64b5f6;
  text-decoration: none;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.back-link:hover {
  color: #fff176;
  text-decoration: underline;
}
.site-signature {
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.98em;
  font-weight: 400;
  color: #e0e0e0;
  margin-top: 48px;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* Main Guide page polish (GuideAR.html only) */
body:not([data-guide-page]) .super-container {
  max-width: clamp(980px, 48vw, 1320px);
  animation: none;
}

body:not([data-guide-page]) .primer-title-shell {
  position: relative;
  max-width: 560px;
  margin: 2px auto 14px auto;
  padding: 14px 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(37, 46, 82, 0.55), rgba(24, 32, 60, 0.42));
  border: 1px solid rgba(125, 196, 255, 0.36);
  box-shadow: 0 14px 28px rgba(8, 10, 28, 0.44), 0 0 24px rgba(101, 170, 255, 0.18);
  backdrop-filter: blur(4px);
}

body:not([data-guide-page]) .primer-title-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255, 120, 232, 0.52), rgba(100, 181, 246, 0.52), rgba(255, 241, 118, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

body:not([data-guide-page]) .header.primer-title {
  margin: 0;
  padding: 0;
  border: none;
  font-size: clamp(2.1rem, 6vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  text-shadow: 0 0 20px rgba(120, 182, 255, 0.2);
}

body:not([data-guide-page]) .header.primer-title span:first-child {
  display: inline-block;
}

body:not([data-guide-page]) .header.primer-title span:last-child {
  display: inline-block;
  margin-top: 2px;
}

body:not([data-guide-page]) .main-container {
  max-width: clamp(780px, 40vw, 1060px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  border: 1.5px solid rgba(132, 198, 255, 0.28);
  background: linear-gradient(145deg, rgba(10, 16, 36, 0.3), rgba(16, 24, 46, 0.16));
  box-shadow: 0 8px 24px rgba(8, 12, 28, 0.32), 0 0 10px rgba(100, 181, 246, 0.08);
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  padding: 20px 24px 10px 24px;
  transition: background 0.65s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body:not([data-guide-page]) .main-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    var(--header-sub-bg, linear-gradient(90deg, #ff4e8e, #a259f7 40%, #64b5f6 70%, #fff176 100%)),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 42%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 34%);
  background-size: 220% 220%, 100% 100%, 100% 100%;
  background-position: 50% 50%, center center, center center;
  opacity: 0.16;
}

body:not([data-guide-page]) .main-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body:not([data-guide-page]) .main-container > * {
  position: relative;
  z-index: 1;
}

body[data-guide-page] .header {
  max-width: 560px;
  margin: 2px auto 14px auto;
  padding: 14px 18px;
  border-radius: 22px;
  border-bottom: none;
  background: linear-gradient(145deg, rgba(37, 46, 82, 0.55), rgba(24, 32, 60, 0.42));
  border: 1px solid rgba(125, 196, 255, 0.36);
  box-shadow: 0 14px 28px rgba(8, 10, 28, 0.44), 0 0 24px rgba(101, 170, 255, 0.18);
  backdrop-filter: blur(4px);
  color: #7fc2ff;
  -webkit-text-fill-color: #7fc2ff;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  text-shadow: 0 0 14px rgba(100, 181, 246, 0.32);
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  line-height: 1.05;
}

body[data-guide-page] .header .docs-header-category,
body[data-guide-page] .header .docs-header-page {
  display: block;
}

body[data-guide-page] .header .docs-header-category {
  font-size: 0.5em;
  letter-spacing: 0.08em;
  color: #c9da8a;
  -webkit-text-fill-color: #c9da8a;
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(255, 241, 118, 0.16);
}

body[data-guide-page] .header .docs-header-page {
  font-size: 1em;
  letter-spacing: 0.03em;
  color: #7fc2ff;
  -webkit-text-fill-color: #7fc2ff;
}

body[data-guide-page] .header-sub {
  display: none;
}

body:not([data-guide-page]) .guide-top-actions {
  margin-bottom: 12px;
}

body:not([data-guide-page]) .guide-utility-actions {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 2px 0 0 0;
}

.guide-language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(176, 240, 255, 0.42);
  background: rgba(9, 24, 58, 0.82);
  box-shadow: 0 8px 22px rgba(6, 18, 56, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  margin-right: auto;
}

.guide-language-label {
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #dff7ff;
  text-transform: uppercase;
}

.guide-language-select {
  min-width: 112px;
  border: 1px solid rgba(127, 194, 255, 0.55);
  border-radius: 999px;
  background: rgba(14, 31, 69, 0.96);
  color: #f6fdff;
  padding: 6px 28px 6px 10px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.92em;
  cursor: pointer;
}

.guide-language-select:focus-visible {
  outline: 2px solid rgba(155, 226, 255, 0.95);
  outline-offset: 2px;
}

body:not([data-guide-page]) .theme-randomizer-btn {
  margin-left: auto;
  font-size: 0.68em;
  padding: 6px 12px;
  border-radius: 999px;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.08) 20%, rgba(0, 0, 0, 0) 34%),
    linear-gradient(145deg, #1ec9ff 0%, #1178e6 46%, #0b2f6d 100%);
  box-shadow: 0 10px 22px rgba(6, 18, 56, 0.64), 0 0 14px rgba(30, 201, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(6, 27, 64, 0.5);
  border: 1px solid rgba(176, 240, 255, 0.52);
  color: #f6fdff;
  opacity: 0.96;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body:not([data-guide-page]) .theme-randomizer-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 30px rgba(7, 15, 48, 0.7), 0 0 22px rgba(33, 220, 255, 0.52), 0 0 34px rgba(108, 166, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.36), inset 0 -1px 0 rgba(7, 24, 64, 0.62);
  border-color: rgba(210, 248, 255, 0.68);
  filter: brightness(1.08) saturate(1.08);
  opacity: 1;
}

body:not([data-guide-page]) .theme-randomizer-btn:active {
  transform: translateY(0) scale(0.98);
}

body:not([data-guide-page]) .search-bar.search-bar-compact {
  margin-top: 0;
  margin-bottom: 16px;
}

body:not([data-guide-page]) .search-bar input {
  width: 100%;
  max-width: 470px;
  border-radius: 16px;
  border: 1px solid rgba(100, 181, 246, 0.75);
  background: rgba(18, 24, 45, 0.92);
  box-shadow: inset 0 0 0 1px rgba(100, 181, 246, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body:not([data-guide-page]) .search-bar input::placeholder {
  color: rgba(214, 224, 255, 0.72);
}

body:not([data-guide-page]) .search-bar input:focus {
  border-color: rgba(129, 199, 132, 0.95);
  box-shadow: inset 0 0 0 1px rgba(129, 199, 132, 0.45), 0 0 0 3px rgba(129, 199, 132, 0.15);
}

body:not([data-guide-page]) .categories {
  max-width: clamp(520px, 27vw, 660px);
  gap: 0;
  padding-bottom: 20px;
}

@media (min-width: 2200px) {
  body:not([data-guide-page]) .super-container {
    margin-top: 58px;
    margin-bottom: 58px;
    padding: 44px 44px 58px 44px;
  }

  body:not([data-guide-page]) .primer-title-shell {
    max-width: 680px;
    padding: 16px 22px;
  }

  body:not([data-guide-page]) .header.primer-title {
    font-size: clamp(2.5rem, 4.2vw, 4.1rem);
  }

  body:not([data-guide-page]) .main-container {
    padding: 28px 30px 18px 30px;
  }

  body:not([data-guide-page]) .search-bar input {
    max-width: 560px;
    font-size: 1.16em;
  }

  body:not([data-guide-page]) .category-header {
    font-size: 1.42em;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  body:not([data-guide-page]) .guide-community-btn {
    font-size: 1.04em;
    padding: 13px 22px;
  }

  body:not([data-guide-page]) .theme-randomizer-btn {
    font-size: 0.8em;
    padding: 8px 15px;
  }
}

body:not([data-guide-page]) .category {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(100, 181, 246, 0.3);
  background: rgba(43, 55, 92, 0.18);
  box-shadow: 0 8px 18px rgba(6, 10, 24, 0.38);
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease;
}

body:not([data-guide-page]) .category::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: 14px;
  opacity: 0.1;
  background:
    linear-gradient(115deg, rgba(155, 226, 255, 0.11), rgba(155, 226, 255, 0.01) 42%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle at 8% 50%, rgba(155, 226, 255, 0.08), rgba(155, 226, 255, 0) 38%);
  transition: opacity 0.22s ease;
}

body:not([data-guide-page]) .category::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22%;
  width: 16%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(187, 236, 255, 0.2), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  opacity: 0;
  transition: left 0.64s ease, opacity 0.4s ease;
}

body:not([data-guide-page]) .category-header {
  width: 100%;
  border: 0;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 14px;
  font-size: 1.18em;
  padding: 14px 16px 14px 18px;
  border-bottom: 1px solid rgba(129, 199, 132, 0.18);
  background: none;
  -webkit-text-fill-color: initial;
  color: #dbe58a;
  filter: none;
  animation: none;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

body:not([data-guide-page]) .category-header::after {
  content: '▸';
  flex: 0 0 auto;
  font-size: 0.86em;
  line-height: 1;
  color: rgba(147, 211, 255, 0.72);
  transform: translateY(1px);
  transition: color 0.2s ease, transform 0.2s ease;
}

body:not([data-guide-page]) .category:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 199, 132, 0.46);
  box-shadow: 0 10px 24px rgba(6, 10, 24, 0.5), 0 0 0 1px rgba(129, 199, 132, 0.16), 0 0 14px rgba(120, 207, 255, 0.14);
  background: rgba(52, 66, 108, 0.2);
}

body:not([data-guide-page]) .category:hover::before {
  opacity: 0.2;
}

body:not([data-guide-page]) .category:hover::after {
  left: 108%;
  opacity: 1;
}

body:not([data-guide-page]) .category:hover .category-header {
  color: #f0f6b0;
  letter-spacing: 0.035em;
}

body:not([data-guide-page]) .category:hover .category-header::after {
  color: rgba(200, 236, 255, 0.94);
  transform: translate(1px, 1px);
}

body:not([data-guide-page]) .category.open {
  border-color: rgba(100, 181, 246, 0.6);
  box-shadow: 0 12px 28px rgba(6, 10, 24, 0.56), 0 0 0 1px rgba(100, 181, 246, 0.24);
}

body:not([data-guide-page]) .category.open::after,
body:not([data-guide-page]) .category.open:hover::after {
  opacity: 0;
  left: -22%;
}

body:not([data-guide-page]) .category.open .category-header {
  color: #e8f5ff;
}

body:not([data-guide-page]) .category.open .category-header::after {
  content: '▾';
  color: rgba(200, 236, 255, 0.98);
  transform: translateY(1px);
}

body:not([data-guide-page]) .category-content {
  text-align: center;
  padding: 14px 16px;
}

body:not([data-guide-page]) .subcategory {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: none;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(168, 220, 255, 0.26);
  background: linear-gradient(145deg, rgba(182, 226, 255, 0.08), rgba(182, 226, 255, 0.02) 38%, rgba(14, 20, 38, 0.08) 100%);
  box-shadow: inset 0 1px 0 rgba(230, 245, 255, 0.12), 0 8px 20px rgba(8, 12, 24, 0.28);
  overflow: visible;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

body:not([data-guide-page]) .subcategory:hover {
  border-color: rgba(194, 233, 255, 0.42);
  background: linear-gradient(145deg, rgba(196, 236, 255, 0.12), rgba(196, 236, 255, 0.03) 40%, rgba(12, 18, 34, 0.1) 100%);
  box-shadow: inset 0 1px 0 rgba(240, 250, 255, 0.18), 0 10px 24px rgba(8, 12, 24, 0.36);
}

body:not([data-guide-page]) .subcategory-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: calc(100% - 4px);
  box-sizing: border-box;
  line-height: 1.24;
  text-align: center;
  color: #eef3fa;
  background:
    linear-gradient(172deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.07) 24%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(145deg, #697383 0%, #3b424f 44%, #1f242d 76%, #141820 100%);
  border: 1px solid rgba(205, 216, 232, 0.42);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(6, 8, 12, 0.55);
  padding: 6px 14px;
  margin-top: 2px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
  text-shadow: 0 1px 1px rgba(6, 10, 18, 0.78);
  transition: color 0.18s ease, transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

body:not([data-guide-page]) .subcategory-title:hover {
  color: #58f3ff;
  transform: translateY(-1px);
  border-color: rgba(224, 233, 245, 0.6);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.58), 0 0 14px rgba(163, 184, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(8, 12, 18, 0.68);
  text-shadow: 0 0 10px rgba(88, 243, 255, 0.62), 0 1px 1px rgba(0, 0, 0, 0.72);
  filter: brightness(1.06) saturate(0.9);
}

body:not([data-guide-page]) .subcategory-title.dmx-youtube-btn {
  color: #fff3f1;
  background:
    linear-gradient(172deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 24%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(145deg, #b43a37 0%, #851f25 46%, #55121b 78%, #2f0b14 100%);
  border-color: rgba(255, 192, 197, 0.52);
  box-shadow: 0 8px 20px rgba(36, 8, 12, 0.62), 0 0 12px rgba(255, 88, 88, 0.28), inset 0 1px 0 rgba(255, 230, 230, 0.24), inset 0 -1px 0 rgba(44, 9, 15, 0.72);
}

body:not([data-guide-page]) .subcategory-title.dmx-youtube-btn:hover {
  color: #58f3ff;
  border-color: rgba(255, 220, 220, 0.7);
  box-shadow: 0 10px 22px rgba(30, 6, 10, 0.72), 0 0 16px rgba(255, 102, 102, 0.42), inset 0 1px 0 rgba(255, 235, 235, 0.28), inset 0 -1px 0 rgba(44, 9, 15, 0.82);
  text-shadow: 0 0 10px rgba(88, 243, 255, 0.62), 0 1px 1px rgba(0, 0, 0, 0.72);
  filter: brightness(1.08) saturate(1.02);
}

body:not([data-guide-page]) .child-list {
  display: block;
  width: min(100%, 58ch);
  box-sizing: border-box;
  margin: 0 auto 10px auto;
  padding: 10px 14px 0 14px;
  text-align: center;
  text-wrap: balance;
  font-family: 'Sora', 'Inter', Arial, sans-serif;
  font-size: clamp(0.96rem, 0.26vw + 0.88rem, 1.06rem);
  font-weight: 500;
  letter-spacing: 0.006em;
  color: rgba(224, 233, 246, 0.88);
  line-height: 1.68;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

body:not([data-guide-page]) .child-list::before {
  content: "";
  display: block;
  width: clamp(86px, 20vw, 132px);
  height: 1px;
  margin: 0 auto 10px auto;
  background: linear-gradient(90deg, rgba(130, 186, 255, 0), rgba(130, 186, 255, 0.55), rgba(130, 186, 255, 0));
}

body:not([data-guide-page]) .subcategory:hover .child-list {
  color: rgba(235, 243, 255, 0.95);
}

body:not([data-guide-page]) .subcategory.search-hidden {
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  box-shadow: none;
  pointer-events: none;
  overflow: hidden;
}

body:not([data-guide-page]) #guide-featured-link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 64px;
  margin: 14px 0 0 0;
}

body:not([data-guide-page]) .guide-community-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}

body:not([data-guide-page]) .guide-community-btn {
  min-width: 198px;
  text-align: center;
  font-size: 0.9em;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(24, 26, 42, 0.5), inset 0 1px 0 rgba(245, 252, 255, 0.2);
  opacity: 0.94;
}

body:not([data-guide-page]) .guide-community-btn:hover {
  opacity: 1;
}

body:not([data-guide-page]) .guide-featured-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  font-size: 1.05em;
  line-height: 1;
  letter-spacing: 0.03em;
  padding: 14px 34px;
  margin: 0;
  box-shadow: 0 6px 20px rgba(100, 181, 246, 0.5);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body:not([data-guide-page]) .guide-featured-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -28%;
  width: 18%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(234, 249, 255, 0.45), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  opacity: 0;
  transition: left 0.68s ease, opacity 0.4s ease;
}

body:not([data-guide-page]) .guide-featured-btn:hover {
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 10px 28px rgba(100, 181, 246, 0.58), 0 0 14px rgba(241, 255, 142, 0.24);
  filter: saturate(1.06);
}

body:not([data-guide-page]) .guide-featured-btn:hover::after {
  left: 112%;
  opacity: 1;
}

body:not([data-guide-page]) .guide-featured-btn:active {
  transform: translateY(0) scale(0.99);
}

#info-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 20, 40, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

#info-modal-content {
  background: rgba(28, 37, 61, 0.94);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(100, 181, 246, 0.5);
  border: 1px solid rgba(100, 181, 246, 0.38);
  max-width: 96vw;
  max-height: 90vh;
  overflow: auto;
  padding: 30px 24px;
  color: #e0e0e0;
  position: relative;
}

#info-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  border: 0;
  background: transparent;
  min-width: 48px;
  min-height: 48px;
  font-size: 2.1em;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

#info-modal-close:hover {
  color: #9be2ff;
  transform: scale(1.06);
}

body:not([data-guide-page]) .category-header:focus-visible,
body:not([data-guide-page]) .subcategory-title:focus-visible,
body:not([data-guide-page]) .guide-featured-btn:focus-visible,
body:not([data-guide-page]) .theme-randomizer-btn:focus-visible,
body:not([data-guide-page]) .guide-language-select:focus-visible,
body[data-guide-page] .back-link:focus-visible,
body[data-guide-page] .gallery-image-clickable:focus-visible,
#info-modal-close:focus-visible {
  outline: 2px solid rgba(155, 226, 255, 0.95);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header-sub {
    animation: none !important;
  }

  body:not([data-guide-page]) .category,
  body:not([data-guide-page]) .category-header,
  body:not([data-guide-page]) .subcategory-title,
  body:not([data-guide-page]) .guide-featured-btn,
  body:not([data-guide-page]) .theme-randomizer-btn,
  #info-modal-close,
  body:not([data-guide-page]) .search-bar input {
    max-width: calc(100% - 4px);
    box-sizing: border-box;
  }

  .theme-randomizer-btn::after {
    transition: none !important;
  }

  .theme-randomizer-btn::before {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 700px) {
  body:not([data-guide-page]) #guide-featured-link {
    justify-content: center;
    margin-top: 10px;
  }

  body:not([data-guide-page]) .guide-community-links {
    align-items: center;
  }

  body:not([data-guide-page]) .guide-community-btn {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }

  body:not([data-guide-page]) .guide-utility-actions {
    justify-content: space-between;
    margin-top: 14px;
    padding: 0;
  }

  .guide-language-control {
    width: auto;
    justify-content: flex-start;
  }

  .guide-language-select {
    min-width: 124px;
  }

  body:not([data-guide-page]) .theme-randomizer-btn {
    font-size: 0.64em;
    padding: 6px 11px;
  }

  body:not([data-guide-page]) .primer-title-shell {
    max-width: 90vw;
    border-radius: 18px;
    padding: 10px 12px;
  }

  body:not([data-guide-page]) .primer-title-shell::before {
    border-radius: 18px;
  }
}

/* Final main-page category overrides (stability pass) */
body:not([data-guide-page]) .category {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(100, 181, 246, 0.3);
  background: rgba(43, 55, 92, 0.18);
  box-shadow: 0 8px 18px rgba(6, 10, 24, 0.38);
}

body:not([data-guide-page]) .category-header {
  width: 100%;
  border: 0;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  padding: 14px 16px 14px 18px;
  font-size: 1.18em;
  font-family: 'Orbitron', 'Inter', Arial, sans-serif;
  font-weight: 800;
  color: #dbe58a;
  background: none;
  -webkit-text-fill-color: initial;
  border-bottom: 1px solid rgba(129, 199, 132, 0.18);
  filter: none;
  animation: none;
}

body:not([data-guide-page]) .category-header::after {
  content: '▸';
  flex: 0 0 auto;
  font-size: 0.86em;
  line-height: 1;
  color: rgba(147, 211, 255, 0.72);
  transform: translateY(1px);
}

body:not([data-guide-page]) .category.open .category-header::after {
  content: '▾';
  color: rgba(200, 236, 255, 0.98);
}

body:not([data-guide-page]) .subcategory {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 14px 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(168, 220, 255, 0.26);
  background: linear-gradient(145deg, rgba(182, 226, 255, 0.08), rgba(182, 226, 255, 0.02) 38%, rgba(14, 20, 38, 0.08) 100%);
  box-shadow: inset 0 1px 0 rgba(230, 245, 255, 0.12), 0 8px 20px rgba(8, 12, 24, 0.28);
  overflow: visible;
}

body:not([data-guide-page]) .subcategory-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: calc(100% - 4px);
  box-sizing: border-box;
  line-height: 1.24;
  text-align: center;
  color: #eef3fa;
  background:
    linear-gradient(172deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.07) 24%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(145deg, #697383 0%, #3b424f 44%, #1f242d 76%, #141820 100%);
  border: 1px solid rgba(205, 216, 232, 0.42);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(6, 8, 12, 0.55);
  padding: 6px 14px;
  margin: 2px auto 8px auto;
  text-shadow: 0 1px 1px rgba(6, 10, 18, 0.78);
}

body:not([data-guide-page]) .subcategory-title:hover {
  color: #58f3ff;
  border-color: rgba(224, 233, 245, 0.6);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.58), 0 0 14px rgba(163, 184, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(8, 12, 18, 0.68);
  text-shadow: 0 0 10px rgba(88, 243, 255, 0.62), 0 1px 1px rgba(0, 0, 0, 0.72);
  filter: brightness(1.06) saturate(0.9);
}

body:not([data-guide-page]) .child-list {
  display: block;
  width: min(100%, 58ch);
  margin: 0 auto 10px auto;
  padding: 10px 14px 0 14px;
  text-align: center;
  text-wrap: balance;
  font-family: 'Sora', 'Inter', Arial, sans-serif;
  font-size: clamp(0.96rem, 0.26vw + 0.88rem, 1.06rem);
  font-weight: 500;
  letter-spacing: 0.006em;
  color: rgba(224, 233, 246, 0.88);
  line-height: 1.68;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

body:not([data-guide-page]) .child-list::before {
  content: "";
  display: block;
  width: clamp(86px, 20vw, 132px);
  height: 1px;
  margin: 0 auto 10px auto;
  background: linear-gradient(90deg, rgba(130, 186, 255, 0), rgba(130, 186, 255, 0.55), rgba(130, 186, 255, 0));
}

