@font-face{font-family:Bebas;src:url('/assets/BebasNeue-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
:root{color-scheme:dark;background:#111a13;color:#eeeedd;--acid:#d7f45d}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;width:100%}body{overflow-x:hidden}button{font:inherit}
.world{position:relative;isolation:isolate;width:100%;height:100svh;min-height:420px;overflow:hidden;background:#111a13}
.scene{position:absolute;inset:-1.8%;z-index:-4;transition:filter 1s ease}
.scene picture{display:block;width:100%;height:100%}.scene img{display:block;width:100%;height:100%;object-fit:cover;object-position:64% 48%}
.shade{position:absolute;inset:0;z-index:-3;background:linear-gradient(90deg,rgba(3,10,7,.26),transparent 57%),linear-gradient(0deg,rgba(5,12,7,.24),transparent 35%);pointer-events:none}
.light{position:absolute;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(ellipse 38vw 40vh at 50% 50%,#d7f4110a,transparent 70%);mix-blend-mode:screen;transition:opacity .4s}
.grain{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E");mix-blend-mode:soft-light}
h1{position:absolute;left:5.5%;top:50%;transform:translateY(-45%);display:flex;flex-direction:column;align-items:flex-start;gap:.01em;margin:0;font-family:Bebas,Impact,'Arial Narrow',sans-serif;font-size:clamp(90px,10.8vw,230px);font-weight:400;line-height:.85;letter-spacing:-.012em}
.word{position:relative;display:block;width:max-content;max-width:100%;padding:.035em .025em .025em 0;border:0;background:none;color:inherit;line-height:inherit;letter-spacing:inherit;text-align:left;cursor:pointer;transform-origin:left center;text-shadow:0 4px 35px #06110b66;transition:color .25s,transform .35s cubic-bezier(.2,.8,.2,1),text-shadow .25s;animation:arrive 1.2s cubic-bezier(.2,.8,.2,1) both}
.word:nth-child(1){color:#e7edcc;animation-delay:.06s}.word:nth-child(2){color:var(--acid);animation-delay:.16s}.word:nth-child(3){animation-delay:.26s}
.word::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:2px;background:currentColor;transform:scaleX(0);transform-origin:left;opacity:.6;transition:transform .35s}
.word:focus-visible{outline:2px solid var(--acid);outline-offset:6px}.word:focus-visible::after,.word:hover::after{transform:scaleX(1)}
@media(hover:hover){.word:hover{transform:translateX(.06em) rotate(-1deg);color:#fff;text-shadow:3px 3px 0 #87a12c66,0 0 35px #c9f13533}}
.world[data-mood="torumees"] .scene{filter:hue-rotate(17deg) saturate(1.35)}
.world[data-mood="kirjanik"] .scene{filter:hue-rotate(-24deg) saturate(.7) contrast(1.1)}
.world.pulse .light{animation:flash .8s ease-out}
::selection{background:#d7f45d;color:#111a13}
@keyframes arrive{from{opacity:0;translate:0 25px;filter:blur(7px)}to{opacity:1;translate:0 0;filter:blur(0)}}
@keyframes flash{0%{opacity:1;filter:brightness(4)}100%{opacity:1;filter:brightness(1)}}
@media(min-aspect-ratio:2/1){h1{font-size:min(12vw,20vh);left:7%}.scene img{object-position:60% 40%}}
@media(max-width:700px) and (orientation:portrait){
 .world{height:100svh;min-height:480px}.scene{inset:0;transform:none;will-change:auto}.scene img{object-position:50% 25%}
 .shade{background:linear-gradient(0deg,#07100880 0%,#07100820 31%,transparent 51%)}
 h1{top:auto;left:7%;right:5%;bottom:max(5.5%,calc(env(safe-area-inset-bottom) + 14px));transform:none;font-size:clamp(60px,min(26vw,12svh),112px);line-height:.86;gap:.015em}
 .word:nth-child(1){color:#eeeedd}.light{background:none}
}
@media(max-height:500px) and (orientation:landscape){.world{min-height:280px}h1{font-size:18vh;left:5%;transform:translateY(-40%)}.scene img{object-position:63% 35%}}
@media(prefers-reduced-motion:reduce){.scene{transform:none;will-change:auto}.word{animation:none;transition:color .2s}.word:hover{transform:none}.world.pulse .light{animation:none}}

.duck{position:absolute;z-index:3;display:grid;place-items:center;width:var(--duck-size,44px);height:var(--duck-size,44px);padding:0;border:0;border-radius:50%;background:transparent;transform:translate(-50%,-50%);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.duck[hidden]{display:none}.duck:focus-visible{outline:2px dashed var(--acid);outline-offset:4px}
.duck-ring{position:absolute;inset:9%;border:2px solid #eef6ad;border-radius:50%;opacity:0;pointer-events:none}
.duckling{position:absolute;left:44%;top:41%;width:18px;height:11px;border-radius:48% 55% 48% 48%;background:#f8d83f;box-shadow:0 2px 5px #10150880;opacity:0;pointer-events:none;--dx:-70px;--dy:-75px;--angle:-24deg}
.duckling::before{content:'';position:absolute;width:9px;height:10px;right:1px;top:-7px;border-radius:50%;background:radial-gradient(circle at 65% 35%,#192110 0 1px,transparent 1.5px),#ffe361}
.duckling::after{content:'';position:absolute;width:6px;height:3px;right:-4px;top:-3px;border-radius:50%;background:#fa9d2c}
.duckling:nth-of-type(4){--dx:-35px;--dy:-110px;--angle:12deg;animation-delay:80ms!important}
.duckling:nth-of-type(5){--dx:15px;--dy:-125px;--angle:-12deg;animation-delay:150ms!important}
.duckling:nth-of-type(6){--dx:60px;--dy:-94px;--angle:23deg;animation-delay:220ms!important}
.duckling:nth-of-type(7){--dx:85px;--dy:-45px;--angle:-18deg;animation-delay:290ms!important}
.duck.is-playing .duckling{animation:duck-hop 1.4s cubic-bezier(.25,.7,.3,1) both}
.duck.is-playing .duck-ring{animation:duck-ripple 1.2s ease-out both}
.duck.is-playing .duck-ring.second{animation-delay:.18s}
@keyframes duck-hop{0%{opacity:0;transform:translate(0,0) scale(.2) rotate(0)}12%{opacity:1}44%{opacity:1;transform:translate(var(--dx),var(--dy)) scale(1.25) rotate(var(--angle))}75%{opacity:1;transform:translate(calc(var(--dx)*.6),-15px) scale(.9) rotate(-8deg)}100%{opacity:0;transform:translate(0,5px) scale(.1) rotate(0)}}
@keyframes duck-ripple{0%{opacity:0;transform:scale(.4) rotateX(45deg)}15%{opacity:.9}100%{opacity:0;transform:scale(2.8) rotateX(45deg)}}
@media(prefers-reduced-motion:reduce){.duck.is-playing .duckling{animation:none}.duck.is-playing .duck-ring{animation:duck-glow .7s ease-out both}.duck.is-playing .duck-ring.second{animation:none}}
@keyframes duck-glow{0%,100%{opacity:0}40%{opacity:.85}}
@media(max-width:700px) and (orientation:portrait){
 .duckling{--dx:30px;--dy:45px;--angle:18deg}
 .duckling:nth-of-type(4){--dx:55px;--dy:85px;--angle:-14deg}
 .duckling:nth-of-type(5){--dx:90px;--dy:110px;--angle:20deg}
 .duckling:nth-of-type(6){--dx:120px;--dy:80px;--angle:-12deg}
 .duckling:nth-of-type(7){--dx:145px;--dy:35px;--angle:25deg}
}
