/* Tonight's pick (pick.js): the moment after the first Tonight swipe of an evening, and what the
   Help me choose reveal borrows from it: the streaming link, "Did this help you pick?" and the
   way out after a few "Pick again". The final pose is the plain CSS, so the moment reads the
   same without GSAP or with reduced motion; pick.js only animates towards it. */

html.pick-open { overflow: hidden; }

/* The dialog itself is the dim layer, so it can fade with the moment; the shell is the paper-dark sheet. */
.pick-dialog { position: fixed; inset: 0; box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; color: var(--paper); background: rgba(10, 10, 11, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow: hidden; }
.pick-dialog[open] { display: grid; place-items: center; }
.pick-dialog::backdrop { background: transparent; }
.pick-shell { position: relative; box-sizing: border-box; width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow: hidden auto; overscroll-behavior: contain; padding: 18px clamp(18px, 4vw, 44px) 30px; border: 1px solid #3b3935; background: var(--night); box-shadow: 14px 14px 0 #050505; }

.pick-head { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pick-kicker { margin: 0; color: var(--red); font: 800 12px/1.4 Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.pick-kicker b { margin-left: 6px; color: #8e8a81; font-weight: 800; }
.pick-kicker b:not(:empty)::before { content: '· '; }
.pick-close { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #3b3935; color: var(--paper); background: transparent; font: 400 28px/1 Georgia, serif; cursor: pointer; }
.pick-close:hover, .pick-close:focus-visible { border-color: var(--red); color: var(--red); outline: none; }

.pick-body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding-top: 6px; }

/* ---------- The stage: a sun setting into the night, the cover laid on it, the stamp ---------- */
.pick-stage { position: relative; display: grid; place-items: center; min-height: 450px; }
.pick-sun { position: absolute; width: 94%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--red); box-shadow: 0 0 90px rgba(239, 75, 63, .26); }
/* Three strips of night cut across the lower sun, the way a woodblock print draws an evening sky. */
.pick-sun i { position: absolute; left: -2%; right: -2%; display: block; background: var(--night); transform-origin: 0 50%; }
.pick-sun i:nth-child(1) { bottom: 31%; height: 2.2%; }
.pick-sun i:nth-child(2) { bottom: 19%; height: 4.4%; transform-origin: 100% 50%; }
.pick-sun i:nth-child(3) { bottom: 5%; height: 7.6%; }
.pick-vertical { position: absolute; top: 2px; left: 0; z-index: 2; margin: 0; color: var(--paper); font: 400 19px/1 "Yu Mincho", "MS Mincho", serif; letter-spacing: .34em; writing-mode: vertical-rl; }
.pick-vertical span { display: inline-block; }
.pick-sheet { position: relative; z-index: 1; width: min(250px, 66%); margin: 0; padding: 10px; background: var(--paper); box-shadow: 12px 12px 0 #050505; transform: rotate(-3deg); }
.pick-sheet img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #cbc3ae; cursor: zoom-in; }
.pick-sheet > i { display: grid; place-items: center; aspect-ratio: 2 / 3; color: rgba(18, 18, 18, .35); font: normal 400 56px/1 "Yu Mincho", "MS Mincho", serif; background: #cbc3ae; }
.pick-sheet > .card-detail { top: 18px; right: auto; left: 18px; }
/* The deck's Tonight hanko (今夜 TONIGHT) in the shared Tonight ink (decision.css). */
.pick-stamp { position: absolute; right: -30px; bottom: 30px; z-index: 2; display: grid; justify-items: center; gap: 3px; padding: 10px 14px 8px; border: 3px solid var(--decision-stamp-tonight, var(--red)); border-radius: 8px; color: var(--decision-stamp-tonight, var(--red)); background: rgba(242, 238, 223, .94); box-shadow: 3px 3px 0 rgba(18, 18, 18, .22); transform: rotate(-12deg); pointer-events: none; }
.pick-stamp b { position: relative; font: 400 34px/1 "Yu Mincho", "MS Mincho", serif; letter-spacing: .04em; }
.pick-stamp small { position: relative; font: 800 9px/1 Arial, sans-serif; letter-spacing: .24em; }
.pick-stamp-ring { position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; border: 2px solid var(--decision-stamp-tonight, var(--red)); border-radius: 50%; opacity: 0; translate: -50% -50%; }
.pick-petals { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.pick-petals i { position: absolute; left: 0; top: 0; border-radius: 70% 0 70% 0; }

/* ---------- The words ---------- */
.pick-copy { min-width: 0; }
.pick-meta { margin: 0; color: var(--red); font: 800 12px/1.4 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.pick-copy h2 { margin: 10px 0 0; font: 400 clamp(36px, 5vw, 60px)/.98 Georgia, serif; letter-spacing: -.045em; overflow-wrap: anywhere; }
.pick-plan { display: inline-block; margin: 16px 0 0; padding: 6px 10px; color: var(--ink); background: var(--paper); font: 15px/1.35 Arial, sans-serif; }
.pick-plan:empty { display: none; }
.pick-reasons { margin: 14px 0 0; color: #bdb9ae; font: italic 16px/1.55 Georgia, serif; }
.pick-watch { margin-top: 24px; }
.pick-primary { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 10px 22px; overflow: hidden; border: 1px solid var(--red); color: var(--paper); background: var(--red); box-shadow: 6px 6px 0 #050505; font: 800 13px/1.3 Arial, sans-serif; letter-spacing: .1em; text-align: center; text-decoration: none; text-transform: uppercase; }
.pick-primary b { font-weight: 800; }
.pick-primary small { margin-left: 4px; font: italic 400 14px/1 Georgia, serif; letter-spacing: 0; text-transform: none; }
.pick-out { font-size: 16px; }
.pick-primary:hover { border-color: #d93d32; background: #d93d32; }
.pick-primary:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
/* Still asking AniList: a quiet skeleton with a slow sheen, same size as the real button. */
.pick-primary.is-loading { border-color: #3b3935; color: #9a968c; background: #222225; box-shadow: 6px 6px 0 #050505; cursor: progress; }
.pick-primary.is-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgba(242, 238, 223, .09) 50%, transparent 75%); transform: translateX(-100%); animation: pick-sheen 1.3s ease-in-out infinite; }
@keyframes pick-sheen { to { transform: translateX(100%); } }
.pick-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; color: #9a968c; font: 800 11px/1.3 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.pick-also[hidden] { display: none; }
.pick-also span { margin-right: 2px; }
.pick-also a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #5d5b56; border-radius: 22px; color: var(--paper); font: italic 400 15px/1 Georgia, serif; letter-spacing: 0; text-decoration: none; text-transform: none; }
.pick-also a:hover { border-color: var(--red); color: var(--red); }
.pick-caveat { margin: 10px 0 0; color: #8e8a81; font: italic 13px/1.5 Georgia, serif; }
.pick-caveat:empty { display: none; }
.pick-caveat a { color: #d4cfc1; text-decoration-color: rgba(239, 75, 63, .6); text-underline-offset: 3px; }
.pick-caveat a:hover { color: var(--red); }
.pick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; }
.pick-keep { min-height: 52px; padding: 0 22px; border: 1px solid rgba(242, 238, 223, .55); color: var(--paper); background: transparent; font: 800 12px/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.pick-keep:hover { border-color: var(--red); color: var(--red); }
.pick-back { min-height: 44px; padding: 0 2px; border: 0; color: #bdb9ae; background: none; font: 15px/1.4 Arial, sans-serif; text-decoration: underline; text-decoration-color: rgba(239, 75, 63, .6); text-underline-offset: 4px; cursor: pointer; }
.pick-back:hover { color: var(--red); }
.pick-back:disabled { color: #8e8a81; text-decoration: none; cursor: progress; }
.pick-status { margin: 8px 0 0; color: #d4cfc1; font: 15px/1.5 Arial, sans-serif; }
.pick-status:empty { margin: 0; }
.pick-keep:focus-visible, .pick-back:focus-visible, .pick-also a:focus-visible, .pick-caveat a:focus-visible, .pick-helped button:focus-visible, .pick-helped-thanks:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* ---------- "Did this help you pick?" (moment and reveal) ---------- */
.pick-helped { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin-top: 12px; padding-top: 6px; border-top: 1px solid #2e2d2a; color: #9a968c; font: italic 15px/1.4 Georgia, serif; }
.pick-helped-ask { margin-right: 6px; }
.pick-helped button { min-height: 44px; padding: 0 8px; border: 0; color: var(--paper); background: none; font: 15px/1 Arial, sans-serif; text-decoration: underline; text-decoration-color: rgba(239, 75, 63, .6); text-underline-offset: 4px; cursor: pointer; }
.pick-helped button:hover { color: var(--red); }
.pick-helped-thanks { display: inline-flex; align-items: center; min-height: 44px; color: #d4cfc1; }
.pick-helped-thanks:empty { display: none; }
.pick-helped.answered .pick-helped-thanks::before { content: '✓'; margin-right: 8px; color: var(--red); font-style: normal; }

/* ---------- Help me choose reveal additions (decide.js) ---------- */
.reveal-watch .pick-service { text-transform: none; font: italic 400 16px/1 Georgia, serif; letter-spacing: 0; }
.pick-reveal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 10px 0 0; color: #8e8a81; font: italic 13px/1.5 Georgia, serif; }
.pick-reveal-links[hidden] { display: none; }
.pick-reveal-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: #d4cfc1; font: 800 11px/1 Arial, sans-serif; letter-spacing: .14em; text-decoration: underline; text-decoration-color: rgba(239, 75, 63, .6); text-underline-offset: 4px; text-transform: uppercase; }
.pick-reveal-links a:hover { color: var(--red); }
.pick-reveal-links a:focus-visible, .pick-give-up button:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.pick-give-up { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 20px 0 0; padding: 6px 4px 6px 14px; border-left: 3px solid var(--red); color: #bdb9ae; font: italic 17px/1.4 Georgia, serif; }
.pick-give-up button { min-height: 44px; padding: 0 4px; border: 0; color: var(--paper); background: none; font: 800 12px/1.2 Arial, sans-serif; letter-spacing: .12em; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; text-transform: uppercase; cursor: pointer; }
.pick-give-up button:hover { color: var(--red); }

@media (max-width: 760px) {
    .pick-dialog { padding: 0; }
    .pick-dialog[open] { display: block; }
    .pick-shell { width: 100%; height: 100%; max-height: none; padding: max(8px, env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom)); border: 0; box-shadow: none; }
    .pick-body { grid-template-columns: 1fr; gap: 10px; padding-top: 0; }
    .pick-stage { min-height: 232px; }
    .pick-sun { width: min(228px, 66vw); }
    .pick-sheet { width: 124px; padding: 6px; box-shadow: 8px 8px 0 #050505; }
    .pick-sheet > .card-detail { top: 10px; left: 10px; }
    .pick-stamp { right: -36px; bottom: 12px; padding: 6px 9px 5px; border-width: 2px; }
    .pick-stamp b { font-size: 24px; }
    .pick-stamp small { font-size: 8px; }
    .pick-vertical { top: 6px; left: 2px; font-size: 15px; }
    .pick-copy h2 { margin-top: 6px; font-size: clamp(30px, 9vw, 38px); }
    .pick-plan { margin-top: 12px; font-size: 14px; }
    .pick-reasons { margin-top: 10px; font-size: 15px; }
    .pick-watch { margin-top: 18px; }
    .pick-primary { min-height: 56px; padding: 8px 16px; font-size: 12px; box-shadow: 5px 5px 0 #050505; }
    .pick-actions { margin-top: 16px; gap: 4px 12px; }
    .pick-keep { padding: 0 18px; }
    .pick-keep:only-child { flex: 1 1 auto; }
    .pick-back { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .pick-primary.is-loading::after { animation: none; }
}
