html,body{margin:0;width:100%;height:100%;background:#122c4c}*{box-sizing:border-box}.ha-board{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px clamp(8px,2vw,28px);color:#17324d;scrollbar-color:#174a7e #e6f1f4}.ha-heading{display:flex;align-items:center;gap:16px;min-height:104px;max-width:1060px;margin:0 auto 8px}.ha-bodi{width:100px;height:112px;object-fit:contain;flex:none}.ha-prompt{font-size:clamp(19px,2.2vw,29px);font-weight:600;margin:0;max-width:36ch;color:#fff;text-shadow:0 2px 4px #122c4c}.ha-model{display:flex;gap:3px;align-items:end;padding:6px 12px;background:#f1f8fc;border-radius:16px;width:max-content;max-width:100%;margin-top:8px}.ha-model img{width:22px;height:38px;object-fit:contain}.ha-model small{font-size:16px;align-self:center;margin-right:6px}.ha-layout{max-width:1040px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px;align-items:start}.ha-stage{min-width:0;position:relative}.ha-actions{display:flex;flex-direction:column;gap:16px}.ha-zone{position:relative;border:2px dashed #8aa6be;border-radius:22px;background:#eef6fbeb;min-height:90px;padding:10px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px}.ha-zone-label{width:100%;font-size:16px;line-height:1.25;text-align:center;margin:0 0 5px;color:#174a7e}.ha-token{appearance:none;font:inherit;border:0;background:transparent;padding:2px;display:inline-flex;align-items:center;justify-content:center;position:relative;min-width:50px;min-height:56px;touch-action:none;cursor:grab;border-radius:12px;flex:none}.ha-token img{display:block;width:48px;height:48px;object-fit:contain;pointer-events:none}.ha-token[data-type="candle"] img,.ha-token[data-type="helper"] img{height:72px;width:36px}.ha-token:focus-visible,.ha-zone:focus-visible,.ha-slot:focus-visible{outline:3px solid #174a7e;outline-offset:3px}.ha-token[aria-pressed="true"],.ha-selected{background:#b9dff4!important;outline:3px solid #174a7e}.ha-finalizer{min-height:105px}.ha-finalizer img{width:74px;height:74px}.ha-final-target{border-style:solid;background:#d9ecf7;min-height:112px}.ha-feedback{min-height:27px;color:#fff;font-size:19px;margin:8px auto 0;max-width:1040px;text-shadow:0 2px 4px #122c4c}.ha-menorah{height:260px;position:relative;margin-bottom:10px;border:0;background:transparent;padding:0;display:block}.ha-menorah-art{position:absolute;bottom:0;left:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.ha-candles{position:absolute;top:14%;left:8%;right:8%;height:52%;display:grid;grid-template-columns:repeat(9,1fr);align-items:start;gap:0}.ha-candles .ha-token{min-width:0;width:100%;padding:0;align-self:start;min-height:72px}.ha-candles .ha-token img{width:100%;height:100px;object-fit:contain}.ha-candles .ha-helper-static{grid-column:5;grid-row:1;align-self:start;transform:translateY(-23px)}.ha-candles .ha-helper-static img{width:100%;height:104px;object-fit:contain}.ha-candles .ha-token[data-slot="4"]{grid-column:6}.ha-candles .ha-token[data-slot="5"]{grid-column:7}.ha-candles .ha-token[data-slot="6"]{grid-column:8}.ha-candles .ha-token[data-slot="7"]{grid-column:9}.ha-lit-flame{position:absolute!important;top:-14px;width:18px!important;height:24px!important;left:calc(50% - 9px)}.ha-pattern{display:grid;grid-template-columns:repeat(6,minmax(56px,1fr));gap:8px;margin-bottom:18px}.ha-slot{min-height:76px;min-width:0;border:2px dashed #91a8bd;background:#eef6fbeb;border-radius:14px;display:flex;align-items:center;justify-content:center}.ha-slot.filled{border-style:solid}.ha-slot .ha-token{min-width:56px}.ha-slot img{width:56px;height:56px;object-fit:contain}.ha-fixed{padding:6px}.ha-friends{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.ha-friend{align-content:flex-start;min-height:136px;padding-top:34px}.ha-friend:before{content:attr(data-friend);position:absolute;top:5px;font-size:17px;color:#174a7e}.ha-bank{margin-top:8px;min-height:88px}.ha-pot-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.ha-dreidel{position:relative}.ha-letter{font-family:'Arial',sans-serif;position:absolute;top:30%;left:0;right:0;text-align:center;font-size:28px;color:#174a7e;font-weight:700;pointer-events:none}.ha-rule{font-size:19px;font-weight:600;text-align:center;color:#fff;margin:7px 0 12px;text-shadow:0 2px 4px #122c4c}.ha-help-text{font-size:15px;color:#fff;max-width:1040px;margin:5px auto;text-shadow:0 2px 4px #122c4c}.ha-fade{opacity:.65}.ha-board [hidden]{display:none!important}
@media(max-width:700px){.ha-board{padding:8px}.ha-heading{min-height:82px;gap:10px}.ha-bodi{width:72px;height:88px}.ha-prompt{font-size:19px}.ha-model{padding:5px 7px}.ha-model img{width:17px;height:30px}.ha-layout{grid-template-columns:1fr;gap:8px}.ha-actions{flex-direction:row;align-items:center;gap:10px}.ha-actions>*{flex:1;min-height:86px}.ha-finalizer img{height:60px;width:60px}.ha-menorah{height:220px}.ha-pattern{grid-template-columns:repeat(3,minmax(56px,1fr));gap:8px}.ha-slot{min-height:68px}.ha-zone{padding:7px;gap:0}.ha-friend{min-height:128px;padding-top:30px}.ha-token{min-width:48px;min-height:54px}.ha-token img{height:44px;width:44px}.ha-feedback{font-size:17px}.ha-candles .ha-token img{height:85px}.ha-help-text{font-size:14px}.ha-pot-row{gap:8px}}
@media(orientation:landscape) and (max-height:550px){.ha-heading{position:absolute;left:8px;top:8px;width:140px;display:block;min-height:0}.ha-bodi{height:64px;width:64px;float:left}.ha-prompt{font-size:16px}.ha-model{padding:4px}.ha-model img{height:22px;width:14px}.ha-model small{font-size:12px}.ha-layout{margin-left:150px;grid-template-columns:minmax(0,1fr) 106px;gap:9px}.ha-menorah{height:165px}.ha-candles .ha-token img{height:62px}.ha-candles .ha-helper-static img{height:65px}.ha-token{min-height:48px;min-width:44px}.ha-token img{width:40px;height:40px}.ha-actions{flex-direction:column;gap:8px}.ha-actions>*{width:100%;min-height:74px}.ha-finalizer img{width:55px;height:55px}.ha-pattern{grid-template-columns:repeat(6,minmax(48px,1fr));gap:5px}.ha-slot{min-height:52px}.ha-slot img{width:44px;height:44px}.ha-friends{gap:6px}.ha-friend{min-height:92px;padding-top:25px}.ha-friend:before,.ha-zone-label{font-size:13px}.ha-help-text,.ha-feedback{margin-left:150px;font-size:14px}.ha-feedback{min-height:18px}.ha-zone{min-height:62px;padding:4px}.ha-board{position:relative}.ha-pot-row{margin-bottom:6px}}
.ha-friend-face{position:absolute;top:22px;left:7px;width:38px;height:38px;object-fit:contain;pointer-events:none}.ha-friend{padding-left:42px}.ha-token:disabled{cursor:default;opacity:.75}
.ha-menorah{width:min(100%,430px);height:auto;aspect-ratio:1277/918;margin:85px auto 12px}.ha-candles{inset:0;display:block;height:auto}.ha-candles .ha-token{position:absolute;bottom:82%;width:8%;height:27%;min-height:0;transform:translateX(-50%)}.ha-candles .ha-token img{width:100%;height:100%;object-fit:fill}.ha-candles .ha-helper-static{position:absolute;left:50%;bottom:96%;width:8%;height:27%;transform:translateX(-50%)}.ha-candles .ha-helper-static img{width:100%;height:100%;object-fit:fill}@media(max-width:700px){.ha-menorah{max-width:340px;margin-top:72px}}@media(orientation:landscape) and (max-height:550px){.ha-menorah{max-width:240px;margin-top:48px}}
.ha-board img{max-width:none;max-height:none}
.ha-token[data-type="dreidel"]{min-width:94px;min-height:110px}.ha-token[data-type="dreidel"] img{width:74px;height:94px}.ha-letter{top:43%;left:50%;right:auto;width:28%;font-size:26px;line-height:1;color:#f8fcff;text-shadow:0 1px 1px #122c4c}
/* Keep the activity at child scale inside the unchanged shell. */
.ha-board{display:flex;flex-direction:column;justify-content:center;gap:10px;padding-block:28px}.ha-heading{width:100%;max-width:1080px;min-height:146px;gap:22px;margin-bottom:12px}.ha-bodi{width:132px;height:150px}.ha-prompt{font-size:clamp(22px,2.7vw,34px)}.ha-layout{width:100%;max-width:1080px;grid-template-columns:minmax(0,1fr) 170px;gap:22px;align-items:center}.ha-zone{min-height:126px;padding:14px;gap:6px}.ha-zone-label{font-size:19px;margin-bottom:9px}.ha-token{min-width:70px;min-height:76px}.ha-token img{width:64px;height:64px}.ha-finalizer img{width:90px;height:90px}.ha-final-target{min-height:144px}.ha-pot-row{gap:18px}.ha-rule{font-size:24px;margin:16px 0}.ha-friend{min-height:170px;padding-left:54px}.ha-friend-face{width:48px;height:48px}.ha-pattern{grid-template-columns:repeat(6,minmax(68px,1fr));gap:10px;margin-bottom:24px}.ha-pattern:has(.ha-slot:nth-child(9)){grid-template-columns:repeat(9,minmax(58px,1fr));gap:5px}.ha-slot,.ha-slot.filled{border:0;background:transparent url('assets/plate.webp') center/contain no-repeat;min-height:100px}.ha-slot .ha-token{min-width:64px}.ha-slot img{width:64px;height:64px}.ha-feedback,.ha-help-text{width:100%;max-width:1080px}.ha-menorah{margin-top:90px}.ha-actions{gap:20px}
@media(orientation:portrait){.ha-board{padding-block:30px;gap:18px}.ha-layout{grid-template-columns:1fr;max-width:680px;gap:24px}.ha-heading{max-width:680px}.ha-actions{flex-direction:row;justify-content:center;align-items:stretch;gap:20px}.ha-actions>*{flex:1;min-height:120px}.ha-pattern,.ha-pattern:has(.ha-slot:nth-child(9)){grid-template-columns:repeat(3,minmax(80px,1fr));gap:14px;max-width:600px;margin:0 auto 22px}.ha-slot{min-height:125px}.ha-slot img{width:80px;height:80px}.ha-slot .ha-token{min-width:88px;min-height:90px}.ha-friends{gap:18px}.ha-bank{margin-top:18px}.ha-menorah{max-width:430px}}
@media(max-width:500px){.ha-board{justify-content:flex-start;padding:10px 8px;gap:8px}.ha-heading{gap:12px;min-height:100px;margin-bottom:0}.ha-bodi{width:90px;height:110px}.ha-prompt{font-size:20px}.ha-layout{gap:12px}.ha-zone{padding:8px;gap:2px;min-height:100px}.ha-zone-label{font-size:16px}.ha-token{min-width:54px;min-height:60px}.ha-token img{width:50px;height:50px}.ha-pattern,.ha-pattern:has(.ha-slot:nth-child(9)){gap:5px}.ha-slot{min-height:92px}.ha-slot img{width:60px;height:60px}.ha-slot .ha-token{min-width:64px;min-height:66px}.ha-friend{padding-left:34px;min-height:145px}.ha-friend-face{width:32px;height:32px;left:3px}.ha-friends{gap:8px}.ha-actions{gap:10px}.ha-actions>*{min-height:100px}.ha-menorah{max-width:320px;margin-top:68px}.ha-rule{font-size:20px}.ha-help-text{font-size:13px}}
@media(orientation:landscape) and (max-height:550px){.ha-board{display:block;padding-block:8px}.ha-heading{width:140px;min-height:0;gap:0}.ha-bodi{height:64px;width:64px}.ha-prompt{font-size:16px}.ha-layout{width:auto;max-width:none;grid-template-columns:minmax(0,1fr) 110px;gap:10px;align-items:start}.ha-zone{min-height:70px;padding:5px;gap:2px}.ha-zone-label{font-size:13px;margin-bottom:4px}.ha-token{min-width:44px;min-height:48px}.ha-token img{width:40px;height:40px}.ha-finalizer img{width:58px;height:58px}.ha-final-target{min-height:85px}.ha-rule{font-size:17px;margin:8px 0}.ha-pattern,.ha-pattern:has(.ha-slot:nth-child(9)){grid-template-columns:repeat(3,minmax(48px,1fr));gap:4px}.ha-slot{min-height:58px}.ha-slot img{width:44px;height:44px}.ha-slot .ha-token{min-width:46px;min-height:48px}.ha-friend{min-height:95px;padding-left:30px}.ha-friend-face{width:26px;height:26px;left:3px}.ha-actions{gap:10px}.ha-menorah{max-width:240px;margin-top:48px}.ha-help-text,.ha-feedback{width:auto}}
@media(max-width:500px){body[data-activity="share-the-gelt"] .ha-friend{min-height:104px}body[data-activity="share-the-gelt"] .ha-token[data-type="gelt"]{min-width:46px;min-height:50px}body[data-activity="share-the-gelt"] .ha-token[data-type="gelt"] img{width:42px;height:42px}}
@media(orientation:landscape) and (max-height:550px){body[data-activity="latke-patterns"] .ha-layout{grid-template-columns:1fr}body[data-activity="latke-patterns"] .ha-pattern{grid-template-columns:repeat(6,minmax(44px,1fr));margin-bottom:8px}body[data-activity="latke-patterns"] .ha-pattern:has(.ha-slot:nth-child(9)){grid-template-columns:repeat(9,minmax(44px,1fr))}body[data-activity="latke-patterns"] .ha-slot,body[data-activity="latke-patterns"] .ha-slot.filled{min-height:68px}}
@media(orientation:portrait) and (max-width:500px) and (max-height:780px){.ha-heading{min-height:88px}.ha-bodi{width:80px;height:96px}.ha-prompt{font-size:18px}.ha-zone{min-height:84px;padding:6px}.ha-layout{gap:8px}.ha-actions>*{min-height:90px}.ha-menorah{max-width:280px;margin-top:58px}.ha-help-text{font-size:12px}body[data-activity="share-the-gelt"] .ha-friend{min-height:86px}body[data-activity="share-the-gelt"] .ha-token[data-type="gelt"]{min-width:42px;min-height:46px}body[data-activity="share-the-gelt"] .ha-token[data-type="gelt"] img{width:38px;height:38px}.ha-pattern,.ha-pattern:has(.ha-slot:nth-child(9)){gap:3px}.ha-slot,.ha-slot.filled{min-height:80px}.ha-slot .ha-token{min-height:60px}.ha-slot img{width:54px;height:54px}}
@media(orientation:portrait) and (max-width:500px) and (max-height:780px){body[data-activity="share-the-gelt"] .ha-token[data-type="gelt"]{min-width:44px}}
@media(orientation:landscape) and (max-height:550px){body[data-activity="share-the-gelt"] .ha-bank{width:calc(100% + 120px)}}
/* The candle task uses the shell's available board height, not a scrolling scene. */
body[data-activity="eight-nights-of-light"] {
 .ha-board{display:grid;width:100%;grid-template-rows:auto minmax(0,1fr) auto auto;align-content:stretch;justify-content:normal;gap:6px;padding:8px 12px;overflow:visible}
 .ha-heading{position:static;display:flex;min-height:0;max-width:900px;margin:0 auto;gap:14px;width:100%}
 .ha-bodi{float:none;width:90px;height:110px}
 .ha-prompt{font-size:clamp(18px,2.3vw,27px);line-height:1.15}
 .ha-model{margin-top:6px;padding:4px 8px;gap:2px}
 .ha-model img{width:19px;height:30px}
 .ha-model small{font-size:14px}
 .ha-layout{container-type:size;display:grid;grid-template-columns:minmax(0,1fr) 100px;grid-template-rows:minmax(0,1fr) 108px;gap:8px;align-items:stretch;width:100%;height:100%;min-height:0;max-width:900px;margin:0 auto}
 .ha-stage{display:contents}
 .ha-menorah{container-type:inline-size;grid-area:1/1/2/3;align-self:center;width:min(100%,430px,calc((100cqh - 176px)*1.391));max-width:none;height:auto;min-height:0;aspect-ratio:1277/918;margin:54px auto 0}
 .ha-bank{grid-area:2/1;margin:0}
 .ha-actions{grid-area:2/2;display:block;min-height:0}
 .ha-actions>*{height:100%;min-height:0}
 .ha-zone:not(.ha-menorah){min-height:0;padding:6px;gap:0;border-radius:16px}
 .ha-zone-label{font-size:16px;margin:0 0 3px}
 .ha-token{min-width:44px;min-height:60px;padding:2px}
 .ha-token[data-type="candle"] img,.ha-token[data-type="helper"] img{width:28px;height:58px}
 .ha-candles .ha-token{min-width:44px;min-height:44px;padding:0}
 .ha-candles .ha-token>img:not(.ha-lit-flame){width:8cqw;height:100%}
 .ha-candles span.ha-helper-static img{width:100%;height:100%}
 .ha-feedback{font-size:17px;line-height:1.2;min-height:21px;margin:0 auto}
 .ha-feedback:empty{min-height:0}
 .ha-help-text{font-size:13px;line-height:1.2;margin:0 auto}
}
@media(max-width:500px){body[data-activity="eight-nights-of-light"]{
 .ha-board{padding:5px 6px;gap:5px}.ha-heading{gap:8px}.ha-bodi{width:76px;height:96px}.ha-prompt{font-size:18px}.ha-model img{width:17px;height:27px}.ha-layout{grid-template-columns:minmax(0,1fr) 70px;grid-template-rows:minmax(0,1fr) 154px;gap:6px}.ha-menorah{width:min(100%,430px,calc((100cqh - 222px)*1.391))}.ha-bank{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));grid-template-rows:22px repeat(2,60px);align-content:start;justify-items:center}.ha-bank .ha-zone-label{grid-column:1/-1}.ha-actions .ha-zone{display:flex;flex-direction:column;justify-content:center}.ha-zone-label{font-size:14px}.ha-help-text{font-size:12px}
}}
@media(orientation:landscape) and (max-height:700px){body[data-activity="eight-nights-of-light"]{
 .ha-board{grid-template-columns:140px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:5px 10px;padding:5px 8px}.ha-heading{grid-area:1/1/4/2;display:flex;flex-direction:column;justify-content:center;gap:3px;align-self:stretch}.ha-bodi{width:76px;height:96px}.ha-prompt{font-size:16px}.ha-model{max-width:140px;flex-wrap:wrap;padding:4px}.ha-model small{font-size:12px}.ha-model img{width:12px;height:21px}.ha-layout{grid-area:1/2;grid-template-columns:minmax(0,1fr) 190px 76px;grid-template-rows:minmax(0,1fr);gap:6px;max-width:none}.ha-menorah{grid-area:1/1;width:min(100%,430px,calc((100cqh - 62px)*1.391));margin-top:54px}.ha-bank{grid-area:1/2;display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));grid-template-rows:22px repeat(2,60px);height:166px;align-self:center;align-content:center;justify-items:center}.ha-bank .ha-zone-label{grid-column:1/-1}.ha-actions{grid-area:1/3;height:166px;align-self:center}.ha-actions .ha-zone{display:flex;flex-direction:column;justify-content:center}.ha-zone-label{font-size:13px}.ha-feedback,.ha-help-text{grid-column:2;margin:0;font-size:12px}
}}
/* Spin uses real dishes and a stable, single-screen play area. */
body[data-activity="spin-the-dreidel"]{
 .ha-board{display:grid;width:100%;grid-template-rows:96px auto minmax(0,1fr) auto auto;gap:6px;padding:8px 12px;overflow:visible;justify-content:normal}
 .ha-heading{position:static;width:100%;max-width:900px;min-height:0;margin:0 auto;gap:14px}.ha-bodi{float:none;width:86px;height:96px}.ha-prompt{font-size:clamp(18px,2.2vw,27px);line-height:1.15}
 .ha-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 184px;width:100%;height:100%;max-width:900px;min-height:0;gap:8px;margin:0 auto;align-items:stretch}
 .ha-stage{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0;gap:6px}.ha-pot-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin:0;min-height:0}
 .ha-dish{border:0;border-radius:0;background:transparent url('assets/plate.webp') center/contain no-repeat;background-origin:content-box;min-height:0;padding:26px 0 0;display:block}
 .ha-zone-label{font-size:18px;margin:0;position:absolute;top:0;left:0;right:0;color:#fff;text-shadow:0 2px 3px #122c4c}
 .ha-dish-coins{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.ha-coin-row{display:flex;justify-content:center;gap:0}
 .ha-token[data-type="gelt"]{width:52px;height:52px;min-width:44px;min-height:44px;padding:3px}.ha-token[data-type="gelt"] img{width:46px;height:46px}
 .ha-rule{font-size:21px;line-height:1.2;margin:0;text-align:center;min-height:26px}
 .ha-actions{display:grid;grid-template-columns:repeat(2,174px);gap:28px;justify-content:center;align-items:stretch;min-height:0}
 .ha-actions .ha-zone{min-height:0;border:0;background-color:transparent;border-radius:0;padding:22px 0 0;display:flex;align-items:center;justify-content:center;background-position:center bottom;background-size:140px 104px;background-repeat:no-repeat}
 [data-zone="dreidel-home"]{background-image:url('assets/stand.webp')}[data-zone="spin"]{background-image:url('assets/napkin.webp')}
 .ha-token[data-type="dreidel"]{width:144px;height:160px;min-width:44px;min-height:44px;padding:0;align-self:center}.ha-token[data-type="dreidel"] img{width:125px;height:160px}.ha-letter{font-size:47px;top:43%;width:28%}
 .ha-feedback{font-size:17px;line-height:1.2;min-height:21px;margin:0 auto;width:100%;max-width:900px}.ha-feedback:empty{min-height:0}.ha-help-text{font-size:13px;line-height:1.2;margin:0 auto;width:100%;max-width:900px}
}
@media(orientation:portrait){body[data-activity="spin-the-dreidel"]{
 .ha-board{grid-template-rows:76px auto minmax(0,1fr) auto auto}.ha-bodi{width:68px;height:76px}.ha-pot-row{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}.ha-layout{grid-template-rows:minmax(0,1fr) 150px}.ha-actions{grid-template-columns:repeat(2,150px)}.ha-actions .ha-zone{background-size:128px 84px;padding-top:18px}.ha-token[data-type="dreidel"]{height:132px;width:117px}.ha-token[data-type="dreidel"] img{height:132px;width:101px}.ha-letter{font-size:39px}.ha-rule{font-size:18px;min-height:22px}
}}
@media(max-width:500px){body[data-activity="spin-the-dreidel"]{
 .ha-board{grid-template-rows:62px auto minmax(0,1fr) auto auto;padding:4px 6px;gap:4px}.ha-heading{gap:9px}.ha-bodi{width:54px;height:62px}.ha-prompt{font-size:18px}.ha-layout{grid-template-rows:minmax(0,1fr) 132px;gap:5px}.ha-stage{gap:4px}.ha-dish{padding-top:18px}.ha-zone-label{font-size:14px;line-height:1.2}.ha-token[data-type="gelt"]{width:44px;height:44px;padding:5px}.ha-token[data-type="gelt"] img{width:34px;height:34px}.ha-actions{gap:22px;grid-template-columns:repeat(2,132px)}.ha-actions .ha-zone{background-size:112px 70px;padding-top:17px}.ha-token[data-type="dreidel"]{width:105px;height:113px}.ha-token[data-type="dreidel"] img{width:88px;height:113px}.ha-letter{font-size:35px}.ha-rule{font-size:16px;min-height:38px}.ha-help-text{font-size:11px}.ha-feedback{font-size:15px}
}}
@media(orientation:landscape) and (max-height:700px){body[data-activity="spin-the-dreidel"]{
 .ha-board{grid-template-columns:120px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:5px 10px;padding:5px 8px}.ha-heading{grid-area:1/1/4/2;display:flex;flex-direction:column;justify-content:center;align-self:stretch;width:120px;gap:4px}.ha-bodi{width:68px;height:80px}.ha-prompt{font-size:16px}.ha-layout{grid-area:1/2;grid-template-columns:minmax(0,1fr) 110px;grid-template-rows:minmax(0,1fr);gap:10px;max-width:none}.ha-stage{grid-column:1}.ha-pot-row{gap:12px}.ha-dish{padding-top:20px}.ha-zone-label{font-size:14px}.ha-actions{grid-column:2;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}.ha-actions .ha-zone{background-size:106px 72px;padding-top:18px}.ha-token[data-type="dreidel"]{width:105px;height:125px}.ha-token[data-type="dreidel"] img{width:94px;height:125px}.ha-letter{font-size:35px}.ha-token[data-type="gelt"]{width:44px;height:44px;padding:5px}.ha-token[data-type="gelt"] img{width:34px;height:34px}.ha-rule{font-size:17px;min-height:40px}.ha-feedback,.ha-help-text{grid-column:2;margin:0;max-width:none;font-size:12px}
}}

body[data-activity="spin-the-dreidel"] .ha-stage{grid-template-rows:minmax(0,1fr)}
body[data-activity="spin-the-dreidel"] .ha-rule{display:none}
@media(orientation:portrait){body[data-activity="spin-the-dreidel"]{
 .ha-pot-row:has([data-zone="pot"][data-count="7"], [data-zone="pot"][data-count="8"], [data-zone="pot"][data-count="9"], [data-zone="pot"][data-count="10"]){grid-template-rows:1.8fr 1fr}
 .ha-pot-row:has([data-zone="personal"][data-count="7"], [data-zone="personal"][data-count="8"], [data-zone="personal"][data-count="9"], [data-zone="personal"][data-count="10"]){grid-template-rows:1fr 1.8fr}
}}

body[data-activity="spin-the-dreidel"] .ha-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 12px;width:100%;max-width:900px;margin:auto;color:#fff4cf;font-size:14px;line-height:1.2}body[data-activity="spin-the-dreidel"] .ha-legend>span{display:flex;align-items:center;gap:7px}body[data-activity="spin-the-dreidel"] .ha-legend b{font-family:Arial,sans-serif;font-size:26px;color:#ffd276;min-width:20px;text-align:center}
@media(max-width:600px){body[data-activity="spin-the-dreidel"] .ha-legend{grid-template-columns:repeat(2,minmax(0,1fr));font-size:12px;gap:2px 8px}body[data-activity="spin-the-dreidel"] .ha-legend b{font-size:23px}}
@media(orientation:landscape) and (max-height:700px){body[data-activity="spin-the-dreidel"]{.ha-board{grid-template-rows:auto minmax(0,1fr) auto auto}.ha-heading{grid-area:1/1/5/2}.ha-legend{grid-area:1/2;font-size:12px;gap:3px 8px}.ha-layout{grid-area:2/2}.ha-feedback,.ha-help-text{grid-column:2}.ha-legend b{font-size:23px}.ha-actions .ha-zone{padding-top:18px}.ha-token[data-type="dreidel"]{height:116px}.ha-token[data-type="dreidel"] img{height:116px;width:87px}}}

@media(orientation:landscape) and (max-height:700px){body[data-activity="spin-the-dreidel"]{.ha-layout{grid-template-columns:minmax(0,1fr) 220px}.ha-actions{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:8px}.ha-actions .ha-zone{background-position:center calc(50% + 30px)}.ha-token[data-type="dreidel"]{height:125px}.ha-token[data-type="dreidel"] img{height:125px;width:94px}}}

body[data-activity="spin-the-dreidel"] .ha-legend{background:#09264b;padding:3px 7px;border-radius:8px}

@media(orientation:portrait) and (max-width:500px){body[data-activity="spin-the-dreidel"]{.ha-pot-row:has([data-zone="pot"][data-count="7"],[data-zone="pot"][data-count="8"],[data-zone="pot"][data-count="9"],[data-zone="pot"][data-count="10"]){grid-template-rows:2.8fr 1fr}.ha-pot-row:has([data-zone="personal"][data-count="7"],[data-zone="personal"][data-count="8"],[data-zone="personal"][data-count="9"],[data-zone="personal"][data-count="10"]){grid-template-rows:1fr 2.8fr}}}


@media(orientation:portrait) and (max-width:500px){body[data-activity="spin-the-dreidel"]{.ha-dish{background-size:contain}.ha-pot-row:has([data-zone="pot"][data-count="7"],[data-zone="pot"][data-count="8"],[data-zone="pot"][data-count="9"],[data-zone="pot"][data-count="10"]){grid-template-rows:minmax(0,1fr) 88px}.ha-pot-row:has([data-zone="personal"][data-count="7"],[data-zone="personal"][data-count="8"],[data-zone="personal"][data-count="9"],[data-zone="personal"][data-count="10"]){grid-template-rows:88px minmax(0,1fr)}.ha-layout:not(:has(.ha-dish[data-count="7"],.ha-dish[data-count="8"],.ha-dish[data-count="9"],.ha-dish[data-count="10"])){grid-template-columns:minmax(0,1fr) 110px;grid-template-rows:minmax(0,1fr)}.ha-layout:not(:has(.ha-dish[data-count="7"],.ha-dish[data-count="8"],.ha-dish[data-count="9"],.ha-dish[data-count="10"])) .ha-actions{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}.ha-layout:not(:has(.ha-dish[data-count="7"],.ha-dish[data-count="8"],.ha-dish[data-count="9"],.ha-dish[data-count="10"])) .ha-actions .ha-zone{background-size:100px 65px;background-position:center calc(50% + 27px)}}}

@media(orientation:portrait) and (max-width:500px){body[data-activity="spin-the-dreidel"] .ha-board:has(.ha-dish[data-count="7"],.ha-dish[data-count="8"],.ha-dish[data-count="9"],.ha-dish[data-count="10"]){grid-template-rows:50px auto minmax(0,1fr) auto auto;gap:1px;padding-top:2px;padding-bottom:2px}body[data-activity="spin-the-dreidel"] .ha-board:has(.ha-dish[data-count="7"],.ha-dish[data-count="8"],.ha-dish[data-count="9"],.ha-dish[data-count="10"]) .ha-bodi{height:50px}body[data-activity="spin-the-dreidel"] .ha-board:has(.ha-dish[data-count="7"],.ha-dish[data-count="8"],.ha-dish[data-count="9"],.ha-dish[data-count="10"]) .ha-legend{padding-top:0;padding-bottom:0}body[data-activity="spin-the-dreidel"] .ha-board:has(.ha-dish[data-count="7"],.ha-dish[data-count="8"],.ha-dish[data-count="9"],.ha-dish[data-count="10"]) .ha-layout{gap:1px}}

/* Latke: the pattern is the principal play object, scaled to the available board. */
body[data-activity="latke-patterns"]{
 .ha-board{display:grid;grid-template-rows:100px minmax(0,1fr) auto auto;gap:5px;padding:8px 12px;justify-content:normal;overflow:visible}
 .ha-heading{position:static;width:100%;max-width:none;min-height:0;margin:0;gap:18px}.ha-bodi{float:none;width:88px;height:100px}.ha-prompt{font-size:clamp(20px,2.4vw,32px)}
 .ha-layout{display:block;width:100%;height:100%;min-height:0;max-width:none;margin:0}.ha-stage{display:grid;grid-template-rows:minmax(0,1fr) 164px;height:100%;gap:10px;container-type:size}.ha-actions{display:none}
 .ha-pattern,.ha-pattern:has(.ha-slot:nth-child(9)){--treat:192px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:10px;width:100%;max-width:none;min-height:0;margin:0}
 .ha-pattern:has(.ha-slot:nth-child(5)){--treat:144px;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.ha-pattern:has(.ha-slot:nth-child(7)){--treat:112px;grid-template-rows:repeat(3,minmax(0,1fr))}
 .ha-slot,.ha-slot.filled{min-width:0;min-height:0;width:100%;height:100%;border:0;border-radius:0;background-size:contain;align-self:stretch}.ha-slot img{width:var(--treat);height:var(--treat);padding:0;object-fit:contain}.ha-slot .ha-token{width:var(--treat);height:var(--treat);min-width:44px;min-height:44px;padding:0}
 [data-zone="treat-tray"]{min-height:0;height:100%;padding:7px 12px;gap:10px;align-content:center;max-width:540px;width:100%;margin:0 auto}.ha-zone-label{font-size:18px;margin:0}.ha-token[data-id^="new-"]{width:124px;height:124px;min-width:44px;min-height:44px;padding:0}.ha-token[data-id^="new-"] img{width:120px;height:120px}
 .ha-feedback,.ha-help-text{width:100%;max-width:none;margin:0;font-size:15px;line-height:1.2;min-height:0}.ha-feedback:empty{display:none}
}
@media(orientation:portrait){body[data-activity="latke-patterns"]{
 .ha-board{grid-template-rows:86px minmax(0,1fr) auto auto}.ha-heading{gap:12px}.ha-bodi{width:76px;height:86px}.ha-stage{grid-template-rows:minmax(0,1fr) 140px;gap:8px}.ha-pattern{--treat:160px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.ha-pattern:has(.ha-slot:nth-child(5)){--treat:128px}.ha-pattern:has(.ha-slot:nth-child(7)){--treat:106px}.ha-token[data-id^="new-"]{height:104px;width:104px}.ha-token[data-id^="new-"] img{height:100px;width:100px}
}}
@media(max-width:500px){body[data-activity="latke-patterns"]{
 .ha-board{grid-template-rows:70px minmax(0,1fr) auto auto;padding:4px 6px;gap:4px}.ha-bodi{width:62px;height:70px}.ha-prompt{font-size:19px}.ha-stage{grid-template-rows:minmax(0,1fr) 108px;gap:6px}.ha-pattern{--treat:112px;gap:5px}.ha-pattern:has(.ha-slot:nth-child(5)){--treat:82px;gap:4px}.ha-pattern:has(.ha-slot:nth-child(7)){--treat:76px}.ha-token[data-id^="new-"]{height:82px;width:82px}.ha-token[data-id^="new-"] img{height:78px;width:78px}[data-zone="treat-tray"]{padding:4px;gap:8px}.ha-zone-label{font-size:15px}.ha-help-text,.ha-feedback{font-size:12px}
}}
@media(orientation:landscape) and (max-height:700px){body[data-activity="latke-patterns"]{
 .ha-board{grid-template-columns:120px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:4px 10px;padding:5px 8px}.ha-heading{grid-area:1/1/4/2;display:flex;flex-direction:column;align-self:stretch;justify-content:center;width:120px;gap:4px}.ha-bodi{width:68px;height:80px}.ha-prompt{font-size:17px}.ha-layout{grid-area:1/2}.ha-stage{grid-template-rows:minmax(0,1fr) 106px;gap:6px}.ha-pattern{--treat:120px;gap:6px}.ha-pattern:has(.ha-slot:nth-child(5)){--treat:100px}.ha-pattern:has(.ha-slot:nth-child(7)){--treat:80px;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.ha-token[data-id^="new-"]{width:82px;height:82px}.ha-token[data-id^="new-"] img{width:78px;height:78px}[data-zone="treat-tray"]{padding:4px;gap:8px}.ha-zone-label{font-size:15px}.ha-help-text,.ha-feedback{grid-column:2;font-size:12px}
}}
@media(orientation:landscape) and (max-height:450px){body[data-activity="latke-patterns"]{.ha-stage{grid-template-rows:minmax(0,1fr) 82px;gap:4px}.ha-pattern{--treat:100px}.ha-pattern:has(.ha-slot:nth-child(5)){--treat:72px}.ha-pattern:has(.ha-slot:nth-child(7)){--treat:64px}.ha-token[data-id^="new-"]{width:58px;height:58px}.ha-token[data-id^="new-"] img{width:54px;height:54px}.ha-zone-label{font-size:13px}}}

body[data-activity="latke-patterns"] .ha-board{width:100%}body[data-activity="latke-patterns"] .ha-pattern{height:100%;max-height:320px;align-self:start}body[data-activity="latke-patterns"] .ha-pattern:has(.ha-slot:nth-child(5)){max-height:none}
@media(orientation:portrait), (max-height:700px){body[data-activity="latke-patterns"] .ha-pattern{max-height:none}}

@media(orientation:landscape) and (min-height:701px){body[data-activity="latke-patterns"] .ha-stage:not(:has(.ha-slot:nth-child(5))){grid-template-rows:minmax(0,320px) 164px;align-content:start}}
@media(orientation:portrait) and (max-width:500px){body[data-activity="latke-patterns"] .ha-pattern:not(:has(.ha-slot:nth-child(5))){--treat:128px}}
body[data-activity="latke-patterns"] .ha-help-text{padding-left:24px}

/* Share the Gelt: dressed friends and the approved carved linen trays. */
body[data-activity="share-the-gelt"]{
 .ha-board{display:grid;width:100%;grid-template-rows:110px minmax(0,1fr) auto auto;gap:6px;padding:8px 14px;justify-content:normal;overflow:visible}
 .ha-heading{position:static;max-width:1300px;width:100%;min-height:0;margin:0 auto;gap:20px}.ha-bodi{float:none;width:96px;height:110px}.ha-prompt{font-size:clamp(21px,2.3vw,32px);max-width:42ch}
 .ha-layout{display:grid;width:100%;height:100%;max-width:1300px;min-height:0;margin:0 auto;grid-template-columns:minmax(0,1fr) 150px 210px;grid-template-rows:minmax(0,1fr) 170px;gap:14px;align-items:stretch}.ha-stage,.ha-actions{display:contents}
 .ha-friends{grid-area:1/1/2/4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);align-items:center;gap:24px;width:100%;height:100%;min-height:0;margin:0}.ha-friend-station{display:grid;grid-template-columns:minmax(110px,.72fr) minmax(0,1fr);align-items:end;gap:4px;width:100%;height:min(100%,350px);min-height:0}.ha-friend-character{width:100%;height:260px;max-height:100%!important;object-fit:contain;object-position:center bottom;pointer-events:none;align-self:end}
 .ha-zone{--share-edge:28px;border:var(--share-edge) solid transparent;border-image-source:url('shared/assets/images/board-tray.webp');border-image-slice:17% fill;border-image-width:var(--share-edge);border-image-repeat:round;border-radius:0;background:transparent;min-height:0;padding:3px;gap:0}.ha-friend{height:280px;max-height:100%;padding:4px;display:block;align-self:end}.ha-friend:before{display:none}.ha-zone-label{position:absolute;top:-35px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% + 32px);font-size:18px;line-height:1.15;color:#17324d;margin:0;padding:3px 10px;border:10px solid transparent;border-image:url('shared/assets/images/board-tray.webp') 17% fill / 10px / 0 round;text-align:center}
 .ha-friend-coins,.ha-shared-coins{display:flex;align-content:center;align-items:center;justify-content:center;flex-wrap:wrap;width:100%;height:100%;gap:0}.ha-token[data-type="gelt"]{width:52px;height:52px;min-width:44px;min-height:44px;padding:3px}.ha-token[data-type="gelt"] img{width:46px;height:46px}
 .ha-bank{grid-area:2/1;width:100%;height:100%;margin:0;padding:6px;display:block}.ha-finalizer{grid-area:2/2;height:100%;display:flex;align-items:center;justify-content:center;padding:0}.ha-final-target{grid-area:2/3;height:100%;display:flex;align-items:center;justify-content:center;padding:0}.ha-final-target .ha-zone-label{position:static;transform:none;border:0;max-width:none;width:auto;padding:0 3px;font-size:21px;font-weight:700;line-height:1.25}.ha-finalizer .ha-token{width:100%;min-width:44px;min-height:44px;padding:0}.ha-finalizer img{width:90px;height:110px;object-fit:contain}
 .ha-friends:is([data-friends="3"],[data-friends="4"]){grid-template-rows:repeat(2,minmax(0,1fr));gap:15px 24px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station{height:100%;grid-template-columns:minmax(90px,.65fr) minmax(0,1fr)}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-character{height:170px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend{height:100%;--share-edge:23px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-zone-label{font-size:16px;top:-29px;border-width:8px;border-image-width:8px;padding:2px 7px}
 .ha-feedback,.ha-help-text{width:100%;max-width:1300px;margin:0 auto;min-height:0;font-size:14px;line-height:1.2}.ha-feedback:empty{display:none}.ha-help-text{padding-left:24px}
}
@media(orientation:portrait){body[data-activity="share-the-gelt"]{
 .ha-board{grid-template-rows:90px minmax(0,1fr) auto auto}.ha-bodi{width:78px;height:90px}.ha-layout{grid-template-columns:minmax(0,1fr) 130px 160px;grid-template-rows:minmax(0,1fr) 160px;gap:10px}.ha-friends{gap:12px}.ha-friend-station{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 180px;height:100%;gap:8px}.ha-friend-character{height:220px}.ha-friend{height:100%}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station{grid-template-columns:90px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-character{height:150px}.ha-final-target .ha-zone-label{font-size:18px}
}}
@media(max-width:500px){body[data-activity="share-the-gelt"]{
 .ha-board{grid-template-rows:68px minmax(0,1fr) auto auto;padding:4px 6px;gap:4px}.ha-heading{gap:9px}.ha-bodi{width:60px;height:68px}.ha-prompt{font-size:17px}.ha-layout{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr) 124px 90px;gap:7px}.ha-friends{grid-area:1/1/2/3;gap:9px}.ha-friend-station{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 105px;gap:6px}.ha-friend-character{height:150px}.ha-zone{--share-edge:17px;padding:1px}.ha-friend{height:100%;padding:1px}.ha-zone-label{font-size:14px;top:-23px;border-width:7px;border-image-width:7px;padding:1px 6px;max-width:calc(100% + 22px)}.ha-bank{grid-area:2/1/3/3;width:100%;padding:1px}.ha-finalizer{grid-area:3/1}.ha-final-target{grid-area:3/2}.ha-final-target .ha-zone-label{font-size:15px}.ha-finalizer img{width:58px;height:64px}.ha-token[data-type="gelt"]{width:44px;height:44px;min-width:44px;min-height:44px;padding:4px}.ha-token[data-type="gelt"] img{width:36px;height:36px}.ha-shared-coins{display:grid;grid-template-columns:repeat(6,44px);grid-auto-rows:44px;align-content:center;justify-content:center}.ha-friends:is([data-friends="3"],[data-friends="4"]){gap:8px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 72px;gap:1px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-character{height:70px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend{--share-edge:12px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-zone-label{font-size:12px;top:-18px;border-width:5px;border-image-width:5px;padding:1px 4px}.ha-help-text,.ha-feedback{font-size:11px}
}}
@media(orientation:landscape) and (max-height:700px){body[data-activity="share-the-gelt"]{
 .ha-board{grid-template-columns:110px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:4px 8px;padding:4px 7px}.ha-heading{grid-area:1/1/4/2;display:flex;flex-direction:column;justify-content:center;align-self:stretch;gap:3px;width:110px}.ha-bodi{width:64px;height:76px}.ha-prompt{font-size:16px}.ha-layout{grid-area:1/2;grid-template-columns:minmax(0,1fr) 90px 130px;grid-template-rows:minmax(0,1fr) 120px;gap:9px}.ha-friends{gap:12px}.ha-friend-station{grid-template-columns:100px minmax(0,1fr);height:100%}.ha-friend-character{height:130px}.ha-friend{height:100%;--share-edge:18px}.ha-zone-label{font-size:14px;top:-23px;border-width:7px;border-image-width:7px;padding:1px 5px}.ha-bank{width:100%;--share-edge:18px}.ha-token[data-type="gelt"]{width:44px;height:44px;padding:4px}.ha-token[data-type="gelt"] img{width:36px;height:36px}.ha-finalizer,.ha-final-target{--share-edge:17px}.ha-finalizer img{width:54px;height:68px}.ha-final-target .ha-zone-label{font-size:14px}.ha-friends:is([data-friends="3"],[data-friends="4"]){grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:8px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 72px;gap:0}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-character{height:65px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend{--share-edge:12px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-zone-label{font-size:12px;top:-18px;border-width:5px;border-image-width:5px}.ha-help-text,.ha-feedback{grid-column:2;font-size:11px}
}}

@media(orientation:landscape) and (max-height:700px){body[data-activity="share-the-gelt"]{.ha-layout{grid-template-rows:minmax(0,1fr) 132px}.ha-bank{padding:1px}}}
@media(orientation:landscape) and (min-height:451px) and (max-height:700px){body[data-activity="share-the-gelt"]{.ha-friend-character{height:220px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-character{height:160px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station{grid-template-rows:minmax(0,1fr) 140px}}}

/* Larger Share totals retain separate44px coin targets as the pile empties. */
body[data-activity="share-the-gelt"] .ha-bank{padding:1px}
@media(orientation:portrait) and (min-width:501px){body[data-activity="share-the-gelt"] .ha-layout:has(.ha-bank:is([data-count="15"],[data-count="16"],[data-count="17"],[data-count="18"],[data-count="19"],[data-count="20"])){grid-template-rows:minmax(0,1fr) 224px}}
@media(max-width:500px){body[data-activity="share-the-gelt"]{
 .ha-layout{--share-pile-height:212px;grid-template-rows:minmax(0,1fr) var(--share-pile-height) 90px}.ha-layout:has(.ha-bank:is([data-count="0"],[data-count="1"],[data-count="2"],[data-count="3"],[data-count="4"],[data-count="5"],[data-count="6"])){--share-pile-height:80px}.ha-layout:has(.ha-bank:is([data-count="7"],[data-count="8"],[data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"])){--share-pile-height:124px}.ha-layout:has(.ha-bank:is([data-count="13"],[data-count="14"],[data-count="15"],[data-count="16"],[data-count="17"],[data-count="18"])){--share-pile-height:168px}
 .ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station:has(.ha-friend:is([data-count="4"],[data-count="5"],[data-count="6"])){grid-template-rows:minmax(0,1fr) 116px}.ha-friend-coins{align-content:center}
}}
@media(orientation:landscape) and (max-height:700px){body[data-activity="share-the-gelt"]{
 .ha-layout{--share-pile-height:176px;grid-template-rows:minmax(0,1fr) var(--share-pile-height)}.ha-layout:has(.ha-bank:is([data-count="0"],[data-count="1"],[data-count="2"],[data-count="3"],[data-count="4"],[data-count="5"],[data-count="6"],[data-count="7"],[data-count="8"])){--share-pile-height:106px}.ha-layout:has(.ha-bank:is([data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"],[data-count="13"],[data-count="14"],[data-count="15"],[data-count="16"])){--share-pile-height:132px}.ha-shared-coins{display:grid;grid-template-columns:repeat(8,44px);grid-auto-rows:44px;align-content:center;justify-content:center}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station:has(.ha-friend:is([data-count="4"],[data-count="5"],[data-count="6"])){grid-template-rows:minmax(0,1fr) 116px}
}}

@media(max-width:500px){body[data-activity="share-the-gelt"] .ha-friends[data-friends="2"] .ha-friend-station:has(.ha-friend:is([data-count="4"],[data-count="5"],[data-count="6"])){grid-template-rows:minmax(0,1fr) 130px}}

@media(min-width:380px) and (max-width:500px){body[data-activity="share-the-gelt"]{
 .ha-board{grid-template-rows:56px minmax(0,1fr) auto auto}.ha-bodi{height:56px;width:50px}.ha-layout{--share-pile-height:162px;grid-template-rows:minmax(0,1fr) var(--share-pile-height) 76px}.ha-layout:has(.ha-bank:is([data-count="0"],[data-count="1"],[data-count="2"],[data-count="3"],[data-count="4"],[data-count="5"],[data-count="6"],[data-count="7"])){--share-pile-height:74px}.ha-layout:has(.ha-bank:is([data-count="8"],[data-count="9"],[data-count="10"],[data-count="11"],[data-count="12"],[data-count="13"],[data-count="14"])){--share-pile-height:118px}.ha-layout:has(.ha-bank:is([data-count="15"],[data-count="16"],[data-count="17"],[data-count="18"],[data-count="19"],[data-count="20"])){--share-pile-height:162px}.ha-bank{--share-edge:14px}.ha-shared-coins{grid-template-columns:repeat(7,44px)}.ha-finalizer,.ha-final-target{--share-edge:12px}.ha-finalizer img{width:48px;height:48px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station{grid-template-rows:minmax(0,1fr) 64px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend{--share-edge:9px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station:has(.ha-friend:is([data-count="4"],[data-count="5"],[data-count="6"])){grid-template-rows:minmax(0,1fr) 106px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend:is([data-count="4"],[data-count="5"],[data-count="6"]){--share-edge:8px}
}}

/* Tall phone panels keep Share's complete play group directly under Bodi. */
@media(orientation:portrait) and (min-width:380px) and (max-width:500px) and (min-height:900px){body[data-activity="share-the-gelt"]{
 .ha-board{grid-template-rows:56px auto auto auto;align-content:start}.ha-layout{height:auto;align-self:start;align-content:start;grid-template-rows:auto var(--share-pile-height) 76px}.ha-friends{height:auto;grid-template-rows:auto;align-items:start}.ha-friend-station{height:auto;grid-template-rows:150px 105px;align-self:start}.ha-friends[data-friends="2"] .ha-friend-station:has(.ha-friend:is([data-count="4"],[data-count="5"],[data-count="6"])){grid-template-rows:150px 130px}
 .ha-friends:is([data-friends="3"],[data-friends="4"]){grid-template-rows:repeat(2,auto)}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station{height:auto;grid-template-rows:70px 64px}.ha-friends:is([data-friends="3"],[data-friends="4"]) .ha-friend-station:has(.ha-friend:is([data-count="4"],[data-count="5"],[data-count="6"])){grid-template-rows:70px 106px}
}}
