@font-face {
    font-family: "TTEV Creepster";
    src: url("fonts/creepster.woff2") format("woff2");
    font-display: swap;
}

.ttev-hw {
    --ttev-bg: #120c1c;
    --ttev-bg-2: #2a1745;
    --ttev-card: rgba(44, 30, 68, 0.85);
    --ttev-text: #f6efe6;
    --ttev-muted: #cbbde0;
    --ttev-orange: #ff7a1a;
    --ttev-orange-2: #ffb347;
    --ttev-green: #9dff57;
    --ttev-spooky: "TTEV Creepster", "Creepster", fantasy;

    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 2rem auto;
    padding: 3.5rem 1.25rem 3rem;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% -10%, #4a2375 0%, transparent 55%),
        radial-gradient(ellipse at 50% 110%, #3b1a12 0%, transparent 50%),
        linear-gradient(180deg, var(--ttev-bg-2), var(--ttev-bg) 60%);
    color: var(--ttev-text);
    font-family: inherit;
    line-height: 1.4;
}

.ttev-hw *,
.ttev-hw *::before,
.ttev-hw *::after {
    box-sizing: border-box;
}

.ttev-hw [hidden] {
    display: none !important;
}

.ttev-hw .ttev-hw__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.ttev-hw__campaign {
    text-align: center;
    color: var(--ttev-muted);
    margin: 0 auto 1rem;
}

.ttev-hw__privacy {
    font-size: 0.85rem;
    color: var(--ttev-muted);
    margin-top: 1rem;
}

/* Brew colours */
.ttev-brew-main { --brew-top: #c4ff6b; --brew-bottom: #2f9e2a; --brew-glow: rgba(157, 255, 87, 0.45); }
.ttev-brew-0 { --brew-top: #ffc36b; --brew-bottom: #e0561b; --brew-glow: rgba(255, 140, 50, 0.45); }
.ttev-brew-1 { --brew-top: #d6a3ff; --brew-bottom: #6d2bbf; --brew-glow: rgba(190, 120, 255, 0.45); }
.ttev-brew-2 { --brew-top: #8ff5ff; --brew-bottom: #1f7fae; --brew-glow: rgba(100, 220, 255, 0.45); }
.ttev-brew-3 { --brew-top: #ff9ed2; --brew-bottom: #c21f6c; --brew-glow: rgba(255, 110, 180, 0.45); }
.ttev-brew-4 { --brew-top: #fff27a; --brew-bottom: #c79a12; --brew-glow: rgba(255, 230, 90, 0.45); }
.ttev-brew-5 { --brew-top: #b5ffd9; --brew-bottom: #1b9e6e; --brew-glow: rgba(90, 255, 180, 0.45); }

/* ---------- Sky ---------- */
.ttev-hw__sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.ttev-hw__stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 25% 8%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 40% 30%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 62% 12%, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 78% 26%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 90% 6%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 5% 45%, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 95% 40%, #fff 50%, transparent 51%);
    opacity: 0.7;
    animation: ttev-twinkle 4s ease-in-out infinite alternate;
}

@keyframes ttev-twinkle {
    from { opacity: 0.35; }
    to   { opacity: 0.85; }
}

.ttev-hw__moon {
    position: absolute;
    top: 28px;
    right: 7%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fffbe0, #ffe08a 70%);
    box-shadow: 0 0 60px 16px rgba(255, 224, 138, 0.25);
}

.ttev-hw__moon::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(200, 160, 60, 0.35);
    box-shadow: 22px 16px 0 -2px rgba(200, 160, 60, 0.3), 6px 30px 0 -4px rgba(200, 160, 60, 0.3);
}

.ttev-hw__bat {
    position: absolute;
    font-size: 22px;
    animation: ttev-fly 16s linear infinite;
    opacity: 0.85;
}
.ttev-hw__bat--1 { top: 50px; animation-delay: 0s; }
.ttev-hw__bat--2 { top: 110px; animation-delay: -6s; font-size: 16px; }
.ttev-hw__bat--3 { top: 24px; animation-delay: -11s; font-size: 18px; }

@keyframes ttev-fly {
    0%   { left: -8%; transform: translateY(0) scaleX(1); }
    25%  { transform: translateY(-16px) scaleX(0.8); }
    50%  { transform: translateY(10px) scaleX(1); }
    75%  { transform: translateY(-12px) scaleX(0.8); }
    100% { left: 108%; transform: translateY(0) scaleX(1); }
}

.ttev-hw__ghost {
    position: absolute;
    top: 38%;
    left: 3%;
    font-size: 42px;
    opacity: 0.55;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
    animation: ttev-haunt 9s ease-in-out infinite;
}

@keyframes ttev-haunt {
    0%, 100% { transform: translate(0, 0) rotate(-6deg); opacity: 0.25; }
    50%      { transform: translate(30px, -40px) rotate(6deg); opacity: 0.65; }
}

.ttev-hw__spider {
    position: absolute;
    top: 0;
    left: 16%;
    width: 1px;
    height: 90px;
    background: rgba(255, 255, 255, 0.35);
    transform-origin: top;
    animation: ttev-dangle 5s ease-in-out infinite;
}

.ttev-hw__spider span {
    position: absolute;
    bottom: -18px;
    left: -12px;
    font-size: 24px;
}

@keyframes ttev-dangle {
    0%, 100% { height: 70px; transform: rotate(4deg); }
    50%      { height: 120px; transform: rotate(-4deg); }
}

.ttev-hw__web {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    color: rgba(255, 255, 255, 0.18);
}

.ttev-hw__fog {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ttev-hw__fog span {
    position: absolute;
    bottom: -40px;
    left: -50%;
    width: 200%;
    height: 140px;
    background: radial-gradient(ellipse at center, rgba(200, 180, 255, 0.16), transparent 65%);
    filter: blur(8px);
    animation: ttev-fog 22s linear infinite;
}

.ttev-hw__fog span + span {
    bottom: -60px;
    animation-duration: 30s;
    animation-direction: reverse;
    opacity: 0.7;
}

@keyframes ttev-fog {
    from { transform: translateX(-10%); }
    to   { transform: translateX(10%); }
}

/* ---------- Header ---------- */
.ttev-hw__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.ttev-hw__title {
    margin: 0 0 0.6rem;
    color: var(--ttev-orange);
    font-family: var(--ttev-spooky);
    font-weight: 400;
    font-size: clamp(2.2rem, 6.5vw, 3.8rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-shadow: 0 0 22px rgba(255, 122, 26, 0.55), 0 4px 0 #5a1f00;
    animation: ttev-wobble 6s ease-in-out infinite;
}

@keyframes ttev-wobble {
    0%, 100% { transform: rotate(-1deg); }
    50%      { transform: rotate(1deg); }
}

.ttev-hw__intro {
    margin: 0;
    color: var(--ttev-muted);
    font-size: 1.1rem;
}

/* ---------- Layout ---------- */
.ttev-hw__stage {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 1.5fr) 1fr;
    grid-auto-flow: row dense;
    gap: 1.25rem;
    max-width: 1080px;
    margin: 0 auto;
}

.ttev-hw__main {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
}

/* ---------- Pots ---------- */
.ttev-hw__potwrap {
    position: relative;
    width: 100%;
}

.ttev-pot {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 0 22px var(--brew-glow));
}

.ttev-hw__main .ttev-pot {
    max-width: 380px;
    margin: 0 auto;
}

.ttev-pot__brew-top { stop-color: var(--brew-top); }
.ttev-pot__brew-bottom { stop-color: var(--brew-bottom); }

.ttev-pot__level {
    transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ttev-pot__wave {
    animation: ttev-wave 4s linear infinite;
}

@keyframes ttev-wave {
    from { transform: translateX(0); }
    to   { transform: translateX(160px); }
}

.ttev-pot__bubble {
    fill: rgba(255, 255, 255, 0.55);
    animation: ttev-bubble 3s ease-in infinite;
}
.ttev-pot__bubble:nth-of-type(2) { animation-delay: -1s; }
.ttev-pot__bubble:nth-of-type(3) { animation-delay: -2s; }
.ttev-pot__bubble:nth-of-type(4) { animation-delay: -0.5s; }

@keyframes ttev-bubble {
    0%   { transform: translateY(0); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(-80px); opacity: 0; }
}

.ttev-pot__flame {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: ttev-flicker 0.7s ease-in-out infinite alternate;
}
.ttev-pot__flame--1 { animation-delay: -0.3s; animation-duration: 0.8s; }
.ttev-pot__flame--3 { animation-delay: -0.6s; animation-duration: 0.6s; }
.ttev-pot__flame-outer { fill: #ff4a1a; opacity: 0.9; }
.ttev-pot__flame-mid   { fill: #ff8c1a; }
.ttev-pot__flame-core  { fill: #ffe08a; }

@keyframes ttev-flicker {
    0%   { transform: scale(1, 0.88) skewX(-5deg); }
    50%  { transform: scale(0.96, 1.06) skewX(2deg); }
    100% { transform: scale(1.03, 1.12) skewX(5deg); }
}

/* Firelight on the pot's belly. */
.ttev-pot__heat {
    animation: ttev-heat 1.3s ease-in-out infinite alternate;
}

@keyframes ttev-heat {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}

/* Glowing top of the front log. */
.ttev-pot__char {
    fill-opacity: 0.55;
    animation: ttev-heat 1.1s ease-in-out infinite alternate;
}

/* Sparks rising from the fire. */
.ttev-pot__spark {
    fill: #ffcf70;
    transform-box: fill-box;
    animation: ttev-spark 1.8s ease-out infinite;
}
.ttev-pot__spark:nth-of-type(2) { animation-delay: -0.6s; }
.ttev-pot__spark:nth-of-type(3) { animation-delay: -1.2s; }

@keyframes ttev-spark {
    0%   { transform: translate(0, 0); opacity: 0; }
    15%  { opacity: 1; }
    100% { transform: translate(6px, -46px); opacity: 0; }
}

/* Overflow: foam on top, drips down the front */
.ttev-pot__spill {
    opacity: 0;
    transition: opacity 0.6s;
}

.is-overflow .ttev-pot__spill {
    opacity: 1;
}

.ttev-pot__foam {
    transform-box: fill-box;
    transform-origin: center;
    animation: ttev-foam 1.6s ease-in-out infinite alternate;
}
.ttev-pot__foam:nth-of-type(2) { animation-delay: -0.4s; }
.ttev-pot__foam:nth-of-type(3) { animation-delay: -0.8s; }
.ttev-pot__foam:nth-of-type(4) { animation-delay: -1.2s; }

@keyframes ttev-foam {
    from { transform: scale(0.8) translateY(4px); }
    to   { transform: scale(1.1) translateY(-4px); }
}

.ttev-pot__drip {
    transform-box: fill-box;
    transform-origin: top;
    animation: ttev-drip 2.6s ease-in infinite;
}
.ttev-pot__drip--2 { animation-delay: -0.9s; }
.ttev-pot__drip--3 { animation-delay: -1.7s; }

@keyframes ttev-drip {
    0%   { transform: scaleY(0.2); }
    70%  { transform: scaleY(1); }
    100% { transform: scaleY(1.08); }
}

/* ---------- Main amount ---------- */
.ttev-hw__amount {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ttev-hw__total {
    display: inline-block;
    color: var(--ttev-green);
    font-size: clamp(2.4rem, 7vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 18px rgba(157, 255, 87, 0.5);
}

.ttev-hw__goal {
    color: var(--ttev-muted);
}

.ttev-hw__pct {
    margin-top: 0.35rem;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: rgba(157, 255, 87, 0.15);
    color: var(--ttev-green);
    font-weight: 800;
    font-size: 0.95rem;
}

.ttev-hw__extra:empty {
    display: none;
}

.ttev-hw__extra {
    margin-top: 0.4rem;
    color: var(--ttev-orange-2);
    font-weight: 800;
}

.ttev-hw__banner {
    position: absolute;
    top: -6px;
    left: 50%;
    z-index: 2;
    padding: 0.35rem 1rem;
    border-radius: 12px;
    background: var(--ttev-orange);
    color: #1a0f05;
    font-family: var(--ttev-spooky);
    font-size: 1.4rem;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(255, 122, 26, 0.5);
    transform: translateX(-50%) rotate(-4deg) scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ttev-hw__main.is-overflow .ttev-hw__banner {
    transform: translateX(-50%) rotate(-4deg) scale(1);
}

/* ---------- Product cards ---------- */
.ttev-hw__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.25rem 1rem 1rem;
    border: 2px solid color-mix(in srgb, var(--brew-bottom) 55%, transparent);
    border-radius: 22px 22px 22px 22px / 26px 26px 18px 18px;
    background: var(--ttev-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 30px color-mix(in srgb, var(--brew-bottom) 18%, transparent);
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.ttev-hw__item:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 26px var(--brew-glow);
}

.ttev-hw__item .ttev-hw__potwrap {
    max-width: 170px;
    margin-top: 0.5rem;
}

.ttev-hw__icon {
    position: absolute;
    top: -8px;
    left: 50%;
    z-index: 1;
    font-size: 2.3rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    animation: ttev-bob 2.8s ease-in-out infinite;
}

.ttev-hw__item:nth-child(odd) .ttev-hw__icon {
    animation-delay: -1.4s;
}

@keyframes ttev-bob {
    0%, 100% { transform: translate(-50%, 0) rotate(-8deg); }
    50%      { transform: translate(-50%, -10px) rotate(8deg); }
}

.ttev-hw__name {
    margin: 0.2rem 0 0;
    color: var(--brew-top);
    font-family: var(--ttev-spooky);
    font-weight: 400;
    font-size: 1.45rem;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.ttev-hw__meta {
    color: var(--ttev-muted);
    font-size: 0.95rem;
}

.ttev-hw__meta strong {
    color: var(--ttev-text);
    font-size: 1.15rem;
}

.ttev-hw__bar {
    width: 100%;
    max-width: 180px;
    height: 8px;
    margin: 0.2rem 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.ttev-hw__bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brew-bottom), var(--brew-top));
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ttev-hw__units {
    color: var(--ttev-text);
    font-weight: 700;
    font-size: 0.95rem;
}

.ttev-hw__next {
    min-height: 1.3em;
    color: var(--ttev-muted);
    font-size: 0.85rem;
}

.ttev-hw__item.is-overflow .ttev-hw__next {
    color: var(--brew-top);
    font-weight: 800;
}

/* ---------- Buttons ---------- */
.ttev-hw .ttev-hw__btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.55rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ttev-orange-2), var(--ttev-orange));
    color: #1a0f05;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 0 #a8430a, 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
}

/* Classic themes often style button:not(:hover):not(:active) and all link states. */
.ttev-hw button.ttev-hw__btn:not(:hover):not(:active),
.ttev-hw .ttev-hw__btn:link,
.ttev-hw .ttev-hw__btn:visited,
.ttev-hw .ttev-hw__btn:hover,
.ttev-hw .ttev-hw__btn:focus,
.ttev-hw .ttev-hw__btn:active,
.ttev-hw .ttev-hw__dialog a.ttev-hw__btn:link,
.ttev-hw .ttev-hw__dialog a.ttev-hw__btn:visited,
.ttev-hw .ttev-hw__dialog a.ttev-hw__btn:hover,
.ttev-hw .ttev-hw__dialog a.ttev-hw__btn:focus {
    color: #1a0f05;
    background: linear-gradient(180deg, var(--ttev-orange-2), var(--ttev-orange));
    text-decoration: none;
}

.ttev-hw .ttev-hw__btn:hover {
    filter: brightness(1.1);
}

.ttev-hw .ttev-hw__btn:focus-visible,
.ttev-hw .ttev-hw__dialog a.ttev-hw__btn:focus-visible,
.ttev-hw button.ttev-hw__copy:focus-visible,
.ttev-hw button.ttev-hw__close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.ttev-hw .ttev-hw__btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #a8430a, 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ttev-hw .ttev-hw__btn--big {
    padding: 0.8rem 1.7rem;
    font-size: 1.1rem;
}

/* ---------- Celebration ---------- */
.ttev-hw__burst {
    position: absolute;
    top: 30%;
    left: 50%;
    z-index: 3;
    font-size: 1.6rem;
    pointer-events: none;
    animation: ttev-burst 1.4s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}

@keyframes ttev-burst {
    0%   { transform: translate(-50%, 0) scale(0.4) rotate(0); opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1.1) rotate(var(--rot)); opacity: 0; }
}

.is-splash .ttev-pot {
    animation: ttev-glow 1.2s ease-out;
}

.is-splash [data-f="sum"] {
    display: inline-block;
    animation: ttev-pop 1.2s ease-out;
}

@keyframes ttev-glow {
    30% { filter: drop-shadow(0 0 50px var(--brew-top)); }
}

@keyframes ttev-pop {
    30% { transform: scale(1.3); }
}

/* ---------- Recent donors ---------- */
.ttev-hw__recent {
    max-width: 760px;
    margin: 2.5rem auto 0;
    text-align: center;
}

.ttev-hw__recent[hidden] {
    display: none;
}

.ttev-hw__recent h3 {
    margin: 0 0 0.75rem;
    color: var(--ttev-orange);
    font-family: var(--ttev-spooky);
    font-weight: 400;
    font-size: 1.7rem;
}

.ttev-hw__recent ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttev-hw__recent li {
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ttev-muted);
    font-size: 0.9rem;
    animation: ttev-in 0.5s ease-out both;
}

.ttev-hw__recent strong {
    color: var(--ttev-text);
}

/* Highest three donators: same pill shape, but visually highlighted so they
   stand out from the plain "latest donations" pills that follow them. */
.ttev-hw__recent li.ttev-hw__top-donor {
    border-color: var(--ttev-orange);
    background: linear-gradient(135deg, var(--ttev-orange-2), var(--ttev-orange));
    color: #2a1605;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(255, 122, 26, 0.45);
}

.ttev-hw__recent li.ttev-hw__top-donor strong {
    color: #2a1605;
}

@keyframes ttev-in {
    from { transform: translateY(8px) scale(0.9); opacity: 0; }
}

/* ---------- Dialog ---------- */
.ttev-hw__dialog {
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    border: 2px solid var(--ttev-orange);
    border-radius: 22px;
    background: linear-gradient(180deg, #2f1a4d, #1a1027);
    color: var(--ttev-text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 122, 26, 0.3);
}

.ttev-hw__dialog[open] {
    animation: ttev-pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ttev-pop-in {
    from { transform: scale(0.85); opacity: 0; }
}

.ttev-hw__dialog::backdrop {
    background: rgba(10, 5, 20, 0.75);
}

.ttev-hw__dialog-inner {
    position: relative;
    padding: 1.5rem;
    text-align: center;
}

.ttev-hw__dialog-icon {
    font-size: 3rem;
    line-height: 1;
}

.ttev-hw__dialog-title {
    margin: 0.25rem 0 1rem;
    color: var(--ttev-orange);
    font-family: var(--ttev-spooky);
    font-weight: 400;
    font-size: 2rem;
}

.ttev-hw button.ttev-hw__close,
.ttev-hw button.ttev-hw__close:not(:hover):not(:active) {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    border: 0;
    background: none;
    color: var(--ttev-muted);
    font-size: 1.6rem;
    cursor: pointer;
}

.ttev-hw__steps {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    text-align: left;
}

.ttev-hw__steps li {
    margin-bottom: 0.6rem;
}

.ttev-hw__steps li[hidden] {
    display: none;
}

.ttev-hw__steps strong {
    color: var(--ttev-orange-2);
}

.ttev-hw button.ttev-hw__copy,
.ttev-hw button.ttev-hw__copy:not(:hover):not(:active) {
    margin-left: 0.25rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--ttev-muted);
    border-radius: 6px;
    background: none;
    color: var(--ttev-muted);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

/* ---------- More motion ---------- */

/* Pots boil gently all the time. */
.ttev-pot {
    transform-origin: 50% 90%;
    animation: ttev-boil 2.4s ease-in-out infinite;
}

.ttev-hw__item:nth-child(even) .ttev-pot {
    animation-delay: -1.2s;
}

@keyframes ttev-boil {
    0%, 100% { transform: scale(1, 1); }
    50%      { transform: scale(1.012, 0.99); }
}

.is-splash .ttev-pot {
    animation: ttev-glow 1.2s ease-out, ttev-boil 2.4s ease-in-out infinite;
}

/* Wiggle on hover and when a donation lands. */
.ttev-hw__item:hover .ttev-hw__potwrap,
.is-splash > .ttev-hw__potwrap {
    animation: ttev-jiggle 0.7s ease-in-out;
}

@keyframes ttev-jiggle {
    0%, 100% { transform: rotate(0); }
    20%      { transform: rotate(-4deg) scale(1.03); }
    40%      { transform: rotate(3deg); }
    60%      { transform: rotate(-2deg); }
    80%      { transform: rotate(1deg); }
}

.ttev-hw__item:hover .ttev-hw__icon {
    animation: ttev-jump 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ttev-jump {
    0%   { transform: translate(-50%, 0) rotate(0); }
    40%  { transform: translate(-50%, -26px) rotate(-20deg) scale(1.15); }
    100% { transform: translate(-50%, 0) rotate(0); }
}

/* Spoon stirring the big pot. */
.ttev-pot__spoon {
    transform-box: view-box;
    transform-origin: 192px 138px;
    animation: ttev-stir 3.2s ease-in-out infinite alternate;
}

@keyframes ttev-stir {
    from { transform: rotate(-18deg) translateX(-10px); }
    to   { transform: rotate(14deg) translateX(10px); }
}

/* Steam. */
.ttev-hw__steam {
    position: absolute;
    top: 4%;
    left: 30%;
    width: 40%;
    height: 40%;
    pointer-events: none;
}

.ttev-hw__steam i {
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 30%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
    filter: blur(3px);
    opacity: 0;
    animation: ttev-steam 4.5s ease-out infinite;
}

.ttev-hw__steam i:nth-child(2) { left: 5%; animation-delay: -1.5s; }
.ttev-hw__steam i:nth-child(3) { left: 60%; animation-delay: -3s; }

@keyframes ttev-steam {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    20%  { opacity: 0.9; }
    100% { transform: translateY(-120%) translateX(10px) scale(1.8); opacity: 0; }
}

/* Glowing eyes in the dark. */
.ttev-hw__eyes {
    position: absolute;
    display: flex;
    gap: 7px;
    animation: ttev-lurk 9s ease-in-out infinite;
}

.ttev-hw__eyes i {
    width: 9px;
    height: 6px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: #ffe14d;
    box-shadow: 0 0 8px 2px rgba(255, 225, 77, 0.7);
    animation: ttev-blink 4s infinite;
}

.ttev-hw__eyes--1 { top: 55%; left: 2.5%; }
.ttev-hw__eyes--2 { top: 72%; right: 3%; animation-delay: -3s; }
.ttev-hw__eyes--3 { top: 30%; right: 18%; animation-delay: -6s; transform: scale(0.7); }
.ttev-hw__eyes--2 i { background: #9dff57; box-shadow: 0 0 8px 2px rgba(157, 255, 87, 0.7); animation-delay: -1.3s; }
.ttev-hw__eyes--3 i { background: #ff5a5a; box-shadow: 0 0 8px 2px rgba(255, 90, 90, 0.7); animation-delay: -2.6s; }

@keyframes ttev-blink {
    0%, 92%, 100% { transform: scaleY(1); }
    95%           { transform: scaleY(0.1); }
}

@keyframes ttev-lurk {
    0%, 100% { opacity: 0; }
    15%, 60% { opacity: 1; }
    75%      { opacity: 0; }
}

/* Witch flying by. */
.ttev-hw__witch {
    position: absolute;
    top: 14%;
    left: -12%;
    font-size: 44px;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.ttev-hw__witch b {
    position: absolute;
    left: -18px;
    bottom: -4px;
    font-size: 36px;
    font-weight: 400;
    transform: rotate(-30deg);
    z-index: -1;
}

.ttev-hw.is-witch .ttev-hw__witch {
    animation: ttev-witch 6s linear;
}

@keyframes ttev-witch {
    0%   { left: -12%; opacity: 1; transform: translateY(0) rotate(-6deg); }
    25%  { transform: translateY(-30px) rotate(4deg); }
    50%  { transform: translateY(20px) rotate(-6deg); }
    75%  { transform: translateY(-20px) rotate(4deg); }
    100% { left: 110%; opacity: 1; transform: translateY(0) rotate(-6deg); }
}

/* "Luna spendet 15 € für Hundefutter!" */
.ttev-hw__toast {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 5;
    max-width: calc(100% - 32px);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ttev-orange-2), var(--ttev-orange));
    color: #1a0f05;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -160%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
    pointer-events: none;
}

.ttev-hw.is-in-view .ttev-hw__toast.is-show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Something falls into the pot, then splashes. */
.ttev-hw__drop {
    position: absolute;
    top: -30%;
    left: 50%;
    z-index: 2;
    font-size: 2.4rem;
    pointer-events: none;
    animation: ttev-fall 0.75s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes ttev-fall {
    0%   { transform: translate(-50%, 0) rotate(-30deg) scale(1.1); opacity: 0; }
    15%  { opacity: 1; }
    100% { transform: translate(-50%, 180%) rotate(200deg) scale(0.6); opacity: 0; }
}

.ttev-hw__droplet {
    position: absolute;
    top: 38%;
    left: 50%;
    z-index: 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brew-top);
    box-shadow: 0 0 8px var(--brew-glow);
    pointer-events: none;
    animation: ttev-splash-drop 0.8s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}

@keyframes ttev-splash-drop {
    0%   { transform: translate(-50%, 0) scale(1); opacity: 1; }
    50%  { transform: translate(calc(-50% + var(--dx) * 0.7), calc(var(--dy) * 1)) scale(1); }
    100% { transform: translate(calc(-50% + var(--dx)), calc(var(--dy) * -0.2)) scale(0.3); opacity: 0; }
}

/* Cards pop in when they scroll into view (only with JS). */
.ttev-hw.is-js .ttev-hw__item {
    opacity: 0;
    transform: translateY(40px) scale(0.92) rotate(-2deg);
    transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.ttev-hw.is-js .ttev-hw__item.is-in {
    opacity: 1;
    transform: none;
}

.ttev-hw.is-js .ttev-hw__item.is-in:hover {
    transform: translateY(-5px) rotate(-1deg);
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
    .ttev-hw__stage {
        grid-template-columns: 1fr 1fr;
    }
    .ttev-hw__main {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    .ttev-hw {
        padding: 3rem 1rem 2rem;
        border-radius: 0;
    }
    .ttev-hw__stage {
        gap: 0.9rem;
    }
    .ttev-hw__item {
        padding: 1rem 0.6rem 0.9rem;
    }
    .ttev-hw__name {
        font-size: 1.2rem;
    }
    .ttev-hw__item .ttev-hw__btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .ttev-hw__units,
    .ttev-hw__meta {
        font-size: 0.85rem;
    }
    .ttev-hw__toast {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }
    .ttev-hw__moon {
        width: 48px;
        height: 48px;
    }
    .ttev-hw__web {
        width: 90px;
        height: 90px;
    }
}

/*
 * Less motion (e.g. Windows "Animation effects" off): keep the calm, small
 * animations inside the pots (brew, bubbles, fire, steam, drips, filling),
 * stop everything that flies, bounces or wobbles.
 */
@media (prefers-reduced-motion: reduce) {
    html:not(.ttev-motion-full) .ttev-hw__burst,
    html:not(.ttev-motion-full) .ttev-hw__drop,
    html:not(.ttev-motion-full) .ttev-hw__droplet,
    html:not(.ttev-motion-full) .ttev-hw__witch,
    html:not(.ttev-motion-full) .ttev-hw__bat,
    html:not(.ttev-motion-full) .ttev-hw__ghost {
        display: none;
    }
    html:not(.ttev-motion-full) .ttev-hw__title,
    html:not(.ttev-motion-full) .ttev-hw__icon,
    html:not(.ttev-motion-full) .ttev-hw__spider,
    html:not(.ttev-motion-full) .ttev-hw__fog span,
    html:not(.ttev-motion-full) .ttev-pot,
    html:not(.ttev-motion-full) .ttev-hw__item:hover .ttev-hw__potwrap,
    html:not(.ttev-motion-full) .is-splash > .ttev-hw__potwrap,
    html:not(.ttev-motion-full) .ttev-hw__item:hover .ttev-hw__icon,
    html:not(.ttev-motion-full) .ttev-hw__recent li,
    html:not(.ttev-motion-full) .ttev-hw__dialog[open] {
        animation: none;
    }
    html:not(.ttev-motion-full) .is-splash .ttev-pot {
        animation: ttev-glow 1.2s ease-out;
    }
    html:not(.ttev-motion-full) .ttev-hw__icon {
        transform: translateX(-50%);
    }
    html:not(.ttev-motion-full) .ttev-hw__item:hover,
    html:not(.ttev-motion-full) .ttev-hw.is-js .ttev-hw__item.is-in:hover {
        transform: none;
    }
    html:not(.ttev-motion-full) /* Cards fade in,
    html:not(.ttev-motion-full) but do not fly in. */
    .ttev-hw.is-js .ttev-hw__item {
        transform: none;
    }
}
