/* ============================================
   tothemoonpl.com — global styles
   Light refined theme, cool lunar palette
   ============================================ */

:root {
  --tm-bg: #f5f8fc;
  --tm-bg-soft: #eef3f9;
  --tm-surface: #ffffff;
  --tm-ink: #0d1b2a;
  --tm-ink-soft: #33465e;
  --tm-muted: #64748b;
  --tm-line: #dbe4f0;
  --tm-accent: #0284c7;
  --tm-accent-2: #0ea5e9;
  --tm-deep: #0a1626;
  --tm-deep-2: #12263f;
  --tm-glow: rgba(14, 165, 233, 0.35);
  --tm-radius: 18px;
  --tm-shadow: 0 18px 45px -18px rgba(13, 27, 42, 0.25);
  --tm-font-display: "Sora", "Inter", system-ui, sans-serif;
  --tm-font-body: "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tm-font-body);
  background: var(--tm-bg);
  color: var(--tm-ink);
}

h1, h2, h3, h4, .tm-display {
  font-family: var(--tm-font-display);
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- layout helpers ---------- */

.tm-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tm-section {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}

.tm-section--tight {
  padding: 56px 0;
}

.tm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tm-accent);
  margin-bottom: 14px;
}

.tm-kicker i {
  font-size: 11px;
}

.tm-h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 18px;
}

.tm-h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.tm-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--tm-ink-soft);
  max-width: 720px;
}

.tm-text {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--tm-ink-soft);
}

/* ---------- dark photo sections ---------- */

.tm-photo {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #f4f9ff;
}

.tm-photo .tm-h2,
.tm-photo h3,
.tm-photo .tm-lead {
  color: #f4f9ff;
}

.tm-photo .tm-text,
.tm-photo p {
  color: rgba(226, 238, 250, 0.88);
}

.tm-photo .tm-kicker {
  color: #7dd3fc;
}

@media (max-width: 768px) {
  .tm-photo {
    background-attachment: scroll;
  }
}

/* ---------- buttons ---------- */

.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--tm-font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tm-btn--primary {
  background: linear-gradient(135deg, var(--tm-accent) 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 14px 32px -12px var(--tm-glow);
}

.tm-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px var(--tm-glow);
}

.tm-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 196, 235, 0.45);
  color: inherit;
  backdrop-filter: blur(6px);
}

.tm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.tm-btn--light {
  background: var(--tm-surface);
  border-color: var(--tm-line);
  color: var(--tm-ink);
}

.tm-btn--light:hover {
  border-color: var(--tm-accent-2);
  color: var(--tm-accent);
}

/* ---------- cards ---------- */

.tm-card {
  background: var(--tm-surface);
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  padding: 28px;
  box-shadow: 0 8px 30px -18px rgba(13, 27, 42, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: var(--tm-shadow);
}

.tm-card--flat:hover {
  transform: none;
}

.tm-card,
.tm-card .tm-display,
.tm-card .tm-h2,
.tm-card h3,
.tm-card h4 {
  color: var(--tm-ink);
}

.tm-card .tm-text,
.tm-card p {
  color: var(--tm-ink-soft);
}

.tm-card .tm-note {
  color: var(--tm-muted);
}

.tm-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(186, 220, 245, 0.25);
  border-radius: var(--tm-radius);
  backdrop-filter: blur(14px);
  padding: 28px;
}

.tm-card-dark {
  background: rgba(9, 22, 40, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: var(--tm-radius);
  padding: 26px;
  backdrop-filter: blur(10px);
}

/* ---------- badges / chips ---------- */

.tm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--tm-accent);
}

.tm-photo .tm-badge,
.tm-badge--on-dark {
  background: rgba(125, 211, 252, 0.12);
  border-color: rgba(125, 211, 252, 0.45);
  color: #bae6fd;
}

.tm-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--tm-bg-soft);
  border: 1px solid var(--tm-line);
  color: var(--tm-ink-soft);
}

/* ---------- icon discs ---------- */

.tm-icondisc {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 20px;
  color: var(--tm-accent);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.14), rgba(2, 132, 199, 0.06));
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.tm-photo .tm-icondisc,
.tm-icondisc--on-dark {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.1);
  border-color: rgba(125, 211, 252, 0.35);
}

.tm-icondisc--sm {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  font-size: 15px;
  border-radius: 12px;
}

.tm-deep {
  background: linear-gradient(160deg, #0a1626 0%, #0e2036 100%);
  color: #eef6ff;
}

.tm-deep .tm-text,
.tm-deep p {
  color: rgba(214, 234, 250, 0.85);
}

.tm-constellation {
  font-size: 42px;
  letter-spacing: 0.45em;
  color: #bae6fd;
  line-height: 1.9;
  text-align: center;
}

.tm-constellation .fa-moon {
  font-size: 58px;
  color: #e0f2fe;
  text-shadow: 0 0 30px rgba(125, 211, 252, 0.8);
}

/* ---------- header ---------- */

.tm-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tm-line);
  transition: box-shadow 0.3s ease;
}

.tm-header.is-scrolled {
  box-shadow: 0 10px 30px -14px rgba(13, 27, 42, 0.25);
}

.tm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.tm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.tm-logo img {
  height: 40px;
  width: auto;
}

.tm-logo span {
  font-family: var(--tm-font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--tm-ink);
}

.tm-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-nav a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tm-ink-soft);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.tm-nav a:hover {
  color: var(--tm-accent);
  background: rgba(14, 165, 233, 0.08);
}

.tm-header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tm-muted);
  text-align: right;
}

.tm-header-contacts strong {
  color: var(--tm-ink);
  font-weight: 600;
  font-size: 13.5px;
}

.tm-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--tm-line);
  background: var(--tm-surface);
  color: var(--tm-ink);
  font-size: 18px;
  cursor: pointer;
}

.tm-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(245, 248, 252, 0.98);
  backdrop-filter: blur(10px);
  padding: 90px 26px 40px;
  overflow-y: auto;
}

.tm-mobile-menu.is-open {
  display: block;
}

.tm-mobile-menu ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.tm-mobile-menu li {
  border-bottom: 1px solid var(--tm-line);
}

.tm-mobile-menu a {
  display: block;
  padding: 15px 4px;
  font-family: var(--tm-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--tm-ink);
  text-decoration: none;
}

.tm-mobile-contacts {
  font-size: 14px;
  line-height: 1.9;
  color: var(--tm-ink-soft);
}

.tm-mobile-contacts strong {
  color: var(--tm-ink);
}

.tm-menu-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--tm-line);
  background: var(--tm-surface);
  font-size: 18px;
  cursor: pointer;
  color: var(--tm-ink);
}

@media (max-width: 1180px) {
  .tm-header-contacts {
    display: none;
  }
}

@media (max-width: 1024px) {
  .tm-nav {
    display: none;
  }
  .tm-burger {
    display: inline-flex;
  }
}

/* ---------- footer ---------- */

.tm-footer {
  background: linear-gradient(180deg, #0a1626 0%, #060d18 100%);
  color: #c7d6e8;
  border-top: 1px solid rgba(125, 211, 252, 0.14);
}

.tm-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 64px 0 40px;
}

@media (max-width: 960px) {
  .tm-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .tm-footer-grid {
    grid-template-columns: 1fr;
  }
}

.tm-footer h4 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin: 0 0 18px;
}

.tm-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-footer li {
  margin-bottom: 10px;
}

.tm-footer a {
  color: #a9bcd4;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.tm-footer a:hover {
  color: #7dd3fc;
}

.tm-footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  color: #94a9c4;
}

.tm-footer-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #7dd3fc;
  margin-bottom: 18px;
}

.tm-footer-status .tm-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
  animation: tm-pulse 2.2s infinite;
}

.tm-footer-contact {
  font-size: 14px;
  line-height: 2;
  color: #a9bcd4;
}

.tm-footer-contact i {
  margin-right: 8px;
  color: #38bdf8;
}

.tm-footer-brand > p {
  margin-top: 18px;
}

.tm-footer-contact a {
  color: #a9bcd4;
}

.tm-footer-reg {
  font-size: 12.5px;
  line-height: 1.9;
  color: #7d93ad;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  margin-top: 26px;
  padding-top: 20px;
}

.tm-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.tm-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  color: #9fc6e8;
  font-size: 16px;
  transition: all 0.25s;
}

.tm-socials a:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  transform: translateY(-2px);
}

.tm-footer-bottom {
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #7d93ad;
}

/* ---------- hero slider ---------- */

.tm-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #f4f9ff;
  overflow: hidden;
}

.tm-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.1s ease, transform 6s linear;
}

.tm-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.tm-hero-content {
  position: relative;
  z-index: 3;
  padding: 72px 0 120px;
}

.tm-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bae6fd;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(8, 25, 46, 0.4);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

.tm-hero h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 20px;
  max-width: 18ch;
  color: #ffffff;
}

.tm-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-hero p {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.7;
  max-width: 620px;
  color: rgba(224, 238, 250, 0.9);
  margin: 0 0 34px;
}

.tm-hero-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 34px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(186, 230, 253, 0.85);
}

.tm-hero-coords span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tm-hero-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  border-top: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(6, 15, 28, 0.55);
  backdrop-filter: blur(12px);
}

.tm-hero-panel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: 13px;
  color: rgba(186, 230, 253, 0.9);
}

.tm-hero-nav {
  position: absolute;
  right: 20px;
  bottom: 92px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.tm-hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(8, 25, 46, 0.5);
  color: #bae6fd;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
}

.tm-hero-arrow:hover {
  background: rgba(56, 189, 248, 0.25);
}

.tm-hero-dots {
  position: absolute;
  left: 20px;
  bottom: 96px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.tm-dot-nav {
  width: 34px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(186, 230, 253, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.tm-dot-nav.is-active {
  background: #7dd3fc;
}

.tm-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #bae6fd;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.tm-scroll-cue i {
  animation: tm-bob 2s infinite;
}

@media (max-width: 768px) {
  .tm-hero {
    min-height: 72vh;
  }
  .tm-hero-content {
    padding: 56px 0 150px;
  }
  .tm-hero-coords {
    display: none;
  }
  .tm-hero-panel-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- decorative frames ---------- */

.tm-frame-corner {
  position: relative;
}

.tm-frame-corner::before,
.tm-frame-corner::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(125, 211, 252, 0.55);
  z-index: 2;
}

.tm-frame-corner::before {
  top: 18px;
  left: 18px;
  border-right: none;
  border-bottom: none;
}

.tm-frame-corner::after {
  bottom: 18px;
  right: 18px;
  border-left: none;
  border-top: none;
}

/* ---------- timeline ---------- */

.tm-timeline {
  position: relative;
  padding-left: 34px;
}

.tm-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--tm-accent-2), rgba(14, 165, 233, 0.05));
}

.tm-timeline-item {
  position: relative;
  padding-bottom: 34px;
}

.tm-timeline-item:last-child {
  padding-bottom: 0;
}

.tm-timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tm-surface);
  border: 3px solid var(--tm-accent-2);
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.12);
}

/* ---------- accordion ---------- */

.tm-accordion {
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  overflow: hidden;
  background: var(--tm-surface);
}

.tm-accordion-item + .tm-accordion-item {
  border-top: 1px solid var(--tm-line);
}

.tm-accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--tm-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--tm-ink);
  cursor: pointer;
}

.tm-accordion-head i {
  color: var(--tm-accent);
  transition: transform 0.3s;
}

.tm-accordion-item.is-open .tm-accordion-head i {
  transform: rotate(180deg);
}

.tm-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.tm-accordion-body-inner {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--tm-ink-soft);
}

.tm-photo .tm-accordion {
  background: rgba(9, 22, 40, 0.5);
  border-color: rgba(125, 211, 252, 0.2);
  backdrop-filter: blur(10px);
}

.tm-photo .tm-accordion-item + .tm-accordion-item {
  border-color: rgba(125, 211, 252, 0.15);
}

.tm-photo .tm-accordion-head {
  color: #eef6ff;
}

.tm-photo .tm-accordion-body-inner {
  color: rgba(214, 234, 250, 0.85);
}

/* ---------- tabs ---------- */

.tm-tabs-nav {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--tm-bg-soft);
  border: 1px solid var(--tm-line);
}

.tm-tab-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: var(--tm-font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--tm-muted);
  cursor: pointer;
  transition: all 0.25s;
}

.tm-tab-btn.is-active {
  background: var(--tm-surface);
  color: var(--tm-accent);
  box-shadow: 0 6px 18px -8px rgba(13, 27, 42, 0.3);
}

.tm-tab-panel {
  display: none;
}

.tm-tab-panel.is-active {
  display: block;
  animation: tm-fadein 0.5s ease;
}

/* ---------- stats / counters ---------- */

.tm-stat {
  text-align: center;
  padding: 26px 18px;
}

.tm-stat-num {
  font-family: var(--tm-font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  color: var(--tm-accent);
  line-height: 1;
}

.tm-photo .tm-stat-num {
  color: #7dd3fc;
}

.tm-stat-label {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--tm-muted);
}

.tm-photo .tm-stat-label {
  color: rgba(186, 230, 253, 0.75);
}

/* ---------- progress ---------- */

.tm-progress {
  height: 8px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.12);
  overflow: hidden;
}

.tm-progress-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--tm-accent), var(--tm-accent-2));
  width: 0;
  transition: width 1.4s ease;
}

/* ---------- marquee ---------- */

.tm-marquee {
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tm-marquee-track {
  display: inline-flex;
  gap: 48px;
  padding-right: 48px;
  animation: tm-marquee 36s linear infinite;
}

/* ---------- puzzle ---------- */

.tm-puzzle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 340px;
}

.tm-puzzle-cell {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(9, 22, 40, 0.5);
  color: #7dd3fc;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.25s;
}

.tm-puzzle-cell.is-on {
  background: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

/* ---------- poll ---------- */

.tm-poll-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--tm-line);
  background: var(--tm-surface);
  font-family: var(--tm-font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--tm-ink);
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.25s;
}

.tm-poll-opt:hover {
  border-color: var(--tm-accent-2);
}

.tm-poll-bar {
  height: 10px;
  border-radius: 10px;
  background: var(--tm-bg-soft);
  overflow: hidden;
  margin-top: 8px;
}

.tm-poll-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tm-accent), var(--tm-accent-2));
  width: 0;
  transition: width 1s ease;
}

/* ---------- player mock ---------- */

.tm-vinyl {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #e8f1fa 0 18%, #0a1626 18.5% 100%),
    #0a1626;
  border: 6px solid #0a1626;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.35), 0 24px 50px -20px rgba(8, 25, 46, 0.7);
  animation: tm-spin 9s linear infinite;
  animation-play-state: paused;
  margin: 0 auto;
}

.tm-vinyl.is-playing {
  animation-play-state: running;
}

.tm-track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}

.tm-track:hover,
.tm-track.is-active {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.08);
}

/* ---------- ticket ---------- */

.tm-ticket {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6fd 100%);
  border: 1px solid var(--tm-line);
  box-shadow: var(--tm-shadow);
  overflow: hidden;
}

.tm-ticket::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 68%;
  border-left: 2px dashed rgba(2, 132, 199, 0.35);
}

.tm-ticket-stub {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 68%;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.08), rgba(2, 132, 199, 0.16));
}

.tm-ticket {
  color: var(--tm-ink);
}

.tm-ticket .tm-display {
  color: var(--tm-ink);
}

.tm-ticket .tm-note {
  color: var(--tm-ink-soft);
}

.tm-ticket .tm-chip {
  color: var(--tm-ink-soft);
}

@media (max-width: 640px) {
  .tm-ticket::before {
    left: 0;
    right: 0;
    top: 62%;
    bottom: auto;
    border-left: none;
    border-top: 2px dashed rgba(2, 132, 199, 0.35);
  }
  .tm-ticket-stub {
    top: 62%;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

/* ---------- terminal (DOS look, cool blue) ---------- */

.tm-terminal {
  background: #071220;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  font-family: "Consolas", "Courier New", monospace;
  color: #7dd3fc;
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
  box-shadow: inset 0 0 60px rgba(56, 189, 248, 0.06);
}

.tm-terminal .tm-term-line::before {
  content: "> ";
  color: #38bdf8;
}

/* ---------- glitch ---------- */

.tm-glitch {
  position: relative;
  display: inline-block;
}

.tm-glitch::before,
.tm-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}

.tm-glitch::before {
  color: #38bdf8;
  animation: tm-glitch-a 3.4s infinite;
}

.tm-glitch::after {
  color: #0ea5e9;
  animation: tm-glitch-b 2.7s infinite;
}

/* ---------- forms ---------- */

.tm-field {
  margin-bottom: 18px;
}

.tm-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tm-ink-soft);
  margin-bottom: 7px;
}

.tm-input,
.tm-textarea,
.tm-select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--tm-line);
  background: var(--tm-surface);
  font-family: var(--tm-font-body);
  font-size: 15px;
  color: var(--tm-ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.tm-input:focus,
.tm-textarea:focus,
.tm-select:focus {
  outline: none;
  border-color: var(--tm-accent-2);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.tm-field.is-error .tm-input,
.tm-field.is-error .tm-textarea {
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.tm-field-error {
  display: none;
  font-size: 12.5px;
  color: #e11d48;
  margin-top: 6px;
}

.tm-field.is-error .tm-field-error {
  display: block;
}

.tm-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tm-ink-soft);
}

.tm-checkbox input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--tm-accent);
}

.tm-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.tm-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tm-spin 0.8s linear infinite;
  display: none;
}

.tm-btn.is-loading .tm-spinner {
  display: inline-block;
}

.tm-btn.is-loading .tm-btn-label {
  opacity: 0.7;
}

.tm-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 140%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 14px;
  background: var(--tm-deep);
  color: #e6f3ff;
  font-size: 14.5px;
  box-shadow: 0 20px 50px -14px rgba(8, 22, 38, 0.6);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.tm-toast.is-visible {
  transform: translate(-50%, 0);
}

.tm-toast i {
  color: #38bdf8;
}

/* ---------- cookie banner ---------- */

.tm-cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: none;
  max-width: 880px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--tm-line);
  border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(13, 27, 42, 0.35);
  padding: 20px 24px;
}

.tm-cookie.is-visible {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tm-cookie p {
  flex: 1;
  min-width: 240px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--tm-ink-soft);
}

.tm-cookie-actions {
  display: flex;
  gap: 10px;
}

.tm-cookie-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--tm-line);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-cookie-btn--accept {
  background: var(--tm-ink);
  color: #fff;
  border-color: var(--tm-ink);
}

.tm-cookie-btn--accept:hover {
  background: var(--tm-accent);
  border-color: var(--tm-accent);
}

.tm-cookie-btn--reject {
  background: transparent;
  color: var(--tm-ink-soft);
}

.tm-cookie-btn--reject:hover {
  border-color: var(--tm-muted);
}

/* ---------- lightbox ---------- */

.tm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 13, 24, 0.88);
  backdrop-filter: blur(8px);
  padding: 30px;
}

.tm-lightbox.is-open {
  display: flex;
}

.tm-lightbox img {
  max-height: 82vh;
  max-width: 92vw;
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

.tm-lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: rgba(8, 25, 46, 0.6);
  color: #bae6fd;
  font-size: 17px;
  cursor: pointer;
}

/* ---------- gallery ---------- */

.tm-gallery-item {
  position: relative;
  border-radius: var(--tm-radius);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--tm-line);
  background: var(--tm-bg-soft);
}

.tm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.6s ease;
}

.tm-gallery-item:hover img {
  transform: scale(1.06);
}

.tm-gallery-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: rgba(8, 25, 46, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.tm-gallery-item:hover::after {
  opacity: 1;
}

/* ---------- blueprint ---------- */

.tm-blueprint {
  background:
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(160deg, #0b1c31, #081527);
  background-size: 34px 34px, 34px 34px, cover;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #d7ecfc;
}

/* ---------- misc ---------- */

.tm-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.4), transparent);
  border: none;
}

.tm-imgframe {
  border-radius: var(--tm-radius);
  overflow: hidden;
  border: 1px solid var(--tm-line);
  box-shadow: var(--tm-shadow);
  background: var(--tm-bg-soft);
}

.tm-photo .tm-imgframe {
  border-color: rgba(125, 211, 252, 0.3);
}

.tm-imgframe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-note {
  font-size: 13px;
  color: var(--tm-muted);
}

.tm-photo .tm-note {
  color: rgba(186, 230, 253, 0.65);
}

.tm-price {
  font-family: var(--tm-font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--tm-accent);
}

.tm-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--tm-muted);
}

.tm-photo .tm-price {
  color: #7dd3fc;
}

.tm-photo .tm-price small {
  color: rgba(186, 230, 253, 0.7);
}

.tm-photo .tm-card,
.tm-photo .tm-card .tm-display,
.tm-photo .tm-card h3,
.tm-photo .tm-card h4,
.tm-photo .tm-ticket,
.tm-photo .tm-ticket .tm-display {
  color: var(--tm-ink);
}

.tm-photo .tm-card .tm-text,
.tm-photo .tm-card p,
.tm-photo .tm-ticket .tm-text,
.tm-photo .tm-ticket p {
  color: var(--tm-ink-soft);
}

.tm-photo .tm-card .tm-note,
.tm-photo .tm-ticket .tm-note {
  color: var(--tm-muted);
}

.tm-photo .tm-card .tm-chip,
.tm-photo .tm-ticket .tm-chip {
  color: var(--tm-ink-soft);
}

.tm-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 32% 68%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.8px 1.8px at 54% 18%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 71% 44%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.3px 1.3px at 85% 78%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 44% 88%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.6px 1.6px at 91% 12%, rgba(255, 255, 255, 0.75), transparent);
}

.tm-faq-search {
  position: relative;
  margin-bottom: 26px;
}

.tm-faq-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tm-muted);
}

.tm-faq-search .tm-input {
  padding-left: 46px;
}

/* ---------- animations ---------- */

@keyframes tm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes tm-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@keyframes tm-spin {
  to { transform: rotate(360deg); }
}

@keyframes tm-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tm-marquee {
  to { transform: translateX(-50%); }
}

@keyframes tm-glitch-a {
  0%, 91%, 100% { opacity: 0; transform: translate(0); }
  92% { opacity: 0.8; transform: translate(-3px, 2px); }
  95% { opacity: 0.6; transform: translate(3px, -1px); }
  98% { opacity: 0.8; transform: translate(-2px, 1px); }
}

@keyframes tm-glitch-b {
  0%, 88%, 100% { opacity: 0; transform: translate(0); }
  89% { opacity: 0.7; transform: translate(3px, -2px); }
  93% { opacity: 0.5; transform: translate(-3px, 2px); }
  96% { opacity: 0.7; transform: translate(2px, -1px); }
}

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

.tm-float {
  animation: tm-float 6s ease-in-out infinite;
}

.tm-dot {
  font-size: .4rem;
  flex-shrink: 0;
  margin-top: .55em;
}

.iti {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .tm-vinyl,
  .tm-float,
  .tm-marquee-track,
  .tm-glitch::before,
  .tm-glitch::after {
    animation: none !important;
  }
}
@media (max-width: 768px) {
  html, body{
    overflow-x: hidden;
  }
}