/* Remember uses the shared Fliptures paperboard, with a full-size central letter. */
.ff-press{position:relative;display:grid;grid-template-columns:repeat(var(--ff-memory-cols,3),var(--ff-memory-card,72px));grid-auto-rows:calc(var(--ff-memory-card,72px)*4/3);gap:10px;place-content:center;width:100%;height:100%;min-height:0;padding:12px;box-sizing:border-box}
.ff-press-memory{position:relative;z-index:2;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;border-radius:8px;outline:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;perspective:600px}
.ff-press-memory .ff-card{--fl-tile:var(--ff-memory-card,72px);--ff-card-font-size:var(--ff-memory-font,33px);width:100%;height:100%;margin:0!important;pointer-events:none}
.ff-press-memory.is-dealing{pointer-events:none;will-change:transform,opacity}
.ff-press-memory.is-dealing .flipture-tile-inner{transition:none!important}
.ff-press-memory.is-dealing .flipture-tile-face{visibility:hidden}
.ff-press-memory .ff-card .flipture-tile-face,.ff-press-flight.ff-card .flipture-tile-face{font-size:var(--ff-memory-font,33px)!important}
.ff-press-memory .ff-card .flipture-tile-glyph,.ff-press-flight.ff-card .flipture-tile-glyph{font-size:var(--ff-memory-font,33px)!important;font-family:var(--fl-card-font,Literata,Georgia,serif)!important;line-height:1!important;width:auto!important;max-width:none!important;text-align:center!important;letter-spacing:0!important}
.ff-game[data-fidget-game=press] .ff-press-memory:focus-visible{background:transparent;filter:none}.ff-press-memory:focus-visible :is(.flipture-tile-back,.flipture-tile-face){filter:brightness(1.12)}.ff-press-memory.is-open{cursor:default}.ff-press-memory.is-delivering{visibility:hidden;pointer-events:none}
.ff-press-flight{position:absolute!important;z-index:80!important;margin:0!important;pointer-events:none;transform-origin:center;perspective:640px;transform-style:preserve-3d;will-change:transform,opacity}
/* Shadows belong to the rotating paper faces in the grid, flight and hand. */
.ff-game[data-fidget-game=press] .flipture-letter-tile::before{content:none!important;box-shadow:none!important}
.ff-game[data-fidget-game=press] .flipture-letter-tile :is(.flipture-tile-back,.flipture-tile-face){box-shadow:4px 2px 5px #9a63741f!important}
/* The hidden bonus is a shallow rubber popper, initially concave within its
   round rim. It flattens, inverts outward and hops as one flexible object. */
.ff-press-popper{--ff-popper-width:46px;--ff-popper-hop:0px;--ff-popper-turn:0deg;--ff-popper-scale-x:1;--ff-popper-scale-y:1;position:absolute;z-index:1;display:block;width:var(--ff-popper-width);height:calc(var(--ff-popper-width)*.9);transform:translate(-50%,-68.889%);opacity:1;pointer-events:none}
.ff-press-popper.is-covered{opacity:0}
.ff-press-popper-shadow{position:absolute;inset:42% 2% 1%;border-radius:50%;background:#a37983;opacity:.2;transform-origin:center}
.ff-press-popper-body{position:absolute;inset:0;transform:translateY(calc(-1*var(--ff-popper-hop))) rotate(var(--ff-popper-turn)) scale(var(--ff-popper-scale-x),var(--ff-popper-scale-y));transform-origin:50% 96.667%;will-change:transform}
.ff-press-popper-art{display:block;width:100%;height:100%;overflow:visible}
.ff-press-popper-cavity{transition:opacity 48ms ease-out}
.ff-press-popper.is-sprung .ff-press-popper-cavity{transition:none}
.ff-press-pop-sparks,.ff-press-pop-smoke{position:absolute;display:block;width:0;height:0;pointer-events:none}
.ff-press-pop-sparks{z-index:75}.ff-press-pop-smoke{z-index:65}
.ff-press-pop-sparks i{position:absolute;display:block;left:-2px;top:-2px;width:4px;height:4px;border-radius:1px;will-change:transform,opacity}
.ff-press-pop-sparks i:nth-child(3n){width:5px;height:5px;clip-path:polygon(50% 0,65% 35%,100% 50%,65% 65%,50% 100%,35% 65%,0 50%,35% 35%)}
.ff-press-pop-sparks i.is-lightning{width:13px;height:7px;clip-path:polygon(0 30%,43% 30%,37% 0,100% 67%,55% 67%,61% 100%);opacity:.5}
.ff-press-pop-smoke i{position:absolute;display:block;left:-10px;top:-8px;border-radius:43% 56% 46% 54%;will-change:transform,opacity}
@media(prefers-reduced-motion:reduce){.ff-press-popper-body,.ff-press-popper-cavity{transition:none;will-change:auto}.ff-press-pop-sparks,.ff-press-pop-smoke{display:none}}
/* In Tune: three instruments share an upright gauge and direct tuning pegs. */
.ff-pluck{position:relative;width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0 8px 12px;box-sizing:border-box;outline:none}
.ff-pluck:focus-visible .ff-pluck-melody-label{color:#205c5b}.ff-pluck:focus-visible .ff-pluck-gauge-left{fill:#b45370}
.ff-pluck-meter{flex:none;display:flex;justify-content:center;align-items:center;height:108px;min-height:0;position:relative;z-index:2}
.ff-pluck-gauge{display:block;width:180px;height:100px;overflow:visible}.ff-pluck-gauge-left{fill:#c16d82}.ff-pluck-gauge-right{fill:#4e8b91}.ff-pluck-needle-face{fill:#315a5a}.ff-pluck-needle-pivot{fill:#70a9a5}.ff-pluck-gauge.is-centered .ff-pluck-needle-face{fill:#315a5a}.ff-pluck-gauge.is-centered .ff-pluck-needle-pivot{fill:#4c918c}
.ff-pluck-instrument{position:relative;flex:1;min-height:0;width:100%;isolation:isolate;opacity:1;transform:translateY(0);transition:opacity 180ms ease-in-out,transform 240ms ease-in-out}
.ff-pluck-instrument.is-changing{opacity:0;transform:translateY(9px);pointer-events:none}
.ff-pluck-strings{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.ff-pluck-soundboard{opacity:.76}.ff-pluck-body-face{fill:#d5e9dd}.ff-pluck-body-light{fill:#e5edde}.ff-pluck-harp-frame{stroke:#e9c9ad;stroke-width:47;stroke-linejoin:round;stroke-linecap:round}.ff-pluck-soundhole{fill:#b2d6cb}.ff-pluck-bridge{stroke:#c2bfb1;stroke-width:16;stroke-linecap:round}.ff-pluck-mallet{stroke:#b8cfbf;stroke-width:10;stroke-linecap:round}.ff-pluck-mallet-head{fill:#e9c9ad}
.ff-pluck[data-instrument=harp] .ff-pluck-soundboard{opacity:1}.ff-pluck-lyre-face{fill:#f5e8ce}.ff-pluck-lyre-side{fill:#d9bfa9}.ff-pluck-lyre-base-face,.ff-pluck-lyre-crossbeam{fill:#b4d8ca}.ff-pluck-lyre-base-side{fill:#8bb5ab}.ff-pluck-lyre-curl,.ff-pluck-lyre-curl-side{stroke-width:42;stroke-linecap:round;stroke-linejoin:round}.ff-pluck-lyre-curl{stroke:#f5e8ce}.ff-pluck-lyre-curl-side{stroke:#d9bfa9}
.ff-pluck[data-instrument=guitar] .ff-pluck-soundboard{opacity:1}.ff-pluck-guitar-head-side,.ff-pluck-guitar-body-side{fill:#e7d5b9}.ff-pluck-guitar-body-face,.ff-pluck-guitar-head-face{fill:#f3e7ca}.ff-pluck-guitar-neck-side{fill:#c4b69b}.ff-pluck-guitar-neck-face{fill:#d0c3a7}.ff-pluck-guitar-hole{fill:#bbdbd1}.ff-pluck-guitar-hole-depth{fill:#a7cec1}.ff-pluck-guitar-bridge{fill:#b7a696}.ff-pluck[data-instrument=guitar] .ff-pluck-pin-stem{stroke:#91b9ae;stroke-width:8;opacity:1}
.ff-pluck[data-instrument=guitar] .ff-pluck-pin{--ff-pin-width:53px}.ff-pluck-guitar-winder{fill:#709c95}
.ff-pluck[data-instrument=dulcimer] .ff-pluck-body-face{fill:#d2e8df}.ff-pluck[data-instrument=dulcimer] .ff-pluck-body-light{fill:#e9e9d3}
.ff-pluck[data-instrument=dulcimer] .ff-pluck-soundboard{opacity:1}.ff-pluck-dulcimer-body-face,.ff-pluck-dulcimer-head-face{fill:#eddcbb}.ff-pluck-dulcimer-body-side,.ff-pluck-dulcimer-head-side{fill:#d2bda5}.ff-pluck-dulcimer-bed-face{fill:#d4c7ac}.ff-pluck-dulcimer-bed-side{fill:#b8ab96}.ff-pluck-dulcimer-bridge{fill:#a2aaa0}.ff-pluck-dulcimer-hole{fill:#91b5a9}
.ff-pluck-string{--ff-pluck-energy:0;--ff-pluck-thread-color:#477f81}.ff-pluck-string[data-string-index="1"],.ff-pluck-string[data-string-index="4"],.ff-pluck-string[data-string-index="7"]{--ff-pluck-thread-color:#416f79}.ff-pluck-string[data-string-index="2"],.ff-pluck-string[data-string-index="5"],.ff-pluck-string[data-string-index="8"]{--ff-pluck-thread-color:#4c7f86}
.ff-pluck-aura{stroke:var(--ff-pluck-color);stroke-width:11px;opacity:calc(.035 + var(--ff-pluck-energy)*.16);stroke-linecap:round}.ff-pluck-thread{stroke:var(--ff-pluck-thread-color);stroke-width:2.8px;opacity:1;stroke-linecap:round}.ff-pluck-light{stroke:#fff2db;stroke-width:.7px;opacity:calc(.08 + var(--ff-pluck-energy)*.25);stroke-linecap:round}.ff-pluck-string.is-selected .ff-pluck-thread{stroke-width:3.5px}.ff-pluck-string.is-locked .ff-pluck-thread{stroke:#3e7a7e}
.ff-pluck-pin-stem{stroke:#91b9ae;stroke-width:15;stroke-linecap:round;opacity:.85}
.ff-pluck-pin{--ff-pin-width:clamp(53px,17vw,72px);--ff-pin-height:clamp(35px,5.8vh,46px);position:absolute;z-index:3;width:var(--ff-pin-width);height:var(--ff-pin-height);min-height:0;padding:0;border:0;border-radius:10px;background:transparent;transform:translate(-50%,-50%);outline:none;cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent;perspective:240px;transition:none!important}
.ff-pluck-pin.is-held{transform:translate(-50%,-50%) scale(1.5);transition:none!important;z-index:5}
.ff-pluck[data-instrument=harp] .ff-pluck-pin{filter:drop-shadow(2px 3px 2px rgb(49 90 90 / .24))}
.ff-pluck-pin-cap{position:absolute;inset:0;border-radius:10px;background:transparent;transform:rotateX(clamp(-42deg,var(--ff-pin-turn,0deg),42deg)) rotateY(-9deg);transform-origin:center;transform-style:preserve-3d;pointer-events:none}
.ff-pluck[data-instrument=harp] .ff-pluck-pin-cap{transform:rotateY(clamp(-42deg,var(--ff-pin-turn,0deg),42deg)) rotateX(-9deg)}
.ff-pluck-pin-side,.ff-pluck-pin-face{position:absolute;backface-visibility:hidden;-webkit-backface-visibility:hidden;pointer-events:none}
.ff-pluck-pin-side{height:18px;background:#bab7ad;transform-origin:center}
.ff-pluck-pin-face{inset:0;border-radius:10px}
.ff-pluck-pin-face{display:grid;place-items:center;background:#fbfaf3;transform:translateZ(9px)}
.ff-pluck-engraving{position:relative;color:#315a5a;font:750 14px/1 Manrope,system-ui,sans-serif;letter-spacing:.08em;text-shadow:none;pointer-events:none}
.ff-pluck-pin:focus-visible .ff-pluck-engraving{color:#164d50}.ff-pluck-pin.is-turning{cursor:grabbing}
.ff-pluck-strum{position:absolute;inset:0;z-index:1;min-height:0;padding:0;border:0;border-radius:0;background:transparent;outline:none;cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent}.ff-pluck-strum:focus-visible{background:#9bcfc41a}
@media(max-height:520px){.ff-pluck{padding-bottom:8px}.ff-pluck-meter{height:76px}.ff-pluck-gauge{width:140px;height:76px}.ff-press{gap:7px;padding:8px}.ff-pluck-pin{--ff-pin-height:32px;--ff-pin-width:53px}.ff-pluck-engraving{font-size:12px}}
@media(orientation:landscape) and (max-height:500px) and (min-width:600px){.ff-pluck{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:12px;padding:2px 8px 10px;align-items:stretch}.ff-pluck-meter{height:100%;min-height:0;align-items:center}.ff-pluck-gauge{width:150px;height:90px}.ff-pluck-instrument{height:100%;min-height:0}}
@media(prefers-reduced-motion:reduce){.ff-press-flight{will-change:auto}.ff-pluck-instrument{transition:none}}

/* In Tune's tuned instrument becomes a gentle, repeatable rhythm phrase. */
.ff-pluck[data-phase=tuning] .ff-pluck-melody{display:none}
.ff-pluck:not([data-phase=tuning]) .ff-pluck-gauge{display:none}
.ff-pluck-melody{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:min(100%,330px);height:100%;color:var(--ff-scene-ink,#315a5a)}
.ff-pluck-melody-label{font:700 14px/1.15 Manrope,system-ui,sans-serif;letter-spacing:.02em}
.ff-pluck-melody-note{display:grid;place-items:center;position:relative;min-width:100px;min-height:43px;color:#315a5a;font:800 clamp(28px,7vw,38px)/1 Manrope,system-ui,sans-serif;letter-spacing:.015em}
.ff-pluck-melody-note::before{content:"";position:absolute;inset:-3px 3px;border-radius:24px;background:#addbd0;z-index:-1;transform:scale(.76);opacity:.55}
.ff-pluck[data-phase=play] .ff-pluck-melody-note::before{transform:scale(1);opacity:.75}
.ff-pluck-melody-note.is-hit{color:#205c5b}.ff-pluck-melody-note.is-hit::before{background:#76c5b8;opacity:1}
.ff-pluck-melody-track{display:flex;gap:8px;justify-content:center;align-items:center;width:100%}
.ff-pluck-melody-step{min-width:27px;padding:3px 4px;border-radius:6px;color:#456966;font:750 14px/1.05 Manrope,system-ui,sans-serif;text-align:center;background:transparent;transition:background 100ms ease,color 100ms ease}
.ff-pluck-melody-step.is-current{color:#315a5a;background:#f8e4c9}.ff-pluck-melody-step.is-hit{color:#245c58;background:#abd8cb}
.ff-pluck-melody-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ff-pluck-pin.is-cued .ff-pluck-pin-face{filter:brightness(1.07)}
.ff-pluck-string.is-cued .ff-pluck-thread{stroke:#245e66;stroke-width:4px}
@media(max-height:520px){.ff-pluck-melody{gap:2px}.ff-pluck-melody-label{font-size:13px}.ff-pluck-melody-note{font-size:28px;min-height:31px}.ff-pluck-melody-step{font-size:13px;min-width:23px}.ff-pluck-melody-track{gap:3px}}
@media(orientation:landscape) and (max-height:500px) and (min-width:600px){.ff-pluck-melody-track{max-width:145px;flex-wrap:wrap}.ff-pluck-melody{gap:8px}}
@media(prefers-reduced-motion:reduce){.ff-pluck[data-phase=play] .ff-pluck-melody-note::before{animation:none;transform:scale(1)}.ff-pluck-melody-step{transition:none}}

/* The player chooses when a tuned melody begins again. */
.ff-pluck-retry{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);min-height:76px;max-width:calc(100% - 40px);padding:20px 34px;border:0;border-radius:24px;background:#f2b7a6;color:#315a5a;box-shadow:0 6px 0 #d49a91;font:800 clamp(24px,6.5vw,32px)/1.15 Manrope,system-ui,sans-serif;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;outline:none;animation:ff-pluck-retry-arrive 280ms cubic-bezier(.2,.85,.3,1.15)}
.ff-pluck-retry[hidden],.ff-pluck-melody[hidden]{display:none!important}
.ff-pluck-retry:hover,.ff-pluck-retry:focus-visible{background:#ffdac2;color:#205c5b}
.ff-pluck-retry:active{transform:translate(-50%,calc(-50% + 3px));box-shadow:0 3px 0 #d49a91}
@keyframes ff-pluck-retry-arrive{from{opacity:0;transform:translate(-50%,calc(-50% + 12px)) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){.ff-pluck-retry{animation:none}}
