/* "One dad. Eight jobs." spinner on /dads/. Adapted from www.dadswhogiveashit.com.
   Everything is scoped to .dws so it can't touch the rest of the site. */
.dws {
  --bg: #0E0E0E; --ink: #F4F3EF; --muted: #C4C3BE; --soft: #9A9994; --card: #191919; --line: #333333;
  --black: #0E0E0E; --slice: #171717; --slice-on: #2A2A2A; --yellow: #FBC015; --blue: #69A8DD;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  container-type: inline-size;
  background: var(--bg); color: var(--ink); font-family: var(--body);
  text-align: left; padding: 28px 24px 24px; border-radius: 4px;
}
.dws a, .dws a:visited, .dws a:hover { color: inherit; border-bottom: 0; }
.dws button { font-family: inherit; }
.dws :focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Headline */
.dws-eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; color: var(--muted);
}
.dws-eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--yellow); flex: none; }
.dws-h {
  font-family: var(--display); font-weight: 800; font-size: clamp(40px, 13cqi, 96px);
  line-height: .95; letter-spacing: -.05em; margin: 16px 0 12px; color: var(--ink);
}
.dws-blue, .dws-yellow { display: block; }
.dws-blue { color: var(--blue); }
.dws-yellow { color: var(--yellow); }
.dws-sub { font-size: clamp(15px, 3.6cqi, 24px); line-height: 1.35; color: var(--muted); margin: 0; }

/* Wheel */
.dws-wheel-wrap { max-width: 760px; margin: 22px auto 0; }
.dws-wheel { width: 100%; height: auto; display: block; overflow: visible; touch-action: manipulation; }
.dws .slice path { fill: var(--slice); stroke: var(--ink); stroke-width: 2; transition: fill .15s; }
.dws .slice.on path { fill: var(--slice-on); }
.dws .slice .icon { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.dws .slice.won path { fill: var(--yellow); }
.dws .slice.won .icon { stroke: var(--black); }
.dws .slice.won .w-name, .dws .slice.won .w-desc { fill: var(--black); }
.dws .w-name { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; fill: var(--ink); text-anchor: middle; transition: fill .2s; }
.dws .w-desc { font-family: var(--body); font-weight: 500; fill: var(--muted); text-anchor: middle; }
.dws .w-hub-text { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; fill: var(--black); text-anchor: middle; }
.dws .lbl-m { display: none; }
.dws .hub { cursor: pointer; }
.dws .hub:focus { outline: none; }
.dws .hub:focus-visible circle.ring { stroke: var(--yellow); stroke-width: 3; }
/* Invite another tap: once the wheel has landed, the hub pulses and a ring ripples out of it */
.dws .hub, .dws .hub-halo { transform-box: fill-box; transform-origin: center; }
.dws .hub-halo { opacity: 0; pointer-events: none; }
.dws .dws-wheel.ready .hub { animation: dws-hub-pulse 1.8s ease-in-out .6s infinite; }
.dws .dws-wheel.ready .hub-halo { animation: dws-hub-ripple 1.8s ease-out .6s infinite; }
@keyframes dws-hub-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes dws-hub-ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .dws .dws-wheel.ready .hub { animation: none; }
  .dws .dws-wheel.ready .hub-halo { animation: none; opacity: .5; }
}
/* Narrow card: icon + short name in each slice instead of the long labels */
@container (max-width: 680px) {
  .dws .lbl-d { display: none; }
  .dws .lbl-m { display: inline; }
}

.dws-spin-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 16px auto 0; }
.dws-spin {
  font: 800 17px/1 var(--display); letter-spacing: -.01em; color: var(--black); background: var(--yellow);
  border: 0; border-radius: 999px; padding: 15px 24px; cursor: pointer; box-shadow: 0 4px 0 #a97f05; transition: transform .1s, box-shadow .1s;
}
.dws-spin:hover { background: #ffcd3a; }
.dws-spin:active { transform: translateY(3px); box-shadow: 0 1px 0 #a97f05; }
.dws-spin:focus-visible { outline-color: var(--ink); outline-offset: 3px; }
.dws-hint { font-size: 14px; color: var(--muted); font-weight: 500; text-align: center; }

/* Result card */
.dws-result {
  margin: 22px auto 0; background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  padding: 20px 22px 18px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s;
}
.dws-result:has(.dws-link:hover) { border-color: var(--yellow); transform: translateY(-2px); }
.dws-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dws-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.dws-pause {
  position: relative; z-index: 2; font: 600 14px/1 var(--body); color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 14px; min-height: 36px; cursor: pointer;
}
.dws-pause:hover { background: var(--ink); color: var(--black); }
/* The whole card links to the landed job's page; Pause sits above the link */
.dws-link { position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.dws-link:focus-visible { outline-offset: -3px; }
.dws-spinning .dws-link { display: none; }
.dws-body { transition: opacity .25s ease, transform .35s ease; }
.dws-spinning .dws-body { opacity: .28; }
.dws-landed .dws-body { animation: dws-pop .45s ease both; }
@keyframes dws-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dws-head { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.dws-icon { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dws-name { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 7cqi, 42px); letter-spacing: -.035em; line-height: 1.05; margin: 0; color: var(--ink); }
.dws-hl {
  background-image: linear-gradient(transparent 86%, var(--yellow) 86%, var(--yellow) 96%, transparent 96%);
  background-repeat: no-repeat; background-size: 0% 100%;
}
.dws-landed .dws-hl { animation: dws-marker .6s .2s ease-out forwards; }
@keyframes dws-marker { to { background-size: 100% 100%; } }
.dws-job { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 6px 0 12px; color: var(--ink); }
.dws-blurb { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; }
.dws-more { font-size: 14px; font-weight: 600; color: var(--yellow); margin: 0; }
.dws-timer { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--soft); }
.dws-bar { flex: 1; height: 4px; background: #2a2a2a; border-radius: 4px; overflow: hidden; }
.dws-bar span { display: block; height: 100%; width: 0; background: var(--yellow); }

@media (max-width: 640px) {
  .dws { padding: 22px 16px 18px; }
  .dws-result { padding: 16px 16px 14px; }
  .dws-job { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dws-landed .dws-body, .dws-landed .dws-hl { animation-duration: .01s; }
}
