/* Layout rules are kept separate from the original Figma artwork coordinates. */
:root{--edge:clamp(18px,4vw,48px)}
[hidden]{display:none!important}
.account-section{border-top:1px solid #c2a04a40;margin-top:16px;padding-top:10px}
.release-panel label,.admin-page label{display:block;font-size:14px;margin:12px 0}
.release-panel input,.admin-page input,.admin-page select{display:block;width:100%;margin-top:8px;border:1px solid #c2a04a70;border-radius:10px;min-height:44px;padding:10px 12px;color:#f5f3e9;background:#101512;font:inherit}
.release-panel a.secondary{display:block;text-align:center;color:var(--gold);text-decoration:none}
.account-message{font-size:14px}.account-section button{width:100%}
.release-panel .choice{min-height:44px;min-width:44px}.release-panel .option-row{flex-wrap:wrap}
.pwa-notice{position:fixed;z-index:20;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(420px,calc(100vw - 24px));background:#101512f5;border:1px solid var(--gold);border-radius:16px;padding:16px;font-size:14px;box-shadow:0 8px 30px #0008}
.pwa-notice button{min-height:44px;color:var(--gold);margin-right:20px}.pwa-links{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.pwa-links button,.pwa-links a{font-size:12px;min-height:44px;display:inline-flex;align-items:center;color:var(--gold);text-decoration:none}
@media(min-width:600px){
 .app header,.stage-top,.bottom-dock{left:var(--edge);right:var(--edge);width:auto;transform:none}
 .brand{width:112px;height:39px}.stage-top{top:82px}.stage-top>span{font-size:12px}
 .header-actions{width:166px}.header-actions #hide-ui{font-size:12px}
 .controls{--s:1.35;bottom:calc(16px + env(safe-area-inset-bottom))}
 .bottom-dock .edition-actions span{font-size:12px}
 .panel{width:min(620px,calc(100vw - 48px))}
}
/* A shared horizontal rail keeps every icon inset from its decorative frame. */
@media(orientation:landscape){
 .controls{--s:1.2;--rail-width:min(820px,calc(100vw - 180px));--shape-width:calc(var(--rail-width) * .34);--motion-width:calc(var(--rail-width) * .30);width:var(--rail-width);height:144px;left:50%;right:auto;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom))}
 .shape-picker{left:0;width:var(--shape-width);height:calc(var(--shape-width) * 52 / 223.141);top:calc(44px - var(--shape-width) * 52 / 223.141 * .64423)}
 .motion-controls{left:auto;right:0;width:var(--motion-width);height:calc(var(--motion-width) * 52 / 186.763);top:calc(44px - var(--motion-width) * 52 / 186.763 * .64423)}
 .shape-label{left:0;top:0;width:var(--shape-width)}
 .animate-label{left:auto;right:0;top:0;width:var(--motion-width)}
 .controls .shape-picker button,.controls .motion-controls button{top:64.423%;width:44px;height:44px;transform:translate(-50%,-50%)}
 .controls .shape-picker button:nth-of-type(1),.controls .motion-controls button:nth-of-type(1){left:22%}
 .controls .shape-picker button:nth-of-type(2),.controls .motion-controls button:nth-of-type(2){left:50%}
 .controls .shape-picker button:nth-of-type(3),.controls .motion-controls button:nth-of-type(3){left:78%}
 .hue-control{left:39%;top:29px;width:26%;height:30px}
 .echo-brand{left:50%;transform:translateX(-50%);top:86px;width:70px;height:58px}
 body::after{height:200px}
}
@media(orientation:landscape) and (max-height:599px){
 :root{--edge:max(16px,env(safe-area-inset-left))}
 .app header,.stage-top,.bottom-dock{left:var(--edge);right:max(16px,env(safe-area-inset-right));width:auto;transform:none}
 .app header{top:max(12px,env(safe-area-inset-top))}.stage-top{top:52px}.brand{width:86px;height:30px}
 .controls{--s:1;--rail-width:min(620px,calc(100vw - 170px));height:108px;bottom:calc(48px + env(safe-area-inset-bottom))}
 .echo-brand{top:100px;width:42px;height:35px}
 .bottom-dock{bottom:max(10px,env(safe-area-inset-bottom));height:88px}
 body::before{height:100px}body::after{height:140px}.panel{width:min(540px,calc(100vw - 48px));height:calc(100dvh - 24px)}
}
@media(max-width:720px) and (orientation:landscape){
 .controls{--rail-width:calc(100vw - 112px);bottom:48px}
 .control-label{font-size:9px;letter-spacing:5px}
 .echo-brand{top:100px}.bottom-dock .edition-actions span{font-size:9px}
}
.admin-page{overflow:auto}.admin-page::before,.admin-page::after{display:none}.admin-page main{max-width:800px;margin:32px auto;padding:24px}.admin-page a{color:var(--gold)}.admin-page h1{font-size:24px;letter-spacing:3px}.admin-page article{border:1px solid #c2a04a60;border-radius:16px;padding:16px;margin:16px 0;overflow-wrap:anywhere}.admin-page button{border:1px solid var(--gold);border-radius:10px;padding:12px;min-height:44px;margin:6px}.admin-page #mfa-qr{width:200px;height:200px;background:white;padding:12px}
