/* Shared daily picker — an editorial cup draw with one decisive recommendation. */
.play-daily {
  --pday-spin-duration: 1650ms;
  --pday-ease-spin: linear;
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 92px;
  color: var(--play-text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.62;
}

.play-daily [hidden] { display: none !important; }
.play-daily * { box-sizing: border-box; }

.pday-picker,
.pday-result {
  border: 1px solid var(--play-border-strong);
  background: var(--play-surface-solid);
  box-shadow: 10px 10px 0 rgba(16, 19, 29, 0.1);
}

html[data-theme="dark"] .pday-picker,
html[data-theme="dark"] .pday-result { box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.34); }

.pday-header {
  position: relative;
  padding: clamp(28px, 4.5vw, 46px);
  border-bottom: 1px solid var(--play-border);
  text-align: center;
  overflow: hidden;
}

.pday-header::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -72px;
  top: -92px;
  border: 1px solid var(--play-accent);
  border-radius: 50%;
}

.pday-eyebrow {
  margin: 0;
  color: var(--play-accent-ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.pday-header h1 {
  max-width: 760px;
  margin: 13px auto 12px;
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1.03;
  text-wrap: balance;
}

.pday-header > p:not(.pday-eyebrow) { max-width: 620px; margin: 0 auto; color: var(--play-muted); font-size: 15px; }
.pday-public-note { display: inline-flex; margin-top: 16px; padding: 6px 11px; border: 1px solid var(--play-border); border-radius: 999px; color: var(--play-muted); font-size: 12px; font-weight: 800; }

.pday-form { padding: clamp(22px, 4vw, 36px); }

.pday-wheel-stage {
  position: relative;
  display: grid;
  width: 206px;
  height: 206px;
  place-items: center;
  margin: 0 auto 8px;
}
.pday-wheel-pointer {
  position: absolute;
  z-index: 3;
  top: -2px;
  left: 50%;
  width: 24px;
  height: 30px;
  border: 2px solid var(--play-border-strong);
  background: var(--play-accent-fill);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
  transform-origin: 50% 0;
}
.pday-wheel-pointer.is-ticking { animation: pday-pointer-tick 54ms ease-out both; }
.pday-wheel {
  position: relative;
  display: grid;
  width: 184px;
  height: 184px;
  place-items: center;
  border: 1px solid var(--play-border-strong);
  border-radius: 50%;
  background: conic-gradient(
    from -45deg,
    var(--play-accent-soft) 0 25%,
    var(--play-surface-2) 25% 50%,
    var(--play-accent-soft) 50% 75%,
    var(--play-surface-2) 75% 100%
  );
  box-shadow: inset 0 0 0 8px var(--play-surface-solid), 0 14px 34px color-mix(in srgb, var(--play-text) 13%, transparent);
  transform: rotate(0deg);
}
.pday-wheel::before,
.pday-wheel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.pday-wheel::before { inset: 9px; border: 1px solid var(--play-border); }
.pday-wheel::after { inset: 48px; border: 1px solid var(--play-border-strong); background: var(--play-surface-solid); }
.pday-wheel.is-spinning {
  animation: pday-wheel-spin var(--pday-spin-duration) var(--pday-ease-spin) both;
  will-change: transform;
}
.pday-wheel__word {
  position: absolute;
  z-index: 1;
  color: var(--play-muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.12em;
}
.pday-wheel__word--top { top: 21px; left: 50%; transform: translateX(-50%); }
.pday-wheel__word--right { top: 50%; right: 8px; transform: translateY(-50%) rotate(90deg); }
.pday-wheel__word--bottom { bottom: 20px; left: 50%; transform: translateX(-50%) rotate(180deg); }
.pday-wheel__word--left { top: 50%; left: 12px; transform: translateY(-50%) rotate(-90deg); }
.pday-wheel__cup {
  position: relative;
  z-index: 2;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  color: var(--play-on-accent);
  background: var(--play-accent-fill);
  box-shadow: 0 5px 0 var(--play-accent-solid);
}
.pday-wheel__cup svg { width: 30px; height: 30px; }
.pday-wheel.is-spinning .pday-wheel__cup { animation: pday-cup-counter var(--pday-spin-duration) var(--pday-ease-spin) both; }

@keyframes pday-wheel-spin {
  0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.55, 0.04, 0.82, 0.38); }
  8% { transform: rotate(-12deg); animation-timing-function: cubic-bezier(0.2, 0.72, 0.22, 1); }
  40% { transform: rotate(492deg); animation-timing-function: cubic-bezier(0.26, 0.02, 0.26, 1); }
  73% { transform: rotate(948deg); animation-timing-function: cubic-bezier(0.18, 0.72, 0.22, 1); }
  91% { transform: rotate(1072deg); animation-timing-function: ease-out; }
  96% { transform: rotate(1063deg); animation-timing-function: ease-out; }
  100% { transform: rotate(1068deg); }
}
@keyframes pday-cup-counter {
  0% { transform: rotate(0deg) scale(1); animation-timing-function: cubic-bezier(0.55, 0.04, 0.82, 0.38); }
  8% { transform: rotate(12deg) scale(0.97); animation-timing-function: cubic-bezier(0.2, 0.72, 0.22, 1); }
  40% { transform: rotate(-492deg) scale(0.94); animation-timing-function: cubic-bezier(0.26, 0.02, 0.26, 1); }
  73% { transform: rotate(-948deg) scale(0.96); animation-timing-function: cubic-bezier(0.18, 0.72, 0.22, 1); }
  91% { transform: rotate(-1072deg) scale(1); animation-timing-function: ease-out; }
  96% { transform: rotate(-1063deg) scale(0.985); animation-timing-function: ease-out; }
  100% { transform: rotate(-1068deg) scale(1); }
}
@keyframes pday-pointer-tick {
  0% { transform: translateX(-50%) rotate(0deg) scale(1); }
  42% { transform: translateX(-50%) rotate(10deg) scale(0.92); }
  100% { transform: translateX(-50%) rotate(0deg) scale(1); }
}

.pday-filters { margin: 10px 0 14px; border: 1px solid var(--play-border); background: var(--play-surface-solid); }
.pday-filters > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  color: var(--play-text);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.pday-filters > summary::-webkit-details-marker { display: none; }
.pday-filters > summary > span { display: inline-flex; align-items: center; gap: 8px; }
.pday-filters > summary svg { width: 16px; height: 16px; }
.pday-filters > summary small { padding: 3px 7px; border: 1px solid var(--play-border); border-radius: 999px; color: var(--play-muted); font-size: 10px; }
.pday-filters > summary strong { flex: 0 0 auto; color: var(--play-accent-ink); font-size: 11px; }
.pday-filters[open] > summary { border-bottom: 1px solid var(--play-border); background: var(--play-surface-2); }
.pday-filters__body { padding: 18px; }
.pday-filters__intro { margin: 0 0 16px; color: var(--play-muted); font-size: 12px; }
.pday-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.pday-choice { min-width: 0; padding: 0; margin: 0; border: 0; }
.pday-choice legend {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 9px;
  overflow: visible;
  clip: auto;
  color: var(--play-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-indent: 0;
  white-space: normal;
}
.pday-choice legend span { display: inline-grid; width: 25px; height: 25px; place-items: center; margin-right: 7px; border: 1px solid var(--play-accent); border-radius: 50%; color: var(--play-accent-ink); font-size: 10px; }
.pday-choice__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pday-choice__options--four,
.pday-choice__options--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pday-choice label { position: relative; display: block; cursor: pointer; }
.play-daily .pday-choice input[type="radio"] {
  position: absolute;
  display: block;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  white-space: nowrap;
}
.pday-choice label span {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 25px 9px 9px;
  border: 1px solid var(--play-border);
  border-radius: 4px;
  color: var(--play-muted);
  background: var(--play-surface-solid);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.pday-choice label:hover span { border-color: var(--play-text); color: var(--play-text); }
.pday-choice input:checked + span { border-color: var(--play-text); color: var(--play-surface-solid); background: var(--play-text); }
.pday-choice input:checked + span::after { content: "✓"; position: absolute; right: 9px; top: 50%; font-size: 11px; transform: translateY(-50%); }
.pday-choice input:focus-visible + span { outline: 3px solid var(--play-text); outline-offset: 3px; }
.pday-filter-reset { display: inline-flex; min-height: 42px; align-items: center; gap: 6px; margin-top: 16px; padding: 8px 0; border: 0; color: var(--play-muted); background: transparent; font: inherit; font-size: 12px; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.pday-filter-reset svg { width: 14px; height: 14px; }

.pday-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid var(--play-border-strong);
  border-radius: 4px;
  color: var(--play-text);
  background: var(--play-surface-solid);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}
.pday-button:active:not(:disabled) { transform: translateY(1px); }
.pday-button:disabled { opacity: 0.45; cursor: not-allowed; }
.pday-button svg { width: 17px; height: 17px; }
.pday-button:focus-visible,
.pday-text-button:focus-visible,
.pday-filter-reset:focus-visible,
.pday-feedback button:focus-visible { outline: 3px solid var(--play-accent-fill); outline-offset: 3px; }
.pday-button--primary { border-color: var(--play-accent-solid); color: var(--play-on-accent); background: var(--play-accent-fill); box-shadow: 5px 5px 0 var(--play-accent-solid); }
.pday-form > .pday-button { width: 100%; min-height: 58px; }
.pday-status { min-height: 1.6em; margin: 2px 0 8px; color: var(--play-muted); font-size: 13px; text-align: center; }

.pday-result { position: relative; padding: clamp(26px, 5.5vw, 60px); overflow: hidden; }
.pday-result.is-entering { animation: pday-result-enter 360ms ease-out both; }
@keyframes pday-result-enter {
  0% { opacity: 0; transform: scale(0.985) translateY(12px); }
  72% { opacity: 1; transform: scale(1.002) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.pday-result__stamp { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--play-border); color: var(--play-muted); font-size: 11px; font-weight: 900; letter-spacing: 0.14em; }
.pday-result__hero { position: relative; min-height: 430px; padding: clamp(36px, 7vw, 78px) 0; border-bottom: 1px solid var(--play-border); }
.pday-result__hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 350px;
  height: 350px;
  right: -170px;
  bottom: -130px;
  border: 1px solid var(--play-accent);
  border-radius: 50%;
}
.pday-result__subtitle { position: relative; z-index: 1; margin: 20px 0 4px; color: var(--play-muted); font-size: 15px; font-weight: 800; }
.pday-result__hero h1 { position: relative; z-index: 1; max-width: 760px; margin: 0 0 28px; font-size: clamp(56px, 9vw, 104px); font-weight: 950; letter-spacing: -0.075em; line-height: 0.98; text-wrap: balance; }
.pday-result__reason { position: relative; z-index: 1; max-width: 640px; margin: 0; color: var(--play-muted); font-size: 18px; }
.pday-result__match { position: relative; z-index: 1; display: inline-flex; max-width: 640px; margin: 18px 0 0; padding: 9px 12px; border-left: 3px solid var(--play-accent); color: var(--play-text); background: var(--play-accent-soft); font-size: 13px; }
.pday-badges { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }
.pday-badges span { padding: 6px 11px; border: 1px solid var(--play-border); border-radius: 999px; background: var(--play-chip-bg); font-size: 12px; font-weight: 800; }

.pday-action-card { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 18px; align-items: start; margin: 18px 0; padding: 24px; border: 1px solid var(--play-accent); background: var(--play-accent-soft); }
.pday-action-card > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: var(--play-on-accent); background: var(--play-accent-fill); }
.pday-action-card svg { width: 21px; height: 21px; }
.pday-action-card p:last-child { margin: 5px 0 0; font-size: 16px; font-weight: 800; }

.pday-result__buttons { display: grid; grid-template-columns: 1.3fr 1fr 0.75fr; gap: 8px; }
.pday-button--search { color: var(--play-surface-solid); background: var(--play-text); }
.pday-share-status { min-height: 1.5em; margin: 10px 0 0; color: var(--play-muted); font-size: 12px; text-align: right; }
.pday-safety-note { margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--play-border); color: var(--play-muted); background: var(--play-surface-2); font-size: 12px; line-height: 1.65; }

.pday-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--play-border); }
.pday-feedback > span { margin-right: auto; font-size: 14px; font-weight: 850; }
.pday-feedback button { display: inline-flex; min-height: 42px; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--play-border); border-radius: 999px; color: var(--play-text); background: var(--play-surface-solid); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.pday-feedback button.is-selected { border-color: var(--play-accent); background: var(--play-accent-soft); }
.pday-feedback button svg { width: 15px; height: 15px; }
.pday-feedback p { flex-basis: 100%; min-height: 1.4em; margin: 2px 0 0; color: var(--play-muted); font-size: 12px; }
.play-daily :is(h1, h2, legend, [role="status"]) { scroll-margin-top: 112px; }

.pday-footer-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 32px; }
.pday-footer-actions a,
.pday-text-button { padding: 4px 0; border: 0; color: var(--play-muted); background: transparent; font: inherit; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  .pday-choice label:hover span { transform: translateY(-1px); }
  .pday-button:hover:not(:disabled) { transform: translateY(-2px); }
}

@media (max-width: 720px) {
  .play-daily { width: min(100% - 20px, 900px); padding: 12px 0 calc(96px + env(safe-area-inset-bottom)); }
  .pday-picker,
  .pday-result { box-shadow: 5px 5px 0 rgba(16, 19, 29, 0.1); }
  .pday-header { padding: 24px 20px 20px; }
  .pday-header h1 { margin: 10px auto 9px; font-size: clamp(36px, 10.8vw, 44px); }
  .pday-header > p:not(.pday-eyebrow) { font-size: 13px; line-height: 1.55; }
  .pday-public-note { margin-top: 12px; font-size: 10px; }
  .pday-form { padding: 16px 18px 24px; }
  .pday-wheel-stage { width: 164px; height: 164px; margin-bottom: 4px; }
  .pday-wheel { width: 148px; height: 148px; box-shadow: inset 0 0 0 7px var(--play-surface-solid), 0 10px 24px color-mix(in srgb, var(--play-text) 12%, transparent); }
  .pday-wheel::before { inset: 8px; }
  .pday-wheel::after { inset: 39px; }
  .pday-wheel__cup { width: 56px; height: 56px; box-shadow: 0 4px 0 var(--play-accent-solid); }
  .pday-wheel__cup svg { width: 26px; height: 26px; }
  .pday-wheel__word { font-size: 7px; }
  .pday-wheel__word--top { top: 18px; }
  .pday-wheel__word--right { right: 6px; }
  .pday-wheel__word--bottom { bottom: 17px; }
  .pday-wheel__word--left { left: 9px; }
  .pday-wheel-pointer { width: 20px; height: 25px; }
  .pday-status { margin-bottom: 5px; font-size: 11px; }
  .pday-filters { margin: 7px 0 11px; }
  .pday-filters > summary { min-height: 48px; padding: 8px 12px; }
  .pday-filters__body { padding: 15px 13px 17px; }
  .pday-filter-grid { grid-template-columns: 1fr; gap: 18px; }
  .pday-choice__options,
  .pday-choice__options--four,
  .pday-choice__options--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pday-choice label:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pday-choice label span { min-height: 48px; }
  .pday-form > .pday-button { min-height: 56px; }
  .pday-result { padding: 24px 20px 32px; }
  .pday-result__hero { min-height: 390px; padding: 44px 0; }
  .pday-result__hero h1 { font-size: clamp(54px, 18vw, 78px); }
  .pday-result__buttons { grid-template-columns: 1fr; }
  .pday-result__buttons .pday-button { width: 100%; }
  .pday-feedback > span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pday-button,
  .pday-choice label span { transition: none; }
  .pday-wheel.is-spinning,
  .pday-wheel.is-spinning .pday-wheel__cup,
  .pday-wheel-pointer.is-ticking,
  .pday-result.is-entering { animation: none; }
}
