.studio33{padding-top:1.6rem;padding-bottom:3rem;display:grid;gap:1.4rem}.studio-hero,.studio-panel{background:#fffdf7;border:1px solid #e6d9bb;border-radius:22px;padding:clamp(16px,3vw,34px);box-shadow:0 6px 18px #1729450b;min-width:0}.studio-hero{display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:24px;border-top:5px solid #aa3439}.studio-hero h1{font-size:clamp(32px,5vw,56px);color:#18386b;margin:.3em 0;line-height:1.1}.studio-hero img{width:100%;height:auto;max-height:300px;object-fit:contain;background:white;border-radius:16px}.studio-panel h2{color:#18386b;margin:0 0 .5em}.studio-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0}.studio-controls select{max-width:100%;min-height:44px;background:white;border:1px solid #9aacc3;border-radius:10px;padding:10px;font:inherit;color:#18386b}.studio-controls .btn,.studio-panel .btn{min-height:44px;white-space:normal}.studio-controls button:disabled{opacity:.55;cursor:not-allowed}.color-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:14px}.color-card{background:white;border:1px solid #dfd6c6;border-radius:13px;padding:10px;display:grid;gap:8px;align-content:start;min-width:0}.color-card img{width:100%;height:160px;object-fit:contain;background:white}.color-card h3{font-size:1rem;margin:0;color:#233c60;overflow-wrap:anywhere}.color-card button{background:#f0f3f8;color:#18386b;border:1px solid #aebbd0;border-radius:9px;min-height:44px;font:inherit;font-weight:650;cursor:pointer}.small33{font-size:.92rem;color:#49566a}.alphabet33{display:grid;grid-template-columns:repeat(auto-fit,minmax(52px,1fr));gap:8px}.alphabet33 button,.answers33 button{border:2px solid #b7c8dc;background:#fff;color:#173c6a;border-radius:12px;min-height:54px;font:bold 1.5rem/1.15 system-ui,sans-serif;cursor:pointer}.alphabet33 button[aria-pressed=true]{background:#244884;color:white;border-color:#244884}.alphabet33 button.learned33{box-shadow:inset 0 -4px #4d8658}.lesson33{display:grid;grid-template-columns:1fr 1.5fr;gap:25px}.letter33{font:bold clamp(66px,12vw,130px)/1.12 system-ui,sans-serif;color:#173c6a;letter-spacing:.02em}.word33,.question33{font:bold clamp(26px,5vw,44px)/1.25 system-ui,sans-serif;color:#a42e38;margin:12px 0;overflow-wrap:anywhere}.canvas33{position:relative;background:linear-gradient(to bottom,transparent 32%,#dce4ef 32%,#dce4ef 33%,transparent 33%,transparent 66%,#dce4ef 66%,#dce4ef 67%,transparent 67%),#fff;border:2px dashed #9cadc5;border-radius:16px;overflow:hidden;aspect-ratio:520/360;max-width:520px}.canvas33 span{position:absolute;inset:0;display:grid;place-items:center;font:bold clamp(100px,28vw,220px)/1 system-ui,sans-serif;color:#c6d3e2;pointer-events:none}.canvas33 canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.answers33{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:500px}.answers33 button.correct33{background:#e2f1e4;border-color:#43824c}.answers33 button.retry33{border-color:#b87535;background:#fff2df}.studio33 :focus-visible{outline:3px solid #af343b;outline-offset:3px}#printArea33{display:none}.studio-page33 .nav37{flex-wrap:wrap}.studio-page33 .nav37 a{white-space:normal}.studio33 .studio-hero .eyebrow{letter-spacing:.08em}@media(max-width:640px){.studio-hero,.lesson33{grid-template-columns:1fr}.studio-hero img{max-height:220px}.color-card img{height:140px}.studio-controls .btn{flex:1 1 160px}.alphabet33{grid-template-columns:repeat(5,minmax(0,1fr))}}@media print{@page{size:A4 portrait;margin:10mm}body.printing33>*:not(#printArea33){display:none!important}body.printing33 #printArea33{display:block!important;background:white}#printArea33 .sheet33{width:190mm;height:270mm;display:flex;align-items:center;justify-content:center;break-after:page;page-break-after:always}#printArea33 .sheet33:last-child{break-after:auto;page-break-after:auto}#printArea33 img{max-width:190mm;max-height:265mm;width:auto;height:auto;object-fit:contain}#printArea33 img.land33{max-width:265mm;max-height:190mm;transform:rotate(90deg);flex-shrink:0}}
@media(min-width:1001px){.nav37:has(a[href="bojanke.html"]){flex-wrap:wrap;justify-content:center;row-gap:5px}.nav37:has(a[href="bojanke.html"]) a{white-space:normal}}
@media print{#printArea33 img{width:190mm;height:265mm;max-width:none;max-height:none;object-fit:contain}#printArea33 img.land33{width:265mm;height:190mm;max-width:none;max-height:none}}
/* V39.1: prevent intrinsic image and button widths from expanding the gallery */
.color-card{grid-template-columns:minmax(0,1fr)}.color-card>*{min-width:0;max-width:100%}.color-card button,.color-card p{overflow-wrap:anywhere;white-space:normal}.color-card img{min-width:0;max-width:100%}
