:root{font-family:Tahoma,Arial,sans-serif;background:#112d3d;color:#fff1d3}*{box-sizing:border-box}body{margin:0;overflow:hidden}button{font:inherit;border:0;border-radius:28px;padding:12px 20px;background:#e9b96e;color:#213f48;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #fff;outline-offset:4px}canvas{position:fixed;inset:0;width:100%;height:100%}header{position:fixed;right:35px;top:25px;text-shadow:0 3px 15px #132a3f}header small{font-size:12px;color:#ffd89a}h1{font-size:34px;margin:5px 0}header p{font-size:11px;color:#d5e1dd}nav{position:fixed;top:25px;left:30px;display:flex;gap:10px}nav button{font-size:12px;background:#163444dd;color:#eee5c9;border:1px solid #b9d6d333;backdrop-filter:blur(10px)}#story{position:fixed;right:35px;top:165px;width:290px;padding:20px 24px;background:linear-gradient(130deg,#f7ead5f0,#e1e1c9eb);border-radius:8px 28px 28px;color:#274751;box-shadow:0 10px 30px #102c3b55}#chapter{font-size:11px;color:#947846}h2{font-size:24px;margin:10px 0}#caption{font-size:12px;line-height:1.8}footer{position:fixed;bottom:0;left:0;right:0;text-align:center;background:linear-gradient(transparent,#102b3be8 40%);padding:50px 15px 23px}footer p{font-size:14px;min-height:22px}footer div{display:flex;justify-content:center;gap:12px}#demo{background:#f9f6df13;color:#f7e5c9;border:1px solid #b9c7c555}footer small{display:block;font-size:10px;color:#b5cfce;margin-top:17px}#camera{position:fixed;width:145px;left:20px;bottom:190px;border:2px solid #c3c6a1;border-radius:15px;transform:scaleX(-1)}#diagnostics{position:fixed;left:20px;bottom:165px;background:#17364adf;padding:5px 10px;border-radius:10px;font-size:10px;max-width:260px}#modal{position:fixed;inset:0;background:#102539bb;backdrop-filter:blur(10px);display:grid;place-items:center}#modal[hidden]{display:none}article{background:#efe6d2;color:#2b4a50;border-radius:30px;margin:20px;padding:35px;text-align:center;max-width:400px}article p{line-height:1.8}article small{color:#a1844f}@media(max-width:650px){header{right:17px;top:17px}header small{font-size:9px}h1{font-size:25px}header p{font-size:9px}nav{left:14px;top:16px;flex-direction:column;gap:7px}nav button{padding:9px 11px;font-size:10px}#story{top:130px;right:17px;width:225px;padding:13px 18px}h2{font-size:21px}#caption{font-size:10px}footer{padding-bottom:20px}footer p{font-size:12px}footer button{font-size:11px;padding:11px 14px}footer small{font-size:8px}#camera{width:90px;left:12px;bottom:220px}#diagnostics{left:12px;bottom:195px;font-size:9px;max-width:200px}}

@media(min-width:651px){#story{right:50%;transform:translateX(50%);top:125px;width:290px;padding:15px 22px}#story h2{font-size:22px;margin:7px 0}footer{padding:24px 15px 15px}footer small{margin-top:10px}}

@media(max-width:650px){#camera{top:120px;bottom:auto}#diagnostics{top:192px;bottom:auto;max-width:125px}}
@media(min-width:651px){#camera{top:90px;bottom:auto}#diagnostics{top:205px;bottom:auto}}

@media(max-width:650px){nav button{min-height:44px}footer button{min-height:48px;font-size:13px}}
@media (max-height:520px) and (min-width:651px){
 header{top:10px;right:20px} h1{font-size:22px;margin:2px 0} header small{font-size:9px} header p{font-size:9px}
 #story{left:14px;right:auto;top:52px;transform:none;width:auto;max-width:300px;padding:6px 12px;border-radius:14px;display:flex;gap:10px;align-items:baseline} #story h2{font-size:14px;margin:0;display:inline} #chapter{font-size:9px;margin:0} #caption{display:none} #souvenirs{display:inline;font-size:12px;margin-top:0;min-height:0}
 nav{top:10px;left:14px;gap:6px} nav button{padding:7px 10px;font-size:10px;min-height:36px}
 footer{padding:24px 10px 8px;background:linear-gradient(transparent,#102b3bc8 55%,#102b3be0)} footer p{font-size:11px;min-height:16px;margin:3px 0} footer button{padding:8px 16px;font-size:12px} footer small{margin-top:5px;font-size:8px}
 #camera{width:100px;bottom:130px;left:12px} #diagnostics{left:12px;bottom:112px;font-size:8px;max-width:170px}
}
#souvenirs{display:block;font-size:16px;letter-spacing:3px;min-height:20px;margin-top:4px}#souvenirs span{display:inline-block;animation:pop .45s ease}@keyframes pop{0%{transform:scale(.2);opacity:0}70%{transform:scale(1.25)}100%{transform:scale(1);opacity:1}}
