@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Libre+Baskerville:wght@400;700&family=Cormorant+Garamond:wght@500;600;700&family=Lora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-ink-900: #0f1722;
  --color-ink-800: #1b2430;
  --color-surface-50: #f5f3ee;
  --color-surface-75: #f8f6f1;
  --color-surface-100: #d9d4cb;
  --color-accent-600: #1e6f74;
  --color-accent-700: #175b60;
  --color-support-600: #3f6b5b;
  --color-text-900: #17202a;
  --color-text-700: #66707a;
  --color-text-50: #f7f7f5;
  --border-light: rgba(15, 23, 34, 0.1);
  --border-dark: rgba(247, 247, 245, 0.1);
  --overlay-soft: rgba(13, 20, 30, 0.55);
  --overlay-strong: rgba(13, 20, 30, 0.78);
  --shadow-soft: 0 10px 30px rgba(15, 23, 34, 0.08);
  --shadow-deep: 0 18px 40px rgba(15, 23, 34, 0.2);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --container: min(1120px, calc(100vw - 48px));
  --measure: 68ch;
  --font-display: 'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-surface-50);
  color: var(--color-text-900);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--color-text-700);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-text-900);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

button,
a,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(30, 111, 116, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-surface-50);
  color: var(--color-text-900);
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--space-4) 0;
  transition: background-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header.hero-header {
  position: fixed;
  left: 0;
  right: 0;
}

.site-header.scrolled {
  background: rgba(15, 23, 34, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15, 23, 34, 0.18);
}

.site-header.light-header {
  background: rgba(245, 243, 238, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.site-header.light-header.scrolled {
  background: rgba(245, 243, 238, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 34, 0.08);
}

.nav-shell {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  border: 1px solid transparent;
}

.site-header.hero-header .nav-shell {
  padding: var(--space-4) var(--space-5);
  border-color: rgba(247, 247, 245, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 34, 0.18);
  backdrop-filter: blur(10px);
}

.site-header.light-header .nav-shell {
  padding: 0;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.brand-mark strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark span {
  font-size: 0.82rem;
  color: inherit;
  opacity: 0.72;
}

.hero-header .brand-mark,
.hero-header .site-nav a,
.hero-header .nav-toggle {
  color: var(--color-text-50);
}

.light-header .brand-mark,
.light-header .site-nav a,
.light-header .nav-toggle {
  color: var(--color-text-900);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(247, 247, 245, 0.12);
}

.light-header .site-nav a:hover,
.light-header .site-nav a.active {
  background: rgba(15, 23, 34, 0.08);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}

.page-hero,
.hero-panel {
  position: relative;
  isolation: isolate;
}

.page-hero::before,
.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--overlay-soft), var(--overlay-strong));
  z-index: -1;
}

.page-hero {
  min-height: 100vh;
  padding: 180px 0 var(--space-10);
  background: url('./assets/LandingPage.jpg') center center / cover no-repeat;
  color: var(--color-text-50);
}

.page-hero .hero-inner,
.section-inner,
.footer-inner {
  width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  color: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.84;
}

.eyebrow::before {
  content: '';
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero-layout {
  max-width: 760px;
}

.hero-eyebrow {
  margin-bottom: clamp(48px, 9vh, 96px);
}

.hero-layout h1,
.hero-panel h1 {
  color: var(--color-text-50);
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 24px rgba(8, 12, 20, 0.55);
}

.hero-layout p,
.hero-panel p {
  max-width: 62ch;
  color: rgba(247, 247, 245, 0.92);
  font-size: 1.1rem;
  text-shadow: 0 1px 16px rgba(8, 12, 20, 0.5);
}

.page-hero .eyebrow,
.hero-panel .eyebrow {
  opacity: 0.95;
  text-shadow: 0 1px 12px rgba(8, 12, 20, 0.5);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.button-primary,
.button-secondary,
.button-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-sm);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button-primary {
  background: var(--color-accent-600);
  color: var(--color-text-50);
  border: 1px solid transparent;
}

/* Keep our button styling when Payhip's overlay script is attached.
   Payhip injects its own theme on .payhip-buy-button; these overrides
   preserve the Anteambulo look while still opening the Payhip overlay. */
.button-primary.payhip-buy-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-accent-600) !important;
  color: var(--color-text-50) !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 0 var(--space-5) !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid transparent !important;
  font: inherit !important;
  box-shadow: none !important;
  text-shadow: none !important;
  line-height: normal !important;
}

.button-primary.payhip-buy-button:hover {
  background: var(--color-accent-700) !important;
  transform: translateY(-1px);
}

.button-primary:hover {
  background: var(--color-accent-700);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--color-text-50);
  background: rgba(247, 247, 245, 0.08);
  border: 1px solid rgba(247, 247, 245, 0.18);
}

.button-secondary:hover {
  background: rgba(247, 247, 245, 0.14);
}

.button-secondary.light {
  color: var(--color-text-900);
  background: transparent;
  border-color: var(--border-light);
}

.button-secondary.light:hover {
  background: rgba(15, 23, 34, 0.04);
}

.button-tertiary {
  color: inherit;
  padding: 0;
  min-height: auto;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-9);
}

.hero-metrics article {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(247, 247, 245, 0.22);
}

.hero-metrics strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 1.9rem;
  color: var(--color-text-50);
  font-family: var(--font-display);
}

.hero-metrics span {
  color: rgba(247, 247, 245, 0.72);
}

main {
  display: block;
}

.section-light,
.section-dark,
.section-hero,
.section-tint {
  padding: var(--space-9) 0;
}

.section-light {
  background: var(--color-surface-50);
}

.section-tint {
  background: linear-gradient(180deg, rgba(217, 212, 203, 0.28), rgba(245, 243, 238, 0.7));
}

.section-dark {
  background: var(--color-ink-900);
  color: var(--color-text-50);
}

.section-dark h2,
.section-dark h3,
.section-dark .section-intro,
.section-dark p,
.section-dark li,
.section-dark .eyebrow {
  color: var(--color-text-50);
}

.section-title {
  max-width: 760px;
  margin-bottom: var(--space-7);
}

.section-title h2 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  margin-bottom: var(--space-4);
}

.section-intro {
  max-width: var(--measure);
  font-size: 1.05rem;
}

.statement-band {
  width: var(--container);
  margin: calc(var(--space-9) * -0.55) auto 0;
  position: relative;
  z-index: 2;
}

.statement-card {
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: rgba(245, 243, 238, 0.92);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
}

.statement-card p {
  max-width: 64ch;
  font-size: 1.1rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: var(--space-5);
}

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

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

.card-light,
.card-dark {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.card-light {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border-light);
}

.card-dark {
  background: var(--color-ink-800);
  border: 1px solid var(--border-dark);
}

.card-light h3,
.card-dark h3 {
  margin-bottom: var(--space-3);
  font-size: 1.45rem;
}

.card-kicker {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-accent-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-dark .card-kicker {
  color: rgba(247, 247, 245, 0.68);
}

.stack {
  display: grid;
  gap: var(--space-5);
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: 0.9rem;
  color: var(--color-text-700);
}

.resource-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 34, 0.05);
}

.section-dark .resource-meta span {
  background: rgba(247, 247, 245, 0.08);
  color: rgba(247, 247, 245, 0.8);
}

.split-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: start;
}

.editorial-list {
  display: grid;
  gap: var(--space-4);
}

.editorial-list li {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.section-dark .editorial-list li {
  border-bottom-color: rgba(247, 247, 245, 0.14);
}

.hero-panel {
  padding: var(--space-10) 0 var(--space-9);
  background: url('./assets/LandingPage.jpg') center center / cover no-repeat;
  color: var(--color-text-50);
}

.hero-panel.light-overlay::before {
  background: linear-gradient(180deg, rgba(13, 20, 30, 0.52), rgba(13, 20, 30, 0.74));
}

.hero-panel .hero-inner {
  width: var(--container);
  margin: 0 auto;
  max-width: 760px;
}

.mini-hero {
  padding-top: 160px;
}

.library-grid,
.domain-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.domain-card {
  display: grid;
  gap: var(--space-4);
}

.domain-card p {
  max-width: 30ch;
}

.quote-panel {
  padding: var(--space-7);
  border-left: 3px solid var(--color-accent-600);
  background: rgba(15, 23, 34, 0.03);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.featured-release,
.cta-panel {
  padding: var(--space-7);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
}

.featured-release {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
}

.featured-release h2,
.cta-panel h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.featured-release p,
.cta-panel p {
  max-width: var(--measure);
}

.featured-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.site-footer {
  background: var(--color-ink-900);
  color: var(--color-text-50);
  padding: var(--space-8) 0 var(--space-6);
}

.footer-inner {
  display: grid;
  gap: var(--space-6);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(217, 212, 203, 0.16);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-nav a {
  color: var(--color-surface-100);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  color: rgba(247, 247, 245, 0.7);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .split-feature,
  .hero-metrics,
  .featured-release {
    grid-template-columns: 1fr;
  }

  .featured-actions {
    align-items: flex-start;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--color-ink-900);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-deep);
  }

  .site-nav.open {
    display: flex;
  }

  .light-header .site-nav {
    background: var(--color-ink-900);
  }

  .site-nav a,
  .light-header .site-nav a {
    color: var(--color-text-50);
    padding: 12px 14px;
  }

  .site-nav a:hover,
  .site-nav a.active,
  .light-header .site-nav a:hover,
  .light-header .site-nav a.active {
    background: rgba(247, 247, 245, 0.12);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .page-hero,
  .hero-panel.mini-hero {
    min-height: auto;
    padding-top: 144px;
  }

  .statement-band {
    margin-top: calc(var(--space-8) * -0.45);
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1120px, calc(100vw - 32px));
  }

  .site-header.hero-header .nav-shell {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
  }

  .section-light,
  .section-dark,
  .section-tint {
    padding: var(--space-8) 0;
  }

  .statement-card,
  .card-light,
  .card-dark,
  .quote-panel {
    padding: var(--space-5);
  }

  .hero-layout h1,
  .hero-panel h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-eyebrow {
    margin-bottom: var(--space-7);
  }
}

/* Pricing + trust elements (added for launch) */
.price-line {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  margin: 0.25rem 0 1rem;
  opacity: 0.95;
}
.price-line strong {
  font-size: 1.6rem;
  font-weight: 700;
}
.trust-line {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.75rem;
  line-height: 1.5;
}
.trust-line a { text-decoration: underline; }
.legal-page .section-inner { max-width: 760px; }
.legal-page h2 { margin-top: 2.2rem; }
.legal-page p, .legal-page li { line-height: 1.7; }
.legal-page .updated { opacity: 0.6; font-size: 0.85rem; }

/* ============================================================
   TRIBE / COUNCIL — old-school trading-card showroom
   ============================================================ */
.showroom {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(192,138,45,0.10), transparent 60%),
    linear-gradient(180deg, #0e151f 0%, #11161f 100%);
  position: relative;
}
.showroom::after {
  /* subtle display-case shelf line */
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 220px;
  pointer-events: none; opacity: 0.5;
}
.showroom .section-title h2,
.showroom .section-title .eyebrow { color: var(--color-text-50); }
.showroom .section-intro { color: rgba(247,247,245,0.72); }

.tribe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.tribe-card {
  --cat: #c08a2d;
  position: relative;
  border-radius: 18px;
  padding: 6px;
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transform: perspective(900px) rotateX(0) rotateY(0);
  transition: transform 200ms ease, box-shadow 200ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tribe-card:hover {
  box-shadow: 0 26px 60px rgba(0,0,0,0.55), 0 0 0 1px var(--cat);
}
.tribe-card-inner {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  background: #0c1119;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.06);
}
/* holographic sheen that follows the pointer (set via JS vars) */
.tribe-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 18px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255,255,255,0.18), transparent 45%);
  opacity: 0; transition: opacity 220ms ease;
  z-index: 3; pointer-events: none; mix-blend-mode: screen;
}
.tribe-card:hover::before { opacity: 1; }

.tribe-banner {
  position: relative;
  height: 132px;
  background-size: cover;
  background-position: center;
  background-color: #1a2230;
  /* fallback gradient keyed to category until a real cover image is added */
  background-image: linear-gradient(135deg, var(--cat), #11161f 120%);
}
.tribe-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,17,25,0) 30%, rgba(12,17,25,0.92) 100%);
}
.tribe-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  color: #0c1119; font-weight: 700;
  background: var(--cat);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.tribe-rarity {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.85);
}

.tribe-avatar {
  position: relative; z-index: 2;
  width: 76px; height: 76px; margin: -42px auto 0;
  border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: var(--cat);
  border: 3px solid #0c1119;
  display: grid; place-items: center;
  color: #0c1119; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.tribe-body { padding: 14px 20px 22px; text-align: center; }
.tribe-name {
  color: var(--color-text-50); margin: 10px 0 2px; font-size: 1.3rem;
}
.tribe-handle { color: var(--cat); font-size: 0.85rem; letter-spacing: 0.02em; }
.tribe-bio {
  color: rgba(247,247,245,0.78);
  font-size: 0.95rem; line-height: 1.6; margin: 12px 0 16px;
  text-align: left;
}
.tribe-bio strong { color: rgba(247,247,245,0.95); }

.tribe-links { display: flex; justify-content: center; gap: 12px; }
.tribe-links a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(247,247,245,0.85);
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
}
.tribe-links a:hover { background: var(--cat); color: #0c1119; transform: translateY(-2px); }
.tribe-links svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 560px) {
  .tribe-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tribe-card { transition: box-shadow 200ms ease; }
}

/* ---- Tribe deck: flip-through card collection ---- */
.tribe-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: var(--space-6);
}
.tribe-tabs button {
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(247,247,245,0.7); background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tribe-tabs button:hover { color: #fff; }
.tribe-tabs button.is-active {
  color: #0c1119; background: #f7f7f5; border-color: #f7f7f5; font-weight: 700;
}

.tribe-deck {
  margin-top: var(--space-7);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-6);
}
.tribe-stage {
  position: relative; width: 100%; max-width: 360px; margin: 0 auto;
}
/* fallback (no JS): cards flow as a readable column */
.tribe-stage .tribe-card { margin: 0 auto var(--space-5); max-width: 340px; }

/* deck mode (JS adds .is-deck) */
.tribe-stage.is-deck { height: 540px; perspective: 1200px; }
.tribe-stage.is-deck .tribe-card {
  position: absolute; top: 50%; left: 50%; width: 340px; margin: 0;
  transform: translate(-50%, -50%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
  cursor: pointer;
}
.tribe-stage.is-deck .tribe-card::before { opacity: 0; }
.tribe-stage.is-deck .tribe-card.is-active::before { opacity: .9; }

.tribe-deck-controls { display: flex; align-items: center; gap: var(--space-5); }
.tribe-deck-controls button {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  color: #f7f7f5; font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.tribe-deck-controls button:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.tribe-deck-controls button:disabled { opacity: .3; cursor: default; transform: none; }
.tribe-counter {
  color: rgba(247,247,245,0.78); font-size: 0.95rem; letter-spacing: 0.1em;
  min-width: 70px; text-align: center; font-variant-numeric: tabular-nums;
}
.tribe-hint { color: rgba(247,247,245,0.5); font-size: 0.82rem; text-align: center; }

@media (max-width: 560px) {
  .tribe-stage.is-deck { height: 560px; }
}
