/* The question game wheel (/question-game-for-couples). Uses the tokens in /style.css.
   Contrast rule: white text only on blue. The wheel's box is reserved (aspect-ratio) so nothing jumps. */
.rw-top { display: grid; gap: 1.25rem; padding-top: 1rem; align-items: center; }
.rw-intro { text-align: center; }
.rw-intro .pill { font-size: .68rem; padding: .45rem .8rem; }
.rw-h1 { font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); letter-spacing: var(--display-track); text-transform: uppercase; line-height: .95; font-size: clamp(1.55rem, 6.4vw, 2.1rem); margin-top: .6rem; }
.rw-lede { font-size: .95rem; margin-top: .5rem; }
.rw-byline { font-size: .85rem; margin-top: .5rem; }
.rw-intro .rw-byline, .rw-intro .rw-lede { max-width: 34rem; margin-inline: auto; }
@media (min-width: 900px) {
  .rw-top { grid-template-columns: 1fr minmax(0, 440px); gap: clamp(2rem, 5vw, 5rem); padding-top: 2.5rem; max-width: 1180px; }
  .rw-intro { text-align: left; }
  .rw-intro .rw-byline, .rw-intro .rw-lede { margin-inline: 0; }
  .rw-h1 { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
  .rw-lede { font-size: 1.15rem; margin-top: 1rem; }
  .rw-intro .pill { font-size: .8rem; padding: .6rem 1.05rem; }
}

.rw { width: 100%; max-width: 440px; margin-inline: auto; }
.rw-panel { position: relative; overflow: hidden; background: var(--white); border: var(--line); border-radius: 30px; box-shadow: 0 5px 0 0 var(--ink); padding-bottom: 1.1rem; }
.rw-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .8rem 1.1rem .2rem; font: 600 .7rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; }
.rw-mute { background: none; border: var(--line); border-radius: 99px; padding: .3rem .7rem; font: 600 .65rem/1 var(--body); text-transform: uppercase; color: var(--ink); cursor: pointer; }

.rw-wheelwrap { position: relative; width: min(86%, 330px); aspect-ratio: 1; margin: 1.5rem auto 0; }
.rw-wheel { width: 100%; height: 100%; will-change: transform; user-select: none; -webkit-user-drag: none; }
.rw-pointer { position: absolute; left: 50%; top: -17px; width: 34px; height: 40px; margin-left: -17px; z-index: 2; transform-origin: 50% 8px; filter: drop-shadow(0 2px 0 rgb(16 16 16 / .25)); }
.rw-pointer.kick { animation: rw-kick 90ms ease-out; }
@keyframes rw-kick { 0% { transform: rotate(0); } 35% { transform: rotate(-16deg); } 100% { transform: rotate(0); } }
.rw-hub { position: absolute; left: 50%; top: 50%; width: 28%; height: 28%; transform: translate(-50%, -50%); border-radius: 50%; border: 5px solid var(--ink); background: var(--yellow); color: var(--ink); font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1.05rem; text-transform: uppercase; z-index: 2; cursor: pointer; transition: transform 120ms; }
.rw-hub:active { transform: translate(-50%, -50%) scale(.94); }

.rw-controls { display: grid; gap: .75rem; padding: 1.25rem 1.1rem 0; }
.rw-spin { display: block; width: 100%; text-align: center; text-decoration: none; font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: 1.1; color: var(--ink); border: var(--line); background: var(--yellow); border-radius: 99px; padding: .8rem; box-shadow: 0 6px 0 var(--ink); cursor: pointer; transition: transform 120ms, box-shadow 120ms; }
.rw-spin:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.rw-spin[disabled], .rw-hub[disabled] { opacity: .55; cursor: default; }
a.rw-spin { font-size: 1.05rem; padding: 1rem; }
.rw-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem .8rem; font: 600 .7rem/1 var(--body); text-transform: uppercase; letter-spacing: .04em; }
.rw-key { display: inline-flex; gap: .7rem; }
.rw-key span { display: inline-flex; align-items: center; gap: .25rem; }
.rw-key i { width: .7rem; height: .7rem; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }
.rw-key i + i { margin-left: -.35rem; }
.c-blue { background: var(--blue); } .c-mint { background: var(--mint); } .c-pink { background: var(--pink); } .c-yellow { background: var(--yellow); }
.rw-noscript, .rw-status { font-size: .85rem; text-align: center; padding: .6rem 1.1rem 0; }
.rw-status:empty { display: none; }

/* the reveal: a sheet that slides up over the lower half of the panel */
.rw-result { position: absolute; left: 0; right: 0; bottom: 0; background: var(--white); border-top: var(--line); border-radius: 26px 26px 0 0; transform: translateY(105%); visibility: hidden; transition: transform 420ms cubic-bezier(.2, .9, .25, 1.15), visibility 0s 420ms; z-index: 3; overflow: hidden; }
.rw-result.is-open { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.rw-band { display: flex; justify-content: space-between; gap: .5rem; padding: .65rem 1.25rem; font: 700 .75rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; border-bottom: var(--line); background: var(--mint); color: var(--ink); }
.rw-band[data-color="blue"] { background: var(--blue); color: var(--white); }
.rw-band[data-color="pink"] { background: var(--pink); }
.rw-band[data-color="yellow"] { background: var(--yellow); }
.rw-q { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.4rem; line-height: 1.14; letter-spacing: -.01em; padding: 1.1rem 1.25rem 1rem; min-height: 8.2rem; }
.rw-row { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.25rem 1.2rem; }
.rw-again { flex: 1 1 100%; background: var(--yellow); color: var(--ink); border: var(--line); border-radius: 99px; padding: .8rem; font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 1.05rem; cursor: pointer; }
.rw-tool { flex: 1 1 0; background: var(--white); color: var(--ink); border: var(--line); border-radius: 99px; padding: .7rem .6rem; font: 600 .8rem/1 var(--body); cursor: pointer; white-space: nowrap; }

/* email step and partner step */
.rw-gate { border: var(--line); border-radius: 26px; padding: 1.6rem 1.25rem 1.25rem; width: calc(100% - 1.5rem); max-width: 26rem; background: var(--white); color: var(--ink); }
.rw-gate::backdrop { background: rgb(16 16 16 / .55); }
@media (max-width: 600px) { .rw-gate { margin-bottom: 0; width: 100%; max-width: none; border-radius: 26px 26px 0 0; border-bottom: 0; } }
.rw-gate h2 { font-family: var(--display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: 1; font-size: 1.5rem; margin-bottom: .6rem; padding-right: 2.4rem; }
.rw-gate p { font-size: .95rem; }
.rw-gate form { display: grid; gap: .6rem; margin-top: 1rem; }
.rw-gate label { font: 600 .85rem/1 var(--body); }
.rw-gate input { font: 500 1rem/1 var(--body); padding: .95rem 1.1rem; border: var(--line); border-radius: 99px; width: 100%; }
.rw-go { width: 100%; background: var(--blue); color: var(--white); border: var(--line); border-radius: 99px; padding: 1rem; font: 700 1rem/1 var(--body); cursor: pointer; margin-top: .4rem; }
.rw-gate .rw-fine { font-size: .78rem; text-align: center; }
.rw-gate-err { font-weight: 600; font-size: .85rem; min-height: 1.2em; }
.rw-x { position: absolute; top: .8rem; right: .8rem; border: var(--line); border-radius: 99px; background: var(--white); color: var(--ink); width: 2.3rem; height: 2.3rem; cursor: pointer; font-size: 1.1rem; }
.rw-later { background: none; border: 0; font: 500 .85rem/1 var(--body); text-decoration: underline; color: var(--ink); cursor: pointer; display: block; margin: .9rem auto 0; }

.rw-embed { max-width: 720px; margin: 2rem auto 0; }
.rw-embed textarea { width: 100%; min-height: 7rem; font: 400 .8rem/1.4 ui-monospace, monospace; border: var(--line); border-radius: 12px; padding: .7rem; margin: .6rem 0; }
.rw-embed button { font: 600 .85rem/1 var(--body); padding: .6rem 1rem; border: var(--line); border-radius: 99px; background: var(--mint); cursor: pointer; }
.article h3.rw-level { font: 700 1.05rem/1.2 var(--body); margin: 1.4rem 0 .4rem; display: flex; align-items: center; gap: .5rem; }
.article h3.rw-level i { width: .85rem; height: .85rem; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }
.article h3.rw-level i + i { margin-left: -.55rem; }
body.embed { padding: .75rem; }
body.embed .embed-credit { text-align: center; font-size: .85rem; margin-top: .9rem; }
@media (prefers-reduced-motion: reduce) { .rw-result { transition-duration: 1ms; } .rw-pointer.kick { animation: none; } }
/* Starter questions on the game page link to their number in the printed list. */
.article .rw-starters li { margin: .35rem 0; }
.article .rw-num { white-space: nowrap; font-size: .85em; font-weight: 600; }
/* Printed questions take their wheel color, so the list matches the color key above it. */
.guide ol.q-list.rw-list-gentle li { background: #fff; }
.guide ol.q-list.rw-list-gentle li:nth-child(even) { background: var(--mint); }
.guide ol.q-list.rw-list-daring li { background: var(--pink); }
.guide ol.q-list.rw-list-challenging li { background: var(--yellow); }
