@import url("https://fonts.googleapis.com/css2?family=Antic+Didone&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://use.typekit.net/gob0jri.css");

/* Inlined subset from index.php */
:root {
  /* Master brand + sub-brand: THICK Sports Performance Medicine */
  --tc-bg: #0c0d0f; /* Graphite Black */
  --tc-surface: #1a1d22; /* Clinical Slate */
  --tc-dppc: #2F3A44; /* Deep blue gray */
  --tc-surface-soft: #14161a;
  --tc-bone: #eceae7; /* Polished Bone */
  --tc-bone-soft: #d8d5cf;
  --tc-gold: #d5c7a3; /* Champagne Gold */
  --tc-gold-highlight: #E2D6B6; /* Highlight Gold */
  --tc-gold-darker: #62532C; /* Darker Gold */
  --tc-gold-dark: #b39157; /* Dark Gold (TONED Cream) */
  --tc-gold-border: #B4A078; /* Border Gold */
  --tc-border-subtle: #262a32;
  --spm-cyan: #20e0ff;
  --spm-red: #ef4940;
  --spm-red-gold: rgba(213,163,163,1.00);

  /* Sub-brand: TONED */
  --toned-bg: #f6f3f0;
  --toned-ink: #3d3b45;
  --toned-rose-gold: #D5B4A3;
  --toned-rose: #cfa7b8;
  --toned-gold: #d39ca7;

  /* Sub-brand: TONED (Purple) */
  --toned-purple: #4B2E5A;
  --toned-purple-surface: #5C3B6E;
  --toned-purple-shadow: #2A1B33;
  --toned-bone: #ECEAE7;
  --toned-stone: #DDD7CC;

  /* Clinic.php colors */
  --clinic-bg: rgb(26, 29, 34);
  --clinic-surface: rgb(32, 36, 42);
  --clinic-text: rgb(236, 234, 231);
  --clinic-text-soft: rgb(200, 195, 190);
  --clinic-gold: rgb(213, 199, 163);
  --clinic-gold-hover: rgb(226, 214, 182);
  --clinic-shadow-light: rgba(236, 234, 231, 0.08);
  --clinic-shadow-dark: rgba(0, 0, 0, 0.8);
  --clinic-shadow-inset-light: rgba(236, 234, 231, 0.05);
  --clinic-shadow-inset-dark: rgba(0, 0, 0, 0.55);

  /* Global type scale: reduce all text ~10% */
  --tc-font-scale: 0.9;

  /* Shared effect tokens */
  --engrave: inset 0 0 1px 2px rgba(var(--light), calc(0.5 * var(--light-mod)));
}

/* ==========================================================================
   Theme system
   ========================================================================== */

/* Base theme variables */
.theme {
  --color-active: rgb(213, 199, 163);
  --color-active-hover: rgb(226, 214, 182);
  --color-active-pressed: rgb(98, 83, 44);
}

/* Light theme (foundations) */
.theme.theme-light,
.theme.theme_color_tc.theme-light {
  --tc-bone: #eceae7;
  --color-bg-default: rgb(236, 234, 231);
  --light: 255, 255, 255;
  --shadow: 180, 175, 170;
  --light-mod: 0.3;
  --shadow-mod: 0.15;

  /* Light theme specific colors */
  --button-text-color: #616161;
  --button-clicked-text: rgb(80, 75, 70);
  --card-border: rgb(180, 175, 170);
  --card-border-initial: rgb(160, 155, 150);
  --card-text-color: rgb(80, 75, 70);
  --card-text-initial: rgb(70, 65, 60);
  --card-shadow-inset-light: 0.2;
  --card-shadow-inset-shadow: 0.5;
  --button-shadow-light: 0.8;
  --button-shadow-shadow: 0.3;
  --wave-light-mod: 1.2;
  --wave-shadow-mod: 0.6;
  --wave-shadow-mod-alt: 0.5;
  --wave-shadow-mod-alt2: 0.4;
}

/* Dark theme (index) */
.theme.theme-dark,
.theme.theme_color_tc:not(.theme-light):not(.theme-cream):not(.theme-toned):not(.theme-dppc) {
  --color-bg-default: rgba(26,29,34,0.96);
  --light: 236, 234, 231;
  --shadow: 0, 0, 0;
  --light-mod: 0.08;
  --shadow-mod: 2;

  /* Dark theme specific colors */
  --button-text-color: var(--color-active-hover);
  --button-clicked-text: rgb(26, 29, 34);
  --card-border: rgb(50, 42, 30);
  --card-border-initial: rgb(55, 42, 38);
  --card-text-color: rgb(50, 42, 30);
  --card-text-initial: rgb(55, 42, 38);
  --card-shadow-inset-light: 0.05;
  --card-shadow-inset-shadow: 0.55;
  --button-shadow-light: 0.05;
  --button-shadow-shadow: 0.6;
  --wave-light-mod: 1;
  --wave-shadow-mod: 0.4;
  --wave-shadow-mod-alt: 0.3;
  --wave-shadow-mod-alt2: 0.2;
  color: aliceblue;
}

/* Cream theme (TONED) */
.theme.theme-cream,
.theme.theme_color_tc.theme-cream {
  --color-active: #b39157;
  --color-active-hover: #c6a56c;
  --color-active-pressed: #7a5d33;

  --tc-bone: #f7f4ed;
  --tc-bone-warm: #e7dfd2;
  --color-bg-default: #f7f4ed;
  --light: 255, 255, 255;
  --shadow: 180, 175, 170;
  --light-mod: 0.35;
  --shadow-mod: 0.18;

  /* Cream theme specific colors */
  --button-text-color: #1f1f1f;
  --button-clicked-text: #1f1f1f;
  --card-border: rgba(179,145,87,0.35);
  --card-border-initial: rgba(179,145,87,0.55);
  --card-text-color: #1f1f1f;
  --card-text-initial: #1f1f1f;
  --card-shadow-inset-light: 0.25;
  --card-shadow-inset-shadow: 0.45;
  --button-shadow-light: 0.7;
  --button-shadow-shadow: 0.25;
  --wave-light-mod: 1.15;
  --wave-shadow-mod: 0.55;
  --wave-shadow-mod-alt: 0.45;
  --wave-shadow-mod-alt2: 0.35;
}

/* DPPC theme (DPPC) */
.theme.theme-dppc,
.theme.theme_color_tc.theme-dppc {
  /* Keep gold accents (active/hover) */
  --color-active: #b39157;
  --color-active-hover: #c6a56c;
  --color-active-pressed: #7a5d33;

  /* Soft clinical white */
  --tc-bone: #F5F6F4;
  --tc-bone-warm: #E7E9E4;
  --color-bg-default: #F5F6F4;
  --light: 255, 255, 255;
  --shadow: 180, 175, 170;
  --light-mod: 0.35;
  --shadow-mod: 0.18;

  /* DPPC ink */
  --button-text-color: #1E1F21;
  --button-clicked-text: #1E1F21;
  --card-border: rgba(179,145,87,0.35);
  --card-border-initial: rgba(179,145,87,0.55);
  --card-text-color: #1E1F21;
  --card-text-initial: #1E1F21;
  --card-shadow-inset-light: 0.25;
  --card-shadow-inset-shadow: 0.45;
  --button-shadow-light: 0.7;
  --button-shadow-shadow: 0.25;
  --wave-light-mod: 1.15;
  --wave-shadow-mod: 0.55;
  --wave-shadow-mod-alt: 0.45;
  --wave-shadow-mod-alt2: 0.35;
}

/* TONED purple theme (TONED) */
.theme.theme-toned,
.theme.theme_color_tc.theme-toned {
  --color-active: #D5C7A3;
  --color-active-hover: #E2D6B6;
  --color-active-pressed: #62532C;

  --color-bg-default: #4B2E5A;
  --tc-bone: #ECEAE7;
  --tc-bone-soft: rgba(236,234,231,0.78);

  --button-text-color: #ECEAE7;
  --button-clicked-text: #2A1B33;

  --card-border: rgba(213,199,163,0.28);
  --card-border-initial: rgba(213,199,163,0.45);
  --card-text-color: #ECEAE7;
  --card-text-initial: #ECEAE7;

  /* Neumorphic shadow tuning (dark-ish) */
  --light: 236, 234, 231;
  --shadow: 0, 0, 0;
  --light-mod: 0.08;
  --shadow-mod: 2;
  --card-shadow-inset-light: 0.05;
  --card-shadow-inset-shadow: 0.55;
  --button-shadow-light: 0.06;
  --button-shadow-shadow: 0.65;
  --wave-light-mod: 1;
  --wave-shadow-mod: 0.4;
  --wave-shadow-mod-alt: 0.3;
  --wave-shadow-mod-alt2: 0.2;
}

/* ==========================================================================
   Base styles
   ========================================================================== */
html, body {
  height: 100%;
  min-height: 100vh;
}

body {
  margin: 0;
  background:
    linear-gradient(
      120deg,
      rgba(var(--shadow), calc(0 * var(--shadow-mod))) 30%,
      rgba(var(--shadow), calc(0.2 * var(--shadow-mod)))
    ),
    linear-gradient(var(--color-bg-default), var(--color-bg-default));
  background-attachment: fixed;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  /* Make font scaling apply to ALL inherited text */
  font-size: calc(1rem * var(--tc-font-scale));
  overflow-x: hidden;
  overflow-y: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Body copy font: Fiona Regular (exclude headings)
   Applies to paragraphs, lists, and other body text. */
:where(p, ul, ol, li, dl, dt, dd, blockquote, figcaption) {
  font-family: "Antic Didone", serif;
  font-weight: 100;
  font-style: normal;
  letter-spacing: 0.1em;
  line-height: 150%;
}

/* Keep native heading sizing (unscaled) */
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; letter-spacing: 1px; }
h3 { font-size: 1.17rem; letter-spacing: 1px; }
h4 { font-size: 1rem; letter-spacing: 1px; }
h5 { font-size: 0.83rem; letter-spacing: 1px; }
h6 { font-size: 0.67rem; letter-spacing: 1px; }

/* =========================================
   Heading fonts (secondary): Miller Banner
   Apply to h2 and below (leave h1 alone).
   ========================================= */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: "miller-banner", serif;
  font-weight: 400;
  font-style: normal;
}

/* ==========================================================================
   Links
   ========================================================================== */
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

/* Font utility classes (Miller Banner families)
   Note: these assume the fonts are loaded elsewhere (e.g. webfont service). */
.font-miller-banner { font-family: "miller-banner", serif; font-weight: 400; font-style: normal; }
.font-miller-banner-italic { font-family: "miller-banner", serif; font-weight: 400; font-style: italic; }
.font-miller-banner-bold { font-family: "miller-banner", serif; font-weight: 700; font-style: normal; }
.font-miller-banner-bold-italic { font-family: "miller-banner", serif; font-weight: 700; font-style: italic; }

.font-miller-banner-ex-compressed { font-family: "miller-banner-ex-compressed", sans-serif; font-weight: 400; font-style: normal; }
.font-miller-banner-ex-compressed-italic { font-family: "miller-banner-ex-compressed", sans-serif; font-weight: 400; font-style: italic; }
.font-miller-banner-ex-compressed-bold { font-family: "miller-banner-ex-compressed", sans-serif; font-weight: 700; font-style: normal; }
.font-miller-banner-ex-compressed-bold-italic { font-family: "miller-banner-ex-compressed", sans-serif; font-weight: 700; font-style: italic; }

.font-miller-banner-compressed { font-family: "miller-banner-compressed", sans-serif; font-weight: 400; font-style: normal; }
.font-miller-banner-compressed-italic { font-family: "miller-banner-compressed", sans-serif; font-weight: 400; font-style: italic; }
.font-miller-banner-compressed-bold { font-family: "miller-banner-compressed", sans-serif; font-weight: 700; font-style: normal; }
.font-miller-banner-compressed-bold-italic { font-family: "miller-banner-compressed", sans-serif; font-weight: 700; font-style: italic; }

.font-miller-banner-ex-condensed { font-family: "miller-banner-ex-condensed", sans-serif; font-weight: 400; font-style: normal; }
.font-miller-banner-ex-condensed-italic { font-family: "miller-banner-ex-condensed", sans-serif; font-weight: 400; font-style: italic; }
.font-miller-banner-ex-condensed-bold { font-family: "miller-banner-ex-condensed", sans-serif; font-weight: 700; font-style: normal; }
.font-miller-banner-ex-condensed-bold-italic { font-family: "miller-banner-ex-condensed", sans-serif; font-weight: 700; font-style: italic; }

.font-miller-banner-condensed { font-family: "miller-banner-condensed", sans-serif; font-weight: 400; font-style: normal; }
.font-miller-banner-condensed-italic { font-family: "miller-banner-condensed", sans-serif; font-weight: 400; font-style: italic; }
.font-miller-banner-condensed-bold { font-family: "miller-banner-condensed", sans-serif; font-weight: 700; font-style: normal; }
.font-miller-banner-condensed-bold-italic { font-family: "miller-banner-condensed", sans-serif; font-weight: 700; font-style: italic; }

/* ==========================================================================
   Theme-specific backgrounds
   ========================================================================== */

/* Cream theme gradient background */
body.theme-cream,
body.theme.theme-cream,
body.theme_color_tc.theme-cream {
  background:
    linear-gradient(120deg,
      rgba(247,244,237,0.96) 0%,
      rgba(231,223,210,0.86) 55%,
      rgba(247,244,237,0.93) 100%
    ),
    linear-gradient(to bottom, #f7f4ed 0%, #e7dfd2 100%);
  background-attachment: fixed;
}

/* DPPC theme gradient background */
body.theme-dppc,
body.theme.theme-dppc,
body.theme_color_tc.theme-dppc {
  background:
    linear-gradient(120deg,
      rgba(245,246,244,0.96) 0%,
      rgba(231,233,228,0.86) 55%,
      rgba(245,246,244,0.93) 100%
    ),
    linear-gradient(to bottom, #F5F6F4 0%, #E7E9E4 100%);
  background-attachment: fixed;
}

/* TONED purple gradient background */
body.theme-toned,
body.theme.theme-toned,
body.theme_color_tc.theme-toned {
  background:
    linear-gradient(120deg,
      rgba(42,27,51,0.45) 0%,
      rgba(75,46,90,0.92) 55%,
      rgba(92,59,110,0.85) 100%
    ),
    linear-gradient(to bottom, #2A1B33 0%, #4B2E5A 70%, #5C3B6E 100%);
  background-attachment: fixed;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ==========================================================================
   Components: Button
   ========================================================================== */
.button {
  --button-content-color: var(--color-active);

  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;

  width: auto;
  border: none;
  border-radius: 23px;
  box-sizing: border-box;
  background: var(--color-bg-default);
  outline: none;
  cursor: pointer;
  transition: background 0.5s ease-in, box-shadow 0.5s ease-in 0.25s;
}

/* Light theme button sizing */
.theme-light .button {
  min-height: 46px;
  height: auto;
  padding: 12px 24px;
  box-shadow:
    3px 3px 6px rgba(var(--shadow), var(--button-shadow-shadow)),
    -3px -3px 6px rgba(var(--light), var(--button-shadow-light));
}

/* Dark theme button sizing */
.theme-dark .button,
.theme_color_tc:not(.theme-light):not(.theme-cream):not(.theme-toned):not(.theme-dppc) .button {
  height: 46px;
  padding: 0 24px;
  box-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.6),
    -3px -3px 6px rgba(255, 255, 255, 0.05);
}

/* Cream theme button sizing */
.theme-cream .button,
.theme_color_tc.theme-cream .button,
.theme-dppc .button,
.theme_color_tc.theme-dppc .button {
  min-height: 46px;
  height: auto;
  padding: 12px 24px;
  box-shadow:
    3px 3px 6px rgba(var(--shadow), var(--button-shadow-shadow)),
    -3px -3px 6px rgba(var(--light), var(--button-shadow-light));
}

/* TONED purple button sizing */
.theme-toned .button,
.theme_color_tc.theme-toned .button {
  min-height: 46px;
  height: auto;
  padding: 12px 24px;
  box-shadow:
    3px 3px 6px rgba(var(--shadow), var(--button-shadow-shadow)),
    -3px -3px 6px rgba(var(--light), var(--button-shadow-light));
}

.button::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  backdrop-filter: blur(0.68px);
  pointer-events: none;
}

.button::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 10%;
  right: 10%;
  bottom: 10%;
  border-radius: 99em;
  background:
    radial-gradient(
      circle at 80% 80%,
      rgba(var(--light), calc(0.9 * var(--light-mod))) 25%,
      rgba(var(--shadow), calc(0.28 * var(--shadow-mod)))
    );
  opacity: 0;
  filter: blur(8.1px);
}

.button__play {
  position: relative;
  z-index: 2;
  transform: scale(1);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: calc(9pt * var(--tc-font-scale));
  color: var(--button-text-color);
  text-shadow:
    0 0 4px rgba(198, 165, 108, 0.2),
    0 0 8px rgba(226, 214, 182, 0.1),
    0 0 0px var(--button-content-color),
    inset 0 0 0px var(--button-content-color);
  transition: color 0.5s ease-in, text-shadow 0.5s ease-in;
}

/* Non-active button text opacity */
.button:not(.is-clicked) .button__play {
  opacity: 0.6;
}

/* Cream theme button text shadow */
.theme-cream .button__play,
.theme_color_tc.theme-cream .button__play,
.theme-dppc .button__play,
.theme_color_tc.theme-dppc .button__play {
  text-shadow:
    0 0 4px rgba(198, 165, 108, 0.2),
    0 0 8px rgba(198, 165, 108, 0.1),
    0 0 0px var(--button-content-color),
    inset 0 0 0px var(--button-content-color);
}

/* TONED purple button text shadow (gold only) */
.theme-toned .button__play,
.theme_color_tc.theme-toned .button__play {
  text-shadow:
    0 0 4px rgba(198, 165, 108, 0.2),
    0 0 8px rgba(226, 214, 182, 0.1),
    0 0 0px var(--button-content-color),
    inset 0 0 0px var(--button-content-color);
}

/* Light theme button text layout */
.theme-light .button__play {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.4;
}

/* Cream theme button text layout */
.theme-cream .button__play,
.theme_color_tc.theme-cream .button__play,
.theme-dppc .button__play,
.theme_color_tc.theme-dppc .button__play {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.4;
}

/* TONED purple button text layout */
.theme-toned .button__play,
.theme_color_tc.theme-toned .button__play {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.4;
}

.button__play span {
  display: block;
  font-size: 0.75em;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  margin-top: 4px;
  color: var(--button-text-color);
  opacity: 0.85;
}

.button__waves {
  opacity: 0;
  pointer-events: none;
}

.button__waves,
.button__waves::before,
.button__waves::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 99em;
  transform: translate(-50%, -50%) scale(1) translateZ(0);
  will-change: transform, opacity;
}

.button__waves::before,
.button__waves::after {
  content: "";
}

/* Light theme wave shadows */
.theme-light .button__waves::before,
.theme-light .button__waves::after {
  box-shadow:
    inset -7px -10.5px 10px -5px rgba(var(--light), calc(var(--wave-light-mod) * var(--light-mod))),
    inset 7px 10.5px 10px -5px rgba(var(--shadow), calc(var(--wave-shadow-mod) * var(--shadow-mod))),
    inset 5px 7.5px 10px -5px rgba(var(--light), calc(var(--wave-light-mod) * var(--light-mod))),
    inset -10px -15px 6px -16px rgba(var(--shadow), calc(var(--wave-shadow-mod) * var(--shadow-mod))),
    inset -10px -15px 20px -10px rgba(var(--shadow), calc(var(--wave-shadow-mod-alt) * var(--shadow-mod))),
    -5px -7.5px 8px -1px rgba(var(--light), calc(var(--wave-light-mod) * var(--light-mod))),
    6px 9px 6px -9px rgba(var(--shadow), calc(var(--wave-shadow-mod) * var(--shadow-mod))),
    6.5px 10px 10px -6px rgba(var(--shadow), calc(var(--wave-shadow-mod-alt2) * var(--shadow-mod)));
}

/* Cream theme wave shadows */
.theme-cream .button__waves::before,
.theme-cream .button__waves::after,
.theme_color_tc.theme-cream .button__waves::before,
.theme_color_tc.theme-cream .button__waves::after,
.theme-dppc .button__waves::before,
.theme-dppc .button__waves::after,
.theme_color_tc.theme-dppc .button__waves::before,
.theme_color_tc.theme-dppc .button__waves::after {
  box-shadow:
    inset -7px -10.5px 10px -5px rgba(var(--light), calc(var(--wave-light-mod) * var(--light-mod))),
    inset 7px 10.5px 10px -5px rgba(var(--shadow), calc(var(--wave-shadow-mod) * var(--shadow-mod))),
    inset 5px 7.5px 10px -5px rgba(var(--light), calc(var(--wave-light-mod) * var(--light-mod))),
    inset -10px -15px 6px -16px rgba(var(--shadow), calc(var(--wave-shadow-mod) * var(--shadow-mod))),
    inset -10px -15px 20px -10px rgba(var(--shadow), calc(var(--wave-shadow-mod-alt) * var(--shadow-mod))),
    -5px -7.5px 8px -1px rgba(var(--light), calc(var(--wave-light-mod) * var(--light-mod))),
    6px 9px 6px -9px rgba(var(--shadow), calc(var(--wave-shadow-mod) * var(--shadow-mod))),
    6.5px 10px 10px -6px rgba(var(--shadow), calc(var(--wave-shadow-mod-alt2) * var(--shadow-mod)));
}

/* Dark theme wave shadows */
.theme-dark .button__waves::before,
.theme-dark .button__waves::after,
.theme_color_tc:not(.theme-light) .button__waves::before,
.theme_color_tc:not(.theme-light) .button__waves::after {
  box-shadow:
    inset -7px -10.5px 10px -5px rgba(var(--light), calc(var(--wave-light-mod) * var(--light-mod))),
    inset 7px 10.5px 10px -5px rgba(var(--shadow), calc(var(--wave-shadow-mod) * var(--shadow-mod))),
    inset 5px 7.5px 10px -5px rgba(var(--light), calc(var(--wave-light-mod) * var(--light-mod))),
    inset -10px -15px 6px -16px rgba(var(--shadow), calc(var(--wave-shadow-mod) * var(--shadow-mod))),
    inset -10px -15px 20px -10px rgba(var(--shadow), calc(var(--wave-shadow-mod-alt) * var(--shadow-mod))),
    -5px -7.5px 8px -1px rgba(var(--light), calc(var(--wave-light-mod) * var(--light-mod))),
    6px 9px 6px -9px rgba(var(--shadow), calc(var(--wave-shadow-mod) * var(--shadow-mod))),
    6.5px 10px 10px -6px rgba(var(--shadow), calc(var(--wave-shadow-mod-alt2) * var(--shadow-mod)));
}

/* Button States */
.button.is-pressed::after {
  animation: ButtonInnerShadowAnimation 0.8s ease both;
}

.button.is-pressed .button__play {
  animation: PlayMainAnimation 0.8s ease;
}

.button.is-pressed .button__waves {
  animation: WaveMainAnimation 2s linear both;
}

.button.is-pressed .button__waves::before {
  animation: WaveBeforeAnimation 1.1s 0.1s linear both;
}

.button.is-pressed .button__waves::after {
  animation: WaveBeforeAnimation 0.9s 0.55s linear both;
}

.button.is-clicked {
  background: var(--color-active-hover);
  transition: background 0.5s ease-in, box-shadow 0.5s ease-in 0.25s;
}

/* =========================
   Excluded (Truth Violation)
   ========================= */

.button.is-clicked.is-excluded {
  background: radial-gradient(
    120% 120% at 30% 20%,
    #BC4040 0%,
    #7E2B2B 55%,
    #3a1414 100%
  );
  color: #FFFFFF;
  border-color: rgba(255, 80, 80, 0.6);
  box-shadow:
    0 0 0 2px rgba(255, 80, 80, 0.15),
    0 0 18px rgba(255, 80, 80, 0.25);
}

.button.is-clicked.is-excluded .button__play,
.button.is-clicked.is-excluded .button__play span {
  color: #FFFFFF;
  opacity: 1;
}

/* Light theme clicked state */
.theme-light .button.is-clicked {
  box-shadow:
    0 0 20px rgba(226, 214, 182, 0.6),
    0 0 40px rgba(226, 214, 182, 0.4),
    3px 3px 6px rgba(var(--shadow), 0.2),
    -3px -3px 6px rgba(var(--light), 0.8);
}

/* Dark theme clicked state */
.theme-dark .button.is-clicked,
.theme_color_tc:not(.theme-light):not(.theme-cream):not(.theme-toned):not(.theme-dppc) .button.is-clicked {
  box-shadow:
    0 0 20px rgba(226, 214, 182, 0.6),
    0 0 40px rgba(226, 214, 182, 0.4),
    3px 3px 6px rgba(0, 0, 0, 0.6),
    -3px -3px 6px rgba(255, 255, 255, 0.05);
}

/* Cream theme clicked state */
.theme-cream .button.is-clicked,
.theme_color_tc.theme-cream .button.is-clicked,
.theme-dppc .button.is-clicked,
.theme_color_tc.theme-dppc .button.is-clicked {
  box-shadow:
    0 0 20px rgba(198, 165, 108, 0.5),
    0 0 40px rgba(198, 165, 108, 0.3),
    3px 3px 6px rgba(var(--shadow), 0.2),
    -3px -3px 6px rgba(var(--light), 0.7);
}

/* TONED purple clicked state (gold only) */
.theme-toned .button.is-clicked,
.theme_color_tc.theme-toned .button.is-clicked {
  box-shadow:
    0 0 20px rgba(226, 214, 182, 0.55),
    0 0 40px rgba(226, 214, 182, 0.33),
    3px 3px 6px rgba(0, 0, 0, 0.6),
    -3px -3px 6px rgba(236, 234, 231, 0.05);
}

/* Misaligned options: force red glow instead of gold */
.theme-light .button.is-clicked.is-excluded {
  box-shadow:
    0 0 0 2px rgba(255, 80, 80, 0.15),
    0 0 18px rgba(255, 80, 80, 0.25),
    3px 3px 6px rgba(var(--shadow), 0.2),
    -3px -3px 6px rgba(var(--light), 0.8);
}

.theme-dark .button.is-clicked.is-excluded,
.theme_color_tc:not(.theme-light):not(.theme-cream):not(.theme-toned):not(.theme-dppc) .button.is-clicked.is-excluded {
  box-shadow:
    0 0 0 2px rgba(255, 80, 80, 0.15),
    0 0 18px rgba(255, 80, 80, 0.25),
    3px 3px 6px rgba(0, 0, 0, 0.6),
    -3px -3px 6px rgba(255, 255, 255, 0.05);
}

.theme-cream .button.is-clicked.is-excluded,
.theme_color_tc.theme-cream .button.is-clicked.is-excluded,
.theme-dppc .button.is-clicked.is-excluded,
.theme_color_tc.theme-dppc .button.is-clicked.is-excluded {
  box-shadow:
    0 0 0 2px rgba(255, 80, 80, 0.15),
    0 0 18px rgba(255, 80, 80, 0.25),
    3px 3px 6px rgba(var(--shadow), 0.2),
    -3px -3px 6px rgba(var(--light), 0.7);
}

.theme-toned .button.is-clicked.is-excluded,
.theme_color_tc.theme-toned .button.is-clicked.is-excluded {
  box-shadow:
    0 0 0 2px rgba(255, 80, 80, 0.15),
    0 0 18px rgba(255, 80, 80, 0.25),
    3px 3px 6px rgba(0, 0, 0, 0.6),
    -3px -3px 6px rgba(236, 234, 231, 0.05);
}

.button.is-clicked .button__play {
  color: var(--button-clicked-text);
  text-shadow: none;
  transition: color 0.5s ease-in, text-shadow 0.5s ease-in;
}

.theme-light .button.is-clicked .button__play span {
  color: var(--button-clicked-text);
  opacity: 0.9;
}

.theme-dark .button.is-clicked .button__play span,
.theme_color_tc:not(.theme-light):not(.theme-cream):not(.theme-toned):not(.theme-dppc) .button.is-clicked .button__play span {
  color: var(--button-clicked-text);
  opacity: 1;
}

.theme-cream .button.is-clicked .button__play span,
.theme_color_tc.theme-cream .button.is-clicked .button__play span,
.theme-dppc .button.is-clicked .button__play span,
.theme_color_tc.theme-dppc .button.is-clicked .button__play span {
  color: var(--button-clicked-text);
  opacity: 0.9;
}

.theme-toned .button.is-clicked .button__play span,
.theme_color_tc.theme-toned .button.is-clicked .button__play span {
  color: var(--button-clicked-text);
  opacity: 0.95;
}

/* Gold border for next options buttons */
.tc-next-btn-gold {
  border: 2px solid rgba(180, 160, 120, 0.6);
}

.tc-next-btn-gold.is-clicked {
  border-color: rgba(213, 199, 163, 0.8);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes ButtonInnerShadowAnimation {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes PlayMainAnimation {
  50% {
    --button-content-color: var(--color-active-pressed);
    transform: scale(0.94);
    text-shadow:
      0 0 8px rgba(213, 199, 163, 0.18),
      0 0 14px rgba(213, 199, 163, 0.10);
  }
}

/* Cream theme button animation shadow */
.theme-cream .button.is-pressed .button__play,
.theme_color_tc.theme-cream .button.is-pressed .button__play,
.theme-dppc .button.is-pressed .button__play,
.theme_color_tc.theme-dppc .button.is-pressed .button__play {
  animation: PlayMainAnimationCream 0.8s ease;
}

@keyframes PlayMainAnimationCream {
  50% {
    --button-content-color: var(--color-active-pressed);
    transform: scale(0.94);
    text-shadow:
      0 0 8px rgba(179, 145, 87, 0.18),
      0 0 14px rgba(179, 145, 87, 0.10);
  }
}

@keyframes WaveMainAnimation {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0.8; }
}

.theme-dark .button.is-pressed .button__waves,
.theme_color_tc:not(.theme-light):not(.theme-cream):not(.theme-toned):not(.theme-dppc) .button.is-pressed .button__waves {
  animation: WaveMainAnimationDark 2s linear both;
}

@keyframes WaveMainAnimationDark {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes WaveBeforeAnimation {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  30% { opacity: 0.8; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

.theme-dark .button.is-pressed .button__waves::before,
.theme-dark .button.is-pressed .button__waves::after,
.theme_color_tc:not(.theme-light):not(.theme-cream):not(.theme-toned):not(.theme-dppc) .button.is-pressed .button__waves::before,
.theme_color_tc:not(.theme-light):not(.theme-cream):not(.theme-toned):not(.theme-dppc) .button.is-pressed .button__waves::after {
  animation: WaveBeforeAnimationDark 1.1s 0.1s linear both;
}

.theme-dark .button.is-pressed .button__waves::after,
.theme_color_tc:not(.theme-light):not(.theme-cream):not(.theme-toned):not(.theme-dppc) .button.is-pressed .button__waves::after {
  animation: WaveBeforeAnimationDark 0.9s 0.55s linear both;
}

@keyframes WaveBeforeAnimationDark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  30% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

.tc-bubble {
  width: 100%;
}

.tc-options {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  box-sizing: border-box;
}

.tc-hidden {
  display: none;
}

/* ==========================================================================
   Overlay wrapper (sits above the flow until START)
   ========================================================================== */
.tc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.tc-overlay.is-fading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.tc-overlay-active {
  overflow: hidden;
}

/* Sven layer can sit above #site-home in DOM; never let it show through during gate */
body.site-phase--gate #intro-experience {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Persistent Ken Burns hero (stays after overlay removed) */
#tcHeroBackdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#tcHeroBackdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("images/splash/hero.webp");
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.65) contrast(1.1);
  animation: kenBurnsDrift 25s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: 55% 45%;
}
#tcHeroBackdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse at 50% 45%,
      rgba(12, 13, 15, 0.55) 0%,
      rgba(12, 13, 15, 0.78) 50%,
      rgba(12, 13, 15, 0.92) 100%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      transparent 40%,
      rgba(213, 199, 163, 0.04) 100%
    );
  pointer-events: none;
}
@keyframes kenBurnsDrift {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.08) translate(-1%, 0.5%); }
}
/* Logo first, merged taglines below (aliceblue) */
.tc-brand-stack {
  width: 100vw;
  max-width: 100%;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: transparent;
}
.tc-brand-stack .tc-brand-logo {
  width: 58%;
  max-width: calc(515px * 0.85 * 0.68);
  display: block;
  flex: 0 0 auto;
}
.tc-brand-taglines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0 16px;
  max-width: min(28rem, 94vw);
}
.tc-intent-kicker {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 3.4vw, 18px);
  letter-spacing: 0.05em;
  text-transform: none;
  color: aliceblue;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  width: 100%;
}
.tc-intent-prompt {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 4.25vw, 28px);
  letter-spacing: 0.03em;
  color: aliceblue;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1.3;
  width: 100%;
}
#tcIntentGroup {
  width: 100%;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}
#tcIntentGroup .button {
  width: 100%;
  justify-content: center;
  height: auto;
  min-height: 48px;
  padding: 11px 16px;
  max-width: 100%;
  border-radius: 20px;
}
#tcIntentGroup .button .button__play {
  white-space: normal;
  text-align: center;
  line-height: 1.34;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 700;
  font-size: clamp(13px, 3.05vw, 18px);
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.18em;
  column-gap: 0.26em;
}
#tcIntentGroup .button .button__play .tc-intent-main {
  display: inline;
  margin-top: 0;
  font-size: inherit;
  font-weight: 800;
  opacity: 1;
  color: inherit;
}
#tcIntentGroup .button .button__play .tc-intent-paren {
  display: inline;
  margin-top: 0;
  font-weight: 500;
  font-size: clamp(11.5px, 2.65vw, 15px);
  letter-spacing: 0.03em;
  opacity: 0.95;
  color: inherit;
}
#tcIntentGroup .button.is-clicked .button__play {
  text-transform: none;
}
#tcIntentGroup .button:not(.is-clicked) .button__play {
  opacity: 0.9;
}

/* Gate entrance: scrim → logo (+0.25s) → intent shells every 0.1s → then copy + START */
@keyframes tcGateRevealIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tcGateScrimFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* both = apply first keyframe during animation-delay (default none shows full opacity from theme rules) */
.tc-stage--gate .tc-brand-stack .tc-brand-logo {
  opacity: 0;
  animation: tcGateRevealIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.25s 1 normal both;
}

/* Headline (“Every sport…”) — after intent lines begin to read */
.tc-stage--gate .tc-brand-taglines {
  opacity: 0;
  animation: tcGateRevealIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) 1.08s 1 normal both;
}

/* Intent pill shells (whole .button fades; text on .button__play stays hidden longer) */
.tc-stage--gate #tcIntentGroup > .button {
  opacity: 0;
  animation: tcGateRevealIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal both;
}

.tc-stage--gate #tcIntentGroup > .button:nth-child(1) {
  animation-delay: 0.35s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(2) {
  animation-delay: 0.45s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(3) {
  animation-delay: 0.55s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(4) {
  animation-delay: 0.65s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(5) {
  animation-delay: 0.75s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(6) {
  animation-delay: 0.85s;
}

.tc-stage--gate #tcIntentGroup > .button .button__play {
  opacity: 0;
  animation: tcGateRevealIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal both;
}

.tc-stage--gate #tcIntentGroup > .button:nth-child(1) .button__play {
  animation-delay: 0.92s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(2) .button__play {
  animation-delay: 0.97s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(3) .button__play {
  animation-delay: 1.02s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(4) .button__play {
  animation-delay: 1.07s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(5) .button__play {
  animation-delay: 1.12s;
}
.tc-stage--gate #tcIntentGroup > .button:nth-child(6) .button__play {
  animation-delay: 1.17s;
}

.tc-stage--gate .tc-start-wrap {
  opacity: 0;
  animation: tcGateRevealIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1.28s 1 normal both;
}

.tc-tagline {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: calc(9.5pt * var(--tc-font-scale));
  letter-spacing: 0.18em;
  color: rgba(144, 144, 144, 0.85);
  text-align: center;
  text-transform: uppercase;
  padding: 0 20px;
  margin: 0;
  line-height: 1.6;
  user-select: none;
}
/* ==========================================================================
   Stage layout (3-band)
   ========================================================================== */
.tc-stage {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
  overflow: hidden;
  padding: 10vh 0;
}

/* Gate: center header + options + START as one column; gap grows when viewport is tall */
.tc-stage.tc-stage--gate {
  position: relative;
  box-sizing: border-box;
  min-height: 85vh;
  min-height: 100dvh;
  padding: clamp(18px, 4vh, 44px) clamp(12px, 4vw, 24px);
  justify-content: center;
  align-items: center;
  background: transparent;
  isolation: isolate;
  overflow: visible;
}

/* Dark scrim over hero: fades in first (see entrance keyframes above) */
.tc-stage.tc-stage--gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 42%,
      rgba(12, 13, 15, 0.5) 0%,
      rgba(12, 13, 15, 0.82) 55%,
      rgba(12, 13, 15, 0.92) 100%
    );
  opacity: 0;
  animation: tcGateScrimFadeIn 0.48s ease-out 0s 1 normal both;
}

.tc-gate-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  gap: clamp(14px, 2.2vh, 22px);
  position: relative;
  z-index: 1;
}

@media (min-height: 640px) {
  .tc-gate-stack {
    gap: clamp(18px, 3.5vh, 40px);
  }
}

@media (min-height: 780px) {
  .tc-gate-stack {
    gap: clamp(22px, 4.5vh, 48px);
  }
}

.tc-gate-block--brand {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.tc-gate-block--intents {
  flex: 0 1 auto;
  width: 100%;
  min-height: 0;
}

.tc-gate-block--start {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.tc-band {
  width: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
}

.tc-band--top { align-items: end; padding-bottom: 10px; }
.tc-band--mid { align-items: center; padding: 10px 0; z-index: 5; }
.tc-band--bot { align-items: start; padding-top: 10px; }

/* Center START button uses the existing ripple/wave from `#tcMainCss` (.button). */
.tc-start-wrap {
  display: grid;
  place-items: center;
  width: 100%;
}

/* ==========================================================================
   START button (ID-specific overrides)
   ========================================================================== */
#tcMarqueeStart {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease-in-out;
  position: relative;
}

/* NOTE: We can't use ::before/::after here (main.css uses them for the button bezel).
   Use real elements inside the button instead. */
#tcMarqueeStart .tc-pulse-base {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1a1d22;
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.6),
    inset -2px -2px 4px rgba(236, 234, 231, 0.05);
  pointer-events: none;
}

#tcMarqueeStart .tc-pulse-dot {
  --pulse: rgba(255, 64, 64, 0.9);
  background: rgba(255, 100, 100, 0.95);
  position: absolute;
  top: calc(110% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  z-index: 5;
  box-shadow:
    inset 0px 0px 1px var(--pulse),
    0px 0px 2px var(--pulse),
    0px 0px 3px var(--pulse),
    0px 0px 4px var(--pulse),
    0px 0px 5px var(--pulse),
    0px 0px 6px var(--pulse),
    0px 0px 7px var(--pulse),
    0px 0px 15px var(--pulse),
    0px 0px 20px var(--pulse);
  animation: flashPulse 2.4s infinite alternate forwards;
  pointer-events: none;
}

#tcMarqueeStart.is-ready:not(.is-pressed) .tc-pulse-dot {
  --pulse: rgba(34, 197, 94, 0.95);
  background: rgba(74, 222, 128, 0.95);
}

#tcMarqueeStart.is-pressed .tc-pulse-dot {
  --pulse: rgba(213, 199, 163, 0.95);
  background: rgba(226, 214, 182, 0.95);
}

/* Gold glow ring and backshadow when button is pressed */
#tcMarqueeStart.is-pressed {
  /* Thin internal glow ring (1px border effect) + gold backshadow (50% reduced opacity) */
  box-shadow:
    /* Keep existing neumorphic shadows from main.css */
    3px 3px 6px rgba(0, 0, 0, 0.6),
    -3px -3px 6px rgba(255, 255, 255, 0.05),
    /* Internal glow ring - thin border effect */
    inset 0 0 0 1px rgba(213, 199, 163, 0.4),
    inset 0 0 10px rgba(226, 214, 182, 0.2),
    /* Gold backshadow glow */
    0 0 20px rgba(213, 199, 163, 0.25),
    0 0 40px rgba(213, 199, 163, 0.15),
    0 0 60px rgba(226, 214, 182, 0.1);
  animation: goldGlowPulse 4.5s ease-in-out infinite;
  animation-delay: 1s; /* Wait for wave animation to partially complete */
}

/* Ensure START text opacity transitions smoothly */
#tcMarqueeStart .button__play {
  transition: opacity 0.6s ease-in-out, color 0.5s ease-in, text-shadow 0.5s ease-in;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  gap: 1px;
  font-size: clamp(11px, 2.75vw, 15px);
  letter-spacing: 0.1em;
}
#tcMarqueeStart .button__play .tc-start-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
#tcMarqueeStart .button__play .tc-start-word {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}
#tcMarqueeStart .button__play .tc-start-ready {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 1.38em;
  line-height: 1;
}
#tcMarqueeStart:not(.is-ready) .button__play .tc-start-ready {
  display: none !important;
}
/* Keep idle hidden for entire is-ready state (including is-pressed), else SELECT/ONE flashes back on press */
#tcMarqueeStart.is-ready .button__play .tc-start-idle {
  display: none !important;
}

/* START armed: gold pulse on label */
#tcMarqueeStart.is-ready:not(.is-pressed) .button__play {
  animation-name: startTextPulse !important;
  animation-duration: 5s !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
  animation-fill-mode: both !important;
  transition: opacity 0.6s ease-in-out, filter 0.45s ease, color 0.45s ease !important;
  position: relative;
  z-index: 3;
  will-change: text-shadow, opacity;
  opacity: 1;
  filter: none;
}

/* Idle START (no option yet): grey label + faint fingerprint */
#tcMarqueeStart.tc-start--idle:not(.is-pressed) .button__play {
  animation: none !important;
  opacity: 0.38;
  filter: grayscale(1);
  color: rgba(144, 144, 144, 0.9);
  text-shadow: none;
}
#tcMarqueeStart.tc-start--idle:not(.is-pressed) .fingerprint-container {
  opacity: 0.2;
  visibility: visible;
}
#tcMarqueeStart.tc-start--idle:not(.is-pressed) .fingerprint-svg {
  filter: grayscale(1) brightness(0.75) opacity(0.85);
}
#tcMarqueeStart.tc-start--idle:not(.is-pressed) {
  opacity: 0.72;
  transition: opacity 0.35s ease;
}
#tcMarqueeStart.is-ready:not(.is-pressed) {
  opacity: 1;
}

/* Fade out START text when button is pressed */
#tcMarqueeStart.is-pressed .button__play {
  animation: none;
  transition: opacity 0.6s ease-in-out !important; /* Smooth fade out */
  opacity: 0;
}

/* ==========================================================================
   Neomorphic text
   ========================================================================== */
.neomorphtext {
  text-align: center;
  font-family: "miller-banner", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 55px;
  color: rgb(26, 29, 34);
  text-shadow:
    -2px -2px 3px rgba(255, 255, 255, 0.1),
    3px 3px 5px rgba(0, 0, 0, 0.18);
  caret-color: #262626;
  outline: none;
}

/* ==========================================================================
   Fingerprint overlay (inside START button)
   ========================================================================== */
.fingerprint-container {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}

.fingerprint-svg {
  width: 90px;
  height: 90px;
  filter: drop-shadow(-1px -1px 1px rgba(213, 199, 163, 0.15));
}

/* Show fingerprint when active */
#tcMarqueeStart.is-pressed .fingerprint-container {
  opacity: 1;
  visibility: visible;
}

@keyframes flashPulse {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes goldGlowPulse {
  0% {
    box-shadow:
      /* Keep existing neumorphic shadows from main.css */
      3px 3px 6px rgba(0, 0, 0, 0.6),
      -3px -3px 6px rgba(255, 255, 255, 0.05),
      /* Internal glow ring - thin border effect (50% reduced opacity) */
      inset 0 0 0 1px rgba(213, 199, 163, 0.4),
      inset 0 0 10px rgba(226, 214, 182, 0.2),
      /* Gold backshadow glow (50% reduced opacity) */
      0 0 20px rgba(213, 199, 163, 0.25),
      0 0 40px rgba(213, 199, 163, 0.15),
      0 0 60px rgba(226, 214, 182, 0.1);
  }
  15% {
    box-shadow:
      3px 3px 6px rgba(0, 0, 0, 0.6),
      -3px -3px 6px rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(213, 199, 163, 0.5),
      inset 0 0 15px rgba(226, 214, 182, 0.35),
      0 0 30px rgba(213, 199, 163, 0.4),
      0 0 60px rgba(213, 199, 163, 0.3),
      0 0 90px rgba(226, 214, 182, 0.2);
  }
  30% {
    box-shadow:
      3px 3px 6px rgba(0, 0, 0, 0.6),
      -3px -3px 6px rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(213, 199, 163, 0.4),
      inset 0 0 10px rgba(226, 214, 182, 0.2),
      0 0 20px rgba(213, 199, 163, 0.25),
      0 0 40px rgba(213, 199, 163, 0.15),
      0 0 60px rgba(226, 214, 182, 0.1);
  }
  45% {
    box-shadow:
      3px 3px 6px rgba(0, 0, 0, 0.6),
      -3px -3px 6px rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(213, 199, 163, 0.5),
      inset 0 0 15px rgba(226, 214, 182, 0.35),
      0 0 30px rgba(213, 199, 163, 0.4),
      0 0 60px rgba(213, 199, 163, 0.3),
      0 0 90px rgba(226, 214, 182, 0.2);
  }
  100% {
    box-shadow:
      3px 3px 6px rgba(0, 0, 0, 0.6),
      -3px -3px 6px rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(213, 199, 163, 0.4),
      inset 0 0 10px rgba(226, 214, 182, 0.2),
      0 0 20px rgba(213, 199, 163, 0.25),
      0 0 40px rgba(213, 199, 163, 0.15),
      0 0 60px rgba(226, 214, 182, 0.1);
  }
}

@keyframes startTextPulse {
  0% {
    text-shadow:
      0 0 8px rgba(213, 199, 163, 0.375),
      0 0 16px rgba(213, 199, 163, 0.3),
      0 0 24px rgba(226, 214, 182, 0.225),
      0 0 32px rgba(213, 199, 163, 0.15);
  }
  50% {
    text-shadow:
      0 0 12px rgba(213, 199, 163, 0.525),
      0 0 24px rgba(213, 199, 163, 0.45),
      0 0 36px rgba(226, 214, 182, 0.375),
      0 0 48px rgba(213, 199, 163, 0.3),
      0 0 60px rgba(226, 214, 182, 0.225);
  }
  100% {
    text-shadow:
      0 0 8px rgba(213, 199, 163, 0.375),
      0 0 16px rgba(213, 199, 163, 0.3),
      0 0 24px rgba(226, 214, 182, 0.225),
      0 0 32px rgba(213, 199, 163, 0.15);
  }
}

@media (max-width: 640px) {
  .tc-brand-taglines { margin-top: 10px; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  #tcHeroBackdrop::before { animation: none; }

  .tc-stage.tc-stage--gate::before {
    animation: none !important;
    opacity: 1 !important;
  }

  .tc-stage--gate .tc-brand-stack .tc-brand-logo,
  .tc-stage--gate .tc-brand-taglines,
  .tc-stage--gate #tcIntentGroup > .button,
  .tc-stage--gate #tcIntentGroup > .button .button__play,
  .tc-stage--gate .tc-start-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
