.atw-ysft {
  --atw-ink: #10152c;
  --atw-ink-2: #19203f;
  --atw-cream: #fff8ec;
  --atw-paper: #fffdf8;
  --atw-panel: #000000;
  --atw-accent: #dd3333;
  --atw-button: #dd9933;
  --atw-eyebrow-text: #dd3333;
  --atw-heading: #dd9933;
  --atw-heading-emphasis: #dd3333;
  --atw-intro-text: #ffffff;
  --atw-wheel-title-text: #ffffff;
  --atw-wheel-label-text: #f7b5a8;
  --atw-wheel-main-text: #ffffff;
  --atw-button-text: #10152c;
  --atw-result-label-text: #dd3333;
  --atw-result-heading-text: #ffffff;
  --atw-result-body-text: #ffffff;
  --atw-secondary-button-text: #ffffff;
  --atw-daily-note-text: #ffffff;
  --atw-catalog-summary-text: #ffffff;
  --atw-catalog-list-text: #ffffff;
  --atw-gold: #f3b75f;
  --atw-rose: #f7b5a8;
  --atw-muted: #696c7d;
  --atw-line: rgba(16, 21, 44, 0.13);
  --orbit-radius: 174px;
  color: var(--atw-ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
}

.atw-ysft *,
.atw-ysft *::before,
.atw-ysft *::after {
  box-sizing: border-box;
}

.atw-ysft [hidden] {
  display: none !important;
}

.atw-ysft__empty {
  color: var(--atw-result-body-text);
}

.atw-ysft button,
.atw-ysft a {
  font: inherit;
}

.atw-ysft button {
  cursor: pointer;
}

.atw-ysft__heading {
  margin: 0 0 30px;
}

.atw-ysft__eyebrow {
  color: var(--atw-eyebrow-text) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 12px !important;
  text-transform: uppercase;
}

.atw-ysft__heading h2 {
  color: var(--atw-heading);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 18px;
  padding: 0;
}

.atw-ysft__heading h2 em {
  color: var(--atw-heading-emphasis);
  font-weight: 600;
}

.atw-ysft__heading > p:last-child {
  color: var(--atw-intro-text) !important;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  max-width: 660px;
}

.atw-ysft__experience {
  align-items: center;
  background: var(--atw-panel);
  border: 1px solid rgba(16, 21, 44, 0.08);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(20, 25, 52, 0.16);
  display: grid;
  gap: clamp(30px, 6vw, 76px);
  grid-template-columns: minmax(300px, 1.02fr) minmax(300px, 0.98fr);
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
}

.atw-ysft__wheel-wrap {
  display: grid;
  min-height: 470px;
  place-items: center;
  position: relative;
}

.atw-ysft__pointer {
  filter: drop-shadow(0 5px 8px rgba(16, 21, 44, 0.25));
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 42px;
  z-index: 6;
}

.atw-ysft__pointer::before {
  border-left: 21px solid transparent;
  border-right: 21px solid transparent;
  border-top: 39px solid var(--atw-accent);
  content: '';
  display: block;
  height: 0;
  width: 0;
}

.atw-ysft__wheel {
  --wheel-rotation: 0deg;
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(
    from -12deg,
    var(--atw-ink) 0 12.5%,
    #27315c 12.5% 25%,
    var(--atw-accent) 25% 37.5%,
    #b34f52 37.5% 50%,
    var(--atw-gold) 50% 62.5%,
    #de8c54 62.5% 75%,
    #354477 75% 87.5%,
    var(--atw-ink-2) 87.5%
  );
  border-radius: 50%;
  box-shadow:
    0 25px 55px rgba(16, 21, 44, 0.25),
    inset 0 0 0 10px rgba(255, 255, 255, 0.22),
    inset 0 0 0 12px rgba(16, 21, 44, 0.2);
  display: grid;
  max-width: 470px;
  place-items: center;
  position: relative;
  transform: rotate(var(--wheel-rotation));
  transition: transform 3.6s cubic-bezier(0.12, 0.72, 0.12, 1);
  width: 100%;
}

.atw-ysft__wheel::before {
  background: radial-gradient(circle at 35% 28%, #303b6b, var(--atw-ink) 72%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 6px rgba(255, 255, 255, 0.12);
  content: '';
  inset: 13%;
  position: absolute;
}

.atw-ysft__wheel::after {
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.7) 0 1deg, transparent 1deg 15deg);
  border-radius: 50%;
  content: '';
  inset: 4%;
  mask: radial-gradient(circle, transparent 0 86%, #000 87%);
  opacity: 0.55;
  position: absolute;
}

.atw-ysft__orbit {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.atw-ysft__orbit span {
  color: var(--atw-wheel-title-text);
  font-size: 10px;
  font-weight: 700;
  left: 50%;
  line-height: 1.1;
  margin-left: -55px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: rotate(var(--angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--angle)));
  transform-origin: 55px 0;
  width: 110px;
}

.atw-ysft__core {
  align-items: center;
  aspect-ratio: 1;
  color: var(--atw-wheel-main-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  position: relative;
  text-align: center;
  width: 52%;
  z-index: 3;
}

.atw-ysft__core span {
  color: var(--atw-wheel-label-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.atw-ysft__core strong {
  color: var(--atw-wheel-main-text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.15;
  max-width: 220px;
}

.atw-ysft__spin {
  background: var(--atw-button);
  border: 0;
  border-radius: 999px;
  bottom: 23px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  color: var(--atw-button-text);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 22px;
  position: absolute;
  transition: transform 0.2s, background 0.2s;
  z-index: 5;
}

.atw-ysft__spin:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.atw-ysft__spin:disabled {
  cursor: wait;
  opacity: 0.78;
}

.atw-ysft__spin:focus-visible,
.atw-ysft__primary:focus-visible,
.atw-ysft__secondary:focus-visible,
.atw-ysft__catalog summary:focus-visible {
  outline: 3px solid var(--atw-gold);
  outline-offset: 3px;
}

.atw-ysft__stars {
  border-radius: 50%;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.atw-ysft__stars i {
  background: #fff;
  border-radius: 50%;
  height: 5px;
  opacity: 0;
  position: absolute;
  width: 5px;
}

.atw-ysft__stars i:nth-child(1) { left: 27%; top: 25%; }
.atw-ysft__stars i:nth-child(2) { left: 73%; top: 30%; animation-delay: 0.2s; }
.atw-ysft__stars i:nth-child(3) { left: 21%; top: 65%; animation-delay: 0.4s; }
.atw-ysft__stars i:nth-child(4) { left: 78%; top: 70%; animation-delay: 0.1s; }

.atw-ysft__wheel.is-spinning .atw-ysft__stars i {
  animation: atw-twinkle 0.7s infinite alternate;
}

.atw-ysft__wheel.is-spinning .atw-ysft__core strong {
  animation: atw-pulse 0.38s infinite alternate;
}

.atw-ysft__result {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
}

.atw-ysft__label {
  align-items: center;
  color: var(--atw-result-label-text);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.atw-ysft__label::before {
  background: currentColor;
  content: '';
  height: 1px;
  width: 34px;
}

.atw-ysft__result h3 {
  color: var(--atw-result-heading-text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 18px;
  padding: 0;
  text-wrap: balance;
}

.atw-ysft__result > p:not(.atw-ysft__daily) {
  color: var(--atw-result-body-text);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 500px;
}

.atw-ysft__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.atw-ysft__primary,
.atw-ysft__secondary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.atw-ysft__primary {
  background: var(--atw-button);
  border: 1px solid var(--atw-button);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  color: var(--atw-button-text) !important;
}

.atw-ysft__primary:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  color: var(--atw-button-text) !important;
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.atw-ysft__secondary {
  background: transparent;
  border: 1px solid var(--atw-secondary-button-text);
  color: var(--atw-secondary-button-text);
}

.atw-ysft__secondary:hover {
  background: color-mix(in srgb, var(--atw-secondary-button-text) 9%, transparent);
}

.atw-ysft__daily {
  align-items: center;
  color: var(--atw-daily-note-text);
  display: flex;
  font-size: 13px;
  gap: 8px;
  line-height: 1.5;
  margin: 18px 0 0;
}

.atw-ysft__daily span {
  color: var(--atw-gold);
}

.atw-ysft__catalog {
  border-top: 1px solid var(--atw-line);
  margin-top: 28px;
}

.atw-ysft__catalog summary {
  align-items: center;
  color: var(--atw-catalog-summary-text) !important;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: space-between;
  list-style: none;
  padding: 22px 2px 0;
}

.atw-ysft__catalog summary::-webkit-details-marker {
  display: none;
}

.atw-ysft__catalog summary::after {
  color: var(--atw-accent);
  content: '+';
  font-size: 23px;
  font-weight: 400;
}

.atw-ysft__catalog[open] summary::after {
  content: '−';
}

.atw-ysft__catalog ol {
  column-count: 3;
  column-gap: 34px;
  list-style-position: inside;
  margin: 22px 0 4px;
  padding: 0;
}

.atw-ysft__catalog li {
  border-bottom: 1px solid rgba(16, 21, 44, 0.08);
  break-inside: avoid;
  color: var(--atw-catalog-list-text);
  font-size: 14px;
  line-height: 1.35;
  padding: 8px 0;
}

@keyframes atw-twinkle {
  to { opacity: 0.9; transform: scale(1.7); }
}

@keyframes atw-pulse {
  to { opacity: 0.55; }
}

@media (max-width: 820px) {
  .atw-ysft {
    --orbit-radius: min(36vw, 174px);
  }

  .atw-ysft__experience {
    grid-template-columns: 1fr;
  }

  .atw-ysft__wheel-wrap {
    min-height: auto;
    padding-top: 12px;
  }

  .atw-ysft__pointer {
    top: 5px;
  }

  .atw-ysft__result {
    align-items: center;
    min-height: 0;
    text-align: center;
  }

  .atw-ysft__label::before {
    display: none;
  }

  .atw-ysft__actions {
    justify-content: center;
  }

  .atw-ysft__catalog ol {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .atw-ysft {
    --orbit-radius: min(35vw, 133px);
  }

  .atw-ysft__heading h2 {
    font-size: 42px;
  }

  .atw-ysft__heading > p:last-child {
    font-size: 16px;
  }

  .atw-ysft__experience {
    border-radius: 24px;
    padding: 18px;
  }

  .atw-ysft__pointer {
    top: 4px;
  }

  .atw-ysft__orbit span {
    font-size: 8px;
    margin-left: -44px;
    transform-origin: 44px 0;
    width: 88px;
  }

  .atw-ysft__spin {
    bottom: 13px;
    padding: 10px 18px;
  }

  .atw-ysft__result {
    padding: 10px 6px 6px;
  }

  .atw-ysft__actions,
  .atw-ysft__primary,
  .atw-ysft__secondary {
    width: 100%;
  }

  .atw-ysft__catalog ol {
    column-count: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atw-ysft__wheel {
    transition-duration: 0.01ms;
  }

  .atw-ysft__wheel.is-spinning .atw-ysft__stars i,
  .atw-ysft__wheel.is-spinning .atw-ysft__core strong {
    animation: none;
  }
}
