/* Echo welcome (v1.0.1): rides on the genie welcome's page rules (genie-intro.css: gi-on / gi-pre / gi-still / gi-out),
   with its own screen, words and language portals. */
html.gi-on .gi-screen.ec-screen, html.gi-out .gi-screen.ec-screen {
    background: radial-gradient(60% 50% at 50% 34%, rgba(var(--ec-main, 246, 182, 72), .07), transparent 70%), radial-gradient(ellipse at 50% 40%, #0a0c18 0%, #04050b 60%, #010103 100%);
    color: #f3efe6; display: block; transition: opacity 1s cubic-bezier(.4, 0, .2, 1);
}
.ec-rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
html.gi-on .gi-junior.ec-face, html.gi-out .gi-junior.ec-face, html.gi-hold .gi-junior.ec-face {
    margin: 0; transform-origin: 50% 50%; z-index: 2147483001; transition: none; }  /* v1.0.1: no filter here: it was redrawn on every frame of the face and made the welcome stutter */
.gi-junior.ec-face { display: none; }

.ec-board { position: absolute; left: 50%; top: var(--ec-board-top, 66vh); transform: translateX(-50%); z-index: 3; width: min(92vw, 940px); text-align: center;
    font-size: clamp(22px, 2.7vw, 40px); font-weight: 800; line-height: 1.45; letter-spacing: -.005em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .9); transition: opacity .32s ease, transform .4s ease; }
.ec-board.is-out { opacity: 0; transform: translateX(-50%) translateY(-6px); }
.ec-line { display: block; }
.ec-word { display: inline-block; opacity: 0; transform: translateY(.18em); transition: opacity .2s ease, transform .4s cubic-bezier(.2, .9, .25, 1.15), color .5s, text-shadow .5s; unicode-bidi: isolate; }
.ec-word.is-in { opacity: 1; transform: none; }
.ec-word.is-now { color: rgb(var(--ec-hot, 255, 244, 218)); text-shadow: 0 0 22px rgba(var(--ec-main, 246, 182, 72), .75), 0 2px 18px rgba(0, 0, 0, .9); }

.ec-ask { display: grid; gap: .1em; margin-bottom: .55em; }
.ec-ask span { display: block; min-height: 1.3em; }
.ec-ask span[lang=en] { font-size: .55em; font-weight: 700; color: rgba(var(--ec-main, 246, 182, 72), .9); letter-spacing: .02em; }
.ec-nudge { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: .55em; font-size: .42em; font-weight: 800; color: rgb(var(--ec-eye, 56, 217, 255)); text-shadow: 0 0 14px rgba(var(--ec-eye, 56, 217, 255), .5); }

/* the language portals: rings of changing glyphs around one big letter */
.ec-portals { display: flex; justify-content: center; gap: clamp(26px, 5vw, 70px); }
.ec-portal { --s: clamp(104px, 10vw, 136px); position: relative; width: var(--s); height: var(--s); border-radius: 50%; border: 0; padding: 0; cursor: pointer; color: #fff; font: inherit;
    background: radial-gradient(circle, rgba(var(--ec-main, 246, 182, 72), .16), rgba(4, 5, 11, .92) 62%); display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 0 1px rgba(var(--ec-main, 246, 182, 72), .3), 0 0 34px rgba(var(--ec-main, 246, 182, 72), .14), inset 0 0 26px rgba(var(--ec-main, 246, 182, 72), .14);
    animation: ecPortalIn .8s cubic-bezier(.2, .9, .3, 1.2) backwards; animation-delay: var(--d, 0ms);
    transition: transform .45s cubic-bezier(.2, .9, .3, 1.25), box-shadow .4s ease; }
.ec-portal[data-l=en] { --ec-main: var(--ec-eye, 56, 217, 255); }
.ec-portal b { position: relative; z-index: 1; font-size: calc(var(--s) * .36); font-weight: 900; line-height: 1; color: rgb(var(--ec-hot, 255, 244, 218));
    text-shadow: 0 0 14px rgba(var(--ec-main, 246, 182, 72), 1), 0 0 34px rgba(var(--ec-main, 246, 182, 72), .7); transition: text-shadow .4s, transform .45s; }
.ec-portal[data-l=en] b { font-family: Georgia, 'Times New Roman', serif; }
.ec-portal em { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: clamp(14px, 1.2vw, 17px); font-weight: 900;
    color: rgb(var(--ec-main, 246, 182, 72)); text-shadow: 0 0 12px rgba(var(--ec-main, 246, 182, 72), .5); letter-spacing: .02em; transition: letter-spacing .4s; }
.ec-ring { position: absolute; inset: 0; border-radius: 50%; animation: ecSpin 16s linear infinite; pointer-events: none; }
.ec-ring i { position: absolute; left: 50%; top: 50%; width: 1em; margin: -.5em 0 0 -.5em; font-style: normal; font-size: calc(var(--s) * .1); font-weight: 800; line-height: 1; text-align: center;
    color: rgba(var(--ec-main, 246, 182, 72), .75); transform: rotate(calc(var(--i) * 16.36deg)) translateY(calc(var(--s) * -.43)); }
.ec-ring.is-in { inset: 16%; animation-direction: reverse; animation-duration: 11s; opacity: 0; transition: opacity .4s; }
.ec-ring.is-in i { font-size: calc(var(--s) * .075); transform: rotate(calc(var(--i) * 16.36deg)) translateY(calc(var(--s) * -.3)); color: rgba(var(--ec-hot, 255, 244, 218), .7); }
.ec-portal:hover, .ec-portal.is-hot { transform: scale(1.1); box-shadow: 0 0 0 1px rgba(var(--ec-main, 246, 182, 72), .7), 0 0 60px rgba(var(--ec-main, 246, 182, 72), .45), inset 0 0 40px rgba(var(--ec-main, 246, 182, 72), .35); }
.ec-portal:hover .ec-ring.is-in, .ec-portal.is-hot .ec-ring.is-in { opacity: 1; }
.ec-portal:hover b, .ec-portal.is-hot b { text-shadow: 0 0 18px #fff, 0 0 46px rgba(var(--ec-main, 246, 182, 72), 1); }
.ec-portal:hover em, .ec-portal.is-hot em { letter-spacing: .08em; }
.ec-portal.is-guess:not(:hover):not(.is-hot) { animation: ecPortalIn .8s cubic-bezier(.2, .9, .3, 1.2) backwards, ecBreath 2.6s ease-in-out infinite 1.4s; animation-delay: var(--d, 0ms), 1.4s; }
.ec-portal:focus { outline: none; }
.ec-portal:focus-visible em { outline: 2px solid rgba(var(--ec-main, 246, 182, 72), .8); outline-offset: 4px; border-radius: 6px; }
.ec-portals.is-nudge .ec-portal { animation: ecNudge .7s cubic-bezier(.3, 1.4, .5, 1) 2; }
.ec-portals.is-done .ec-portal { pointer-events: none; }
.ec-portals.is-done .ec-portal:not(.is-picked) { opacity: 0; transform: scale(.7); transition: opacity .35s, transform .4s; }
.ec-portal.is-picked { animation: ecPicked .7s cubic-bezier(.2, .9, .3, 1.3) forwards; }
@keyframes ecSpin { to { transform: rotate(360deg); } }
@keyframes ecPortalIn { from { opacity: 0; transform: scale(.4); filter: blur(6px); } }
@keyframes ecBreath { 0%, 100% { box-shadow: 0 0 0 1px rgba(var(--ec-main, 246, 182, 72), .3), 0 0 34px rgba(var(--ec-main, 246, 182, 72), .14), inset 0 0 26px rgba(var(--ec-main, 246, 182, 72), .14); }
    50% { box-shadow: 0 0 0 1px rgba(var(--ec-main, 246, 182, 72), .55), 0 0 54px rgba(var(--ec-main, 246, 182, 72), .32), inset 0 0 34px rgba(var(--ec-main, 246, 182, 72), .26); } }
@keyframes ecNudge { 0%, 100% { transform: none; } 40% { transform: translateY(-14px) scale(1.06); } 70% { transform: translateY(0) scale(.98); } }
@keyframes ecPicked { 40% { transform: scale(1.3); filter: brightness(1.8); } to { transform: scale(1.18); filter: brightness(1.3); } }
@media (max-width: 700px) { .ec-board { font-size: clamp(19px, 5.6vw, 26px); } .ec-portals { gap: 30px; } }
