:root{color-scheme:light;--paper:#f2f0e9;--card:#fffaf0;--ink:#302d26;--muted:#625e52;--teal:#245f57;--teal-dark:#19473f;--focus:#143c55;--border:#c7bfab}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;width:100%;overscroll-behavior:none}
body{background:var(--paper);color:var(--ink);font-family:Nunito,sans-serif;overflow:hidden}
button,a,summary{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer;touch-action:manipulation}
button:disabled{cursor:wait;opacity:.65}
button:focus-visible,a:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
button svg{width:23px;height:23px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wrap{width:min(100%,1540px);height:100svh;margin:auto;padding:8px max(14px,env(safe-area-inset-right)) 8px max(14px,env(safe-area-inset-left));display:grid;grid-template-rows:54px minmax(0,1fr) 52px;gap:7px;container-type:inline-size}
.top{display:flex;align-items:center;gap:22px;min-width:0}
.brand{display:flex;align-items:center;gap:7px;color:#175a7a;text-decoration:none;flex:none;font-family:Fredoka,sans-serif;font-size:19px;font-weight:600;white-space:nowrap}
.brand img{width:41px;height:41px;object-fit:contain}
.brand.solo .back{display:none}
.brand .back{font-family:Nunito,sans-serif;font-size:30px;color:var(--ink)}
h1{margin:0;flex:1;min-width:0;font:600 clamp(18px,2.4cqw,30px)/1.1 Fredoka,Nunito,sans-serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.tools{display:flex;gap:8px;flex:none}
.btn{border:0;border-radius:9px;min-height:44px;padding:11px 17px;background:#e6e3d8;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:800;line-height:1.15;transition:background-color .16s,transform .16s}
.btn:hover{background:#dcd7c9}
.btn:active{transform:translateY(2px)}
.btn.primary{background:var(--teal);color:#fffaf0;font-size:clamp(17px,2.1cqw,25px);padding:14px 22px}
.btn.primary:hover{background:var(--teal-dark)}
.primary svg{fill:currentColor;stroke:none;width:18px;height:18px}
.tool{padding:8px 11px;font-size:14px}
.stage-box{min-height:0;display:flex;align-items:center;justify-content:center}
.stage{position:relative;width:min(100%,calc((100svh - 136px)*16/9));aspect-ratio:16/9;max-height:100%;overflow:hidden;border-radius:16px;background:#e3e6da;isolation:isolate;container-type:inline-size;touch-action:none}
#game{display:block;width:100%;height:100%;outline-offset:-4px;touch-action:none;background:#e3e6da}
/* Safari: a mouse drag over the picture must never start a text selection, an image/video drag or the force-click lookup (the parent, 13 Nov 2026, the dance drag) */
.stage,.stage *{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.stage img,.stage video,.stage canvas{-webkit-user-drag:none;user-drag:none}
/* Picture bubbles over the canvas (main.js updateBubbles): a round painted bubble with its picture and word. */
.bubbles{position:absolute;inset:0;z-index:2;pointer-events:none}
/* Everything inside is sized from the bubble's diameter (--d): the picture and the words, as one group, stay centred
   in the circle at any size (a bubble grows from small as it floats out), and the words wrap within it. */
.bubble{--s:1;--d:calc(clamp(84px,13cqw,140px)*var(--s));position:absolute;width:var(--d);height:var(--d);transform:translate(-50%,-50%);pointer-events:auto;border:0;padding:0;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--d)*.03);background:radial-gradient(circle at 34% 28%,#fffffff2 0 9%,#fffdf6d9 10% 46%,#f3ead6c4 70%,#e9d9b6b0 100%);box-shadow:inset 0 0 0 3px #fffaf0cc,inset 0 -6px 12px #c9a96a3d,0 6px 16px #2f281d38;transition:transform .18s ease-out,opacity .3s,filter .3s;touch-action:none}
.bubble img{flex:none;width:calc(var(--d)*.48);height:calc(var(--d)*.36);object-fit:contain;filter:drop-shadow(0 2px 2px #3a2a1240);pointer-events:none}
.bubble span{flex:none;max-width:calc(var(--d)*.82);font:600 calc(var(--d)*.13)/1.04 Fredoka,Nunito,sans-serif;color:#3a3226;text-align:center;text-wrap:balance;pointer-events:none}
.bubble.lie{background:radial-gradient(circle at 34% 28%,#fffffff2 0 9%,#fff4f0d9 10% 46%,#f6dccfc4 70%,#eac1aeb0 100%);box-shadow:inset 0 0 0 3px #fff3eccc,inset 0 -6px 12px #c46a4a3d,0 6px 16px #2f281d38}
.bubble.chosen{transform:translate(-50%,-50%) scale(1.1);box-shadow:inset 0 0 0 3px #fffaf0,0 0 0 4px var(--teal),0 6px 16px #2f281d38}
.bubble.popped{transform:translate(-50%,-50%) scale(1.35);opacity:0!important;pointer-events:none}
.bubble.shy{filter:saturate(.7) brightness(1.05)}
/* Bubble kinds (state.bubbles[].kind): chalk (a thought as a small blackboard of chalk sums), think (the small empty
   thought puffs leading to it), note (a notebook page: ruled paper, pencil capitals). The words are the picture here,
   so they get more room. */
.bubble.chalk{--d:calc(clamp(120px,19cqw,210px)*var(--s));border-radius:14%;background:#2f4a3a;box-shadow:inset 0 0 0 5px #7a5a3a,inset 0 0 0 7px #4b3624,0 6px 16px #2f281d55}
.bubble.chalk span{max-width:calc(var(--d)*.86);font:500 calc(var(--d)*.12)/1.25 "Comic Sans MS",Fredoka,Nunito,sans-serif;color:#f4f1e6;text-shadow:0 0 1px #f4f1e6aa;white-space:pre-line}
/* the hidden glint over a Unity part's frame: a small gold twinkle (its painted sprite), no disc */
.bubble.glint{--d:calc(clamp(46px,6.5cqw,72px)*var(--s));background:radial-gradient(circle,#ffe9a655 0 30%,transparent 66%);box-shadow:none;animation:glint-twinkle 1.6s ease-in-out infinite}
.bubble.glint::before{content:"";width:52%;height:52%;background:radial-gradient(circle,#fffdf0 0 18%,#ffd86a 60%,#ffb83a 100%);clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);filter:drop-shadow(0 0 5px #ffd86a)}
.bubble.glint span{display:none}
@keyframes glint-twinkle{50%{opacity:.55}}
.bubble.think{--d:calc(clamp(22px,3.4cqw,38px)*var(--s))}
.bubble.note{--d:calc(clamp(120px,19cqw,210px)*var(--s));border-radius:4%;transform:translate(-50%,-50%) rotate(-3deg);background:repeating-linear-gradient(#fbf8ef 0 calc(var(--d)*.115),#a9c3e0 calc(var(--d)*.115) calc(var(--d)*.12)),#fbf8ef;box-shadow:inset 3px 0 0 #e7a0a0,0 6px 16px #2f281d40}
.bubble.note span{max-width:calc(var(--d)*.84);font:700 calc(var(--d)*.115)/1.2 Fredoka,Nunito,sans-serif;color:#33302c;letter-spacing:.02em}
/* The arrow at the picture's edge toward something out of view (main.js updatePointer): a badge with its picture. */
.edge-pointer{--a:0rad;position:absolute;width:clamp(44px,6cqw,70px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#fffaf0ee;box-shadow:0 3px 12px #2f281d40,inset 0 0 0 3px #d77a33;display:grid;place-items:center;pointer-events:none;animation:edge-nudge 1s ease-in-out infinite}
.edge-pointer img{width:62%;height:62%;object-fit:contain}
.edge-pointer svg{position:absolute;inset:-28%;width:156%;height:156%;transform:rotate(var(--a));fill:none;stroke:#d77a33;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
@keyframes edge-nudge{50%{scale:1.08}}
.overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:center;padding:clamp(16px,3.5cqw,52px);pointer-events:auto}
.hidden{display:none!important}
.title-overlay,.end-overlay{justify-content:flex-start}
.card{width:43%;max-height:100%;overflow:auto;padding:clamp(20px,3.3cqw,46px);background:var(--card);border-radius:12px;box-shadow:0 12px 35px #2f281d24}
.card h2{font:600 clamp(27px,5.3cqw,65px)/.98 Fredoka,Nunito,sans-serif;letter-spacing:-.025em;margin:0 0 22px}
.card p{font-size:clamp(14px,1.9cqw,23px);line-height:1.4;margin:0 0 21px}
.card .invitation{font-weight:700}
.title-card .primary,.end-card .primary{width:100%;justify-content:space-between}
.card .small{font-size:clamp(12px,1.35cqw,16px);min-height:1.4em;margin:12px 0 5px;color:var(--muted)}
.pick{margin-top:15px}
.pick summary{font-size:clamp(13px,1.55cqw,19px);font-weight:800;cursor:pointer;list-style:none;min-height:34px;display:flex;align-items:center}
.pick summary::before{content:'+';font-family:Nunito,sans-serif;margin-right:8px}
.pick[open] summary::before{content:'−'}
.chapters{display:grid;gap:6px;padding:8px 0 2px}
.chapter-button{background:#eee9dc;border:0;border-radius:6px;color:var(--ink);text-align:left;min-height:44px;padding:10px 12px;font-size:14px;font-weight:800}
.chapter-button:hover{background:#ded9ca}
.presents{display:flex;align-items:center;gap:8px;margin-top:25px;font:500 clamp(11px,1.3cqw,16px)/1.2 Fredoka,sans-serif;color:#175a7a}
.presents img{width:28px;height:28px;object-fit:contain}
.source-note{position:absolute;bottom:14px;left:3.5%;max-width:89%;font-size:clamp(10px,1.05cqw,13px);line-height:1.3;background:#fffaf0e8;color:var(--ink);padding:5px 8px;border-radius:4px;margin:0}
/* TR | EN | FR on the title page, top right of the picture: the chosen language filled */
.lang-switch{position:absolute;top:clamp(12px,2cqw,26px);right:clamp(12px,2cqw,26px);display:flex;gap:4px;padding:4px;background:#fffaf0eb;border-radius:999px;box-shadow:0 6px 18px #2f281d24}
.lang-switch button{min-width:max(48px,5cqw);min-height:max(40px,3.8cqw);padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--ink);opacity:.62;font:600 clamp(15px,1.8cqw,21px)/1 Fredoka,sans-serif;transition:background-color .16s,opacity .16s}
.lang-switch button:hover{opacity:1}
.lang-switch button[aria-pressed="true"]{opacity:1;background:var(--teal);color:#fffaf0}
.lang-switch button:active{transform:scale(.94)}
.end-card h2{font-size:clamp(30px,4.4cqw,54px);line-height:1.05}
.end-card p{font-size:clamp(15px,1.8cqw,22px)}
.end-overlay{background:#28342824}
/* The end card's source and picture credits (story.json end.credits, end.ai): small print under the button. */
.card p.end-note{font-size:clamp(9px,1.1cqw,14px);line-height:1.25;color:var(--muted);margin:8px 0 0}
.subtitle{position:absolute;z-index:3;top:12px;left:50%;transform:translateX(-50%);width:calc(100% - 48px);max-width:1040px;background:#fffaf059;padding:8px 16px 11px;border-radius:10px;pointer-events:none}
.speaker-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:5px}
#speaker{display:inline-block;font:600 clamp(12px,1.55cqw,18px)/1.2 Fredoka,sans-serif;color:var(--ink);padding:4px 10px;border-radius:5px}
.subtitle p{font-size:clamp(14px,2.05cqw,23px);line-height:1.28;font-weight:800;margin:0;text-wrap:pretty}
.skip{pointer-events:auto;display:grid;place-items:center;border:0;background:none;color:var(--muted);width:44px;height:32px;min-height:32px;padding:3px;border-radius:5px}
.skip:hover{background:#e5dfd0}
.skip svg{width:20px;height:20px;stroke-width:2}
.game-guidance{position:absolute;top:16px;left:24%;right:23%;z-index:2;pointer-events:none;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px}
.game-guidance p{margin:0;padding:6px 11px;border-radius:6px;background:#fffaf059;font-size:clamp(12px,1.35cqw,17px);font-weight:800;line-height:1.25;text-wrap:balance}
.game-guidance p:empty{display:none}
#actionLabel{background:#245f57ed;color:#fffaf0;font-family:Fredoka,sans-serif;font-weight:500}
.star-hud{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);z-index:2;display:flex;align-items:center;gap:6px;padding:5px 12px 5px 9px;border-radius:999px;background:#fffaf0eb;color:#8a5a12;font:600 clamp(15px,1.9cqw,22px)/1 Fredoka,sans-serif;pointer-events:none;box-shadow:0 3px 10px #2f281d1f}
.star-hud svg{width:1.1em;height:1.1em;fill:#e7b44d;stroke:#b07a1c;stroke-width:1.2}
.star-hud.pop{animation:star-pop .28s ease-out}
@keyframes star-pop{0%{transform:translateX(-50%) scale(1)}40%{transform:translateX(-50%) scale(1.22)}100%{transform:translateX(-50%) scale(1)}}
.touch{position:absolute;inset:0;z-index:4;pointer-events:none;user-select:none;-webkit-user-select:none}
.touch.off{visibility:hidden;pointer-events:none}
.dpad{position:absolute;left:18px;bottom:18px;display:flex;gap:12px}
.tbtn{pointer-events:auto;display:grid;place-items:center;width:56px;height:56px;border:3px solid #5c503a;border-radius:16px;background:#fff6dfef;color:#453c2c;box-shadow:0 4px 0 #463e3438;touch-action:none;padding:11px;transition:transform .08s,background-color .08s}
.tbtn svg{width:29px;height:29px;stroke:none;fill:currentColor}
.tbtn.act svg{stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tbtn.held{transform:translateY(3px);background:#d9e4ce;box-shadow:none}
.tbtn.act{position:absolute;bottom:18px;right:91px}
.tbtn.act.ready{border-color:var(--teal);color:var(--teal)}
.tbtn.jump{position:absolute;bottom:18px;right:18px;width:62px;height:62px;border-radius:50%;background:var(--teal);color:#fffaf0;border-color:#173e37}
/* The walking arrows grow with the picture (a child's thumb on a small phone, a calm size on a tablet) and their
   arrows fill the middle: no padding, a rounded triangle drawn round its visual centre. */
.tbtn.arrow{--arrow:clamp(56px,8cqw,66px);width:var(--arrow);height:var(--arrow);padding:0;border-radius:calc(var(--arrow)*.28)}
.tbtn.arrow svg{width:60%;height:60%;stroke:currentColor;stroke-width:2.6;stroke-linejoin:round}
.touch .dpad{gap:clamp(8px,1.2cqw,12px)}
.touch.action-only .jump{display:none}
.touch.action-only .act{right:18px}
/* The hand does what its tag says (look, choose, smell...); it shows only when there is something to do with it. */
.tbtn.act{overflow:visible}
.act-tag{position:absolute;bottom:calc(100% + 7px);right:-4px;white-space:nowrap;font:700 13px/1.1 Nunito,sans-serif;color:#fffaf0;background:var(--teal);padding:5px 9px;border-radius:9px;box-shadow:0 2px 6px #2f281d33}
.act-tag:empty{display:none}
.touch.no-act .act,.touch.jump-only .act,.touch.jump-only .dpad{display:none}
/* "hold" (js/mechanics.js holdPhase): only the hand, labelled ("Denge"), a fill rising while it is held. */
.tbtn.act{isolation:isolate}
.tbtn.act .fill{position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(to top,#9ccdb0 calc(var(--fill,0)*100%),#0000 0);pointer-events:none}
.touch.hold-only .dpad,.touch.hold-only .jump{display:none}
.touch.hold-only .act{right:18px;width:76px;height:76px;border-radius:22px}
.touch.hold-only .act svg{width:38px;height:38px}
.touch.hold-only .act-tag{font-size:15px}
.touch.right-only .a-left{display:none}
.touch.no-jump .jump{display:none}
.tbtn.act.holding{transform:translateY(3px) scale(.97);box-shadow:0 1px 0 #463e3438}
/* A storybook plate over the stage (main.js updatePlate): it comes and goes, and another plate replaces it, as hard cuts
   (rule 12: never two pictures of one figure at once, so no fades: a plate often paints the people standing behind it). Its
   cards and rings are placed in plate pixels by main.js. Above the canvas, below the bubbles, hint, subtitles and buttons. */
.plate{position:absolute;inset:0;z-index:1;overflow:hidden;background:#2b2418;opacity:0;visibility:hidden;pointer-events:none}
.plate.on{opacity:1;visibility:visible}
.plate .plate-img{position:absolute;max-width:none}
.plate-things{position:absolute;inset:0}
.plate-card{position:absolute;max-width:none;pointer-events:none;filter:drop-shadow(0 4px 5px #2f281d59)}
.plate-ring{position:absolute;pointer-events:none;color:#fff9e6;animation:plate-ring 1.6s ease-in-out infinite alternate}
.plate-ring svg{display:block;width:100%;height:100%;overflow:visible}
.plate-ring.tinted circle{stroke:currentColor}
@keyframes plate-ring{from{opacity:.5}to{opacity:.72}}
/* A phone call (main.js updateCall): the caller's side slides in from the right in a rounded frame (--out: 1 out, 0 in, set
   from game time so pausing and fast autoplay keep it in step). */
.call{position:absolute;z-index:2;right:3%;top:25%;width:34%;transform:translateX(calc(var(--out,1)*135%));pointer-events:none}
.call-frame{position:relative;aspect-ratio:16/10;border-radius:clamp(12px,2cqw,24px);overflow:hidden;border:4px solid #3a3226;background:#fffaf0;box-shadow:0 10px 26px #2f281d59}
.call-picture{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.call-caller{position:absolute;left:50%;bottom:0;height:90%;max-width:90%;transform:translateX(-50%);object-fit:contain;transform-origin:50% 100%}
.call.talking .call-caller{animation:call-talk .3s ease-in-out infinite alternate}
/* phoneCall `behind`: a second figure further back, smaller and a little to the right, waving (a friend behind the caller). */
.call-behind{position:absolute;left:72%;bottom:6%;height:62%;max-width:50%;transform:translateX(-50%);object-fit:contain;transform-origin:50% 100%;filter:saturate(.9) brightness(.96);animation:call-wave 1.1s ease-in-out infinite alternate}
@keyframes call-wave{from{transform:translateX(-50%) rotate(-2deg)}to{transform:translateX(-50%) rotate(2deg)}}
@keyframes call-talk{to{transform:translateX(-50%) translateY(-2.5%)}}
.call-name{position:absolute;left:50%;bottom:-12px;transform:translateX(-50%);white-space:nowrap;padding:4px 12px;border-radius:9px;border:3px solid #3a3226;background:var(--teal);color:#fffaf0;font:600 clamp(12px,1.6cqw,18px)/1.1 Fredoka,Nunito,sans-serif}
/* The mushrooms found (main.js updateMushrooms): five champignons in a row, the found ones in colour, the fourth blue. */
.mush-hud{position:absolute;z-index:2;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:clamp(2px,.5cqw,6px);padding:4px 10px;border-radius:999px;background:#fffaf0eb;box-shadow:0 3px 10px #2f281d1f;pointer-events:none}
.mush{display:block;width:clamp(22px,3.1cqw,36px);aspect-ratio:1;opacity:.3;filter:grayscale(1)}
.mush svg{display:block;width:100%;height:100%}
.mush .cap{fill:#efe4cf;stroke:#7d6a4c;stroke-width:1.5}
.mush .stem{fill:#fbf6ea;stroke:#7d6a4c;stroke-width:1.5}
.mush.blue .cap{fill:#86acdc;stroke:#3d5f8f}
.mush.got{opacity:1;filter:none}
.mush.pop{animation:mush-pop .55s cubic-bezier(.3,1.6,.5,1)}
@keyframes mush-pop{0%{transform:scale(.2) translateY(30%)}100%{transform:none}}
/* DEV ONLY (?draft=1): a red badge while stand-ins for unpainted art are on screen. */
.draft-badge{position:absolute;z-index:6;right:10px;top:calc(clamp(44px,5.4cqw,56px) + 18px);padding:3px 9px;border-radius:6px;background:#c0392b;color:#fffaf0;font:800 clamp(11px,1.4cqw,16px)/1.2 Nunito,sans-serif;letter-spacing:.06em;pointer-events:none;opacity:.92}
/* The pause button in the picture's top-right corner; the subtitle box leaves room for it. */
.stage-pause{position:absolute;top:12px;right:12px;z-index:6;width:clamp(44px,5.4cqw,56px);aspect-ratio:1;border-radius:50%;border:3px solid #5c503a;background:#fff6dfef;color:#453c2c;display:grid;place-items:center;padding:0;box-shadow:0 4px 0 #463e3438;cursor:pointer;touch-action:manipulation}
.stage-pause svg{width:52%;height:52%;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round}
.stage-pause:active{transform:translateY(2px);box-shadow:0 2px 0 #463e3438}
/* The story text and the play instruction sit on a see-through panel (35%), so the picture shows behind them; a
   soft cream glow round each letter keeps the words easy to read on any picture (the parent picked this for Max ile
   Moritz on 7 Nov 2026, and asked for it here the same day). */
.subtitle p,.game-guidance p{text-shadow:0 0 3px #fffaf0,0 0 6px #fffaf0,0 0 10px #fffaf0cc}
#speaker{text-shadow:none}
.subtitle,.game-guidance{margin-right:0}
.stage .subtitle{left:24px;right:calc(clamp(44px,5.4cqw,56px) + 26px);width:auto;max-width:none;transform:none}
/* A plate whose faces are painted high asks for the caption at the bottom (main.js updatePlate, showPlate { caption }). */
.stage .subtitle.at-bottom{top:auto;bottom:8px}
/* The hint and action texts go to the bottom with it, above the caption and the mushroom bar (main.js sets the bottoms). */
.game-guidance.at-bottom{top:auto;flex-direction:column-reverse}
.pause-overlay{z-index:7;justify-content:center;background:#f3eedebf}
.pause-card{width:auto;min-width:min(40%,360px);text-align:center}
.pause-card h2{margin-bottom:18px}
.error-overlay{background:#f2f0e9e8;justify-content:center;z-index:10}
.error-overlay .card{width:min(85%,650px)}
.error-overlay h2{font-size:32px;line-height:1.1}
.error-overlay p{font-size:16px;overflow-wrap:anywhere}
.bottom{min-width:0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-content:center;gap:2px 15px;color:var(--muted);font-size:11px;line-height:1.2}
.bottom p{margin:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#status{grid-column:1;font-size:11px}
#controlsHelp{grid-row:2;grid-column:2;text-align:right}
.chapter-progress{grid-column:1/-1;display:flex;gap:12px;align-items:center;color:var(--ink);font-weight:800;min-height:13px}
#progressDots{display:flex;gap:4px}
#progressDots span{display:block;width:7px;height:7px;border-radius:50%;background:#c9c5b8}
#progressDots .current{background:var(--teal);transform:scale(1.25)}
#progressDots .passed{background:#8da58c}
.rotate{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.stage:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;max-height:none;border-radius:0}
.stage:fullscreen .overlay{padding:4vh 4vw}
@media not all and (pointer:coarse){.game-guidance{left:20%;right:20%;top:16px}}
/* Without a touch screen (a laptop's mouse; headless QA Chrome has no pointer at all) the phase's controls show too,
   as on a phone (the voice says "press the jump button"), clickable, laptop-sized, each wearing its keyboard key:
   ← → on the arrows, E on the hand, Space under "Jump". */
.kcap,.jump-tag{display:none}
@media not all and (pointer:coarse){
 .tbtn{width:48px;height:48px;padding:9px;border-radius:13px;cursor:pointer}
 .tbtn svg{width:25px;height:25px}
 .tbtn.arrow{--arrow:48px}
 .tbtn.jump{width:54px;height:54px}
 .tbtn.act{right:84px}
 .kcap{display:block;position:absolute;right:-7px;bottom:-7px;min-width:20px;padding:1px 5px;border:1.5px solid #5c503a;border-radius:6px;background:#fffaf0;color:#453c2c;box-shadow:0 2px 0 #5c503a;font:800 11px/1.25 Nunito,sans-serif;text-align:center;white-space:nowrap;pointer-events:none}
 .tbtn.jump .kcap{right:50%;transform:translateX(50%);bottom:-9px}
 .jump-tag{display:block;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;font:700 13px/1.1 Nunito,sans-serif;color:#fffaf0;background:var(--teal);padding:4px 9px;border-radius:9px;box-shadow:0 2px 6px #2f281d33;pointer-events:none}
 .tbtn.arrow{position:relative}
 .tbtn.act{overflow:visible}
}
#keyHint{background:#fffaf0e6;color:#453c2c;border:1.5px solid #5c503a;font-weight:800}
@media(max-width:1000px),(max-height:650px){.wrap{grid-template-rows:44px minmax(0,1fr) 36px;padding:5px 10px;gap:4px}.top{gap:14px}.brand{font-size:16px}.brand img{width:34px;height:34px}.tool{font-size:12px;padding:6px 9px;min-height:40px}.tool svg{width:21px;height:21px}.stage{width:min(100%,calc((100svh - 98px)*16/9))}.bottom{font-size:10px;grid-template-rows:auto auto}.chapter-progress{font-size:10px}#status{font-size:10px}.card{padding:18px 22px}.card h2{margin-bottom:14px}.card p{margin-bottom:14px}.presents{margin-top:17px}.pick{margin-top:9px}.source-note{bottom:9px}.subtitle{top:8px;padding:6px 11px 8px}.stage .subtitle{left:12px;right:calc(clamp(44px,5.4cqw,56px) + 20px)}.stage-pause{top:8px;right:8px}.speaker-row{margin-bottom:3px}.skip{height:28px;min-height:28px}.game-guidance{top:12px;left:24%;right:23%}.game-guidance p{font-size:12px;padding:5px 8px}.tbtn{width:50px;height:50px;padding:10px;border-radius:14px}.tbtn.jump{width:56px;height:56px}.dpad{left:12px;bottom:12px;gap:10px}.tbtn.act{bottom:12px;right:80px}.tbtn.jump{bottom:12px;right:12px}.touch.action-only .act{right:12px}}
@media(max-width:720px){.brand span:not(.back){display:none}.tools{gap:5px}.tool span{display:none}.tool{width:40px;padding:8px}.top{gap:11px}.stage{border-radius:11px}.card{width:46%;padding:15px 18px}.card h2{font-size:clamp(25px,5.1cqw,40px)}.card .primary{font-size:16px;padding:12px 14px}.card .invitation{font-size:14px}.presents{font-size:10px;gap:5px}.presents img{width:22px;height:22px}.source-note{font-size:9px}.chapters{gap:4px}.chapter-button{font-size:12px;padding:8px;min-height:40px}#controlsHelp{display:none}.bottom{grid-template-columns:1fr}.game-guidance{left:26%;right:23%}.subtitle p{font-size:14px}}
@media(orientation:portrait) and (pointer:coarse) and (max-width:600px){
 .rotate{display:flex;position:fixed;inset:0;z-index:20;background:var(--paper);align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:30px;text-align:center}
 .rotate p{font:500 29px/1.15 Fredoka,sans-serif;margin:0}
 .rot-icon{width:116px;height:116px;fill:none;stroke:var(--teal);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
 body.turned .rotate{display:none}
 body.turned .wrap{position:fixed;left:50%;top:50%;width:100svh;height:100vw;max-width:none;margin:0;transform:translate(-50%,-50%) rotate(90deg);grid-template-rows:44px minmax(0,1fr) 32px;padding:4px 10px;gap:4px}
 body.turned .stage{width:min(100%,calc((100vw - 92px)*16/9));max-height:100%}
 body.turned h1{font-size:22px}
 body.turned .brand{font-size:15px}
 body.turned .brand span:not(.back){display:inline}
 body.turned .tool span{display:inline}
 body.turned .tool{width:auto;font-size:12px}
 body.turned #controlsHelp{display:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.card .small:empty{display:none}
.speaker-row{padding-right:44px}
.skip{position:absolute;right:6px;top:0;width:44px;height:44px;min-height:44px}
@media(pointer:coarse){.tool{min-width:44px;min-height:44px}.pick summary{min-height:44px}.chapter-button{min-height:44px}}
/* A small picture (a phone's page view, under 560 px wide): the title and end cards fit without scrolling, their
   button stays whole and on one line, the edition note moves right, clear of the card. With the chapter picker shown
   there is no room for the "Bir Ata7 Games masalı" line too; the Ata7 Games logo stays in the header. */
@container (max-width:560px){
 .title-card,.end-card{width:54%;padding:13px 16px}
 .title-card h2,.end-card h2{font-size:22px;margin-bottom:9px}
 .title-card .invitation,.end-card p{font-size:13px;margin-bottom:10px}
 .title-card .primary,.end-card .primary{font-size:15px;padding:10px 12px;min-height:42px;white-space:nowrap}
 .title-card .presents,.end-card .presents{margin-top:8px}
 .title-card:has(.pick:not(.hidden)) .presents,.end-card:has(.pick:not(.hidden)) .presents{display:none}
 .title-card .pick,.end-card .pick{margin-top:4px}
 /* the end card is wider: its last words, the button and the credits (end-note) fit unscrolled */
 .end-card{width:64%}
 .end-card p.end-note{font-size:10px;margin-top:6px}
 .title-overlay .source-note{left:auto;right:2%;bottom:22px;max-width:40%}
 .lang-switch button{min-width:44px;min-height:40px;font-size:15px;padding:0 10px}
}
/* On a phone a storybook plate's caption is compact, so a two-line narration takes at most about a quarter of the
   picture (the plate's faces stand high and low: no framing clears a tall caption); at the bottom it spans the picture's
   width (the pause button is at the top). main.js: .subtitle.on-plate. */
@media(max-width:1000px),(max-height:650px){.stage .subtitle:is(.on-plate,.compact){padding:3px 9px 4px}.stage .subtitle:is(.on-plate,.compact).at-bottom{left:8px;right:8px}.subtitle:is(.on-plate,.compact) p{font-size:12px;line-height:1.2}.subtitle:is(.on-plate,.compact) .speaker-row{margin-bottom:1px;padding-right:34px}.subtitle:is(.on-plate,.compact) #speaker{font-size:11px;padding:1px 7px}.subtitle:is(.on-plate,.compact) .skip{width:32px;height:28px;min-height:28px}}
/* A caption covering a face on both sides (main.js autoCaption): compact on a big screen too. */
.subtitle.compact p{font-size:clamp(12px,1.55cqw,18px)}.stage .subtitle.compact{padding:5px 12px 6px}
/* The end card's mushroom tally (main.js endMushrooms): the HUD's mushrooms in a row on the card, found lit, missed dim. */
.end-mush{display:flex;justify-content:center;gap:clamp(4px,.8cqw,10px);margin:2px 0 6px}
.end-mush .mush{width:clamp(26px,3.6cqw,42px)}
.end-mush-text{font-weight:800;margin-top:0}
/* On the cream card a found mushroom is filled warm (the bar's cream cap would read as an empty outline there). */
.end-mush .mush.got:not(.blue) .cap{fill:#d9a066;stroke:#6d4a26}.end-mush .mush.got .stem{fill:#fffdf6}.end-mush .mush:not(.got){opacity:.22}
/* On a phone the row and its line share one line, small, so the card keeps its button in the picture. */
@media(max-width:1000px),(max-height:650px){.end-card #endText{margin-bottom:6px}.end-mush{display:inline-flex;vertical-align:-3px;margin:0 6px 0 0;gap:2px}.end-mush .mush{width:16px}.end-mush-text{display:inline;font-size:12px;margin:0;white-space:nowrap}.end-mush-text+*{margin-top:8px}}
/* A phone's end card holds the tally and the credits whole: tighter spacing, a smaller button and credits (no scroll). */
@media(max-width:1000px),(max-height:650px){.end-overlay{padding-top:8px;padding-bottom:8px}.end-card{padding:9px 14px 5px}.end-card h2{font-size:20px;margin-bottom:4px}.end-card #endText{font-size:12px;line-height:1.3;margin-bottom:4px}.end-mush-text+*{margin-top:4px}.end-card .primary{min-height:32px;padding:5px 12px}.end-card .presents{margin-top:4px;font-size:9px}.end-card .pick{margin-top:2px}.end-card .pick summary{min-height:32px;font-size:13px}.end-card .presents img{width:16px;height:16px}}
@media(max-width:1000px),(max-height:650px){.end-card #endMushText{margin:0}.end-card #endNotes{font-size:8px;line-height:1.1;margin-top:8px}.end-card .pick:not(.hidden)+#endNotes{margin-top:2px}}
/* The mushroom bar shows only after a pick (main.js updateMushrooms .up): in over .3 s, out over .5 s. */
.mush-hud{opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s}
.mush-hud.up{opacity:1;visibility:visible;transition:opacity .3s,visibility 0s}
/* ===== The painted kit's own buttons (from Üç Küçük Domuzcuk) (Foundation, 10 Nov 2026; story.md "Buttons per phase") =====
   No jump button anywhere: the hand takes the jump's corner, on a phone (touch) and a computer (mouse, keys E ← →). */
.tbtn.jump,.jump-tag{display:none!important}
.tbtn.act,.touch.hold-only .act{right:18px}
@media not all and (pointer:coarse){.tbtn.act,.touch.hold-only .act{right:18px}.touch.hold-only .act{width:64px;height:64px;border-radius:18px}.touch.hold-only .act svg{width:32px;height:32px}}
@media(max-width:1000px),(max-height:650px){.tbtn.act,.touch.hold-only .act{right:12px;bottom:12px}}
/* The face tag (story.md "The child's role"): a ring or a hold with `who` puts that animal's face on the ✋'s tag
   (main.js sets data-who): assets/ui/face_<who>.webp over its colour (story.md swatches); the colour alone until painted. */
.tbtn.act{--who:#fffaf0;--face:none}
.tbtn.act[data-who=kulkedisi]{--who:#E8A6B4}
html.ui-face_kulkedisi .tbtn.act[data-who=kulkedisi]{--face:url("assets/ui/face_kulkedisi.webp")}
.tbtn.act:is([data-who=kulkedisi]) .act-tag{padding-left:42px;min-height:36px;display:flex;align-items:center}
.tbtn.act:is([data-who=kulkedisi]) .act-tag:empty{display:none}
.tbtn.act:is([data-who=kulkedisi]) .act-tag::before{content:"";position:absolute;left:3px;top:50%;width:34px;height:34px;transform:translateY(-50%);border-radius:50%;background:var(--face) center/cover no-repeat,var(--who);box-shadow:0 0 0 2px #fffaf0}
/* Painted buttons (ArtLead: assets/ui/left.webp, right.webp, act.webp, hold.webp; optional pause.webp, music.webp,
   fullscreen.webp). index.html's loader adds html.ui-<name> once a file loads; until then the drawn buttons above stay.
   The painting fills the button (same sizes on phone and computer); the drawn icon and frame step aside; the key cap,
   the tag and the hold's rising fill stay on top. */
html.ui-left .tbtn.a-left{--art:url("assets/ui/left.webp")}
html.ui-right .tbtn.a-right{--art:url("assets/ui/right.webp")}
html.ui-act .tbtn.act{--art:url("assets/ui/act.webp")}
html.ui-hold .touch.hold-only .tbtn.act{--art:url("assets/ui/hold.webp")}
html.ui-left .tbtn.a-left,html.ui-right .tbtn.a-right,html.ui-act .tbtn.act,html.ui-hold .touch.hold-only .tbtn.act{border-color:transparent;background:var(--art) center/contain no-repeat;box-shadow:none}
html.ui-left .tbtn.a-left>svg,html.ui-right .tbtn.a-right>svg,html.ui-act .tbtn.act>svg,html.ui-hold .touch.hold-only .tbtn.act>svg{visibility:hidden}
html.ui-act .tbtn.act .fill,html.ui-hold .touch.hold-only .tbtn.act .fill{opacity:.55}
html.ui-left .tbtn.a-left.held,html.ui-right .tbtn.a-right.held{background:var(--art) center/contain no-repeat;filter:brightness(.92)}
html.ui-pause :is(#pauseBtn,#stagePause) svg{background:url("assets/ui/pause.webp") center/contain no-repeat}
html.ui-music #musicBtn svg{background:url("assets/ui/music.webp") center/contain no-repeat}
html.ui-fullscreen #fullBtn svg{background:url("assets/ui/fullscreen.webp") center/contain no-repeat}
html.ui-pause :is(#pauseBtn,#stagePause) svg>*,html.ui-music #musicBtn svg>*,html.ui-fullscreen #fullBtn svg>*{display:none}
/* The golden seed row (story.json collect: six, one per chapter, kit.seed) on the HUD and the end card. */
.mush .cap{fill:#f2c14e;stroke:#6a4a12;stroke-width:1.3}
.mush .stem,.mush .dot{fill:#2b2418;stroke:none}
.mush .line{fill:none;stroke:#2b2418;stroke-width:1.3}
.end-mush .mush.got .cap,.end-mush .mush.got:not(.blue) .cap{fill:#f2c14e;stroke:#6a4a12}.end-mush .mush.got .stem{fill:#2b2418}
.mush-hud .mush{width:clamp(20px,2.6cqw,32px)}
/* On a phone the six seeds sit smaller and closer, clear of the ◀ ▶ and ✋ corners (sweep --phone, 10 Nov 2026). */
@media(max-width:1000px),(max-height:650px){.mush-hud{gap:1px;padding:3px 8px}.mush-hud .mush{width:clamp(14px,2cqw,20px)}}
/* The wolf's notebook page (state.bubbles kind 'note', ChBricks): a cream paper card with a ruled line, not a bubble. */
.bubble.note{border-radius:6px;transform:translate(-50%,-50%) rotate(-3deg);background:repeating-linear-gradient(#fff4e0 0 calc(var(--d)*.16),#d9c9a8 calc(var(--d)*.16) calc(var(--d)*.165));box-shadow:inset 0 0 0 2px #e3d3b0,inset calc(var(--d)*.1) 0 0 -1px #f7d6d0,0 6px 14px #2f281d40}
.bubble.note.popped{transform:translate(-50%,-50%) rotate(-3deg) scale(1.35)}
/* A hold with its own painting (main.js data-hold from state.hold.art): 'door' → hold_door.webp ("Kapıyı tut"). */
html.ui-hold_door .touch.hold-only .tbtn.act[data-hold=door]{--art:url("assets/ui/hold_door.webp");border-color:transparent;background:var(--art) center/contain no-repeat;box-shadow:none}
html.ui-hold_door .touch.hold-only .tbtn.act[data-hold=door]>svg{visibility:hidden}
/* The wolf's breath counts (bricks.js puffs, kind 'puff'): a cloud with a big number a child reads at a glance. */
.bubble.puff span{font:800 calc(var(--d)*.42)/1 Fredoka,Nunito,sans-serif;color:#2f4a6a;max-width:none}
/* The hour over the whole picture (main.js data-hour from k.light): one multiplied colour, top a little deeper than the
   ground, so sky, hills, houses and figures share the light with no edge anywhere; warm, never grey (story.md). */
.hour-tint{display:none!important} /* the hour is now drawn in the WebGL picture (stage.js _hourOverlay) */
.hour-tint{position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:multiply;opacity:0}
.hour-tint[data-hour=dawn]{opacity:1;background:linear-gradient(#ffd0d8,#fff0dc 60%)}
.hour-tint[data-hour=evening]{opacity:1;background:linear-gradient(#ffc08a,#ffd9a8 60%)}
.hour-tint[data-hour=dusk]{opacity:1;background:linear-gradient(#c79ad8,#f4b6a8 60%)}
.hour-tint[data-hour=night]{opacity:1;background:linear-gradient(#5a6cc4,#8291d8 60%)}
/* The held button's fill on the painted hold buttons (hold.webp, hold_door.webp): a warm gold rising inside the frame,
   over the painting, so the child sees the breath / the push grow (ChBricks, Reviewer item 26). */
html.ui-hold .touch.hold-only .tbtn.act .fill,html.ui-hold_door .touch.hold-only .tbtn.act[data-hold=door] .fill{z-index:1;opacity:1;inset:16%;border-radius:12%;background:linear-gradient(to top,#ffcf4dcc calc(var(--fill,0)*100%),#0000 0)}
/* A Unity part (js/unity.js: unity-build/<part>/ in an iframe) over the painted picture, under the captions, buttons and cards. */
.unity-part{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:1;background:transparent}
/* A film cut (main.js updateFilm, kit.film): the clip over the painted picture, under captions, buttons and cards. */
.film-cut{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;background:#2b2418;pointer-events:none}
#continueBtn{margin:0 10px 10px 0}

/* the build stamp (tools/build.mjs, version.json): which build this is, small in the title screen's bottom-right corner
   (white with a soft shadow, readable on any picture; on a phone the source note sits just above it) */
.build-stamp{position:absolute;right:10px;bottom:5px;font:600 10px/1.2 Nunito,sans-serif;color:#fff;opacity:.8;text-shadow:0 1px 2px #0009,0 0 6px #0006;white-space:nowrap;pointer-events:none;z-index:2}

/* ======================================================================================================================
   GOLD LEAF (story.md section 9; js/glam.js is the rest of the game layer). Ivory and real gold, never yellow paint: every
   gold surface is a gradient with a bright specular band, a dark edge and a soft glow, and the primary button has a slow
   sheen. Art3D's painted pieces in assets/ui/ switch on by themselves (index.html adds html.ui-<name> once the file loads):
     button_gold.webp   384×128, 9-slice (slice 64 px): the primary button's plate
     frame_gold.webp    512×512, 9-slice (slice 128 px): the cards (title, pause, end)
     caption_ivory.webp 1024×192, 9-slice (slice 64 px): the caption strip and the hint pills
     left right act hold pause music fullscreen .webp  256×256 round or rounded medallions, transparent
     face_kulkedisi.webp 128×128 (the hand button's tag)
     hud_slipper.webp   240×150: the glass slipper, three star sockets along its top at 25 %, 50 %, 75 % of the width, 24 % down
     hud_star_on.webp hud_star_off.webp  64×64: a faceted crystal star, lit / unlit
   ===================================================================================================================== */
:root{--paper:#f6ecd9;--card:#fffaf0;--ink:#33261a;--muted:#6b5a45;--teal:#9a6f1f;--teal-dark:#7a5512;--border:#d8c08a;
  --gold:#d8b25a;--gold-dark:#8a6420;--gold-deep:#5d4112;--ivory:#fbf3df;--rose:#e8a6b4;
  --leaf:linear-gradient(135deg,#8a6420 0%,#e8c868 13%,#fff3bc 27%,#d8b25a 42%,#a97a22 57%,#f1d27a 73%,#fff0b0 85%,#b8862d 100%);
  --leaf-soft:linear-gradient(180deg,#fff3c4 0%,#f1d27a 38%,#d8b25a 62%,#b8862d 100%)}
body{background:radial-gradient(120% 90% at 50% 0%,#fbf3e2 0%,#f6ecd9 55%,#ecdcbc 100%)}
.card h2,.title-card h2,.end-card h2{font-family:"Didot","Bodoni 72","Baskerville","Cormorant Garamond","Palatino Linotype",Georgia,serif;font-weight:700;letter-spacing:-.01em;color:#3b2616;text-shadow:0 1px 0 #fff,0 0 14px #fff1c4}
.btn{background:linear-gradient(#fffaf0,#f1e4c6);border:1.5px solid #c79a3f;box-shadow:inset 0 1px 0 #fff,0 2px 0 #b8862d66;color:var(--ink)}
.btn:hover{background:linear-gradient(#fffdf6,#f6e9cc)}
.btn.primary{position:relative;overflow:hidden;isolation:isolate;background:var(--leaf);color:#3a2610;border:2px solid var(--gold-dark);
  text-shadow:0 1px 0 #fff4c4;box-shadow:inset 0 1px 0 #fffbe0,inset 0 -3px 7px #8a642066,0 3px 0 #7a5a1b,0 9px 20px #7a5a1b59,0 0 0 3px #fff6dc80}
.btn.primary:hover{background:var(--leaf);filter:brightness(1.05)}
.btn.primary:active{transform:translateY(3px);box-shadow:inset 0 1px 0 #fffbe0,inset 0 -2px 5px #8a642066,0 0 0 #7a5a1b,0 4px 10px #7a5a1b59}
.btn.primary::after{content:"";position:absolute;inset:-2px;z-index:-1;background:linear-gradient(105deg,transparent 38%,#fffbe8d9 50%,transparent 62%);transform:translateX(-130%);animation:glam-sheen 5.6s ease-in-out infinite}
.btn.primary svg{fill:#3a2610}
@keyframes glam-sheen{0%,62%{transform:translateX(-130%)}100%{transform:translateX(130%)}}
/* the cards: ivory leaf with a double gold rule and a flourish in each corner */
.card{--orn:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M3 37V12C3 6 7 3 12 3h25M3 20c6-1 10-5 11-11M12 3c0 6 4 10 10 10M9 9c4 0 7 3 7 7' fill='none' stroke='%23c79a3f' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='9' r='2' fill='%23e8c868'/%3E%3C/svg%3E");
  background:var(--orn) left 8px top 8px/34px no-repeat,var(--orn) right 8px top 8px/34px no-repeat,var(--orn) left 8px bottom 8px/34px no-repeat,var(--orn) right 8px bottom 8px/34px no-repeat,linear-gradient(160deg,#fffaf0,#f8eed8 58%,#f2e4c3);
  border:2px solid #c99a3d;box-shadow:inset 0 0 0 5px #fbf3df,inset 0 0 0 6.5px #d8b25a,0 18px 44px #2a1a0a47,0 0 0 1px #8a642059}
.card .small{color:var(--muted)}
.chapter-button{background:linear-gradient(#fffaf0,#f1e4c6)!important;border:1px solid #d8b25a!important}
/* the caption: ivory with a gold edge (the speaker over it, the words in umber) */
.subtitle{background:linear-gradient(#fffaf0f0,#f7ebd2eb);border-radius:12px;box-shadow:inset 0 0 0 1px #ffffffb3,0 0 0 1.5px #d8b25a,0 0 0 3.5px #fbf3df,0 0 0 4.5px #c79a3f73,0 8px 22px #2a1a0a47}
.subtitle p{color:#33261a;text-shadow:none}
#speaker{color:#7a5512;font-family:"Didot","Bodoni 72","Baskerville",Georgia,serif;font-weight:700;letter-spacing:.02em}
.game-guidance p{background:linear-gradient(#fffaf0eb,#f6ead0e0);box-shadow:0 0 0 1px #d8b25a,0 0 0 3px #fbf3dfcc,0 4px 12px #2a1a0a40;border-radius:999px;color:#33261a;text-shadow:none;padding:6px 16px}
.skip:hover{background:#f3e3b8}
/* the round medallions: pause, and the touch buttons, in turned gold */
.tbtn,.stage-pause{border:2.5px solid var(--gold-dark);background:radial-gradient(120% 120% at 30% 22%,#fff8d6 0%,#f1d27a 34%,#d8b25a 62%,#a97a22 100%);color:#3a2610;box-shadow:inset 0 1px 1px #fffbe5,inset 0 -3px 6px #8a642080,0 3px 0 #6e4d14,0 6px 14px #2a1a0a4d}
.tbtn.held,.tbtn.act.holding{background:radial-gradient(120% 120% at 30% 22%,#fff0b8 0%,#e8c868 40%,#c79a3f 100%);box-shadow:inset 0 2px 6px #8a642099}
.tbtn.act.ready{border-color:#fff3c0;color:#3a2610;box-shadow:inset 0 1px 1px #fffbe5,inset 0 -3px 6px #8a642080,0 3px 0 #6e4d14,0 0 0 3px #fff3c099,0 0 18px #ffd36bcc;animation:glam-ready 1.5s ease-in-out infinite alternate}
@keyframes glam-ready{to{box-shadow:inset 0 1px 1px #fffbe5,inset 0 -3px 6px #8a642080,0 3px 0 #6e4d14,0 0 0 5px #fff3c0cc,0 0 28px #ffe39a}}
.tbtn.jump{background:var(--leaf-soft);border-color:var(--gold-dark);color:#3a2610}
.act-tag{background:linear-gradient(#fffaf0,#f1e4c6);color:#5d4112;border:1.5px solid #c79a3f;box-shadow:0 3px 8px #2a1a0a40}
.btn.tool{background:linear-gradient(#fffaf0,#f1e4c6)}
#progressDots .current{background:var(--gold);box-shadow:0 0 6px #ffd36b}#progressDots .passed{background:#b8862d}
.mush-hud,.star-hud{background:linear-gradient(#2a1a2eea,#1b1226f2);box-shadow:0 0 0 1.5px #d8b25a,0 4px 14px #2a1a0a66;color:#ffe9a8}
.mush .cap{fill:#ffffff24;stroke:#d8b25a;stroke-width:1.2;stroke-linejoin:round}
.mush.got .cap,.end-mush .mush.got .cap,.end-mush .mush.got:not(.blue) .cap{fill:#ffd36b;stroke:#fff3c0;filter:drop-shadow(0 0 3px #ffd36b)}
/* painted art, when Art3D has made it */
html.ui-button_gold .btn.primary{border:solid transparent;border-width:18px;border-image:url("assets/ui/button_gold.webp") 64 fill/18px stretch;background:none;box-shadow:none;padding:0 12px}
html.ui-frame_gold .card{border:solid transparent;border-width:36px;border-image:url("assets/ui/frame_gold.webp") 128 fill/36px stretch;background:none;box-shadow:none}
/* A phone's picture is short: the 36 px frame would leave the end card's button half under its scroll edge. */
@media(max-width:1000px),(max-height:650px){html.ui-frame_gold .card{border-width:20px;border-image-width:20px}}
html.ui-caption_ivory :is(.subtitle,.game-guidance p){border:solid transparent;border-width:18px;border-image:url("assets/ui/caption_ivory.webp") 64 fill/18px stretch;background:none;box-shadow:none;border-radius:0;padding:0 6px}
/* A phone's picture is short: the hint and action pills wear a thinner frame (a two-line hint stays clear of the faces and rings below it). */
@media(max-width:1000px),(max-height:650px){html.ui-caption_ivory .game-guidance p{border-width:10px;border-image-width:10px}}
html.ui-left .tbtn.a-left,html.ui-right .tbtn.a-right,html.ui-act .tbtn.act,html.ui-hold .touch.hold-only .tbtn.act{box-shadow:none;animation:none}

/* the game layer's own pieces (js/glam.js) */
.glam-fx{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.glam-dof,.glam-grade{position:absolute;inset:0;z-index:2;pointer-events:none;display:none}
/* depth of field: a soft lens at the top and bottom of the picture (high tier); a plate is soft all round its edge */
.glam-dof{display:block;-webkit-backdrop-filter:blur(1.6px);backdrop-filter:blur(1.6px);
  -webkit-mask-image:linear-gradient(#000 0,transparent 13%,transparent 84%,#000 100%);mask-image:linear-gradient(#000 0,transparent 13%,transparent 84%,#000 100%)}
.glam-dof.on-plate{-webkit-backdrop-filter:blur(2.2px);backdrop-filter:blur(2.2px);
  -webkit-mask-image:radial-gradient(ellipse 72% 70% at 50% 50%,transparent 55%,#000 100%);mask-image:radial-gradient(ellipse 72% 70% at 50% 50%,transparent 55%,#000 100%)}
.glam-low .glam-dof{display:none}
/* the grade stand-in of the low tier (no post-process): the place's lights over its darks, and a vignette */
.glam-low .glam-grade{display:block;mix-blend-mode:multiply;opacity:.62;
  background:radial-gradient(ellipse at 50% 46%,transparent 52%,rgba(30,18,40,var(--g-vig,.2)) 100%),linear-gradient(var(--g-top,#fff),var(--g-bottom,#d8d4e0))}
/* the slipper meter: the glass slipper and the three kindness stars (k.glam.star) */
.slipper-hud{position:absolute;left:12px;top:62%;z-index:3;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;
  width:clamp(58px,7.6cqw,92px);padding:6px 6px 7px;border-radius:14px;pointer-events:none;
  background:linear-gradient(#2a1a2eeb,#1b1226f2);box-shadow:0 0 0 1.5px #d8b25a,0 0 0 3.5px #2a1a2e99,0 6px 16px #0006,inset 0 1px 0 #ffffff26}
.slipper-hud.hidden{display:none}
.sl-shoe{width:100%;height:auto;filter:drop-shadow(0 0 5px #cfe4ffaa)}
.sl-stars{display:flex;gap:2px;width:100%;justify-content:center}
.sl-stars svg{width:30%;height:auto;aspect-ratio:1;overflow:visible;transform-origin:50% 55%}
.sl-stars .s-a{fill:#ffffff1c;stroke:#ffffff66;stroke-width:1.2;stroke-linejoin:round}
.sl-stars .s-b,.sl-stars .s-c{fill:none}
.sl-stars svg.on .s-a{fill:#ffd36b;stroke:#fff3c0;filter:drop-shadow(0 0 4px #ffd36b)}
.sl-stars svg.on .s-b{fill:#fffbe6cc}.sl-stars svg.on .s-c{fill:#b8862d99}
.sl-stars svg.pop{animation:glam-star .9s cubic-bezier(.2,1.4,.4,1)}
@keyframes glam-star{0%{transform:scale(.3) rotate(-60deg);filter:brightness(2.4)}55%{transform:scale(1.75) rotate(12deg)}100%{transform:scale(1) rotate(0)}}
.slipper-hud.flash{animation:glam-flash 1.1s ease-out}
@keyframes glam-flash{0%{box-shadow:0 0 0 1.5px #fff3c0,0 0 0 3.5px #ffd36b,0 0 34px #ffd36b,0 6px 16px #0006}100%{box-shadow:0 0 0 1.5px #d8b25a,0 0 0 3.5px #2a1a2e99,0 6px 16px #0006}}
.slipper-hud[data-stars="3"] .sl-shoe{filter:drop-shadow(0 0 7px #ffe39a) drop-shadow(0 0 3px #fff)}
html.ui-hud_slipper .slipper-hud{background:url("assets/ui/hud_slipper.webp") center/contain no-repeat;box-shadow:none;aspect-ratio:240/150;width:clamp(70px,9.6cqw,120px);padding:0;position:absolute}
html.ui-hud_slipper .sl-shoe{display:none}
html.ui-hud_slipper .sl-stars{position:absolute;left:0;right:0;top:24%;gap:0}
html.ui-hud_slipper .sl-stars svg{width:26%}
html.ui-hud_star_off .sl-stars svg{background:url("assets/ui/hud_star_off.webp") center/contain no-repeat}
html.ui-hud_star_on .sl-stars svg.on{background:url("assets/ui/hud_star_on.webp") center/contain no-repeat}
html.ui-hud_star_off .sl-stars svg path{display:none}
@media (prefers-reduced-motion:reduce){.btn.primary::after,.tbtn.act.ready{animation:none}.sl-stars svg.pop,.slipper-hud.flash{animation:none}}
/* a phone's captions sit at the bottom and its heroine stands at the left: the meter rides under the pause button instead, clear of both */
@media(max-width:1000px),(max-height:650px){.slipper-hud{left:auto;right:12px;top:36%}}

/* the count of the twelve laces (invitation.js, state.bubbles kind 'count'): a gold numeral that rises and fades; taps pass through it */
.bubble.count{--d:calc(clamp(21px,2.8cqw,34px)*var(--s));pointer-events:none;background:radial-gradient(circle at 34% 28%,#fff8d6 0 12%,#f1d27a 46%,#b8862d 100%);box-shadow:inset 0 0 0 2px #fff3c0,0 0 0 2px #8a6420,0 0 14px #ffd36b99,0 4px 10px #0005}
.bubble.count span{max-width:none;font:700 calc(var(--d)*.62)/1 "Didot","Bodoni 72","Baskerville",Georgia,serif;color:#3a2610;text-shadow:0 1px 0 #fff4c4}
/* a gesture's word over the sister who shows it (gape.js, state.bubbles kind 'gesture'): ivory with a gold edge; taps pass through */
.bubble.gesture{--d:calc(clamp(74px,11cqw,118px)*var(--s));pointer-events:none;background:radial-gradient(circle at 34% 28%,#fffdf4 0 14%,#fbf1d9 60%,#efd9a4 100%);box-shadow:inset 0 0 0 2px #fff,0 0 0 2px #c79a3f,0 0 0 4px #fbf3dfcc,0 6px 14px #0004}
.bubble.gesture span{max-width:calc(var(--d)*.86);font:700 calc(var(--d)*.2)/1.05 "Didot","Bodoni 72","Baskerville",Georgia,serif;color:#5d4112}

/* the aria's captions (js/aria.js, js/glam.js): the sung words in the book-caption style, low in the picture so the transformation shows above */
.aria-cap{position:absolute;z-index:4;left:50%;bottom:16px;transform:translateX(-50%);width:min(86%,820px);display:flex;align-items:center;gap:14px;padding:10px 16px 12px;border-radius:12px;pointer-events:none;
  background:linear-gradient(#fffaf0f0,#f7ebd2eb);box-shadow:inset 0 0 0 1px #ffffffb3,0 0 0 1.5px #d8b25a,0 0 0 3.5px #fbf3df,0 0 0 4.5px #c79a3f73,0 8px 22px #2a1a0a47;transition:opacity .5s}
.aria-cap.hidden{display:none}
.aria-cap.quiet{opacity:0}
.aria-note{font:700 clamp(18px,2.6cqw,30px)/1 Georgia,serif;color:#b8862d;text-shadow:0 0 8px #ffe39a}
.aria-cap p{flex:1;margin:0;text-align:center;font:600 italic clamp(15px,2.3cqw,26px)/1.25 "Didot","Bodoni 72","Baskerville",Georgia,serif;color:#33261a;text-wrap:balance}
.aria-skip{pointer-events:auto;border:1.5px solid #c79a3f;border-radius:999px;background:linear-gradient(#fffaf0,#f1e4c6);color:#5d4112;font:700 13px/1 Nunito,sans-serif;padding:7px 12px;opacity:.75}
.aria-skip:hover{opacity:1}
@media(max-width:1000px),(max-height:650px){.aria-cap{bottom:8px;padding:6px 10px 8px}.aria-skip{padding:5px 9px;font-size:12px}}

/* Waiting on Play (main.js showLoading; the parent, 13 Nov 2026: children can't read the waiting text and kept
   tapping): the button fills like a bar as the sounds arrive (--p, 0..1), a light runs across it, its ▶ becomes a
   turning ring; a tap meanwhile makes it bounce. It stays bright: a grey, "off" button looks broken to a child. */
#start .spin{display:none}
#start.loading{position:relative;overflow:hidden;cursor:progress;opacity:1}
#start.loading>span,#start.loading>.spin{position:relative;z-index:1}
#start.loading::before{content:"";position:absolute;inset:0 auto 0 0;width:calc(var(--p,0)*100%);background:rgba(255,255,255,.34);transition:width .3s ease-out}
#start.loading::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.5) 50%,transparent 62%) no-repeat;background-size:250% 100%;animation:startSweep 1.5s linear infinite}
#start.loading svg{display:none}
#start.loading .spin{display:block;flex:none;width:18px;height:18px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;animation:startSpin .8s linear infinite}
#start.loading.nudge{animation:startNudge .35s ease-out}
@keyframes startSweep{from{background-position:130% 0}to{background-position:-30% 0}}
@keyframes startSpin{to{transform:rotate(1turn)}}
@keyframes startNudge{30%{transform:scale(.94)}65%{transform:scale(1.04)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){#start.loading::after{animation:none}#start.loading .spin{animation-duration:2.4s}}

/* THE COLLECTIBLE (the parent, 13 Nov 2026: "blurry, pale, ugly"): one crisp golden-amber crystal star (tools/art/glint_gem.py) in the HUD row, on the end card, and over a Unity frame. Lit = the gem, not found = a dark gem
   with a gold outline; the old mushroom/star SVGs stay in the markup but are not drawn. */
.mush{position:relative;opacity:1;filter:none;background:url(assets/ui/glint_gem_dim.webp) center/contain no-repeat}
.mush svg{display:none}
.mush.got,.end-mush .mush.got{background-image:url(assets/ui/glint_gem.webp);filter:drop-shadow(0 0 3px #ffc84acc)}
.end-mush .mush:not(.got){opacity:.75}
.mush.pop{animation:gem-pop .7s cubic-bezier(.3,1.5,.5,1)}
.mush.pop::before,.mush.pop::after{content:"";position:absolute;left:25%;top:25%;width:50%;height:50%;background:url(assets/ui/glint_gem.webp) center/contain no-repeat;pointer-events:none;animation:gem-fly .8s ease-out forwards}
.mush.pop::after{animation-name:gem-fly-b;animation-delay:.06s}
@keyframes gem-pop{0%{transform:scale(.1);filter:brightness(2.4) drop-shadow(0 0 10px #fff3b0)}55%{transform:scale(1.55);filter:brightness(1.6) drop-shadow(0 0 12px #ffd36b)}100%{transform:none}}
@keyframes gem-fly{0%{transform:translate(0,0) scale(1) rotate(0);opacity:1}100%{transform:translate(-120%,-190%) scale(.3) rotate(-120deg);opacity:0}}
@keyframes gem-fly-b{0%{transform:translate(0,0) scale(1) rotate(0);opacity:1}100%{transform:translate(130%,-210%) scale(.3) rotate(140deg);opacity:0}}
@media(max-width:1000px),(max-height:650px){.mush-hud .mush{width:clamp(17px,2.5cqw,22px)}}
.bubble.glint{background:none;animation:glint-twinkle 2.2s ease-in-out infinite}
.bubble.glint::before{width:100%;height:100%;clip-path:none;filter:none;background:url(assets/art/props/prop_glint.webp) center/contain no-repeat}
@keyframes glint-twinkle{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.1)}}
/* Külkedisi 2.0 (PLAN-2.0.md "Look"): a bigger caption on a SOLID panel (the see-through ivory strip read as glitchy
   over the painting); main.js state.caption 'low' keeps it at the bottom, off faces and tap rings. */
html.ui-caption_ivory .subtitle,.stage .subtitle{border:0!important;border-image:none!important;background:#fffaf066!important;border-radius:14px!important;box-shadow:0 0 0 1.5px #d8b25a99!important;padding:10px 18px 12px!important}
.stage .subtitle p{font-size:clamp(16px,2.45cqw,28px);line-height:1.25;color:#2e2116;text-shadow:0 0 3px #fffaf0,0 0 6px #fffaf0,0 0 10px #fffaf0cc}
.stage .subtitle.compact p{font-size:clamp(15px,2.1cqw,24px)}
@media(max-width:1000px),(max-height:650px){.stage .subtitle p,.stage .subtitle:is(.on-plate,.compact) p{font-size:13.5px;line-height:1.2}.stage .subtitle{padding:4px 10px 5px!important;border-radius:10px!important}.stage .subtitle .speaker-row{margin-bottom:1px}.stage .subtitle #speaker{font-size:10.5px;padding:0 6px}}
/* the gown designer's bubbles (js/gown.js): a colour swatch, a choice with its little picture */
.bubble.swatch{background:radial-gradient(circle at 34% 28%,#fffffff0 0 8%,var(--c) 22% 66%,color-mix(in srgb,var(--c) 70%,#6b4a2a) 100%);box-shadow:inset 0 0 0 3px #fffaf0dd,0 0 0 2px #d8b25a,0 6px 16px #2f281d48}
.bubble.swatch span{color:#3a2a1a;background:#fffaf0e0;border-radius:8px;padding:1px 6px;font-size:calc(var(--d)*.15)}
.bubble.choice{box-shadow:inset 0 0 0 3px #fffaf0dd,0 0 0 2px #d8b25a,0 6px 16px #2f281d48}
.bubble.choice span{font-size:calc(var(--d)*.17)}
/* ---------------------------------------------------------------- Külkedisi 2.0: the dress-up studio (js/studio.js, DRESSUP.md)
   Inside the mirror: a rose-gold backdrop with candle bokeh, the doll in the middle, the gold-leaf tab medallions on the left,
   the swatches on the right, Sürpriz / Geri al / Hazırım at the bottom right. The words of a line stay at the top. */
.studio{position:absolute;inset:0;z-index:2;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr) minmax(0,1.75fr);grid-template-rows:12% minmax(0,1fr) auto;
  gap:1.2cqw;padding:0 1.6cqw 1.6cqw;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:none;
  background:radial-gradient(circle at 12% 18%,#ffe9b066 0 4%,transparent 9%),radial-gradient(circle at 86% 22%,#ffd9a855 0 3%,transparent 8%),radial-gradient(circle at 70% 82%,#ffe2c044 0 5%,transparent 11%),radial-gradient(circle at 22% 78%,#ffd2d855 0 4%,transparent 10%),radial-gradient(ellipse at 50% 40%,#fbe2dc 0,#efc3c0 45%,#c98f93 100%);
  animation:st-in .5s ease-out}
@keyframes st-in{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}
.st-mirror{grid-column:2;grid-row:1/4;position:relative;border-radius:48% 48% 10px 10px/30% 30% 10px 10px;margin:1.2cqw 0 0;
  background:radial-gradient(ellipse at 50% 35%,#fff7f0 0,#f6dcd6 55%,#e7b9b6 100%);box-shadow:inset 0 0 0 .5cqw #e8c26a,inset 0 0 0 .8cqw #fff1c9,inset 0 0 0 1.1cqw #b98a2e,inset 0 0 3cqw #a0606a66,0 1cqw 3cqw #5a2a2a55}
.st-doll{position:absolute;inset:3% 6% 2%;display:flex;align-items:flex-end;justify-content:center}
.st-doll canvas{height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(0 .6cqw .8cqw #6b3a3a55)}
.st-doll.sway canvas{animation:st-sway .6s ease-in-out}
@keyframes st-sway{30%{transform:rotate(-1.2deg) translateY(-.3%)}70%{transform:rotate(.8deg)}}
.st-shine{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(105deg,transparent 35%,#fff8e6cc 48%,#ffffff 50%,#fff8e6cc 52%,transparent 65%);background-size:250% 100%;mix-blend-mode:screen}
.st-shine.go{animation:st-shine .7s ease-out}
@keyframes st-shine{0%{opacity:1;background-position:120% 0}100%{opacity:0;background-position:-30% 0}}
.st-tabs{grid-column:1;grid-row:2/4;display:grid;grid-template-columns:repeat(2,6.8cqw);justify-content:center;align-content:center;gap:1cqw 1.4cqw}
.st-tab{width:6.8cqw;height:6.8cqw;border-radius:50%;border:0;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;position:relative;
  background:radial-gradient(circle at 35% 30%,#fff7d6 0,#f3d07a 38%,#c8962d 72%,#8d5f17 100%);box-shadow:inset 0 0 0 .3cqw #fff2c299,inset 0 -.4cqw .8cqw #7a4c0f66,0 .4cqw .8cqw #5a2a2a55;transition:transform .15s}
.st-tab img{width:62%;height:62%;object-fit:contain}
.st-glyph{font:800 clamp(9px,1.25cqw,15px)/1.05 Fredoka,Nunito,sans-serif;color:#5a3410;text-align:center;padding:0 6%}
.st-tab.on{transform:scale(1.12);box-shadow:inset 0 0 0 .3cqw #fff,0 0 0 .35cqw #fff7e0,0 0 1.6cqw #ffe08acc,0 .4cqw .8cqw #5a2a2a55}
.st-tab.new::after{content:"";position:absolute;right:6%;top:6%;width:18%;height:18%;border-radius:50%;background:radial-gradient(circle,#fff 0 30%,#ff9dbd 60%);box-shadow:0 0 .8cqw #fff}
.studio.st-hint .st-tab.new{animation:st-pulse 1.2s ease-in-out infinite}
.studio.st-hint .st-ready{animation:st-pulse 1.2s ease-in-out infinite}
@keyframes st-pulse{50%{transform:scale(1.12);filter:brightness(1.12)}}
.st-opts{grid-column:3;grid-row:2;align-self:center;display:flex;flex-direction:column;gap:.9cqw;padding:1.4cqw 1.6cqw;border-radius:2cqw;
  background:linear-gradient(#fffaf0f2,#f8eedbf0);box-shadow:0 0 0 .25cqw #d8b25a,0 0 0 .55cqw #fbf3df,0 .8cqw 2cqw #5a2a2a44;max-height:100%;overflow:hidden}
.st-title{font:800 clamp(14px,2.2cqw,26px)/1 Fredoka,Nunito,sans-serif;color:#7a4a16;text-align:center}
.st-sub{font:700 clamp(10px,1.3cqw,15px)/1 Fredoka,Nunito,sans-serif;color:#9a6a2a;margin-top:.2cqw}
.st-row{display:flex;flex-wrap:wrap;gap:.9cqw;justify-content:center}
.st-sw{width:clamp(44px,6.4cqw,80px);aspect-ratio:1;border-radius:50%;border:0;padding:0;cursor:pointer;overflow:hidden;position:relative;
  background:#fff center/cover;box-shadow:inset 0 0 0 .2cqw #fff,0 0 0 .18cqw #d8b25a,0 .3cqw .7cqw #5a2a2a44;transition:transform .15s}
.st-row.n6 .st-sw,.st-row.n8 .st-sw{width:clamp(40px,5.4cqw,70px)}
.st-sw canvas{width:100%;height:100%;object-fit:cover;display:block}
.st-sw.st-colour{background:radial-gradient(circle at 34% 28%,#ffffffcc 0 8%,var(--c) 26% 64%,color-mix(in srgb,var(--c) 72%,#5a3a2a) 100%)}
.st-sw.st-pattern{background-size:180%}
.st-sw.st-pattern.plain{background:radial-gradient(circle at 34% 28%,#fff 0 10%,#f3ead6 50%,#d9c39a 100%)}
.st-sw.st-none::before{content:"";position:absolute;inset:22%;border:.3cqw solid #b98a6a;border-radius:50%}
.st-sw.st-none::after{content:"";position:absolute;left:18%;right:18%;top:50%;height:.3cqw;background:#b98a6a;transform:rotate(-45deg)}
.st-sw{flex:none;box-sizing:border-box}
/* the chosen one: a gold ring drawn INSIDE its own circle, same size as the others (the parent, 16 Nov: the 'none' button was bigger and overlapped its neighbours) */
.st-sw.on{transform:none;box-shadow:inset 0 0 0 .32cqw #e8b93f,inset 0 0 0 .5cqw #fff8,0 0 .9cqw #ffd76a99}
.st-sw.st-none{background:radial-gradient(circle at 34% 28%,#fff 0 12%,#fbf3e4 55%,#ecdcbf 100%)}
.st-bar{grid-column:3;grid-row:3;display:flex;gap:1cqw;justify-content:flex-end;align-items:center}
.st-btn{border:0;cursor:pointer;border-radius:999px;padding:.9cqw 1.8cqw;font:800 clamp(12px,1.7cqw,22px)/1 Fredoka,Nunito,sans-serif;color:#5a3410;
  background:linear-gradient(#fff6d8,#efcd77 55%,#d0a040);box-shadow:inset 0 0 0 .2cqw #fff3c8,0 .35cqw .8cqw #5a2a2a55}
.st-btn.st-ready{color:#fff;background:linear-gradient(#ff9fbd,#e35f8b 60%,#b83a66);box-shadow:inset 0 0 0 .2cqw #ffd0de,0 .35cqw .9cqw #6a1f3a66;padding:1.1cqw 2.4cqw}
.st-btn:disabled{opacity:.45;cursor:default}
.st-fx{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.st-spark{position:absolute;width:1.4cqw;height:1.4cqw;background:radial-gradient(circle,#fff 0 20%,#ffe08a 50%,transparent 70%);clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%);animation:st-spark 2.6s ease-out forwards;opacity:0}
@keyframes st-spark{0%{opacity:1;transform:translate(0,0) scale(.6)}80%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1.1) rotate(180deg)}}
/* the finish: the tabs and swatches go, the mirror opens to a full-length look */
.studio.st-final .st-tabs,.studio.st-final .st-opts,.studio.st-final .st-bar{opacity:0;transform:translateX(4cqw);transition:opacity .5s,transform .5s;pointer-events:none}
.studio.st-final .st-mirror{grid-column:1/4;transition:all .8s ease-out}
.studio.st-final .st-doll canvas{animation:st-flare 1.6s ease-in-out}
@keyframes st-flare{0%{transform:scale(.92)}50%{transform:scale(1.03) rotate(-1deg)}100%{transform:scale(1)}}
/* phones (a short picture): smaller gaps, the words at the very top */
@media(max-height:500px){.studio{grid-template-rows:19% minmax(0,1fr) auto;gap:1cqw;padding:0 1.2cqw 1.2cqw}.st-tabs{grid-template-columns:repeat(2,8cqw);gap:.7cqw 1cqw}.st-tab{width:8cqw;height:8cqw}.st-opts{padding:1cqw 1.2cqw;gap:.6cqw}}
/* the close-up portrait (ball entrance, wedding) */
.st-portrait{position:absolute;z-index:2;top:8%;width:24%;aspect-ratio:11/12;border-radius:50%;overflow:hidden;opacity:0;transform:scale(.85);transition:opacity .6s,transform .6s;pointer-events:none;
  box-shadow:0 0 0 .5cqw #e8c26a,0 0 0 .9cqw #fff1c9,0 0 0 1.2cqw #b98a2e,0 1cqw 3cqw #2a1a0a88;background:radial-gradient(ellipse,#fff4ec,#efc3c0)}
.st-portrait.left{left:4%}.st-portrait.right{right:4%}
.st-portrait canvas{width:100%;height:100%;object-fit:cover}
.st-portrait.in{opacity:1;transform:none}.st-portrait.out{opacity:0;transform:scale(.9)}

.st-tab{overflow:hidden}
.st-tab canvas.st-tabpic{width:78%;height:78%;border-radius:50%;box-shadow:inset 0 0 0 2px #fff6;background:#fff4ec}
.st-tab.g-wheel::before{content:"";width:66%;height:66%;border-radius:50%;background:var(--wheel);box-shadow:0 0 0 .2cqw #fff8,inset 0 0 .6cqw #0002}
.st-tab.g-tile::before{content:"";width:66%;height:66%;border-radius:50%;background:#efe3cf var(--tile) center/200%;box-shadow:0 0 0 .2cqw #fff8}
.st-label{position:absolute;inset:auto 0 -.1cqw;font:800 clamp(7px,1cqw,12px)/1 Fredoka,Nunito,sans-serif;color:#fff;text-shadow:0 1px 2px #5a3410,0 0 3px #5a3410;pointer-events:none;white-space:nowrap}
.st-tab.on .st-label{color:#fff8e0}
.st-sw{width:clamp(46px,7cqw,84px)}
.st-row.n6 .st-sw,.st-row.n8 .st-sw{width:clamp(42px,6cqw,74px)}
.st-line{display:flex;align-items:center;gap:.8cqw}
.st-line .st-sub{width:6.5cqw;text-align:right;flex:none}
.st-line .st-row{justify-content:flex-start}
.st-opts.many{gap:.5cqw}.st-opts.many .st-sw{width:clamp(38px,5.2cqw,64px)}
.st-line .st-row{flex-wrap:nowrap}.st-line .st-sw{width:clamp(34px,5cqw,66px)}
.st-btn{white-space:nowrap}
@media(max-height:500px){.st-btn{padding:.8cqw 1.4cqw;font-size:clamp(11px,1.9cqw,18px)}.st-btn.st-ready{padding:1cqw 1.8cqw}.st-label{display:none}}
.studio.st-final .st-doll{inset:17% 6% 2%;transition:inset .8s}
.st-opts.many .st-line .st-sw{width:clamp(28px,4.3cqw,58px)}.st-opts.many .st-line .st-sub{width:5cqw}
/* (16 Nov review) no labels on the medallions (each tab says its name; the open tab's title is over its swatches); the doll fills her arch */
.st-label{display:none!important}
.studio{grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr) minmax(0,1.75fr)}
.st-mirror{margin-top:.6cqw}
.st-doll{inset:1.5% 3% .5%}
.st-doll canvas{height:104%;margin-bottom:-2%}
.st-sw.st-fabric{border-radius:22%;box-shadow:inset 0 0 0 .2cqw #fff8,inset 0 -.6cqw 1cqw #0000001f,0 0 0 .18cqw #d8b25a,0 .3cqw .7cqw #5a2a2a44}
.st-sw.st-fabric.on{box-shadow:inset 0 0 0 .32cqw #e8b93f,inset 0 0 0 .5cqw #fff8,0 0 .9cqw #ffd76a99}
/* ---------------------------------------------------------------- Külkedisi 2.0: the clean-up close-ups and the house hub
   (js/closeup.js, js/hub.js, CLEANUP.md v2). A close-up is one canvas over the whole picture (the caption and the pause
   button stay above it); the hub's medallions are painted over the kitchen, the press goes through to the picture. */
.closeup{position:absolute;inset:0;z-index:2;touch-action:none}
.closeup canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}
.closeup canvas:active{cursor:grabbing}
.hub{position:absolute;inset:0;z-index:1;pointer-events:none}
.hub.hidden{display:none}
.hub-medal{position:absolute;width:clamp(54px,8.4cqw,104px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(circle at 35% 28%,#fff6d0,#e9c060 45%,#b8862a 80%,#8a5e16);box-shadow:0 .4cqw 1.2cqw #3a200a88,inset 0 0 0 .25cqw #fff3c8;
  transition:opacity .4s,filter .4s,transform .3s}
.hub-medal i{position:absolute;inset:11%;border-radius:50%;background:#e9dcc0 center/cover no-repeat;box-shadow:inset 0 0 0 .2cqw #8a5e16,inset 0 .3cqw .8cqw #0006}
.hub-medal.wait{opacity:.55;filter:saturate(.55) brightness(.9);transform:translate(-50%,-50%) scale(.82)}
.hub-medal.live{animation:hub-breathe 2.6s ease-in-out infinite}
.hub-medal.live::before{content:"";position:absolute;inset:-28%;border-radius:50%;background:radial-gradient(circle,#fff8e2aa 0 40%,#fff1c400 70%);animation:hub-glow 2.6s ease-in-out infinite;z-index:-1}
.hub-medal.live.hint::before{inset:-45%}
.hub-medal.done{opacity:.9}
.hub-medal.done i{filter:saturate(1.1) brightness(1.05)}
.hub-tick{position:absolute;right:-6%;bottom:-6%;width:42%;aspect-ratio:1;border-radius:50%;display:none;
  background:radial-gradient(circle at 35% 30%,#fff7d8,#f0c24a 55%,#b07a18);box-shadow:0 .2cqw .5cqw #3a200a88,inset 0 0 0 .2cqw #fff3c8}
.hub-tick::after{content:"";position:absolute;left:28%;top:18%;width:28%;height:48%;border:solid #6a4410;border-width:0 .55cqw .55cqw 0;transform:rotate(40deg)}
.hub-medal.done .hub-tick{display:block}
.hub-medal.tick .hub-tick{animation:hub-tick .6s cubic-bezier(.3,1.6,.5,1)}
.hub.all .hub-medal{animation:hub-all 1s ease-in forwards}
@keyframes hub-breathe{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.05)}}
@keyframes hub-glow{0%,100%{opacity:.55}50%{opacity:1}}
@keyframes hub-tick{0%{transform:scale(0)}100%{transform:scale(1)}}
@keyframes hub-all{0%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.3)}}
/* the studio's tab with Art's painted medallion (icon_tab_*: one object on rose velvet in its own gold rim): the picture is the button */
.st-tab.has-icon{background:none;box-shadow:none}
.st-tab.has-icon img{width:118%;height:118%;max-width:none;filter:drop-shadow(0 .35cqw .5cqw #5a2a2a66)}
.st-tab.has-icon.on{box-shadow:0 0 0 .3cqw #fff7e0,0 0 1.8cqw #ffe08add}
.hub-medal i canvas{width:100%;height:100%;border-radius:50%;display:block}
.hub-medal.has-icon{background:none;box-shadow:none;filter:drop-shadow(0 .4cqw .7cqw #3a200a99)}
.hub-medal.has-icon i{inset:0;background:center/contain no-repeat;box-shadow:none}
.hub-tick.has-icon{background:center/contain no-repeat;box-shadow:none;filter:drop-shadow(0 .2cqw .3cqw #3a200a99)}
.hub-tick.has-icon::after{display:none}
/* free play "Evi temizle" (CLEANUP.md v2): the title card's second button (Art's btn_freeplay medallion), the end buttons */
.btn.free-play{width:100%;margin-top:10px;display:flex;align-items:center;gap:12px;justify-content:flex-start;background:#fff6e2;color:#5a3410;border:2px solid #d8b25a;font:800 clamp(15px,1.8cqw,21px)/1.1 Fredoka,Nunito,sans-serif;padding:6px 16px 6px 8px;border-radius:999px;cursor:pointer;box-shadow:0 3px 0 #c79a3f55}
.btn.free-play:hover{background:#fff0cf}
.btn.free-play img{width:clamp(34px,4.2cqw,52px);height:auto;filter:drop-shadow(0 2px 3px #5a2a2a55)}
.free-end{position:absolute;left:0;right:0;bottom:4%;z-index:4;display:flex;gap:14px;justify-content:center;pointer-events:auto}
.free-end .btn{width:auto;min-width:9em;justify-content:center}
@media(max-width:1000px),(max-height:650px){.btn.free-play{margin-top:6px;font-size:14px;padding:4px 12px 4px 6px}.btn.free-play img{width:30px}}
.free-end .free-end-btn{min-width:9em;justify-content:center;border-radius:999px;padding:12px 26px;cursor:pointer;background:linear-gradient(#fffaf0,#f3e2bd);color:#5a3410;border:3px solid #d8b25a;box-shadow:0 4px 0 #b8862a66,0 8px 18px #2a1a0a55;font:800 clamp(16px,2.2cqw,26px)/1 Fredoka,Nunito,sans-serif;text-shadow:none}
.free-end .free-end-btn:hover{background:linear-gradient(#fffdf6,#f7e9c8)}
/* free play is an extra (the parent, 17 Nov: "why do i have 2 options in the first screen?"): after a finished tale, a
   small text link under "Masalı oyna"; on the end card a button beside "Yeniden oyna" */
.free-link{display:block;margin:8px auto 0;background:none;border:0;padding:4px 8px;cursor:pointer;color:#7a4a16;font:700 clamp(12px,1.35cqw,16px)/1.2 Nunito,Fredoka,sans-serif;text-decoration:underline;text-underline-offset:3px}
.free-link.hidden{display:none}
.free-link:hover{color:#5a3410}
/* "ya da: evi temizle · fare koşusu" (the parent, 30 Nov 2026: the Mouse Run alone too): both extras on one line */
.free-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline}
.free-row .free-link{margin:8px 0 0}
.free-row .free-link:not(.hidden)~.free-link:not(.hidden)::before{content:"·";display:inline-block;margin-right:8px;text-decoration:none}
.end-card .end-free{width:100%;margin-top:8px;justify-content:center;background:#fff6e2;color:#5a3410;border:2px solid #d8b25a;font-weight:800}
/* the title after a finished tale (17 Nov): the chapter list as a compact two-column grid inside the card (it overflowed
   the card's frame), the card scrolls cleanly if a small screen still needs it; the picture always behind (the kitchen
   plate under the canvas until the first frame is drawn) */
.stage{background:#2a1d14 url(assets/art/places/hearth_mid.webp) center 30%/cover no-repeat}
.title-card .chapters,.end-card .chapters{grid-template-columns:1fr 1fr;gap:5px}
.title-card .chapter-button,.end-card .chapter-button{min-height:34px;padding:6px 8px;font-size:12.5px;line-height:1.15}
.title-card{max-height:calc(100% - 10px);overflow-y:auto;scrollbar-width:thin}
.title-card:has(.pick:not(.hidden)) .presents{display:none}
@media(pointer:coarse){.title-card .chapter-button,.end-card .chapter-button{min-height:40px}}
#stage #game{opacity:0;transition:opacity .35s}
#stage.drawn #game{opacity:1}
.st-line + .st-line{margin-top:.6cqw}
/* the zoom preview (DRESSUP.md v2) and the make-up sub-tabs */
.st-doll{overflow:hidden;border-radius:46% 46% 8px 8px/28% 28% 8px 8px}
.st-zoom{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;transform-origin:0 0;transition:transform .35s ease}
.st-zoom canvas{height:100%;max-width:100%;object-fit:contain}
.st-zoom canvas.st-glit{position:absolute;pointer-events:none;filter:none}
.st-whole{position:absolute;left:50%;bottom:3%;transform:translateX(-50%);z-index:2;display:none;border:0;border-radius:999px;padding:.6cqw 1.4cqw;font:800 clamp(10px,1.4cqw,16px)/1 Fredoka,Nunito,sans-serif;color:#5a3410;background:linear-gradient(#fff6d8,#efcd77);box-shadow:0 .3cqw .7cqw #5a2a2a55;cursor:pointer}
.studio.st-zoomed .st-whole{display:block}
.st-pills{display:flex;flex-wrap:wrap;gap:.5cqw;justify-content:center}
.st-pill{border:0;border-radius:999px;padding:.45cqw 1cqw;font:800 clamp(9px,1.25cqw,15px)/1 Fredoka,Nunito,sans-serif;color:#7a4a16;background:#f6e6c8;box-shadow:inset 0 0 0 .15cqw #d8b25a;cursor:pointer}
.st-pill.on{background:linear-gradient(#ff9fbd,#e35f8b);color:#fff;box-shadow:inset 0 0 0 .15cqw #ffd0de}
.st-zoom canvas.st-glit{left:0;top:0}
.st-line .st-row.n9,.st-line .st-row.n10,.st-line .st-row.n11,.st-line .st-row.n12,.st-line .st-row.n13,.st-line .st-row.n14,.st-line .st-row.n15,.st-line .st-row.n16{flex-wrap:wrap;max-width:31cqw}
.st-line .st-row.n9 .st-sw,.st-line .st-row.n10 .st-sw,.st-line .st-row.n11 .st-sw,.st-line .st-row.n12 .st-sw,.st-line .st-row.n13 .st-sw,.st-line .st-row.n14 .st-sw,.st-line .st-row.n15 .st-sw,.st-line .st-row.n16 .st-sw{width:clamp(26px,4.4cqw,52px)}
/* the gown's 16 colours and the 10 trims (one group): a neat wrapped grid of smaller swatches */
.st-row.n16 .st-sw,.st-row.n10 .st-sw{width:clamp(34px,4.6cqw,60px)}

/* the WebGL context lost (js/stage.js): a small card to reload, never a dead picture */
.gl-lost-card{display:none}
body.gl-lost .gl-lost-card{display:flex;z-index:20}
/* the hub (17 Nov, the parent's phone): the NEXT chore is the one to tap: a little larger, a pale breathing ring with three
   twinkles going round, a gentle bounce after ~3 s idle, the ghost finger tapping it after 30 s; the others dimmed */
.hub-medal.next{transform:translate(-50%,-50%) scale(1.14);animation:none}
.hub-medal.next::before{display:none}
.hub-ring{display:none;position:absolute;inset:-17%;border-radius:50%;pointer-events:none;border:2px solid #fff8e6cc;box-shadow:0 0 .9cqw #fff2c8aa,inset 0 0 .6cqw #fff2c866;animation:hub-ring-breathe 2.4s ease-in-out infinite}
.hub-ring::before,.hub-ring::after{content:"";position:absolute;inset:-6%;border-radius:50%;background:
  radial-gradient(circle at 50% 0,#fff 0 2.5%,#fff0 4%),radial-gradient(circle at 93% 70%,#fff 0 2%,#fff0 3.5%),radial-gradient(circle at 7% 70%,#fff 0 2%,#fff0 3.5%);animation:hub-twinkle 6s linear infinite}
.hub-ring::after{animation-duration:9s;animation-direction:reverse;opacity:.6}
.hub-medal.next .hub-ring{display:block}
.hub-medal.next.hint{animation:hub-bounce 2.4s ease-in-out infinite}
.hub-finger{display:none;position:absolute;left:38%;top:42%;width:62%;height:auto;pointer-events:none;filter:drop-shadow(0 .2cqw .3cqw #0006)}
.hub-medal.ghost .hub-finger{display:block;animation:hub-tap 2.6s ease-in-out}
.hub-medal.wait{transform:translate(-50%,-50%) scale(.78)}
@keyframes hub-ring-breathe{0%,100%{opacity:.75;transform:scale(1)}50%{opacity:1;transform:scale(1.05)}}
@keyframes hub-twinkle{to{transform:rotate(360deg)}}
@keyframes hub-bounce{0%,72%,100%{transform:translate(-50%,-50%) scale(1.14)}80%{transform:translate(-50%,-58%) scale(1.16)}88%{transform:translate(-50%,-50%) scale(1.12)}94%{transform:translate(-50%,-53%) scale(1.14)}}
@keyframes hub-tap{0%{opacity:0;transform:translate(40%,40%)}25%{opacity:.95;transform:translate(0,0)}40%{transform:translate(-4%,-6%) scale(.9)}55%{transform:translate(0,0) scale(1)}80%{opacity:.95}100%{opacity:0}}
/* (17 Nov, the parent: "the items on the left menu must be scrollable") the tab column and the options panel scroll by touch
   (momentum, never the page), a soft fade where more is hidden; a tap acts only when the finger moved < 8 px (js/studio.js) */
.studio{touch-action:manipulation}
.st-tabs{overflow-y:auto;overflow-x:hidden;align-content:start;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:1cqw .6cqw;max-height:100%}
.st-tabs::-webkit-scrollbar,.st-opts::-webkit-scrollbar{display:none}
.st-tabs.more-down{-webkit-mask-image:linear-gradient(#000 82%,transparent);mask-image:linear-gradient(#000 82%,transparent)}
.st-tabs.more-up{-webkit-mask-image:linear-gradient(transparent,#000 18%);mask-image:linear-gradient(transparent,#000 18%)}
.st-tabs.more-up.more-down{-webkit-mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent)}
.st-opts{overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.st-opts.more-down{-webkit-mask-image:linear-gradient(#000 85%,transparent);mask-image:linear-gradient(#000 85%,transparent)}
.st-opts.more-up.more-down{-webkit-mask-image:linear-gradient(transparent,#000 12%,#000 85%,transparent);mask-image:linear-gradient(transparent,#000 12%,#000 85%,transparent)}
.st-opts.more-up:not(.more-down){-webkit-mask-image:linear-gradient(transparent,#000 12%);mask-image:linear-gradient(transparent,#000 12%)}

/* a held fan/posy with long sleeves (her bare hand would show): greyed, a wiggle and a small hint on a tap */
.st-sw.st-off{filter:grayscale(1);opacity:.42}
.st-sw.st-off.nope{animation:stNope .35s ease}
@keyframes stNope{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
.st-heldhint{font-size:clamp(10px,1.1cqw,13px);color:#8a6a55;text-align:center;opacity:.75;margin-top:.4cqw;transition:opacity .3s}
.st-heldhint.show{opacity:1;color:#a24a5e}
