/* A small cast, one shared portrait — isolated from the cover reel */
.combination-stage {
  --combo-a: #dbc2ea;
  --combo-b: #edb8d4;
  --combo-size: 148px;
  --combo-orbit: 260px;
  position: relative;
  width: 100%;
  height: 390px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
}
.combo-halo {
  position: absolute;
  width: 292px;
  height: 292px;
  left: calc(50% - 146px);
  top: calc(50% - 146px);
  border-radius: 47% 53% 55% 45%;
  background: color-mix(in srgb, var(--combo-a) 72%, transparent);
  transform: rotate(-18deg);
  animation: combo-halo-breathe 7s ease-in-out infinite;
  z-index: -1;
}
.combo-halo::after {
  content: '';
  position: absolute;
  inset: 36px -13px 30px 20px;
  background: color-mix(in srgb, var(--combo-b) 42%, transparent);
  border-radius: 49% 51% 44% 56%;
  transform: rotate(31deg);
}
.combo-orbit {
  position: absolute;
  width: var(--combo-orbit);
  height: var(--combo-orbit);
  left: calc(50% - var(--combo-orbit) / 2);
  top: calc(50% - var(--combo-orbit) / 2);
  isolation: isolate;
}
.combo-character {
  --combo-delay: 0s;
  display: grid;
  place-items: center;
  position: absolute;
  width: var(--combo-size);
  height: var(--combo-size);
  margin: calc(var(--combo-size) / -2);
  z-index: 2;
  transform-origin: center;
}
.combo-character.slot-0 { left: 18%; top: 34%; }
.combo-character.slot-1 { left: 82%; top: 34%; --combo-delay: .08s; }
.combo-character.slot-2 { left: 50%; top: 82%; --combo-delay: .16s; }
.combination-stage .combo-character > .mascot {
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
  filter: drop-shadow(0 10px 0 #462a5010);
  animation: combo-gentle 4.8s ease-in-out infinite;
}
.combo-character.slot-1 > .mascot { animation-delay: -.8s; }
.combo-character.slot-2 > .mascot { animation-delay: -1.6s; }
.combo-connector {
  position: absolute;
  display: block;
  height: 12px;
  border-radius: 8px;
  transform-origin: 0 50%;
  background: color-mix(in srgb, var(--combo-a) 60%, #735586);
  opacity: .68;
  z-index: 0;
}
.connector-0 { left: 18%; top: calc(34% - 6px); width: 64%; }
.connector-1 { left: 82%; top: calc(34% - 6px); width: 58%; transform: rotate(124deg); }
.connector-2 { left: 50%; top: calc(82% - 6px); width: 58%; transform: rotate(236deg); }
.combo-spark {
  position: absolute;
  display: block;
  color: #a85888;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
  animation: combo-twinkle 4.6s ease-in-out infinite;
}
.spark-0 { font-size: 28px; top: 13%; left: 21%; transform: rotate(-14deg); }
.spark-1 { font-size: 34px; top: 24%; right: 13%; animation-delay: -1.5s; }
.spark-2 { font-size: 35px; bottom: 11%; left: 27%; animation-delay: -3s; }

/* Calm keeps its own pace, with a clean, cool crescent */
.combination-stage[data-mood="calm"] .combo-halo {
  background: #ded9ed;
  border-radius: 50%;
  transform: rotate(-14deg) scale(.88);
  animation: combo-calm-halo 9s ease-in-out infinite;
}
.combination-stage[data-mood="calm"] .combo-halo::after {
  inset: 27px 13px 18px 43px;
  background: color-mix(in srgb, var(--combo-b) 38%, #f5eff8);
  border-radius: 50%;
}
.combination-stage[data-mood="calm"] .combo-character > .mascot { animation: combo-calm 7s ease-in-out infinite; }
.combination-stage[data-mood="calm"] .combo-character.slot-1 > .mascot { animation-delay: -3.5s; }
.combination-stage[data-mood="calm"] .combo-connector { opacity: 0; }
.combination-stage[data-mood="calm"] .combo-spark { color: #827191; animation-duration: 7s; }
.combination-stage[data-mood="calm"] .spark-0 { font-size: 0; }
.combination-stage[data-mood="calm"] .spark-0::after { content: '✦'; font-size: 24px; }

/* The whole group orbits while each face stays upright */
.combination-stage[data-mood="orbit"] .combo-orbit { animation: combo-orbit-turn 16s linear infinite; }
.combination-stage[data-mood="orbit"] .combo-character { animation: combo-face-forward 16s linear infinite; }
.combination-stage[data-mood="orbit"] .combo-character > .mascot { animation: none; }
.combination-stage[data-mood="orbit"] .combo-spark { color: #b16eaa; }

/* Connection builds gradually, then settles into a shared breath */
.combination-stage[data-mood="bloom"] .combo-orbit { animation: combo-draw-close 6.2s ease-in-out infinite; }
.combination-stage[data-mood="bloom"] .combo-character > .mascot { animation: combo-bloom-breathe 6.2s ease-in-out infinite; }
.combination-stage[data-mood="bloom"] .combo-halo { animation: combo-bloom-halo 6.2s ease-in-out infinite; }
.combination-stage[data-mood="bloom"] .combo-connector { background: #b8a1cf; }
.combination-stage[data-mood="bloom"] .spark-0 { color: #ce85ac; }

/* A bright little bounce with hearts rising in reply */
.combination-stage[data-mood="spark"] .combo-character > .mascot { animation: combo-spark-bounce 2.8s ease-in-out infinite; }
.combination-stage[data-mood="spark"] .combo-character.slot-1 > .mascot { animation-delay: -.24s; }
.combination-stage[data-mood="spark"] .combo-character.slot-2 > .mascot { animation-delay: -.48s; }
.combination-stage[data-mood="spark"] .combo-spark { color: #c66693; animation: combo-heart-rise 3s ease-out infinite; }
.combination-stage[data-mood="spark"] .spark-1 { animation-delay: -1s; font-size: 0; }
.combination-stage[data-mood="spark"] .spark-1::after { content: '♥'; font-size: 25px; }
.combination-stage[data-mood="spark"] .spark-2 { animation-delay: -2s; }
.combination-stage[data-mood="spark"] .combo-halo { animation-duration: 3s; }
.combination-stage[data-mood="spark"] .combo-connector { opacity: .48; }

.combination-stage[data-mood="gentle"] .combo-orbit { animation: combo-group-sway 7s ease-in-out infinite; }
.combination-stage[data-mood="gentle"] .combo-connector { opacity: .44; }
.combination-stage[data-mood="gentle"] .spark-0 { color: #b783a2; }

.combination-stage[data-mood="discover"] .combo-character > .mascot { animation: combo-curious 6s ease-in-out infinite; }
.combination-stage[data-mood="discover"] .combo-character.slot-1 > .mascot { animation-delay: -2s; }
.combination-stage[data-mood="discover"] .combo-character.slot-2 > .mascot { animation-delay: -4s; }
.combination-stage[data-mood="discover"] .combo-halo { background: #e6dfed; animation-duration: 9s; }
.combination-stage[data-mood="discover"] .combo-connector { opacity: .2; }
.combination-stage[data-mood="discover"] .spark-0 { font-size: 0; }
.combination-stage[data-mood="discover"] .spark-0::after { content: '✦'; font-size: 23px; }
.combination-stage[data-mood="discover"] .combo-spark { color: #9b82b0; }

/* Missing dimensions leave space for the actual cast, never a placeholder */
.combination-stage[data-count="1"] { --combo-size: 210px; }
.combination-stage[data-count="1"] .combo-character.slot-0 { left: 50%; top: 50%; }
.combination-stage[data-count="1"] .combo-connector { display: none; }
.combination-stage[data-count="2"] { --combo-size: 158px; }
.combination-stage[data-count="2"] .combo-character.slot-0 { left: 19%; top: 47%; }
.combination-stage[data-count="2"] .combo-character.slot-1 { left: 81%; top: 53%; }
.combination-stage[data-count="2"] .connector-0 { left: 19%; top: calc(47% - 6px); width: 62%; transform: rotate(5.5deg); }
.combination-stage[data-count="2"] .connector-1,
.combination-stage[data-count="2"] .connector-2 { display: none; }

/* A compact reel reveal, each stop slightly offset within 900 ms */
.combination-stage.is-revealing .combo-orbit,
.combination-stage.is-revealing .combo-character { animation: none; }
.combination-stage.is-revealing .combo-orbit .combo-character > .mascot {
  animation: combo-reel-stop .7s cubic-bezier(.22,.8,.26,1) var(--combo-delay) both;
}
.combination-stage.is-revealing .combo-connector { animation: combo-connect-in .8s ease-out both; }
.combination-stage.is-revealing .combo-spark { animation: combo-reveal-spark .9s ease-out both; }
.combination-stage.is-revealing .combo-halo { animation: combo-reveal-halo .9s ease-out both; }
.combination-stage.is-revealing[data-mood="calm"] .combo-connector { animation: none; }

/* The three choices sit in one open row, with the cast above the controls */
.combination-explorer {
  margin: 58px 0 30px;
  padding: 36px 0 0;
  position: relative;
}
.combo-explorer-heading { margin-bottom: 26px; }
.combo-explorer-heading > span {
  display: inline-block;
  color: #81628e;
  font: 600 11px/1.4 AtlasGrotesk, sans-serif;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}
.combo-explorer-heading h2 {
  color: #43264e;
  font: 400 30px/1.4 AtlasSmiley, "PingFang SC", sans-serif;
  letter-spacing: -.3px;
  margin: 0;
}
.combo-selectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 26px;
}
.combo-selector {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  min-width: 0;
  padding-top: 126px;
}
.combo-selector label {
  color: #876a92;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}
.combo-choice-art {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 112px;
  isolation: isolate;
}
.combo-choice-art::before {
  content: '';
  position: absolute;
  width: 103px;
  height: 83px;
  bottom: 4px;
  border-radius: 46% 54% 48% 52%;
  background: #ede2f3;
  transform: rotate(-13deg);
  z-index: -1;
}
.combo-selector:nth-child(2) .combo-choice-art::before { background: #f3e0e9; transform: rotate(11deg); }
.combo-selector:nth-child(3) .combo-choice-art::before { background: #e8edcd; transform: rotate(-8deg); }
.combo-choice-art .mascot { width: 101px; height: 101px; margin: 0; }
.combo-selector select {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 51px;
  padding: 12px 37px 12px 15px;
  border: 0;
  border-radius: 7px;
  color: #4b3158;
  background-color: #eee6f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%237d5d8e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  text-overflow: ellipsis;
  transition: background-color .2s;
}
.combo-selector select:hover { background-color: #e5d7ed; }
.combo-selector select:focus-visible { outline: 3px solid #a788bd; outline-offset: 4px; }
.combination-explorer > .primary { min-height: 50px; padding: 14px 30px; border-radius: 10px; background: #493052; }
.combination-explorer > .primary:hover { background: #705080; }
.combination-explorer > .primary:disabled { background: #b7a5c0; }
#combination-preview:empty { display: none; }
#combination-preview:not(:empty) { margin-top: 29px; }
#combination-preview:focus { outline: none; }

@keyframes combo-halo-breathe {
  0%, 100% { transform: rotate(-18deg) scale(.97); }
  50% { transform: rotate(-9deg) scale(1.035); }
}
@keyframes combo-gentle {
  0%, 100% { transform: translateY(3px) rotate(-3deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}
@keyframes combo-calm { 0%, 100% { transform: translateY(5px) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(-1deg); } }
@keyframes combo-calm-halo { 0%, 100% { transform: rotate(-14deg) scale(.88); } 50% { transform: rotate(-9deg) scale(.92); } }
@keyframes combo-orbit-turn { to { transform: rotate(360deg); } }
@keyframes combo-face-forward { to { transform: rotate(-360deg); } }
@keyframes combo-draw-close { 0%, 100% { transform: scale(1.04); } 35%, 70% { transform: scale(.91); } }
@keyframes combo-bloom-breathe { 0%, 100% { transform: scale(.98); } 35%, 70% { transform: scale(1.08) translateY(-3px); } }
@keyframes combo-bloom-halo { 0%, 100% { transform: rotate(-18deg) scale(.93); } 35%, 70% { transform: rotate(-7deg) scale(1.07); } }
@keyframes combo-spark-bounce { 0%, 50%, 100% { transform: translateY(3px) rotate(-3deg); } 18% { transform: translateY(-10px) rotate(4deg); } 30% { transform: translateY(0) rotate(1deg); } }
@keyframes combo-group-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes combo-curious { 0%, 100% { transform: translateY(3px) rotate(-4deg); } 35%, 55% { transform: translateY(-5px) rotate(5deg); } }
@keyframes combo-twinkle { 0%, 100% { opacity: .42; scale: .86; } 50% { opacity: .95; scale: 1.08; } }
@keyframes combo-heart-rise { 0% { opacity: 0; transform: translateY(18px) rotate(-12deg) scale(.75); } 22% { opacity: .95; } 78%, 100% { opacity: 0; transform: translateY(-30px) rotate(10deg) scale(1.1); } }
@keyframes combo-reel-stop {
  0% { opacity: 0; transform: translateY(-180px) scale(.85); filter: blur(6px); }
  24% { opacity: .35; transform: translateY(70px) scale(.92); filter: blur(4px); }
  25% { opacity: 0; transform: translateY(-95px) scale(.93); }
  47% { opacity: .8; transform: translateY(22px) scale(.98); filter: blur(1.5px); }
  73% { opacity: 1; transform: translateY(-8px) scale(1.04); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 10px 0 #462a5010); }
}
@keyframes combo-connect-in { 0%, 65% { opacity: 0; } 100% { opacity: .5; } }
@keyframes combo-reveal-spark { 0%, 60% { opacity: 0; scale: .3; } 82% { opacity: 1; scale: 1.2; } 100% { opacity: .8; scale: 1; } }
@keyframes combo-reveal-halo { 0% { opacity: .4; transform: rotate(-25deg) scale(.76); } 75% { opacity: 1; transform: rotate(-15deg) scale(1.035); } 100% { opacity: 1; transform: rotate(-18deg) scale(1); } }

@media (max-width: 700px) {
  .combination-stage { height: 250px; --combo-orbit: 177px; --combo-size: 105px; }
  .combo-halo { width: 203px; height: 203px; left: calc(50% - 101.5px); top: calc(50% - 101.5px); }
  .combo-halo::after { inset: 23px -8px 22px 16px; }
  .combo-connector { height: 9px; }
  .connector-0, .connector-1 { top: calc(34% - 4.5px); }
  .connector-2 { top: calc(82% - 4.5px); }
  .spark-0 { font-size: 21px; top: 12%; left: 20%; }
  .spark-1 { font-size: 24px; right: 12%; }
  .spark-2 { font-size: 26px; bottom: 8%; left: 24%; }
  .combination-stage[data-count="1"] { --combo-size: 156px; }
  .combination-stage[data-count="2"] { --combo-size: 114px; }
  .combination-stage[data-count="2"] .connector-0 { top: calc(47% - 4.5px); }
  .combination-stage[data-mood="calm"] .spark-0::after,
  .combination-stage[data-mood="discover"] .spark-0::after { font-size: 18px; }
  .combination-stage[data-mood="spark"] .spark-1::after { font-size: 19px; }
  .combination-explorer { margin: 37px 0 26px; padding: 24px 0 0; }
  .combo-explorer-heading { margin-bottom: 24px; }
  .combo-explorer-heading > span { font-size: 10px; letter-spacing: 1.3px; }
  .combo-explorer-heading h2 { font-size: 26px; }
  .combo-selectors { gap: 9px; margin-bottom: 22px; }
  .combo-selector { padding-top: 87px; }
  .combo-selector label { margin-bottom: 8px; font-size: 12px; }
  .combo-choice-art { height: 78px; }
  .combo-choice-art::before { width: 71px; height: 56px; bottom: 2px; }
  .combo-choice-art .mascot { width: 75px; height: 75px; }
  .combo-selector select { font-size: 13px; min-height: 47px; padding: 11px 24px 11px 9px; background-size: 12px; background-position: right 7px center; border-radius: 5px; }
  .combination-explorer > .primary { width: 100%; min-height: 49px; font-size: 14px; }
  #combination-preview:not(:empty) { margin-top: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .combination-stage *,
  .combination-stage *::before,
  .combination-stage *::after { animation: none !important; }
  .combo-selector select,
  .combination-explorer > .primary { transition: none; }
}

/* Shared combination portrait, including generated previews */
.combined-poster .combo-terms{display:block;font:500 12px/1.65 AtlasGrotesk,sans-serif;letter-spacing:.3px;color:#765781;margin-bottom:17px;max-width:420px}
.combined-poster .portrait-copy :is(h1,h2){font:400 clamp(30px,3.2vw,43px)/1.35 AtlasSmiley,"PingFang SC",sans-serif;letter-spacing:-.5px;margin:0 0 19px;text-wrap:pretty}
.combined-poster .portrait-copy :is(h1,h2)>span{display:block}
.combined-poster .portrait-caption{font-size:14px;line-height:1.6;color:#745881;margin:-7px 0 19px}
.combined-poster .portrait-intro{font-size:15px;line-height:1.9}
.combined-poster .portrait-figure{overflow:hidden}
#combination-preview{scroll-margin-top:20px}
.combo-selector select:disabled{opacity:.55;cursor:default}
@media(max-width:700px){
 .combined-poster .portrait-figure{height:250px}
 .combined-poster .portrait-copy{padding-top:10px}
 .combined-poster .portrait-copy :is(h1,h2){font-size:clamp(26px,7.6vw,34px);margin-bottom:17px}
 .combined-poster .combo-terms{font-size:11px;line-height:1.6;margin-bottom:13px}
 .combined-poster .portrait-caption{font-size:13px}
}
/* Three independent reels on the cover */
.cover-v3 .signal-window.signal-triple{padding:23px 18px;justify-content:center}
.signal-triple .reel-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:100%;height:100%;max-height:250px}
.signal-triple .reel-column{display:flex;min-width:0;flex-direction:column;gap:18px}
.cover-v3 .signal-triple .reel-viewport{width:100%;height:calc(100% - 63px);min-height:0;max-height:none;border-radius:13px;background:#f4e3ed;box-shadow:inset 0 7px 0 #dbc9e0,inset 0 -7px 0 #dbc9e0}
.cover-v3 .signal-triple .reel-cell{padding:12px 4px}
.cover-v3 .signal-triple .reel-mascot{height:auto;width:100%;aspect-ratio:1}
.signal-triple .reel-label{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;color:#f6e7f0}
.signal-triple .reel-label strong{font:500 15px/1 AtlasGrotesk,sans-serif;letter-spacing:.5px}
.signal-triple .reel-label>span{font-size:11px;line-height:1.4;white-space:nowrap}
.signal-triple .reel-caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.signal-triple.spinning .reel-label{opacity:.4}
.signal-triple .reel-heart{z-index:3;top:39%}
@media(max-width:700px){
 .cover-v3 .signal-window.signal-triple{padding:18px 13px}
 .signal-triple .reel-columns{gap:7px}
 .signal-triple .reel-column{gap:13px}
 .cover-v3 .signal-triple .reel-viewport{height:calc(100% - 54px);border-radius:9px}
 .signal-triple .reel-label strong{font-size:12px}
 .signal-triple .reel-label>span{font-size:10px}
}
