/* Spin the Night: the itinerary is the moving object, not a decorative loading screen. */
#pageDateNight{--spin-accent:#ffb06b;--spin-soft:#93283f;--spin-paper:#fff1df;--spin-dark:#190e15}
body[data-holiday="christmas"] #pageDateNight{--spin-accent:#ffcf70;--spin-soft:#227348;--spin-paper:#fff7dc;--spin-dark:#09251b}
#pageDateNight .flowHead{padding:16px 0 8px}
#pageDateNight .dateNightIntro{background:none;border:0;box-shadow:none;padding:12px 0 14px;margin:0;min-height:0}
#pageDateNight .dateNightIntro h1{font:700 clamp(36px,4.6vw,62px)/1.04 Oswald,sans-serif;text-transform:uppercase;letter-spacing:-.8px;margin:8px 0 12px;max-width:820px}
#pageDateNight .dateNightIntro h1 em{font-style:normal;color:var(--spin-accent)}
#pageDateNight .dateNightIntro p{font-size:16px;line-height:1.5;color:#d5cdd0;max-width:650px;margin:0}
#pageDateNight .dateModeTabs{display:flex;gap:10px;margin:12px 0 20px}
#pageDateNight .dateModeTabs button{flex:1;border:1px solid #7d626c;border-radius:8px;background:#1c151c;color:#e7dce0;font:700 14px/1.3 'DM Sans',sans-serif;padding:14px;min-height:52px;cursor:pointer}
#pageDateNight .dateModeTabs button.active{background:var(--spin-soft);color:#fff;border-color:var(--spin-accent);box-shadow:inset 0 -3px var(--spin-accent)}
#pageDateNight .dateMachine{position:relative;padding:24px;border:1px solid #80525d;border-radius:18px;background:linear-gradient(145deg,#321524,#100e15 65%);box-shadow:0 22px 65px #0006;overflow:hidden}
body[data-holiday="christmas"] #pageDateNight .dateMachine{border-color:#c09855;background:linear-gradient(145deg,#164d34,#082018 65%)}
.spinBoardHeading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
.spinBoardHeading small{display:block;color:var(--spin-accent);font:800 11px/1.4 'DM Sans',sans-serif;letter-spacing:1.5px}
.spinBoardHeading strong{display:block;font:700 clamp(25px,3vw,37px)/1.13 Oswald,sans-serif;color:var(--spin-paper);margin-top:6px}
.spinBoardHeading>b{max-width:200px;text-align:right;color:#e5d6d9;font:700 11px/1.5 'DM Sans',sans-serif;letter-spacing:.6px}
#pageDateNight .dateMachineControls{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:0 0 22px;padding:0}
#pageDateNight .dateSpinButton{min-height:66px;min-width:260px;display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:12px 26px;border-radius:10px;border:1px solid #ffb992;background:linear-gradient(110deg,#a91e39,#e4404b);box-shadow:0 5px 0 #4f111e,0 10px 25px #0005;color:#fff6e5;font:700 22px/1.1 Oswald,sans-serif;letter-spacing:.6px;text-transform:uppercase;touch-action:pan-y;user-select:none;cursor:grab;transition:box-shadow .16s,background .16s}
#pageDateNight .dateSpinButton:active{cursor:grabbing;box-shadow:0 2px 0 #4f111e}
#pageDateNight .dateSpinButton:disabled{cursor:default;opacity:.65}
.spinControlIcon{font:400 40px/1 sans-serif;display:inline-block}
#dateMachine[data-phase="spinning"] .spinControlIcon{animation:spinControlTurn .6s linear infinite}
#spinHelp{flex:1;min-width:160px;max-width:330px;margin:0;color:#d5c6ce;font:400 13px/1.5 'DM Sans',sans-serif}
.spinCancel{border:0;background:transparent;color:#fff1df;text-decoration:underline;text-underline-offset:4px;font:700 14px 'DM Sans',sans-serif;padding:12px;min-height:44px;cursor:pointer}
#pageDateNight .dateNightGrid{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);grid-template-rows:repeat(3,minmax(145px,auto));gap:12px;padding:0;perspective:1100px}
#pageDateNight .dateResult{min-height:145px;position:relative;padding:18px 20px;border:1px solid #73505f;border-radius:12px;background:#251924;overflow:hidden;min-width:0;transform-origin:center center;isolation:isolate;transition:border-color .2s,box-shadow .2s}
body[data-holiday="christmas"] #pageDateNight .dateResult{background:#143a2a;border-color:#5c8062}
#pageDateNight .dateResult.movieResult{grid-row:span 3;display:flex;flex-direction:column;align-items:stretch;background:linear-gradient(165deg,#582637,#170f19);min-height:510px}
body[data-holiday="christmas"] #pageDateNight .dateResult.movieResult{background:linear-gradient(165deg,#7a2732,#173d2c 75%)}
.spinCardTop{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:2}
#pageDateNight .dateResult small{color:var(--spin-accent);font:800 10px/1.4 'DM Sans',sans-serif;letter-spacing:1.1px}
.spinKeep{flex:none;min-height:36px;border:1px solid #a0818b;border-radius:6px;background:#100c1470;color:#f3e8dc;padding:7px 10px;font:700 11px/1.2 'DM Sans',sans-serif;cursor:pointer}
.spinKeep[aria-pressed="true"]{background:var(--spin-accent);border-color:var(--spin-accent);color:#281511}
.spinKeep:disabled{opacity:.4;cursor:default}
#pageDateNight .dateResult.isKept{border-color:var(--spin-accent);box-shadow:inset 0 0 0 1px var(--spin-accent)}
#pageDateNight .dateMoviePoster{width:174px;height:257px;margin:22px auto 18px;background:#0c0b11;border-radius:7px;box-shadow:0 12px 32px #0008;overflow:hidden;display:grid;place-items:center;border:1px solid #ffffff30}
#pageDateNight .dateMoviePoster img{width:100%;height:100%;object-fit:cover}
#pageDateNight .dateMoviePoster>span{font:700 92px Oswald,sans-serif;color:var(--spin-accent)}
#pageDateNight .dateResult h3{position:relative;z-index:1;margin:14px 30px 8px 0;font:600 clamp(21px,2.1vw,27px)/1.15 Oswald,sans-serif;text-transform:uppercase;letter-spacing:.1px;color:var(--spin-paper);overflow-wrap:anywhere}
#pageDateNight .movieResult h3{margin:0 0 8px;font-size:32px;text-align:center}
#pageDateNight .dateResult p{position:relative;z-index:1;margin:0;color:#d0c2c9;font:400 12px/1.5 'DM Sans',sans-serif}
#pageDateNight .movieResult p{text-align:center}
#pageDateNight .dateGlyph{position:absolute;right:10px;bottom:-15px;font:700 110px/1 Oswald,sans-serif;color:var(--spin-accent);opacity:.08;pointer-events:none}
#pageDateNight .dateResult.isMixing{animation:planTurn .36s ease-in-out infinite alternate;border-color:var(--spin-accent)}
#pageDateNight .dateResult.isMixing:nth-child(2){animation-delay:.08s}#pageDateNight .dateResult.isMixing:nth-child(3){animation-delay:.16s}#pageDateNight .dateResult.isMixing:nth-child(4){animation-delay:.24s}
#pageDateNight .dateResult.justRevealed{animation:planLand .42s ease-out both}
#pageDateNight .dateResult.justRevealed:nth-child(2){animation-delay:.06s}#pageDateNight .dateResult.justRevealed:nth-child(3){animation-delay:.12s}#pageDateNight .dateResult.justRevealed:nth-child(4){animation-delay:.18s}
.spinBoardFooter{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}
#spinKeepSummary{font:400 13px/1.5 'DM Sans',sans-serif;color:#e2d4d7;max-width:320px}
.spinBoardFooter>div{display:flex;gap:8px;flex-wrap:wrap}.spinBoardFooter .btn{font-size:12px;min-height:46px}
#pageDateNight button:focus-visible{outline:3px solid var(--spin-accent);outline-offset:4px}
@keyframes spinControlTurn{to{transform:rotate(360deg)}}
@keyframes planTurn{from{transform:rotateX(-7deg) translateY(-3px)}to{transform:rotateX(9deg) translateY(3px)}}
@keyframes planLand{from{transform:rotateX(-16deg) translateY(8px);filter:brightness(1.6)}to{transform:none;filter:none}}
@media(max-width:700px){
 #pageDateNight .flowHead{padding:8px 0}.flowHead .gameBadge{display:none}
 #pageDateNight .flowHead>div{display:none}#pageDateNight .flowHead .textBack{background:none;border:0;padding:8px 0}
 #pageDateNight .dateNightIntro{padding:0 0 10px}#pageDateNight .dateNightIntro h1{font-size:34px;margin:0 0 8px}#pageDateNight .dateNightIntro .eyebrow,#pageDateNight .dateNightIntro p{display:none}
 #pageDateNight .dateModeTabs{gap:6px;margin:0 0 16px}#pageDateNight .dateModeTabs button{font-size:11px;padding:10px 6px;min-height:48px}
 #pageDateNight .dateMachine{padding:14px;border-radius:13px}.spinBoardHeading{gap:8px;margin-bottom:15px}.spinBoardHeading strong{font-size:25px}.spinBoardHeading small{font-size:9px}.spinBoardHeading>b{display:none}
 #pageDateNight .dateMachineControls{gap:10px;margin-bottom:18px}#pageDateNight .dateSpinButton{width:100%;min-width:0;min-height:60px}#spinHelp{max-width:none;font-size:12px;min-width:0} .spinCancel{order:2;padding:8px}
 #pageDateNight .dateNightGrid{grid-template-columns:1fr;grid-template-rows:none;gap:10px}
 #pageDateNight .dateResult{padding:16px;min-height:145px}#pageDateNight .dateResult.movieResult{grid-row:auto;display:grid;grid-template-columns:92px minmax(0,1fr);column-gap:15px;min-height:0;padding:16px}
 .movieResult .spinCardTop{grid-column:1/-1;margin-bottom:14px}#pageDateNight .dateMoviePoster{grid-column:1;width:92px;height:138px;margin:0}.spinMovieCopy{grid-column:2;align-self:center}#pageDateNight .movieResult h3{font-size:24px;text-align:left}#pageDateNight .movieResult p{text-align:left}#pageDateNight .dateResult h3{font-size:23px}
 .spinKeep{min-height:40px;font-size:11px;padding:8px}.spinCardTop{gap:8px}#pageDateNight .dateResult small{font-size:9px;letter-spacing:.8px}
 .spinBoardFooter{align-items:stretch;flex-direction:column;gap:12px;margin-top:16px}.spinBoardFooter>div{display:grid;grid-template-columns:1fr 1fr}.spinBoardFooter .btn{padding:10px 8px}#spinKeepSummary{max-width:none}
}
@media(prefers-reduced-motion:reduce){#pageDateNight *,#pageDateNight *:before{animation:none!important;transition:none!important}#pageDateNight .dateResult.isMixing{transform:none}}

/* Desktop: get to the playable board before repeating the invitation. */
@media(min-width:701px){
 #pageDateNight .flowHead{padding:8px 0;min-height:48px}
 #pageDateNight .flowHead small,#pageDateNight .flowHead .gameBadge{display:none}
 #pageDateNight .dateNightShell{padding:18px 0 32px}
 #pageDateNight .dateNightIntro{max-width:none;padding:0 0 12px}
 #pageDateNight .dateNightIntro .eyebrow,#pageDateNight .dateNightIntro p{display:none}
 #pageDateNight .dateNightIntro h1{font-size:clamp(30px,3.4vw,40px);line-height:1.12;max-width:none;margin:0}
 #pageDateNight .dateNightIntro h1 br{display:none}
 #pageDateNight .dateNightIntro h1 em{display:inline-block;margin-left:.2em}
 #pageDateNight .dateModeTabs{margin:0 0 16px}
 #pageDateNight .dateModeTabs button{padding:12px;min-height:48px}
 #pageDateNight .dateMachine{padding:20px 24px}
 #pageDateNight .spinBoardHeading{margin-bottom:14px}
 #pageDateNight .spinBoardHeading strong{font-size:clamp(25px,2.5vw,31px);margin-top:4px}
 #pageDateNight .dateMachineControls{margin-bottom:18px}
}
