/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  height: 100%;
  scroll-behavior: smooth;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles — 42tcg
   All values must trace back to a token in tokens.css — no hardcoded colors or sizes.
   ========================================================================== */

/* Hide x-cloak elements until Alpine initialises */
[x-cloak] {
  display: none !important;
}

.hidden-svg-filter {
  visibility: hidden;
  position: absolute;
}

.elfic-font {
  font-family: var(--font-elfic);
}

/* ----- BASE ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin-block: 0 var(--space-md);
  color: var(--color-text);
  letter-spacing: 0.05em;
}

h1 {
  font-size: var(--text-4xl);
}
h2 {
  font-size: var(--text-3xl);
}
h3 {
  font-size: var(--text-xl);
}
h4 {
  font-size: var(--text-lg);
}

p {
  margin-block: 0 var(--space-md);
}

a {
  color: var(--color-text-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ----- LAYOUT ----------------------------------------------- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

main#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.layout-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  border: 12px solid var(--color-bg);
  outline: 1px solid var(--color-border-gold);
  outline-offset: -12px;
  box-shadow: inset 0 0 100px rgb(0 0 0 / 80%);
  z-index: 1000;
  background: transparent;
}

.layout-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--color-border-gold);
  opacity: 0.3;
}

.corner-decoration {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 2px solid var(--color-border-gold);
  z-index: 1001;
}

.corner-tl {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
}
.corner-tr {
  top: 4px;
  right: 4px;
  border-left: none;
  border-bottom: none;
}
.corner-bl {
  bottom: 4px;
  left: 4px;
  border-right: none;
  border-top: none;
}
.corner-br {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
}

@media (max-width: 991px) {
  .layout-frame,
  .corner-decoration {
    display: none;
  }
}

/* ----- FOCUS ------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ----- DECORATIVE DIVIDER ----------------------------------- */
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border-gold), transparent);
  margin-block: var(--space-2xl);
  opacity: 0.5;
}

/* ==========================================================================
   SKIP LINK
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  top: var(--space-md);
}

/* ==========================================================================
   UPDATE BANNER
   ========================================================================== */
.update-banner {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-surface-raised);
  color: var(--color-accent);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-sm);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  z-index: 999;
  box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-md);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.site-nav__logo img {
  height: 48px;
  width: auto;
}

.site-nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}

.site-nav__links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-3xl);
  position: relative;
  min-height: 100%;
}

.hero__logo {
  max-width: 200px;
  height: auto;
  margin-inline: auto;
  display: block;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(var(--shadow-glow));
}

.hero__title {
  font-size: var(--text-4xl);
  color: var(--color-accent);
  text-shadow: 0 0 24px rgb(245 158 11 / 40%);
  margin-bottom: var(--space-sm);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.section-heading {
  text-align: center;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-2xl);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--color-border-gold);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding-block: var(--space-3xl);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-border-gold);
}

.service-card__icon {
  font-size: var(--text-4xl);
  display: block;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.service-card__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   LOCATION
   ========================================================================== */
.location {
  padding-block: var(--space-3xl);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .location-grid {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.location-address {
  font-family: var(--font-sans);
}

.location-address__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.15em;
}

.location-address__street {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  letter-spacing: normal;
}

.location-address__city {
  font-family: var(--font-sans);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  letter-spacing: normal;
}

.location-map iframe {
  width: 100%;
  height: 360px;
  border: 2px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  display: block;
}

.location-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
  .location-chips {
    grid-template-columns: repeat(4, 1fr);
  }
}

.chip {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.chip__icon {
  font-size: var(--text-xl);
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.chip__text {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SOCIAL
   ========================================================================== */
.social {
  padding-block: var(--space-3xl);
  text-align: center;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.social-btn:hover {
  border-color: var(--color-border-gold);
  color: var(--color-accent);
  text-decoration: none;
  background: var(--color-bg-surface-raised);
}

.social-btn i {
  font-size: var(--text-lg);
}

.social-handle {
  margin-top: var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.footer-address {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.footer-legal {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-disabled);
  margin-bottom: var(--space-sm);
}

.footer-legal a {
  color: var(--color-text-disabled);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--color-text-secondary);
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-disabled);
  margin-bottom: 0;
}

/* ==========================================================================
   PURE.CSS OVERRIDES
   ========================================================================== */
.pure-button {
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  padding: var(--space-sm) var(--space-md);
  transition: background-color 0.15s ease;
}

.pure-button:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-text);
  text-decoration: none;
}

/* ==========================================================================
   FEEDBACK
   ========================================================================== */
.alert {
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
}

.alert-critical {
  background: var(--color-critical-bg);
  color: var(--color-critical);
  border: 1px solid var(--color-critical);
}

.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

/* ==========================================================================
   SPA — PAGES
   ========================================================================== */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.page-section {
  flex: 1;
  padding-block: var(--space-3xl);
  overflow-y: auto;
}

/* Page fade-in transition */
.page-enter {
  opacity: 0;
}

.page-enter-start {
  opacity: 0;
  transform: translateY(8px);
}

.page-enter-end {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* ==========================================================================
   HERO CTA BUTTONS
   ========================================================================== */
.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-border-gold);
}

.btn-secondary:hover {
  background: var(--color-bg-surface);
}

/* ==========================================================================
   HOME PAGE — GRID LAYOUT
   ========================================================================== */
.home-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  padding: 40px;
  gap: 20px;
  background: radial-gradient(circle at center, #1a1525 0%, #0d0b0f 100%);
  box-sizing: border-box;
}

.home-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture-grain);
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 991px) {
  .home-layout {
    overflow-y: auto;
    height: auto;
    padding: 16px;
    gap: 16px;
  }
  .layout-frame {
    display: none; /* Hide decorative frame on mobile to save space and avoid layout issues */
  }
}

.home-middle {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex: 1;
  min-height: 0; /* Important for flex children scrolling */
}

@media (max-width: 991px) {
  .home-middle {
    flex-direction: column;
    gap: 16px;
    flex: none;
  }
}

@media (min-width: 992px) and (max-height: 900px) {
  .home-layout {
    padding: 24px;
    gap: 12px;
  }

  .home-middle {
    gap: 12px;
  }

  .home-sidebar-content {
    padding: 10px;
    gap: 6px;
  }

  .sidebar-logo {
    max-width: 92px;
  }

  .sidebar-tagline {
    font-size: 0.68rem;
    margin-top: 6px;
  }

  .sidebar-divider {
    height: 14px;
    margin-block: 2px;
  }

  .sidebar-section.sidebar-location,
  .sidebar-section.sidebar-social {
    margin-block: 2px;
  }

  .sidebar-section.sidebar-social {
    padding-bottom: var(--space-md);
  }

  .sidebar-heading {
    font-size: 0.7rem;
    margin-bottom: 4px;
    letter-spacing: 0.1em;
    gap: 4px;
  }

  .sidebar-heading::before,
  .sidebar-heading::after {
    font-size: 0.6rem;
  }

  .sidebar-info-row {
    gap: 6px;
  }

  .sidebar-fantasy-card {
    padding: 4px 6px;
  }

  .sidebar-fantasy-title {
    font-size: 0.62rem;
    margin-bottom: 3px;
    gap: 4px;
  }

  .sidebar-location-lines {
    font-size: 0.72rem;
    gap: 1px;
    letter-spacing: 0.02em;
  }

  .sidebar-location-lines p {
    line-height: 1.15;
  }

  .sidebar-hours-row {
    gap: 5px;
    padding: 2px 0;
    font-size: 0.66rem;
  }

  .sidebar-hours-row i {
    font-size: 0.6rem;
  }

  .sidebar-hours-row.sidebar-hours-note {
    font-size: 0.6rem;
  }

  .sidebar-social-icons,
  .sidebar-contact-icons {
    gap: 2px;
    padding: 3px;
  }

  .sidebar-social-icons a,
  .sidebar-contact-icons a {
    min-width: 34px;
    padding: 2px 5px;
  }

  .sidebar-contact-icons {
    margin-top: 2px;
  }

  .sidebar-service-links {
    margin-top: 6px;
    padding: 6px 6px 7px;
  }

  .sidebar-service-heading {
    font-size: 0.64rem;
    margin-bottom: 5px;
  }

  .sidebar-service-icons a {
    min-width: 58px;
    padding: 4px 6px;
  }

  .sidebar-service-icons a i {
    font-size: 0.82rem;
  }

  .sidebar-service-icons .icon-mini-label {
    font-size: 0.46rem;
    margin-top: 2px;
  }

  .icon-mini-label {
    margin-top: 1px;
    font-size: 0.42rem;
    letter-spacing: 0.01em;
  }
}

.home-sidebar {
  flex-basis: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background-color: #000;
  border: 1px solid var(--color-border-gold);
  box-shadow: 0 10px 30px rgb(0 0 0 / 80%);
  position: relative;
  z-index: 20;
  overflow: visible;
}

.home-sidebar::-webkit-scrollbar {
  width: 6px;
}

.home-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.home-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--color-border-gold);
  border-radius: 10px;
}

.home-sidebar-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-sm);
  min-height: 100%;
}

.home-sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture-grain);
  opacity: 0.03;
  pointer-events: none;
  z-index: 10;
}

.home-main {
  flex: 1.5;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--color-border-gold);
  box-shadow: 0 10px 30px rgb(0 0 0 / 80%);
  position: relative;
  z-index: 2;
  min-height: 300px;
}

.home-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  max-width: 800px;
}

.home-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Fantasy / Parchment style filter with hand-drawn ink displacement */
  filter: sepia(0.5) hue-rotate(-15deg) saturate(1.2) contrast(1.1) brightness(0.9)
    url('#hand-drawn-ink');
  transition: filter 0.5s ease;
  mix-blend-mode: multiply; /* Blend with parent background/textures */
}

.home-map-iframe:hover {
  filter: sepia(0.2) hue-rotate(0deg) saturate(1) contrast(1.2) brightness(1);
  mix-blend-mode: multiply; /* Keep blending on hover to avoid white map */
}

@media (max-width: 991px) {
  .home-sidebar {
    width: 100%;
    flex-basis: auto;
    overflow-y: visible;
  }
  .sidebar-section.sidebar-social {
    background-image: none; /* Hide background art on mobile to save vertical space */
    padding-bottom: 0;
    flex: none;
    justify-content: flex-start;
  }
  .home-sidebar-content {
    padding-bottom: var(--space-lg); /* Reset padding on mobile */
    min-height: auto;
  }
  .home-main {
    height: 62vh;
    min-height: 360px;
  }
  .bottom-chips {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .about-content {
    font-size: 0.8rem;
  }

  .about-summary-hint::before {
    content: 'Apri';
  }

  .about-details[open] .about-summary-hint::before {
    content: 'Chiudi';
  }

  /* Responsive Construction Overlay */
  .construction-overlay {
    padding: var(--space-md);
  }

  .construction-modal {
    padding: var(--space-xl) var(--space-md);
    max-height: 95vh;
    overflow-y: auto;
    width: 90%;
    margin-inline: auto;
  }

  .wip-container {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .wip-text-content {
    text-align: center;
    width: 100%;
  }

  .wip-status {
    margin-right: -0.2em; /* Offset letter-spacing of last character for perfect centering */
  }

  .sidebar-logo {
    max-width: clamp(80px, 20vw, 100px);
  }

  .construction-modal .sidebar-heading {
    font-size: clamp(var(--text-lg), 5vw, var(--text-xl));
  }

  .construction-modal .wip-icon {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .construction-modal .corner-decoration {
    display: block;
    width: 30px;
    height: 30px;
  }

  .construction-legal {
    margin-top: var(--space-xl);
    font-size: 10px;
    word-break: break-word;
  }
}

.home-bottom-bar {
  flex-shrink: 0;
}

.bottom-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.bottom-chip {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0; /* Sharp corners for more "stone/relic" feel */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  background: var(--bg-magical);
  border: var(--border-ornate);
  box-shadow: 0 4px 20px rgb(0 0 0 / 80%);
  position: relative;
  min-height: 70px;
  color: var(--color-text);
  overflow: hidden;
}

.bottom-chip::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-chip i {
  color: var(--color-accent);
  font-size: var(--text-xl);
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.4));
}

.bottom-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture-grain);
  opacity: 0.03;
  pointer-events: none;
}

.bottom-chip:hover {
  transform: translateY(-2px);
  box-shadow:
    0 15px 40px rgb(0 0 0 / 60%),
    0 0 10px var(--color-border-gold);
}

.about-section {
  margin-top: var(--space-md);
}

.about-section-hero {
  margin-top: var(--space-sm);
}

.sidebar-social .about-section {
  margin-top: 6px;
}

.about-details {
  background: linear-gradient(to bottom, rgb(12 9 18 / 95%), rgb(20 14 31 / 95%));
  border: 1px solid rgb(212 175 55 / 36%);
  box-shadow:
    inset 0 0 12px rgb(124 58 237 / 18%),
    0 8px 18px rgb(0 0 0 / 50%);
}

.about-details-compact {
  max-width: 260px;
  margin-inline: auto;
}

.about-details-static {
  padding: 8px 9px 10px;
}

.about-static-title {
  margin: 0;
  text-align: center;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-shadow: 0 0 8px rgb(245 158 11 / 30%);
}

.about-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  color: var(--color-accent);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  border: 1px solid rgb(212 175 55 / 32%);
  border-radius: var(--radius-sm);
  background: linear-gradient(to bottom, rgb(245 158 11 / 12%), rgb(245 158 11 / 4%));
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.about-summary::-webkit-details-marker {
  display: none;
}

.about-summary i {
  font-size: 0.9rem;
  filter: drop-shadow(0 0 6px rgb(245 158 11 / 45%));
}

.about-summary:hover,
.about-summary:focus-visible {
  background: linear-gradient(to bottom, rgb(245 158 11 / 18%), rgb(245 158 11 / 8%));
  border-color: rgb(245 158 11 / 52%);
}

.about-summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.about-summary-hint {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: rgb(0 0 0 / 35%);
  border: 1px solid rgb(212 175 55 / 25%);
  border-radius: 999px;
  padding: 2px 8px;
}

.about-summary-chevron {
  font-size: 0.92rem;
  color: var(--color-accent);
}

.about-content {
  padding: 10px 12px 12px;
  color: var(--color-text-secondary);
  font-size: 0.86rem;
}

.about-content p {
  margin: 0 0 var(--space-sm);
}

.about-content p:last-of-type {
  margin-bottom: var(--space-md);
}

.about-details-compact .about-summary {
  font-size: 0.66rem;
  padding: 7px 9px;
  letter-spacing: 0.07em;
}

.about-details-compact .about-summary-hint {
  font-size: 0.56rem;
  padding: 1px 6px;
}

.about-details-compact .about-summary-chevron {
  font-size: 0.78rem;
}

.about-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(2px);
}

.about-modal {
  width: min(92vw, 360px);
  max-height: min(82vh, 620px);
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgb(212 175 55 / 55%);
  background:
    radial-gradient(circle at 20% 15%, rgb(124 58 237 / 18%), transparent 55%),
    linear-gradient(to bottom, rgb(10 8 16 / 98%), rgb(21 14 35 / 96%));
  box-shadow:
    0 22px 50px rgb(0 0 0 / 75%),
    inset 0 0 18px rgb(124 58 237 / 20%),
    0 0 24px rgb(245 158 11 / 20%);
  position: relative;
}

.about-modal::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgb(212 175 55 / 22%);
  border-radius: calc(var(--radius-md) - 2px);
  pointer-events: none;
}

.about-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 0;
}

.about-modal .about-static-title {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 10px rgb(245 158 11 / 42%),
    0 0 16px rgb(124 58 237 / 25%);
}

.about-modal-close {
  border: 1px solid rgb(212 175 55 / 35%);
  background: rgb(245 158 11 / 10%);
  color: var(--color-accent);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.about-modal-close:hover,
.about-modal-close:focus-visible {
  color: var(--color-text);
  border-color: rgb(245 158 11 / 52%);
  background: rgb(245 158 11 / 16%);
}

.about-modal-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.about-modal .about-content {
  padding: 10px 14px 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgb(241 236 227 / 96%);
}

.about-modal .about-content p {
  margin-bottom: 10px;
}

.about-modal .about-content p:last-of-type {
  margin-bottom: 14px;
}

.about-modal .about-cta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 7px 14px;
}

@media (max-width: 640px) {
  .about-modal .about-content {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

.about-details-compact .about-content {
  font-size: 0.74rem;
  line-height: 1.38;
  padding: 8px 9px 9px;
}

.about-details-static .about-content {
  padding: 7px 2px 2px;
}

.about-details-compact .about-content p:last-of-type {
  margin-bottom: var(--space-sm);
}

.about-details-compact .about-cta {
  font-size: 0.64rem;
  padding: 5px 10px;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border-gold);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--color-accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: linear-gradient(to bottom, rgb(18 12 28 / 95%), rgb(35 23 54 / 95%));
}

.about-cta:hover,
.about-cta:focus-visible {
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 0 12px rgb(245 158 11 / 28%);
}

.about-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .about-details > .about-content {
    display: block;
  }
}

.sidebar-section.sidebar-hero {
  text-align: center;
  margin-bottom: var(--space-sm);
  padding-top: var(--space-xs);
}

.sidebar-section.sidebar-services {
  margin-block: var(--space-md);
}

.sidebar-section.sidebar-location {
  margin-block: var(--space-xs);
}

.sidebar-section.sidebar-social {
  margin-block: var(--space-xs);
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image:
    linear-gradient(
      to bottom,
      #000 0%,
      rgb(0 0 0 / 92%) 10%,
      rgb(0 0 0 / 55%) 22%,
      rgb(0 0 0 / 0%) 40%
    ),
    url('../img/tower.png');
  background-position:
    top center,
    top center;
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    100% auto;
  padding-bottom: var(--space-lg);
}

.sidebar-logo {
  max-width: 120px;
  margin-inline: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgb(124 58 237 / 60%));
}

.sidebar-tagline {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-top: var(--space-md);
  text-align: center;
  text-shadow: 0 0 10px var(--color-accent);
}

/* Sidebar Services */
.sidebar-divider {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: var(--space-2xs);
}

.sidebar-divider::before {
  content: '';
  position: absolute;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-gold), transparent);
  opacity: 0.8;
}

.divider-diamond {
  width: 12px;
  height: 12px;
  background: var(--color-bg-sidebar);
  border: 1px solid var(--color-border-gold);
  transform: rotate(45deg);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--color-border-gold);
}

.divider-diamond::after {
  content: '';
  width: 2px;
  height: 2px;
  background: var(--color-border-gold);
}

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

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar-nav-list a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.sidebar-nav-list a:hover {
  color: var(--color-accent);
}

.sidebar-services-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.sidebar-services-bottom {
  display: flex;
  justify-content: center;
}

.sidebar-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: 0.05em;
  width: 100%;
  transition: transform 0.2s ease;
  cursor: default;
}

.sidebar-service-item:hover {
  transform: scale(1.05);
}

/* Under Construction Overlay */
.construction-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 15, 0.6); /* Reduced from 0.85 to make it less opaque */
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--space-lg);
}

.construction-modal {
  position: relative;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-gold);
  padding: var(--space-2xl) var(--space-xl);
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(var(--color-accent-rgb), 0.2);
}

.construction-modal .wip-container {
  border: none;
  background: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.construction-modal .wip-icon {
  font-size: 3rem;
}

.construction-modal .sidebar-heading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.construction-modal .wip-status {
  font-size: var(--text-lg);
}

.construction-subtext {
  font-family: var(--font-sans);
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
  font-style: italic;
}

.construction-legal {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.2);
  font-size: var(--text-xs);
  color: var(--color-text-disabled);
  font-family: var(--font-sans);
  line-height: 1.5;
}

.construction-legal p {
  margin: 0;
}

.construction-legal a {
  color: var(--color-accent);
  text-decoration: none;
}

.construction-legal a:hover {
  text-decoration: underline;
}

/* WIP Section */
.sidebar-wip {
  padding: var(--space-md) 0;
}

.wip-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  border: 1px dashed var(--color-border-gold);
  padding: var(--space-md);
  background: rgba(var(--color-accent-rgb), 0.05);
  border-radius: 4px;
}

.wip-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  filter: drop-shadow(0 0 5px var(--color-accent));
  animation: hammer-wiggle 2s infinite ease-in-out;
}

@keyframes hammer-wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wip-icon {
    animation: none;
  }
}

.wip-text-content {
  text-align: left;
}

.sidebar-wip .sidebar-heading {
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.wip-status {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--color-accent);
  letter-spacing: 0.2em;
  margin: 0;
  text-shadow: 0 0 8px var(--color-accent);
}

.sidebar-service-item.row-layout {
  flex-direction: row;
  font-size: 0.8rem;
  gap: var(--space-md);
  justify-content: center;
}

.sidebar-service-item .icon-wrapper {
  border: 1px solid var(--color-border-gold);
  border-radius: 50%;
  padding: var(--space-2xs);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #241d34 0%, #0d0b0f 100%);
  box-shadow:
    0 0 15px rgb(124 58 237 / 40%),
    inset 0 0 15px rgb(124 58 237 / 30%);
  position: relative;
  flex-shrink: 0;
}

.sidebar-service-item .icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--color-border-gold);
  border-radius: 50%;
  opacity: 0.5;
}

.sidebar-service-item i {
  font-size: var(--text-base);
  color: var(--color-primary);
}

.sidebar-service-item img {
  width: 20px;
  height: auto;
}

/* Sidebar Location */
.sidebar-heading {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-accent);
  letter-spacing: 0.14em;
  margin-bottom: var(--space-sm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.sidebar-heading::before,
.sidebar-heading::after {
  content: '◈';
  font-size: 0.7rem;
  color: var(--color-primary);
  text-shadow: 0 0 5px var(--color-primary);
}

.sidebar-heading-social {
  margin-top: var(--space-sm);
  color: var(--color-accent);
  text-shadow: 0 0 8px rgb(245 158 11 / 35%);
  padding: 4px 8px;
  border: 1px solid rgb(212 175 55 / 32%);
  border-radius: var(--radius-sm);
  background: linear-gradient(to bottom, rgb(10 8 14 / 82%), rgb(28 19 45 / 62%));
  box-shadow:
    inset 0 0 10px rgb(0 0 0 / 38%),
    0 0 10px rgb(124 58 237 / 20%);
  backdrop-filter: blur(2px);
}

.sidebar-divider-mini {
  margin-top: var(--space-sm);
  margin-bottom: 2px;
  height: 12px;
}

.sidebar-info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.sidebar-fantasy-card {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgb(212 175 55 / 40%);
  border-radius: var(--radius-sm);
  background: linear-gradient(to bottom, rgb(10 8 14 / 88%), rgb(28 19 45 / 72%));
  box-shadow:
    inset 0 0 8px rgb(0 0 0 / 45%),
    0 0 10px rgb(124 58 237 / 18%);
}

.sidebar-fantasy-title {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-shadow: 0 0 6px rgb(245 158 11 / 35%);
}

.sidebar-fantasy-title i {
  font-size: 0.72rem;
}

.sidebar-location-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: var(--font-elfic);
  text-align: center;
  letter-spacing: 0.03em;
}

.sidebar-location-lines p {
  margin: 0;
  line-height: 1.2;
}

.sidebar-location-board {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-color: rgb(245 158 11 / 55%);
  background:
    radial-gradient(circle at 50% 0%, rgb(245 158 11 / 12%), transparent 48%),
    linear-gradient(to bottom, rgb(14 10 20 / 96%), rgb(24 17 37 / 88%));
  box-shadow:
    inset 0 0 10px rgb(245 158 11 / 14%),
    0 0 14px rgb(245 158 11 / 16%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sidebar-location-board:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 12px rgb(245 158 11 / 22%),
    0 0 18px rgb(245 158 11 / 26%);
}

.sidebar-location-board:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.sidebar-location-board::before {
  content: '✦ ✧ ✦';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  color: rgb(245 158 11 / 68%);
  text-shadow: 0 0 8px rgb(245 158 11 / 35%);
  pointer-events: none;
}

.sidebar-location-board .sidebar-fantasy-title {
  margin-top: 8px;
}

.sidebar-location-board .sidebar-fantasy-title i {
  filter: drop-shadow(0 0 6px rgb(245 158 11 / 42%));
}

.sidebar-location-lines p:first-child {
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  color: rgb(245 158 11 / 94%);
  text-transform: uppercase;
}

.sidebar-location-lines p:nth-child(2) {
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-shadow: 0 0 8px rgb(124 58 237 / 30%);
}

.sidebar-location-lines p:nth-child(3) {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
}

@media (max-width: 991px) {
  .sidebar-location-board::before {
    font-size: 0.46rem;
    letter-spacing: 0.14em;
  }

  .sidebar-location-board .sidebar-fantasy-title {
    margin-top: 6px;
  }

  .sidebar-location-lines p:first-child {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .sidebar-location-lines p:nth-child(2) {
    font-size: 0.84rem;
  }

  .sidebar-location-lines p:nth-child(3) {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }
}

.sidebar-hours-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-align: center;
}

.sidebar-hours-row + .sidebar-hours-row {
  border-top: 1px solid rgb(212 175 55 / 18%);
}

.sidebar-hours-row i {
  color: var(--color-accent);
  text-shadow: 0 0 6px rgb(245 158 11 / 45%);
  font-size: 0.72rem;
}

.sidebar-hours-row.sidebar-hours-note {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

@media (max-width: 991px) {
  .sidebar-info-row {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Social */
.sidebar-social-icons,
.sidebar-contact-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  background:
    linear-gradient(to bottom, rgb(245 158 11 / 8%), rgb(245 158 11 / 2%)),
    linear-gradient(to bottom, rgb(7 5 11 / 88%), rgb(17 12 25 / 82%));
  border: 1px solid rgb(212 175 55 / 40%);
  border-radius: var(--radius-sm);
  padding: 4px;
  backdrop-filter: blur(2px);
  box-shadow:
    inset 0 0 10px rgb(0 0 0 / 42%),
    0 0 10px rgb(0 0 0 / 30%);
}

.sidebar-social-icons,
.sidebar-contact-icons {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.sidebar-social-icons a,
.sidebar-contact-icons a {
  color: var(--color-text-secondary);
  background: linear-gradient(to bottom, rgb(39 25 62 / 68%), rgb(23 16 38 / 68%));
  border: 1px solid rgb(245 158 11 / 24%);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  line-height: 1;
}

.sidebar-social-icons a i,
.sidebar-contact-icons a i {
  font-size: 0.96rem;
  color: var(--color-accent);
  text-shadow: 0 0 6px rgb(245 158 11 / 38%);
}

@media (min-width: 768px) {
  .sidebar-social-icons a i,
  .sidebar-contact-icons a i {
    font-size: 1.1rem;
  }
}

.sidebar-social-icons a:hover,
.sidebar-contact-icons a:hover {
  color: var(--color-text);
  background: linear-gradient(to bottom, rgb(58 38 93 / 82%), rgb(33 22 56 / 82%));
  box-shadow:
    0 0 8px var(--color-primary),
    0 0 10px rgb(245 158 11 / 20%);
}

.sidebar-contact-icons {
  margin-top: 6px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.sidebar-phone-links {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.sidebar-phone-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgb(245 158 11 / 38%);
  background: linear-gradient(to bottom, rgb(39 25 62 / 70%), rgb(23 16 38 / 70%));
  color: var(--color-accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow:
    inset 0 0 8px rgb(245 158 11 / 10%),
    0 0 10px rgb(0 0 0 / 22%);
}

.sidebar-phone-links a i {
  font-size: 0.82rem;
}

.sidebar-phone-links a:hover,
.sidebar-phone-links a:focus-visible {
  color: var(--color-text);
  text-decoration: none;
  box-shadow:
    0 0 10px rgb(124 58 237 / 25%),
    0 0 12px rgb(245 158 11 / 20%);
}

@media (min-width: 768px) {
  .sidebar-phone-links a {
    font-size: 0.78rem;
  }
}

.sidebar-service-links {
  margin-top: 8px;
  padding: 8px 8px 9px;
  border: 1px solid rgb(212 175 55 / 30%);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(to bottom, rgb(245 158 11 / 10%), rgb(245 158 11 / 2%)),
    linear-gradient(to bottom, rgb(10 8 14 / 88%), rgb(28 19 45 / 72%));
  box-shadow:
    inset 0 0 10px rgb(245 158 11 / 10%),
    0 6px 14px rgb(0 0 0 / 38%);
}

.sidebar-service-heading {
  margin: 0 0 7px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-shadow: 0 0 8px rgb(245 158 11 / 35%);
}

.sidebar-service-heading::before,
.sidebar-service-heading::after {
  content: '✦';
  font-size: 0.6rem;
  margin-inline: 6px;
  color: rgb(245 158 11 / 76%);
}

.sidebar-service-icons {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.sidebar-service-icons a {
  color: var(--color-text);
  background: linear-gradient(to bottom, rgb(91 33 182 / 20%), rgb(91 33 182 / 9%));
  border: 1px solid rgb(212 175 55 / 28%);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.sidebar-service-icons a i {
  font-size: 0.95rem;
  color: var(--color-accent);
  filter: drop-shadow(0 0 5px rgb(245 158 11 / 30%));
}

.sidebar-service-icons .icon-mini-label {
  margin-top: 3px;
  font-size: 0.53rem;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.sidebar-service-icons a:hover,
.sidebar-service-icons a:focus-visible {
  color: var(--color-accent);
  border-color: rgb(245 158 11 / 58%);
  box-shadow:
    0 0 10px rgb(124 58 237 / 28%),
    0 0 10px rgb(245 158 11 / 20%);
  transform: translateY(-1px);
}

.icon-mini-label {
  margin-top: 2px;
  font-size: 0.48rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgb(13 11 15 / 75%);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.faq-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: var(--space-xl);
  border: 1px solid var(--color-border-gold);
  background: linear-gradient(to bottom, rgb(12 9 18 / 98%), rgb(18 13 27 / 98%));
  box-shadow:
    0 0 45px rgb(0 0 0 / 80%),
    0 0 20px rgb(245 158 11 / 20%);
}

.faq-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(212 175 55 / 45%);
  border-radius: 50%;
  background: rgb(0 0 0 / 60%);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.faq-close-button:hover,
.faq-close-button:focus-visible {
  color: var(--color-text);
  box-shadow: 0 0 10px rgb(245 158 11 / 35%);
}

.faq-close-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.faq-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
  letter-spacing: 0.08em;
}

.faq-list {
  margin: 0;
}

.faq-list dt {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 0.95rem;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: var(--space-2xs) 0 0;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.faq-suggested-title {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: var(--text-base);
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

.faq-suggested-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
}

.faq-suggested-list li {
  margin-bottom: var(--space-2xs);
}

/* Home Main (Map) */
.home-main {
  grid-area: main;
  position: relative;
  background: var(--color-parchment); /* Change to parchment color to blend with multiply iframe */
  border: 1px solid var(--color-border-gold);
  box-shadow:
    0 0 20px rgb(0 0 0 / 50%),
    inset 0 0 20px rgb(91 33 182 / 20%);
}

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-container::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--texture-grain);
  opacity: 0.15;
  mix-blend-mode: overlay;
  z-index: 5;
}

.map-container::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 100px rgba(0, 0, 0, 0.4),
    inset 0 0 40px rgba(168, 138, 94, 0.2);
  z-index: 6;
  border: 20px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cpath d='M10,10 Q30,5 50,12 T90,8 T130,15 T140,40 T145,80 T135,120 T110,140 T70,135 T30,145 T10,130 T5,90 T12,50 T10,10' fill='none' stroke='%23a88a5e' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M20,20 Q40,15 60,22 T100,18 T140,25' fill='none' stroke='%23a88a5e' stroke-width='1' opacity='0.5'/%3E%3C/svg%3E")
    40 stretch;
}

.map-banner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.map-banner-img {
  max-width: 260px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
}

.map-banner-fallback {
  background: var(--color-parchment);
  color: var(--ref-black-deep);
  padding: var(--space-xs) var(--space-lg);
  font-family: var(--font-display);
  font-weight: bold;
  border: 1px solid var(--color-parchment-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.map-compass {
  position: absolute;
  top: 60px;
  right: 60px;
  color: var(--color-accent);
  z-index: 10;
  font-family: var(--font-display);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
  animation: compass-float 4s ease-in-out infinite;
}

@keyframes compass-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.compass-n {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.compass-n i {
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.9;
}

.compass-n span {
  font-size: var(--text-lg);
  font-weight: bold;
  margin-top: -10px;
}

.map-marker-overlay {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.marker-inn {
  background: linear-gradient(to bottom, rgb(20 14 30 / 96%), rgb(38 26 57 / 96%));
  border: 2px solid rgb(212 175 55 / 55%);
  padding: var(--space-sm);
  color: var(--color-accent);
  box-shadow:
    0 8px 16px rgb(0 0 0 / 60%),
    inset 0 0 10px rgb(0 0 0 / 45%);
  border-radius: 50%; /* Make it circular for a seal/coin look */
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-inn::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: #1a0f0a; /* Iron chain/hanger */
}

.inn-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.marker-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgb(124 58 237 / 35%));
}

.map-nav-cta {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--color-border-gold);
  border-radius: 999px;
  background: linear-gradient(to bottom, rgb(26 16 10 / 96%), rgb(61 43 31 / 96%));
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 6px 14px rgb(0 0 0 / 55%),
    0 0 10px rgb(245 158 11 / 25%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.map-nav-cta i {
  font-size: 1rem;
}

.map-nav-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.1;
}

.map-nav-main {
  font-size: 0.8rem;
}

.map-nav-helper {
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  color: var(--color-text-secondary);
}

.map-nav-cta:hover,
.map-nav-cta:focus-visible {
  color: var(--color-text);
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    0 10px 20px rgb(0 0 0 / 60%),
    0 0 16px rgb(245 158 11 / 35%);
}

.map-nav-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.faq-fab {
  position: fixed;
  right: clamp(10px, 2vw, 24px);
  bottom: clamp(20px, 4vw, 36px);
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: clamp(5px, 1vw, 8px);
  padding: clamp(7px, 1.2vw, 10px) clamp(10px, 1.8vw, 14px);
  border: 1px solid var(--color-border-gold);
  border-radius: 999px;
  background: linear-gradient(to bottom, rgb(20 15 32 / 94%), rgb(34 26 52 / 94%));
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.5vw, 0.82rem);
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow:
    0 5px 12px rgb(0 0 0 / 50%),
    0 0 8px rgb(124 58 237 / 20%);
}

.faq-fab i {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
}

.faq-fab:hover,
.faq-fab:focus-visible {
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow:
    0 8px 16px rgb(0 0 0 / 56%),
    0 0 12px rgb(245 158 11 / 24%);
}

.review-fab {
  position: fixed;
  right: clamp(10px, 2vw, 24px);
  bottom: clamp(74px, 10vw, 88px);
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: clamp(6px, 1vw, 9px) clamp(9px, 1.4vw, 12px);
  border: 1px solid rgb(212 175 55 / 42%);
  border-radius: 999px;
  background: linear-gradient(to bottom, rgb(28 22 14 / 94%), rgb(43 33 19 / 94%));
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(0.64rem, 1.2vw, 0.76rem);
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow:
    0 5px 12px rgb(0 0 0 / 50%),
    0 0 8px rgb(245 158 11 / 18%);
}

.review-fab:hover,
.review-fab:focus-visible {
  color: var(--color-text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 8px 16px rgb(0 0 0 / 56%),
    0 0 12px rgb(245 158 11 / 24%);
}

.review-fab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.faq-fab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Fantasy / Parchment style filter with hand-drawn ink displacement */
  filter: sepia(0.5) hue-rotate(-15deg) saturate(1.2) contrast(1.1) brightness(0.9)
    url('#hand-drawn-ink');
  transition: filter 0.5s ease;
  mix-blend-mode: multiply; /* Blend with parent background/textures */
}

.home-map-iframe:hover {
  filter: sepia(0.2) hue-rotate(0deg) saturate(1) contrast(1.2) brightness(1);
  mix-blend-mode: multiply; /* Keep blending on hover to avoid white map */
}

/* Bottom Bar */
.home-bottom-bar {
  grid-area: bottom;
  background: transparent;
  padding-block: var(--space-sm);
}

.chip-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  margin: 0;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-shadow: 0 0 8px rgba(245, 240, 255, 0.2);
}

.chip-sub {
  font-size: var(--text-xs);
  margin: 0;
  color: var(--color-text-secondary);
}

.legal-footer {
  margin-top: var(--space-sm);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-disabled);
  background: linear-gradient(to bottom, transparent, rgba(91, 33, 182, 0.05));
  position: relative;
}

.legal-footer p {
  margin: 0;
}

.legal-footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--color-accent);
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 3vw, 32px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.legal-card {
  width: min(920px, 100%);
  background: linear-gradient(to bottom, rgb(12 9 18 / 98%), rgb(18 13 27 / 98%));
  border: 1px solid var(--color-border-gold);
  box-shadow:
    0 0 40px rgb(0 0 0 / 70%),
    0 0 18px rgb(245 158 11 / 18%);
  padding: clamp(18px, 3vw, 36px);
}

.legal-title {
  margin: 0 0 var(--space-sm);
  color: var(--color-accent);
  letter-spacing: 0.06em;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.legal-updated {
  margin: 0 0 var(--space-lg);
  color: var(--color-text-disabled);
  font-size: var(--text-sm);
}

.legal-section {
  margin-top: var(--space-lg);
}

.legal-section h2 {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.legal-section p,
.legal-section li {
  color: var(--color-text-secondary);
}

.legal-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-xl);
  color: var(--color-accent);
  text-decoration: none;
  border: 1px solid rgb(212 175 55 / 35%);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.legal-back-link:hover {
  color: var(--color-text);
  text-decoration: none;
}

@media (max-width: 767px) {
  .home-main {
    height: 68vh;
    min-height: 400px;
  }

  .faq-overlay {
    padding: var(--space-md);
  }

  .faq-modal {
    padding: var(--space-lg) var(--space-md);
  }

  .map-nav-cta {
    bottom: 14px;
    padding: 7px 10px;
    gap: 8px;
  }

  .map-nav-main {
    font-size: 0.72rem;
  }

  .map-nav-helper {
    font-size: 0.52rem;
  }

  .faq-fab {
    right: 10px;
    bottom: max(62px, calc(env(safe-area-inset-bottom) + 14px));
  }

  .review-fab {
    right: 10px;
    bottom: max(110px, calc(env(safe-area-inset-bottom) + 62px));
  }

  .bottom-chip {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   CONTACT BLOCK
   ========================================================================== */
.container--narrow {
  max-width: 640px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.contact-row__icon {
  font-size: var(--text-xl);
  color: var(--color-primary);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.contact-row__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-disabled);
  margin: 0 0 var(--space-xs);
}

.contact-row__value {
  font-size: var(--text-base);
  color: var(--color-text);
  margin: 0;
}

a.contact-row__value {
  color: var(--color-text-link);
}

/* ==========================================================================
   MOBILE NAV
   ========================================================================== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  font-size: var(--text-lg);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
  background: var(--color-bg-surface-raised);
  color: var(--color-accent);
  text-decoration: none;
}

/* Active nav link */
.nav-active {
  color: var(--color-accent) !important;
}

/* ==========================================================================
   RESPONSIVE — mobile overrides
   ========================================================================== */

/* Desktop: hide mobile-only elements */
@media (min-width: 601px) {
  .nav-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  h1,
  .hero__title {
    font-size: var(--text-3xl);
  }
  h2,
  .section-heading {
    font-size: var(--text-2xl);
  }
  .container {
    padding-inline: var(--space-md);
  }
  .site-nav__links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* ==========================================================================
   MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;

  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: '';
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print, (min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   EASTER EGGS
   ========================================================================== */
.logo-secret {
  cursor: pointer;
}

.secret-badge {
  margin: var(--space-sm) 0 0;
  color: var(--color-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgb(245 158 11 / 34%);
}

.service-lore {
  position: relative;
}

.service-lore::after {
  content: attr(data-lore);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  width: 190px;
  transform: translateX(-50%);
  border: 1px solid rgb(245 158 11 / 48%);
  border-radius: var(--radius-sm);
  background: linear-gradient(to bottom, rgb(10 8 14 / 97%), rgb(28 19 45 / 97%));
  color: var(--color-text-secondary);
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  padding: 6px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.service-lore:hover::after,
.service-lore:focus-visible::after {
  opacity: 1;
}

.map-compass-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.warp-active .home-map-iframe {
  animation: warp-map 0.9s ease;
}

@keyframes warp-map {
  0% {
    transform: scale(1);
    filter: sepia(0.5) hue-rotate(-15deg) saturate(1.2) contrast(1.1) brightness(0.9)
      url('#hand-drawn-ink');
  }
  40% {
    transform: scale(1.04);
    filter: sepia(0.2) hue-rotate(30deg) saturate(1.5) contrast(1.35) brightness(1.1)
      url('#hand-drawn-ink');
  }
  100% {
    transform: scale(1);
    filter: sepia(0.5) hue-rotate(-15deg) saturate(1.2) contrast(1.1) brightness(0.9)
      url('#hand-drawn-ink');
  }
}

.mythic-pull {
  border-color: rgb(245 158 11 / 85%);
  box-shadow:
    0 0 16px rgb(245 158 11 / 44%),
    0 0 28px rgb(252 211 77 / 20%);
  animation: mythic-pulse 2.2s ease-in-out infinite;
}

.mythic-label {
  margin: 2px 0 0;
  color: var(--color-accent);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

@keyframes mythic-pulse {
  0%,
  100% {
    box-shadow:
      0 0 16px rgb(245 158 11 / 38%),
      0 0 26px rgb(252 211 77 / 16%);
  }
  50% {
    box-shadow:
      0 0 22px rgb(245 158 11 / 58%),
      0 0 34px rgb(252 211 77 / 30%);
  }
}

.panic-toast {
  position: fixed;
  top: clamp(12px, 3vw, 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  border: 1px solid rgb(124 58 237 / 60%);
  border-radius: 999px;
  background: linear-gradient(to right, rgb(20 12 35 / 95%), rgb(57 28 92 / 95%));
  color: var(--color-text);
  padding: 10px 18px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  box-shadow:
    0 0 18px rgb(124 58 237 / 42%),
    0 0 8px rgb(245 158 11 / 20%);
}

.panic-sparkle {
  position: absolute;
  color: #d7b6ff;
  font-size: 0.72rem;
  opacity: 0;
  animation: panic-spark 1s ease forwards;
}

.panic-sparkle:nth-of-type(1) {
  left: 8%;
  top: 70%;
  animation-delay: 80ms;
}

.panic-sparkle:nth-of-type(2) {
  left: 18%;
  top: 18%;
  animation-delay: 140ms;
}

.panic-sparkle:nth-of-type(3) {
  left: 30%;
  top: 76%;
  animation-delay: 210ms;
}

.panic-sparkle:nth-of-type(4) {
  left: 42%;
  top: 16%;
  animation-delay: 280ms;
}

.panic-sparkle:nth-of-type(5) {
  left: 58%;
  top: 75%;
  animation-delay: 330ms;
}

.panic-sparkle:nth-of-type(6) {
  left: 70%;
  top: 18%;
  animation-delay: 390ms;
}

.panic-sparkle:nth-of-type(7) {
  left: 82%;
  top: 70%;
  animation-delay: 450ms;
}

.panic-sparkle:nth-of-type(8) {
  left: 92%;
  top: 28%;
  animation-delay: 520ms;
}

@keyframes panic-spark {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.85);
  }
  35% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
  }
}

.theme-fab {
  position: fixed;
  right: clamp(10px, 2vw, 24px);
  bottom: clamp(128px, 14vw, 146px);
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(124 58 237 / 48%);
  border-radius: 999px;
  background: linear-gradient(to bottom, rgb(35 21 58 / 94%), rgb(48 30 74 / 94%));
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1.2vw, 0.74rem);
  letter-spacing: 0.06em;
  padding: clamp(6px, 1vw, 9px) clamp(9px, 1.4vw, 12px);
  cursor: pointer;
  box-shadow: 0 5px 12px rgb(0 0 0 / 45%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-fab:hover,
.theme-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 8px 16px rgb(0 0 0 / 55%),
    0 0 12px rgb(124 58 237 / 34%);
}

.theme-fab:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.version-micro {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 12000;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgb(245 240 255 / 78%);
  font-family: var(--font-sans);
  pointer-events: none;
  user-select: none;
  padding: 2px 6px;
  border: 1px solid rgb(245 158 11 / 35%);
  border-radius: 999px;
  background: rgb(13 11 15 / 60%);
  backdrop-filter: blur(2px);
}

.facts-rotator {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
}

.facts-fire-text {
  display: inline-block;
  color: transparent;
  background-image: linear-gradient(
    180deg,
    #fff0bf 0%,
    #ffc266 28%,
    #ff7a1b 52%,
    #ff3d00 78%,
    #7f0a00 100%
  );
  background-size: 100% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 6px rgb(255 112 0 / 45%),
    0 0 14px rgb(255 72 0 / 38%),
    0 0 22px rgb(255 158 66 / 22%);
  animation:
    fire-write-flicker 1.8s ease-in-out infinite,
    fire-write-rise 3.2s linear infinite;
}

@keyframes fire-write-flicker {
  0%,
  100% {
    opacity: 0.92;
    text-shadow:
      0 0 6px rgb(255 112 0 / 42%),
      0 0 14px rgb(255 72 0 / 34%),
      0 0 20px rgb(255 158 66 / 20%);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 8px rgb(255 133 24 / 64%),
      0 0 20px rgb(255 82 0 / 48%),
      0 0 28px rgb(255 187 85 / 30%);
  }
}

@keyframes fire-write-rise {
  0% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 50% 0%;
  }
}

@media (max-width: 767px) {
  .theme-fab {
    right: 10px;
    bottom: max(156px, calc(env(safe-area-inset-bottom) + 108px));
  }

  .version-micro {
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .panic-toast {
    width: calc(100% - 20px);
    text-align: center;
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;

    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
  }

  abbr[title]::after {
    content: ' (' attr(title) ')';
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^='#']::after,
  a[href^='javascript:']::after {
    content: '';
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
