/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:   #1e5c83;
  --cream:  #f5f0e8;
  --text:   #1a1a1a;
  --muted:  #777;
  --radius: 18px;
  --shadow: 0 4px 28px rgba(0,0,0,0.11);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  background: #d8d0c4;
  color: var(--text);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ── Screens ── */
.screen {
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}

#screen-home,
#screen-onboarding,
#screen-dashboard,
#screen-summary,
#screen-add-word,
#screen-unlock {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Onboarding screen ── */
.onboarding-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  gap: 10px;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.onboarding-portrait {
  margin-bottom: 8px;
}

.onboarding-portrait-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid #b0ccdb;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.onboarding-name {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.01em;
}

.onboarding-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.onboarding-vow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0 20px;
}

.vow-gaelic {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

.vow-english {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  font-style: italic;
}

.onboarding-btn {
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
}

/* ── Home screen ── */
.home-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 16px;
}

.home-badge {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.app-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
}

.app-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 4px;
}

.home-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  gap: 12px;
}

.stat-card {
  width: 100%;
  max-width: 340px;
  background: white;
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  font-size: 1.6rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.stat-info { flex: 1; }

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.home-actions {
  padding: 24px 24px 16px;
}

.btn-primary {
  display: block;
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.12s, opacity 0.12s;
  box-shadow: 0 4px 16px rgba(30,92,131,0.35);
}
.btn-primary:active { transform: scale(0.98); opacity: 0.92; }
.btn-primary:disabled { opacity: 0.4; cursor: default; }

.home-footer {
  text-align: center;
  padding: 12px 24px 24px;
  font-size: 0.78rem;
  color: #bbb;
  letter-spacing: 0.02em;
}

/* ── Session header ── */
.session-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--blue);
  border-radius: 8px;
  line-height: 1;
}
.btn-icon:active { background: rgba(30,92,131,0.1); }

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.09);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 100px;
  transition: width 0.35s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Card area ── */
.card-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 8px;
  overflow: hidden;
}

/* ── Summary screen ── */
.summary-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 16px;
  text-align: center;
}

.summary-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
}

.summary-subtitle {
  font-size: 1rem;
  color: var(--muted);
}

/* ── Stòr ceremony toast ── */
.stor-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #fff9e6 0%, #fff3c0 100%);
  border: 1.5px solid #f0c840;
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 320px;
  width: calc(100% - 48px);
}

.stor-toast.stor-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.linne-toast {
  background: linear-gradient(135deg, #f0f0f8 0%, #e0e0f0 100%);
  border-color: #b0b0d0;
}

.stor-toast-glow {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.stor-toast-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.4;
}

.stor-toast-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Linne stat card tint ── */
.stat-card-linne {
  border-left: 3px solid #b0b0d0;
}

/* ── Unlock button ── */
.btn-unlock {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 8px 0 0;
  text-align: center;
  transition: color 0.15s;
}
.btn-unlock:hover { color: var(--blue); }
.btn-unlock.unlocked { color: #2e7d32; cursor: default; }

/* ── Unlock screen ── */
.unlock-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 40px;
  gap: 1rem;
  overflow-y: auto;
}
.unlock-sub {
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}
.unlock-field {
  width: 100%;
}
.unlock-input {
  width: 100%;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: 'Menlo', monospace;
  letter-spacing: 0.08em;
  text-align: center;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.unlock-input:focus { border-color: var(--blue); }
.unlock-input.error  { border-color: #c62828; }
.unlock-error {
  font-size: 0.82rem;
  color: #c62828;
  text-align: center;
  margin-top: 6px;
  min-height: 1.2em;
}
.unlock-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ── Secondary button ── */
.btn-secondary {
  display: block;
  width: 100%;
  background: none;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.btn-secondary:active { background: rgba(30,92,131,0.08); }

/* ── Dashboard ── */
.dash-nav {
  padding: 52px 12px 0;
  flex-shrink: 0;
}
.dash-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin-bottom: 0.5rem;
}
.dash-badge-top {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}
.dash-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dash-section {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  overflow: hidden;
}
.dash-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dash-section-icon { font-size: 1.2rem; flex-shrink: 0; }
.dash-section-title { flex: 1; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.dash-section-count { font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.dash-section-count.count-stor { color: #2e7d32; }
.dash-section-count.count-linne { color: #7060a0; }
.dash-section-count.count-new  { color: var(--muted); }

.dash-word-list {
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 160px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dash-word-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.85rem;
  font-family: Georgia, serif;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s;
}
.dash-word-chip:active { background: #e0dcd4; }
.dash-chip-badge {
  font-size: 0.68rem;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 100px;
  color: white;
}
.dash-empty {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
.dash-new-note {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Word preview modal body ── */
.word-preview-body {
  padding: 1.25rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.word-preview-en  { font-size: 1rem; color: var(--text); }
.word-preview-ipa { font-size: 0.9rem; color: var(--muted); font-style: italic; }
.word-preview-play {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(30,92,131,0.3);
  transition: transform 0.1s;
}
.word-preview-play:active { transform: scale(0.95); }

/* ── Abbreviations button ── */
.btn-abbr {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 12px 0 0;
  text-align: center;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.btn-abbr:hover { color: var(--blue); }

/* ── Abbreviations modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  max-width: none;
  transform: none;
  background: rgba(0,0,0,0.48);
  display: flex;
  align-items: flex-end;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 40px;
  scrollbar-gutter: stable;
  transform: translateY(20px);
  transition: transform 0.22s ease;
}
.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
}
.modal-close:hover { background: rgba(0,0,0,0.06); }

.modal-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #aaa;
  padding: 18px 24px 8px;
}

/* ── Name reveal modal ── */
.name-reveal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 32px 40px;
  text-align: center;
  gap: 12px;
}

.name-reveal-portrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid #b0ccdb;
  margin-bottom: 4px;
}

.name-reveal-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.01em;
}

.name-reveal-gd {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

.name-reveal-en {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

.name-reveal-btn {
  width: 100%;
  max-width: 260px;
  margin-top: 8px;
}

/* Name reveal on aurora sky */
.name-reveal-scene .name-reveal-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  max-width: 340px;
  width: calc(100% - 48px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 255, 180, 0.12);
}

.name-reveal-scene .name-reveal-portrait {
  border-color: #00ddaa;
}

.abbr-table {
  width: 100%;
  border-collapse: collapse;
  padding: 0 16px;
}

.abbr-table tr {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.abbr-table tr:last-child { border-bottom: none; }

.abbr-table td {
  padding: 10px 8px;
  font-size: 0.88rem;
  vertical-align: middle;
}

.abbr-code {
  width: 80px;
  padding-left: 24px;
}

.abbr-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: white;
}

.abbr-gram {
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: 0.8rem;
  color: #555;
  font-weight: 600;
}

.abbr-full {
  color: var(--text);
  font-style: italic;
  font-size: 0.85rem;
}

.abbr-table td.abbr-en {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
  padding-right: 40px;
}

/* ── Guide modal content ── */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 20px 12px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.guide-step-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-ratings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 20px 12px;
}

.guide-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text);
}

.guide-rating-btn {
  pointer-events: none;
  flex-shrink: 0;
  min-width: 60px;
  text-align: center;
  font-size: 0.8rem;
  padding: 5px 12px;
}

.guide-prose {
  padding: 4px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-prose p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

/* ── Add word button in dash nav ── */
.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-addword {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── Add word form ── */
.addword-body {
  padding: 0 24px 40px;
  overflow-y: auto;
  height: calc(100% - 56px);
}
.addword-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.addword-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.addword-type-btn {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.addword-type-btn:hover { border-color: var(--blue); }
.addword-type-btn .type-badge { display: block; margin-bottom: 4px; }
.addword-input-wrap {
  margin-bottom: 20px;
}
.addword-input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.addword-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1.1rem;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.addword-input:focus { border-color: var(--blue); }
.addword-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-top: 8px;
}
.record-word-display {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.record-area {
  text-align: center;
  padding: 20px 0;
}
.record-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.record-btn.recording {
  background: #e53;
  border-color: #e53;
  animation: record-pulse 1s ease-in-out infinite;
}
@keyframes record-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}
.record-status {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.4em;
}
.record-playback {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ── Na Fir-Chlis · milestone celebration ── */
.fir-chlis-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgb(0, 4, 18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
  transform: translateZ(0);
  will-change: opacity;
}
.fir-chlis-overlay.show { opacity: 1; }

.aurora-layer {
  position: absolute;
  width: 220%;
  height: 55%;
  filter: blur(18px);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}
.aurora-1 {
  background: radial-gradient(ellipse at center, rgba(0,200,120,0.55) 0%, rgba(0,180,100,0.3) 40%, transparent 70%);
  top: 5%;
  animation: aurora-wave-1 9s ease-in-out infinite;
}
.aurora-2 {
  background: radial-gradient(ellipse at center, rgba(30,100,220,0.45) 0%, rgba(0,160,255,0.25) 40%, transparent 70%);
  top: 25%;
  animation: aurora-wave-2 8s ease-in-out infinite;
}
.aurora-3 {
  background: radial-gradient(ellipse at center, rgba(140,40,220,0.35) 0%, rgba(180,80,255,0.2) 40%, transparent 70%);
  top: 0%;
  animation: aurora-wave-3 11s ease-in-out infinite 0.6s;
}
.aurora-4 {
  background: radial-gradient(ellipse at center, rgba(180,100,0,0.2) 0%, rgba(220,160,20,0.12) 40%, transparent 70%);
  top: 42%;
  animation: aurora-wave-1 14s ease-in-out infinite reverse 1.4s;
}

@keyframes aurora-wave-1 {
  0%   { transform: translateX(-30%) scaleY(0.8) skewX(-10deg); opacity: 0.4; }
  30%  { transform: translateX(10%)  scaleY(1.5) skewX(4deg);   opacity: 0.75; }
  70%  { transform: translateX(28%)  scaleY(1.1) skewX(12deg);  opacity: 0.55; }
  100% { transform: translateX(-30%) scaleY(0.8) skewX(-10deg); opacity: 0.4; }
}
@keyframes aurora-wave-2 {
  0%   { transform: translateX(20%)  scaleY(1.2) skewX(8deg);   opacity: 0.3; }
  40%  { transform: translateX(-20%) scaleY(0.7) skewX(-12deg); opacity: 0.6; }
  75%  { transform: translateX(-5%)  scaleY(1.4) skewX(5deg);   opacity: 0.45; }
  100% { transform: translateX(20%)  scaleY(1.2) skewX(8deg);   opacity: 0.3; }
}
@keyframes aurora-wave-3 {
  0%   { transform: translateX(-15%) scaleY(1.3) skewX(6deg);   opacity: 0.2; }
  45%  { transform: translateX(25%)  scaleY(0.9) skewX(-8deg);  opacity: 0.5; }
  80%  { transform: translateX(5%)   scaleY(1.6) skewX(10deg);  opacity: 0.35; }
  100% { transform: translateX(-15%) scaleY(1.3) skewX(6deg);   opacity: 0.2; }
}

/* ── Star field ── */
.star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.08; transform: scale(0.7); }
  50%       { opacity: 0.95; transform: scale(1.3); }
}

.fir-chlis-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
  pointer-events: none;
}
.fir-chlis-number {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  text-shadow: 0 0 40px #00ff99, 0 0 100px #00cc66;
}
.fir-chlis-label {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 0.4rem;
  text-shadow: 0 0 24px #00ff99;
}
.fir-chlis-sub {
  font-size: 0.88rem;
  opacity: 0.7;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ── Upsell bar ── */
.upsell-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
  z-index: 200;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.18);
}

.upsell-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.upsell-gd {
  font-size: 0.95rem;
  font-weight: 700;
}

.upsell-en {
  font-size: 0.78rem;
  opacity: 0.82;
}

.upsell-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.upsell-btn-unlock {
  background: white;
  color: var(--blue);
  border: none;
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.upsell-btn-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}
