/* «ترکیب پارسی شو» — homepage band (tools + fortune), placed directly above the sponsor strip.
   Light editorial theme, square cards, right-aligned actions. */

#ph-combo {
  --qc-ink: #0b2239;
  --qc-muted: #6b7f95;
  --qc-line: #e6edf4;
  --qc-card: #ffffff;
  --qc-card-b: #e8eef5;
  --qc-track: #f4f7fa;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: min(1280px, calc(100% - 40px));
  margin: 14px auto 22px;
  padding: 12px 16px 24px;
  overflow: hidden;
  border-radius: 22px 22px 58px 58px;
  color: var(--qc-ink);
  font-family: inherit;
  background:
    radial-gradient(120% 90% at 92% -30%, rgba(214, 236, 255, 0.55) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(70% 70% at -6% 104%, rgba(255, 241, 226, 0.38) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 62%, #f6fafd 100%);
  border: 1px solid var(--qc-line);
  box-shadow: 0 20px 44px -36px rgba(13, 42, 71, 0.38), 0 2px 6px -3px rgba(13, 42, 71, 0.07);
  overflow: hidden;
}
/* headline lives OUTSIDE the panel, right-aligned like the other section heads */
#ph-combo .qc-out { position: relative; display: flex; justify-content: flex-start; margin: 0 0 10px; }
#ph-combo .qc-out .qc-title { margin: 0; }
/* rainbow aura along the bottom of the panel */
#ph-combo::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0 0;
  height: 150px;
  pointer-events: none;
  background:
    radial-gradient(58% 116% at 8% 118%, rgba(34, 211, 238, 0.85), rgba(34, 211, 238, 0) 66%),
    radial-gradient(56% 118% at 30% 122%, rgba(99, 102, 241, 0.80), rgba(99, 102, 241, 0) 66%),
    radial-gradient(54% 118% at 52% 124%, rgba(217, 70, 239, 0.72), rgba(217, 70, 239, 0) 66%),
    radial-gradient(56% 118% at 74% 122%, rgba(251, 113, 133, 0.75), rgba(251, 113, 133, 0) 66%),
    radial-gradient(58% 116% at 96% 118%, rgba(251, 191, 36, 0.80), rgba(251, 191, 36, 0) 66%);
  filter: blur(30px) saturate(125%);
  opacity: 0.85;
}
#ph-combo > * { position: relative; z-index: 1; }

#ph-combo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0) 4%, #7dd3fc 32%, #a5b4fc 58%, #fdba74 82%, rgba(251, 140, 58, 0) 96%);
  opacity: 0.85;
}

/* ---------- half-width vector-motion art (left) + headline block (right) ---------- */
#ph-combo .qc-out {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  padding: 0;
  margin: 0 0 8px;
  overflow: visible;
}
#ph-combo .qc-copy { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; align-self: stretch; flex: 1 1 auto; min-width: 0; max-width: 100%; padding-top: 0; }
/* eyebrow pill pinned hard right: the dot sits on the far right, text flows leftwards */
#ph-combo .qc-copy > .qc-eyebrow {
  align-self: flex-end;
  margin: 0 0 4px;
  direction: rtl;
  transform: none;
}
#ph-combo .qc-copy > .qc-eyebrow .qc-eyebrow-t { display: inline-block; }
/* hard right pin: shrink-wrap the pill so its right edge matches the title's right edge */
#ph-combo .qc-copy > .qc-eyebrow { width: max-content !important; align-self: flex-start !important; margin-inline-end: 0 !important; }
html[dir="ltr"] #ph-combo .qc-copy > .qc-eyebrow { align-self: flex-end !important; }
#ph-combo .qc-out > .qc-eyebrow { align-self: flex-end; }
#ph-combo .qc-copy > .qc-title,
#ph-combo .qc-copy > .qc-sub { width: 100%; }
#ph-combo .qc-out > .qc-eyebrow,
#ph-combo .qc-out > .qc-title,
#ph-combo .qc-out > .qc-sub {
  text-align: right;
}
#ph-combo .qc-out {
  flex-wrap: wrap;
}
#ph-combo .qc-out > .qc-eyebrow { order: 1; display: inline-flex; align-items: center; justify-content: flex-start; margin-top: 0; }
#ph-combo .qc-out > .qc-title { order: 2; width: 100%; }
#ph-combo .qc-out > .qc-sub { order: 3; width: 100%; }

#ph-combo .qc-out .qc-title { font-size: clamp(19px, 1.75vw, 24px); }
#ph-combo .qc-out .qc-sub { margin: 2px 0 0; }

/* ---------- header ---------- */
#ph-combo .qc-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 11px;
  border-bottom: 1px solid #eef3f8;
}
#ph-combo .qc-copy { min-width: 0; }

/* tabs on their own row, pinned to the right (RTL start) */
#ph-combo .qc-tabrow {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 13px;
}

#ph-combo .qc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #2b6f9c;
  background: #f2f9ff;
  border: 1px solid #dbeeff;
}
#ph-combo .qc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  animation: qcPulse 2.8s ease-in-out infinite;
}

#ph-combo .qc-title {
  margin: 2px 0 2px;
  font-size: clamp(19px, 1.75vw, 24px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: #08203a;
}
#ph-combo .qc-title i {
  font-style: normal;
  background: linear-gradient(94deg, #0284c7 0%, #4f46e5 62%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#ph-combo .qc-sub {
  margin: 0;
  max-width: 640px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--qc-muted);
}

/* ---------- segmented tabs ---------- */
#ph-combo .qc-tabs {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 13px;
  background: var(--qc-track);
  border: 1px solid #e9eff6;
}
#ph-combo .qc-glider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 2px 6px -1px rgba(13, 42, 71, 0.14), 0 0 0 1px rgba(13, 42, 71, 0.04);
  transition: transform 0.38s cubic-bezier(0.3, 0.9, 0.3, 1), width 0.38s cubic-bezier(0.3, 0.9, 0.3, 1);
  z-index: 0;
}
#ph-combo .qc-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #7a8ea3;
  cursor: pointer;
  transition: color 0.22s ease;
}
#ph-combo .qc-tab svg { width: 15px; height: 15px; }
#ph-combo .qc-tab svg .qc-fill { opacity: 0.14; }
#ph-combo .qc-tab[aria-selected="true"] { color: #08203a; }
#ph-combo .qc-tab[aria-selected="true"] svg { color: #0284c7; }
#ph-combo .qc-tab:nth-child(3)[aria-selected="true"] svg { color: #7c3aed; }
#ph-combo .qc-tab:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

/* ---------- cards ---------- */
#ph-combo .qc-gridcards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

#ph-combo .qc-card {
  --ac: #0ea5e9;
  --ac-s: #eaf7fe;
  --ac-b: #cfeafb;
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  background: var(--qc-card);
  border: 1px solid var(--qc-card-b);
  box-shadow: 0 1px 2px rgba(13, 42, 71, 0.05), 0 10px 20px -20px rgba(13, 42, 71, 0.22);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.28s ease,
    box-shadow 0.28s ease;
}
#ph-combo .qc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(210px circle at var(--mx) var(--my), var(--ac-s), transparent 66%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
#ph-combo .qc-card::after {
  content: "";
  position: absolute;
  left: -30%;
  bottom: -46%;
  width: 78%;
  aspect-ratio: 1 / 1;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ac-s) 0%, rgba(255, 255, 255, 0) 68%);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.4s ease;
  pointer-events: none;
}
#ph-combo .qc-card:hover {
  transform: translateY(-3px);
  border-color: var(--ac-b);
  box-shadow: 0 16px 30px -24px rgba(13, 42, 71, 0.45), 0 1px 2px rgba(13, 42, 71, 0.05);
}
#ph-combo .qc-card:hover::before { opacity: 0.85; }
#ph-combo .qc-card:hover::after { opacity: 1; transform: scale(1.08); }
#ph-combo .qc-card:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

#ph-combo .qc-top {
  position: absolute;
  top: 0;
  right: 15px;
  left: 15px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--ac), rgba(255, 255, 255, 0));
  opacity: 0.55;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}
#ph-combo .qc-card:hover .qc-top { opacity: 1; }

#ph-combo .qc-ic { display: none !important; }
#ph-combo .qc-body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; }
#ph-combo .qc-ic {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--ac);
  background: var(--ac-s);
  border: 1px solid var(--ac-b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
#ph-combo .qc-card:hover .qc-ic {
  color: #fff;
  background: var(--ac);
  border-color: var(--ac);
  transform: translateY(-1px) scale(1.03);
}
#ph-combo .qc-ic svg { width: 30px; height: 30px; }
#ph-combo svg .qc-fill { fill: currentColor; opacity: 0.2; stroke: none; }
#ph-combo .qc-card:hover svg .qc-fill { opacity: 0.26; }

#ph-combo .qc-art {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(78% 66% at 72% 26%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(120% 120% at 18% 96%, var(--ac-s), #fdfefe 72%);
  border-bottom: 1px solid var(--ac-b);
}
#ph-combo .qc-art::after {
  content: "";
  position: absolute;
  inset: 12% 14% auto auto;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ac-b), rgba(255, 255, 255, 0) 68%);
  opacity: .55;
  pointer-events: none;
}
#ph-combo .qc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6%; }
#ph-combo .qc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
#ph-combo .qc-card:hover .qc-art img { transform: scale(1.06); }
#ph-combo .qc-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 22, 0) 46%, rgba(6, 12, 22, 0.34) 82%, rgba(6, 12, 22, 0.5));
}
#ph-combo .qc-name, #ph-combo .qc-desc, #ph-combo .qc-go { margin-inline: 0; }
#ph-combo .qc-body { padding: 12px 13px 13px; }
#ph-combo .qc-name {
  position: relative;
  z-index: 2;
  margin-top: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #08203a;
}
#ph-combo .qc-desc {
  position: relative;
  z-index: 2;
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--qc-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#ph-combo .qc-go {
  position: relative;
  z-index: 2;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border-radius: 9px;
  color: var(--ac);
  background: var(--ac-s);
  border: 1px solid var(--ac-b);
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease,
    transform 0.24s ease;
}
#ph-combo .qc-go svg { width: 15px; height: 15px; }
#ph-combo .qc-card:hover .qc-go {
  color: #fff;
  background: var(--ac);
  border-color: var(--ac);
  transform: translateX(-2px);
}
#ph-combo .qc-go-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* per-card accents */
#ph-combo [data-tone="sky"] { --ac: #0ea5e9; --ac-s: #eaf7fe; --ac-b: #cfeafb; }
#ph-combo [data-tone="emerald"] { --ac: #0f9d76; --ac-s: #e9f9f2; --ac-b: #c9eee0; }
#ph-combo [data-tone="orange"] { --ac: #f97316; --ac-s: #fff2e8; --ac-b: #fedfc9; }
#ph-combo [data-tone="teal"] { --ac: #0d9488; --ac-s: #e8f7f5; --ac-b: #c7ece7; }
#ph-combo [data-tone="indigo"] { --ac: #4f46e5; --ac-s: #eeedfe; --ac-b: #dcd9fb; }
#ph-combo [data-tone="rose"] { --ac: #e11d48; --ac-s: #fdeef2; --ac-b: #fbd3dc; }
#ph-combo [data-tone="amber"] { --ac: #d97706; --ac-s: #fff7e7; --ac-b: #fae2b8; }
#ph-combo [data-tone="violet"] { --ac: #7c3aed; --ac-s: #f4efff; --ac-b: #e4d9fc; }

/* reveal on tab switch */
#ph-combo .qc-panel.qc-swap .qc-gridcards > * { animation: qcIn 0.44s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
#ph-combo .qc-panel.qc-swap .qc-gridcards > *:nth-child(2) { animation-delay: 0.04s; }
#ph-combo .qc-panel.qc-swap .qc-gridcards > *:nth-child(3) { animation-delay: 0.08s; }
#ph-combo .qc-panel.qc-swap .qc-gridcards > *:nth-child(4) { animation-delay: 0.12s; }
#ph-combo .qc-panel.qc-swap .qc-gridcards > *:nth-child(5) { animation-delay: 0.16s; }
#ph-combo .qc-panel.qc-swap .qc-gridcards > *:nth-child(6) { animation-delay: 0.2s; }

/* ---------- responsive ---------- */
@media (max-width: 1023.98px) {
  #ph-combo { width: min(1280px, calc(100% - 24px)); padding: 14px 16px 34px; border-radius: 22px 22px 66px 66px; }
  #ph-combo .qc-gridcards { grid-template-columns: repeat(3, minmax(0, 220px)); gap: 10px; justify-content: center; }
  #ph-combo .qc-ic { width: 52px; height: 52px; border-radius: 14px; }
  #ph-combo .qc-ic svg { width: 28px; height: 28px; }
}
@media (max-width: 767.98px) {
  #ph-combo { width: calc(100% - 16px); border-radius: 20px 20px 56px 56px; margin: 12px auto 22px; padding: 12px 12px 30px; }
  #ph-combo .qc-head { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; }
  #ph-combo .qc-title { font-size: 20px; margin: 8px 0 4px; }
  #ph-combo .qc-sub { font-size: 11.5px; line-height: 1.8; }
  #ph-combo .qc-out { margin-bottom: 10px; }
  #ph-combo .qc-out .qc-sub { display: none; }
  #ph-combo .qc-out .qc-title { font-size: 18px; }
  #ph-combo .phsh-head { gap: 8px; margin-bottom: 9px; }
  #ph-combo .phsh-head .phsh-ic { width: 36px; height: 36px; border-radius: 12px; }
  #ph-combo .phsh-head .phsh-ic svg { width: 18px; height: 18px; }
  #ph-combo .phsh-head .phsh-kick { height: 19px; font-size: 9.5px; padding: 0 8px; }
  #ph-combo .qc-head { padding-bottom: 9px; margin-bottom: 9px; }
  #ph-combo .qc-tabs { width: 100%; padding: 3px; border-radius: 12px; }
  #ph-combo .qc-tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 11.5px; height: 34px; }
  #ph-combo .qc-gridcards,
  #ph-combo .qc-card { border-radius: 14px; }
  #ph-combo .qc-body { padding: 10px 10px 11px; }
  #ph-combo .qc-art svg { padding: 5%; }
  #ph-combo .qc-card:hover { transform: none; }
  #ph-combo .qc-art { aspect-ratio: var(--qc-art-ratio, 16 / 7); }
  #ph-combo .qc-gridcards { gap: 9px; }
  #ph-combo .qc-ic { width: 40px; height: 40px; border-radius: 12px; }
  #ph-combo .qc-ic svg { width: 22px; height: 22px; }
  #ph-combo .qc-name { margin-top: 7px; font-size: 12px; }
  #ph-combo .qc-desc { font-size: 10.5px; line-height: 1.6; -webkit-line-clamp: 2; }
  #ph-combo .qc-go { width: 30px; height: 30px; border-radius: 9px; margin-top: 9px; }
}
@media (max-width: 379.98px) {
  #ph-combo { padding: 13px 10px 34px; }
  #ph-combo .qc-title { font-size: 18px; }
  #ph-combo .qc-sub { font-size: 11px; }
  #ph-combo .qc-gridcards,
  #ph-combo .qc-body { padding: 9px 9px 10px; }
  #ph-combo .qc-ic { width: 38px; height: 38px; }
  #ph-combo .qc-ic svg { width: 20px; height: 20px; }
  #ph-combo .qc-name { font-size: 11.5px; }
  #ph-combo .qc-desc { font-size: 10px; line-height: 1.55; }
  #ph-combo .qc-go { width: 27px; height: 27px; }
}

/* ---------- night mode ---------- */
html.ph-night #ph-combo {
  --qc-ink: #e8f2fb;
  --qc-muted: #9db2c7;
  --qc-line: #1c3044;
  --qc-card: #102234;
  --qc-card-b: #1e3448;
  --qc-track: #0c1d2c;
  background:
    radial-gradient(115% 130% at 92% -32%, rgba(56, 189, 248, 0.14) 0%, rgba(15, 27, 40, 0) 60%),
    #0d1e2e;
  border-color: #1c3044;
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, 0.9);
}
html.ph-night #ph-combo .qc-head { border-bottom-color: #1a2d40; }
html.ph-night #ph-combo .qc-title,
html.ph-night #ph-combo .qc-name { color: #eef6ff; }
html.ph-night #ph-combo .qc-eyebrow { color: #9fdcff; background: #10293c; border-color: #1d3d55; }
html.ph-night #ph-combo .qc-glider { background: #1b3247; box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.18); }
html.ph-night #ph-combo .qc-tab[aria-selected="true"] { color: #fff; }
html.ph-night #ph-combo .qc-card { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
html.ph-night #ph-combo .qc-ic { box-shadow: none; }
html.ph-night #ph-combo .qc-card::before { opacity: 0; }
html.ph-night #ph-combo .qc-card::after { opacity: 0.16; }
html.ph-night #ph-combo .qc-card:hover::after { opacity: 0.26; }

/* ---------- motion ---------- */
@keyframes qcPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.04); }
}
@keyframes qcIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #ph-combo, #ph-combo * { animation: none !important; transition: none !important; }
}

/* ================= animated scenes ================= */
#ph-combo .qc-art svg { overflow: visible; }
#ph-combo .qc-art rect, #ph-combo .qc-art path, #ph-combo .qc-art circle,
#ph-combo .qc-art ellipse { transform-box: fill-box; }
/* the section's own full-bleed illustrations must not be duplicated/rescaled */
#ph-combo .qc-art svg.qc-svg-art { animation: none !important; padding: 0 !important; }
#ph-combo .qc-art::before { display: none; }
#ph-combo .qc-art::after { display: none; }
/* re-apply the exact illustration paint that the section uses */
#ph-combo .qc-art svg.qc-svg-art .qc-keep { }
#ph-combo .qc-art .qcin-sheet { fill: #fff; stroke: var(--ac); stroke-width: 2; }
#ph-combo .qc-art .qcin-l1, #ph-combo .qc-art .qcin-wind, #ph-combo .qc-art .qcin-bookline,
#ph-combo .qc-art .qcin-lines path, #ph-combo .qc-art .qcin-openline,
#ph-combo .qc-art .qcin-calhead, #ph-combo .qc-art .qcin-calpin,
#ph-combo .qc-art .qcin-tick, #ph-combo .qc-art .qcin-plate,
#ph-combo .qc-art .qcin-frost, #ph-combo .qc-art .qcin-rays path,
#ph-combo .qc-art .qcin-bars rect, #ph-combo .qc-art .qcin-verse path,
#ph-combo .qc-art .qcin-candles > path { fill: none; stroke: var(--ac); stroke-width: 2.2; stroke-linecap: round; }
#ph-combo .qc-art .qcin-seal circle { fill: var(--ac); }
#ph-combo .qc-art .qcin-seal path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
#ph-combo .qc-art .qcin-coins circle { fill: #fde68a; stroke: #f59e0b; stroke-width: 1.6; }
#ph-combo .qc-art .qcin-bolt path { fill: #fbbf24; }
#ph-combo .qc-art .qcin-dial { fill: #fff; stroke: var(--ac-b); stroke-width: 2; }
#ph-combo .qc-art .qcin-arc { fill: none; stroke: var(--ac); stroke-width: 5; stroke-linecap: round; }
#ph-combo .qc-art .qcin-needle path { fill: none; stroke: var(--ac); stroke-width: 3; stroke-linecap: round; }
#ph-combo .qc-art .qcin-needle circle { fill: var(--ac); }
#ph-combo .qc-art .qcin-flame { fill: var(--ac); opacity: .92; }
#ph-combo .qc-art .qcin-flame2 { fill: #fff; opacity: .85; }
#ph-combo .qc-art .qcin-sparks circle { fill: #fbbf24; }
#ph-combo .qc-art .qcin-ring { fill: none; stroke: var(--ac); stroke-width: 1.8; opacity: .45; }
#ph-combo .qc-art .qcin-cal { fill: #fff; stroke: var(--ac); stroke-width: 2; }
#ph-combo .qc-art .qcin-days rect { fill: var(--ac-s); stroke: var(--ac); stroke-width: 1.2; }
#ph-combo .qc-art .qcin-calstar path { fill: #fbbf24; }
#ph-combo .qc-art .qcin-cake { fill: var(--ac-s); stroke: var(--ac); stroke-width: 2; }
#ph-combo .qc-art .qcin-flames ellipse { fill: #fbbf24; }
#ph-combo .qc-art .qcin-confetti rect { fill: var(--ac); opacity: .6; }
#ph-combo .qc-art .qcin-glow { fill: var(--ac-s); opacity: .8; }
#ph-combo .qc-art .qcin-book { fill: #fff; stroke: var(--ac); stroke-width: 2; }
#ph-combo .qc-art .qcin-flower ellipse { fill: var(--ac); opacity: .75; }
#ph-combo .qc-art .qcin-flower circle { fill: #fde68a; }
#ph-combo .qc-art .qcin-motes circle { fill: var(--ac); opacity: .5; }
#ph-combo .qc-art .qcin-tc { stroke-width: 2; }
#ph-combo .qc-art .qcin-tc--a { fill: #f7f0ff; stroke: #b18cf0; }
#ph-combo .qc-art .qcin-tc--b { fill: #eef0ff; stroke: #97a3f5; }
#ph-combo .qc-art .qcin-tc--c { fill: #fff; stroke: var(--ac); }
#ph-combo .qc-art .qcin-tcs { fill: #f4c95d; }
#ph-combo .qc-art .qcin-moon { fill: #c7b6f7; }
#ph-combo .qc-art .qcin-mooncut { fill: #eef0ff; }
#ph-combo .qc-art .qcin-halo { fill: none; stroke: #f3c76a; stroke-width: 1.6; stroke-dasharray: 3 5; opacity: .8; }
#ph-combo .qc-art .qcin-open { fill: #fff; stroke: var(--ac); stroke-width: 2; }
#ph-combo .qc-art .qcin-orbits ellipse { fill: none; stroke: var(--ac); stroke-width: 1.6; opacity: .55; }
#ph-combo .qc-art .qcin-sun { fill: #fff; stroke: var(--ac); stroke-width: 2; }
#ph-combo .qc-art .qcin-sunmark { fill: none; stroke: var(--ac); stroke-width: 2; opacity: .55; }
#ph-combo .qc-art .qcin-planet { fill: #fbbf24; }
#ph-combo .qc-art .qcin-planet--b { fill: #7dd3fc; }
#ph-combo .qc-art .qcin-stars circle { fill: var(--ac); opacity: .65; }
#ph-combo .qc-art .qcin-orbits { transform-origin: 60px 60px; animation: qcSpin 18s linear infinite; }
#ph-combo .qc-art .qcin-tcards { transform-origin: 60px 62px; animation: qcSway 6s ease-in-out infinite; }

/* motion (only on the visible panel) */
#ph-combo .qc-panel:not([hidden]) .qc-art svg { animation: qcFloat 5.2s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-needle { transform-origin: 60px 56px; animation: qcNeedle 3.6s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-flame { transform-origin: 60px 92px; animation: qcFlick 1.6s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-flame2 { transform-origin: 60px 84px; animation: qcFlick 1.2s ease-in-out infinite reverse; }
#ph-combo .qc-panel:not([hidden]) .qcin-sparks circle { animation: qcSpark 2.6s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-sparks circle:nth-child(2) { animation-delay: .5s; }
#ph-combo .qc-panel:not([hidden]) .qcin-sparks circle:nth-child(3) { animation-delay: 1s; }
#ph-combo .qc-panel:not([hidden]) .qcin-sparks circle:nth-child(4) { animation-delay: 1.5s; }
#ph-combo .qc-panel:not([hidden]) .qcin-ring { animation: qcPing 3.6s ease-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-ring--2 { animation-delay: 1.2s; }
#ph-combo .qc-panel:not([hidden]) .qcin-ring--3 { animation-delay: 2.4s; }
#ph-combo .qc-panel:not([hidden]) .qcin-wind { animation: qcWind 3.2s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-wind--2 { animation-delay: .5s; }
#ph-combo .qc-panel:not([hidden]) .qcin-wind--3 { animation-delay: 1s; }
#ph-combo .qc-panel:not([hidden]) .qcin-calpin { animation: qcPin 2.6s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-flames ellipse { animation: qcFlick 1.3s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-confetti rect { animation: qcFall 3.4s linear infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-motes circle { animation: qcSpark 3.4s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-motes circle:nth-child(even) { animation-delay: .8s; }
#ph-combo .qc-panel:not([hidden]) .qcin-flowers, #ph-combo .qc-panel:not([hidden]) .qcin-flower { transform-origin: 60px 24px; animation: qcSpin 14s linear infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-book { animation: qcOpen 5s ease-in-out infinite; transform-origin: 60px 60px; }
#ph-combo .qc-panel:not([hidden]) .qcin-open { animation: qcBook 5s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-open--b { animation-delay: .12s; }
#ph-combo .qc-panel:not([hidden]) .qcin-halo { animation: qcGlow 4s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-tc--a { animation: qcFan 6s ease-in-out infinite; transform-origin: 60px 88px; }
#ph-combo .qc-panel:not([hidden]) .qcin-tc--b { animation: qcFan 6s ease-in-out infinite reverse; transform-origin: 60px 88px; }
#ph-combo .qc-panel:not([hidden]) .qcin-rays { animation: qcSpark 3s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-coins circle { animation: qcCoin 3.2s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-coins circle:nth-child(2) { animation-delay: .4s; }
#ph-combo .qc-panel:not([hidden]) .qcin-coins circle:nth-child(3) { animation-delay: .8s; }
#ph-combo .qc-panel:not([hidden]) .qcin-bolt { animation: qcBolt 3.4s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-sun { transform-origin: 60px 60px; animation: qcBreathe 4.4s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-bars rect { transform-origin: bottom; animation: qcBar 3s ease-in-out infinite; }
#ph-combo .qc-panel:not([hidden]) .qcin-bars rect:nth-child(2) { animation-delay: .3s; }
#ph-combo .qc-panel:not([hidden]) .qcin-bars rect:nth-child(3) { animation-delay: .6s; }

@keyframes qcFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes qcSpin { to { transform: rotate(360deg); } }
@keyframes qcSway { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes qcNeedle { 0%,100% { transform: rotate(-34deg); } 50% { transform: rotate(26deg); } }
@keyframes qcFlick { 0%,100% { transform: scaleY(1) scaleX(1); } 45% { transform: scaleY(1.09) scaleX(.95); } 70% { transform: scaleY(.96) scaleX(1.04); } }
@keyframes qcSpark { 0%,100% { opacity: .25; transform: translateY(0) scale(.8); } 50% { opacity: .95; transform: translateY(-3px) scale(1); } }
@keyframes qcPing { 0% { transform: scale(.55); opacity: .55; } 80%,100% { transform: scale(1.55); opacity: 0; } }
@keyframes qcWind { 0%,100% { transform: translateX(0); opacity: .75; } 50% { transform: translateX(5px); opacity: 1; } }
@keyframes qcPin { 0%,100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes qcFall { 0% { transform: translateY(-6px) rotate(0); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(9px) rotate(60deg); opacity: 0; } }
@keyframes qcOpen { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes qcBook { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes qcGlow { 0%,100% { opacity: .35; transform: scale(.94); } 50% { opacity: .85; transform: scale(1); } }
@keyframes qcFan { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(5deg); } }
@keyframes qcCoin { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes qcBolt { 0%,88%,100% { opacity: 0; } 92%,96% { opacity: .9; } }
@keyframes qcBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes qcBar { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }

@media (prefers-reduced-motion: reduce) {
  #ph-combo .qc-art svg, #ph-combo .qc-art * { animation: none !important; }
}

/* ================= v2: 4-up fortune row, compact heights, quantum motion ================= */
#ph-combo .qc-gridcards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
#ph-combo .qc-gridcards > .qc-card { min-width: 0; }
/* compact art band: 4:3 instead of a full square */
#ph-combo .qc-art {
  order: -1;
  aspect-ratio: 16 / 8;
}
#ph-combo .qc-art svg { padding: 4% 4% 2%; }
#ph-combo .qc-art img { object-position: 50% 26%; }
#ph-combo .qc-body { padding: 10px 12px 12px; }
#ph-combo .qc-name { font-size: 12.5px; }
#ph-combo .qc-desc { font-size: 10.5px; margin-top: 3px; }
#ph-combo .qc-go { width: 28px; height: 27px; border-radius: 8px; }
#ph-combo .qc-go svg { width: 13px; height: 13px; }
#ph-combo { padding: 14px 14px 30px; }
#ph-combo .qc-panel { padding-top: 12px; }

/* vector art: fills the band, keeps its own colours */
#ph-combo .qc-art .qc-vec-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0 !important;
}
#ph-combo .qc-art .qc-vec--hafez { padding: 0 !important; }
/* the vector arts use a 400x400 viewBox; slice so they always fill the 4:3 band */
#ph-combo .qc-art .qc-vec-art { --qc-fill-ok: 1; }

/* ---- quantum motion (all cards) ---- */
#ph-combo .qc-art .qc-vec-art * { transform-box: fill-box; }
#ph-combo .qc-art .u-orbit { animation: qcOrbit 26s linear infinite; transform-origin: 200px 200px; }
#ph-combo .qc-art .hz-sun { animation: qcPulse 5.5s ease-in-out infinite; transform-origin: 404px 92px; }
#ph-combo .qc-art .hz-halo { animation: qcHalo 5.5s ease-in-out infinite; transform-origin: 404px 92px; }
#ph-combo .qc-art .hz-rays { animation: qcSpin 70s linear infinite; transform-origin: 404px 92px; }
#ph-combo .qc-art .hz-stars circle { animation: qcTwinkle 4.2s ease-in-out infinite; }
#ph-combo .qc-art .hz-stars circle:nth-child(2n) { animation-delay: -1.4s; }
#ph-combo .qc-art .hz-stars circle:nth-child(3n) { animation-delay: -2.6s; }
#ph-combo .qc-art .hz-fig { animation: qcFloat 7s ease-in-out infinite; }
#ph-combo .qc-art .hz-flower { animation: qcSway 6s ease-in-out infinite; transform-origin: 246px 206px; }
#ph-combo .qc-art .hz-petals { animation: qcDrift 9s ease-in-out infinite; }

/* live "quantum shimmer" sweep over every art band */
#ph-combo .qc-art::after {
  content: "";
  position: absolute; z-index: 1; pointer-events: none;
  top: -30%; bottom: -30%; width: 46%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 100%);
  mix-blend-mode: screen;
  animation: qcSweep 6.4s cubic-bezier(.4,0,.2,1) infinite;
}
#ph-combo .qc-card:nth-child(2) .qc-art::after { animation-delay: .5s; }
#ph-combo .qc-card:nth-child(3) .qc-art::after { animation-delay: 1s; }
#ph-combo .qc-card:nth-child(4) .qc-art::after { animation-delay: 1.5s; }
#ph-combo .qc-card:nth-child(5) .qc-art::after { animation-delay: 2s; }
#ph-combo .qc-card:nth-child(6) .qc-art::after { animation-delay: 2.5s; }

/* tools: gentle float of the illustration */
#ph-combo .qc-art svg.qc-svg { animation: qcFloat 8s ease-in-out infinite; }
#ph-combo .qc-card:hover .qc-art svg.qc-svg { animation-duration: 4.5s; }

@keyframes qcOrbit { to { transform: rotate(360deg); } }
@keyframes qcSpin { to { transform: rotate(360deg); } }
@keyframes qcPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes qcHalo { 0%,100% { opacity: .45; transform: scale(1); } 50% { opacity: .8; transform: scale(1.12); } }
@keyframes qcTwinkle { 0%,100% { opacity: .35; } 45% { opacity: 1; } }
@keyframes qcFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes qcSway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes qcDrift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes qcSweep {
  0% { inset-inline-start: -60%; opacity: 0; }
  12% { opacity: .85; }
  55% { opacity: .5; }
  70%, 100% { inset-inline-start: 120%; opacity: 0; }
}

@media (max-width: 1199.98px) {
  #ph-combo .qc-gridcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  #ph-combo .qc-gridcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #ph-combo .qc-art { aspect-ratio: 16 / 9; }
  #ph-combo .qc-body { padding: 8px 10px 10px; }
  #ph-combo .qc-name { font-size: 12px; }
  #ph-combo .qc-desc { -webkit-line-clamp: 1; }
}
@media (max-width: 379.98px) {
  #ph-combo .qc-gridcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #ph-combo .qc-art .qc-vec-art *,
  #ph-combo .qc-art svg.qc-svg,
  #ph-combo .qc-art::after { animation: none !important; }
}

/* ================= solid icon medallions (both tabs) ================= */
#ph-combo .qc-art {
  display: flex !important;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto !important;
  height: 88px;
  background: linear-gradient(160deg, var(--ac-s), #ffffff 78%) !important;
  border-bottom: 1px solid var(--ac-b) !important;
}
#ph-combo .qc-art::after { display: none !important; }
#ph-combo .qc-med {
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 21px;
  background: linear-gradient(150deg, var(--ac), color-mix(in srgb, var(--ac) 62%, #000 12%));
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--ac) 70%, transparent),
              inset 0 1px 0 rgba(255,255,255,.42);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
#ph-combo .qc-card:hover .qc-med { transform: translateY(-3px) scale(1.05); }
#ph-combo .qc-med-in { display: block; width: 40px; height: 40px; }
#ph-combo .qc-med-in svg { width: 100%; height: 100%; display: block; padding: 0 !important; }
#ph-combo .qc-fgrid .qc-art { height: 88px; }

/* ================= fortune tab: same light template, compact ================= */
#ph-combo .qc-fgrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
/* shorter band + tighter body so this tab is visibly shorter than the tools tab */
#ph-combo .qc-fgrid .qc-body { padding: 9px 12px 11px; }
#ph-combo .qc-fgrid .qc-name { font-size: 13.5px; }
#ph-combo .qc-fgrid .qc-desc { font-size: 11.5px; -webkit-line-clamp: 1; margin-top: 2px; }
#ph-combo .qc-fgrid .qc-go { height: 28px; margin-top: 8px; }

@media (max-width: 899.98px) {
  #ph-combo .qc-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ph-combo .qc-fgrid .qc-art { height: 84px; }
}
@media (max-width: 900px) {
  /* keep the last row clear of the floating music / tools launchers */
  #ph-combo .qc-gridcards, #ph-combo .qc-fgrid { padding-bottom: 54px; }
}
@media (max-width: 479.98px) {
  #ph-combo .qc-fgrid .qc-name { font-size: 12.5px; }
  #ph-combo .qc-fgrid .qc-desc { font-size: 10.5px; line-height: 1.6; -webkit-line-clamp: 2; }
  #ph-combo .qc-fgrid .qc-go { height: 26px; margin-top: 6px; }
}

/* fortune cards: animated illustrated scenes */
#ph-combo .qc-fgrid .qc-art {
  height: 132px;
  position: relative;
  overflow: hidden;
  background: #0b1430;
}
#ph-combo .qc-fgrid .qc-art > svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; padding: 0 !important;
}
#ph-combo .qc-fgrid .qc-card:hover .qc-art > svg { transform: scale(1.05); }
#ph-combo .qc-fgrid .qc-art > svg { transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 899.98px) { #ph-combo .qc-fgrid .qc-art { height: 118px; } }
@media (max-width: 479.98px) { #ph-combo .qc-fgrid .qc-art { height: 106px; } }
@media (prefers-reduced-motion: reduce) {
  #ph-combo .qc-fgrid .qc-art svg * { animation: none !important; }
}

/* ── admin-configurable overrides (site_settings.homepage_combo) ───────────── */
#ph-combo { --qc-accent: #0891b2; --qc-accent2: #7c3aed; --qc-r-1: var(--qc-radius, 24px); --qc-r-2: 104px; }
#ph-combo.qc-has-radius .qc-panel, #ph-combo.qc-has-radius .qc-gridcards { border-radius: calc(var(--qc-r-1) * .6); }
#ph-combo .qc-art { aspect-ratio: var(--qc-art-ratio, 16 / 8) !important; height: auto !important; }
#ph-combo .qc-tab[aria-selected="true"] { color: var(--qc-accent); }
#ph-combo .qc-glider { background: color-mix(in srgb, var(--qc-accent) 14%, #fff); border-color: color-mix(in srgb, var(--qc-accent) 30%, #fff); }
#ph-combo .qc-go { color: var(--qc-accent); }
#ph-combo .qc-ic { color: var(--qc-accent); }
#ph-combo.qc-no-aura::after { display: none; }

#ph-combo.qc-compact .qc-desc { -webkit-line-clamp: 1; }
#ph-combo.qc-compact .qc-name { font-size: 13.5px; }

