/* Acertijo del Día - Home2 Styles */
:root {
  --background: 220 20% 98.6%;
  --foreground: 240 10% 12%;
  --card: 0 0% 100%;
  --primary: 250 85% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 18% 95.8%;
  --muted-foreground: 240 4% 46%;
  --border: 240 6% 88%;
  --input: 240 6% 88%;
  --radius: 0.75rem;
  --shell-bar-bg: hsla(243, 26%, 87%, 0.96);
}

[data-theme="dark"] {
  --background: 242 12% 8%;
  --foreground: 220 15% 92%;
  --card: 242 10% 12%;
  --primary: 252 80% 68%;
  --primary-foreground: 0 0% 100%;
  --secondary: 242 10% 16%;
  --muted-foreground: 240 5% 58%;
  --border: 240 6% 22%;
  --input: 242 8% 18%;
  --shell-bar-bg: hsla(243, 20%, 12%, 0.96);
}

/* Dark mode: only override components with hardcoded colors */
[data-theme="dark"] #dailyPuzzleCard {
  background: linear-gradient(180deg, hsl(242 12% 14%) 0%, hsl(242 12% 11%) 100%);
  border-color: rgba(120, 100, 180, 0.18);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(255,255,255,0.07) inset,
    0 16px 48px hsl(240 50% 3% / 0.65),
    0 4px 12px hsl(240 40% 5% / 0.35);
}
[data-theme="dark"] #dailyPuzzleCard:hover {
  border-color: rgba(140, 115, 210, 0.28);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 1px 0 rgba(255,255,255,0.09) inset,
    0 20px 56px hsl(240 50% 3% / 0.72),
    0 6px 16px hsl(240 40% 5% / 0.4);
}
[data-theme="dark"] #answerInput { background: hsl(242 12% 15%); border-color: rgba(120, 100, 180, 0.3); }
[data-theme="dark"] #answerInput:focus { border-color: hsl(var(--primary) / 0.5); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12); }
[data-theme="dark"] .hints-trigger { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .hints-trigger:hover { background: hsl(250 10% 20%); }
[data-theme="dark"] .hints-ico { background: hsl(250 15% 18%); border-color: rgba(150,120,232,0.2); }
[data-theme="dark"] .hints-body { background: hsl(var(--card)); }
[data-theme="dark"] .hint-item { background: hsl(var(--secondary)); border-color: rgba(150,120,232,0.12); }
[data-theme="dark"] .hint-text { color: hsl(var(--foreground) / 0.88); }
[data-theme="dark"] .sol-trigger { background: hsl(250 28% 11%); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .sol-trigger:hover { background: hsl(250 30% 13%); }
[data-theme="dark"] .sol-label { color: hsl(var(--primary) / 0.85); }
[data-theme="dark"] .sol-body { background: hsl(250 22% 10%); border-color: rgba(113,84,232,0.18); }
[data-theme="dark"] .sol-insight { color: hsl(var(--primary) / 0.7); }
[data-theme="dark"] .sol-step { background: hsl(250 20% 13%); border-color: rgba(113,84,232,0.12); }
[data-theme="dark"] .sol-step strong { color: hsl(var(--primary) / 0.9); }
[data-theme="dark"] .sol-step p { color: hsl(252 20% 72%); }
[data-theme="dark"] .kimi-disclosure { background: linear-gradient(180deg, hsl(260 22% 11%) 0%, hsl(260 28% 8%) 100%); border-color: rgba(113,84,232,0.22); box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 20px hsl(260 50% 3% / 0.4); }
[data-theme="dark"] .kimi-disclosure .sol-kicker { color: hsl(var(--primary) / 0.9); }
[data-theme="dark"] .kimi-disclosure .sol-difficulty { color: hsl(var(--primary) / 0.55); }
[data-theme="dark"] .kimi-disclosure .sol-insight { color: hsl(252 20% 72%); border-bottom-color: rgba(113,84,232,0.15); }
[data-theme="dark"] .kimi-disclosure .sol-step-num { background: rgba(113,84,232,0.15); color: hsl(var(--primary) / 0.85); }
[data-theme="dark"] .kimi-disclosure .sol-step strong { color: hsl(var(--primary) / 0.92); }
[data-theme="dark"] .kimi-disclosure .sol-step p { color: hsl(252 20% 72%); }
[data-theme="dark"] .kimi-disclosure .sol-insight { color: hsl(var(--primary) / 0.72); }
[data-theme="dark"] .feedback-card {
  background: linear-gradient(180deg, hsl(242 12% 14%) 0%, hsl(242 10% 11%) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 8px 24px hsl(240 50% 3% / 0.45);
}
[data-theme="dark"] .feedback-card.correct  { background: linear-gradient(180deg, hsl(148 30% 12%), hsl(148 28% 9%)); border-color: rgba(34,197,94,0.3); }
[data-theme="dark"] .feedback-card.partial  { background: linear-gradient(180deg, hsl(38 32% 12%), hsl(38 30% 9%));  border-color: rgba(234,179,8,0.3); }
[data-theme="dark"] .feedback-card.incorrect{ background: linear-gradient(180deg, hsl(0 28% 12%), hsl(0 26% 9%));   border-color: rgba(239,68,68,0.26); }
[data-theme="dark"] .feedback-card.correct::before  { background: #4ade80; }
[data-theme="dark"] .feedback-card.partial::before  { background: #fbbf24; }
[data-theme="dark"] .feedback-card.incorrect::before{ background: #f87171; }
[data-theme="dark"] .feedback-card.correct  .fc-label { color: #6ee7a0; }
[data-theme="dark"] .feedback-card.correct  .fc-icon  { color: #6ee7a0; }
[data-theme="dark"] .feedback-card.partial  .fc-label { color: #fcd34d; }
[data-theme="dark"] .feedback-card.partial  .fc-icon  { color: #fcd34d; }
[data-theme="dark"] .feedback-card.incorrect .fc-label{ color: #fca5a5; }
[data-theme="dark"] .feedback-card.incorrect .fc-icon { color: #fca5a5; }
[data-theme="dark"] .fc-title { color: hsl(var(--foreground)); text-shadow: 0 0 0.5px rgba(255,255,255,0.1); }
[data-theme="dark"] .fc-text { color: hsl(var(--muted-foreground) / 0.88); }
[data-theme="dark"] .fc-footer                        { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.4); }
[data-theme="dark"] .feedback-card.correct  .fc-footer { background: hsl(148 22% 8%); border-color: rgba(34,197,94,0.18); }
[data-theme="dark"] .feedback-card.partial  .fc-footer { background: hsl(38 22% 8%);  border-color: rgba(234,179,8,0.18); }
[data-theme="dark"] .feedback-card.incorrect .fc-footer{ background: hsl(0 20% 8%);   border-color: rgba(239,68,68,0.18); }
[data-theme="dark"] .site-menu { background: hsl(240 10% 11% / 0.99); border-color: rgba(80,65,110,0.28); box-shadow: 0 28px 74px rgba(5,4,10,0.55); }
[data-theme="dark"] .menu-list a { color: hsl(var(--muted-foreground)); }
[data-theme="dark"] .menu-list a:hover, [data-theme="dark"] .menu-list a.current { background: hsl(250 15% 18%); }
[data-theme="dark"] .menu-icon { background: hsl(250 20% 22%); }
[data-theme="dark"] .menu-list strong { color: hsl(var(--foreground)); }
[data-theme="dark"] .menu-list em { color: hsl(var(--muted-foreground)); }
[data-theme="dark"] .menu-support { border-color: rgba(120,100,160,0.4); background: radial-gradient(circle at 16% 0, rgba(255,255,255,0.08), transparent 38%), linear-gradient(135deg, hsl(250 18% 14%), hsl(250 22% 20%)); box-shadow: 0 13px 28px rgba(0,0,0,0.35); }
[data-theme="dark"] .postnav-grid { background: linear-gradient(180deg, hsl(242 10% 12%) 0%, hsl(242 10% 10%) 100%); border-color: hsl(var(--border) / 0.5); box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 8px 24px hsl(240 50% 3% / 0.4); }
[data-theme="dark"] .postnav-tile { color: hsl(var(--foreground)); border-color: hsl(var(--border) / 0.4); }
[data-theme="dark"] .postnav-tile:hover { background: hsl(250 12% 18%); border-color: hsl(var(--primary) / 0.28); box-shadow: 0 0 8px rgba(113,84,232,0.15); }
[data-theme="dark"] .postnav-tile.active { background: hsl(250 14% 16%); box-shadow: inset 4px 0 0 hsl(var(--primary) / 0.7), 0 0 6px rgba(113,84,232,0.1); }
[data-theme="dark"] .postnav-header { color: hsl(var(--muted-foreground) / 0.7); }
[data-theme="dark"] .postnav-panel { background: hsl(var(--card)); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .postnav-panel-inner { background: hsl(var(--card)); }
[data-theme="dark"] .tile-copy strong { color: hsl(var(--foreground)); }
[data-theme="dark"] .tile-copy em { color: hsl(var(--muted-foreground)); }
[data-theme="dark"] .week-row-premium { background: hsl(var(--card)); border-color: hsl(var(--border) / 0.5); color: hsl(var(--foreground)); }
[data-theme="dark"] .week-row-premium:hover { background: hsl(var(--secondary)); border-color: hsl(var(--primary) / 0.3); }
[data-theme="dark"] .week-row-premium.week-today { border-color: hsl(var(--primary) / 0.4); box-shadow: inset 3px 0 0 hsl(var(--primary)); }
[data-theme="dark"] .week-row-premium.week-done { border-color: hsl(155 50% 26%); background: linear-gradient(90deg, hsl(155 22% 11%), hsl(155 18% 9%)); box-shadow: inset 3px 0 0 hsl(155 60% 42%); }
[data-theme="dark"] .week-row { background: hsl(var(--card)); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .week-row:hover { background: hsl(var(--secondary)); border-color: hsl(var(--primary) / 0.25); }
[data-theme="dark"] .newsletter-panel-form .mail-row input { background: hsl(var(--input)); border-color: hsl(var(--border)); }
[data-theme="dark"] .wip-title { color: hsl(var(--foreground)); }
[data-theme="dark"] .wip-level, [data-theme="dark"] .wip-theme, [data-theme="dark"] .wip-dot { color: hsl(var(--muted-foreground)); }
[data-theme="dark"] .wip-diff-dot { background: hsl(var(--muted-foreground) / 0.3); }
[data-theme="dark"] .wip-diff-dot.active { background: hsl(var(--primary) / 0.55); }
[data-theme="dark"] .week-footer-link { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .tell-row { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.5); color: hsl(var(--foreground)); }
[data-theme="dark"] .tell-row:hover { background: hsl(250 12% 20%); }
[data-theme="dark"] .tell-form-field input, [data-theme="dark"] .tell-form-field textarea { background: hsl(var(--input)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
[data-theme="dark"] .subscribe-input { background: hsl(var(--input)); border-color: hsl(var(--border)); }
[data-theme="dark"] .subscribe-telegram-ultra { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.5); color: hsl(var(--foreground)); }
[data-theme="dark"] .sub-tg-text strong { color: hsl(var(--foreground)); }
[data-theme="dark"] .share-message-premium { background: hsl(var(--card)); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .share-message-header { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.3); }
[data-theme="dark"] .share-message-content { background: hsl(var(--secondary)); }
[data-theme="dark"] .share-message-text { color: hsl(var(--foreground)); }
[data-theme="dark"] .share-message-actions { background: hsl(var(--secondary)); border-color: hsl(var(--border) / 0.3); }
[data-theme="dark"] .site-footer { border-top-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .site-footer .footer-links a { color: hsl(var(--muted-foreground)); }
[data-theme="dark"] .site-footer .footer-links a:hover { color: hsl(var(--foreground)); }
[data-theme="dark"] .site-footer .copy { color: hsl(var(--muted-foreground) / 0.84); }

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

html, body {
  min-height: 100%;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  padding-bottom: 56px;
}

button { cursor: pointer; font: inherit; border: 0; background: transparent; -webkit-tap-highlight-color: transparent; }
input { font: inherit; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* Keyboard-first accessibility */
.skip-link {
  position: fixed;
  left: 0.8rem;
  top: -3rem;
  z-index: 120;
  padding: 0.58rem 0.82rem;
  border-radius: 0.58rem;
  border: 1px solid hsl(var(--primary));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 0.8rem;
  font-weight: 620;
  line-height: 1;
  transition: top 0.14s ease;
}

.skip-link:focus {
  top: 0.8rem;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  border-bottom: 1px solid hsl(250 18% 78% / 0.95);
  background: var(--shell-bar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px hsl(250 30% 20% / 0.08), 0 1px 0 hsl(0 0% 100% / 0.55) inset;
}

[data-theme="dark"] .site-header {
  border-bottom-color: hsl(250 15% 18% / 0.38);
  box-shadow: 0 8px 24px hsl(240 30% 4% / 0.32);
}

.brand-row {
  max-width: 42rem;
  margin: 0 auto;
  height: 4.2rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-icon { width: 3.5rem; height: 3.5rem; flex-shrink: 0; }
.mark-body { fill: hsl(var(--foreground)); }
.mark-diamond { fill: var(--shell-bar-bg); }

.brand-title {
  font-family: "Crimson Pro", serif;
  font-size: 1.752rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: lowercase;
  color: hsl(var(--foreground));
}
.brand-title .wm-d { font-weight: 300; opacity: 0.42; }

.brand-tagline {
  display: none;
}
@media (min-width: 420px) {
  .brand-tagline {
    display: block;
    font-size: 0.54rem; font-weight: 650;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: hsl(var(--muted-foreground) / 0.62);
    margin-top: -0.04rem;
    padding-left: 0.08rem;
  }
}

.header-controls { display: inline-flex; align-items: center; gap: 0; }

.header-btn {
  width: 2.16rem; height: 2.16rem;
  border-radius: 0.72rem;
  color: hsl(var(--muted-foreground));
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.14s ease;
}
.header-btn:hover { color: hsl(var(--foreground)); }

.lang-switch {
  display: inline-flex; align-items: center;
  min-height: 2.2rem; padding: 0 0.18rem;
  border-radius: 0.7rem;
  color: hsl(var(--muted-foreground));
}
.lang-switch:hover { color: hsl(var(--foreground)); }
.lang-current { font-size: 0.92rem; font-weight: 520; letter-spacing: -0.01em; }

/* Hamburger animated */
.menu-lines {
  width: 18px; height: 18px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 4px;
}
.menu-lines span {
  display: block; height: 1.5px;
  border-radius: 2px; background: currentColor;
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s;
}
.menu-lines.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-lines.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-lines.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Menu dropdown */
.site-menu {
  position: absolute;
  right: max(0.6rem, calc((100vw - 42rem) / 2));
  top: calc(100% + 0.55rem);
  width: min(19.6rem, calc(100vw - 2rem));
  border: 1px solid rgba(226, 220, 238, 0.98);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 28px 74px rgba(31, 26, 49, 0.21), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
  padding: 0.68rem;
  animation: menuIn 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
  z-index: 80;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-5px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.menu-list { display: grid; gap: 0.12rem; }
.menu-list a {
  width: 100%; min-height: 3.08rem;
  border-radius: 16px; background: transparent;
  text-align: left; padding: 0 0.7rem;
  color: #6f6878;
  display: grid; grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.66rem; align-items: center;
}
.menu-list a:hover, .menu-list a.current { background: #f8f5ff; }
.menu-list a.current { box-shadow: inset 3px 0 0 hsl(var(--primary)); }
.menu-icon {
  width: 34px; height: 34px; border-radius: 14px;
  background: #f1ecff; color: hsl(var(--primary));
  display: grid; place-items: center;
}
.menu-list strong {
  display: block; color: #2d2836;
  font-size: 0.97rem; font-weight: 850;
  letter-spacing: -0.016em; line-height: 1.1;
}
.menu-list em {
  display: block; margin-top: 0.16rem;
  color: #92899e; font-style: normal;
  font-size: 0.67rem; font-weight: 640; line-height: 1.12;
}
.menu-support {
  width: 100%; margin-top: 0.62rem;
  min-height: 3.92rem;
  border: 1px solid #4b3c72; border-radius: 20px;
  background: radial-gradient(circle at 16% 0, rgba(255,255,255,0.2), transparent 38%), linear-gradient(135deg, #241f2c, #4b3c72);
  box-shadow: 0 13px 28px rgba(45, 39, 54, 0.17);
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center; gap: 0.68rem;
  padding: 0.68rem 0.76rem;
  text-align: left; color: #fff;
}
.support-logo {
  width: 40px; height: 40px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  display: grid; place-items: center;
}
.support-logo .brand-icon-small { width: 30px; height: 30px; }
.menu-support strong {
  display: block; color: #fff;
  font-size: 0.9rem; font-weight: 860;
}
.menu-support em {
  display: block; margin-top: 0.16rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: normal; font-size: 0.68rem; font-weight: 620; line-height: 1.22;
}
.menu-support > svg { justify-self: end; color: rgba(255, 255, 255, 0.74); }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.home-main {
  width: min(42rem, calc(100% - 2rem));
  margin-inline: auto;
  padding-top: 5.78rem;
  padding-bottom: 2.1rem;
}

/* ═══════════════════════════════════════════
   HERO - ULTRA PREMIUM
   ═══════════════════════════════════════════ */
.hero-intro {
  margin: 0 auto 2rem;
  text-align: center;
}

.hero-countdown {
  margin: 0 0 1.08rem;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.52rem 1rem 0.52rem 0.88rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8f5ff 0%, #fdfcff 100%);
  border: 1px solid rgba(113, 84, 232, 0.12);
  box-shadow: 0 2px 8px rgba(113, 84, 232, 0.04),
              0 1px 0 rgba(255, 255, 255, 0.88) inset;
}
.hero-countdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.82rem;
  height: 1.82rem;
  border-radius: 999px;
  background: linear-gradient(135deg, hsl(var(--primary)), #9275ea);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(113, 84, 232, 0.22);
}
.hero-countdown-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.1;
}
.hero-countdown-label {
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.72);
}
.hero-countdown-time {
  font-size: 0.88rem;
  font-weight: 840;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--primary));
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.02em;
}

.date-line {
  margin: 0;
  color: hsl(var(--muted-foreground) / 0.82);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 560;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero dark mode */
[data-theme="dark"] .hero-countdown {
  background: linear-gradient(135deg, hsl(250 15% 14%) 0%, hsl(250 12% 12%) 100%);
  border-color: hsl(var(--primary) / 0.2);
  box-shadow: 0 2px 8px hsl(250 30% 8% / 0.3);
}
[data-theme="dark"] .hero-countdown-icon {
  box-shadow: 0 2px 6px hsl(var(--primary) / 0.35);
}

/* ═══════════════════════════════════════════
   DAILY CARD - ULTRA PREMIUM
   ═══════════════════════════════════════════ */
#dailyPuzzleCard {
  max-width: 42rem; margin: 0 auto;
  padding: 1.72rem 1.58rem 1.78rem;
  background: linear-gradient(180deg, #fff 0%, #fdfcff 100%);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(48, 38, 75, 0.04),
              0 1px 0 rgba(255, 255, 255, 0.98) inset;
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
#dailyPuzzleCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(48, 38, 75, 0.08),
              0 2px 6px rgba(48, 38, 75, 0.04),
              0 1px 0 rgba(255, 255, 255, 0.98) inset;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.992); }
  to { opacity: 1; transform: none; }
}

.meta-row-editorial {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 1.18rem;
}

.puzzle-level {
  display: inline-flex; align-items: center; gap: 0.38rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0.01em;
}
.puzzle-level::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.6);
  flex: 0 0 auto;
}

.puzzle-share-row {
  display: flex;
  align-items: center;
}
.puzzle-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: hsl(var(--muted-foreground) / 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.puzzle-share-btn:hover {
  color: hsl(var(--primary));
  background: hsl(var(--secondary));
  transform: translateY(-1px);
}
.puzzle-share-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.puzzle-title {
  margin: 0 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  text-wrap: balance;
}

/* Statement with staggered entrance - PREMIUM */
.puzzle-statement {
  text-align: left;
  hyphens: auto;
}
.puzzle-statement p {
  margin: 0 0 1.14rem;
  font-size: 1rem;
  line-height: 1.74;
  font-weight: 420;
  color: hsl(var(--foreground) / 0.9);
  letter-spacing: -0.006em;
  animation: stmtIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.puzzle-statement p:nth-child(2) { animation-delay: 0.06s; }
.puzzle-statement p:nth-child(3) { animation-delay: 0.12s; }
.puzzle-statement p:last-child { margin-bottom: 0; }
.puzzle-fig { margin: 1rem 0; text-align: center; }
.puzzle-fig img, .puzzle-inline-img { max-width: 100%; height: auto; border-radius: 6px; }
.puzzle-statement .katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.2rem 0; }

@keyframes stmtIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════
   PUZZLE TOOLS - ULTRA PREMIUM PILLS
   ═══════════════════════════════════════════ */
.puzzle-tools {
  margin-top: 1.62rem;
  display: flex;
  align-items: center;
  gap: 0.52rem;
}
.puzzle-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2.24rem;
  padding: 0 0.82rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 660;
  letter-spacing: -0.006em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.pill-hint {
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border) / 0.6);
  color: hsl(var(--primary));
}
.pill-hint:hover {
  background: hsl(var(--secondary) / 0.8);
  border-color: hsl(var(--primary) / 0.22);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(113, 84, 232, 0.08);
}
.pill-hint.active {
  background: hsl(var(--primary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(113, 84, 232, 0.22);
}

.pill-solution {
  background: #fef9f0;
  border: 1px solid #f0e6d0;
  color: #a67c3a;
}
.pill-solution:hover {
  background: #fef6ea;
  border-color: #e8dbc0;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(166, 124, 58, 0.08);
}
.pill-solution.active {
  background: #a67c3a;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(166, 124, 58, 0.22);
}

.pill-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.24rem;
  height: 1.24rem;
  padding: 0 0.26rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(255,255,255,0.5);
  color: inherit;
}
.pill-hint.active .pill-counter {
  background: rgba(255,255,255,0.24);
  color: #fff;
}
.pill-solution.active .pill-counter {
  background: rgba(255,255,255,0.24);
  color: #fff;
}

/* Hint disclosure (inside card, purple/lavender) */
.hint-disclosure {
  margin-top: 0.82rem;
  border-radius: calc(var(--radius) + 3px);
  border: 1px solid rgba(113, 84, 232, 0.16);
  background: linear-gradient(170deg, #f8f5ff 0%, #fdfcff 100%);
  padding: 0.92rem 1rem;
  animation: flowIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hint-disclosure .hint-kicker {
  display: flex; align-items: center; gap: 0.34rem;
  margin-bottom: 0.44rem;
}
.hint-disclosure .hint-kicker span {
  font-size: 0.52rem; font-weight: 860;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #6b54df;
}
.hint-disclosure .hint-text {
  margin: 0; font-size: 0.88rem; color: #3d3558;
  line-height: 1.6; letter-spacing: -0.005em;
}
.hint-disclosure .hint-progress {
  margin-top: 0.56rem; display: flex; align-items: center; gap: 0.28rem;
}
.hint-disclosure .hint-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(113, 84, 232, 0.18);
}
.hint-disclosure .hint-dot.used { background: #6b54df; }
.hint-disclosure .hint-more {
  margin-left: 0.36rem; font-size: 0.64rem; font-weight: 680;
  color: #6b54df; text-decoration: underline; text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════
   ANSWER INPUT - ULTRA PREMIUM
   ═══════════════════════════════════════════ */
.answer-stack {
  margin-top: 1.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}
.input-wrapper {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}
#checkBtn { flex: 0 0 auto; width: auto; min-width: 5.6rem; padding: 0 1.4rem; }

#answerInput {
  width: 100%;
  min-height: 3.4rem;
  border-radius: 14px;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 440;
  padding: 0 3.4rem 0 1.18rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  outline: none;
  transition: all 0.16s ease;
}
#answerInput:focus {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 0 0 3px hsla(250, 85%, 60%, 0.08);
}
#answerInput::placeholder {
  color: hsl(var(--muted-foreground) / 0.62);
}

.char-count {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.66rem;
  font-weight: 640;
  color: hsl(var(--muted-foreground) / 0.38);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.16s ease;
}
.char-count.has-value {
  color: hsl(var(--muted-foreground) / 0.58);
}

#checkBtn {
  min-height: 3.2rem;
  height: 3.2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  border: none;
  box-shadow: 0 3px 12px rgba(113, 84, 232, 0.2);
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
#checkBtn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(113, 84, 232, 0.22);
}
#checkBtn:active:not(:disabled) {
  transform: translateY(0);
}
#checkBtn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
#checkBtn:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   KIMI INLINE ACTIONS (outside card) - PRODUCTION MATCH
   ═══════════════════════════════════════════ */
.kimi-inline-actions {
  max-width: 42rem;
  margin: 0.82rem auto 0.24rem;
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.kimi-inline-btn {
  border: 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.2rem 0.58rem;
  cursor: pointer;
  transition: color 0.14s ease;
}
.kimi-inline-btn + .kimi-inline-btn {
  border-left: 1px solid hsl(var(--border));
  margin-left: 0.72rem;
  padding-left: 0.88rem;
}
.kimi-inline-btn:hover {
  color: hsl(var(--primary));
}
.kimi-inline-btn svg {
  width: 1rem; height: 1rem;
  opacity: 0.7;
  transition: opacity 0.14s ease;
}
.kimi-inline-btn:hover svg {
  opacity: 1;
}
.kimi-inline-btn .text { font-size: 0.88rem; line-height: 1; }
[data-theme="dark"] .kimi-inline-btn {
  color: hsl(var(--muted-foreground) / 0.85);
}
[data-theme="dark"] .kimi-inline-btn:hover {
  color: hsl(var(--primary));
}
[data-theme="dark"] .kimi-inline-btn + .kimi-inline-btn {
  border-left-color: hsl(var(--border) / 0.6);
}

/* Kimi purple disclosure */
.kimi-disclosure {
  max-width: 42rem; margin: 0.6rem auto 0;
  border-radius: calc(var(--radius) + 5px);
  border: 1px solid rgba(113, 84, 232, 0.2);
  background: linear-gradient(180deg, hsl(260 60% 97%) 0%, hsl(260 40% 99%) 100%);
  padding: 1.1rem 1.1rem 1rem;
  animation: flowIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.kimi-disclosure .sol-kicker-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.62rem;
}
.kimi-disclosure .sol-kicker {
  font-size: 0.54rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: hsl(var(--primary));
}
.kimi-disclosure .sol-difficulty {
  font-size: 0.58rem; font-weight: 650;
  color: hsl(var(--primary) / 0.6); letter-spacing: 0.03em;
}
.kimi-disclosure .sol-insight {
  margin: 0 0 0.88rem;
  font-size: 0.86rem; color: hsl(var(--foreground) / 0.78);
  line-height: 1.58; letter-spacing: -0.005em;
  padding-bottom: 0.82rem;
  border-bottom: 1px solid rgba(113, 84, 232, 0.12);
}
.kimi-disclosure .sol-steps { display: grid; gap: 0.62rem; }
.kimi-disclosure .sol-step {
  display: grid; grid-template-columns: 1.6rem minmax(0,1fr);
  gap: 0.56rem; align-items: start;
}
.kimi-disclosure .sol-step-num {
  width: 1.6rem; height: 1.6rem; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(113, 84, 232, 0.1);
  color: hsl(var(--primary)); font-size: 0.66rem; font-weight: 800;
}
.kimi-disclosure .sol-step strong {
  display: block; font-size: 0.82rem; font-weight: 680;
  color: hsl(var(--foreground)); letter-spacing: -0.01em; margin-bottom: 0.14rem; line-height: 1.2;
}
.kimi-disclosure .sol-step p {
  margin: 0; font-size: 0.8rem; color: hsl(var(--foreground) / 0.72); line-height: 1.52;
}

/* ═══════════════════════════════════════════
   RESULT — Feedback card (P2 style)
   ═══════════════════════════════════════════ */
.result-flow {
  margin-top: 1.15rem;
  animation: flowIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes flowIn {
  from { opacity: 0; transform: translateY(10px) scale(0.988); }
  to { opacity: 1; transform: none; }
}

.feedback-card {
  position: relative;
  border-radius: 15px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  overflow: hidden;
  transition: background-color 220ms ease, border-color 220ms ease;
}

/* Left accent bar 4px */
.feedback-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: rgba(113,84,232,0.5);
  transition: background 0.22s ease;
}

/* Semantic gradient backgrounds */
.feedback-card.correct {
  border-color: rgba(18,130,68,0.2);
  background: linear-gradient(170deg, hsl(142 60% 97%) 0%, hsl(142 30% 98.5%) 55%, hsl(var(--card)) 100%);
}
.feedback-card.correct::before { background: #168a50; }
.feedback-card.partial {
  border-color: rgba(155,105,20,0.2);
  background: linear-gradient(170deg, hsl(45 80% 97%) 0%, hsl(45 40% 99%) 55%, hsl(var(--card)) 100%);
}
.feedback-card.partial::before { background: #8b5f1b; }
.feedback-card.incorrect {
  border-color: rgba(160,56,48,0.22);
  background: linear-gradient(170deg, hsl(0 60% 97%) 0%, hsl(0 30% 99%) 55%, hsl(var(--card)) 100%);
}
.feedback-card.incorrect::before { background: #8e4038; }

/* Main body */
.fc-main { padding: 1.1rem 1.18rem 1.06rem 1.36rem; }

.fc-status {
  display: flex; align-items: center; gap: 0.38rem;
  margin-bottom: 0.62rem;
}

.fc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: hsl(var(--primary));
}
.feedback-card.correct .fc-icon { color: #168a50; }
.feedback-card.partial .fc-icon { color: #8b5f1b; }
.feedback-card.incorrect .fc-icon { color: #8e4038; }

.fc-label {
  font-size: 0.64rem; font-weight: 860;
  letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; color: hsl(var(--primary));
}
.feedback-card.correct .fc-label { color: #168a50; }
.feedback-card.partial .fc-label { color: #8b5f1b; }
.feedback-card.incorrect .fc-label { color: #8e4038; }

.fc-title {
  margin: 0 0 0.44rem;
  font-size: 1.3rem; font-weight: 900;
  letter-spacing: -0.044em; line-height: 1.11;
  color: hsl(var(--foreground));
}

.fc-text {
  margin: 0;
  font-size: 0.83rem; line-height: 1.6;
  color: hsl(var(--muted-foreground)); letter-spacing: -0.005em;
}

/* Tinted footer */
.fc-footer {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 0.76rem 1.18rem 0.82rem 1.36rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--secondary) / 0.6);
  transition: background 0.22s ease, border-color 0.22s ease;
}
.feedback-card.correct .fc-footer {
  background: linear-gradient(180deg, hsl(142 50% 96%), hsl(142 30% 97.5%));
  border-color: rgba(18,130,68,0.14);
}
.feedback-card.partial .fc-footer {
  background: linear-gradient(180deg, hsl(45 70% 94%), hsl(45 40% 96%));
  border-color: rgba(155,105,20,0.14);
}
.feedback-card.incorrect .fc-footer {
  background: linear-gradient(180deg, hsl(0 55% 95%), hsl(0 30% 97%));
  border-color: rgba(160,56,48,0.14);
}

.fc-ans-label {
  display: block;
  font-size: 0.5rem; font-weight: 960;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.7);
  margin-bottom: 0.24rem;
}
.fc-ans-text {
  margin: 0;
  font-size: 0.95rem; font-weight: 480;
  color: hsl(var(--foreground) / 0.85);
  line-height: 1.5; letter-spacing: -0.012em;
}

/* Feedback card actions row */
.fc-actions {
  display: flex; align-items: center; gap: 0.48rem;
  flex-shrink: 0; align-self: flex-start;
}

/* Hint pill in feedback card — amber (pista = amber en todo el sistema) */
.fc-hint-btn {
  height: 1.96rem; padding: 0 0.72rem;
  border: 1px solid rgb(245 158 11 / 0.28);
  border-radius: 999px;
  background: rgb(254 252 240 / 0.9);
  color: #92660d;
  display: inline-flex; align-items: center; gap: 0.28rem;
  font-size: 0.66rem; font-weight: 800; letter-spacing: -0.008em;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.fc-hint-btn:hover {
  border-color: rgb(245 158 11 / 0.5);
  background: rgb(254 249 232);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgb(245 158 11 / 0.12);
}
[data-theme="dark"] .fc-hint-btn {
  background: rgb(245 158 11 / 0.12);
  border-color: rgb(245 158 11 / 0.2);
  color: rgb(251 191 36);
}
[data-theme="dark"] .fc-hint-btn:hover {
  background: rgb(245 158 11 / 0.18);
  border-color: rgb(245 158 11 / 0.35);
}

/* Retry/Edit pill */
.fc-retry {
  height: 1.96rem; padding: 0 0.76rem;
  border: 1px solid rgba(113,84,232,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #5b46cb;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.66rem; font-weight: 830; letter-spacing: -0.008em;
  white-space: nowrap;
  transition: border-color 0.12s ease, transform 0.1s ease, box-shadow 0.12s ease;
}
.fc-retry:hover { border-color: rgba(113,84,232,0.42); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(113,84,232,0.1); }
[data-theme="dark"] .fc-retry { background: hsl(var(--card)); border-color: rgba(113,84,232,0.25); color: hsl(252 80% 78%); }
[data-theme="dark"] .fc-retry:hover { background: hsl(var(--secondary)); border-color: rgba(113,84,232,0.45); }

/* Inline hints inside feedback card — amber (pista = amber en todo el sistema) */
.fc-hints-inline {
  padding: 0.88rem 1.18rem 1rem 1.36rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  display: flex; flex-direction: column; gap: 0.56rem;
  animation: flowIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fc-hint-item {
  display: flex; align-items: flex-start; gap: 0.62rem;
  padding: 0.62rem 0.72rem;
  background: linear-gradient(180deg, rgb(254 252 240 / 0.7) 0%, rgb(255 251 235 / 0.55) 100%);
  border: 1px solid rgb(245 158 11 / 0.18);
  border-radius: 0.6rem;
}
.fc-hint-num {
  flex-shrink: 0;
  width: 1.38rem; height: 1.38rem;
  background: linear-gradient(145deg, rgb(245 158 11 / 0.18) 0%, rgb(245 158 11 / 0.1) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 800;
  color: #92660d;
}
.fc-hint-text {
  font-size: 0.82rem; line-height: 1.52;
  color: hsl(var(--foreground) / 0.88);
  letter-spacing: -0.01em;
}
[data-theme="dark"] .fc-hints-inline { border-top-color: hsl(var(--border) / 0.4); }
[data-theme="dark"] .fc-hint-item { background: rgb(245 158 11 / 0.08); border-color: rgb(245 158 11 / 0.15); }
[data-theme="dark"] .fc-hint-num { background: rgb(245 158 11 / 0.15); color: rgb(251 191 36); }
[data-theme="dark"] .fc-hint-text { color: hsl(var(--foreground) / 0.85); }

/* ═══════════════════════════════════════════
   HINTS PROGRESSIVE - ULTRA PROFESSIONAL
   ═══════════════════════════════════════════ */
.hints-progressive {
  margin-top: 1rem;
  animation: flowIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hints-trigger {
  width: 100%;
  border: 0;
  border-top: 1px solid hsl(var(--border) / 0.7);
  background: linear-gradient(180deg, #faf7ff 0%, #fdfcff 100%);
  padding: 1.08rem 1.18rem;
  display: grid;
  grid-template-columns: 2.6rem minmax(0,1fr) auto;
  align-items: center; column-gap: 0.82rem;
  text-align: left;
  border-radius: 0;
  transition: all 0.18s ease;
  cursor: pointer;
}
.hints-trigger:hover {
  background: linear-gradient(180deg, #f5f1fc 0%, #faf7ff 100%);
}
.hints-trigger.is-open {
  background: linear-gradient(180deg, #f0ebf8 0%, #f8f5ff 100%);
  border-color: rgba(113, 84, 232, 0.22);
}
.hints-ico {
  width: 2.6rem; height: 2.6rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #f3efff, #fdfcff);
  border: 1px solid rgba(113, 84, 232, 0.12);
  display: grid; place-items: center;
  color: hsl(var(--primary));
  box-shadow: 0 3px 10px rgba(113, 84, 232, 0.1),
              0 1px 0 rgba(255,255,255,0.9) inset;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hints-trigger:hover .hints-ico {
  background: linear-gradient(145deg, #ebe5f6, #f5f1fc);
  box-shadow: 0 4px 14px rgba(113, 84, 232, 0.14),
              0 1px 0 rgba(255,255,255,0.9) inset;
}
.hints-trigger.is-open .hints-ico {
  background: linear-gradient(135deg, hsl(var(--primary)), #9275ea);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(113, 84, 232, 0.24),
              0 1px 0 rgba(255,255,255,0.2) inset;
}
.hints-copy {
  display: grid; gap: 0.22rem;
}
.hints-label {
  display: block;
  font-size: 0.94rem; font-weight: 780;
  color: #2d2540; line-height: 1.18;
  letter-spacing: -0.016em;
}
.hints-sub {
  display: block;
  font-size: 0.72rem; font-weight: 640;
  color: #8174a0; line-height: 1.2;
  letter-spacing: -0.004em;
}
.hints-chevron {
  display: flex; align-items: center;
  color: #b8afd2;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.18s ease;
}
.hints-trigger.is-open .hints-chevron {
  transform: rotate(180deg);
  color: hsl(var(--primary));
}

.hints-body {
  padding: 1.08rem 1.18rem 1.18rem;
  background: linear-gradient(180deg, #fdfcff 0%, #fff 100%);
  animation: fadeIn 0.24s ease both;
  border-top: 1px solid rgba(113, 84, 232, 0.08);
}
.hint-item {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.82rem; align-items: start;
  margin-bottom: 0.92rem;
  padding: 0.92rem 1.02rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #faf8fe, #fff);
  border: 1px solid rgba(113, 84, 232, 0.08);
  box-shadow: 0 2px 8px rgba(113, 84, 232, 0.04);
}
.hint-item:last-child {
  margin-bottom: 0.72rem;
}
.hint-num {
  width: 2rem; height: 2rem; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(113, 84, 232, 0.12), rgba(113, 84, 232, 0.08));
  color: hsl(var(--primary));
  font-size: 0.74rem; font-weight: 860;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(113, 84, 232, 0.08);
}
.hint-text {
  margin: 0; font-size: 0.88rem; color: #3d3558;
  line-height: 1.68; letter-spacing: -0.003em;
  padding-top: 0.12rem;
  font-weight: 480;
}
.hint-reveal-btn {
  width: 100%; min-height: 2.92rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: #fff;
  font-size: 0.84rem; font-weight: 760;
  letter-spacing: -0.01em;
  border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.44rem;
  box-shadow: 0 5px 16px rgba(113, 84, 232, 0.22),
              0 2px 6px rgba(113, 84, 232, 0.14);
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 0;
}
.hint-reveal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(113, 84, 232, 0.28),
              0 3px 10px rgba(113, 84, 232, 0.18);
}

/* ═══════════════════════════════════════════
   SOLUTION — violet (post-answer). Violet = revelación. Amber = pista.
   ═══════════════════════════════════════════ */
.solution-module { margin-top: 0.82rem; }

.sol-trigger {
  width: 100%;
  border: 0;
  border-top: 1px solid hsl(var(--border) / 0.7);
  background: linear-gradient(180deg, hsl(252 78% 99.2%) 0%, hsl(248 72% 97.5%) 100%);
  padding: 1rem 1.1rem;
  display: grid;
  grid-template-columns: 2.5rem minmax(0,1fr) auto;
  align-items: center; column-gap: 0.76rem;
  text-align: left;
  border-radius: 0;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.sol-trigger:hover { background: linear-gradient(180deg, hsl(248 72% 97.5%) 0%, hsl(252 78% 99.2%) 100%); }
.sol-trigger.is-open {
  background: linear-gradient(180deg, hsl(250 70% 96%) 0%, hsl(252 78% 98%) 100%);
  border-color: rgba(113, 84, 232, 0.2);
  box-shadow: inset 0 -1px 0 rgba(113, 84, 232, 0.08);
}

.sol-ico {
  width: 2.5rem; height: 2.5rem; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, hsl(252 75% 93%), hsl(250 70% 89%));
  color: hsl(250 65% 40%);
  box-shadow: 0 3px 10px rgba(113, 84, 232, 0.14), inset 0 1px 0 rgba(255,255,255,0.55);
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.sol-trigger.is-open .sol-ico {
  background: linear-gradient(145deg, #2d2458, #3d3070);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}

.sol-copy { display: grid; gap: 0.1rem; text-align: left; }
.sol-label { font-size: 0.94rem; font-weight: 880; letter-spacing: -0.022em; color: hsl(250 45% 22%); line-height: 1.1; }
.sol-sub { font-size: 0.6rem; color: hsl(var(--muted-foreground)); font-weight: 640; letter-spacing: 0.005em; line-height: 1.3; }
.sol-trigger.is-open .sol-label { color: hsl(250 65% 40%); }

.sol-chevron {
  display: flex; align-items: center;
  color: hsl(var(--muted-foreground));
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.16s ease;
}
.sol-chevron.flipped { transform: rotate(180deg); color: hsl(var(--primary)); }

/* Solution body violet */
.sol-body {
  margin-top: 0.52rem;
  border-radius: calc(var(--radius) + 5px);
  border: 1px solid rgba(113, 84, 232, 0.14);
  background: linear-gradient(180deg, hsl(252 78% 99.2%) 0%, hsl(248 72% 97.5%) 100%);
  padding: 1.1rem 1.1rem 1rem;
  animation: flowIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sol-kicker-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.62rem;
}
.sol-kicker {
  font-size: 0.54rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: hsl(250 65% 40%);
}
.sol-difficulty {
  font-size: 0.58rem; font-weight: 650;
  color: rgba(107, 84, 223, 0.55); letter-spacing: 0.03em;
}

.sol-insight {
  margin: 0 0 0.88rem;
  font-size: 0.86rem; color: hsl(250 45% 22%);
  line-height: 1.58; letter-spacing: -0.005em;
  padding-bottom: 0.82rem;
  border-bottom: 1px solid rgba(113, 84, 232, 0.1);
}

.sol-steps { display: grid; gap: 0.62rem; }
.sol-step {
  display: grid; grid-template-columns: 1.6rem minmax(0,1fr);
  gap: 0.56rem; align-items: start;
}
.sol-step-num {
  width: 1.6rem; height: 1.6rem; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(113, 84, 232, 0.1);
  color: hsl(250 65% 40%); font-size: 0.66rem; font-weight: 800;
}
.sol-step strong {
  display: block; font-size: 0.82rem; font-weight: 680;
  color: hsl(250 50% 18%); letter-spacing: -0.01em; margin-bottom: 0.14rem; line-height: 1.2;
}
.sol-step p {
  margin: 0; font-size: 0.8rem; color: hsl(250 30% 38%); line-height: 1.52;
}

/* ═══════════════════════════════════════════
   PROGRESS — ULTRA PROFESSIONAL REFINED
   ═══════════════════════════════════════════ */
#progressStrip {
  margin-top: 1.08rem;
  border-radius: 16px;
  padding: 1.48rem 1.58rem 1.42rem;
  background: linear-gradient(140deg, #2a2058 0%, #1d1848 100%);
  position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 22, 72, 0.28),
              0 1px 4px rgba(26, 22, 72, 0.18),
              0 1px 0 rgba(255, 255, 255, 0.04) inset;
  animation: flowIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  border: 1px solid rgba(113, 84, 232, 0.12);
}
#progressStrip::after {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 220px; height: 220px;
  background: radial-gradient(circle at center, rgba(126, 96, 255, 0.06) 0%, transparent 64%);
  pointer-events: none;
}

.pm-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.3rem;
  align-items: center;
  margin-bottom: 1.38rem;
  position: relative;
  padding-bottom: 1.18rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pm-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.pm-eyebrow {
  font-size: 0.62rem; font-weight: 880;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  line-height: 1;
}
.pm-subtitle {
  font-size: 0.72rem; font-weight: 540;
  letter-spacing: -0.002em;
  color: rgba(255,255,255,0.58);
  line-height: 1.32;
}
.pm-days-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.42rem;
}
.pm-days-label {
  font-size: 0.52rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.36);
  line-height: 1;
}
.pm-days {
  display: flex; align-items: center; gap: 0.36rem;
}
.pm-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,0.1); flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.5);
  animation: dotReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pm-dot:nth-child(1) { animation-delay: 0.05s; }
.pm-dot:nth-child(2) { animation-delay: 0.1s; }
.pm-dot:nth-child(3) { animation-delay: 0.15s; }
.pm-dot:nth-child(4) { animation-delay: 0.2s; }
.pm-dot:nth-child(5) { animation-delay: 0.25s; }
.pm-dot:nth-child(6) { animation-delay: 0.3s; }
.pm-dot:nth-child(7) { animation-delay: 0.35s; }
@keyframes dotReveal {
  to { opacity: 1; transform: scale(1); }
}
.pm-dot.done {
  background: rgba(168, 155, 255, 0.78);
  box-shadow: 0 0 8px rgba(146, 130, 255, 0.5);
}
.pm-dot.today.done {
  background: linear-gradient(135deg, #a8edcd, #8ed9bd);
  box-shadow: 0 0 10px rgba(168, 237, 205, 0.64);
}
.pm-dot.today:not(.done) {
  background: rgba(255,255,255,0.28);
  box-shadow: 0 0 6px rgba(255,255,255,0.2);
}

/* Grid stats for better layout */
.pm-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.68rem;
}
.pm-stat {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.pm-stat strong {
  font-size: 2.18rem; font-weight: 900;
  color: rgba(255,255,255,0.96);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pm-stat span {
  font-size: 0.68rem; font-weight: 680;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
#progressStrip.correct .pm-stat:first-child strong {
  color: #a8edcd;
  text-shadow: 0 0 12px rgba(168, 237, 205, 0.3);
}

.pm-caption {
  margin: 1.14rem 0 0;
  font-size: 0.72rem; color: rgba(255,255,255,0.56);
  line-height: 1.5; letter-spacing: -0.002em;
  font-weight: 500;
}

/* Progress strip is intentionally dark in both themes - the purple gradient works well */

/* ═══════════════════════════════════════════
   RATING (centered vertical, large stars)
   ═══════════════════════════════════════════ */
.rating-module {
  margin-top: 1.06rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; padding: 1.14rem 0 1.2rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  text-align: center;
}
.rating-label {
  font-size: 0.8rem; font-weight: 760;
  color: hsl(var(--muted-foreground)); letter-spacing: -0.01em;
}
.rating-hint {
  margin: 0;
  font-size: 0.7rem; font-weight: 720;
  color: hsl(var(--primary)); letter-spacing: -0.005em;
  animation: flowIn 0.22s ease both;
}
.rating-stars { display: flex; gap: 0.08rem; }
.rating-stars button {
  position: relative;
  color: #d0c8de; font-size: 1.64rem;
  width: 1.86rem; height: 1.86rem; padding: 0;
  line-height: 1;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.14s ease;
  overflow: hidden;
}
.rating-stars button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, hsl(var(--primary) / 0.25) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.rating-stars button:active::after {
  opacity: 1;
  transform: scale(2.2);
}
.rating-stars button:hover { transform: translateY(-2px) scale(1.14); color: #9b88ec; }
.rating-stars button:focus-visible {
  outline: 2px solid hsl(var(--primary) / 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}
.rating-stars button.on { color: hsl(var(--primary)); }
.rating-stars button.on::after { background: radial-gradient(circle, hsl(var(--primary) / 0.3) 0%, transparent 70%); }
[data-theme="dark"] .rating-stars button { color: hsl(var(--muted-foreground) / 0.5); }
[data-theme="dark"] .rating-stars button:hover { color: hsl(var(--primary) / 0.8); }
[data-theme="dark"] .rating-stars button.on { color: hsl(var(--primary)); }

/* ═══════════════════════════════════════════
   POST-ACTIONS: Premium tiles
   ═══════════════════════════════════════════ */
.postnav {
  margin-top: 1.92rem;
  animation: flowIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.postnav-header {
  margin: 0 0 0.78rem;
  font-size: 0.56rem; font-weight: 820;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #9a92ad; text-align: center;
}

/* Fused container grid - FINAL PREMIUM */
.postnav-grid {
  border: 1px solid #e2dbea;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fdfcff 100%);
  box-shadow: 0 16px 36px rgba(48, 38, 75, 0.06),
              0 6px 14px rgba(113, 84, 232, 0.03),
              0 1px 0 rgba(255,255,255,0.98) inset;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.postnav-tile {
  position: relative;
  min-height: 88px;
  background: transparent;
  border: none;
  border-right: 1px solid #efe9f8;
  border-bottom: 1px solid #efe9f8;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.82rem;
  padding: 1.08rem 1.2rem;
  text-align: left;
  color: #453d53;
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.postnav-tile:nth-child(2n) { border-right: none; }
.postnav-tile:nth-child(3), .postnav-tile:nth-child(4) { border-bottom: none; }

.postnav-tile:hover {
  background: linear-gradient(135deg, #faf8fe 0%, #fcfbff 100%);
  transform: translateZ(0);
}
.postnav-tile.active {
  background: linear-gradient(135deg, #f5f1fc 0%, #faf8fe 100%);
  box-shadow: inset 4px 0 0 hsl(var(--primary));
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Icon styles per tile - REFINED */
.tile-continue .tile-icon {
  background: linear-gradient(145deg, #f3efff, #ebe5f6);
  color: #4a3e5c;
  box-shadow: 0 3px 10px rgba(74, 62, 92, 0.08);
}
.tile-subscribe .tile-icon {
  background: linear-gradient(145deg, #f1ecff, #e8e1f8);
  color: hsl(var(--primary));
  box-shadow: 0 3px 10px rgba(113, 84, 232, 0.12);
}
.tile-share .tile-icon {
  background: linear-gradient(145deg, #e8f7ee, #ddf2e6);
  color: #168a50;
  box-shadow: 0 3px 10px rgba(22, 138, 80, 0.1);
}
.tile-tell .tile-icon {
  background: linear-gradient(145deg, #fef6ea, #fdefd8);
  color: #a87435;
  box-shadow: 0 3px 10px rgba(168, 116, 53, 0.1);
}

.postnav-tile:hover .tile-icon {
  transform: translateY(-1px) scale(1.02);
}
.postnav-tile.active .tile-icon {
  transform: scale(1.04);
}

.tile-continue.active .tile-icon {
  background: linear-gradient(135deg, #3a3348, #564966);
  color: #fff;
  box-shadow: 0 6px 18px rgba(58, 51, 72, 0.24);
}
.tile-subscribe.active .tile-icon {
  background: linear-gradient(135deg, #6b54df, #8570ed);
  color: #fff;
  box-shadow: 0 6px 18px rgba(113, 84, 232, 0.28);
}
.tile-share.active .tile-icon {
  background: linear-gradient(135deg, #168a50, #2eaa65);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 138, 80, 0.24);
}
.tile-tell.active .tile-icon {
  background: linear-gradient(135deg, #8b6428, #b8873a);
  color: #fff;
  box-shadow: 0 6px 18px rgba(168, 116, 53, 0.24);
}

.tile-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}
.tile-copy strong {
  display: block;
  color: #2d2836;
  font-size: 0.88rem;
  line-height: 1.18;
  font-weight: 860;
  letter-spacing: -0.022em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-copy em {
  display: block;
  font-style: normal;
  color: #968fa1;
  font-size: 0.68rem;
  font-weight: 620;
  line-height: 1.24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Panels below grid */
.postnav-panel {
  margin-top: 0.72rem;
  border: 1px solid #e8e2f0;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fdfcff 100%);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(48, 38, 75, 0.06),
              0 6px 14px rgba(113, 84, 232, 0.03),
              0 1px 0 rgba(255,255,255,0.98) inset;
  animation: flowIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.postnav-panel-inner {
  padding: 1.2rem 1.3rem 1.3rem;
}
.postnav-panel-intro {
  margin-bottom: 0.82rem;
}
.postnav-panel-intro strong {
  display: block;
  margin: 0 0 0.22rem;
  color: #8174a0;
  font-size: 0.64rem;
  font-weight: 880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.postnav-panel-intro p {
  margin: 0;
  color: #746a80;
  font-size: 0.84rem;
  line-height: 1.42;
  font-weight: 520;
}

/* ═══ WEEK HEADING (rich) ═══ */
.week-heading {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.8rem; margin-bottom: 0.72rem;
}
.week-heading-text strong {
  display: block; margin: 0 0 0.16rem;
  color: #302a3a; font-size: 0.96rem; font-weight: 890; letter-spacing: -0.02em;
}
.week-heading-text p { margin: 0; color: #746a80; font-size: 0.8rem; line-height: 1.35; }
.week-heading-badge {
  flex-shrink: 0; min-width: 2.4rem; height: 1.5rem;
  border-radius: 999px; padding: 0 0.5rem;
  background: #e6f9ee; color: #168a50;
  font-size: 0.62rem; font-weight: 880;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ═══ SUBSCRIBE HEADING (with logo) ═══ */
.subscribe-heading {
  display: grid; grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.56rem; align-items: start;
  margin-bottom: 0.72rem;
}
.subscribe-logo {
  width: 36px; height: 36px; border-radius: 15px;
  background: #f3efff; display: grid; place-items: center;
}
.subscribe-heading strong {
  display: block; color: #302a3a; font-size: 0.96rem; font-weight: 890;
}
.subscribe-heading p { margin: 0.12rem 0 0; color: #746a80; font-size: 0.8rem; line-height: 1.35; }
.mail-label {
  display: block; margin: 0 0 0.4rem;
  color: #766a83; font-size: 0.62rem; font-weight: 880;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.mail-consent {
  display: flex; align-items: flex-start; gap: 0.36rem;
  margin-top: 0.46rem; color: #837b8f;
  font-size: 0.66rem; line-height: 1.3; font-weight: 520;
}
.mail-consent input { margin-top: 0.08rem; }

/* ═══ SHARE LABEL ROW ═══ */
.share-label-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.56rem 0.82rem 0;
}
.share-label-row span { color: #80748e; font-size: 0.58rem; font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }
.share-toggle-result {
  color: hsl(var(--primary)); font-size: 0.66rem; font-weight: 740;
  text-decoration: underline; text-underline-offset: 2px;
}

/* ═══ TELL HEADING (direct) ═══ */
.tell-heading { margin-bottom: 0.82rem; }
.tell-heading strong {
  display: block; color: #302a3a; font-size: 1rem; font-weight: 890;
  letter-spacing: -0.024em; line-height: 1.1;
}
.tell-heading p {
  margin: 0.18rem 0 0; color: #746a80; font-size: 0.82rem;
  line-height: 1.42; font-weight: 500;
}

/* ═══ WEEK LIST (Preview 2 pattern) ═══ */
.week-list { list-style: none; display: grid; gap: 0.36rem; }
.week-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 0.62rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 14px; background: #fff;
  transition: background 140ms ease, border-color 140ms ease;
}
.week-row:hover { background: #faf7ff; border-color: #d2c5f6; }
.week-day-chip {
  display: flex; flex-direction: column; align-items: center;
  min-width: 2.8rem; padding: 0.28rem 0.36rem;
  background: hsl(var(--secondary)); border-radius: 8px;
}
.week-day-chip .wd-day {
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: #5a5266; line-height: 1;
}
.week-day-chip .wd-date {
  font-size: 0.66rem; font-weight: 650; color: #322d3a;
  font-variant-numeric: tabular-nums; margin-top: 0.12rem; line-height: 1;
}
.week-info { min-width: 0; }
.week-info-title {
  display: block; font-size: 0.84rem; font-weight: 650;
  color: #302a3a; line-height: 1.18;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.week-info-meta {
  display: block; margin-top: 0.14rem;
  font-size: 0.65rem; color: #968fa1; font-weight: 500;
}
.week-status {
  width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
}
.week-status.done { background: #e6f9ee; color: #168a50; }
.week-status.pending { border: 1.5px solid hsl(var(--border)); background: transparent; }

/* Week Panel ULTRA PREMIUM */
.week-panel-premium .postnav-panel-inner {
  padding: 1.62rem 1.48rem 1.52rem;
  background: linear-gradient(180deg, rgba(250, 248, 254, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: inherit;
}
.week-heading-premium {
  margin-bottom: 1.48rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.3rem;
  align-items: center;
  padding-bottom: 1.32rem;
  border-bottom: 1px solid rgba(113, 84, 232, 0.06);
}
.week-heading-left {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}
.week-heading-premium strong {
  font-size: 1.08rem; font-weight: 880; color: #2d2836;
  letter-spacing: -0.024em; line-height: 1;
}
.week-stats-compact {
  display: flex;
  align-items: baseline;
  gap: 0.62rem;
}
.wsc-done {
  display: flex;
  align-items: baseline;
  gap: 0.24rem;
}
.wsc-done strong {
  font-size: 1.68rem;
  font-weight: 900;
  color: hsl(var(--primary));
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wsc-done span {
  font-size: 0.82rem;
  font-weight: 680;
  color: #968fa1;
}
.wsc-separator {
  font-size: 0.82rem;
  font-weight: 640;
  color: #cbc3dc;
  margin: 0 0.08rem;
}
.wsc-pending {
  font-size: 0.76rem;
  font-weight: 640;
  color: #b8afd2;
}
.week-progress-ring-compact {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.week-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.week-ring-progress {
  transition: stroke-dasharray 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.week-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wrc-percent {
  font-size: 1.16rem;
  font-weight: 900;
  color: hsl(var(--primary));
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wrc-symbol {
  font-size: 0.62rem;
  font-weight: 800;
  color: #8174a0;
  line-height: 1;
  margin-top: 0.08rem;
}
@keyframes weekRingIn {
  from { stroke-dasharray: 0 100; }
}
.week-ring-progress {
  animation: weekRingIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes weekRowSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.week-list-premium li {
  animation: weekRowSlide 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.week-list-premium li:nth-child(1) { animation-delay: 0.04s; }
.week-list-premium li:nth-child(2) { animation-delay: 0.08s; }
.week-list-premium li:nth-child(3) { animation-delay: 0.12s; }
.week-list-premium li:nth-child(4) { animation-delay: 0.16s; }
.week-list-premium li:nth-child(5) { animation-delay: 0.2s; }
.week-list-premium li:nth-child(6) { animation-delay: 0.24s; }
.week-list-premium li:nth-child(7) { animation-delay: 0.28s; }
.week-list-premium {
  display: grid; gap: 0.52rem; list-style: none;
}
.week-row-premium {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 2rem;
  align-items: center; gap: 0.92rem;
  width: 100%; min-height: 4rem; padding: 0.82rem 0.92rem 0.82rem 0.88rem;
  border: 1px solid rgba(226, 220, 238, 0.6);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fdfcff 100%);
  box-shadow: 0 2px 8px rgba(48, 38, 75, 0.03),
              0 1px 0 rgba(255,255,255,0.98) inset;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none; color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.week-row-premium:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 84, 232, 0.28);
  box-shadow: 0 8px 24px rgba(113, 84, 232, 0.1),
              0 2px 8px rgba(113, 84, 232, 0.06),
              0 1px 0 rgba(255,255,255,0.98) inset;
}
/* Today row: violet accent */
.week-row-premium.week-today {
  border-color: rgba(113, 84, 232, 0.25);
  background: linear-gradient(135deg, rgba(113, 84, 232, 0.04) 0%, rgba(166, 143, 240, 0.02) 50%, #fff 100%);
  box-shadow: 0 3px 12px rgba(113, 84, 232, 0.08),
              0 1px 0 rgba(255,255,255,0.98) inset,
              inset 3px 0 0 hsl(250 85% 60%);
}
.week-row-premium.week-today:hover {
  border-color: rgba(113, 84, 232, 0.38);
  box-shadow: 0 10px 28px rgba(113, 84, 232, 0.14),
              0 2px 8px rgba(113, 84, 232, 0.08),
              0 1px 0 rgba(255,255,255,0.98) inset,
              inset 3px 0 0 hsl(250 85% 60%);
}
/* Done row: green tint */
.week-row-premium.week-done {
  background: linear-gradient(135deg, rgba(22, 138, 80, 0.025) 0%, #fff 100%);
  border-color: rgba(22, 138, 80, 0.14);
}
.week-row-premium.week-done:hover {
  border-color: rgba(22, 138, 80, 0.28);
  box-shadow: 0 8px 24px rgba(22, 138, 80, 0.08),
              0 2px 8px rgba(22, 138, 80, 0.04),
              0 1px 0 rgba(255,255,255,0.98) inset;
}
/* Today + Done combined */
.week-row-premium.week-today.week-done {
  border-color: rgba(22, 138, 80, 0.2);
  background: linear-gradient(135deg, rgba(22, 138, 80, 0.03) 0%, rgba(113, 84, 232, 0.02) 50%, #fff 100%);
  box-shadow: 0 3px 12px rgba(22, 138, 80, 0.06),
              0 1px 0 rgba(255,255,255,0.98) inset,
              inset 3px 0 0 #168a50;
}
.week-day-chip-premium {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 3.2rem; height: 3.2rem; flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, #f5f1fc, #fdfcff);
  border: 1px solid rgba(113, 84, 232, 0.12);
  box-shadow: 0 2px 6px rgba(113, 84, 232, 0.06);
  transition: all 0.22s ease;
}
.week-day-chip-premium.wdc-today {
  background: linear-gradient(145deg, hsl(250 85% 60%), hsl(250 75% 52%));
  border-color: hsl(250 85% 55%);
  box-shadow: 0 3px 10px rgba(113, 84, 232, 0.3);
}
.week-day-chip-premium.wdc-today .wdc-day {
  color: rgba(255, 255, 255, 0.85);
}
.week-day-chip-premium.wdc-today .wdc-date {
  color: #fff;
}
.week-day-chip-premium.wdc-done {
  background: linear-gradient(145deg, #e8f9ef, #f4fdf7);
  border-color: rgba(22, 138, 80, 0.18);
}
.week-day-chip-premium.wdc-done .wdc-day {
  color: #168a50;
}
.week-day-chip-premium.wdc-done .wdc-date {
  color: #14774a;
}
/* Today + Done: keep today's violet chip */
.week-day-chip-premium.wdc-today.wdc-done {
  background: linear-gradient(145deg, #168a50, #1a9d5a);
  border-color: #168a50;
  box-shadow: 0 3px 10px rgba(22, 138, 80, 0.3);
}
.week-day-chip-premium.wdc-today.wdc-done .wdc-day {
  color: rgba(255, 255, 255, 0.85);
}
.week-day-chip-premium.wdc-today.wdc-done .wdc-date {
  color: #fff;
}
.wdc-day {
  display: block; font-size: 0.62rem; font-weight: 860;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: hsl(var(--primary) / 0.8); line-height: 1;
}
.wdc-date {
  display: block; font-size: 0.96rem; font-weight: 880;
  color: #322d3a; font-variant-numeric: tabular-nums;
  margin-top: 0.28rem; line-height: 1;
}
.week-info-premium {
  display: flex; flex-direction: column; min-width: 0;
}
.wip-title {
  display: block; font-size: 0.92rem; font-weight: 720;
  color: #302a3a; line-height: 1.28; letter-spacing: -0.014em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 0.28rem;
}
.wip-meta {
  display: flex; align-items: center; gap: 0.42rem;
}
.wip-level {
  font-size: 0.68rem; font-weight: 680; color: #8174a0;
  text-transform: capitalize;
}
.wip-dot {
  font-size: 0.68rem; color: #d2c9e2; font-weight: 800;
}
.wip-theme {
  font-size: 0.68rem; font-weight: 640; color: #968fa1;
}
/* Difficulty dots */
.wip-diff-dots {
  display: inline-flex; align-items: center; gap: 2.5px;
}
.wip-diff-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(200, 192, 220, 0.5);
  transition: background 0.2s ease;
}
.wip-diff-dot.active {
  background: hsl(var(--primary) / 0.65);
}
.week-row-premium.week-done .wip-diff-dot.active {
  background: rgba(22, 138, 80, 0.5);
}
/* Inline check before title on done rows */
.wip-check-inline {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 0.32rem;
  opacity: 0.8;
}
.week-status-premium {
  width: 2rem; height: 2rem; border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
  transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-left: auto;
  justify-self: end;
}
.week-status-premium.done {
  background: linear-gradient(135deg, #e6f9ee, #f0fdf6);
  border: 1px solid rgba(22, 138, 80, 0.2);
  color: #168a50;
  box-shadow: 0 3px 10px rgba(22, 138, 80, 0.12),
              0 1px 0 rgba(255,255,255,0.8) inset;
}
.week-status-premium.pending {
  background: transparent;
  border: none;
  color: #b8afd2;
}
.week-row-premium:hover .week-status-premium.done {
  transform: scale(1.08);
}
.week-row-premium:hover .week-status-premium.pending {
  color: hsl(var(--primary) / 0.6);
  transform: translateX(2px);
}
.week-footer-link {
  width: 100%; margin-top: 1.1rem; min-height: 2.82rem;
  border-radius: 15px;
  background: linear-gradient(135deg, #faf8fe 0%, #f4efff 100%);
  border: 1px solid rgba(113, 84, 232, 0.14);
  color: hsl(var(--primary));
  font-size: 0.82rem; font-weight: 840; letter-spacing: -0.012em;
  display: flex; align-items: center; justify-content: center; gap: 0.48rem;
  box-shadow: 0 2px 8px rgba(113, 84, 232, 0.04),
              0 1px 0 rgba(255,255,255,0.96) inset;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}
.week-footer-link .wfl-icon {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.week-footer-link .wfl-arrow {
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.week-footer-link:hover {
  background: linear-gradient(135deg, #f1ecff, #ede6ff);
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(113, 84, 232, 0.1),
              0 1px 0 rgba(255,255,255,0.96) inset;
}
.week-footer-link:hover .wfl-icon { opacity: 1; }
.week-footer-link:hover .wfl-arrow { transform: translateX(2px); opacity: 0.8; }

/* Week Panel Ultra */
.week-header-ultra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.3rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid #f0ebf8;
}
.week-header-stats {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}
.week-stat-main {
  display: flex;
  align-items: baseline;
  gap: 0.28rem;
}
.week-stat-value {
  font-size: 2.4rem;
  font-weight: 880;
  color: hsl(var(--primary));
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.week-stat-separator {
  font-size: 1.6rem;
  font-weight: 640;
  color: #cbc3dc;
  line-height: 1;
}
.week-stat-total {
  font-size: 1.6rem;
  font-weight: 740;
  color: #8174a0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.week-stat-labels {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.week-stat-label {
  font-size: 0.82rem;
  font-weight: 580;
  color: #746a80;
  letter-spacing: -0.008em;
}
.week-stat-pending {
  font-size: 0.72rem;
  font-weight: 680;
  color: #a08fb6;
}
.week-progress-ring {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.week-ring-svg {
  width: 100%;
  height: 100%;
}
.week-ring-progress {
  transition: stroke-dasharray 0.82s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.week-ring-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.32rem;
  font-weight: 880;
  color: hsl(var(--primary));
  line-height: 1;
}
.week-ring-percent-symbol {
  font-size: 0.82rem;
  font-weight: 740;
  color: #8174a0;
  margin-left: -0.06rem;
}
.week-list-ultra {
  display: grid;
  gap: 0.42rem;
  list-style: none;
}
.week-item-ultra {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0.82rem 1rem;
  border: 1px solid #ebe5f6;
  border-radius: 17px;
  background: linear-gradient(180deg, #fff, #fdfcff);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.week-item-ultra:hover {
  background: linear-gradient(90deg, #faf7fe, #fff);
  border-color: hsl(var(--primary) / 0.28);
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 6px 18px rgba(113, 84, 232, 0.08);
  transform: translateY(-1px);
}
.week-item-date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.48rem;
  border-radius: 11px;
  background: linear-gradient(145deg, #f3efff, #faf7ff);
  border: 1px solid #ebe5f6;
  font-size: 0.78rem;
  font-weight: 880;
  color: #7154e8;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.012em;
  flex-shrink: 0;
}
.week-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  min-width: 0;
}
.week-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.52rem;
}
.week-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #2d2836;
  line-height: 1.24;
  letter-spacing: -0.016em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.week-item-done-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.48rem;
  height: 1.48rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6f9ee, #f0fdf4);
  color: #168a50;
  flex-shrink: 0;
}
.week-item-meta-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}
.week-item-level {
  font-size: 0.7rem;
  font-weight: 660;
  color: #8174a0;
  text-transform: capitalize;
}
.week-item-separator {
  font-size: 0.7rem;
  color: #d8d0e8;
  font-weight: 700;
}
.week-item-theme {
  font-size: 0.7rem;
  font-weight: 620;
  color: #a08fb6;
}
.week-item-arrow {
  color: #cbc3dc;
  flex-shrink: 0;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.16s ease;
}
.week-item-ultra:hover .week-item-arrow {
  transform: translateX(3px);
  color: hsl(var(--primary));
}
.week-footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.56rem;
  width: 100%;
  min-height: 3.2rem;
  margin-top: 1.2rem;
  padding: 0 1.1rem;
  border-radius: 17px;
  background: linear-gradient(135deg, #faf8fe, #fff);
  border: 1px solid #ebe5f6;
  color: hsl(var(--primary));
  font-size: 0.86rem;
  font-weight: 860;
  letter-spacing: -0.014em;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.98) inset,
              0 2px 6px rgba(0,0,0,0.024);
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.week-footer-cta:hover {
  background: linear-gradient(135deg, #f1ecff, #faf7ff);
  border-color: hsl(var(--primary) / 0.36);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.98) inset,
              0 8px 20px rgba(113, 84, 232, 0.12);
}
.week-footer-cta svg {
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.week-footer-cta:hover svg {
  transform: translateX(3px);
}

/* Subscribe Panel Ultra */
.subscribe-panel-ultra .postnav-panel-inner {
  padding: 1.5rem 1.3rem;
}
.subscribe-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid #f0ebf8;
}
.subscribe-hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 19px;
  background: linear-gradient(145deg, #f1ecff, #faf7ff);
  border: 1px solid #ebe5f6;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(113, 84, 232, 0.09),
              0 1px 0 rgba(255,255,255,0.88) inset;
}
.subscribe-hero-text h3 {
  margin: 0 0 0.32rem;
  font-size: 1.1rem;
  font-weight: 880;
  color: #2d2836;
  letter-spacing: -0.026em;
  line-height: 1.18;
}
.subscribe-hero-text p {
  margin: 0;
  font-size: 0.86rem;
  color: #746a80;
  line-height: 1.5;
  font-weight: 520;
}
.subscribe-form-ultra {
  display: grid;
  gap: 0.72rem;
  margin-bottom: 1.1rem;
}
.subscribe-input-group {
  display: grid;
  gap: 0.48rem;
}
.subscribe-label {
  font-size: 0.74rem;
  font-weight: 780;
  color: #4a4258;
  letter-spacing: 0.008em;
}
.subscribe-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.58rem;
}
.subscribe-input {
  min-height: 3rem;
  padding: 0 1rem;
  border: 1.5px solid #e2dbea;
  border-radius: 16px;
  background: #fff;
  font-size: 0.9rem;
  color: hsl(var(--foreground));
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.subscribe-input:focus {
  border-color: hsl(var(--primary) / 0.48);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset,
              0 0 0 3px hsla(250, 85%, 60%, 0.1);
}
.subscribe-submit {
  min-height: 3rem;
  padding: 0 1.32rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 860;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: none;
  box-shadow: 0 8px 20px rgba(113, 84, 232, 0.2),
              0 2px 6px rgba(113, 84, 232, 0.14);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.16s ease;
}
.subscribe-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(113, 84, 232, 0.26),
              0 4px 10px rgba(113, 84, 232, 0.16);
}
.subscribe-submit:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.subscribe-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
  font-size: 0.7rem;
  color: #837b8f;
  line-height: 1.38;
  font-weight: 540;
}
.subscribe-consent input {
  margin-top: 0.12rem;
}
.subscribe-consent a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.subscribe-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.2rem 0 1rem;
  position: relative;
}
.subscribe-divider::before,
.subscribe-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: hsl(var(--border) / 0.5);
}
.subscribe-divider span {
  padding: 0 0.92rem;
  font-size: 0.72rem;
  font-weight: 640;
  color: #968fa1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.subscribe-telegram-ultra {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.76rem;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.76rem 0.88rem;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fcff, #fff);
  text-decoration: none;
  color: #2f293b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset,
              0 2px 8px rgba(0, 0, 0, 0.028);
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.subscribe-telegram-ultra:hover {
  transform: translateY(-2px);
  border-color: #b8ddf8;
  background: linear-gradient(135deg, #f0f8ff, #fff);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96) inset,
              0 8px 20px rgba(34, 155, 214, 0.12);
}
.sub-tg-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e3f5ff, #ecf8ff);
  color: #229bd6;
  box-shadow: 0 2px 8px rgba(34, 155, 214, 0.1);
}
.sub-tg-text {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}
.sub-tg-text strong {
  font-size: 0.9rem;
  font-weight: 880;
  color: #2d2836;
  letter-spacing: -0.014em;
}
.sub-tg-text em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 650;
  color: #7d7488;
}
.sub-tg-arrow {
  color: #b8d9f0;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.16s ease;
}
.subscribe-telegram-ultra:hover .sub-tg-arrow {
  color: #229bd6;
  transform: translate(2px, -2px);
}

/* Share Panel Ultra - FINAL PREMIUM */
.share-panel-ultra .postnav-panel-inner {
  padding: 1.5rem 1.3rem;
}
.share-hero-premium {
  margin-bottom: 1.5rem;
}
.share-hero-premium h3 {
  margin: 0 0 0.32rem;
  font-size: 1.1rem;
  font-weight: 880;
  color: #2d2836;
  letter-spacing: -0.026em;
  line-height: 1.18;
}
.share-hero-premium p {
  margin: 0;
  font-size: 0.86rem;
  color: #837b8f;
  line-height: 1.5;
  font-weight: 520;
}

/* Message card */
.share-message-premium {
  border: 1px solid #ebe5f6;
  border-radius: 21px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: 0 4px 14px rgba(48, 38, 75, 0.04),
              0 1px 0 rgba(255,255,255,0.98) inset;
}
.share-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.96rem 1.12rem;
  background: linear-gradient(180deg, #fdfcff, #fff);
  border-bottom: 1px solid #f5f2fa;
}
.share-message-title {
  font-size: 0.72rem;
  font-weight: 860;
  color: #8174a0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.share-checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  cursor: pointer;
  user-select: none;
}
.share-checkbox-control input[type="checkbox"] {
  width: 1.16rem;
  height: 1.16rem;
  cursor: pointer;
  accent-color: hsl(var(--primary));
}
.share-checkbox-control span {
  font-size: 0.76rem;
  font-weight: 640;
  color: #6b6177;
  letter-spacing: -0.008em;
}
.share-message-content {
  padding: 1.32rem 1.2rem;
}
.share-message-text {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.72;
  color: #4a4258;
  letter-spacing: 0.002em;
  white-space: pre-wrap;
}
.share-message-actions {
  padding: 0.88rem 1.12rem;
  background: linear-gradient(180deg, #fafbff, #fff);
  border-top: 1px solid #f5f2fa;
}
.share-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.56rem;
  width: 100%;
  min-height: 3rem;
  padding: 0 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 860;
  letter-spacing: -0.012em;
  border: none;
  box-shadow: 0 6px 16px rgba(113, 84, 232, 0.18),
              0 2px 6px rgba(113, 84, 232, 0.12);
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.share-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(113, 84, 232, 0.24),
              0 4px 10px rgba(113, 84, 232, 0.14);
}

/* Divider */
.share-divider-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.2rem;
  position: relative;
}
.share-divider-premium::before,
.share-divider-premium::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ebe5f6 20%, #ebe5f6 80%, transparent);
}
.share-divider-premium span {
  padding: 0 1rem;
  font-size: 0.72rem;
  font-weight: 720;
  color: #968fa1;
  letter-spacing: 0.02em;
}

/* Platform cards - NO CELL BACKGROUND */
.share-platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.82rem;
}
.share-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  padding: 0.6rem 0.5rem;
  border: none;
  background: transparent;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.share-platform-card:hover {
  transform: translateY(-3px);
}
.platform-card-icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.platform-card-label {
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: -0.012em;
  transition: all 0.16s ease;
}

/* Platform-specific styles */
.share-platform-card.whatsapp .platform-card-icon {
  background: linear-gradient(145deg, #e6f9ee, #f0fdf4);
  color: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.14),
              0 1px 0 rgba(255,255,255,0.48) inset;
}
.share-platform-card.whatsapp .platform-card-label {
  color: #2aa058;
}
.share-platform-card.whatsapp:hover .platform-card-icon {
  background: linear-gradient(145deg, #d4f5dd, #e6f9ee);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.22),
              0 1px 0 rgba(255,255,255,0.48) inset;
  transform: translateY(-2px) scale(1.06);
}
.share-platform-card.whatsapp:hover .platform-card-label {
  color: #25d366;
  transform: translateY(-1px);
}

.share-platform-card.telegram .platform-card-icon {
  background: linear-gradient(145deg, #e3f5ff, #f0f9ff);
  color: #229bd6;
  box-shadow: 0 4px 14px rgba(34, 155, 214, 0.14),
              0 1px 0 rgba(255,255,255,0.48) inset;
}
.share-platform-card.telegram .platform-card-label {
  color: #2a8ab8;
}
.share-platform-card.telegram:hover .platform-card-icon {
  background: linear-gradient(145deg, #ceeeff, #e3f5ff);
  box-shadow: 0 8px 22px rgba(34, 155, 214, 0.22),
              0 1px 0 rgba(255,255,255,0.48) inset;
  transform: translateY(-2px) scale(1.06);
}
.share-platform-card.telegram:hover .platform-card-label {
  color: #229bd6;
  transform: translateY(-1px);
}

.share-platform-card.x .platform-card-icon {
  background: linear-gradient(145deg, #f1f3f5, #f8f9fa);
  color: #14171a;
  box-shadow: 0 4px 14px rgba(20, 23, 26, 0.12),
              0 1px 0 rgba(255,255,255,0.48) inset;
}
.share-platform-card.x .platform-card-label {
  color: #3a3d42;
}
.share-platform-card.x:hover .platform-card-icon {
  background: linear-gradient(145deg, #e6e9ec, #f1f3f5);
  box-shadow: 0 8px 22px rgba(20, 23, 26, 0.18),
              0 1px 0 rgba(255,255,255,0.48) inset;
  transform: translateY(-2px) scale(1.06);
}
.share-platform-card.x:hover .platform-card-label {
  color: #14171a;
  transform: translateY(-1px);
}

.share-platform-card.more .platform-card-icon {
  background: linear-gradient(145deg, #f1ecff, #faf7ff);
  color: hsl(var(--primary));
  box-shadow: 0 4px 14px rgba(113, 84, 232, 0.14),
              0 1px 0 rgba(255,255,255,0.48) inset;
}
.share-platform-card.more .platform-card-label {
  color: #8570c8;
}
.share-platform-card.more:hover .platform-card-icon {
  background: linear-gradient(145deg, #e8e1f8, #f1ecff);
  box-shadow: 0 8px 22px rgba(113, 84, 232, 0.22),
              0 1px 0 rgba(255,255,255,0.48) inset;
  transform: translateY(-2px) scale(1.06);
}
.share-platform-card.more:hover .platform-card-label {
  color: hsl(var(--primary));
  transform: translateY(-1px);
}

/* Newsletter panel */
.newsletter-panel-form { display: grid; gap: 0.62rem; }
.newsletter-panel-form .mail-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.56rem;
}
.newsletter-panel-form .mail-row input {
  min-height: 2.8rem; border-radius: 16px; padding: 0 0.92rem;
  font-size: 0.88rem; background: #fff;
  border: 1.5px solid #e2dbea;
  color: hsl(var(--foreground)); outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.newsletter-panel-form .mail-row input:focus {
  border-color: hsl(var(--primary) / 0.42);
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 0 0 3px hsla(250, 85%, 60%, 0.08);
}
.newsletter-panel-form .mail-row button {
  min-height: 2.8rem; border-radius: 16px;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: white; padding: 0 1.12rem;
  font-size: 0.84rem; font-weight: 860; white-space: nowrap;
  letter-spacing: -0.008em;
  box-shadow: 0 8px 18px rgba(113, 84, 232, 0.18),
              0 2px 6px rgba(113, 84, 232, 0.12);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.16s ease;
}
.newsletter-panel-form .mail-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(113, 84, 232, 0.22),
              0 4px 8px rgba(113, 84, 232, 0.14);
}
.newsletter-telegram-btn {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center; gap: 0.68rem;
  width: 100%; min-height: 3.2rem; padding: 0.68rem 0.82rem;
  border: 1px solid #dfe7f0; border-radius: 17px;
  background: linear-gradient(135deg, #f8fcff, #fff);
  text-align: left; color: #2f293b;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 2px 6px rgba(0,0,0,0.022);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.newsletter-telegram-btn:hover {
  transform: translateY(-1px);
  border-color: #c7daf0;
  background: linear-gradient(135deg, #f0f8ff, #fff);
}
.newsletter-telegram-ico {
  width: 42px; height: 42px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e3f5ff, #ecf8ff);
  color: #229bd6;
  box-shadow: 0 2px 6px rgba(34, 155, 214, 0.08);
}
.newsletter-telegram-btn strong {
  display: block; font-size: 0.86rem; font-weight: 880;
  letter-spacing: -0.012em;
}
.newsletter-telegram-btn em {
  display: block; margin-top: 0.12rem; font-style: normal;
  color: #7d7488; font-size: 0.66rem; font-weight: 650;
}

/* Share panel */
.share-preview-box {
  border: 1px solid #e2dbea; border-radius: 18px;
  background: #fff; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.028);
}
.share-preview-text {
  margin: 0; padding: 0.92rem 1rem;
  font: 520 0.74rem/1.58 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #3d3850; white-space: pre-wrap; letter-spacing: -0.012em;
}
.share-actions {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 0.62rem;
  padding: 0.72rem 0.78rem; border-top: 1px solid #ebe5f6;
  background: linear-gradient(180deg, #f9f6ff, #fbf9ff);
}
.share-copy-btn {
  min-height: 2.56rem; border-radius: 15px; padding: 0 1rem;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: #fff; display: inline-flex; align-items: center; gap: 0.46rem;
  font-size: 0.8rem; font-weight: 860; letter-spacing: -0.008em;
  box-shadow: 0 8px 18px rgba(113, 84, 232, 0.18),
              0 2px 6px rgba(113, 84, 232, 0.12);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.16s ease;
}
.share-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(113, 84, 232, 0.22),
              0 4px 8px rgba(113, 84, 232, 0.14);
}
.share-targets {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.46rem; margin-top: 0.62rem;
}
.share-targets button {
  min-height: 2.48rem; border: 1px solid #e2dbea; border-radius: 15px;
  background: linear-gradient(180deg, #fff, #fdfcff);
  color: #50485d;
  display: flex; align-items: center; justify-content: center; gap: 0.36rem;
  font-size: 0.72rem; font-weight: 840; letter-spacing: -0.008em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.share-targets button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #faf7ff, #fff);
  border-color: hsl(var(--primary) / 0.24);
}

/* Tell panel */
.tell-list { display: grid; gap: 0.46rem; }
.tell-row {
  width: 100%; min-height: 3.2rem;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center; gap: 0.68rem;
  padding: 0.68rem 0.76rem; text-align: left;
  border: 1px solid #e2dbea; border-radius: 17px;
  background: linear-gradient(180deg, #fff, #fdfcff);
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 2px 6px rgba(0,0,0,0.022);
  transition: background 140ms ease, border-color 140ms ease, transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.tell-row:hover {
  background: linear-gradient(90deg, #f8f4ff, #fff);
  border-color: hsl(var(--primary) / 0.28);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 6px 16px rgba(113, 84, 232, 0.08);
}
.tell-row-icon {
  width: 36px; height: 36px; border-radius: 14px;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.tell-row strong {
  display: block; font-size: 0.84rem; font-weight: 860;
  color: #322d3d; line-height: 1.18; letter-spacing: -0.012em;
}
.tell-row em {
  display: block; margin-top: 0.14rem; font-style: normal;
  font-size: 0.66rem; color: #8b8398; line-height: 1.28; font-weight: 620;
}
.tell-row-arrow {
  color: #b8afd2; justify-self: end;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.14s ease;
}
.tell-row:hover .tell-row-arrow {
  color: hsl(var(--primary));
  transform: translateX(2px);
}

/* Tell form (cuando se expande un motive) */
.tell-back-btn {
  display: inline-flex; align-items: center; gap: 0.42rem;
  margin-bottom: 0.92rem; padding: 0.46rem 0.78rem 0.46rem 0.58rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #f5f2fa, #faf8fd);
  border: 1px solid #ebe5f6;
  font-size: 0.78rem; font-weight: 760; color: #6b54df;
  letter-spacing: -0.008em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
.tell-back-btn:hover {
  background: linear-gradient(135deg, #ede8ff, #f5f2fa);
  border-color: hsl(var(--primary) / 0.24);
  transform: translateX(-2px);
}

.tell-form-heading {
  display: grid; grid-template-columns: 48px minmax(0, 1fr);
  align-items: center; gap: 0.82rem;
  margin-bottom: 1.1rem; padding-bottom: 0.96rem;
  border-bottom: 1px solid hsl(var(--border) / 0.62);
}
.tell-form-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
              0 1px 0 rgba(255,255,255,0.32) inset;
}
.tell-form-heading strong {
  display: block; font-size: 1.04rem; font-weight: 880;
  color: #2d2836; letter-spacing: -0.024em; margin-bottom: 0.18rem;
}
.tell-form-heading p {
  margin: 0; font-size: 0.78rem; color: #7d7488; line-height: 1.42;
}

.tell-form { display: grid; gap: 0.88rem; }
.tell-form-field { display: grid; gap: 0.38rem; }
.tell-form-field label {
  font-size: 0.72rem; font-weight: 760;
  letter-spacing: 0.01em; color: #4a4258;
}
.tell-form-field input,
.tell-form-field textarea {
  width: 100%; padding: 0.78rem 0.92rem;
  border: 1.5px solid #e2dbea; border-radius: 15px;
  background: #fff; font-size: 0.88rem; color: hsl(var(--foreground));
  font-family: inherit; line-height: 1.5;
  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  resize: vertical;
}
.tell-form-field input:focus,
.tell-form-field textarea:focus {
  border-color: hsl(var(--primary) / 0.42);
  box-shadow: 0 1px 0 rgba(255,255,255,0.96) inset,
              0 0 0 3px hsla(250, 85%, 60%, 0.08);
}
.tell-form-field textarea {
  min-height: 120px;
}
.tell-form-submit {
  width: 100%; min-height: 2.96rem;
  border-radius: 16px; padding: 0 1.2rem;
  background: linear-gradient(135deg, #7154e8, #9275ea);
  color: white; font-size: 0.88rem; font-weight: 860;
  letter-spacing: -0.012em;
  box-shadow: 0 8px 18px rgba(113, 84, 232, 0.18),
              0 2px 6px rgba(113, 84, 232, 0.12);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.16s ease;
}
.tell-form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(113, 84, 232, 0.22),
              0 4px 8px rgba(113, 84, 232, 0.14);
}
.tell-form-submit:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.field-hint {
  font-size: 0.68rem; color: #8b8398;
  font-weight: 540; margin-top: 0.24rem;
  display: block;
}

/* ═══════════════════════════════════════════
   SECONDARY FLOW (Mas opciones) - PREMIUM
   ═══════════════════════════════════════════ */
.secondary-flow { margin-top: 1.4rem; display: grid; gap: 0.5rem; }

#actionsHubSection {
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: 16px;
  background: linear-gradient(180deg, hsl(var(--card)) 0%, hsl(var(--secondary) / 0.4) 100%);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03), 0 1px 0 rgba(255,255,255,0.5) inset;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
#actionsHubSection:has(.secondary-toggle[aria-expanded="true"]) {
  border-color: hsl(var(--primary) / 0.2);
  box-shadow: 0 4px 16px rgba(113,84,232,0.08), 0 1px 0 rgba(255,255,255,0.5) inset;
}

.secondary-toggle {
  width: 100%; min-height: 3.2rem;
  background: transparent; color: hsl(var(--muted-foreground));
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.62rem; font-size: 0.84rem; font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0 1.1rem; transition: background-color 160ms ease, color 160ms ease;
}
.secondary-toggle:hover { background: hsl(var(--secondary) / 0.4); }

.secondary-toggle-meta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), background 160ms ease;
}
.secondary-toggle:hover .secondary-toggle-meta {
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}
.secondary-toggle-meta.is-open { transform: rotate(180deg); }

.actions-hub-panel {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  animation: flowIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.more-row {
  width: 100%; min-height: 3.1rem;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1rem;
  color: hsl(var(--foreground)); text-align: left;
  text-decoration: none;
  transition: background-color 140ms ease;
}
.more-row:hover { background: hsl(var(--secondary) / 0.55); }
.more-row .qa-icon {
  width: 30px; height: 30px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3efff; color: hsl(var(--primary));
  flex: 0 0 auto;
  transition: background 0.14s ease;
}
.more-row:hover .qa-icon { background: #e8e0ff; }
.more-row .qa-text { font-size: 0.88rem; font-weight: 620; color: #3a3348; }
.more-row .qa-sub { font-size: 0.62rem; font-weight: 550; color: #928aa0; margin-top: 0.06rem; }
.more-row .qa-copy { display: grid; gap: 0; }
.more-row .qa-arrow { margin-left: auto; color: #b8afca; flex: 0 0 auto; }
.more-divider { height: 1px; background: hsl(var(--border) / 0.72); margin: 0 0.6rem; }

/* ═══════════════════════════════════════════
   CONFETTI
   ═══════════════════════════════════════════ */
.confetti-shell {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 200;
}
.confetti-piece {
  position: absolute; top: -10px; border-radius: 2px;
  animation: confettiFall 2s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(82vh) rotate(480deg); }
}

@media (prefers-reduced-motion: reduce) {
  .confetti-piece, .puzzle-statement p, #dailyPuzzleCard, .result-flow, #progressStrip, .pm-dot { animation: none !important; }
  .pm-dot { opacity: 1; transform: none; }
  #dailyPuzzleCard { transition: none; }
  #dailyPuzzleCard:hover { transform: none; }
}

/* ═══════════════════════════════════════════
   GLOBAL FOCUS STATES
   ═══════════════════════════════════════════ */
:where(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.postnav-tile:focus-visible,
.tell-row:focus-visible,
.week-row-premium:focus-visible {
  outline: 2px solid hsl(var(--primary) / 0.6);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   DEMO BAR
   ═══════════════════════════════════════════ */
.demo-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: #1d1a24; padding: 8px 12px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
}
.demo-bar .demo-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8f87a6; margin-right: 2px; }
.demo-bar button { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid #3b3446; background: #2d2736; color: #a69daf; font-size: 11.5px; font-weight: 620; transition: background 0.12s ease; }
.demo-bar button:hover { background: #3b3446; }
.demo-bar button.active { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (hover: none) {
  #dailyPuzzleCard:hover { transform: none; box-shadow: 0 2px 8px rgba(48, 38, 75, 0.04), 0 1px 0 rgba(255, 255, 255, 0.98) inset; }
}
@media (max-width: 768px) {
  .home-main { width: min(42rem, calc(100% - 1.2rem)); padding-top: 5.5rem; }
  .brand-row { padding: 0 0.64rem; }
  .brand-link { gap: 0.14rem; }
  .brand-title { font-size: 1.5rem; }
  .hero-intro { margin-bottom: 1.16rem; }
  .hero-countdown { font-size: 0.72rem; }
  .date-line { font-size: 0.79rem; letter-spacing: 0.062em; }
  #dailyPuzzleCard { padding: 1.26rem 1.1rem 1.18rem; border-radius: calc(var(--radius) + 6px); }
  .puzzle-title { font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.12; }
  .answer-stack { flex-direction: column; }
  #checkBtn { width: 100%; min-height: 56px; height: 56px; border-radius: 15px; }
  .newsletter-panel-form .mail-row { grid-template-columns: 1fr; }
  .newsletter-panel-form .mail-row button { width: 100%; }
  .postnav-tile { min-height: 3.6rem; }
  .tile-copy strong { font-size: 0.7rem; }
  .tile-copy em { font-size: 0.5rem; }
  .share-targets { grid-template-columns: 1fr 1fr 1fr; }
  .share-targets button { font-size: 0.64rem; }
  .week-info-title { font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════
   KIMI INLINE HINTS (below puzzle card)
   ═══════════════════════════════════════════ */
.hint-step {
  margin-top: 0.52rem;
}

.hint-content {
  margin-top: 0.38rem;
  border-radius: calc(var(--radius) + 4px);
  padding: 0.82rem 0.92rem;
}

.hint-content.hint-card-visible {
  border: 1px solid rgb(245 158 11 / 0.24);
  background: linear-gradient(180deg, rgb(245 158 11 / 0.08), rgb(245 158 11 / 0.13));
}

.hint-kimi-head {
  margin: 0 0 0.18rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.hint-kimi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: rgb(245 158 11);
}

.hint-kimi-icon svg {
  width: 0.92rem;
  height: 0.92rem;
}

.hint-kimi-label {
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 620;
  color: rgb(217 119 6);
}

.hint-kimi-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.56;
  color: hsl(var(--foreground) / 0.9);
}

.hint-kimi-body p + p {
  margin-top: 0.54rem;
}

[data-theme="dark"] .hint-content.hint-card-visible {
  border-color: rgb(245 158 11 / 0.18);
  background: linear-gradient(180deg, rgb(245 158 11 / 0.06), rgb(245 158 11 / 0.10));
}

[data-theme="dark"] .hint-kimi-label { color: rgb(245 180 60); }
[data-theme="dark"] .hint-kimi-body p { color: hsl(var(--foreground) / 0.88); }

/* Dark mode: hint disclosure (purple/lavender panel inside card) */
[data-theme="dark"] .hint-disclosure {
  background: linear-gradient(170deg, hsl(250 22% 13%) 0%, hsl(250 20% 11%) 100%);
  border-color: rgba(113, 84, 232, 0.2);
}
[data-theme="dark"] .hint-disclosure .hint-kicker span { color: hsl(252 80% 75%); }
[data-theme="dark"] .hint-disclosure .hint-text { color: hsl(var(--foreground) / 0.82); }
[data-theme="dark"] .hint-disclosure .hint-dot { background: rgba(113, 84, 232, 0.25); }
[data-theme="dark"] .hint-disclosure .hint-dot.used { background: hsl(252 80% 68%); }
[data-theme="dark"] .hint-disclosure .hint-more { color: hsl(252 80% 72%); }

/* Dark mode: pill-solution (amber tones) */
[data-theme="dark"] .pill-solution {
  background: hsl(40 30% 12%);
  border-color: hsl(40 50% 25%);
  color: hsl(40 70% 65%);
}
[data-theme="dark"] .pill-solution:hover {
  background: hsl(40 30% 15%);
  border-color: hsl(40 50% 32%);
}
[data-theme="dark"] .pill-solution.active {
  background: hsl(40 55% 35%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(166, 124, 58, 0.3);
}

/* Dark mode: hints label/sub/chevron (hardcoded light colors) */
[data-theme="dark"] .hints-label { color: hsl(var(--foreground) / 0.92); }
[data-theme="dark"] .hints-sub { color: hsl(var(--muted-foreground) / 0.72); }
[data-theme="dark"] .hints-chevron { color: hsl(var(--muted-foreground) / 0.5); }
[data-theme="dark"] .hints-trigger.is-open .hints-chevron { color: hsl(var(--primary)); }

/* Dark mode: pill-hint explicit (helps with secondary var edge cases) */
[data-theme="dark"] .pill-hint { background: hsl(var(--secondary) / 0.6); border-color: hsl(var(--border) / 0.5); }
[data-theme="dark"] .pill-hint:hover { background: hsl(250 12% 20%); border-color: hsl(var(--primary) / 0.25); }

/* Dark mode: sol-kicker (hardcoded purple) */
[data-theme="dark"] .sol-kicker { color: hsl(var(--primary) / 0.82); }
[data-theme="dark"] .kimi-disclosure .sol-kicker { color: hsl(var(--primary) / 0.82); }
[data-theme="dark"] .kimi-disclosure .sol-difficulty { color: hsl(var(--primary) / 0.5); }
[data-theme="dark"] .kimi-disclosure .sol-step-num { color: hsl(var(--primary) / 0.9); }

/* Dark mode: puzzle-share-btn hover */
[data-theme="dark"] .puzzle-share-btn:hover {
  background: hsl(var(--secondary));
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  margin-top: 1.05rem;
  border-top: 1px solid hsl(var(--border) / 0.78);
  padding-top: 0.9rem;
  padding-bottom: 1.5rem;
}

.site-footer .footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
}

.site-footer .footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-line-primary {
  gap: 0.54rem 0.72rem;
}

.site-footer .footer-line-secondary {
  gap: 0.54rem 0.72rem;
}

.site-footer .footer-links a {
  line-height: 1.2;
  color: hsl(var(--muted-foreground));
}

.site-footer .footer-sep {
  font-size: 0.72rem;
  line-height: 1;
  color: hsl(var(--muted-foreground) / 0.72);
  user-select: none;
}

.site-footer .footer-line-primary a {
  font-size: 0.76rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.88);
  transition: color 0.14s ease;
}

.site-footer .footer-line-primary a:hover {
  color: hsl(var(--foreground));
}

.site-footer .footer-line-secondary a {
  font-size: 0.76rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground) / 0.88);
  transition: color 0.14s ease;
}

.site-footer .footer-line-secondary a:hover {
  color: hsl(var(--foreground));
}

.site-footer .copy {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground) / 0.84);
}

.heart-mark {
  color: #fb7185;
  font-weight: 500;
}

@media (max-width: 560px) {
  .site-footer .footer-top { row-gap: 0.44rem; }
  .site-footer .footer-line-primary { gap: 0.44rem 0.58rem; }
  .site-footer .footer-line-secondary { gap: 0.44rem 0.58rem; }
  .site-footer .footer-sep { font-size: 0.68rem; }
  .site-footer .footer-line-primary a,
  .site-footer .footer-line-secondary a,
  .site-footer .copy { font-size: 0.71rem; }
}

/* ═══════════════════════════════════════════
   SUPPORT CTA (pre-footer)
   ═══════════════════════════════════════════ */
.home-support-cta {
  display: grid;
  grid-template-columns: 44px 1fr 16px;
  align-items: center;
  gap: 0.9rem;
  margin: 2rem 0 1.6rem;
  padding: 1.25rem 1.15rem;
  border: 1px solid #4b3c72;
  border-radius: 20px;
  background: radial-gradient(circle at 16% 0, rgba(255,255,255,0.18), transparent 38%), linear-gradient(135deg, #241f2c, #4b3c72);
  box-shadow: 0 12px 32px rgba(45,39,54,0.18);
  color: #fff;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.home-support-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(45,39,54,0.26); }
.home-support-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255,255,255,0.13);
  display: grid; place-items: center; flex-shrink: 0;
}
.home-support-body strong { display: block; font-size: 1rem; font-weight: 860; letter-spacing: -0.02em; }
.home-support-body p { margin: 0.18rem 0 0; font-size: 0.76rem; font-weight: 500; color: rgba(255,255,255,0.7); line-height: 1.4; }
.home-support-arrow { opacity: 0.7; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   COLOFÓN — primera visita onboarding
   ═══════════════════════════════════════════ */

body.colofo-open { overflow: hidden; }

#colofonScreen {
  position: fixed; inset: 0; z-index: 1300;
  background: hsl(220 20% 98.6% / 0.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  display: grid; place-items: center;
  padding: 2.5rem 1.5rem;
  opacity: 0;
  animation: colofonIn 0.55s ease-out 0.08s forwards;
}
[data-theme="dark"] #colofonScreen {
  background: hsl(240 10% 8% / 0.85);
}
#colofonScreen.is-leaving {
  animation: colofonOut 0.35s ease-in forwards;
}

@keyframes colofonIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes colofonOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.colofo-inner {
  max-width: 340px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Marca: logo centrado arriba, nombre debajo */
.colofo-mark {
  width: 4.5rem; height: 4.5rem;
  flex-shrink: 0;
  animation: colofo-fade 600ms ease-out both;
}
.colofo-mark .mark-body { fill: hsl(var(--foreground)); }
.colofo-mark .mark-diamond { fill: hsl(var(--background)); }
[data-theme="dark"] .colofo-mark .mark-diamond { fill: hsl(240 10% 8%); }

.colofo-wordmark {
  margin-top: 1.1rem;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: lowercase;
  color: hsl(var(--foreground));
  animation: colofo-fade 600ms ease-out 200ms both;
}
.colofo-wordmark .wm-d { font-weight: 300; opacity: 0.42; }

/* Headline (optional) */
.colofo-headline {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(2.1rem, 7vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  margin: 2.2rem 0 1rem;
  text-wrap: balance;
}

/* Subtítulo */
.colofo-sub {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
  margin: 1.6rem 0 0;
  max-width: 24ch;
  animation: colofo-fade 600ms ease-out 350ms both;
}

/* CTA — gesto editorial */
.colofo-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 3rem;
  padding: 0;
  height: auto;
  border-radius: 0;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  animation: colofo-fade 600ms ease-out 500ms both;
}
.colofo-cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: hsl(var(--foreground) / 0.25);
  transition: background 0.2s ease;
}
.colofo-cta:hover {
  color: hsl(var(--primary));
}
.colofo-cta:hover::after {
  background: hsl(var(--primary) / 0.5);
}

@keyframes colofo-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #colofonScreen,
  #colofonScreen.is-leaving,
  .colofo-mark,
  .colofo-wordmark,
  .colofo-sub,
  .colofo-cta {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .colofo-cta {
    transition: none !important;
  }
}
