/* The free tools cards, on /free-tools/ and in the room's Free tools tab (practice-room/tools-view.js): every rule sits
   under an .ft- class, so it styles nothing else in the room. The room lacks a few of the site's colour names. */
#toolsView{--teal:#2dd4bf;--text2:#b2bcb8;--ink:#071512;--teal-bright:#5eead4;--radius-sm:8px;--shadow-card:0 1px 2px #0006,0 10px 28px #0005}
/* The free tools page: a card per tool, each with a small picture of the tool on a screen. A picture moves while its
   card is hovered or focused; on a touch screen, the card nearest the middle of the screen moves (the script below). */
.ft-lead{max-width:780px;margin:18px 0 0;font-size:16.5px;line-height:1.65;color:#dfe5e2;text-shadow:0 1px 6px #000c}
.ft-jump{display:flex;flex-wrap:wrap;gap:10px;max-width:none;margin:22px 0 0}
.ft-jump a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid #46524d;border-radius:var(--radius-sm);background:rgba(43,53,48,.48);color:#f0f3ef;font-weight:600;font-size:14px;text-decoration:none;transition:background-color .15s,border-color .15s}
.ft-jump a:hover{background:#303d37;border-color:#71867c;color:#fff}
section.ft-sec{margin-top:44px;padding-top:36px}
.ft-sec h2{margin-bottom:8px;font-size:24px}
.ft-note{max-width:700px;margin:0}
.ft-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:22px}
.ft-card{grid-column:span 2;display:flex;flex-direction:column;min-width:0;padding:10px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#151918,#101211);
box-shadow:0 1px 0 #ffffff0a inset,var(--shadow-card);color:inherit;text-decoration:none;transition:transform .18s cubic-bezier(.2,.7,.2,1),border-color .18s,box-shadow .18s}
.ft-screen{display:block;padding:12px;border-radius:9px;background-color:#090c0b;background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);background-size:20px 20px;background-position:center;
box-shadow:inset 0 0 0 1px #1d2623,inset 0 14px 30px #000a;transition:box-shadow .18s}
.ft-screen svg{display:block;width:100%;height:auto;max-height:200px;margin:auto;overflow:hidden}
.ft-body{display:flex;flex-direction:column;flex:1;align-items:flex-start;gap:6px;padding:16px 8px 8px}
.ft-card h3{font-size:17px;line-height:1.3}
.ft-text{font-size:13.5px;line-height:1.55;color:var(--text2)}
.ft-go{display:inline-flex;align-items:center;gap:8px;margin-top:auto;min-height:36px;padding:0 13px;border:1px solid #3a4743;border-radius:8px;background:linear-gradient(180deg,#202826,#161c1a);
box-shadow:0 1px 0 #ffffff12 inset,0 2px 0 #0008;color:#e9efec;font-weight:600;font-size:13px;transition:background .18s,border-color .18s,color .18s}
.ft-body .ft-go{margin-top:auto}
.ft-go svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.ft-card:hover,.ft-card:focus-visible{transform:translateY(-3px);border-color:rgba(45,212,191,.5);box-shadow:0 1px 0 #ffffff0a inset,0 18px 40px #000a,0 0 0 1px rgba(45,212,191,.12)}
.ft-card:hover .ft-screen,.ft-card:focus-visible .ft-screen,.ft-card.live .ft-screen{box-shadow:inset 0 0 0 1px rgba(45,212,191,.32),inset 0 14px 30px #000a,inset 0 -30px 50px -30px rgba(45,212,191,.2)}
.ft-card:hover .ft-go,.ft-card:focus-visible .ft-go{background:var(--teal);border-color:var(--teal);color:var(--ink)}
.ft-card:hover .ft-go svg,.ft-card:focus-visible .ft-go svg{transform:translateX(3px)}
.ft-card:active{transform:translateY(0) scale(.985)}
.ft-card:focus-visible{outline:2px solid var(--teal-bright);outline-offset:3px}
.ft-body .ft-text{margin-bottom:12px}
/* The pictures. */
.ft-screen text{font-family:'Space Mono',monospace;font-size:10px;fill:#7d8a86}
.ft-screen .ro-xl{font:700 34px 'Montserrat',sans-serif;fill:#fff;letter-spacing:-1px}
.ft-screen .ro-l{font:600 20px 'Montserrat',sans-serif;fill:#fff;letter-spacing:-.3px}
.ft-screen .ro-m{font:600 13px 'Archivo',sans-serif;fill:#dfe8e4}
.ft-screen .t{fill:var(--teal)}
.ft-screen .wv,.ft-screen .lv,.ft-screen .nt,.ft-screen .beat,.ft-screen .trk.on{transform-box:fill-box}
.ft-screen .wv{fill:#2a7268;transform-origin:center}
.ft-screen .wv2{fill:#27433e}
.ft-screen .trk{fill:#26302d}.ft-screen .trk.on{fill:var(--teal);transform-origin:left}
.ft-screen .tick{fill:#44524e}
.ft-screen .chev{fill:none;stroke:#5c6965;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ft-screen .cb rect{fill:#131917;stroke:#2a3532}
.ft-screen .cb text{font:600 20px 'Montserrat',sans-serif;fill:#84918d}
.ft-screen .cb1 rect{fill:#123a35;stroke:var(--teal)}
.ft-screen .cb1 text{fill:#fff}
.ft-screen .ph{fill:var(--teal)}
.ft-screen .chip rect{fill:#111615;stroke:#33413d}
.ft-screen .chip text{font-size:11px;fill:#b9c6c1}
.ft-screen .chip.on rect{fill:#123a35;stroke:var(--teal)}
.ft-screen .chip.on text{fill:#fff}
.ft-screen .beat{fill:var(--teal);transform-origin:center}
.ft-screen .lane{fill:#101514}.ft-screen .lane:nth-of-type(even){fill:#0d1110}
.ft-screen .nt{fill:var(--teal);transform-origin:left}
.ft-screen .knob rect{fill:#e9efec}.ft-screen .knob .grip{fill:#0a0a0a}
.ft-screen .wk{fill:#e6ece9}.ft-screen .bk{fill:#0d1110}
.ft-screen .tri circle{fill:var(--teal);stroke:#071512;stroke-width:1.5}
.ft-screen .tri-a{opacity:0}
.ft-screen .body{fill:#121716;stroke:#2c3936;stroke-linejoin:round}
.ft-screen .arm{fill:#cfd9d5;transform-box:view-box;transform-origin:130px 128px;transform:rotate(-16deg)}
.ft-screen .arm .wt{fill:var(--teal)}
.ft-screen .pivot{fill:#cfd9d5}
.ft-screen .bd{fill:#26302d}.ft-screen .bd1{fill:var(--teal)}
.ft-screen .seg{fill:#1a2220}.ft-screen .seg.in{fill:#141a18}
.ft-screen .hl{fill:#1c7166}.ft-screen .hl.main{fill:var(--teal)}
.ft-screen .slot{fill:#222b29}.ft-screen .mt{fill:#161c1a}
.ft-screen .lv{fill:var(--teal);transform-origin:bottom;transform:scaleY(.55)}
.ft-screen .st.low .lv{transform:scaleY(.2)}
.ft-screen .cap{fill:#e9efec}.ft-screen .capl{fill:#0f8f7f}
.ft-screen .st.low .cap{fill:#aab6b2}
.ft-screen .st.off .cap{fill:#343e3b}.ft-screen .st.off .capl{fill:#5a6662}
.ft-screen .st text{font-size:10.5px;fill:#b3c0bb}
.ft-screen .st.off text{fill:#5f6b67;text-decoration:line-through}
.ft-screen .tag rect{fill:#0c1f1c;stroke:var(--teal)}
.ft-screen .tag text{font-size:10px;fill:var(--teal)}
/* Motion, only while the card is live. */
@media(prefers-reduced-motion:no-preference){
.ft-card:is(:hover,:focus-visible,.live) .wv{animation:ftWv 1s ease-in-out infinite alternate}
.ft-card:is(:hover,:focus-visible,.live) .cb rect{animation:ftCbR 4s step-end infinite}
.ft-card:is(:hover,:focus-visible,.live) .cb text{animation:ftCbT 4s step-end infinite}
.ft-card:is(:hover,:focus-visible,.live) .cb2 :is(rect,text){animation-delay:1s}
.ft-card:is(:hover,:focus-visible,.live) .cb3 :is(rect,text){animation-delay:2s}
.ft-card:is(:hover,:focus-visible,.live) .cb4 :is(rect,text){animation-delay:3s}
.ft-card:is(:hover,:focus-visible,.live) .ph{animation:ftPh 4s linear infinite}
.ft-card:is(:hover,:focus-visible,.live) .beat{animation:ftBeat .5s ease-out infinite}
.ft-card:is(:hover,:focus-visible,.live) .nt{animation:ftNote 2.6s ease-out infinite backwards}
.ft-card:is(:hover,:focus-visible,.live) .knob{animation:ftKnob 2.6s cubic-bezier(.6,0,.3,1) infinite alternate}
.ft-card:is(:hover,:focus-visible,.live) .trk.on{animation:ftFill 2.6s cubic-bezier(.6,0,.3,1) infinite alternate}
.ft-card:is(:hover,:focus-visible,.live) .scroll{animation:ftScroll 7s linear infinite}
.ft-card:is(:hover,:focus-visible,.live) .tri-a{animation:ftTriA 3s ease-in-out infinite}
.ft-card:is(:hover,:focus-visible,.live) .tri-b{animation:ftTriB 3s ease-in-out infinite}
.ft-card:is(:hover,:focus-visible,.live) .arm{animation:ftArm .5s ease-in-out infinite alternate}
.ft-card:is(:hover,:focus-visible,.live) .bd{animation:ftBd 2s step-end infinite}
.ft-card:is(:hover,:focus-visible,.live) .bd2{animation-delay:.5s}
.ft-card:is(:hover,:focus-visible,.live) .bd3{animation-delay:1s}
.ft-card:is(:hover,:focus-visible,.live) .bd4{animation-delay:1.5s}
.ft-card:is(:hover,:focus-visible,.live) .hl:not(.main){animation:ftHl 1.6s ease-in-out infinite alternate}
.ft-card:is(:hover,:focus-visible,.live) .lv{animation:ftLv .9s ease-in-out infinite alternate}
.ft-card:is(:hover,:focus-visible,.live) .st.low .lv{animation-name:ftLvLow}
/* One moment on arrival: the screens come on, one after another. */
.ft-grid:not(.ft-grid-mini) .ft-card .ft-screen svg{animation:ftOn .7s ease-out backwards}
.ft-grid .ft-card:nth-child(2) .ft-screen svg{animation-delay:.08s}.ft-grid .ft-card:nth-child(3) .ft-screen svg{animation-delay:.16s}
.ft-grid .ft-card:nth-child(4) .ft-screen svg{animation-delay:.24s}.ft-grid .ft-card:nth-child(5) .ft-screen svg{animation-delay:.32s}
.ft-grid .ft-card:nth-child(6) .ft-screen svg{animation-delay:.4s}.ft-grid .ft-card:nth-child(7) .ft-screen svg{animation-delay:.48s}
}
@keyframes ftOn{from{opacity:0}}
@keyframes ftWv{from{transform:scaleY(.45)}to{transform:scaleY(1.12)}}
@keyframes ftCbR{0%{fill:#123a35;stroke:#2dd4bf}25%,100%{fill:#131917;stroke:#2a3532}}
@keyframes ftCbT{0%{fill:#fff}25%,100%{fill:#84918d}}
@keyframes ftPh{to{transform:translateX(280px)}}
@keyframes ftBeat{from{transform:scale(1.7);opacity:1}to{transform:scale(.8);opacity:.5}}
@keyframes ftNote{0%{opacity:0;transform:scaleX(.1)}10%,100%{opacity:1;transform:none}}
@keyframes ftKnob{from{transform:none}to{transform:translateX(69px)}}
@keyframes ftFill{from{transform:none}to{transform:scaleX(2)}}
@keyframes ftScroll{to{transform:translateX(-139.2px)}}
@keyframes ftTriA{0%,35%{opacity:1}50%,100%{opacity:0}}
@keyframes ftTriB{0%,35%{opacity:0}50%,100%{opacity:1}}
@keyframes ftArm{from{transform:rotate(-18deg)}to{transform:rotate(18deg)}}
@keyframes ftBd{0%{fill:#2dd4bf}25%,100%{fill:#26302d}}
@keyframes ftHl{from{fill:#1c7166}to{fill:#2bb5a3}}
@keyframes ftLv{from{transform:scaleY(.3)}to{transform:scaleY(.9)}}
@keyframes ftLvLow{from{transform:scaleY(.1)}to{transform:scaleY(.3)}}
/* The first and last rows: two wide cards, screen beside the words. */
@media(min-width:1101px){.ft-wide{grid-column:span 3;flex-direction:row;align-items:stretch}.ft-wide .ft-screen{flex:0 0 56%;display:flex;align-items:center}.ft-wide .ft-body{padding:10px 8px 8px 20px;justify-content:center}.ft-wide h3{font-size:20px}.ft-wide .ft-body .ft-go{margin-top:0}}
/* The split tools: smaller cards, a mixer on each. */
.ft-grid-mini{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ft-mini{grid-column:auto;padding:8px;border-radius:14px}
.ft-mini .ft-screen{padding:8px}
.ft-mini .ft-body{padding:12px 6px 6px;gap:4px}
.ft-mini h3{font-size:15px}
.ft-mini .ft-text{font-size:12.5px;margin:0}
.ft-mini .ft-go{display:none}
.ft-more{max-width:780px;margin:22px 0 0;font-size:14px}
.ft-more a{color:var(--teal-bright);text-decoration:none;border-bottom:1px solid rgba(45,212,191,.35);transition:color .2s,border-color .2s}
.ft-more a:hover{color:#8cf0df;border-bottom-color:var(--teal,#2dd4bf)}
.ft-cta{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:44px 0 0}
@media(max-width:1000px){.ft-grid-mini{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.ft-grid:not(.ft-grid-mini){grid-template-columns:repeat(2,minmax(0,1fr))}.ft-grid:not(.ft-grid-mini) .ft-card{grid-column:auto}.ft-grid:not(.ft-grid-mini) .ft-card:first-child{grid-column:1/-1}}
@media(max-width:700px){.ft-grid-mini{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.ft-grid:not(.ft-grid-mini){grid-template-columns:minmax(0,1fr);gap:12px}.ft-sec h2{font-size:22px}section.ft-sec{margin-top:32px;padding-top:28px}.ft-lead{font-size:15.5px;margin-top:12px}.ft-jump{margin-top:16px;gap:8px}.ft-jump a{flex:1 1 0;justify-content:center;padding:0 10px;font-size:13px;text-align:center}
.ft-grid:not(.ft-grid-mini) .ft-screen{padding:8px 12px}.ft-grid:not(.ft-grid-mini) .ft-screen svg{max-height:150px}.ft-grid:not(.ft-grid-mini) .ft-body{flex-direction:row;flex-wrap:wrap;align-items:center;padding:12px 6px 6px;column-gap:12px}.ft-grid:not(.ft-grid-mini) h3{flex:1;font-size:17px}.ft-grid:not(.ft-grid-mini) .ft-text{order:3;flex:0 0 100%;margin:0}.ft-grid:not(.ft-grid-mini) .ft-go{order:2;margin:0;min-height:32px;padding:0 11px}
.ft-mini{min-height:76px}.ft-cta{margin-top:32px}.ft-cta .cta{width:100%}
.ft-grid-mini{grid-template-columns:minmax(0,1fr);gap:10px}.ft-mini{flex-direction:row;align-items:center}.ft-mini .ft-screen{flex:0 0 132px}.ft-mini .ft-screen text{display:none}.ft-mini .ft-body{padding:4px 6px 4px 14px}}
@media(prefers-reduced-motion:reduce){.ft-card,.ft-go,.ft-go svg,.ft-screen{transition:none}.ft-card:hover,.ft-card:focus-visible{transform:none}}
