html{font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#eef4f1;background:#101719}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% 0,rgba(36,69,61,.3),transparent 60%)}main,header,section,footer{display:block}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus{outline:2px solid #8ae8ce;outline-offset:2px}.shell{max-width:444px;margin:0 auto;padding:45px 22px 25px}.heading{position:relative;margin-bottom:27px;min-height:46px;padding-right:52px}.brand-mark{display:inline-block;vertical-align:middle;margin-right:13px;background:#8ae8ce;color:#102e27;width:43px;height:43px;line-height:43px;text-align:center;border-radius:14px;font-size:31px;font-weight:600}.brand>div{display:inline-block;vertical-align:middle}.brand h1{font-size:21px;letter-spacing:2px;margin:0 0 5px;font-weight:600}.brand p{margin:0;color:#859b99;font-size:13px}.theme{position:absolute;right:0;top:2px;background:transparent;border:1px solid #2b3a3d;color:#b8ceca;width:40px;height:40px;border-radius:50%;font-size:24px}.theme:hover{background:#253135}.calculator{background:#1a2427;border:1px solid #2b3a3d;border-radius:27px;padding:20px;box-shadow:0 28px 70px rgba(0,0,0,.2)}.display{padding:4px 4px 12px}.display-top{font-size:12px;color:#859b99;letter-spacing:1px}.keyboard-note{float:right;letter-spacing:0}.previous{margin-top:34px;height:22px;text-align:right;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;color:#859b99}#display{display:block;width:100%;text-align:right;overflow-x:auto;white-space:nowrap;font-size:48px;font-weight:400;letter-spacing:-1.5px;line-height:1.4;min-height:72px;scrollbar-width:none;font-variant-numeric:tabular-nums}.message{height:22px;text-align:right;color:#f2ab9c;font-size:13px}.keys{margin:0 -4px}.keys:after,.history-item:after{content:"";display:table;clear:both}.keys button{float:left;width:23%;margin:1%;border:0;border-radius:17px;height:65px;background:#253135;color:#eef4f1;font-size:25px;font-weight:500;transition:background .15s,transform .1s}.keys button:hover{background:#334247}.keys button:active{transform:scale(.95)}.keys .utility{color:#b8ceca;font-size:21px}.keys .operator{background:#29473f;color:#8ae8ce;font-size:28px}.keys .operator:hover{background:#375d52}.keys .equals{background:#8ae8ce;color:#102e27;font-size:30px}.keys .equals:hover{background:#b0f4e1}.history{padding:25px 5px 0}.history-heading{position:relative;min-height:28px;padding-right:40px}.history h2{margin:0;font-size:14px;font-weight:600;color:#b8ceca;letter-spacing:1px}.history-heading button{position:absolute;right:0;top:-7px;background:none;border:0;color:#859b99;font-size:13px;padding:7px 0 7px 15px}.empty{font-size:13px;color:#859b99;padding:10px 0 12px}.history-item{border-bottom:1px solid #2b3a3d;padding:12px 0}.history-expression{float:left;max-width:70%;color:#859b99;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-result{float:right;font-size:18px;font-variant-numeric:tabular-nums}footer{margin-top:22px;font-size:12px;line-height:1.8;color:#859b99;text-align:center}footer span{display:block;font-size:11px;opacity:.8}body.light{color:#233833;background:#f4f8f7}.light .calculator{background:#fff;border-color:#dce5e3;box-shadow:0 22px 60px rgba(36,72,60,.07)}.light .keys button{background:#eff3f3;color:#233833}.light .keys button:hover,.light .theme:hover{background:#e1e9e7}.light .keys .utility,.light .history h2{color:#4e6661}.light .keys .operator{background:#e1f0eb;color:#285e4f}.light .keys .operator:hover{background:#cce7de}.light .keys .equals{background:#83ddc3;color:#173a30}.light .keys .equals:hover{background:#b0f4e1}.light .brand p,.light .display-top,.light .previous,.light .history-heading button,.light .empty,.light .history-expression,.light footer{color:#6e8380}.light .theme{border-color:#dce5e3;color:#4e6661}.light .history-item{border-color:#dce5e3}@media(max-width:380px){.shell{padding:23px 15px 20px}.calculator{padding:15px}.keys button{height:60px;border-radius:14px}.previous{margin-top:25px}.heading{margin-bottom:20px}#display{font-size:36px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.member-route-status { display:none; position:fixed; inset:0; top:0; right:0; bottom:0; left:0; z-index:1000; background:rgba(6,13,21,.73); text-align:center; }
.member-route-status.is-open { display:block; }
.entry-card { box-sizing:border-box; position:absolute; left:50%; top:50%; width:86%; max-width:340px; transform:translate(-50%,-50%); padding:33px 12px 29px; overflow:hidden; background:#142333; background:linear-gradient(135deg,#223447,#101c29 78%); border:1px solid #a58d66; border-radius:9px; box-shadow:0 18px 55px rgba(0,0,0,.32); animation:entry-appear .18s ease-out both; }
.entry-card:before { content:""; position:absolute; top:0; left:0; height:2px; width:54%; background:linear-gradient(90deg,transparent,#f2dcac,transparent); animation:entry-glint .58s ease-out both; }
.entry-card strong { display:block; color:#dfc797; font:500 12px/1.5 Consolas,monospace; letter-spacing:.12em; }
.entry-card b { display:block; margin:12px 0; font:500 30px/1.4 "Songti SC","SimSun",serif; letter-spacing:.18em; color:#fff3dd; }
.entry-card small { font:normal 13px/1.6 sans-serif; color:#c3cbd0; }
@keyframes entry-appear { from {opacity:0} to {opacity:1} }
@keyframes entry-glint { from {transform:translateX(-100%)} to {transform:translateX(185%)} }
@media (prefers-reduced-motion:reduce) { .entry-card,.entry-card:before {animation:none} }

.route-window { position:relative; height:46px; width:82%; margin:20px auto 18px; overflow:hidden; border:1px solid #857253; border-radius:7px; background:linear-gradient(180deg,#101c29,#233648 49%,#101c29); box-shadow:inset 0 3px 9px rgba(0,0,0,.35); }
.route-window:before,.route-window:after { content:""; position:absolute; z-index:1; top:19px; border:3px solid transparent; }
.route-window:before { left:9px; border-left-color:#d7bc86; }
.route-window:after { right:9px; border-right-color:#d7bc86; }
.route-reel span { display:block; height:44px; line-height:44px; font-size:19px; letter-spacing:.12em; color:#f5e0b8; }
.route-reel { animation-duration:1.42s; animation-timing-function:cubic-bezier(.2,.28,.2,1); animation-fill-mode:both; }
.line-01 .route-reel { transform:translateY(-264px); animation-name:reel-one; }
.line-02 .route-reel { transform:translateY(-308px); animation-name:reel-two; }
.line-03 .route-reel { transform:translateY(-352px); animation-name:reel-three; }
@keyframes reel-one { from {transform:translateY(0)} to {transform:translateY(-264px)} }
@keyframes reel-two { from {transform:translateY(0)} to {transform:translateY(-308px)} }
@keyframes reel-three { from {transform:translateY(0)} to {transform:translateY(-352px)} }
.entry-card .route-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
@media(prefers-reduced-motion:reduce) { .route-reel {animation:none} }
.entry-card small { display:block; margin-top:8px; }
@media (prefers-reduced-motion:reduce) { .entry-card strong { animation:none!important; } }
.route-message { position:relative; min-height:1.6em; }
.route-message span:first-child { animation:route-message-out .14s linear 1.1s forwards; }
.route-message span:last-child { position:absolute; left:0; right:0; top:0; animation:entry-appear .18s ease-out 1.24s both; }
@keyframes route-message-out { to { opacity:0; } }
