:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f6ede1;background:#10100f;font-synthesis:none}*{box-sizing:border-box}body{min-width:280px;min-height:100vh;margin:0}button{font:inherit}.page{min-height:100vh;display:grid;place-items:center;padding:40px 16px;background:radial-gradient(circle at 50% 12%,#5a301a44,transparent 38%),radial-gradient(circle at 50% 90%,#34312d,transparent 42%),#10100f}.calculator{width:min(100%,448px);padding:clamp(18px,5vw,32px);border:1px solid #6d5a46;border-radius:24px;background:linear-gradient(145deg,#414039,#272824 48%,#1b1c19);box-shadow:inset 0 1px #8a817266,inset 0 -2px 5px #0009,0 28px 70px #000b}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{margin:0 0 5px;color:#c7a787;font-size:10px;font-weight:700;letter-spacing:.23em}h1{margin:0;font-size:clamp(20px,5vw,25px);font-weight:650;letter-spacing:.04em}.power-light{width:9px;height:9px;margin-right:5px;border-radius:50%;background:#ff9d43;box-shadow:0 0 5px #ff8b29,0 0 16px #ff7626aa}.display-panel{padding:13px 14px 17px;margin-bottom:24px;border:1px solid #0a0a09;border-radius:13px;background:linear-gradient(160deg,#11100e,#1c1713 60%,#0d0c0b);box-shadow:inset 0 2px 10px #000,0 1px #81715b55}.display-meta{display:flex;justify-content:space-between;gap:8px;margin:0 3px 10px;color:#aa9884;font-size:10px;font-weight:700;letter-spacing:.16em}.display-status{color:#ddac77;text-align:right;letter-spacing:.06em}.is-error .display-status{color:#ff7774}.display{display:block;width:100%;min-height:91px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#765537 #211b17}.tube-row{display:flex;justify-content:flex-end;gap:3px;width:max-content;min-width:100%}.tube{position:relative;display:grid;flex:0 0 auto;place-items:center;width:clamp(34px,9vw,48px);height:88px;overflow:hidden;border:1px solid #a6815c55;border-radius:18px 18px 9px 9px;background:linear-gradient(100deg,#5e443322,#b5956530 15%,#1a1411 39%,#3b241b 70%,#d9ac6740 92%,#281d16);box-shadow:inset 2px 0 5px #f9dfb11a,inset -3px 0 7px #000a,inset 0 -6px 10px #000a,0 2px 3px #0006}.tube:before{position:absolute;z-index:1;inset:3px auto 5px 4px;width:18%;border-radius:50%;background:linear-gradient(90deg,#fff7dc30,transparent);content:"";pointer-events:none}.tube:after{position:absolute;inset:auto 5px 3px;height:5px;border-radius:50%;background:#ee7c2b38;filter:blur(4px);content:""}.tube-character{color:#ffad62;font-family:Courier New,ui-monospace,monospace;font-size:clamp(32px,8vw,48px);line-height:1;text-shadow:0 0 2px #fff2ba,0 0 7px #ff9b36,0 0 18px #ff6b18,0 0 28px #d84b0b;animation:tube-light .24s ease-out both}.tube-decimal{width:22px}.tube-decimal .tube-character{align-self:end;margin-bottom:14px}.is-error .tube-character{color:#ff8d79;text-shadow:0 0 4px #ff6e63,0 0 14px #e43d37,0 0 25px #a51a17}.keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:"clear divide multiply subtract" "seven eight nine add" "four five six equals" "one two three equals" "zero zero decimal equals";gap:10px}.key{min-width:0;min-height:58px;border:1px solid #78736a;border-radius:11px;color:#fff8e8;background:linear-gradient(#64625c,#45453f 65%,#383934);box-shadow:inset 0 1px #ffffff40,0 3px #161715,0 5px 8px #0006;font-size:23px;font-weight:600;cursor:pointer;touch-action:manipulation;transition:transform .12s ease,filter .12s ease,box-shadow .12s ease}.key:hover{filter:brightness(1.15)}.key:active{transform:translateY(2px);box-shadow:inset 0 1px #ffffff25,0 1px #161715}.key:focus-visible{outline:3px solid #ffc17a;outline-offset:3px}.key-operator{color:#ffc789;background:linear-gradient(#5a4e42,#40372f)}.key-operator[aria-pressed=true]{color:#fff5d7;border-color:#f6a55f;box-shadow:inset 0 0 12px #e77c3044,0 0 12px #ff903344}.key-clear{color:#ffd7c3;background:linear-gradient(#754b40,#4d302b)}.key-equals{color:#2b170c;border-color:#e9a15c;background:linear-gradient(#ffc37c,#ed9347 68%,#cf7131);box-shadow:inset 0 1px #fff5cb,0 3px #713916,0 5px 10px #0008;font-size:30px}.footer-note{margin:22px 0 0;color:#b8ad9f;font-size:11px;letter-spacing:.12em;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@keyframes tube-light{0%{opacity:.25;filter:blur(3px);transform:scale(.96)}55%{opacity:1}to{opacity:1;filter:none;transform:scale(1)}}@media(max-width:380px){.page{padding:18px 10px}.calculator{padding:17px;border-radius:18px}.keypad{gap:7px}.key{min-height:52px}.tube{width:34px;height:76px}.display{min-height:79px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
