/* The 1.0 landing page's own stylesheet (index.html, en/index.html). The sub pages use css/style.css.
   Fonts and tokens first, then the page. */
/* TOGETU 1.0 draft - shared base (fonts, tokens, button). Brand: solid colours, no gradients,
   PiePie for short headlines only, Raleway for body, hard shadows without blur. */
@font-face{font-family:'PiePie';src:url('../fonts/piepie-regular-webfont.woff2') format('woff2'),url('../fonts/piepie-regular-webfont.woff') format('woff');font-display:swap}
@font-face{font-family:'Raleway';src:url('../fonts/Raleway-VariableFont_wght.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--purple:#9172F7;--black:#000;--white:#fff;--ink2:#BDB3E8;--pie:'PiePie','Arial Black',sans-serif;--body:'Raleway','Helvetica Neue',Arial,sans-serif}
*{margin:0;padding:0;box-sizing:border-box}
html{background:var(--black);overflow-x:clip;-webkit-text-size-adjust:100%}
body{font-family:var(--body);font-size:1.06rem;line-height:1.5;color:var(--white);background:var(--black);overflow-x:clip}
a{color:inherit}
.pie{font-family:var(--pie);font-weight:normal;letter-spacing:.01em}
.btn{display:inline-flex;align-items:center;justify-content:center;font-family:var(--pie);text-transform:uppercase;text-decoration:none;
  font-size:1rem;letter-spacing:.02em;padding:1.05em 2.2em;border-radius:999px;border:3px solid var(--black);
  background:var(--purple);color:var(--black);box-shadow:0 6px 0 var(--black);transition:transform .12s,box-shadow .12s}
.btn:active{transform:translateY(4px);box-shadow:0 2px 0 var(--black)}
.btn--on-black{border-color:var(--white);box-shadow:0 6px 0 var(--white)}
.btn--on-black:active{box-shadow:0 2px 0 var(--white)}
.lottie{position:relative}
.lottie>svg{display:block}
@media (prefers-reduced-motion:reduce){.wiggle{animation:none!important}}

/* TOGETU 1.0 landing: motion follows the scroll, nothing waits to appear,
   the bar gets out of the way. One column up to 1099px, two columns from 1100px. */
:root{--slant:8vw;--btnW:min(80vw,340px);--gap:64px;--orange:#FF5B23;--green:#B0FFAF;--face:#A48AF8}
html{background:var(--black);scroll-behavior:smooth}
body{background:var(--black);color:var(--white);overflow-x:clip}
button{font:inherit;background:none;border:0;padding:0;cursor:pointer;color:inherit}

/* the app's push button (outline_push_button.dart) */
.pbtn{position:relative;display:inline-block;width:var(--btnW);height:64px;text-decoration:none;-webkit-tap-highlight-color:transparent;flex:none}
.pbtn:before{content:"";box-sizing:border-box;position:absolute;left:0;right:0;top:4px;height:60px;border-radius:30px;background:var(--white);border:3px solid var(--white)}
.pbtn-face{position:absolute;left:0;right:0;top:0;height:60px;border-radius:30px;border:3px solid var(--white);background:var(--face);color:var(--white);
  display:flex;align-items:center;justify-content:center;padding:0 10px;font-family:var(--pie);font-size:21px;line-height:1;white-space:nowrap;transition:top 90ms ease-out}
.pbtn:active .pbtn-face{top:4px}
.pbtn--dark .pbtn-face{background:var(--purple)}
.pbtn--half{width:calc((var(--btnW) - 12px) / 2)}

/* top bar and menu: the live site's own (website/site/css/style.css), in this page's colours: a black
   pill with a white outline. It waits off-screen until the side quest part has scrolled past, then stays. */
.site-header{position:fixed;top:12px;left:12px;right:12px;z-index:50;transition:opacity .6s ease}
.site-header--hidden{transform:translateX(calc(-100% - 40px));opacity:0;transition:opacity .6s ease,transform 0s linear .6s}
.navpill{max-width:1360px;margin:0 auto;background:var(--black);border:2.5px solid var(--white);border-radius:999px;
  display:flex;align-items:center;justify-content:space-between;padding:6px 10px 6px 24px}
.wordmark{font-family:var(--pie);font-size:1.75rem;line-height:1;text-decoration:none;text-transform:uppercase;color:var(--white)}
.nav-links,.nav-lang{display:none}
.nav-right{display:flex;align-items:center;gap:10px}
/* the menu button and the X share one fixed height (css/style.css .menu-btn), so the bar is the same height
   closed, open, and on the sub pages */
.menu-btn{font-family:var(--pie);font-size:1.05rem;line-height:1;text-transform:uppercase;background:var(--white);color:var(--black);border:none;border-radius:999px;height:34px;padding:0 13px;cursor:pointer}
.menu{position:fixed;inset:0;z-index:100;background:var(--purple);display:flex;flex-direction:column;padding:12px 12px 44px;overflow-y:auto;overflow-x:hidden}
.menu[hidden]{display:none}
.menu .menu-bar{margin-bottom:44px;width:100%}
.menu-title,.menu-x{font-family:var(--pie);font-size:1.75rem;line-height:1;text-transform:uppercase;color:var(--white)}
.menu-x{background:none;border:none;cursor:pointer;height:34px;padding:0 14px}
.menu-links{display:flex;flex-direction:column;gap:28px;padding:0 24px}
.menu-links a{font-family:var(--pie);font-size:clamp(1.9rem,8.5vw,3rem);line-height:1;text-transform:uppercase;text-decoration:none;color:var(--black);
  animation:fly-in-l .35s cubic-bezier(.2,.8,.3,1) both}
.menu-links a:nth-child(2){animation-delay:.05s}.menu-links a:nth-child(3){animation-delay:.1s}.menu-links a:nth-child(4){animation-delay:.15s}.menu-links a:nth-child(5){animation-delay:.2s}.menu-links a:nth-child(6){animation-delay:.25s}
@keyframes fly-in-l{from{opacity:0;transform:translateX(-100vw)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.menu-links a{animation:none}}
body.menu-open{overflow:hidden}
@media (min-width:900px){
  .navpill{display:grid;grid-template-columns:1fr auto 1fr;padding:14px 32px}
  .nav-links{display:flex;gap:36px;font-weight:700;font-size:1.1rem;color:var(--white)}
  .nav-links a{text-decoration:none}
  .navpill .wordmark{justify-self:center;font-size:2.4rem}
  .nav-right{justify-self:end}
  /* the language switch takes the menu button's place: every link is in the bar on desktop */
  .nav-lang{display:inline-block;font-weight:700;font-size:1.1rem;text-decoration:none;color:var(--white)}
  .menu-btn{display:none}
}

/* sections */
.s{position:relative;background:var(--black);padding:var(--gap) 22px;text-align:center;display:flex;flex-direction:column;align-items:center;overflow:hidden}
.s h2{font-family:var(--pie);font-weight:normal;font-size:clamp(2.4rem,11vw,4.4rem);line-height:1.1}
.line{margin:14px auto 0;font-weight:600;font-size:1.08rem;line-height:1.45;max-width:29ch;opacity:.9}
.cut{margin-top:calc(-1 * var(--slant));padding-top:calc(var(--gap) + var(--slant));clip-path:polygon(0 var(--slant),100% 0,100% 100%,0 100%)}
.st{color:var(--orange)}
.gr{color:var(--green)}
[data-sl]{will-change:translate,scale}

/* first screen: mascot, line, small text, button. The line, the small text and the button are one group
   with fixed gaps (--hs, --sb); what is left of the screen (--free) is shared above the mascot, between
   him and the line (--g) and below the button. --g is also where the mascot's food shows: .hero-m is
   clipped that far under his box, so the food rises from the line's top edge and never crosses it.
   The small text is always three lines (its breaks are in the page) and its size follows the line's
   (--sf from --hf), so its height (--sub) is known here without measuring. On a phone the small text sits
   midway between the line and the button: the +14px / +6px on --hs / --sb make the visible gaps (letter edge
   to letter edge, button edge) equal. On a phone it is also bigger against
   the line (.41, as on the /utb page) than from 700px (.348); its longest line then reaches into the side
   padding and ends 13-18px from the screen edges (English, the longer, nearest).
   TOGETU_jedenie draws the mascot in only part of its 1080 frame (x 266-998 over all frames, y 215-865
   at rest; the rest is room for the food), so the box .hero-m is that visible part (--S wide,
   .888 as tall) and the frame is laid over it. The box sits 12% right so his round body is over the line. */
.s.hero{--hf:min(11.4vw,8.2svh,6rem);--bh:60px;--gmin:24px;
  --sf:calc(var(--hf) * .41);--sub:calc(3 * 1.36 * var(--sf));--hs:calc(var(--hf) * .45 + 14px);--sb:calc(var(--hf) * .72 + 6px);
  --after:32px; /* phone: kept free under the button. It also shrinks --free, of which the button keeps
     .38, so 32px nets 20px more under the button wherever TOGETU's width (78vw) sets his size */
  --rest:calc(2.94 * var(--hf) + var(--hs) + var(--sub) + var(--sb) + var(--bh) + 4px + var(--after));
  --S:min(78vw,(100svh - var(--rest) - 3 * var(--gmin)) / .888);
  --free:calc(100svh - .888 * var(--S) - var(--rest));--g:calc(var(--free) * .22);
  height:100svh;min-height:0;padding:calc(var(--free) * .4) 22px 0;gap:0;justify-content:flex-start;overflow:hidden}
.hero-m{position:relative;left:calc(var(--S) * .12);width:var(--S);height:calc(var(--S) * .888);flex:none;pointer-events:none;
  clip-path:inset(-100vmax -100vmax calc(-1 * var(--g)) -100vmax)}
.hero-m svg{position:absolute;left:-36.34%!important;top:-33.08%!important;width:147.54%!important;height:166.15%!important;max-width:none}
.hero-txt{display:contents}
.hero h1{font-family:var(--pie);font-weight:normal;font-size:var(--hf);line-height:.98;margin-top:var(--g)}
/* the small text: its two links jump to the side quest part and the sraz; they wear no underline */
.hero-sub{font-size:var(--sf);line-height:1.36;font-weight:800;color:rgba(255,255,255,.5);white-space:nowrap;margin-top:var(--hs);flex:none}
.hero-sub a{color:var(--purple);text-decoration:none}
.hero .pbtn{margin-top:var(--sb);margin-bottom:var(--after)}
/* the first screen's entrance, once (js adds .go when TOGETU is drawn): he comes from the left, the line from
   the right, then the small text types and the button pops. It uses transform, because the scroll
   drift (js) owns translate and scale on the same elements. */
.js .hero-m,.js .hero h1{opacity:0}
.js .hero.go .hero-m{opacity:1;animation:heroIn .55s cubic-bezier(.2,1.1,.4,1) backwards;--from:-110vw}
.js .hero.go h1{opacity:1;animation:heroIn .55s cubic-bezier(.2,1.1,.4,1) .12s backwards;--from:110vw}
@keyframes heroIn{from{transform:translateX(var(--from))}to{transform:none}}
@media (prefers-reduced-motion:reduce){.hero-m,.hero h1{opacity:1!important;animation:none!important}}

/* side quest: the box slides in from the side once (.in); tapped, it opens and goes, the app's
   VENKU / NEBO / DOMA tiles take its place (.kinds-on); a tile gives its quest card (.card-on), which turns
   into the lock card (.lc-on) */
.quest{padding-bottom:var(--gap)}
.stage{--w:min(76vw,340px);--u:calc(var(--w) / 340);position:relative;width:var(--w);height:calc(var(--w) * 1.333);-webkit-tap-highlight-color:transparent}
.box-wrap{position:absolute;inset:0;cursor:pointer;outline:none;
  opacity:0;transform:translateX(110vw) rotate(10deg);transition:transform .7s cubic-bezier(.2,1.25,.4,1),opacity .2s}
.stage.in .box-wrap{opacity:1;transform:none}
/* the closed box fills only part of its 600 x 780 picture (the room above is for the flaps): it is placed so
   the box itself sits a touch (5% of the stage's width) above the stage's middle, where the tiles and the card are */
.boxf{position:absolute;left:-9%;top:calc(var(--w) * -.384);width:118%;max-width:none;height:auto;pointer-events:none;user-select:none}
.stage.ready .boxf{animation:hop 3s .6s infinite}
@keyframes hop{0%,72%,100%{transform:none}78%{transform:translateY(-14px) rotate(-2deg)}84%{transform:none}90%{transform:translateY(-8px) rotate(1.5deg)}96%{transform:none}}
.stage.gone .box-wrap{transform:scale(.4) translateY(30%);opacity:0;pointer-events:none;transition:transform .35s cubic-bezier(.5,0,.7,.4),opacity .3s}

.kinds{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;pointer-events:none}
.kind{position:relative;display:block;width:calc(100% - 4px);height:calc(var(--u) * 150);flex:none;background:var(--black);border:3px solid var(--white);border-radius:20px;
  box-shadow:4px 4px 0 var(--white);overflow:hidden;text-align:left;opacity:0;transform:translateX(-60vw);transition:transform .28s cubic-bezier(.2,.9,.3,1),opacity .15s}
.kind:last-child{transform:translateX(60vw);transition-delay:.08s}
.kind:active{transform:translate(4px,4px)!important;box-shadow:none;border-color:var(--purple)}
.kind-pic{position:absolute;inset:0;width:100%;height:100%;display:block}
.kind-word{position:absolute;left:calc(var(--u) * 22);top:calc(var(--u) * 18);font-family:var(--pie);font-size:calc(var(--u) * 40);line-height:1;color:var(--white)}
.kinds-or{font-family:var(--pie);font-size:calc(var(--u) * 26);line-height:1;text-align:center;color:rgba(255,255,255,.6);margin:calc(var(--u) * 18) 0;opacity:0;transition:opacity .2s .12s}
.stage.kinds-on .kinds{pointer-events:auto}
.stage.kinds-on .kind{opacity:1;transform:none}
.stage.kinds-on .kinds-or{opacity:1}
.kind-pic .tw{animation:tw var(--d,2.1s) ease-in-out var(--o,0s) infinite}
@keyframes tw{0%,100%{opacity:1}50%{opacity:.25}}
.kind-pic .shoot{animation:shoot 4.2s linear infinite}
@keyframes shoot{0%,10%{transform:translate(0,0);opacity:0}12%{opacity:1}30%{transform:translate(-150px,66px);opacity:1}34%,100%{transform:translate(-150px,66px);opacity:0}}

.qcard{position:absolute;inset:0 4px 4px 0;display:flex;flex-direction:column;align-items:center;padding:calc(var(--u) * 18) calc(var(--u) * 20) calc(var(--u) * 16);
  background:var(--qc);color:var(--qi);border:3px solid var(--qi);border-radius:20px;box-shadow:4px 4px 0 var(--qi);cursor:pointer;outline:none;
  font-family:var(--pie);text-align:center;opacity:0;transform:scale(.5);pointer-events:none;transition:transform .16s ease-in,opacity .12s}
/* it waits as long as the lock card does, so whichever was showing has gone first */
.stage.card-on .qcard{opacity:1;transform:none;pointer-events:auto;transition:transform .45s cubic-bezier(.3,1.5,.5,1) .2s,opacity .15s .2s}
.qc-pill{display:flex;align-items:center;height:calc(var(--u) * 40);padding:0 calc(var(--u) * 14);border-radius:8px;background:var(--qi);color:var(--qc);font-size:calc(var(--u) * 17);line-height:1;flex:none}
.qc-pill i{width:calc(var(--u) * 16);height:calc(var(--u) * 16);border-radius:50%;border:2.5px solid var(--qc);margin-right:calc(var(--u) * 7)}
.qc-pill i.on{background:var(--qc)}
.qc-pill span{margin-left:calc(var(--u) * 3)}
.qc-mid{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}
.qc-title{font-size:calc(var(--u) * 40);line-height:1.05;text-transform:uppercase;max-width:100%}
.qc-desc{width:85%;margin-top:calc(var(--u) * 14);font-size:calc(var(--u) * 16);line-height:1.3}
.qc-lock{display:flex;align-items:center;width:100%;flex:none}
.qc-lock b{flex:1;height:6px;border-radius:3px;background:var(--qi)}
.qc-lock svg{width:calc(var(--u) * 44);height:calc(var(--u) * 44);margin:0 calc(var(--u) * 14)}
.qc-min{margin-top:calc(var(--u) * 8);font-size:calc(var(--u) * 30);line-height:1.1}
.qc-steps{margin-top:calc(var(--u) * 4);font-size:calc(var(--u) * 20);line-height:1.1}
.qc-steps:empty{display:none}

/* a text that types itself in, once: its letters wait unseen in place, so nothing moves */
.ch{visibility:hidden}
.ch.on{visibility:visible}
/* a small thing that pops in at its turn (js); without js it is simply there */
.js [data-pop]{opacity:0;scale:.6;transition:scale .25s cubic-bezier(.34,1.56,.64,1),opacity .12s}
.js [data-pop].on{opacity:1;scale:1}
/* under the box (which ends 1.065 of the stage's width down), over the stage's empty foot */
.tap-hint{position:absolute;left:-20%;right:-20%;top:calc(var(--w) * 1.11);text-align:center;pointer-events:none;font-family:var(--pie);font-size:1.15rem;line-height:1.2;color:rgba(255,255,255,.5);transition:opacity .3s}
.tap-hint.off{opacity:0}

/* the lock card, in the quest card's place and a little wider than the stage; it comes and goes as the quest
   card does. It waits until the quest card has gone (its .16s exit), so the two are never on screen together.
   The card alone is centred on the stage (so, side by side, on the headline); the free-app-blocker pill
   hangs just under it and does not count in the centring. Sizes from LockCard on a 370pt-wide card (--k = 1pt). */
.lc-wrap{position:absolute;left:50%;top:50%;
  opacity:0;transform:translate(-50%,-50%) scale(.5);pointer-events:none;transition:transform .16s ease-in,opacity .12s}
.stage.lc-on .lc-wrap{opacity:1;transform:translate(-50%,-50%);pointer-events:auto;transition:transform .45s cubic-bezier(.3,1.5,.5,1) .2s,opacity .15s .2s}
.lc{--cw:calc(var(--w) * 1.12);--k:calc(var(--cw) / 370);position:relative;flex:none;width:var(--cw);overflow:hidden;text-align:left;color:var(--white);
  background:var(--purple);border:3px solid var(--white);border-radius:calc(var(--k) * 26)}
.lc-in{padding:calc(var(--k) * 16) calc(var(--k) * 140) calc(var(--k) * 16) calc(var(--k) * 18)}
.lc-top{font-family:var(--pie);font-size:calc(var(--k) * 15);line-height:1.2;white-space:nowrap}
.lc-time{font-family:var(--pie);font-size:calc(var(--k) * 44);line-height:1.15;margin-top:2px;white-space:nowrap}
.lc-until{font-weight:700;font-size:calc(var(--k) * 12);line-height:1.3;white-space:nowrap}
.lc-bar{height:4px;border-radius:2px;background:#BEA1FF;margin-top:calc(var(--k) * 8)}
.lc-bar b{display:block;height:100%;border-radius:2px;background:var(--white);transition:width 1s linear}
.lc-m{position:absolute;right:calc(var(--k) * -26);top:50%;height:calc(var(--k) * 134);width:auto;max-width:none;transform:translateY(calc(-50% - 2px)) rotate(-14deg)}
.stage .lc-perk{position:absolute;top:100%;left:50%;translate:-50% 0;margin-top:8px;white-space:nowrap;opacity:0;scale:.6;transition:scale .14s ease-in,opacity .12s}
.stage.lc-on .lc-perk{opacity:1;scale:1;transition:scale .25s cubic-bezier(.34,1.56,.64,1) .65s,opacity .12s .65s}

/* one entrance for every picture: it slides in from the side once (.here, set by js when its place
   comes on screen) and stays. From the right; on wide desktop a picture in the left column comes from the left. */
.js .slide{opacity:0;translate:100vw 0;transition:translate .7s cubic-bezier(.2,1.1,.4,1),opacity .2s}
.js .slide.here{opacity:1;translate:0 0}
.js .ya-face.slide{transition:translate .7s cubic-bezier(.2,1.1,.4,1),transform .35s cubic-bezier(.4,0,.6,1),opacity .35s,left .35s,top .35s,width .35s}

/* bridge: an ordinary part that scrolls by; js turns --page from black to purple as it comes up. The side
   quest part above wears it too, so the whole screen turns at once, with no edge between the two. */
.s.quest,.s.bridge{background:var(--page,var(--black))}
.s.ev{background:var(--page,var(--purple))}
.bridge h2{font-size:clamp(2.2rem,10.4vw,4.2rem);white-space:nowrap}
/* TOGETU thinking, then the question under him; the question's second break is phones-only */
.br-m{order:1}
.br-q{order:2;margin-top:20px}
@media (min-width:700px){br.ph{display:none}.br-q{margin:28px 0 0}}
@media (min-width:700px) and (max-width:1099px){.s.bridge h2{font-size:6vw}}
.br-m{--bm:min(84vw,420px,48svh);width:var(--bm);aspect-ratio:1;flex:none;margin:0}
/* phones: the animation's frame is empty for its top 13%, so it is pulled up by that much and the pair
   is centred on what is drawn */
@media (max-width:699px){.br-m{margin-top:calc(var(--bm) * -.13)}}

/* sraz + yes list on level 2 purple */
.ev,.yes{background:var(--purple)}
.ev{text-align:left;align-items:stretch;padding-bottom:24px}
.ev-cover{position:relative;height:min(40svh,340px);margin:0 -10px}
/* each sticker's place has the app's one shape (event.js); the picture keeps its own proportions inside it */
.ev-cover img{position:absolute;display:block;object-fit:contain}
/* changing sraz: each face leaves and each new one pops in on its own, one after another (js sets .off) */
.ev-cover img{transition:scale .2s cubic-bezier(.34,1.56,.64,1),opacity .12s}
.ev-cover img.off{opacity:0;scale:.5;transition:scale .14s ease-in,opacity .12s}
.ev-info{padding:10px 2px 0}
.ev-count{font-family:var(--pie);font-size:26px;line-height:1.1}
.ev-bar{display:flex;margin:8px -2px 0}
.ev-bar i{flex:1;height:8px;margin:0 2px;border-radius:4px;background:rgba(255,255,255,.3)}
.ev-bar i.on{background:var(--white)}

/* "detaily": the phone over the darkened, blurred page */
.chain{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.62);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.chain[hidden]{display:none}
.chain-phone{position:relative;display:flex;flex-direction:column;width:min(86vw,340px);height:min(86svh,680px);padding:18px 0 18px;overflow:hidden;border:3px solid var(--white);border-radius:44px;
  /* the hangout chat's black night sky: a few fixed stars */
  background:radial-gradient(circle,#F1E6FF 1px,transparent 1.6px) 12% 9%/1px 1px no-repeat,var(--black);
  animation:chain-in .3s cubic-bezier(.2,.9,.3,1)}
.chain-phone:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.8;
  background-image:radial-gradient(circle,#F1E6FF 1.1px,transparent 1.7px),radial-gradient(circle,#F1E6FF .8px,transparent 1.4px);
  background-size:113px 137px,71px 89px;background-position:17px 23px,41px 61px}
@keyframes chain-in{from{opacity:0;transform:translateY(40px) scale(.94)}to{opacity:1;transform:none}}
.chain-x{position:absolute;z-index:1;top:18px;right:24px;font-family:var(--pie);font-size:24px;line-height:1;color:var(--white);padding:4px}
.chat-title{position:relative;flex:none;min-height:1.2em;padding:8px 46px 10px;font-family:var(--pie);font-size:18px;line-height:1.2;white-space:nowrap;text-align:center;color:var(--white)}
.chat-list{position:relative;flex:1;min-height:0;text-align:left}
/* a message waits unseen in its place, so nothing moves when it is posted */
.chat-list .cm{opacity:0;translate:0 8px;transition:opacity .16s,translate .2s cubic-bezier(.2,.9,.3,1)}
.chat-list .cm.on{opacity:1;translate:0 0}
/* TOGETU's block (chat_message_bubble.dart): bubbles on the right, his label over them, his face beside the first */
.cb{display:flex;align-items:flex-start;padding-left:25px}
.cb-col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-end}
.cb-name{padding:9px 8px 1px 7px;font-family:var(--pie);font-size:17px;line-height:1.2;color:var(--purple)}
.cb-face{flex:none;width:60px;aspect-ratio:297/263;object-fit:contain;margin:0 5px}
.bub{max-width:100%;margin-top:3px;padding:6px 8px;border:1.4px solid var(--white);border-radius:14px;font-weight:600;font-size:15px;line-height:1.3;color:var(--white);background:var(--black)}
.bub--big{font-family:var(--pie);font-weight:normal;font-size:17px;line-height:1.15;color:var(--purple)}
/* the crewmate who closes: face on the left, then the bubble */
.cb--mate{padding:10px 25px 0 3px;align-items:flex-end}
.cb--mate .cb-face{width:55px;aspect-ratio:576/530;margin:0 6px 0 0}
.cb--mate .cb-col{align-items:flex-start}
.cb--mate .cb-name{color:var(--white);padding-left:7px}
/* the chat's input (chat_page.dart _buildInputArea): the white field and the mail send button, dim as
   it is while the field is empty; neither works. At the end the field says where to tap. */
.chat-bar{position:relative;flex:none;display:flex;align-items:center;margin:8px 8px 0 18px}
.chat-field{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;height:44px;border-radius:24px;background:var(--white);color:var(--black);font-family:var(--pie);font-size:20px;line-height:1}
.chat-send{flex:none;width:46px;height:46px;margin:0 6px 0 8px;color:var(--white);opacity:.4}
.chat-field.end{cursor:pointer;animation:bar-pulse .7s ease-in-out infinite alternate}
@keyframes bar-pulse{to{transform:scale(1.05)}}
@media (prefers-reduced-motion:reduce){.chat-field.end{animation:none}}
@media (prefers-reduced-motion:reduce){.chain-phone{animation:none}}
.ev-places{font-family:var(--pie);font-size:14px;opacity:.8;margin-top:6px}
.ev-perk,.lc-perk{display:inline-block;margin-top:14px;font-family:var(--pie);font-size:15px;color:var(--black);background:var(--green);border:2.5px solid var(--black);border-radius:999px;padding:.35em .9em .3em}
.ev-title{--tf:clamp(2.4rem,12vw,3.8rem);white-space:pre-line;font-size:calc(var(--tf) * var(--ts,1))!important;margin-top:10px;min-height:calc(var(--tf) * 2.2)}
/* the "NESCROLLUJ / UŽ TOLIK" line: its break is in the text; a little smaller, so its long word stays
   clear of the edges on a phone (its room stays the same); it flashes orange, the invitation green */
.ev-title.one{font-size:calc(var(--tf) * .86)!important;white-space:pre-line;--gl:var(--orange)}
/* the invitation glitches for as long as it is on: after the live site's twitch (website/site/css/style.css)
   - hard jolts and skews in discrete steps, blue and black splits - but quicker; the words flash a colour
   (--gl: the perk tag's green, or "scroll time"'s orange) and black between white */
.ev-title.glitch{animation:twitch .5s steps(1,end) infinite}
@keyframes twitch{
  0%,100%{transform:none;text-shadow:none}
  8%{transform:translate(-4px,2px) rotate(-2deg) skewX(-6deg);color:var(--gl,var(--green));text-shadow:5px 0 #3A39FF,-5px 0 var(--black)}
  16%{transform:translate(4px,-2px) skewX(8deg);text-shadow:none}
  24%{transform:translate(-2px,3px) rotate(1.5deg);text-shadow:-6px 0 #3A39FF,6px 0 var(--black)}
  32%{transform:translate(3px,1px) skewX(-10deg);color:var(--black);text-shadow:-4px 0 #3A39FF}
  40%{transform:none;text-shadow:none}
  56%{transform:translate(2px,-3px) rotate(1.2deg) skewX(6deg);text-shadow:-4px 0 #3A39FF,4px 0 var(--black)}
  64%{transform:translate(-3px,2px);color:var(--gl,var(--green));text-shadow:3px 0 var(--black)}
  72%{transform:translate(3px,-2px) rotate(-1.5deg);color:var(--black);text-shadow:-5px 0 #3A39FF,5px 0 var(--white)}
  80%{transform:translate(-1px,2px);text-shadow:none}
  88%{transform:none}
}
@media (prefers-reduced-motion:reduce){.ev-title.glitch{animation:none}}
.ev-when-row{display:flex;align-items:flex-end;justify-content:space-between;margin-top:12px}
.ev-when{font-family:var(--pie);font-size:20px;line-height:1.1}
.ev-place{font-family:var(--pie);font-size:14px;opacity:.8}
/* "detaily": a button, so it looks like one (a white-outlined pill), and once it is in it hops every few
   seconds like the side quest box does, the page's one "tap me" sign. Its hop is smaller than the box's. */
.ev-more{flex:none;margin-left:12px;padding:7px 14px 10px;border:2.5px solid var(--white);border-radius:999px;font-family:var(--pie);font-size:15px;line-height:1;color:var(--white);white-space:nowrap;cursor:pointer}
.ev-more.on{animation:hop-s 3s 1.5s infinite}
@keyframes hop-s{0%,72%,100%{transform:none}78%{transform:translateY(-7px) rotate(-3deg)}84%{transform:none}90%{transform:translateY(-4px) rotate(2deg)}96%{transform:none}}
@media (prefers-reduced-motion:reduce){.ev-more.on{animation:none}}
.ev .pbtn{display:block;margin:24px auto 0}
.ev-rule{font-family:var(--pie);font-size:15px;text-align:center;opacity:.8;margin-top:10px}
.yes{margin-top:-1px;padding-top:40px}
.ya{display:flex;flex-direction:column;align-items:center;margin-top:80px}
/* the portrait's frame: one size for every face (each picture fitted inside it, standing on its bottom
   edge), so the name and the buttons under it never move from face to face. After a jo it becomes the
   courtyard (.ya--yard): js seats the one who said jo back and the others as the app seats them. The
   faces' paint order (their depth, up to 100) stays inside this box, so the top bar is always over them. */
.ya-crowd{--cw:min(54vw,220px);position:relative;isolation:isolate;width:var(--cw);height:var(--cw);flex:none;transition:width .35s,height .35s}
.ya-face{position:absolute;left:0;top:0;width:100%;height:auto;aspect-ratio:1;object-fit:contain;object-position:center bottom;
  transition:transform .35s cubic-bezier(.4,0,.6,1),opacity .35s,left .35s,top .35s,width .35s}
.ya-face.out-l{transform:translateX(-70vw) rotate(-14deg);opacity:0}
.ya-face.in{animation:pop .45s cubic-bezier(.34,1.56,.64,1) both}
@keyframes pop{from{opacity:0;scale:.85}to{opacity:1;scale:1}}
/* the courtyard's box: as wide as --yw and 1.15 as tall, the app's cluster (community_crowd.dart) */
.ya--yard .ya-crowd{--yw:min(84vw,340px);width:var(--yw);height:calc(var(--yw) * 1.15)}
.ya--yard .ya-face{aspect-ratio:auto;object-position:center;transition:left .4s,top .4s,width .4s,height .4s,rotate .4s}
.ya-more{position:absolute;object-fit:contain;transition:scale .2s cubic-bezier(.34,1.56,.64,1),opacity .15s}
.ya-more.off{opacity:0!important;scale:.5}
.ya-name{font-family:var(--pie);font-size:32px;line-height:1;margin-top:8px}
.ya-btns{display:flex;gap:12px;margin-top:14px}
.ya-secret{font-family:var(--pie);font-size:15px;opacity:.85;margin-top:14px}
/* how it turned out: the answers' controls go, the button (a match) or "znovu" (nobody) comes. The button
   and its note take their room, unseen, as the courtyard comes, so the faces never move when they appear. */
.ya-want,.ya-again{display:none}
.ya--match .ya-btns,.ya--match .ya-secret,.ya--none .ya-btns,.ya--none .ya-crowd,.ya--none .ya-secret{display:none}
.ya--match .ya-name,.ya--none .ya-name{font-size:clamp(20px,6.4vw,28px);line-height:1.05;text-align:center}
/* nobody: the line and "znovu" sit in the middle of the room the answers took (js keeps its height) */
.ya--none{justify-content:center}
.ya--yard .ya-want{display:block;margin-top:18px;visibility:hidden}
.ya--done .ya-want{visibility:visible;animation:pop .45s cubic-bezier(.34,1.56,.64,1) both}
/* under the button: what the yes list is for, on one line that stays narrower than the button above it
   (the narrowest phone's button is 300px wide) */
.ya-easy{display:none;font-family:var(--pie);font-size:17px;line-height:1.25;text-align:center;white-space:nowrap;opacity:.8;margin-top:10px}
.ya--yard .ya-easy{display:block;visibility:hidden}
.ya--done .ya-easy{visibility:visible}
.ya--none .ya-again{display:block;margin-top:14px;font-family:var(--pie);font-size:15px;color:rgba(255,255,255,.75)}

/* last: the app's stats page, as the app draws it: PiePie, white on black, labels at half strength,
   tiles a faint white, the week's bars the one accent. The bars grow and the tiles pop once it has slid in. */
.stats{width:min(88vw,380px);flex:none;text-align:left;font-family:var(--pie);color:var(--white);line-height:1}
.st-row{display:flex;justify-content:space-between;gap:12px}
.st-lab{font-size:15px;color:rgba(255,255,255,.5)}
.st-big{font-size:52px;margin-top:12px;white-space:nowrap}
.st-sub{font-size:15px;margin-top:4px}
.st-bars{display:flex;justify-content:space-between;align-items:flex-end;height:clamp(96px,16svh,150px);margin-top:28px}
.st-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}
.st-day i{display:block;width:26px;height:8px;border-radius:7px;background:var(--purple);transition:height .5s cubic-bezier(.2,.9,.3,1) calc(.25s + var(--i) * 50ms)}
.stats.here .st-day i{height:max(8px,calc((100% - 23px) * var(--v)))}
.st-day b{font-weight:normal;font-size:13px;margin-top:10px;color:rgba(255,255,255,.5)}
.st-day--now b{color:var(--white)}
.st-all{display:block;margin-top:32px}
.st-tile{flex:1;min-width:0;height:96px;padding:14px 16px 8px;border-radius:16px;background:rgba(255,255,255,.08);margin-top:10px}
.st-all + .st-tile,.st-all + .st-pair > .st-tile{margin-top:12px}
.st-pair{display:flex;gap:10px}
.st-num{display:flex;justify-content:space-between;align-items:baseline;font-size:32px;white-space:nowrap}
.st-num span{font-size:22px;color:rgba(255,255,255,.45)}
.st-cap{font-size:13px;line-height:1.2;margin-top:6px;color:rgba(255,255,255,.6)}
.js .st-tile{opacity:0;scale:.9;transition:scale .3s cubic-bezier(.34,1.56,.64,1) .7s,opacity .15s .7s}
.js .stats.here .st-tile{opacity:1;scale:1}
.st-wide{display:none}
.feed .txt{margin-top:64px}
.feed h2{font-size:clamp(2.2rem,10.4vw,5rem);white-space:nowrap}
.feed .pbtn{margin-top:40px}

.foot{background:var(--black);padding:44px 22px 40px;text-align:center}
.foot-wm{display:block;font-family:var(--pie);font-size:clamp(3rem,16vw,8rem);line-height:.9;text-decoration:none;color:var(--white)}
.foot-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px;margin-top:22px;font-weight:600}
.foot-links a{text-decoration:none}
.copy{margin-top:14px;font-size:.82rem;color:#8d8d8d}

/* tablet and small laptop: one column, bigger */
@media (min-width:700px){
  .s.hero{--sf:calc(var(--hf) * .348);--hs:calc(var(--hf) * .45);--sb:calc(var(--hf) * .72);--after:0px} /* the phone's +14px / +6px and --after are phone only */
  :root{--gap:88px;--slant:6vw}
  .s h2{font-size:clamp(3.2rem,7vw,5.2rem)}
  .line{font-size:1.25rem}
  .s.hero{--hf:min(9vw,7.6svh,6.4rem);--bh:clamp(60px,var(--hf) * 1.15,96px);--gmin:28px;
    --S:min(70vw,640px,(100svh - var(--rest) - 3 * var(--gmin)) / .888)}
  /* the last screen's button is the first screen's: the same sizes from the same numbers (--hf, --bh) */
  .s.feed{--hf:min(9vw,7.6svh,6.4rem);--bh:clamp(60px,var(--hf) * 1.15,96px)}
  .hero .pbtn,.feed .pbtn{--btnW:calc(var(--hf) * 7.05);height:calc(var(--bh) + 4px)}
  .hero .pbtn:before,.hero .pbtn-face,.feed .pbtn:before,.feed .pbtn-face{height:var(--bh);border-radius:999px}
  .hero .pbtn-face,.feed .pbtn-face{font-size:calc(var(--bh) * .38)}
  .stage{--w:min(46vw,380px)}
  .ev{padding-left:max(22px,calc((100% - 640px)/2));padding-right:max(22px,calc((100% - 640px)/2))}
}

/* first screen from 900px: mascot and line side by side, the pair centred on what is visible.
   He is lifted 15% so his face (not face plus hair) sits a touch above the middle of the words and button. */
@media (min-width:900px){
  .s.hero{--hf:min(5.4vw,13svh,6.4rem);--S:min(34vw,58svh,640px);--bh:clamp(60px,var(--hf) * .94,80px);flex-direction:row;justify-content:center;align-items:center;
    gap:4vw;height:auto;min-height:100svh;padding:40px 4vw;text-align:left}
  .hero-m{left:0;top:calc(var(--S) * -.15);clip-path:none}
  .hero-txt{display:block}
  .hero h1{margin-top:0}
  /* beside the mascot the small text is smaller against the line, about the button's width, and never under 14px */
  .s.hero{--sf:max(14px,calc(var(--hf) * .25));--hs:calc(var(--hf) * .34)}
  .s.feed{--hf:min(5.4vw,13svh,6.4rem);--bh:clamp(60px,var(--hf) * .94,80px)}
  .hero .pbtn,.feed .pbtn{--btnW:calc(var(--hf) * 5.2)}
  .hero .pbtn{margin-top:calc(var(--hf) * .5)}
  .hero .pbtn-face,.feed .pbtn-face{font-size:calc(var(--bh) * .36)}
}

/* wide desktop: two columns */
@media (min-width:1100px){
  .js .slide--l{translate:-100vw 0}
  /* desktop, bigger: the thinking TOGETU (left, the question right) and the sraz get a wider page */
  .s.bridge,.s.ev{padding-left:max(4vw,calc((100% - 1360px)/2));padding-right:max(4vw,calc((100% - 1360px)/2))}
  .s.bridge{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:4vw;align-content:center;text-align:left}
  .br-m{--bm:min(42vw,600px,72svh);grid-column:1;grid-row:1/3;justify-self:center}
  .br-q{grid-column:2;grid-row:1/3;align-self:center;margin:0}
  .br-q br.ph{display:inline}
  .ev-info{zoom:1.22}
  :root{--gap:100px;--btnW:340px}
  .s{padding-left:max(6vw,calc((100% - 1100px)/2));padding-right:max(6vw,calc((100% - 1100px)/2))}
  .quest,.yes,.feed{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:5vw;text-align:left}
  .s h2{font-size:min(4.6vw,5.4rem)}
  .line{margin-left:0}
  .quest .txt{grid-column:1;grid-row:1;text-align:left}
  .stage{--w:min(33vw,470px,56svh);grid-column:2;grid-row:1;justify-self:center;margin:0}
  .ev{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:5vw;align-items:center;padding-left:max(6vw,calc((100% - 1100px)/2));padding-right:max(6vw,calc((100% - 1100px)/2));padding-bottom:60px}
  .ev-cover{height:min(74svh,680px);margin:0}
  .ev .pbtn{margin:30px 0 0}.ev-rule{text-align:left;margin-left:60px}
  .yes .txt{grid-column:1;grid-row:1;text-align:left}.ya{grid-column:2;grid-row:1;margin:0}
  .ya-crowd{--cw:min(18vw,240px)}
  .ya--yard .ya-crowd{--yw:min(27vw,380px,38svh);margin-top:32px}
  .stats{justify-self:center;width:min(34vw,400px)}
  .st-tile.st-wide{display:block}.st-pair.st-wide{display:flex}.st-narrow{display:none}
  .feed .pbtn{margin-top:24px}
  .st-bars{height:clamp(80px,13svh,130px)}
  .feed .txt{margin-top:0}
  .feed .txt{text-align:left}
  .feed h2{font-size:min(5vw,5.6rem)}
}

@media (prefers-reduced-motion:reduce){.st-day i{transition:none}.st-tile{opacity:1!important;scale:none!important}.slide,[data-pop]{translate:none!important;scale:none!important;opacity:1!important}[data-sl]{translate:none!important;scale:none!important;rotate:none!important}.boxf,.kind-pic *{animation:none!important}}
.quest{padding-top:40px}
.stage{margin-top:0}
.quest .txt{margin-top:26px}
/* side by side, its column stops growing at 1100px of page while the shared headline size keeps growing:
   capped, so its longest line ("úplně sólo?") still fits on one line on the widest screens */
@media (min-width:1100px){.quest .txt{margin-top:0}.quest .txt h2{font-size:min(4.6vw,4.2rem)}}

/* AIR: every section is one full screen on its own, content centred, nothing from the next one peeks in */
.s{min-height:100svh;justify-content:center;padding-top:calc(var(--gap) + 20px);padding-bottom:calc(var(--gap) + 20px)}
.quest,.feed{padding-top:96px;padding-bottom:96px}
.cut{padding-top:calc(96px + var(--slant))}
.ev{padding-bottom:64px}
.yes{min-height:100svh;padding-top:64px;padding-bottom:calc(96px + var(--slant))}
.ev,.yes{justify-content:center}
/* phones: the yes list's headline sits a fixed 204px under the sraz's last line (64 of it is the sraz's own
   foot), not wherever centring puts it */
@media (max-width:699px){.yes{justify-content:flex-start;padding-top:140px}}
@media (min-width:1100px){
  .s{min-height:100vh}
  .ev{min-height:100vh}
}

/* one column (phones, tablets): the yes list's part keeps one size whatever is showing. Its lower block
   has the courtyard's room from the start (the courtyard, the line, the button, the note), with
   the question centred in it, so nothing below it moves when the answers, the match or the courtyard
   come and go; and more purple under it before the black. Side by side (from 1100px) the part is a
   full screen anyway. */
@media (max-width:1099px){
  .ya{min-height:calc(min(84vw,340px) * 1.15 + 176px);justify-content:center}
  .yes{padding-bottom:calc(150px + var(--slant))}
}

/* side by side (from 1100px): less foot under the yes list, so the courtyard, the button and its note
   fit one screen on a short window and the part does not grow when they come */
@media (min-width:1100px){.yes{padding-top:40px;padding-bottom:calc(40px + var(--slant))}}
