/* Every gameplay rule is restricted to chapter 7. */
#app[data-chapter="7"] #equation,#app[data-chapter="7"] .reserve{display:none}
#app[data-chapter="7"] #scene{--beam-y:calc(49dvh - 162px)}
#app[data-chapter="7"] .symbolic-pan{display:flex;flex-direction:row;justify-content:center;align-items:flex-end;gap:10px;height:auto!important;min-height:0;overflow:visible;direction:ltr;padding-bottom:0;white-space:nowrap}
#app[data-chapter="7"] .advanced-egg{position:relative;display:block;width:clamp(80px,10vw,140px);height:clamp(96px,12vw,170px);flex-shrink:0;margin-bottom:-8px}
#app[data-chapter="7"] .advanced-egg>svg{width:100%;height:100%}
#app[data-chapter="7"] .advanced-egg>b{position:absolute;inset:43% 3% auto;display:flex;justify-content:center;align-items:center;color:#102442;font:600 clamp(30px,4vw,56px)/1 Fredoka,sans-serif;gap:2px}
#app[data-chapter="7"] .advanced-constant{font:600 clamp(48px,7vw,90px)/.8 Fredoka,sans-serif;color:#ffd444;display:flex;align-items:center;gap:7px;padding:0;margin-bottom:1px;-webkit-text-stroke:6px #10131c;paint-order:stroke fill;text-shadow:0 3px 0 #10131c;flex-shrink:0}
#app[data-chapter="7"] .advanced-constant.negative{color:#ff93ac}
#app[data-chapter="7"] .advanced-sign{color:white;font-size:.8em}
#app[data-chapter="7"] .advanced-operations{position:fixed;top:calc(var(--beam-y) + 65px);width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;transform:translate(-50%,calc(-1 * var(--pan-y,0px)));direction:ltr}
#app[data-chapter="7"] .advanced-operations button{font:600 28px/1 Fredoka,sans-serif;min-width:0;min-height:38px;padding:4px 5px}
#app[data-chapter="7"] .advanced-operations button.selected{outline:2px solid #fff5ae;box-shadow:0 0 12px #ffc73e}
#advancedClock{position:absolute;top:9%;left:50%;translate:-50% 0;border:3px solid #e7ae50;border-radius:50%;background:#102a46;color:#fff4c7;width:42px;height:42px;display:grid;place-items:center;font:600 26px Fredoka,sans-serif;z-index:4}
#advancedClock.danger{color:#ff7878;border-color:#ff7878}
#advancedKeyboard{position:absolute;left:3%;bottom:9px;width:40%;padding:7px;border:3px solid #e7b95b;border-radius:13px;background:#123e54;box-shadow:0 4px 0 #102442;z-index:8;direction:ltr;box-sizing:border-box}
#advancedKeyboard[data-side="1"]{left:auto;right:3%}
.advanced-input{display:flex;align-items:center;border:1px solid #f6d68a;border-radius:7px;background:#102442;color:white;padding:0 5px;gap:5px;font:600 23px Fredoka,sans-serif}
.advanced-input input{width:100%;min-width:0;border:0;background:transparent;color:#fff;font:inherit;outline:none;padding:3px 0}
.advanced-input button.advanced-close{background:none;border:0;box-shadow:none;color:#f6d68a;padding:0 3px;font-size:20px}
.advanced-keys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 1.2fr 1fr;grid-template-rows:repeat(2,32px);gap:4px;margin-top:5px}
.advanced-keys button{font:600 21px/1 Fredoka,sans-serif;min-width:0;min-height:0;padding:1px;border-radius:7px;box-shadow:0 2px 0 #102442}
.advanced-keys [data-key="6"]{grid-column:1;grid-row:2}.advanced-keys [data-key="7"]{grid-column:2;grid-row:2}.advanced-keys [data-key="8"]{grid-column:3;grid-row:2}.advanced-keys [data-key="9"]{grid-column:4;grid-row:2}.advanced-keys [data-key="0"]{grid-column:5;grid-row:2}
.advanced-keys .advanced-x{grid-column:6;grid-row:1/3;display:grid;place-items:center;padding:0;border:0;background:none;box-shadow:none;border-radius:50% 50% 46% 46% / 65% 65% 35% 35%}
.advanced-keys .advanced-x svg{display:block;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 2px 0 #081b2c)}
.advanced-keys .advanced-x:focus-visible{outline:2px solid #fff5ae;outline-offset:1px}
.advanced-keys .advanced-x[hidden]{display:none}.advanced-keys:has(.advanced-x[hidden]){grid-template-columns:repeat(5,minmax(0,1fr)) 1fr}.advanced-keys:has(.advanced-x[hidden]) .advanced-erase,.advanced-keys:has(.advanced-x[hidden]) .advanced-confirm{grid-column:6}
.advanced-keys .advanced-erase{grid-column:7;grid-row:1}.advanced-keys .advanced-confirm{grid-column:7;grid-row:2}
#advancedError{font:500 12px Arial,sans-serif;color:#ffe5a4;direction:rtl;text-align:center}#advancedError:not(:empty){padding-top:4px}
#app[data-chapter="7"] .advanced-hatch-answer{display:flex;align-items:flex-end;gap:9px;direction:ltr}
#app[data-chapter="7"] .advanced-answer-chick{display:block;width:clamp(66px,9vw,125px);height:clamp(66px,9vw,125px);margin-bottom:-1px}
#app[data-chapter="7"] .advanced-answer-chick>svg{display:block;width:100%;height:100%}
.advanced-chapter-entry{position:absolute;right:3%;bottom:26%;font-size:14px!important;padding:6px 12px!important}
@media(max-height:600px) and (orientation:landscape){
 #app[data-chapter="7"] #scene{--beam-y:calc(42dvh - 111px)}
 #app[data-chapter="7"] .advanced-egg{width:66px;height:81px;margin-bottom:-5px}
 #app[data-chapter="7"] .advanced-egg>b{font-size:32px}
 #app[data-chapter="7"] .advanced-constant{font-size:54px;-webkit-text-stroke-width:4px;text-shadow:0 2px 0 #10131c}
 #app[data-chapter="7"] .advanced-answer-chick{width:66px;height:66px}
 #app[data-chapter="7"] .advanced-operations{top:calc(var(--beam-y) + 52px);gap:4px}
 #app[data-chapter="7"] .advanced-operations button{font-size:25px;min-height:29px;padding:0}
 #advancedKeyboard{padding:5px;bottom:7px}.advanced-keys{grid-template-rows:repeat(2,28px)}.advanced-input{font-size:21px}
 #advancedClock{top:5px;width:28px;height:28px;font-size:20px;border-width:2px}
 #app[data-chapter="7"] .footer-center{left:calc(50% - 19px)}
}
@media(max-height:340px) and (orientation:landscape){#app[data-chapter="7"] #scene{--beam-y:calc(38dvh - 111px)}#advancedKeyboard{padding:5px;bottom:5px}.advanced-keys{grid-template-rows:repeat(2,27px)}.advanced-input{font-size:21px}.advanced-keys button{font-size:19px}}
@media(orientation:portrait){#app[data-chapter="7"] #scene{--beam-y:40%}#advancedKeyboard{width:92%;left:4%;right:auto}#advancedKeyboard[data-side="1"]{right:4%}#app[data-chapter="7"] .advanced-operations{top:calc(var(--beam-y) + 58px)}#app[data-chapter="7"] .advanced-egg{width:52px;height:66px}#app[data-chapter="7"] .advanced-constant{font-size:23px}}
