/*
 * Ohjepankki: haku (wwwroot/js/ohjehaku.js), etusivu (Partials/OhjepankkiEtusivu), aluesivun osiokortit
 * (Partials/OhjeOsioKortit) ja ohjesivun liittyvät ohjeet (Ohjedokkari). Tavallinen CSS (ei SCSS-käännöstä).
 * Värit: ShowUP #298197 / tumma #1B5563; korostus ilman lihavointia (väri, koko, Dosis-otsikot).
 */
:root {
    --ohje-showup: #298197;
    --ohje-showup-tumma: #1B5563;
    --ohje-teksti: #222;
    --ohje-himmea: #5f6b70;
    --ohje-reuna: #dbe7ea;
    --ohje-tausta: #f3f8f9;
}

/* ---------- ylävalikon Hae-nappi ---------- */

nav > ul li.ohjehaku-li {
    align-self: center;
}

.ohjehaku-avaa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding: 8px 16px;
    border: 1px solid var(--ohje-showup);
    border-radius: 9999px;
    background: white;
    color: var(--ohje-showup);
    font-family: 'Dosis', sans-serif;
    text-transform: uppercase;
    font-size: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.ohjehaku-avaa:hover {
    background: var(--ohje-showup);
    color: white;
}

@media screen and (max-width: 768px) {
    .ohjehaku-avaa {
        padding: 5px 7px;
        margin-left: 0;
        font-size: 12px;
    }

    nav > ul li.ohjehaku-li {
        flex-shrink: 1;
    }

    /* Hakunappi mahtuu riville: valikko saa kaventua ja linkkien sivupadding pienenee */
    nav > ul {
        flex: 0 1 auto;
        min-width: 0;
    }

    nav > ul li a {
        padding: 5px 8px;
    }

    /* Kapealla näytöllä tulosten kuvakesarake vie tilaa tekstiltä */
    .ohjehaku-tulos {
        padding: 12px 10px;
    }

    .ohjehaku-tulos .kuvake {
        display: none;
    }

    .ohjehaku-avaa span {
        display: none;
    }
}

/* ---------- hakukenttä ---------- */

.ohjehaku-kentta {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--ohje-reuna);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(27, 85, 99, 0.08);
    margin: 0;
}

.ohjehaku-kentta:focus-within {
    border-color: var(--ohje-showup);
    box-shadow: 0 0 0 3px rgba(41, 129, 151, 0.18);
}

.ohjehaku-kentta > i {
    position: absolute;
    left: 18px;
    color: var(--ohje-showup);
    font-size: 1.1em;
    pointer-events: none;
}

.ohjehaku-kentta .ohjehaku-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 14px 16px 14px 50px;
    font-size: 17px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: var(--ohje-teksti);
}

.ohjehaku-kentta.iso .ohjehaku-input {
    padding: 18px 16px 18px 54px;
    font-size: 19px;
}

.ohjehaku-kentta .ohjehaku-input::-webkit-search-cancel-button {
    display: none;
}

.ohjehaku-tyhjenna,
.ohjehaku-sulje {
    flex: 0 0 auto;
    margin-right: 10px;
    border: 0;
    background: var(--ohje-tausta);
    color: var(--ohje-himmea);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
}

.ohjehaku-tyhjenna:hover,
.ohjehaku-sulje:hover {
    color: var(--ohje-showup);
}

/* ---------- etusivun hero ---------- */

.ohjepankki-hero {
    padding: 30px 0 10px 0;
}

.ohjepankki-hero .container > * {
    max-width: 860px;
}

.ohjepankki-hero h1 {
    margin-bottom: 10px;
}

.ohjepankki-hero .ingressi {
    font-size: 1.1em;
    line-height: 1.5;
    color: var(--ohje-himmea);
    margin: 0 0 24px 0;
}

.ohjehaku-suositut {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.ohjehaku-suositut > span {
    color: var(--ohje-himmea);
    font-size: 0.9em;
    margin-right: 4px;
}

.ohjehaku-suositut button {
    border: 1px solid var(--ohje-reuna);
    background: white;
    color: var(--ohje-showup-tumma);
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 0.9em;
    font-weight: 300;
    cursor: pointer;
}

.ohjehaku-suositut button:hover {
    border-color: var(--ohje-showup);
    color: var(--ohje-showup);
}

/* ---------- hakutulokset ---------- */

.ohjehaku-tulokset:empty {
    display: none;
}

[data-ohjehaku="sivu"] .ohjehaku-tulokset {
    margin-top: 24px;
}

.ohjehaku-maara {
    color: var(--ohje-himmea);
    font-size: 0.9em;
    margin: 0 0 10px 4px;
}

.ohjehaku-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ohjehaku-tulos {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ohje-teksti);
    border: 1px solid transparent;
}

.ohjehaku-tulos:hover,
.ohjehaku-tulos.valittu,
.ohjehaku-osio.valittu {
    background: var(--ohje-tausta);
    border-color: var(--ohje-reuna);
    color: var(--ohje-teksti);
}

.ohjehaku-tulos .kuvake,
.ohjepankki-lista .kuvake,
.tuote-kortti .kuvake,
.aloitus-kortti .kuvake,
.osiokortti .kuvake {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--accent, #298197) 14%, white);
    color: var(--accent, #298197);
    font-size: 1.2em;
}

.ohjehaku-tulos .sisalto {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ohjehaku-tulos .polku,
.ohjepankki-lista .polku {
    font-size: 0.8em;
    color: var(--ohje-himmea);
    font-family: 'Dosis', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ohjehaku-tulos .polku .erotin {
    margin: 0 4px;
}

.ohjehaku-tulos .otsikko {
    font-size: 1.1em;
    color: var(--ohje-showup-tumma);
    font-weight: 400;
}

.ohjehaku-tulos .kuvaus,
.ohjehaku-tulos .ote {
    font-size: 0.92em;
    line-height: 1.45;
    color: var(--ohje-teksti);
}

.ohjehaku-tulos .ote {
    color: var(--ohje-himmea);
    font-style: italic;
}

.ohjehaku-tulos .merkki {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 9999px;
    background: var(--ohje-tausta);
    color: var(--ohje-showup);
    font-size: 0.7em;
    vertical-align: middle;
}

.ohjehaku-tulos .tagit {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.ohjehaku-tulos .tagit span {
    font-size: 0.75em;
    padding: 2px 10px;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--accent, #298197) 12%, white);
    color: var(--ohje-teksti);
}

.ohjehaku-tulokset mark {
    background: #fff1a8;
    color: inherit;
    padding: 0 1px;
    border-radius: 3px;
}

.ohjehaku-osiot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ohjehaku-osio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--ohje-reuna);
    text-decoration: none;
    color: var(--ohje-showup-tumma);
    background: white;
}

.ohjehaku-osio i {
    color: var(--accent);
}

.ohjehaku-osio small {
    color: var(--ohje-himmea);
}

.ohjehaku-tyhja {
    text-align: center;
    padding: 30px 10px;
    color: var(--ohje-himmea);
}

.ohjehaku-tyhja > i {
    font-size: 2em;
    color: var(--ohje-reuna);
    margin-bottom: 10px;
}

.ohjehaku-tyhja .hakusana {
    color: var(--ohje-showup-tumma);
}

.ohjehaku-tyhja .vihje {
    font-size: 0.9em;
    max-width: 520px;
    margin: 10px auto 0 auto;
    line-height: 1.5;
}

.ohjehaku-ohje {
    color: var(--ohje-himmea);
    padding: 10px 6px;
    margin: 0;
}

/* ---------- hakuikkuna ---------- */

html.ohjehaku-lukko {
    overflow: hidden;
}

.ohjehaku-ikkuna {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(17, 45, 52, 0.45);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 8vh 16px 16px 16px;
}

.ohjehaku-ikkuna.auki {
    display: flex;
}

.ohjehaku-paneeli {
    width: 100%;
    max-width: 760px;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.ohjehaku-paneeli .ohjehaku-kentta {
    border: 0;
    border-bottom: 1px solid var(--ohje-reuna);
    border-radius: 0;
    box-shadow: none;
}

.ohjehaku-paneeli .ohjehaku-tulokset {
    overflow-y: auto;
    padding: 14px;
}

@media screen and (max-width: 768px) {
    .ohjehaku-ikkuna {
        padding: 0;
    }

    .ohjehaku-paneeli {
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
    }
}

/* ---------- etusivun osat ---------- */

.ohjepankki-osa {
    padding-top: 30px;
}

.ohjepankki-osa h2 {
    margin-bottom: 20px;
}

.ohjepankki-aloitus {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.aloitus-kortti {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--ohje-reuna);
    background: white;
    text-decoration: none;
    color: var(--ohje-teksti);
    border-top: 4px solid var(--accent);
}

.aloitus-kortti:hover {
    box-shadow: 0 6px 20px rgba(27, 85, 99, 0.12);
    color: var(--ohje-teksti);
}

.aloitus-kortti .otsikko {
    font-family: 'Dosis', sans-serif;
    text-transform: uppercase;
    font-size: 1.3em;
    color: var(--ohje-showup-tumma);
}

.aloitus-kortti .teksti {
    line-height: 1.5;
    flex: 1 1 auto;
}

.aloitus-kortti .linkki {
    /* Pillerinappi kuten Palvelut-sivun korteissa (myyntiosiot.css .myynti-kortti__linkki); koko kortti on linkki */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px 20px;
    border: 1px solid var(--ohje-showup-tumma);
    border-radius: 999px;
    color: var(--ohje-showup-tumma);
    line-height: 1.2;
    transition: background-color .15s, color .15s;
}

.aloitus-kortti:hover .linkki {
    background: var(--ohje-showup-tumma);
    color: #fff;
}

.ohjepankki-tuotteet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.tuote-kortti {
    display: flex;
    gap: 16px;
    padding: 18px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--ohje-reuna);
    text-decoration: none;
    color: var(--ohje-teksti);
}

.tuote-kortti:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(27, 85, 99, 0.1);
    color: var(--ohje-teksti);
}

.tuote-kortti .sisalto {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tuote-kortti .otsikko {
    font-family: 'Dosis', sans-serif;
    text-transform: uppercase;
    font-size: 1.1em;
    color: var(--ohje-showup-tumma);
    line-height: 1.25;
}

.tuote-kortti .kuvaus {
    font-size: 0.9em;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tuote-kortti .maara {
    font-size: 0.8em;
    color: var(--accent);
}

.ohjepankki-kaksi {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

.ohjepankki-kaksi > .ohjepankki-osa {
    min-width: 0;
}

@media screen and (max-width: 900px) {
    .ohjepankki-kaksi {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.ohjepankki-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ohjepankki-lista li {
    padding: 0;
    margin: 0;
}

.ohjepankki-lista li:before {
    display: none !important;
}

.ohjepankki-lista a {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ohje-teksti);
}

.ohjepankki-lista a:hover {
    background: var(--ohje-tausta);
    color: var(--ohje-teksti);
}

.ohjepankki-lista .kuvake {
    width: 36px;
    height: 36px;
    font-size: 1em;
}

.ohjepankki-lista .sisalto {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ohjepankki-lista .otsikko {
    color: var(--ohje-showup-tumma);
}

.ohjepankki-lista .kuvaus {
    font-size: 0.85em;
    line-height: 1.4;
    color: var(--ohje-himmea);
}

.ohjepankki-lista.paivitykset .kuvake {
    --accent: #e14988;
}

.ohjepankki-yhteys {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 26px 28px;
    border-radius: 16px;
    background: var(--ohje-tausta);
    border: 1px solid var(--ohje-reuna);
}

.ohjepankki-yhteys > i {
    font-size: 2.2em;
    color: var(--ohje-showup);
}

.ohjepankki-yhteys h2 {
    margin: 0 0 10px 0;
}

.ohjepankki-yhteys p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.ohjepankki-yhteys a {
    color: var(--ohje-showup);
}

/* ---------- aluesivun osiokortit ---------- */

.ohje-osiokortit {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.osiokortti {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--ohje-reuna);
    border-top: 4px solid var(--accent);
}

.osiokortti-otsikko {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.osiokortti-otsikko .otsikko {
    font-family: 'Dosis', sans-serif;
    text-transform: uppercase;
    font-size: 1.15em;
    line-height: 1.25;
    color: var(--ohje-showup-tumma);
}

.osiokortti .kuvaus {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.45;
    color: var(--ohje-himmea);
}

.osiokortti ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
}

.osiokortti li {
    padding: 0;
    margin: 0;
}

.osiokortti li a {
    display: inline-block;
    padding: 4px 0;
    color: var(--ohje-teksti);
    text-decoration: none;
    line-height: 1.35;
}

.osiokortti li a:hover {
    color: var(--accent);
}

.osiokortti li.alaosio a i {
    color: var(--accent);
    margin-right: 4px;
}

.osiokortti li .video {
    color: var(--ohje-himmea);
    font-size: 0.8em;
    margin-left: 6px;
}

.osiokortti .kaikki {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--ohje-showup-tumma);
    border-radius: 999px;
    color: var(--ohje-showup-tumma);
    text-decoration: none;
    line-height: 1.2;
    transition: background-color .15s, color .15s;
}

.osiokortti .kaikki:hover {
    background: var(--ohje-showup-tumma);
    color: #fff;
}

/* Avainsanat linkkeinä (osion ohjelista) */
.child-page-maximal .tags a.tag {
    text-decoration: none;
}

/* ---------- ohjesivun jatko ---------- */

.ohje-jatko {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding-top: 20px !important;
}

.ohje-jatko h4 a {
    color: var(--ohje-showup);
    text-decoration: none;
}

/* Block gridin lapsisivut-tyylit (.grid-layout .layout-item .childpages ul = 6-sarakkeinen ruudukko, li-pallukka)
   osuvat myös osiokorttien listoihin → ohitetaan tarkemmalla valitsimella */
.grid-layout .layout-item .childpages .ohje-osiokortit .osiokortti ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
}

.grid-layout .layout-item .childpages .ohje-osiokortit .osiokortti li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.grid-layout .layout-item .childpages .ohje-osiokortit .osiokortti li:before,
.grid-layout .layout-item .childpages .ohje-osiokortit .osiokortti li:after {
    display: none;
    content: none;
}

/* ─── Willy (Views/Partials/Willy.cshtml) ─────────────────────────────────
   Kirjaston taikasauva-avustajan perusasento staattisena SVG:nä. Liike vain CSS:llä:
   leijuu, keinuu, räpyttelee ja vilkuilee, oikea käsi vilkuttaa välillä; hiiren alla taikoo. */

.ohjepankki-hero .container {
    position: relative;
}

.willy {
    position: absolute;
    top: 0;
    right: 40px;
    width: 190px;
    height: 190px;
    max-width: none;
}

.willy svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.willy-varsi { fill: #212529; }
.willy-kiilto { fill: #fff; opacity: 0.16; }

.willy-karki,
.willy-kasi {
    fill: #fff;
    stroke: #212529;
    stroke-linejoin: round;
}
.willy-karki { stroke-width: 1.6; }
.willy-kasi { stroke-width: 1.3; }

.willy-valkuainen { fill: #fff; stroke: #212529; stroke-width: 1.3; }
.willy-pupilli circle { fill: #212529; }
.willy-pupilli .valo { fill: #fff; }
.willy-poski { fill: rgba(255, 105, 140, 0.45); opacity: 0; transition: opacity 0.3s; }
.willy-varjo { fill: rgba(0, 0, 0, 0.12); transform-origin: 50px 99px; animation: willy-varjo 3.6s ease-in-out infinite; }

.willy-leijunta { animation: willy-leiju 3.6s ease-in-out infinite; }
.willy-keho { transform-origin: 50px 96px; animation: willy-keinu 5s ease-in-out infinite; }
.willy-leuka { transform-origin: -9px 0; animation: willy-hengitys 3.4s ease-in-out infinite; }
.willy-silma { animation: willy-rapsays 4.7s infinite; }
.willy-pupilli { animation: willy-katse 13s ease-in-out infinite; }

/* Käsi: perusasento roikkuu (ranne kohti olkapäätä), leijuu; .willy-ele lisää eleen päälle */
.willy-kasi { transform: rotate(-120deg); animation: willy-kasi 2.8s ease-in-out infinite; }
.willy-ele.oikea .willy-kasi { animation-delay: -1.4s; }
.willy-ele.oikea { animation: willy-vilkutus 11s ease-in-out infinite 2s; }

.willy-taika .kaari {
    fill: none;
    stroke: #c9a4f2;
    stroke-width: 4.5;
    stroke-linecap: round;
    transform-origin: 50px 50px;
    opacity: 0;
}
.willy-taika .tahti { fill: #f6b41a; transform: scale(0); }

/* Hiiren alla: tehdään taikoja (kirjaston happy-moodi) */
.willy:hover .willy-keho { animation: willy-hyppy 0.9s ease-in-out infinite; }
.willy:hover .willy-leuka { animation: willy-puhe 0.7s ease-in-out infinite; }
.willy:hover .willy-ele { animation: willy-taikakadet 0.45s ease-in-out infinite alternate; }
.willy:hover .willy-ele.oikea { animation-delay: -0.22s; }
.willy:hover .willy-poski { opacity: 1; }
.willy:hover .willy-taika .kaari { animation: willy-kaari 1.6s ease-out infinite; }
.willy:hover .willy-taika .kaari:nth-child(2) { animation-delay: 0.18s; }
.willy:hover .willy-taika .kaari:nth-child(3) { animation-delay: 0.36s; }
.willy:hover .willy-taika .kaari:nth-child(4) { animation-delay: 0.54s; }
.willy:hover .willy-taika .tahti { animation: willy-tuike 1.4s ease-in-out infinite; }
.willy:hover .willy-taika g:nth-child(6) .tahti { animation-delay: 0.23s; }
.willy:hover .willy-taika g:nth-child(7) .tahti { animation-delay: 0.46s; }
.willy:hover .willy-taika g:nth-child(8) .tahti { animation-delay: 0.69s; }

@keyframes willy-leiju { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes willy-varjo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.62); opacity: 0.45; } }
@keyframes willy-keinu { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@keyframes willy-hengitys { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.9px); } }
@keyframes willy-rapsays { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }

@keyframes willy-katse {
    0%, 18%, 52%, 70%, 100% { transform: translate(0, 0); }
    22%, 34% { transform: translate(-2px, 0.3px); }
    56%, 64% { transform: translate(1.6px, -1.8px); }
}

@keyframes willy-kasi {
    0%, 100% { transform: rotate(-120deg); }
    35% { transform: translate(1px, -3px) rotate(-110deg); }
    70% { transform: translate(-0.5px, -1px) rotate(-124deg); }
}

/* Vilkutus: käsi nousee (-120° → -52°) ja heiluu kolmesti, sitten takaisin alas */
@keyframes willy-vilkutus {
    0%, 62%, 100% { transform: translate(0, 0) rotate(0); }
    68% { transform: translate(4px, -20px) rotate(50deg); }
    72% { transform: translate(4px, -21px) rotate(86deg); }
    76% { transform: translate(4px, -20px) rotate(50deg); }
    80% { transform: translate(4px, -21px) rotate(86deg); }
    84% { transform: translate(4px, -20px) rotate(50deg); }
    88% { transform: translate(4px, -21px) rotate(80deg); }
    94% { transform: translate(0, 0) rotate(0); }
}

@keyframes willy-taikakadet {
    from { transform: translate(4px, -20px) rotate(50deg); }
    to { transform: translate(4px, -22px) rotate(86deg); }
}

@keyframes willy-hyppy {
    0%, 100% { transform: translateY(0) rotate(0); }
    40% { transform: translateY(-6px) rotate(-3deg); }
    60% { transform: translateY(-6px) rotate(3deg); }
}

@keyframes willy-puhe {
    0%, 30%, 62%, 100% { transform: translateY(0) rotate(0); }
    12% { transform: translateY(-2.5px) rotate(-6deg); }
    46% { transform: translateY(-1.5px) rotate(-3deg); }
    78% { transform: translateY(-3.5px) rotate(-8deg); }
}

@keyframes willy-kaari {
    0% { opacity: 0; transform: scale(0.85) rotate(-10deg); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.1) rotate(20deg); }
}

@keyframes willy-tuike {
    0%, 100% { transform: scale(0) rotate(0); }
    50% { transform: scale(1) rotate(45deg); }
}

@media screen and (max-width: 1100px) {
    .willy { width: 140px; height: 140px; right: 0; }
}

@media screen and (max-width: 900px) {
    .willy { width: 72px; height: 72px; top: -10px; right: 0; }
    .ohjepankki-hero h1 { padding-right: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .willy * { animation: none !important; }
}
