:root{color-scheme:light;font:600 18px/1.35 ui-rounded,"Segoe UI",sans-serif;color:#25473f;background:#eaf0df}*{box-sizing:border-box}
body{min-height:100svh;margin:0;display:grid;place-items:center;padding:14px;background:radial-gradient(ellipse at 12% 10%,#fff3cf,transparent 60%),#e6efdd}main{width:min(820px,100%);display:grid;grid-template-columns:1fr 1fr;background:#fffaf0;border:2px solid #476756;border-radius:26px;overflow:hidden;box-shadow:0 8px 0 #59755d25}.story{display:grid;align-content:center;justify-items:center;gap:16px;background:radial-gradient(ellipse at 30% 22%,#dceabf,transparent 60%),#a7cfb6;padding:28px;text-align:center}.story span{font-weight:800}.story img{width:min(75%,210px);max-height:38vh;object-fit:contain}.story strong,h1{letter-spacing:-.045em;font-size:clamp(26px,4vw,43px);line-height:1.05;margin:0}form{padding:clamp(20px,3.7vw,40px)}label{display:block;margin:10px 0 5px;color:#496557}input{display:block;background:white;border:2px solid #8ea99a;border-radius:12px;width:100%;height:49px;text-align:center;color:#205545;font:700 26px/1 monospace;letter-spacing:.3em}p{color:#934c35;font-size:15px;margin:6px 0}p:empty{display:none}.keys{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}button{border:1px solid #8fa697;color:#204d41;background:#fffdf6;min-height:56px;border-radius:12px;box-shadow:0 2px #9bb19d;font:700 24px/1 ui-rounded,"Segoe UI",sans-serif;cursor:pointer;touch-action:manipulation}.keys [data-clear]{font-size:17px}.enter{min-height:54px;background:#235e50;color:white;width:100%;margin-top:13px;font-size:20px}.enter:disabled{background:#657f73;cursor:default}button:active{transform:translateY(1px)}:focus-visible{outline:3px solid #aa4b31;outline-offset:2px}@media(max-width:580px),(max-height:550px){main{grid-template-columns:1fr;max-width:460px}.story{display:flex;justify-content:center;padding:9px}.story img{height:45px;width:36px}.story strong{display:none}}@media(max-height:530px){form{padding:10px 18px}.keys{gap:5px}button,.enter{min-height:44px}.story{display:none}}
