/* Soma road, foundation world. Everything is prefixed sf- and lives only on soma-foundation.html. */
.sf-root{font-family:Cairo,Tahoma,sans-serif;color:#22324a}
.sf-root button,.sf-play button{font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.sf-map{max-width:560px;margin:0 auto;background:linear-gradient(#bfe9ff,#7fd0f5 60%,#4fb6ea);border-radius:24px;padding:12px 14px 20px;min-height:70vh}
.sf-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.sf-top h1{flex:1;margin:0;font-size:20px;font-weight:900;text-align:center;color:#12365a}
.sf-tag{font-size:12px;font-weight:800;background:#fff;border-radius:10px;padding:2px 10px}
.sf-ic{width:52px;height:52px;border:0;border-radius:50%;background:#fff;font-size:24px;display:-webkit-inline-flex;display:inline-flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;padding:0;text-decoration:none;box-shadow:0 3px 0 rgba(18,54,90,.25);flex:none;color:#12365a}
.sf-sea{position:relative;display:flex;flex-direction:column;gap:6px;padding:10px 0 60px}
.sf-isl{position:relative;align-self:flex-start;margin-left:calc(var(--x) - 48px);width:96px;height:84px;border:0;border-radius:50% 50% 46% 46%;background:#ffe9a8;box-shadow:0 6px 0 #e3c46c,0 10px 0 rgba(18,54,90,.18);font-size:42px;line-height:1;direction:ltr}
.sf-isl i{position:absolute;right:-6px;top:-6px;width:28px;height:28px;border-radius:50%;background:#12365a;color:#fff;font:900 14px/28px Nunito,sans-serif;font-style:normal}
.sf-isl.lock{background:#dfe9ef;box-shadow:0 6px 0 #b9c7d1;filter:saturate(.4);font-size:28px}
.sf-isl.done{background:#c9f3c4;box-shadow:0 6px 0 #7cc874}
.sf-boat0{position:absolute;bottom:6px;left:14px;font-size:44px;animation:sfbob 2.4s ease-in-out infinite}
.sf-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;padding:6px 4px}
.sf-ses{position:relative;min-height:112px;border:0;border-radius:26px;background:#fff;box-shadow:0 6px 0 rgba(18,54,90,.22);font-size:56px;line-height:1;display:grid;place-items:center}
.sf-ses i{position:absolute;top:6px;left:10px;font-size:22px;font-style:normal}
.sf-ses.done{background:#eaffdf}
.sf-ses.lock{background:#e6edf2;font-size:34px;box-shadow:0 6px 0 #b9c7d1}
.sf-boatb{grid-column:1/-1;background:#fff6d6}
.sf-boatb em{position:absolute;bottom:8px;left:0;right:0;text-align:center;font:900 16px Nunito,sans-serif;font-style:normal}
.sf-note{margin:14px 6px 0;font-size:13px;font-weight:700;color:#12365a;text-align:center}
.shake{animation:sfshake .4s}
/* the play frame */
.sf-play{position:fixed;top:0;right:0;bottom:0;left:0;z-index:90;background:#fffaf0;display:flex;flex-direction:column;font-family:Cairo,Tahoma,sans-serif;color:#22324a;direction:rtl;padding:env(safe-area-inset-top,0) 0 env(safe-area-inset-bottom,0)}
.sf-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;direction:ltr}
.sf-dots{flex:1;min-width:0;display:flex;gap:clamp(2px,1.2vw,6px);justify-content:center}
.sf-dots i{flex:0 1 14px;min-width:5px;max-width:14px;aspect-ratio:1;height:auto;border-radius:50%;background:#e3e8ee}
.sf-dots i.on{background:#3f9b5a}.sf-dots i.now{background:#ffb300;transform:scale(1.3)}
.sf-stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:8px 16px;max-width:720px;width:100%;margin:0 auto;box-sizing:border-box;position:relative;direction:ltr}
.sf-foot{display:flex;align-items:center;gap:10px;padding:6px 14px 14px;max-width:720px;width:100%;margin:0 auto;box-sizing:border-box;min-height:88px}
.sf-buddy{width:72px;height:72px;object-fit:contain;flex:none}
.sf-cap{flex:1;margin:0;font-size:14px;font-weight:700;color:#7b8794;background:#fff;border-radius:14px;padding:6px 12px}
.sf-next{width:76px;height:76px;border:0;border-radius:50%;background:#3f9b5a;color:#fff;font-size:34px;font-weight:900;box-shadow:0 5px 0 #2c7442;animation:sfpulse 1s ease-in-out infinite;flex:none;transform:scaleX(-1)}
.sf-row{display:grid;gap:14px;width:100%;justify-content:center}
.sf-row.n1{grid-template-columns:minmax(0,260px)}.sf-row.n2{grid-template-columns:repeat(2,minmax(0,220px))}.sf-row.n3{grid-template-columns:repeat(3,minmax(0,180px))}.sf-row.n4{grid-template-columns:repeat(2,minmax(0,170px))}
.sf-card{position:relative;aspect-ratio:1;border:4px solid #dbe5ee;border-radius:28px;background:#fff;display:grid;place-items:center;padding:8px;box-shadow:0 6px 0 rgba(18,54,90,.14);overflow:hidden}
.sf-card.ok{border-color:#3f9b5a;background:#eaffdf}
.sf-card u{position:absolute;bottom:8px;left:0;right:0;height:6px}
.sf-pi{width:100%;height:100%;object-fit:contain;pointer-events:none}
.sf-em{font-size:min(22vw,110px);line-height:1;position:relative;pointer-events:none}
.sf-row.n3 .sf-em,.sf-row.n4 .sf-em{font-size:min(17vw,84px)}
.sf-em small{position:absolute;right:-28%;bottom:-8%;font-size:.6em}
.sf-tint{display:grid;place-items:center;width:82%;aspect-ratio:1;border-radius:50%;background:var(--t)}
.sf-tint b{font-weight:400;filter:grayscale(1) brightness(1.5);mix-blend-mode:multiply}
.sf-bal{display:block;width:62%;aspect-ratio:.82;border-radius:50% 50% 50% 50%/45% 45% 55% 55%;background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.7) 0 9%,transparent 10%),var(--c);box-shadow:inset -8px -10px 0 rgba(0,0,0,.12);position:relative;pointer-events:none}
.sf-bal:after{content:"";position:absolute;left:50%;top:100%;width:2px;height:26%;background:#7b8794}
.sf-show{height:30%;min-height:110px;aspect-ratio:1;display:grid;place-items:center;position:relative}
.sf-show .sf-em{font-size:90px}
.sf-who{font-size:0;height:84px;display:grid;place-items:center;animation:sfbob 1.6s ease-in-out infinite}.sf-who .sf-em{font-size:72px}
.sf-ear{position:absolute;right:-18px;top:4px;font-size:44px;animation:sfpulse 1s infinite}
.sf-star,.sf-clap{width:120px;height:120px;border:0;border-radius:50%;background:#ffe27a;font-size:64px;line-height:1;box-shadow:0 7px 0 #e2b93b;animation:sfpulse 1.2s ease-in-out infinite}
.sf-star.ok{background:#c9f3c4;box-shadow:0 7px 0 #7cc874;animation:none}
.sf-pips{display:flex;gap:8px}.sf-pips i{width:18px;height:18px;border-radius:50%;background:#e3e8ee}.sf-pips i.on{background:#ffb300}
.sf-tree{position:relative;font-size:min(62vw,300px);line-height:1}
.sf-apple{border:0;background:none;font-size:50px;line-height:1;padding:4px;min-width:60px;min-height:60px;touch-action:none}
.sf-tree .sf-apple{position:absolute;left:var(--x);top:var(--y)}
.sf-tree .sf-apple.ok{transform:scale(1.3);filter:drop-shadow(0 0 8px #ffb300)}
.sf-pile{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;min-height:70px}
.sf-apple.dim{opacity:.35}.sf-apple.in{font-size:40px;min-width:0;min-height:0;padding:0}
.sf-basket{width:min(80%,300px);min-height:150px;border:4px dashed #c59b53;border-radius:28px;background:#fff3d9;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:8px}
.sf-basket span{font-size:70px;line-height:1}.sf-basket div{display:flex;gap:4px;min-height:46px}
.sf-stk{font-size:110px;line-height:1;animation:sfbob 1.6s ease-in-out infinite}.sf-stk.gone{visibility:hidden}
.sf-sticker-stage,.sf-book-stage{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;justify-content:flex-start}
.sf-sticker-content{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;margin-block:auto}
.sf-book-stage .sf-slots{margin-block:auto}
.sf-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(100%,360px);box-sizing:border-box;background:#fff;border-radius:24px;padding:12px;box-shadow:0 5px 0 rgba(18,54,90,.14)}
.sf-slot{aspect-ratio:1;width:100%;min-width:0;box-sizing:border-box;border:3px dashed #c9d4de;border-radius:18px;background:#f6f9fc;font-size:48px;line-height:1;min-height:64px}
.sf-slot.full{border-style:solid;border-color:#ffb300;background:#fff8e1}
.sf-big{height:44%;max-height:260px;object-fit:contain}
.sf-won{display:flex;gap:8px;font-size:46px}.sf-won i{font-style:normal;animation:sfdrop .6s both}
.sf-boatbig{font-size:120px;line-height:1;animation:sfbob 2.2s ease-in-out infinite}.sf-boatbig.sail{animation:sfsail 2.4s ease-in forwards}
.sf-stars{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;width:min(100%,420px)}
.sf-stars i{font-style:normal;font-size:24px;text-align:center;filter:grayscale(1);opacity:.3}.sf-stars i.on{filter:none;opacity:1}
.sf-go{border:0;border-radius:40px;background:#3f9b5a;color:#fff;font-size:34px;padding:10px 34px;box-shadow:0 5px 0 #2c7442}
.pop{animation:sfpop .3s}.wig{animation:sfwig .7s 2;border-color:#ffb300}
@keyframes sfpop{50%{transform:scale(1.08)}}
@keyframes sfwig{0%,100%{transform:rotate(0)}25%{transform:rotate(-5deg) scale(1.06)}75%{transform:rotate(5deg) scale(1.06)}}
@keyframes sfpulse{50%{transform:scale(1.08)}}
.sf-next{animation-name:sfpulsex}@keyframes sfpulsex{0%,100%{transform:scaleX(-1)}50%{transform:scaleX(-1.08) scaleY(1.08)}}
@keyframes sfbob{50%{transform:translateY(-8px)}}
@keyframes sfshake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@keyframes sfdrop{from{transform:translateY(-60px) scale(.3);opacity:0}}
@keyframes sfsail{to{transform:translateX(120vw) rotate(6deg)}}
@media (prefers-reduced-motion:reduce){.sf-play *,.sf-map *{animation:none!important}}
.sf-why{background:#fff;border-radius:16px;padding:10px 12px;font-size:14px;line-height:1.7}
.sf-art{width:1em;height:1em;max-width:none;object-fit:contain;vertical-align:middle;pointer-events:none}
.sf-isl .sf-art{width:1.9em;height:1.9em}.sf-isl:has(.sf-art){background:none;box-shadow:none}
.sf-ses .sf-art{width:1.4em;height:1.4em}.sf-boat0 .sf-art{width:1.6em;height:1.6em}
.sf-tree.img{width:min(78vw,340px);aspect-ratio:1;font-size:0}.sf-tree.img>.sf-art{width:100%;height:100%}.sf-tree.img .sf-apple{font-size:46px}
.sf-who .sf-pi{height:84px;width:auto}.sf-slot .sf-art,.sf-stk .sf-art{width:1em;height:1em}
.sf-ic .sf-art{width:38px;height:38px;min-width:38px;min-height:38px;max-width:none;display:block;-webkit-flex:none;flex:none}.sf-next .sf-art{width:52px;height:52px}.sf-star .sf-art{width:88px;height:88px}.sf-ear .sf-art{width:52px;height:52px}
.sf-ses .sf-art{width:84px;height:84px;border-radius:14px}.sf-ses i .sf-art{width:26px;height:26px}.sf-won .sf-art{width:56px;height:56px}.sf-ses.lock .sf-art{width:44px;height:44px;opacity:.7}
.sf-clap .sf-art{width:88px;height:88px}
.sf-boatb .sf-art{width:66px;height:66px;margin-bottom:22px}.sf-go .sf-art{width:44px;height:44px}
.sf-let{font-family:Fredoka,Nunito,sans-serif;font-weight:600;font-size:min(26vw,120px);line-height:1;color:#22324a;pointer-events:none}
.sf-row.n3 .sf-let{font-size:min(20vw,96px)}
.sf-text{font-family:Fredoka,Nunito,sans-serif;font-weight:600;font-size:44px;background:#fff;border-radius:18px;padding:6px 22px;box-shadow:0 4px 0 rgba(18,54,90,.14)}
.sf-tr{height:min(54vh,440px);max-width:100%;touch-action:none;background:#fff;border-radius:28px;box-shadow:0 6px 0 rgba(18,54,90,.14)}
.sf-tr .ln{stroke:#cfe3f5;stroke-width:1;stroke-dasharray:3 3}.sf-tr .ln.b{stroke:#f3b5b5;stroke-dasharray:none}
.sf-tr .g,.sf-tr .ink{fill:none;stroke:#dbe5ee;stroke-width:13;stroke-linecap:round;stroke-linejoin:round}
.sf-tr .ink{stroke:#e0752d}
.sf-tr .dot{fill:#3f9b5a;stroke:#fff;stroke-width:2;animation:sfblink 1s ease-in-out infinite}
.sf-tr .hand{fill:#ffb300;stroke:#fff;stroke-width:1.5;opacity:.9;pointer-events:none}
@keyframes sfblink{50%{opacity:.45}}
.sf-tiles,.sf-sent{display:flex;gap:14px;direction:ltr;transition:gap .5s}
.sf-tiles.joined{gap:0}
.sf-tile,.sf-wtile{min-width:84px;height:104px;border:4px solid #dbe5ee;border-radius:22px;background:#fff;font-family:Fredoka,Nunito,sans-serif;font-weight:600;font-size:68px;line-height:1;color:#22324a;box-shadow:0 6px 0 rgba(18,54,90,.14);padding:0 14px}
.sf-wtile{font-size:54px;height:92px}
.sf-tile.ok,.sf-wtile.ok{border-color:#3f9b5a;background:#eaffdf}
.sf-tiles.joined .sf-tile{border-radius:0;border-left-width:0;border-right-width:0;min-width:64px}
.sf-tiles.joined .sf-tile:first-child{border-radius:22px 0 0 22px;border-left-width:4px}.sf-tiles.joined .sf-tile:last-child{border-radius:0 22px 22px 0;border-right-width:4px}
.k-blend .sf-row .sf-card,.k-pick .sf-text+.sf-row .sf-card{max-height:26vh}
.sf-list{grid-auto-rows:minmax(112px,auto)}
.sf-conf{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99;pointer-events:none;overflow:hidden}
.sf-conf i{position:absolute;top:-40px;font-style:normal;animation:sffall 1.5s ease-in forwards}
@keyframes sffall{to{transform:translateY(105vh) rotate(260deg);opacity:.6}}
.sf-card.ok .sf-pi,.sf-card.ok .sf-em,.sf-card.ok .sf-let{animation:sfjump .6s}
@keyframes sfjump{30%{transform:translateY(-14px) scale(1.08)}60%{transform:translateY(0) scale(.97)}}
.sf-pair{display:flex;gap:18px;align-items:baseline;font-family:Fredoka,Nunito,sans-serif;direction:ltr}
.sf-pair b{font-weight:600;font-size:54px;line-height:1;color:#12365a}.sf-pair b.sm{color:#e0752d}
.k-trace .sf-tr{height:min(46vh,400px)}
.sf-tr .arr{fill:#3f9b5a}.sf-tr .num{font:700 9px Nunito,sans-serif;fill:#12365a;text-anchor:middle}
.sf-mic{width:124px;height:124px;border:0;border-radius:50%;background:#ffd9c7;font-size:60px;line-height:1;box-shadow:0 7px 0 #e79a78;animation:sfpulse 1.2s ease-in-out infinite}
.sf-mic .sf-art{width:84px;height:84px}
.sf-mic.on{background:#ff8a65;box-shadow:0 7px 0 #c75b39,0 0 0 10px rgba(255,138,101,.25)}.sf-mic.ok{background:#c9f3c4;box-shadow:0 7px 0 #7cc874;animation:none}
.sf-lvl{width:min(70%,260px);height:14px;border-radius:8px;background:#e9eef3;overflow:hidden;direction:ltr}.sf-lvl i{display:block;height:100%;width:0;background:#3f9b5a;transition:width .08s}
.sf-star.sm{width:76px;height:76px;font-size:40px}.sf-star.sm .sf-art{width:52px;height:52px}
.sf-par{display:block;margin:14px auto 0;border:0;border-radius:18px;background:#fff;color:#12365a;font:800 15px Cairo,Tahoma,sans-serif;padding:10px 20px;min-height:48px;box-shadow:0 4px 0 rgba(18,54,90,.2)}
.sf-parents{overflow:auto}.sf-pbody{max-width:640px;width:100%;margin:0 auto;padding:4px 16px 30px;box-sizing:border-box}
.sf-pbody h2{font-size:20px;margin:6px 0 12px}.sf-plist{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sf-plist li{display:flex;gap:10px;align-items:flex-start;background:#fff;border-radius:14px;padding:10px 12px;font-size:15px;font-weight:700;line-height:1.7}
.sf-plist b{flex:none;width:28px;height:28px;border-radius:50%;background:#e3e8ee;display:grid;place-items:center;font:900 14px Nunito,sans-serif}.sf-plist li.done b{background:#3f9b5a;color:#fff}
.sf-ptip{background:#fff6d6;border-radius:14px;padding:10px 12px;font-size:14px;font-weight:700;line-height:1.8}
.sf-print{display:block;margin:10px auto;font-size:17px;font-family:Cairo,Tahoma,sans-serif;font-weight:800}
.sf-sheet{display:none}
.sf-gform{display:flex;gap:8px;direction:rtl}.sf-gform input{font:700 16px Cairo,Tahoma,sans-serif;border:3px solid #dbe5ee;border-radius:14px;padding:8px 12px;min-height:48px;width:200px}
.sf-gform button{border:0;border-radius:14px;background:#3f9b5a;color:#fff;font:800 16px Cairo,Tahoma,sans-serif;padding:0 18px;min-height:48px}
@media print{body.sf-printing>*:not(.sf-parents){display:none!important}body.sf-printing .sf-parents{position:static;background:#fff;padding:0}
 body.sf-printing .sf-bar,body.sf-printing .sf-pbody>*:not(.sf-sheet){display:none!important}
 body.sf-printing .sf-sheet{display:block}.sf-sheet h3{font:700 16px Nunito,sans-serif;text-align:center;margin:0 0 6mm}
 .sf-srow{display:flex;gap:2mm;margin-bottom:5mm;direction:ltr;break-inside:avoid}.sf-srow svg{width:28mm;height:42mm}
 .sf-srow line{stroke:#9bbbd6;stroke-width:.6;stroke-dasharray:2 2}.sf-srow line.b{stroke:#e39a9a;stroke-dasharray:none}
 .sf-srow path{fill:none;stroke:#b9c4cf;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 11}.sf-srow svg.first path{stroke:#55606b;stroke-dasharray:none}}
.sf-card.say{border-color:#ffb300;background:#fff8e1;transform:scale(1.06);transition:transform .2s}
.sf-hear{position:absolute;right:4px;bottom:4px;width:44px;height:44px;border-radius:50%;background:#fff;box-shadow:0 2px 0 rgba(18,54,90,.25);display:grid;place-items:center;font-style:normal;font-size:20px}
.sf-hear .sf-art{width:28px;height:28px}
.sf-par .sf-art,.sf-print .sf-art{width:34px;height:34px;margin-inline-end:6px}

/* islands 3 to 10: longer words and sentences */
.sf-tiles.n4 .sf-tile{min-width:66px;font-size:56px;padding:0 8px}.sf-tiles.n4{gap:10px}
.sf-tiles.n5 .sf-tile{min-width:54px;font-size:48px;padding:0 5px;height:92px}.sf-tiles.n5{gap:7px}
.sf-tiles.joined.n4 .sf-tile,.sf-tiles.joined.n5 .sf-tile{min-width:48px}
.sf-sent{flex-wrap:wrap;justify-content:center;max-width:100%}
.sf-sent.long{gap:8px}.sf-sent.long .sf-wtile{min-width:48px;font-size:clamp(26px,7.4vw,44px);height:auto;min-height:60px;padding:6px 12px;border-radius:16px}
.sf-text.long{font-size:clamp(22px,6.4vw,40px);text-align:center;max-width:94%}
.sf-cap{display:flex;align-items:center;gap:8px}.sf-capi{width:34px;height:34px;object-fit:contain;flex:none}
.sf-go .sf-art{height:44px;width:auto;vertical-align:middle}
.sf-let.w3,.sf-row.n3 .sf-let.w3{font-size:min(15vw,76px)}.sf-let.w4,.sf-row.n3 .sf-let.w4{font-size:min(13vw,62px)}.sf-let.w5,.sf-row.n3 .sf-let.w5{font-size:min(9.5vw,52px)}
.sf-slot .sf-art{width:86%;height:86%;object-fit:contain}

/* children on one device, test, certificate, way on to A1 */
.sf-kid{display:flex;align-items:center;gap:6px;border:0;background:#fff;border-radius:16px;padding:4px 10px;min-height:44px;font-family:Cairo,Tahoma,sans-serif;font-weight:800;font-size:13px;color:#22324a;box-shadow:0 3px 0 rgba(18,54,90,.14)}
.sf-kid .sf-pi,.sf-kid .sf-art{width:30px;height:30px;object-fit:contain}.sf-kid .sf-em{font-size:22px}
.sf-klist,.sf-avs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.sf-kcard{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:96px;border:3px solid #dbe5ee;border-radius:18px;background:#fff;padding:8px;font-family:Cairo,Tahoma,sans-serif;font-weight:800;font-size:15px;color:#22324a}
.sf-kcard.on,.sf-avb.on{border-color:#3f9b5a;background:#eaffdf}.sf-kcard .sf-pi{width:64px;height:64px;object-fit:contain}.sf-kcard .sf-em,.sf-avb .sf-em{font-size:40px}
.sf-avb{width:60px;height:60px;border:3px solid #dbe5ee;border-radius:16px;background:#fff;padding:4px}.sf-avb .sf-pi{width:100%;height:100%;object-fit:contain}
.sf-parents .sf-gform{position:static;display:flex;gap:8px;margin:8px 0}.sf-parents .sf-gform input{flex:1;min-width:0;font-size:16px;padding:10px;border:2px solid #dbe5ee;border-radius:12px;font-family:Cairo,Tahoma,sans-serif}
.sf-parents .sf-gform button{border:0;border-radius:12px;background:#3f9b5a;color:#fff;font-family:Cairo,Tahoma,sans-serif;font-weight:800;font-size:15px;padding:0 16px;min-height:44px}
.sf-card.bad{border-color:#e05a5a;background:#ffe9e9}
.sf-tres{background:#fff8e1;border-radius:12px;padding:8px 12px;font-weight:800;color:#22324a}
.sf-nextw{display:flex;align-items:center;gap:12px;justify-content:center;text-decoration:none;font-family:Cairo,Tahoma,sans-serif;font-size:19px;margin:12px auto;max-width:420px;padding:10px 18px}
.sf-nextw img{width:72px;height:72px;object-fit:cover;border-radius:14px}
.sf-cert .in{border:6px double #c9a227;border-radius:10mm;padding:16mm 12mm;text-align:center;font-family:Cairo,Tahoma,sans-serif;color:#22324a}
.sf-cert h3{font:700 22px Fredoka,Nunito,sans-serif!important;color:#c2185b}.sf-cert p{font-size:18px;margin:6mm 0}.sf-cert b{display:block;font-size:40px;margin:8mm 0;border-bottom:2px dotted #c9a227;padding-bottom:4mm}.sf-cert span{font-size:14px;color:#55606b}
@media print{body.sf-p-cert .sf-sheet:not(.sf-cert){display:none!important}body.sf-printing:not(.sf-p-cert) .sf-cert{display:none!important}}
.sf-cnt{font:700 16px Nunito,sans-serif;color:#7b8794;margin-top:8px}
.sf-row.n5{grid-template-columns:repeat(3,minmax(0,150px))}.sf-row.n5 .sf-let,.sf-row.n4 .sf-let{font-size:min(18vw,84px)}
.sf-slots.many{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:8px}.sf-slots.many .sf-slot{min-height:48px;border-radius:12px}
@media(max-width:380px){.sf-slots:not(.many){grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px}.sf-slots:not(.many) .sf-slot{min-height:48px;border-radius:12px}}
@media(max-height:900px){.sf-sticker-stage .sf-slots:not(.many){grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px}.sf-sticker-stage .sf-slots:not(.many) .sf-slot{min-height:48px;border-radius:12px}.sf-sticker-content{gap:8px}.sf-sticker-stage .sf-stk{font-size:clamp(60px,12vh,88px)}}
@supports not (aspect-ratio:1 / 1){.sf-slot{height:64px}.sf-slots.many .sf-slot{height:48px}}
.sf-planb{display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.sf-pl{background:#fff;border-radius:16px;margin:8px 0;padding:4px 12px;box-shadow:0 3px 0 rgba(18,54,90,.1)}
.sf-pl summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;cursor:pointer;font-size:16px;color:#12365a}
.sf-pl summary i{font:700 13px Nunito,sans-serif;color:#7b8794;background:#f1f5f9;border-radius:10px;padding:2px 8px}
.sf-plg{margin:4px 0 8px;font-weight:800;color:#22324a;background:#eaffdf;border-radius:12px;padding:8px 10px;font-size:14px}
.sf-pl ol{margin:0 0 10px;padding-inline-start:22px;font-size:14px;line-height:1.8;color:#3a4756}.sf-pl li.done{color:#3f9b5a}

/* ===== review 2026-11-18: tablets get a larger play screen; voice notice ===== */
.sf-toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:120;background:#22324a;color:#fff;border-radius:16px;padding:10px 16px;font:700 14px/1.6 Cairo,Tahoma,sans-serif;direction:rtl;max-width:min(92vw,520px);text-align:center;box-shadow:0 6px 18px rgba(0,0,0,.3)}
@media (min-width:700px) and (min-height:700px){
 .sf-stage{zoom:1.12}.sf-bar,.sf-foot{zoom:1.1}
 .sf-tr{height:min(46vh,440px)}.k-trace .sf-tr{height:min(40vh,400px)}
 .k-blend .sf-row .sf-card,.k-pick .sf-text+.sf-row .sf-card{max-height:22vh}
 .sf-map{max-width:720px}
}
@media (min-width:700px) and (min-height:860px){
 .sf-stage{zoom:1.3}.sf-bar,.sf-foot{zoom:1.2}
 .sf-tr{height:min(41vh,440px)}.k-trace .sf-tr{height:min(35vh,400px)}
 .k-blend .sf-row .sf-card,.k-pick .sf-text+.sf-row .sf-card{max-height:20vh}
}
@media (min-width:700px) and (min-height:1000px){
 .sf-stage{zoom:1.5}.sf-bar,.sf-foot{zoom:1.3}
 .sf-tr{height:min(36vh,440px)}.k-trace .sf-tr{height:min(31vh,400px)}
 .k-blend .sf-row .sf-card,.k-pick .sf-text+.sf-row .sf-card{max-height:17vh}
}

/* islands map 2026-11-18: large islands in a zigzag with names and a dotted sailing route */
.sf-map .sf-sea{direction:ltr;gap:0;padding:8px 0 76px}
.sf-map .sf-isl{--s:clamp(136px,36vw,210px);width:var(--s);height:var(--s);margin:0 0 34px calc(var(--x) - var(--s)/2);z-index:1;transition:transform .15s}
.sf-map .sf-isl:active{transform:scale(.95)}
.sf-map .sf-isl .sf-art{width:var(--s);height:var(--s);filter:drop-shadow(0 10px 10px rgba(8,48,84,.3))}
.sf-map .sf-isl i{right:auto;left:2px;top:2px;width:34px;height:34px;font:900 17px/34px Nunito,sans-serif;border:3px solid #fff;box-shadow:0 3px 6px rgba(0,0,0,.22)}
.sf-map .sf-isl.done i{background:#f5b81f;color:#3a2a00}
.sf-map .sf-in{position:absolute;left:50%;top:calc(100% - 12px);transform:translateX(-50%);width:max-content;max-width:min(190px,46vw);padding:3px 12px;border-radius:999px;background:rgba(255,255,255,.95);color:#12365a;font-size:13px;font-weight:800;line-height:1.45;direction:rtl;text-align:center;box-shadow:0 3px 8px rgba(8,48,84,.2)}
.sf-map .sf-isl.lock .sf-in{background:rgba(255,255,255,.75);color:#5d7285}
.sf-route{position:absolute;left:0;top:0;z-index:0;pointer-events:none;overflow:visible}
.sf-route path{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-dasharray:1 15;opacity:.9}
/* 2026-11-18: same direction as the A1 road, start at the bottom and climb */
.sf-map .sf-sea{flex-direction:column-reverse}

/* solo page: only the game */
body{padding-top:0!important;padding-bottom:0!important}
.legalpage{padding-top:6px!important}

.sf-exit{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:2px solid #cfe0ee;background:#fff;border-radius:14px;font-weight:800;color:#12365a;text-decoration:none}
.sf-top .sf-kid{margin-inline-start:auto}
.sharerow{margin:14px 0 18px}.sharebtn{font-size:14px!important;padding:6px 16px!important;min-height:44px;border-width:2px!important}

/* ===== big picture cards: one large scene per island, stacked from the bottom (island 1) to the top ===== */
.sf-map .sf-sea{display:flex;flex-direction:column-reverse;gap:22px;padding:6px 0 30px}
.sf-map .sf-isl{position:relative;display:block;width:100%;height:auto;aspect-ratio:3/2;margin:0;border-radius:26px;overflow:hidden;border:4px solid #fff;
 background:#7fd0e6 url(https://media.englishwithsoma.com/assets/soma-road/fimg/f_map_sea.webp) center/cover;box-shadow:0 8px 0 #2f8fb0,0 14px 18px rgba(8,48,84,.25);text-align:start;padding:0}
.sf-map .sf-isl .sf-pic{position:absolute;top:0;right:0;bottom:0;left:0;display:block}
.sf-map .sf-isl .sf-pic img,.sf-map .sf-isl .sf-pic .sf-art{width:100%;height:100%;object-fit:cover;filter:none}
.sf-map .sf-isl .sf-in{position:absolute;left:0;right:0;top:auto;bottom:0;transform:none;width:auto;max-width:none;border-radius:0;display:block;padding:34px 14px 40px;background:linear-gradient(transparent,rgba(8,40,72,.78));color:#fff;font:900 20px/1.3 Cairo,Tahoma,sans-serif;text-shadow:0 2px 4px rgba(0,0,0,.4)}
.sf-map .sf-isl i{left:auto;inset-inline-start:10px;top:10px;width:40px;height:40px;font:900 20px/40px Nunito,sans-serif;border:3px solid #fff}
.sf-pg{position:absolute;inset-inline:14px;bottom:12px;height:12px;border-radius:99px;background:rgba(255,255,255,.35);overflow:hidden}
.sf-pg s{display:block;height:100%;border-radius:99px;background:#ffc531}
.sf-go{position:absolute;inset-inline-end:12px;top:10px;font-style:normal;font:900 15px/1 Cairo,Tahoma,sans-serif;background:#3f9b5a;color:#fff;padding:9px 16px;border-radius:99px;box-shadow:0 3px 0 #2c7a43}
.sf-map .sf-isl.lock{filter:grayscale(.75) brightness(.92)}
.sf-map .sf-isl.lock .sf-go{background:#6c7a89;box-shadow:0 3px 0 #4d5966}
.sf-map .sf-isl.done .sf-go{background:#f5b81f;color:#3a2a00;box-shadow:0 3px 0 #c58d0a}
.sf-map .sf-isl.lock .sf-in{background:linear-gradient(transparent,rgba(30,40,50,.8));color:#e8eef3}
.sf-map .sf-isl:active{transform:scale(.98)}
.sf-boat0,.sf-route{display:none!important}
@media(min-width:760px){.sf-map .sf-sea{max-width:640px;margin:0 auto}}
/* dark mode readability (2026-11-18): the site-wide dark rule colours every button light, but these buttons sit on white pills */
.sf-cap,.sf-cnt,.sf-pl summary i{color:#5d6b80}
html[data-theme=dark] .sf-root button,html[data-theme=dark] .sf-root button b,html[data-theme=dark] .sf-root summary{color:#22324a}
html[data-theme=dark] .sf-root .sf-next,html[data-theme=dark] .sf-root .sf-go,html[data-theme=dark] .sf-root .sf-gform button,html[data-theme=dark] .sf-root .sf-map .sf-go{color:#fff}
html[data-theme=dark] .sf-root .sf-isl .sf-in{color:#fff}
html[data-theme=dark] .sf-root :is(em,small){color:#22324a}
html[data-theme=dark] .sf-root .sf-go{color:#fff}
html[data-theme=dark] .sf-ic,html[data-theme=dark] body>.sf-ov button{color:#22324a}

/* inner island map: painted island picture with the sessions placed along its path */
.sf-list.sf-inmap{position:relative;display:block;width:min(100%,430px);aspect-ratio:var(--ar,427/640);margin:4px auto 10px;padding:0}
.sf-inmap .sf-inbg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 8px 8px rgba(0,50,80,.25))}
.sf-inmap .sf-ses{position:absolute;transform:translate(-50%,-50%);width:var(--nd,56px);height:var(--nd,56px);min-height:0;border-radius:50%;border:3px solid #fff;box-shadow:0 4px 0 rgba(18,54,90,.3);font-size:0}
.sf-inmap .sf-ses .sf-art{width:68%;height:68%;border-radius:50%}
.sf-inmap .sf-ses.lock .sf-art{width:50%;height:50%}
.sf-inmap .sf-ses i{top:-8px;left:-6px;font-size:0}.sf-inmap .sf-ses i .sf-art{width:22px;height:22px}
.sf-inmap .sf-boatb{border-color:#ffcf33}.sf-inmap .sf-boatb{z-index:3}.sf-inmap .sf-boatb em{position:absolute;z-index:3;top:50%;left:calc(100% + 6px);right:auto;transform:translateY(-50%);white-space:nowrap;font-size:12px;font-style:normal;font-weight:800;background:#12365a;color:#fff;border-radius:99px;padding:0 8px}
.sf-inmap .sf-ses.shake{animation:sfshake2 .4s}
@keyframes sfshake2{25%{transform:translate(calc(-50% - 6px),-50%)}75%{transform:translate(calc(-50% + 6px),-50%)}}

/* Island 1 adventure additions */
.sf-journey{margin:2px 4px 12px;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.9);color:#12365a;font-weight:900;font-size:14px}
.sf-journey span{display:block;height:10px;margin-top:7px;border-radius:99px;background:#e2eaf0;overflow:hidden}.sf-journey i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3f9b5a,#9bd758);transition:width .35s}
.sf-adventure-shell{align-items:center;justify-content:center;padding:18px;background:rgba(14,36,57,.76);overflow:auto}
.sf-adventure-card,.sf-story-card{width:min(100%,620px);max-height:94dvh;overflow:auto;box-sizing:border-box;border:4px solid #f6d36a;border-radius:26px;background:linear-gradient(160deg,#fffdf3,#eaf8ff);padding:18px;text-align:center;box-shadow:0 14px 40px rgba(0,0,0,.24);direction:rtl}
.sf-adventure-echo{width:130px;height:130px;object-fit:contain;display:block;margin:0 auto 4px}.sf-adventure-kicker{margin:0;color:#3f9b5a;font-weight:900}.sf-adventure-card h2,.sf-story-card h2{margin:6px 0;color:#12365a;font-size:clamp(22px,6vw,30px)}.sf-adventure-card>p:not(.sf-adventure-kicker),.sf-story-card p{line-height:1.8;font-size:16px;font-weight:700;color:#30445a}
.sf-adventure-main,.sf-adventure-skip,.sf-story-choice{display:block;width:100%;min-height:50px;margin:9px 0;border:0;border-radius:15px;font:900 16px Cairo,Tahoma,sans-serif;cursor:pointer}
.sf-adventure-main{background:#3f9b5a;color:#fff;box-shadow:0 4px 0 #2c7442}.sf-adventure-skip{border:2px dashed #a05239;background:#fff;color:#7a3827}.sf-story-step{font-weight:900;color:#3f9b5a}.sf-story-img{display:block;width:100%;max-height:34vh;object-fit:cover;border-radius:16px;border:3px solid #fff;box-shadow:0 4px 12px rgba(18,54,90,.14)}
.sf-story-actions{display:grid;grid-template-columns:1fr;gap:6px}.sf-story-choice{background:#fff;border:2px solid #bfd1df;color:#12365a}.sf-story-question{font-size:19px!important;font-weight:900!important}.sf-story-win{padding:10px;border-radius:14px;background:#eaffdf}.sf-story-try{padding:8px;border-radius:14px;background:#fff6d6}
@media(max-height:650px){.sf-adventure-card,.sf-story-card{padding:12px}.sf-adventure-echo{width:90px;height:90px}.sf-story-img{max-height:27vh}}
@media(prefers-reduced-motion:reduce){.sf-journey i{transition:none}}

/* Verified-manager-only lesson review control. */
.sf-admin-skip{min-height:44px;padding:0 12px;border:2px solid #e0752d;border-radius:14px;background:#fff3e6;color:#713800;font:900 13px/1 Cairo,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 3px 0 rgba(113,56,0,.16);flex:none}
.sf-admin-skip:hover{background:#ffe3c2;transform:translateY(-1px)}
.sf-admin-skip:focus-visible{outline:3px solid #f5a623;outline-offset:2px}
.sf-review-end{padding:20px 22px;border:2px dashed #e0752d;border-radius:18px;background:#fff7ed;color:#713800;text-align:center;font:900 18px/1.8 Cairo,sans-serif}
.sf-review-end small{font-size:14px}

/* ---- scene layout (island 1): full-page picture, question bubble on top, friend at the bottom corner ---- */
.sf-play.sc{background-color:#cfe8b0;background-size:cover;background-position:center bottom;background-repeat:no-repeat}
.sf-play.sc .sf-bar{order:0;position:relative;z-index:3}
.sf-play.sc .sf-bar .sf-ic{background:rgba(255,255,255,.88);border-radius:50%}
.sf-play.sc .sf-dots{background:rgba(255,255,255,.72);border-radius:12px;padding:4px 8px}
.sf-play.sc .sf-foot{order:1;position:relative;z-index:3;padding:0 14px 6px;min-height:0;display:block}
.sf-play.sc .sf-cap{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;background:rgba(255,255,255,.95);color:#22324a;font-size:clamp(18px,5vw,24px);line-height:1.5;border:3px solid #ffd34d;border-radius:22px;padding:10px 16px;box-shadow:0 5px 0 rgba(0,0,0,.14)}
.sf-play.sc .sf-stage{order:2;justify-content:flex-end;padding-bottom:calc(112px + env(safe-area-inset-bottom,0px));position:relative;z-index:2}
.sf-play.sc .sf-buddy{position:fixed;left:6px;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:clamp(84px,24vw,128px);height:auto;aspect-ratio:1;z-index:4;filter:drop-shadow(0 4px 4px rgba(0,0,0,.25));pointer-events:none}
.sf-play.sc .sf-next{position:fixed;right:10px;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:5}
.sf-play.sc .sf-card{box-shadow:0 6px 0 rgba(18,54,90,.18),0 0 0 3px rgba(255,255,255,.7)}
.sf-play.sc .sf-buddy{transform:scaleX(-1)}

/* ---- island 1 improvements: energy bar, bigger reacting friend, listen button ---- */
.sf-en{order:0;display:flex;align-items:center;gap:8px;margin:0 auto 6px;padding:0 16px;max-width:520px;width:100%;box-sizing:border-box;direction:ltr;position:relative;z-index:3}
.sf-en span{flex:1;height:16px;border-radius:10px;background:rgba(255,255,255,.75);border:2px solid rgba(0,0,0,.18);overflow:hidden}
.sf-en i{display:block;height:100%;width:0;border-radius:8px;background:linear-gradient(#ffe066,#ff9a1f);transition:width .45s}
.sf-en b{font-size:22px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.3))}
.sf-play.sc .sf-buddy{width:clamp(110px,31vw,170px)}
.sf-play.sc .sf-stage{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}
.sf-play.sc .sf-buddy.hop{animation:sfhop .55s ease-out}
@keyframes sfhop{0%{transform:scaleX(-1) translateY(0)}35%{transform:scaleX(-1) translateY(-22px) scale(1.08)}100%{transform:scaleX(-1) translateY(0)}}
.sf-sayw{width:62px;height:62px;border-radius:50%;border:4px solid #fff;background:#7a52d1;display:grid;place-items:center;box-shadow:0 4px 0 rgba(0,0,0,.2);padding:0}
.sf-sayw .sf-art{width:38px;height:38px}
@media (prefers-reduced-motion:reduce){.sf-play.sc .sf-buddy.hop{animation:none}}

.sf-ptab{width:100%;border-collapse:collapse;margin:10px 0 14px;font-size:14px;background:#fff;border-radius:12px;overflow:hidden}.sf-ptab th,.sf-ptab td{padding:8px 10px;text-align:right;border-bottom:1px solid #e3e8ee;vertical-align:top}.sf-ptab th{background:#eaf4ff}.sf-ptab td:last-child,.sf-ptab th:last-child{text-align:center;white-space:nowrap}

/* island page: the painted island fills the card to its edges and the free space the notes used to take */
.sf-isv{display:flex;flex-direction:column;min-height:calc(100dvh - 24px)}
.sf-isv .sf-list.sf-inmap{width:min(calc(100% + 28px),560px);max-width:none;margin:auto -14px;flex:0 0 auto}
@media (min-width:600px){.sf-isv .sf-list.sf-inmap{margin:auto}}

/* sea decoration around the island (existing road props): the island looks like it floats in water */
.sf-isv{position:relative;overflow:hidden}
.sf-isv>*{position:relative;z-index:1}
.sf-isv>.sf-sdec{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none}
.sf-sdec img{position:absolute;height:auto;filter:drop-shadow(0 4px 4px rgba(0,50,90,.25))}
.sf-sdec .sd-a{width:clamp(54px,16vw,96px);left:4%;top:24%;animation:sdbob 4.2s ease-in-out infinite}
.sf-sdec .sd-b{width:clamp(70px,22vw,120px);right:3%;bottom:7%;animation:sdbob 3.4s ease-in-out infinite .6s}
.sf-sdec .sd-c{width:clamp(34px,10vw,60px);left:5%;bottom:9%;animation:sdbob 3.8s ease-in-out infinite .3s}
.sf-sdec .sd-d{width:clamp(40px,12vw,70px);right:6%;top:36%;transform:rotate(-12deg);animation:sdbob 5s ease-in-out infinite 1s}
.sf-sdec .sd-e{width:clamp(44px,13vw,80px);right:4%;top:21%}
@keyframes sdbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){.sf-sdec img{animation:none!important}}
@media (max-height:700px){.sf-sdec .sd-a,.sf-sdec .sd-d,.sf-sdec .sd-e{display:none}}

/* the parrot friend on the inner island map: sits beside the current station and walks to the next one */
.sf-bobo{position:absolute;z-index:4;width:calc(var(--nd,56px)*2.15);height:auto;transform:translate(-112%,-72%);transition:left .9s ease-in-out,top .9s ease-in-out;pointer-events:none;filter:drop-shadow(0 4px 4px rgba(0,40,70,.35));animation:bobobb 1.6s ease-in-out infinite}
@keyframes bobobb{0%,100%{translate:0 0}50%{translate:0 -5px}}
@media (prefers-reduced-motion:reduce){.sf-bobo{animation:none;transition:none}}
/* the new island pictures carry their own sea: show them as a framed painting */
.sf-inmap .sf-inbg.n{border-radius:24px;box-shadow:0 8px 18px rgba(0,50,90,.28);object-fit:cover;filter:none}

.sf-isv.hasn .sf-sdec{display:none}

/* sea life over the island picture (percent positions inside the picture box) */
.sf-sea2{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:1;overflow:hidden;border-radius:24px}
.sf-sea2 .sx{position:absolute;height:auto;filter:drop-shadow(0 3px 4px rgba(0,30,60,.4))}
.sf-sea2 .sx-tl{left:2%;top:3%;width:21%}.sf-sea2 .sx-tr{right:2%;top:2%;width:26%}
.sf-sea2 .sx-bl{left:3%;bottom:2%;width:15%}.sf-sea2 .sx-br{right:2%;bottom:2%;width:24%}
.sf-sea2 .sb{animation:sxbob 4.2s ease-in-out infinite;transform-origin:50% 90%}
.sf-sea2 .sg{animation:sxglide 9s ease-in-out infinite}
.sf-sea2 .sd{animation:sxhop 3.6s ease-in-out infinite}
.sf-sea2 .sw,.sf-sea2 .sc{animation:sxswim 6s ease-in-out infinite}
.sf-sea2 .sf{animation:sxbuoy 3.2s ease-in-out infinite;transform-origin:50% 60%}
@keyframes sxbob{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(3deg) translateY(-4px)}}
@keyframes sxglide{0%,100%{transform:translateX(0) translateY(0)}50%{transform:translateX(-18px) translateY(-6px)}}
@keyframes sxhop{0%,70%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-16px) rotate(-8deg)}}
@keyframes sxswim{0%,100%{transform:translateX(0) rotate(0)}50%{transform:translateX(-10px) rotate(-3deg)}}
@keyframes sxbuoy{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(4deg) translateY(-2px)}}
@media (prefers-reduced-motion:reduce){.sf-sea2 .sx{animation:none!important}}

/* rigged creatures */
.sf-sea2 .sxr{position:absolute;pointer-events:none}
.sf-sea2 .sxr img{position:absolute;height:auto;display:block}
.sf-sea2 .sxr-bf{width:11%;left:12%;top:22%;z-index:5;animation:rgwander 16s ease-in-out infinite}
.sf-sea2 .sxr-sw{width:21%;right:5%;bottom:2%}
.sf-sea2 .sxr-dolphin{animation:sxhop 3.6s ease-in-out infinite}
.sf-sea2 .sxr-fish{width:20%;right:4%;bottom:5%;animation:rgjump 4.5s ease-in-out infinite}
.sf-sea2 .sxr-lw{width:24%;left:3%;bottom:3%;animation:rgshuffle 6s ease-in-out infinite}
.sf-sea2 .bw{animation:rgflap .28s ease-in-out infinite alternate}
.sf-sea2 .bwl{transform-origin:100% 50%}.sf-sea2 .bwr{transform-origin:0 50%}
.sf-sea2 .ft{transform-origin:100% 50%;animation:rgwag .55s ease-in-out infinite alternate}
.sf-sea2 .dt{transform-origin:50% 0;animation:rgwag .7s ease-in-out infinite alternate}
.sf-sea2 .cl{transform-origin:50% 100%;animation:rgsnap 1.1s ease-in-out infinite alternate}
.sf-sea2 .cll{--a:-14deg}.sf-sea2 .clr{--a:14deg}
@keyframes rgflap{from{transform:scaleX(1)}to{transform:scaleX(.3)}}
@keyframes rgwag{from{transform:rotate(-14deg)}to{transform:rotate(14deg)}}
@keyframes rgsnap{from{transform:rotate(0)}to{transform:rotate(var(--a,10deg))}}
@keyframes rgwander{0%,100%{left:12%;top:22%}25%{left:62%;top:14%}50%{left:74%;top:44%}75%{left:30%;top:52%}}
@keyframes rgjump{0%,60%,100%{transform:translateY(0) rotate(0)}30%{transform:translateY(-34px) rotate(-14deg)}}
@keyframes rgshuffle{0%,100%{transform:translateX(0)}50%{transform:translateX(26px)}}
@media (prefers-reduced-motion:reduce){.sf-sea2 .sxr,.sf-sea2 .sxr img{animation:none!important}}

/* album of friend cards */
.sf-tabs{display:flex;gap:8px;justify-content:center;padding:6px 12px;position:relative;z-index:3}
.sf-tabs button{font:inherit;font-weight:800;font-size:16px;min-height:44px;padding:0 18px;border-radius:22px;border:3px solid #fff;background:#2b4a7a;color:#fff}
.sf-tabs button.on{background:#f5b82e;color:#2a1b00}
.sf-book-stage.cards{display:block;overflow-y:auto;padding:8px 10px 24px}
.sf-ccount{text-align:center;font-weight:800;font-size:18px;margin:4px 0 8px;color:#1d2b53}
.sf-badges{display:flex;justify-content:center;gap:6px;margin-bottom:10px}
.sf-badges img{width:17%;max-width:64px;border-radius:50%;filter:grayscale(1) opacity(.45)}
.sf-badges img.on{filter:none}
.sf-cgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.sf-cd{position:relative;background:none;border:0;padding:0;font:inherit;min-width:0}
.sf-cd.empty{opacity:.7}
.sf-cd.empty img{width:100%;display:block;border-radius:14px}
.sf-cd.empty b{position:absolute;inset:auto 0 18% 0;text-align:center;font-size:22px;color:#6b7a90}
.sf-cdbig{position:relative;border-radius:16px;border:4px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.35);overflow:hidden;background:#fff}
.sf-cdbig img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.sf-cdbig b{display:block;text-align:center;font-size:22px;padding:2px 0 4px;background:#fff;color:#1d2b53}
.sf-cdbig.rare{border-color:#f5b82e;box-shadow:0 0 0 3px #fff3b0,0 0 18px 4px rgba(245,184,46,.85)}
.sf-cdbig.rare::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent);animation:sfShine 2.4s infinite}
@keyframes sfShine{to{left:130%}}
.sf-newcard{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:rgba(10,20,45,.78);display:flex;align-items:center;justify-content:center}
.sf-newcard .in{width:min(78vw,320px);text-align:center;animation:sfCardIn .7s cubic-bezier(.2,1.4,.4,1)}
.sf-newcard p{font-size:26px;font-weight:900;color:#ffe27a;margin:0 0 10px;text-shadow:0 2px 4px rgba(0,0,0,.6)}
.sf-newcard .sf-go{position:static;display:block;margin:14px auto 0;transform:none}
@keyframes sfCardIn{from{transform:scale(.2) rotateY(180deg);opacity:0}to{transform:none;opacity:1}}

.sf-emo{font-size:30px;line-height:1;display:inline-block}

.sf-testb{display:flex;align-items:center;justify-content:center;margin:0 auto 10px;background:#f08a1c;color:#fff;text-decoration:none;width:-webkit-fit-content;width:fit-content}
