@layer ficha {

@scope (.cos-ficha) {
:scope { --realce: var(--il-groc); }
.pg { height: 100%; display: grid; gap: 4mm; }
.pg-flor { grid-template-rows: minmax(0, 108fr) minmax(0, 98fr); }
.pg-bingo { grid-template-rows: minmax(0, 138fr) minmax(0, 108fr); }
.pg .ex-cos { display: grid; grid-template-columns: minmax(0, 1fr); }


.jardi { display: grid; grid-template-columns: 84mm minmax(0, 1fr); gap: 5mm; min-height: 0; }
.flor { position: relative; min-height: 0; background: var(--il-herba); border-radius: var(--radi); border: var(--gruix) solid var(--il-contorn); }
.cor-flor { position: absolute; left: 50%; top: 50%; width: 36%; height: 34%; margin: -17% 0 0 -18%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1mm; background: var(--realce); border: var(--gruix) solid var(--il-contorn); border-radius: 50%; }
.cor-flor .lletra-gran { font-size: 15mm; }
.petal { position: absolute; width: 23mm; height: 23mm; margin: -11.5mm 0 0 -11.5mm; display: grid; place-items: center; padding: 0; border-radius: 50%; background: var(--il-rosa); }
.petal .lletra-gran { font-size: 13mm; }
.petal.on { background: var(--acento); color: var(--paper); }
.p1 { left: 50%; top: 13%; }
.p2 { left: 86%; top: 39%; }
.p3 { left: 73%; top: 83%; }
.p4 { left: 27%; top: 83%; }
.p5 { left: 14%; top: 39%; }
.eruga-j { border-radius: var(--radi); }


.musica { display: grid; grid-template-columns: 32mm minmax(0, 1fr); gap: 4mm; min-height: 0; }
.ocell-m { border-radius: var(--radi); }
.pentagrames { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3mm; min-height: 0; }
.pentagrama { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2mm; padding: 0 3mm; min-height: 0; background-color: var(--paper); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(20% - 1px), var(--il-contorn) calc(20% - 1px), var(--il-contorn) 20%); background-size: 100% 100%; border-left: 3px solid var(--il-contorn); border-right: 3px solid var(--il-contorn); }
.nota-5 { display: grid; place-items: center; padding: 0; height: 64%; min-height: 0; border-radius: 50%; background: var(--il-blanc); border: var(--gruix) solid var(--il-contorn); }
.nota-5 .lletra-gran { font-size: 9mm; }
.nota-5.on { background: var(--acento); color: var(--paper); }
.pentagrama .nota-5:nth-child(1) { align-self: start; }
.pentagrama .nota-5:nth-child(2) { align-self: end; }
.pentagrama .nota-5:nth-child(3) { align-self: center; }
.pentagrama .nota-5:nth-child(4) { align-self: start; }
.pentagrama .nota-5:nth-child(5) { align-self: end; }
.pentagrama .nota-5:nth-child(6) { align-self: center; }


.targeta-ex { display: grid; grid-template-columns: minmax(0, 1fr) 40mm; gap: 5mm; min-height: 0; }
.targeta-bingo { display: grid; grid-template-rows: 12mm minmax(0, 1fr); gap: 3mm; padding: 3mm; background: var(--il-cel); border: var(--gruix) solid var(--il-contorn); border-radius: var(--radi); min-height: 0; }
.boles-b { display: flex; justify-content: space-around; align-items: center; background: var(--realce); border-radius: 3mm; }
.boles-b span { width: 8mm; height: 8mm; border-radius: 50%; background: var(--il-vermell); border: 2px solid var(--il-contorn); }
.caselles-b { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 2.5mm; min-height: 0; }
.cas-b { display: grid; place-items: center; padding: 0; min-height: 0; border-radius: 3mm; background: var(--il-blanc); }
.cas-b .lletra-gran { font-size: 12mm; }
.cas-b.on { background: var(--acento); color: var(--paper); }
.lloro-b { border-radius: var(--radi); }


.escriure-5 { display: grid; grid-template-columns: 40mm minmax(0, 1fr); gap: 4mm; min-height: 0; }
.nena-5 { border-radius: var(--radi); }
.cinc-gran { display: grid; grid-template-rows: minmax(0, 1fr) 26mm; gap: 3mm; min-height: 0; }
.punts-5 > svg { width: 100%; height: 100%; min-height: 0; }
.punts-5 { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); padding: 3mm; border: var(--gruix) dashed var(--il-taronja); border-radius: var(--radi); min-height: 0; }
.fil-5 { fill: none; stroke: var(--il-contorn); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 6.5; }
.dues-5 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm; min-height: 0; }
.casella-5 { background: var(--paper); border: var(--gruix) solid var(--il-contorn); border-radius: var(--radi); background-image: repeating-linear-gradient(90deg, var(--il-gris) 0 2mm, transparent 2mm 3.5mm); background-size: 100% 1px; background-position: 0 50%; background-repeat: no-repeat; min-height: 0; }

}
}
