/* ============================================================
   textlayer.css — Text Layer (textlayer.app) chrome + gate skin.
   Brand tokens lifted from textlayer.app's own build stylesheet
   (assets/index-BVcbuSV_.css): --gold #c8952e, --gold-light #e8b84a,
   --gold-dim #8a6520, --pink-highlight #e87a90, --bg-dark #110e08,
   --card-dark #1a1610, amber borders rgba(200,149,46,…), Inter sans
   (their declared --font-sans), 6–8px radii, gold-gradient .btn-create.
   ============================================================ */

body.textlayer {
  --gold: #c8952e;
  --gold-light: #e8b84a;
  --gold-dim: #8a6520;
  --pink: #e87a90;
  --bg-dark: #110e08;
  --card-dark: #1a1610;
  --amber-border: rgba(200, 149, 46, .35);
  --card-border-gold: rgba(200, 149, 46, .25);
  --sans: "Inter", system-ui, sans-serif;

  /* engine tokens — keep every color-mix/shadow the gate derives on brand */
  --brand: var(--gold);
  --brand-ink: #110e08;

  margin: 0;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, .9);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.tl-page { max-width: 720px; margin: 0 auto; padding: 24px 20px 60px; }

/* ---------- masthead ---------- */
.tl-logo-row { display: flex; justify-content: center; padding: 24px 0 8px; }
.tl-logo { height: 80px; width: auto; mix-blend-mode: lighten; }
.tl-eyebrow {
  margin: 0 0 32px; text-align: center;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.tl-goldline {
  height: 1px; width: 80%; max-width: 560px; margin: 0 auto 36px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  opacity: .5;
}

/* ---------- intro ---------- */
.tl-intro { display: flex; align-items: center; gap: 28px; margin-bottom: 26px; }
.tl-intro-copy { flex: 1; text-align: left; }
.tl-pitch { margin: 0; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, .85); }
.tl-pitch .gold-strong { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.tl-pitch .dim70 { color: rgba(255, 255, 255, .7); }
.tl-pitch .pink { color: var(--pink); font-weight: 600; }
.tl-pitch .bright { color: rgba(255, 255, 255, .9); font-weight: 700; }
.tl-pitch .dim60 { color: rgba(255, 255, 255, .6); }
.tl-format-row { display: flex; gap: 10px; padding-top: 14px; }
.tl-chip {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-light); background: var(--card-dark);
  border: 1px solid var(--card-border-gold); border-radius: 6px;
  padding: 5px 10px;
}
.tl-preview-card {
  width: 256px; flex-shrink: 0;
  background: rgba(30, 26, 20, .9); border: 1px solid rgba(200, 149, 46, .15);
  border-radius: 8px; padding: 14px; overflow: hidden;
}
.tl-preview-card img { width: 100%; height: auto; display: block; border-radius: 4px; }
@media (max-width: 640px) {
  .tl-intro { flex-direction: column; text-align: center; }
  .tl-intro-copy { text-align: center; }
  .tl-format-row { justify-content: center; }
}

.tl-sub {
  margin: 0 0 30px; text-align: center;
  font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .55);
}

/* ---------- shared card + button language (theirs) ---------- */
.card-gold {
  border: 1px solid var(--card-border-gold);
  background: var(--card-dark);
  border-radius: 8px;
}
.btn-create {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #110e08; font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: .02em; border: none; padding: 8px 28px; border-radius: 6px;
  cursor: pointer; transition: all .2s;
}
.btn-create:hover { filter: brightness(1.1); box-shadow: 0 0 16px rgba(200, 149, 46, .4); }
.btn-create svg { width: 15px; height: 15px; }

/* ---------- create card ---------- */
.tl-create { padding: 26px 28px 28px; }
.tl-label-italic { margin: 0 0 10px; font-style: italic; color: var(--gold-light); font-size: 14.5px; }
.tl-label { margin: 0 0 10px; color: var(--gold-light); font-size: 14px; font-weight: 500; }
.tl-urlform { display: flex; gap: 10px; }
.tl-input {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(200, 149, 46, .25); border-radius: 6px;
  font-family: var(--sans); font-size: 14px; padding: 9px 13px;
  transition: border-color .2s;
}
.tl-input:focus { outline: none; border-color: var(--gold); }
.or-divider {
  display: flex; align-items: center; gap: 16px; margin: 22px 0;
  color: rgba(255, 255, 255, .4); font-style: italic; font-size: 14px;
}
.or-divider::before, .or-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 149, 46, .3), transparent);
}
.tl-dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 2px dashed var(--amber-border); border-radius: 8px;
  padding: 26px 16px; cursor: pointer; transition: all .2s ease;
  color: rgba(255, 255, 255, .35); font-size: 13px;
}
.tl-dropzone:hover { border-color: var(--gold); background: rgba(200, 149, 46, .04); }
.tl-dropzone svg { width: 22px; height: 22px; color: var(--gold-dim); }

/* ---------- job cards ---------- */
.tl-job { margin-top: 18px; padding: 20px 24px; }
.tl-job.is-done { border-color: rgba(80, 180, 80, .3); }
.tl-job-head { display: flex; align-items: center; gap: 14px; }
.tl-job-title { margin: 0; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.tl-job-sub { margin: 3px 0 0; font-size: 12px; color: rgba(255, 255, 255, .4); }
.tl-spinner {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid rgba(200, 149, 46, .25); border-top-color: var(--gold);
  animation: tlspin .8s linear infinite;
}
@keyframes tlspin { to { transform: rotate(360deg); } }
.tl-bar {
  margin-top: 16px; height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); overflow: hidden;
  box-shadow: 0 0 12px rgba(200, 149, 46, .15);
}
.tl-bar-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  box-shadow: 0 0 10px rgba(232, 184, 74, .5);
  transition: width .15s linear;
}
.tl-check {
  width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center;
  color: #50b450;
}
.tl-check svg { width: 20px; height: 20px; }

/* karaoke word-tracking preview */
.tl-karaoke {
  margin-top: 16px; border-radius: 6px; background: #0b0906;
  border: 1px solid rgba(200, 149, 46, .15);
  padding: 34px 20px 26px; text-align: center;
}
.tl-kline { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.5; color: rgba(255, 255, 255, .35); }
.tl-kline .sung { color: var(--gold-light); }
.tl-kline .now { color: var(--pink); }
.tl-knext { margin: 12px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .22); }
.tl-done-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.tl-done-note { font-size: 12.5px; color: rgba(255, 255, 255, .4); }

/* ---------- history ---------- */
.tl-history { margin-top: 34px; }
.tl-history-label { margin: 0 0 10px; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .35); }
.tl-hist-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; margin-bottom: 8px;
}
.tl-hist-name { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.tl-hist-meta { font-size: 12px; color: rgba(255, 255, 255, .35); }

.tl-foot { margin-top: 46px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .3); }

/* ============================================================
   rewarded gate — skinned to Text Layer's own gold-on-dark furniture
   ============================================================ */
body.textlayer .gate-screen {
  background: rgba(17, 14, 8, .78);
  -webkit-backdrop-filter: blur(9px) saturate(104%);
  backdrop-filter: blur(9px) saturate(104%);
}
body.textlayer .gate-eyebrow {
  font-family: var(--sans); color: var(--gold);
  font-size: 12px; letter-spacing: .3em; font-weight: 600;
}
body.textlayer .reward-locker {
  background: var(--card-dark);
  border: 1px solid var(--amber-border);
  border-radius: 8px;
  box-shadow: 0 44px 100px -30px rgba(0, 0, 0, .85), 0 0 40px rgba(200, 149, 46, .08);
}
body.textlayer .reward-locker .lock-badge { display: none; }
body.textlayer .reward-locker h3 {
  font-family: var(--sans); color: rgba(255, 255, 255, .92);
  font-weight: 700; letter-spacing: -.01em;
}
body.textlayer .reward-locker p { font-family: var(--sans); color: rgba(255, 255, 255, .55); }
body.textlayer .rv-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #110e08; font-family: var(--sans); font-weight: 600;
  border-radius: 6px; letter-spacing: .02em;
  box-shadow: 0 12px 26px -12px rgba(200, 149, 46, .55);
}
body.textlayer .rv-cta:hover { filter: brightness(1.1); box-shadow: 0 0 16px rgba(200, 149, 46, .4); transform: none; }
body.textlayer .rv-later { font-family: var(--sans); color: rgba(255, 255, 255, .4); }
body.textlayer .rv-later:hover { color: rgba(255, 255, 255, .7); }
body.textlayer .reward-locker .rv-foot { display: none; }
body.textlayer .reward-locker.has-included .lk-side { border-left-color: var(--card-border-gold); }
body.textlayer .lk-side h4 { font-family: var(--sans); color: var(--gold-light); font-weight: 600; letter-spacing: .04em; }
body.textlayer .lk-side li { font-family: var(--sans); color: rgba(255, 255, 255, .78); }
body.textlayer .lk-side li svg { color: var(--gold); }
body.textlayer .gate-fine { font-family: var(--sans); color: rgba(255, 255, 255, .35); }
body.textlayer .gate-fine .lnk { color: var(--gold-light); text-decoration: none; }
body.textlayer .rv-floating {
  background: var(--card-dark); border-top: 1px solid var(--amber-border);
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .8);
}
body.textlayer .rv-floating .txt { font-family: var(--sans); color: rgba(255, 255, 255, .75); }
body.textlayer .rv-floating button {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #110e08; border-radius: 6px; font-family: var(--sans); font-weight: 600;
}
@media (max-width: 740px) {
  body.textlayer .reward-locker.has-included .lk-side { border-top-color: var(--card-border-gold); }
}
