/* The pact (reply.js): the reading cloth of a tarot table, almost full screen. One stop per gesture: the title, the
   three cards (the place under the pointer comes forward, the others step aside), the evenings as moons with a
   calendar, the answer to copy. Every rule lives under .patto. */
.patto {
  --velvet: #1a080c; --velvet-2: #3a1218; --gold: #c9a463; --gold-dim: rgba(201,164,99,.45); --gold-faint: rgba(201,164,99,.12);
  --text: #f1e6d2; --text-dim: rgba(241,230,210,.66); --card: #efe4cc; --ink: #2b1d12;
  --f: "EB Garamond", Georgia, serif;
  position: fixed; inset: 0; z-index: 18; color: var(--text); font: 18px/1.5 var(--f);
}
/* the room dims while the cloth comes in, on the same curve and in the same time (an opacity: composed, not painted) */
.patto::before { content: ""; position: absolute; inset: 0; background: rgba(3,2,1,.6); animation: pt-dim 1.1s cubic-bezier(.65,0,.25,1) both; will-change: opacity; }
@keyframes pt-dim { from { opacity: 0; } }
.patto *, .patto *::before, .patto *::after { box-sizing: border-box; }
.patto button { font: inherit; }
body:has(.patto) #sub { bottom: 5vh; z-index: 30; }

/* layout: the reading cloth of a tarot table, almost full screen: wine velvet, a gold wheel turning slowly behind.
   One stop per gesture, all centred, joined by a gold axis that comes down and lands on each. No paper, no letters. */


.patto .cloth { position: fixed; inset: max(10px, 1.6vh) max(10px, 1.6vw); border-radius: 6px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--velvet-2), var(--velvet) 75%);
  box-shadow: 0 0 0 1px rgba(201,164,99,.25), 0 30px 90px rgba(0,0,0,.8); animation: pt-open 1.1s cubic-bezier(.65,0,.25,1) both; }
@keyframes pt-open { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
/* velvet nap: two fine weaves crossing */
.patto .cloth::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px), repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px); }
/* a gold fringe, the cloth's border */
.patto .cloth::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold-dim); border-radius: 3px; pointer-events: none; z-index: 6;
  box-shadow: inset 0 0 0 5px var(--velvet), inset 0 0 0 6px rgba(201,164,99,.3); }

/* the wheel of the reading, turning very slowly behind everything: a picture drawn once, turned as an HTML box with a
   transform animation, which the browser composes without drawing anything again.
   It starts turned so that her sign and his sit either side of the top, their names upright */
.patto .wheelbox { position: absolute; left: 50%; top: 50%; width: min(130vh, 130vw); aspect-ratio: 1; margin: calc(min(130vh, 130vw) / -2) 0 0 calc(min(130vh, 130vw) / -2);
  z-index: 0; pointer-events: none; transform: rotate(195deg); animation: pt-turn 360s linear infinite; will-change: transform; }
@keyframes pt-turn { from { transform: rotate(195deg); } to { transform: rotate(555deg); } }
/* the wheel's picture (reply.js draws it once, hers and his signs lit, their Greek names): it fades in once drawn */
.patto .wheel { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.patto .wheel.ready { opacity: 1; }
.patto .air { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.patto .air .lamp { position: absolute; left: 50%; top: 45%; width: max(100vw, 100vh); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle closest-side, rgba(255,190,120,.16), rgba(255,150,60,0)); animation: pt-breathe 8.2s ease-in-out infinite alternate; }
@keyframes pt-breathe { from { transform: scale(.94); } to { transform: scale(1.03); } }
.patto .air i { position: absolute; top: -8px; border-radius: 50%; background: rgb(240,205,140); will-change: transform, opacity; animation-name: pt-fall, pt-twinkle; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite; animation-direction: normal, alternate; }
@keyframes pt-fall { to { transform: translateY(calc(100vh + 16px)); } }
@keyframes pt-twinkle { from { opacity: .08; } to { opacity: .33; } }

.patto .page { position: absolute; inset: 24px; z-index: 2; overflow: hidden; touch-action: none; }
.patto .ptrack { position: absolute; inset: 0; will-change: transform; }
.patto .axis { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; overflow: visible; }
.patto .stop { position: relative; isolation: isolate; height: 100%; display: grid; place-items: center; padding: 0 clamp(16px, 5vw, 100px); }
.patto .stop > .in { display: grid; justify-items: center; gap: clamp(18px, 3.4vh, 34px); width: 100%; }
.patto .stop > .in > * { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.patto .stop.on > .in > * { opacity: 1; transform: none; }
.patto .stop.on > .in > :nth-child(2) { transition-delay: .2s; } .stop.on > .in > :nth-child(3) { transition-delay: .4s; } .stop.on > .in > :nth-child(4) { transition-delay: .6s; }
.patto .k { color: var(--gold); letter-spacing: .32em; font-size: 14px; text-transform: uppercase; display: flex; gap: 12px; align-items: center; }
.patto .k svg { width: 10px; height: 10px; }

/* the opening */
.patto .title { margin: 0; font-weight: 500; font-size: clamp(54px, 9vw, 120px); line-height: 1; text-align: center; }
.patto .sub { margin: 0; font-style: italic; font-size: clamp(20px, 2.4vw, 30px); color: var(--text-dim); text-align: center; }

/* the cards: the place's name large, its arcanum small */
.patto .spread { position: absolute; inset: 0; }
.patto .pick { position: absolute; left: 0; top: 50%; width: var(--cw); margin-top: calc(var(--cw) * -.86); aspect-ratio: 600 / 1030; transform-origin: 50% 50%; background: var(--card); color: var(--ink); border: 4px solid var(--gold); outline: 1px solid var(--ink); outline-offset: -10px;
  border-radius: 3px; padding: 14px 10px; cursor: pointer; font: inherit; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.6); transition: transform .9s cubic-bezier(.65,0,.25,1), box-shadow .5s, opacity .7s; overflow: hidden; will-change: transform, opacity; }
/* every size follows the card's width: the name and the arcanum stay in proportion */
.patto .pick .arc { font-size: calc(var(--cw) * .065); letter-spacing: .14em; color: rgba(43,29,18,.62); position: relative; z-index: 1; }
.patto .pick .arc i { display: block; font-size: calc(var(--cw) * .07); letter-spacing: .02em; }
.patto .pick .icon { position: relative; display: block; width: 40%; color: rgba(43,29,18,.55); }
.patto .pick .icon.ix { aspect-ratio: 100 / 130; } .patto .pick .icon.iii { aspect-ratio: 72 / 64; } .patto .pick .icon.xvii { aspect-ratio: 1; }
.patto .pick .icon .l { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* each arcanum alive inside its card: the lantern's flame, the crown's glint, the star's pulse */
.patto .pick .icon .rays { stroke: #b08a3e; stroke-width: 2; transform-origin: 50% 50.77%; animation: pt-rays 14s linear infinite; will-change: transform; }
@keyframes pt-rays { to { transform: rotate(360deg); } }
.patto .pick .icon.iii { animation: pt-float 3.4s ease-in-out infinite; will-change: transform; }
@keyframes pt-float { 50% { transform: translateY(-3px); } }
.patto .pick .icon .star { transform-origin: 50% 50%; animation: pt-spin 18s linear infinite; will-change: transform; }
@keyframes pt-spin { to { transform: rotate(360deg); } }
.patto .pick .icon .flame { fill: #e8a845; transform-origin: 50% 58.46%; animation: pt-flick 1.6s ease-in-out infinite alternate; will-change: transform, opacity; }
@keyframes pt-flick { 0% { transform: scale(.85, .9); opacity: .75; } 50% { transform: scale(1.05, 1.15) rotate(-3deg); opacity: 1; } 100% { transform: scale(.95, 1) rotate(2deg); opacity: .85; } }
.patto .pick .icon .gem { fill: #c9a463; animation: pt-glint 2.6s ease-in-out infinite; will-change: opacity; }
.patto .pick .icon .g1 { animation-delay: .6s; } .patto .pick .icon .g2 { animation-delay: 1.2s; }
@keyframes pt-glint { 0%, 70%, 100% { opacity: .3; } 80% { opacity: 1; } }
.patto .pick .icon .glow { fill: #e8c77e; transform-origin: 50% 50%; animation: pt-pulse 3s ease-in-out infinite; will-change: transform, opacity; }
@keyframes pt-pulse { 0%, 100% { transform: scale(.6); opacity: .35; } 50% { transform: scale(1); opacity: .9; } }
.patto .pick:hover .icon, .patto .pick.peek .icon, .patto .pick[aria-checked="true"] .icon { color: #7e0f12; }
.patto .pick .nm { font-size: calc(var(--cw) * .13); font-weight: 500; line-height: 1.05; position: relative; z-index: 1; margin-bottom: calc(var(--cw) * .07); }
.patto .pick.peek { outline-color: #7e0f12; box-shadow: 0 0 60px rgba(255,190,110,.35), 0 24px 50px rgba(0,0,0,.65); }
/* the cards waiting aside only dim (an opacity: a filter here was painted again at every frame of their move) */
.patto .pick.aside { opacity: .5; }
.patto .pick.aside:hover { opacity: .9; }
/* a seal: the baked wax (its shadow in it) and the word cut in, as text */
.patto .seal { display: block; aspect-ratio: 1; }
.patto .seal img, .patto .seal svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.patto .pick .seal { position: absolute; z-index: 3; left: 18%; top: 25%; width: 64%; aspect-ratio: 1; overflow: visible;
  opacity: 0; transform: scale(1.8) rotate(-18deg); pointer-events: none; }
.patto .pick[aria-checked="true"] .seal { animation: pt-stamp .55s cubic-bezier(.3,1.5,.5,1) forwards; }
/* under the row while no card is in front: a hand that clicks */
.patto .tap { position: absolute; left: 50%; top: calc(50% + var(--cw) * .86 + 22px); width: 34px; margin-left: -17px; color: var(--gold); opacity: 0; transition: opacity .6s; pointer-events: none; }
.patto .stop.on .table:not(:has(.peek)):not(:has(.done)) .tap { opacity: .85; transition-delay: 1.2s; }
.patto .tap svg { display: block; width: 100%; }
.patto .tap .ripple { transform-origin: 9px 4px; animation: pt-ripple 1.8s ease-out infinite; }
@keyframes pt-ripple { 0% { transform: scale(.3); opacity: 1; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pt-stamp { to { opacity: 1; transform: scale(1) rotate(-12deg); } }
.patto .pick[aria-checked="true"] { outline: 2px solid #7e0f12; box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(201,164,99,.25), 0 0 80px rgba(255,190,110,.6), 0 24px 50px rgba(0,0,0,.65); }
/* the card's own small sky: dots that twinkle behind the drawing */
.patto .pick .sky { position: absolute; inset: 12px; z-index: 0; pointer-events: none; }
.patto .pick .sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #b08a3e; animation: pt-tw 2.8s ease-in-out infinite; will-change: transform, opacity; }
@keyframes pt-tw { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: .9; transform: scale(1.2); } }

/* the vision: the place rises out of the velvet behind the spread while a card is under the pointer */
.patto .vision { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease; }
.patto .vision.on { opacity: 1; }
.patto .vision .room { position: absolute; right: 0; top: 50%; width: 62%; aspect-ratio: 3 / 2; translate: 0 -50%; background: center / cover; will-change: transform;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
  transform: scale(1.06); transition: transform 6s linear; }
.patto .vision.on .room { transform: scale(1); }
/* the cards on the left, the place they show on the right; one under the other on a phone */
/* the stage: three large cards centred; the one under the pointer moves to the left and grows, the others step aside
   small on the left edge (still there to point at), and the place appears on the right. Positions are set by the script. */
.patto .table { z-index: 1; --cw: clamp(190px, 15vw, 250px); position: relative; width: 100%; height: min(66vh, calc(var(--cw) * 1.72 * 1.25 + 40px)); }
/* the preview: the place in a glance, for the card under the pointer or the one chosen */
.patto .preview { position: absolute; z-index: 2; left: 46%; top: 50%; translate: 0 -50%; width: min(48%, 520px); opacity: 0; transition: opacity .6s ease .25s; pointer-events: none; display: grid; gap: 16px; align-content: center; justify-items: start; padding: 10px 0; }
.patto .preview .arcn { color: var(--gold); letter-spacing: .3em; font-size: 13px; }
.patto .preview .nm { margin: 0; font-weight: 500; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.patto .preview .where { color: var(--gold); letter-spacing: .08em; font-size: 17px; margin-top: -6px; }
.patto .preview .what { margin: 0; font-style: italic; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; max-width: 26ch; text-shadow: 0 1px 10px rgba(0,0,0,.8); }
/* three dishes as gold medallions */
.patto .preview .dishes { display: flex; gap: 14px; margin-top: 4px; }
.patto .preview .dishes span { width: clamp(74px, 6.4vw, 96px); aspect-ratio: 1; border-radius: 50%; background: center / cover; box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(201,164,99,.25), 0 10px 24px rgba(0,0,0,.6); }
.patto .preview .menu { margin-top: 6px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 20px 10px 18px; border-radius: 999px; border: 1px solid var(--gold); color: #ffe7b0; text-decoration: none;
  background: linear-gradient(180deg, rgba(201,164,99,.22), rgba(201,164,99,.06)); font-size: 17px; letter-spacing: .04em; pointer-events: auto; transition: background .3s, box-shadow .3s; }
.patto .preview .menu:hover, .patto .preview .menu:focus-visible { background: rgba(201,164,99,.3); box-shadow: 0 0 24px rgba(255,200,120,.35); outline: none; }
.patto .preview .menu svg { width: 14px; height: 14px; }
/* each line arrives after the one before */
.patto .preview.swap > * { animation: pt-swap .6s cubic-bezier(.2,.7,.2,1) both; }
.patto .preview.swap > :nth-child(2) { animation-delay: .08s; } .preview.swap > :nth-child(3) { animation-delay: .16s; } .preview.swap > :nth-child(4) { animation-delay: .24s; } .preview.swap > :nth-child(5) { animation-delay: .34s; } .preview.swap > :nth-child(6) { animation-delay: .46s; }
.patto .preview.show { opacity: 1; pointer-events: auto; }
@keyframes pt-swap { from { opacity: 0; transform: translateY(10px); } }

/* the evenings: moons on the cloth */
.patto .moons { display: flex; gap: clamp(14px, 3vw, 46px); justify-content: center; flex-wrap: wrap; }
.patto .moon { --dw: clamp(78px, 8vw, 110px); position: relative; display: grid; justify-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 6px; }
.patto .moon .disc { width: var(--dw); aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden; will-change: transform;
  background: radial-gradient(circle at 40% 35%, #f6ead0, #c9b089 70%, #8e7a5a); box-shadow: 0 0 30px rgba(255,220,160,.18); transition: transform .5s; }
.patto .moon .disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--velvet); transform: translateX(var(--shade, 40%)); transition: transform .8s cubic-bezier(.2,.7,.2,1); will-change: transform; }
/* the chosen moon's ring and light: drawn once, shown by an opacity (an animated shadow was painted again at every frame) */
.patto .moon::before { content: ""; position: absolute; top: 6px; left: 50%; width: var(--dw); aspect-ratio: 1; margin-left: calc(var(--dw) / -2); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px var(--gold), 0 0 50px rgba(255,220,160,.5); opacity: 0; transition: opacity .5s, transform .5s; will-change: opacity, transform; }
.patto .moon[aria-checked="true"]::before { opacity: 1; }
.patto .moon:hover .disc, .patto .moon:focus-visible .disc, .patto .moon:hover::before, .patto .moon:focus-visible::before { transform: translateY(-6px); }
.patto .moon[aria-checked="true"] .disc::after { transform: translateX(105%); }   /* chosen: the moon is full */
.patto .moon .d { font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; line-height: 1.1; text-align: center; }
.patto .moon .d small { display: block; font-weight: 400; font-style: italic; color: var(--text-dim); font-size: .8em; }
.patto .moon.other .disc { background: none; border: 1px dashed var(--gold-dim); box-shadow: none; } .moon.other .disc::after { display: none; }
.patto .moon.other .disc b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 30px var(--f); color: var(--ink); opacity: 0; transform: scale(.5); transition: opacity .5s, transform .6s cubic-bezier(.3,1.5,.5,1); }
.patto .moon.other[aria-checked="true"] .disc { background: radial-gradient(circle at 40% 35%, #f6ead0, #c9b089 70%, #8e7a5a); }
.patto .moon.other[aria-checked="true"] .disc b { opacity: 1; transform: none; }
.patto .moon.other[aria-checked="true"] .disc { border-style: solid; }
/* the calendar: a disc of the month opened over the cloth, nothing below it moves */
.patto .moons-wrap { position: relative; }
.patto .cal { position: absolute; z-index: 10; left: 50%; bottom: calc(100% + 18px); width: 340px; translate: -50% 0; padding: 18px 18px 14px; border-radius: 14px;
  background: radial-gradient(ellipse at 50% 0%, #4a1820, #23090e 80%); border: 1px solid var(--gold-dim); box-shadow: 0 0 0 5px rgba(26,8,12,.8), 0 0 0 6px rgba(201,164,99,.3), 0 30px 70px rgba(0,0,0,.7);
  opacity: 0; transform: translateY(10px) scale(.92); transform-origin: 50% 100%; pointer-events: none; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.9,.3,1.2); }
.patto .cal.show { opacity: 1; transform: none; pointer-events: auto; }
.patto .cal::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; margin-left: -7px; rotate: 45deg; background: #23090e; border-right: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim); }
.patto .cal .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.patto .cal .mon { font: italic 500 22px var(--f); color: var(--text); }
.patto .cal .nav { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold-dim); background: none; color: var(--gold); cursor: pointer; display: grid; place-items: center; }
.patto .cal .nav:disabled { opacity: .25; cursor: default; }
.patto .cal .nav svg { width: 12px; height: 12px; }
.patto .cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.patto .cal .wd { font-size: 12px; letter-spacing: .1em; color: var(--gold); padding-bottom: 4px; }
.patto .cal .day { aspect-ratio: 1; border-radius: 50%; border: 0; background: none; color: var(--text); font: 16px var(--f); cursor: pointer; position: relative;
  opacity: 0; animation: pt-dayin .4s ease forwards; transition: background .25s, color .25s; }
.patto .cal .day:hover, .patto .cal .day:focus-visible { background: rgba(201,164,99,.18); outline: none; }
.patto .cal .day:disabled { color: rgba(241,230,210,.22); cursor: default; background: none; }
.patto .cal .day.pick { background: radial-gradient(circle at 40% 35%, #f6ead0, #c9b089 75%); color: var(--ink); box-shadow: 0 0 18px rgba(255,220,160,.5); }
@keyframes pt-dayin { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* the answer: what she chose, the message, the wax seal that copies it */
.patto .verdict { margin: 0; text-align: center; font-weight: 500; font-size: clamp(40px, 6vw, 80px); line-height: 1.05; }
.patto .verdict small { display: block; font-weight: 400; font-style: italic; font-size: .42em; color: var(--gold); margin-top: 10px; }
.patto .msg { margin: 0; width: min(520px, 100%); white-space: pre-wrap; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: var(--text-dim); text-align: left;
  padding: 16px 20px; border-left: 2px solid var(--gold-dim); background: rgba(10,4,6,.35); user-select: text; }
/* the seal that closes the pact: red wax, PATTO cut in (the choice's seal, larger); pressed, it comes down on the answer */
.patto .letter-box { position: relative; width: min(520px, 100%); }
.patto .letter-box .msg { width: 100%; }
.patto .impress { position: absolute; right: -34px; bottom: -40px; width: 104px; pointer-events: none; opacity: 0; transform: scale(1.9) rotate(-22deg); }
.patto .impress.on { animation: pt-stamp .55s cubic-bezier(.3,1.5,.5,1) forwards; }
.patto .impress .seal, .patto .sigil .seal { position: relative; width: 100%; }
.patto .sigil-wrap { display: grid; justify-items: center; gap: 8px; margin-top: 10px; }
.patto .sigil { width: 96px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.patto .sigil:hover, .patto .sigil:focus-visible { transform: translateY(-3px) rotate(-6deg); outline: none; }
.patto .sigil:focus-visible { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255,190,110,.5); }
.patto .sigil.press { animation: pt-seal .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes pt-seal { 0% { transform: translateY(6px) scale(.86); } 100% { transform: none; } }
.patto .sigil-k { font-style: italic; color: var(--gold); font-size: 17px; letter-spacing: .02em; }
.patto .state { margin: 0; font-style: italic; color: var(--text-dim); min-height: 1.5em; text-align: center; max-width: 34ch; }
.patto .missing { font-style: italic; color: var(--text-dim); font-size: 22px; text-align: center; }

.patto .hint { position: absolute; z-index: 15; left: 50%; bottom: 46px; margin-left: -13px; width: 26px; height: 40px; border: 1.5px solid var(--gold); border-radius: 13px; opacity: 0; animation: pt-show 1s ease 2.4s forwards; transition: opacity .6s; pointer-events: none; }
.patto .hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: pt-wheel 1.8s ease-in-out infinite; }
.patto .hint.gone { animation: none; opacity: 0; }
@keyframes pt-show { to { opacity: .85; } }
@keyframes pt-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 700px) {
  .patto .pick { width: calc((100vw - 2 * max(10px, 1.6vw) - 48px - 32px - 24px) / 3); padding: 8px 4px; outline-offset: -7px; border-width: 3px; }
  .patto .pick .arc { font-size: 10px; } .patto .pick .arc i { font-size: 11px; } .patto .pick .nm { font-size: 17px; }
  .patto .table { grid-template-columns: 1fr; gap: 16px; } .patto .preview { min-height: 0; gap: 10px; padding: 10px; } .patto .preview .room { aspect-ratio: 16 / 7; }
  .patto .moons { gap: 12px 22px; } .patto .moon { --dw: 70px; }
}
@media (prefers-reduced-motion: reduce) { .patto::before, .patto .cloth, .patto .wheelbox, .patto .air .lamp, .patto .air i { animation: none; } }

/* the drawings move only on the card that has her attention (in front, chosen, or under the pointer) and only while
   the cards are on screen: these small animations make the browser paint the card again at every frame, and three cards
   painting all the time made the whole pact stall on a computer whose graphics card was busy with something else.
   Last in the file and specific enough to win over the animation shorthands above */
.patto .spread .pick :is(.icon, .icon .l, .sky i) { animation-play-state: paused; }
.patto .stop.on .spread .pick:is(.peek, :hover, [aria-checked="true"]) :is(.icon, .icon .l, .sky i) { animation-play-state: running; }
