/* Cozy layer: own drawings only, shared by every page. Decorative; hidden in print. cozy.js picks the season and holiday. */
.wrap{position:relative;z-index:1}
h1{display:flex;align-items:center;gap:.5em}
h1::before{content:"";flex:none;width:1.25em;height:1.25em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3CclipPath id='c'%3E%3Crect width='48' height='48' rx='14'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='48' height='48' fill='%231f2b5e'/%3E%3Cpath d='M35 8 Q36.4 11.6 40 13 Q36.4 14.4 35 18 Q33.6 14.4 30 13 Q33.6 11.6 35 8Z' fill='%23ffe7a0' opacity='1'/%3E%3Cpath d='M12 7.5 Q12.7 9.3 14.5 10 Q12.7 10.7 12 12.5 Q11.3 10.7 9.5 10 Q11.3 9.3 12 7.5Z' fill='%23ffe7a0' opacity='0.8'/%3E%3Cpath d='M0 40 Q24 30 48 39 V48 H0Z' fill='%23eef3ff'/%3E%3Cg transform='translate(22 42) scale(0.5)'%3E%3Crect x='-3' y='-10' width='6' height='12' rx='2' fill='%235b3b2a'/%3E%3Cpath d='M0 -34 L26 -8 Q0 -1 -26 -8Z' fill='%231f6a5f' stroke='%231f6a5f' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -35 L11.7 -22.3 Q5.2 -25.4 0 -21.0 Q-5.2 -25.4 -11.7 -22.3Z' fill='%23f4f7ff' stroke='%23f4f7ff' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M0 -52 L21 -26 Q0 -19 -21 -26Z' fill='%2335a08a' stroke='%2335a08a' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -53 L9.5 -40.3 Q4.2 -43.4 0 -39.0 Q-4.2 -43.4 -9.5 -40.3Z' fill='%23f4f7ff' stroke='%23f4f7ff' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M0 -68 L15 -44 Q0 -37 -15 -44Z' fill='%231f6a5f' stroke='%231f6a5f' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -69 L6.8 -57.2 Q3.0 -60.1 0 -56.0 Q-3.0 -60.1 -6.8 -57.2Z' fill='%23f4f7ff' stroke='%23f4f7ff' stroke-width='3' stroke-linejoin='round'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
h1 a{display:inline-block}
body::after{content:"";display:block;height:clamp(130px,19vw,230px);margin-top:-8px;background:url(/season/winter.svg) center bottom/cover no-repeat;pointer-events:none}
html[data-scene=spring] body::after{background-image:url(/season/spring.svg)}
html[data-scene=summer] body::after{background-image:url(/season/summer.svg)}
html[data-scene=autumn] body::after{background-image:url(/season/autumn.svg)}
html[data-scene=halloween] body::after{background-image:url(/season/halloween.svg)}
html[data-scene=independence] body::after{background-image:url(/season/independence.svg)}
html[data-scene=christmas] body::after{background-image:url(/season/christmas.svg)}
html[data-scene=newyear] body::after{background-image:url(/season/newyear.svg)}
html[data-scene=valentine] body::after{background-image:url(/season/valentine.svg)}
html[data-scene=easter] body::after{background-image:url(/season/easter.svg)}
html[data-scene=vappu] body::after{background-image:url(/season/vappu.svg)}
html[data-scene=midsummer] body::after{background-image:url(/season/midsummer.svg)}
html[data-season=spring] h1::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3CclipPath id='c'%3E%3Crect width='48' height='48' rx='14'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='48' height='48' fill='%233f6fb0'/%3E%3Ccircle cx='35' cy='13' r='6' fill='%23fff1c2'/%3E%3Cpath d='M0 40 Q24 30 48 39 V48 H0Z' fill='%2386b56a'/%3E%3Cg transform='translate(22 42) scale(0.5)'%3E%3Cpath d='M0 -40 L-14 -62 M0 -46 L13 -66 M0 -52 L-6 -74 M0 -30 L16 -46 M0 -34 L-17 -44' stroke='%23d8d6cc' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='-14' cy='-62' r='3' fill='%23c8ec8a'/%3E%3Ccircle cx='13' cy='-66' r='3' fill='%23c8ec8a'/%3E%3Ccircle cx='-6' cy='-74' r='3' fill='%23c8ec8a'/%3E%3Ccircle cx='16' cy='-46' r='3' fill='%23c8ec8a'/%3E%3Ccircle cx='-17' cy='-44' r='3' fill='%23c8ec8a'/%3E%3Ccircle cx='-8' cy='-52' r='3' fill='%23c8ec8a'/%3E%3Ccircle cx='7' cy='-56' r='3' fill='%23c8ec8a'/%3E%3Ccircle cx='3' cy='-66' r='3' fill='%23c8ec8a'/%3E%3Ccircle cx='10' cy='-40' r='3' fill='%23c8ec8a'/%3E%3Ccircle cx='-10' cy='-38' r='3' fill='%23c8ec8a'/%3E%3Crect x='-3' y='-50' width='6' height='52' rx='2.5' fill='%23f3f2ea'/%3E%3Cpath d='M-3 -38h4M-1 -26h4M-3 -14h3M0 -4h3' stroke='%234a4a52' stroke-width='1.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
html[data-season=spring] body{background-image:radial-gradient(120% 60% at 20% -10%,rgba(143,196,255,.17),transparent 60%),radial-gradient(90% 50% at 90% 0%,rgba(255,176,196,.15),transparent 60%)}
html[data-season=summer] h1::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3CclipPath id='c'%3E%3Crect width='48' height='48' rx='14'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='48' height='48' fill='%23f29a5a'/%3E%3Ccircle cx='35' cy='14' r='7' fill='%23fff0b8'/%3E%3Cpath d='M0 40 Q24 30 48 39 V48 H0Z' fill='%234f9a5c'/%3E%3Cg transform='translate(22 42) scale(0.5)'%3E%3Crect x='-3' y='-10' width='6' height='12' rx='2' fill='%235b3b2a'/%3E%3Cpath d='M0 -34 L26 -8 Q0 -1 -26 -8Z' fill='%231f6a5f' stroke='%231f6a5f' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -52 L21 -26 Q0 -19 -21 -26Z' fill='%2335a08a' stroke='%2335a08a' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -68 L15 -44 Q0 -37 -15 -44Z' fill='%231f6a5f' stroke='%231f6a5f' stroke-width='4' stroke-linejoin='round'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
html[data-season=summer] body{background-image:radial-gradient(120% 60% at 20% -10%,rgba(255,190,110,.20),transparent 60%),radial-gradient(90% 50% at 90% 0%,rgba(120,190,255,.18),transparent 60%)}
html[data-season=autumn] h1::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3CclipPath id='c'%3E%3Crect width='48' height='48' rx='14'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='48' height='48' fill='%234a2f6e'/%3E%3Cpath d='M36 7.5 Q37.26 10.74 40.5 12 Q37.26 13.26 36 16.5 Q34.74 13.26 31.5 12 Q34.74 10.74 36 7.5Z' fill='%23ffe7a0' opacity='1'/%3E%3Cellipse cx='10' cy='16' rx='4' ry='2.2' fill='%23f0a13a' transform='rotate(-30 10 16)'/%3E%3Cpath d='M0 40 Q24 30 48 39 V48 H0Z' fill='%23c98a3a'/%3E%3Cg transform='translate(22 42) scale(0.5)'%3E%3Crect x='-3' y='-50' width='6' height='52' rx='2.5' fill='%23f3f2ea'/%3E%3Cpath d='M-3 -38h4M-1 -26h4M-3 -14h3M0 -4h3' stroke='%234a4a52' stroke-width='1.6'/%3E%3Ccircle cx='-12' cy='-48' r='13' fill='%23e2632f'/%3E%3Ccircle cx='12' cy='-47' r='13' fill='%23f5c84a'/%3E%3Ccircle cx='0' cy='-60' r='17' fill='%23f0a13a'/%3E%3Ccircle cx='-5' cy='-42' r='9' fill='%23f0a13a'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
html[data-season=autumn] body{background-image:radial-gradient(120% 60% at 20% -10%,rgba(255,140,60,.17),transparent 60%),radial-gradient(90% 50% at 90% 0%,rgba(190,90,160,.17),transparent 60%)}
.card,.panel{border-radius:18px}
button.btn,select,input[type=text],textarea{border-radius:12px}
.win{background-image:radial-gradient(circle at 92% 18%,rgba(255,231,160,.20),transparent 34%)}
.wrap>div:has(>h2[data-t=title]){min-height:92px;padding-right:160px;background:right center/140px auto no-repeat;display:flex;flex-direction:column;justify-content:center;gap:4px}
body.mk-puz .wrap>div:has(>h2[data-t=title]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 120'%3E%3Cg transform='rotate(-6 70 62)'%3E%3Crect x='22' y='12' width='92' height='100' rx='8' fill='%23f4f7ff'/%3E%3Cg fill='none' stroke='%23b7c3e6' stroke-width='2'%3E%3Cpath d='M34 26h68v68h-68zM51 26v68M68 26v68M85 26v68M34 43h68M34 60h68M34 77h68'/%3E%3C/g%3E%3Crect x='34' y='43' width='68' height='17' rx='8' fill='%236fe3c1' opacity='.55'/%3E%3Cg fill='%2327336a' font-family='Arial' font-weight='700' font-size='11' text-anchor='middle'%3E%3Ctext x='42.5' y='56'%3EL%3C/text%3E%3Ctext x='59.5' y='56'%3EU%3C/text%3E%3Ctext x='76.5' y='56'%3EM%3C/text%3E%3Ctext x='93.5' y='56'%3EI%3C/text%3E%3Ctext x='42.5' y='39'%3EK%3C/text%3E%3Ctext x='76.5' y='73'%3EA%3C/text%3E%3Ctext x='59.5' y='90'%3EO%3C/text%3E%3C/g%3E%3C/g%3E%3Cg transform='rotate(38 132 60)'%3E%3Crect x='124' y='14' width='16' height='74' rx='3' fill='%23ffcf7a'/%3E%3Crect x='124' y='14' width='16' height='12' rx='3' fill='%23ff9a8a'/%3E%3Cpath d='M124 88h16l-8 16z' fill='%23f1d9b5'/%3E%3Cpath d='M129 98h6l-3 6z' fill='%2327336a'/%3E%3C/g%3E%3Cpath d='M150 16 Q151.68 20.32 156 22 Q151.68 23.68 150 28 Q148.32 23.68 144 22 Q148.32 20.32 150 16Z' fill='%23ffe7a0' opacity='1'/%3E%3Cpath d='M12 92 Q13.120000000000001 94.88 16 96 Q13.120000000000001 97.12 12 100 Q10.879999999999999 97.12 8 96 Q10.879999999999999 94.88 12 92Z' fill='%23ffe7a0' opacity='0.8'/%3E%3C/svg%3E")}
body.mk-card .wrap>div:has(>h2[data-t=title]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 120'%3E%3Cg transform='rotate(5 85 62)'%3E%3Crect x='18' y='20' width='134' height='88' rx='8' fill='%23f4f7ff'/%3E%3Crect x='28' y='30' width='66' height='68' rx='5' fill='%2327336a'/%3E%3Cpath d='M32 52 C46 40 66 58 90 44' fill='none' stroke='%236fe3c1' stroke-width='5' stroke-linecap='round' opacity='.7'/%3E%3Cpath d='M28 86 Q58 70 94 84 V93 a5 5 0 0 1 -5 5 H33 a5 5 0 0 1 -5 -5Z' fill='%23dfe7fb'/%3E%3Cg transform='translate(52 86) scale(0.38)'%3E%3Crect x='-3' y='-10' width='6' height='12' rx='2' fill='%235b3b2a'/%3E%3Cpath d='M0 -34 L26 -8 Q0 -1 -26 -8Z' fill='%231f6a5f' stroke='%231f6a5f' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -35 L11.7 -22.3 Q5.2 -25.4 0 -21.0 Q-5.2 -25.4 -11.7 -22.3Z' fill='%23f4f7ff' stroke='%23f4f7ff' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M0 -52 L21 -26 Q0 -19 -21 -26Z' fill='%232f8f7d' stroke='%232f8f7d' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -53 L9.5 -40.3 Q4.2 -43.4 0 -39.0 Q-4.2 -43.4 -9.5 -40.3Z' fill='%23f4f7ff' stroke='%23f4f7ff' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M0 -68 L15 -44 Q0 -37 -15 -44Z' fill='%231f6a5f' stroke='%231f6a5f' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -69 L6.8 -57.2 Q3.0 -60.1 0 -56.0 Q-3.0 -60.1 -6.8 -57.2Z' fill='%23f4f7ff' stroke='%23f4f7ff' stroke-width='3' stroke-linejoin='round'/%3E%3C/g%3E%3Cg transform='translate(70 88) scale(0.3)'%3E%3Crect x='-3' y='-10' width='6' height='12' rx='2' fill='%235b3b2a'/%3E%3Cpath d='M0 -34 L26 -8 Q0 -1 -26 -8Z' fill='%231f6a5f' stroke='%231f6a5f' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -35 L11.7 -22.3 Q5.2 -25.4 0 -21.0 Q-5.2 -25.4 -11.7 -22.3Z' fill='%23f4f7ff' stroke='%23f4f7ff' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M0 -52 L21 -26 Q0 -19 -21 -26Z' fill='%232f8f7d' stroke='%232f8f7d' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -53 L9.5 -40.3 Q4.2 -43.4 0 -39.0 Q-4.2 -43.4 -9.5 -40.3Z' fill='%23f4f7ff' stroke='%23f4f7ff' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M0 -68 L15 -44 Q0 -37 -15 -44Z' fill='%231f6a5f' stroke='%231f6a5f' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M0 -69 L6.8 -57.2 Q3.0 -60.1 0 -56.0 Q-3.0 -60.1 -6.8 -57.2Z' fill='%23f4f7ff' stroke='%23f4f7ff' stroke-width='3' stroke-linejoin='round'/%3E%3C/g%3E%3Crect x='122' y='30' width='20' height='24' rx='3' fill='%23ffcf7a'/%3E%3Cpath d='M132 36 c-5 -5 -9 2 0 9 c9 -7 5 -14 0 -9z' fill='%23e2574c'/%3E%3Cpath d='M104 68h38M104 78h38M104 88h24' stroke='%23b7c3e6' stroke-width='3' stroke-linecap='round'/%3E%3C/g%3E%3Cpath d='M14 16 Q15.68 20.32 20 22 Q15.68 23.68 14 28 Q12.32 23.68 8 22 Q12.32 20.32 14 16Z' fill='%23ffe7a0' opacity='1'/%3E%3Cpath d='M160 100 Q161.12 102.88 164 104 Q161.12 105.12 160 108 Q158.88 105.12 156 104 Q158.88 102.88 160 100Z' fill='%23ffe7a0' opacity='0.8'/%3E%3C/svg%3E")}
@media (max-width:640px){.wrap>div:has(>h2[data-t=title]){padding-right:92px;background-size:84px auto;background-position:right top}}
@media print{body::after,h1::before{display:none}}
