:root{color-scheme:dark;font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:#e9eee8;background:#061218}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:linear-gradient(100deg,#051216e6,#051216a8)}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button,a,canvas{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}a:focus-visible,button:focus-visible,canvas:focus-visible{outline:2px solid #e2d3a4;outline-offset:4px}.top{width:min(1180px,calc(100% - 64px));margin:0 auto;padding:24px 0;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:13px;letter-spacing:.05em}.brand small{display:block;color:#91aaa7;margin-top:3px;font:10px "KaiTi",serif;letter-spacing:.16em}.back,.other-path{font-size:12px;color:#b9c6ba}.back{border-bottom:1px solid #849c7d66;padding:7px 0}.layout{width:min(1000px,calc(100% - 64px));margin:20px auto 32px;display:grid;grid-template-columns:1fr 440px;gap:100px;align-items:center}.eyebrow{color:#b1bd9b;font-size:10px;letter-spacing:.19em;margin:0 0 18px}h1{font:clamp(54px,6vw,76px)/1.15 "STKaiti","KaiTi","Songti SC",serif;letter-spacing:.06em;margin:0}h1 span{color:#c8debd}h1 i{display:block;font:normal 16px "STKaiti","KaiTi",serif;color:#d3c6a5;letter-spacing:.3em;margin-top:20px}.description{color:#a9bab6;font-size:14px;line-height:1.9;margin:28px 0}.rules{list-style:none;padding:0;margin:30px 0;display:grid;gap:21px}.rules li{display:flex;gap:19px;align-items:center;font-size:14px}.rules b{font:italic 20px Georgia,serif;color:#7e967f}.rules small{display:block;color:#819c99;font-size:11px;margin-top:7px}.rules em{font-style:normal;color:#e6d6ad}.reward-note{position:relative;color:#c5d7c4;padding:18px 12px 18px 65px;font-size:12px;line-height:1.9;border-block:1px solid #819d7c30;margin:35px 0 24px}.reward-note>span{position:absolute;left:9px;top:23px;font:26px "KaiTi",serif;color:#decba0;border:1px solid #b6b48780;padding:5px 9px;border-radius:12px 12px 6px 6px}.reward-note small{color:#7f9b96;font-size:10px}.other-path{color:#afbb9a;font-size:11px}.arena{min-width:0;border:1px solid #a0ba964d;background:#06191eee;border-radius:20px;box-shadow:0 24px 70px #0005;overflow:hidden}.hud{height:72px;display:flex;align-items:center;gap:34px;padding:12px 22px;border-bottom:1px solid #829d7b30}.hud small{display:block;color:#8fa8a4;font-size:9px;letter-spacing:.1em;margin-bottom:4px}.hud strong{font:23px Georgia,serif;white-space:nowrap;color:#e8dfc0}.hud strong span{font:11px sans-serif;color:#97b3a0}.hud #shields{font:18px sans-serif;letter-spacing:.04em;color:#9cceac}.hud button{margin-left:auto;background:#b8d6a30a;border:1px solid #a0b5934d;color:#d1ddbf;border-radius:8px;width:30px;height:32px;font-size:17px}.field{position:relative;aspect-ratio:720/1000;overflow:hidden;background:#071d25}canvas{display:block;width:100%;height:100%;touch-action:none}.phase{position:absolute;left:0;right:0;top:14px;text-align:center;pointer-events:none;color:#c5d4beaa;letter-spacing:.2em;font:12px "KaiTi",serif}.screen{position:absolute;inset:0;background:linear-gradient(#061920bf,#05171ef5);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px}.seal{width:77px;height:88px;display:grid;place-items:center;color:#d8cea4;font:36px "KaiTi",serif;border:1px solid #a2b49488;border-radius:30px 30px 12px 12px;box-shadow:inset 0 0 25px #9bc5a20d;margin-bottom:30px;background:#17392e44}.screen .eyebrow{font-size:9px;margin-bottom:12px}h2{font:35px "KaiTi","STKaiti",serif;color:#e4e4cb;margin:0 0 16px;letter-spacing:.08em}.screen p:not(.eyebrow){font-size:12px;color:#99b1ad;line-height:1.85;margin:0 0 23px}.primary{display:flex;align-items:center;justify-content:center;gap:28px;width:100%;min-height:47px;border:1px solid #b7c797a3;border-radius:9px;background:linear-gradient(130deg,#3b6348,#203f34);box-shadow:inset 0 1px #e8e9b536;color:#f0ebce;font-size:13px;letter-spacing:.05em}.screen .primary{max-width:280px}.primary:hover{background:linear-gradient(130deg,#507451,#2a5141)}.secondary{margin-top:13px;padding:10px 25px;border:1px solid #afc59a66;background:#17362c;color:#dee6c7;border-radius:7px}.screen .notice{margin-top:14px!important;max-width:290px;font-size:11px!important;color:#d7bda0!important}.countdown{position:absolute;inset:0;background:#06181c99;display:grid;place-items:center;font:80px Georgia,serif;color:#e0dbb4}.arena-foot{padding:13px 16px;display:flex;gap:15px;align-items:center;font-size:10px;color:#90aaa6;border-top:1px solid #829d7b30}.arena-foot span{display:flex;gap:5px;align-items:center;white-space:nowrap}.arena-foot small{margin-left:auto;font-size:8px}.jade-dot{width:7px;height:9px;background:#9cd5b4;transform:rotate(35deg)}.hazard-dot{width:4px;height:11px;background:#d98073;transform:rotate(35deg)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}dialog{width:min(450px,calc(100% - 32px));padding:34px;border:1px solid #9bae8d80;border-radius:18px;color:#cedace;background:#0b2427;box-shadow:0 20px 90px #0008}dialog::backdrop{background:#010b11c7;backdrop-filter:blur(7px)}dialog h2{font-size:33px}dialog p{color:#92aaa2;font-size:12px;line-height:1.7}dialog .eyebrow{font-size:9px}dialog label{display:block;font-size:11px;color:#cfdbbf;margin:20px 0 8px}dialog label small{color:#829c91;font-size:10px;margin-left:7px}.copy-row{display:flex;gap:8px;align-items:stretch}.copy-row input,.copy-row textarea{width:100%;min-width:0;border:1px solid #95b08b4d;border-radius:7px;background:#05191d;color:#d3dfcb;padding:11px;font:11px/1.6 Consolas,monospace;resize:none}.copy-row button{border:1px solid #8da27d66;border-radius:7px;background:#244437;color:#dfdfc2;font-size:11px;padding:0 13px;flex-shrink:0}dialog .primary{margin-top:22px}.close{position:absolute;top:10px;right:13px;border:0;background:transparent;color:#b6c4b0;font-size:25px}.noscript{position:fixed;inset:30% 10% auto;text-align:center;background:#0b2427;padding:30px}.noscript a{text-decoration:underline}.arena.shake canvas{animation:hit .2s ease-out}.arena.victory{box-shadow:0 0 0 1px #cdd79c66,0 15px 65px #789c4633}@keyframes hit{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@media(max-width:900px){.layout{gap:45px;grid-template-columns:1fr 390px}.hud{gap:27px}.intro h1{font-size:53px}.arena-foot{gap:10px;padding-inline:12px}.arena-foot small{font-size:7px}}
@media(max-width:700px){body{background:linear-gradient(#06151bdd,#06151bf5)}.top{width:calc(100% - 32px);padding:13px 0;gap:10px}.brand{font-size:11px}.brand img{width:27px;height:27px}.brand small{font-size:8px}.back{font-size:10px}.layout{width:100%;display:block;margin:0 auto 16px}.intro{max-width:440px;padding:5px 20px 14px;margin:auto}.intro>.eyebrow,.description,.rules,.reward-note,.other-path{display:none}.intro h1{display:flex;align-items:center;gap:2px;font-size:27px;letter-spacing:.05em}.intro h1 i{font:11px sans-serif;letter-spacing:.06em;margin:0 0 0 auto;color:#bfc5a6}.arena{width:min(calc(100vw - 28px),calc((100svh - 194px)*.72),440px);margin:auto;border-radius:14px}.hud{height:57px;padding:8px 14px;gap:24px}.hud strong{font-size:20px}.hud small{font-size:8px}.hud #shields{font-size:15px}.hud button{height:28px;width:28px}.arena-foot{padding:10px;font-size:9px;gap:9px}.arena-foot small{font-size:7px;max-width:150px;text-align:right}.screen{padding:20px}.seal{width:56px;height:64px;font-size:29px;margin-bottom:19px}.screen h2{font-size:29px}.screen p:not(.eyebrow){font-size:11px;margin-bottom:18px}.screen .primary{font-size:12px;min-height:43px}.screen .eyebrow{font-size:8px}.phase{font-size:10px;top:10px}dialog{padding:27px 23px}}
@media(max-width:700px) and (max-height:700px){.arena{width:min(calc(100vw - 24px),calc((100svh - 174px)*.72))}.top{padding-block:9px}.intro{padding-bottom:10px}.intro h1{font-size:24px}.seal{display:none}.screen h2{font-size:25px}.screen{padding:18px}.hud{gap:17px}.arena-foot small{display:none}}
@media(min-width:701px) and (max-height:850px){.top{padding-block:15px}.layout{margin-top:0;grid-template-columns:1fr min(410px,calc((100svh - 160px)*.72));gap:65px;max-width:900px}.hud{height:60px;gap:20px}.intro h1{font-size:58px}.description{margin:22px 0}.rules{margin:24px 0;gap:17px}.reward-note{margin-block:25px 20px}.arena-foot small{display:none}}
@media(max-height:500px) and (orientation:landscape){.top{padding-block:10px}.layout{display:grid;width:calc(100% - 50px);grid-template-columns:1fr 240px;gap:35px;margin-top:0}.intro{padding:0}.intro>.eyebrow{display:block}.intro h1{display:block;font-size:37px}.intro h1 i{margin-top:15px}.intro .description{display:block;font-size:12px}.arena{width:240px}.field{height:250px;aspect-ratio:auto}.hud{height:47px;gap:15px;padding:6px 12px}.hud small{font-size:7px}.hud strong{font-size:17px}.hud #shields{font-size:13px}.screen{padding:15px}.screen h2{font-size:24px}.seal{display:none}.screen p:not(.eyebrow){font-size:10px;margin-bottom:10px}.screen .eyebrow{display:none}.screen .primary{min-height:36px;font-size:11px}.arena-foot small{display:none}.arena-foot{padding:7px 12px}.other-path{display:inline}.phase{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-height:500px) and (orientation:landscape){.intro .rules,.intro .reward-note{display:none}.intro .description{margin:20px 0}.layout{align-items:center}.intro .other-path{display:inline-block;font-size:10px}.intro>.eyebrow{font-size:8px}}
/* Fit the entire arena to the visible mobile screen, including Safari toolbars. */
body{background:radial-gradient(ellipse at 50% 45%,#28524024,transparent 70%),linear-gradient(#03141be8,#04131bf2),url('/free-token/game/mountain-night-v1.webp') center/cover fixed}
.top{padding:14px 0}.layout{margin-top:8px;gap:65px;max-width:960px}.arena{border-color:#becb9959;background:#071c24;box-shadow:inset 0 1px #e1eac51c,0 20px 60px #0005}.field{background:#102d39}.phase{padding:6px 10px;top:7px;text-shadow:0 1px 6px #04121d;color:#e1e6c8b3;font-size:11px;letter-spacing:.15em}.screen{background:linear-gradient(#061b2866,#041722c7);padding:22px}.screen .seal{width:84px;height:96px;margin-bottom:14px;border:0;background:none;box-shadow:none;overflow:visible}.seal-sword{display:block;width:100px;height:100px;background:url('/free-token/game/jade-atlas-v1.webp') 0 0/200% 200% no-repeat}.screen h2{font-size:31px}.screen p:not(.eyebrow){font-size:12px;color:#c0d2c8}.screen .eyebrow{color:#d1cea7;letter-spacing:.13em}.screen .primary{min-height:46px;max-width:290px;font-size:13px;background:linear-gradient(125deg,#416a4d,#183d35);border-color:#d7d4a48c}.hud{height:60px;padding:9px 18px;gap:28px}.hud strong{font-size:23px}.hud #shields{color:#c6d6a2;font-size:18px}.arena-foot{padding-block:9px}.intro h1{font-size:60px}.intro h1 i{font-size:14px}.rules{gap:18px}.description{margin:22px 0}.reward-note{margin-top:25px}.top .back{min-height:34px;display:flex;align-items:center}.arena.shake canvas{animation:hit .2s ease-out}.back{color:#d7d6ad}.hud button{width:34px;height:34px}.primary:active{transform:scale(.985)}
@media(max-width:700px){body{min-height:100svh}.top{width:calc(100% - 28px);padding:6px 0;min-height:43px}.brand img{width:24px;height:24px}.brand small{display:none}.brand{font-size:10px}.top .back{font-size:10px;padding:4px 0}.layout{width:100%;margin:0 auto 8px}.intro{padding:0 16px 7px}.intro h1{font-size:23px}.intro h1 i{font:10px sans-serif;letter-spacing:.03em}.arena{width:min(calc(100% - 24px),520px);margin:0 auto;border-radius:13px}.field{height:calc(100svh - 166px);min-height:220px;max-height:620px;aspect-ratio:auto}.hud{height:51px;gap:26px;padding:7px 14px}.hud strong{font-size:20px}.hud small{font-size:8px;margin-bottom:3px}.hud #shields{font-size:17px}.hud button{width:31px;height:31px}.arena-foot{height:27px;padding:5px 12px;font-size:9px;gap:12px}.arena-foot small{display:block;font-size:7px;max-width:170px}.screen{padding:16px}.screen .seal{display:block;width:70px;height:82px;margin-bottom:10px}.seal-sword{width:82px;height:82px}.screen h2{font-size:29px;margin-bottom:12px}.screen p:not(.eyebrow){font-size:11px;margin-bottom:18px}.screen .eyebrow{font-size:8px;margin-bottom:11px}.screen .notice{margin-top:10px!important;margin-bottom:0!important}.phase{font-size:9px;top:4px}.screen .primary{min-height:44px;font-size:12px}}
@media(max-width:700px) and (max-height:620px){.top{min-height:38px;padding-block:3px}.intro{padding-bottom:5px}.intro h1{font-size:21px}.field{height:calc(100svh - 147px);min-height:180px}.hud{height:46px;padding-block:5px}.hud small{font-size:7px}.hud strong{font-size:18px}.hud #shields{font-size:15px}.screen .seal{display:none}.screen h2{font-size:26px;margin-bottom:10px}.screen .eyebrow{margin-bottom:9px}.screen p:not(.eyebrow){font-size:10px;margin-bottom:15px}.arena-foot{height:24px;font-size:8px}.arena-foot small{font-size:7px}.screen .primary{min-height:42px}}
@media(max-width:350px){.hud{gap:20px;padding-inline:11px}.arena-foot small{display:none}.intro h1 i{font-size:9px}.screen .eyebrow{font-size:7px}}
@media(min-width:701px) and (max-height:850px){.top{padding-block:10px}.layout{grid-template-columns:1fr min(410px,calc((100svh - 135px)*.72));gap:48px;margin-top:0}.intro h1{font-size:50px}.field{max-height:calc(100svh - 135px)}.hud{height:54px}.arena-foot{padding-block:7px}.rules{gap:13px;margin:20px 0}.description{margin:17px 0}.reward-note{margin-top:20px}}
@media(max-height:500px) and (orientation:landscape){.top{padding:4px 0;min-height:35px;width:calc(100% - 40px)}.layout{display:grid;grid-template-columns:1fr min(320px,46vw);gap:24px;width:calc(100% - 40px);margin:0 auto}.intro{padding:0}.intro h1{display:block;font-size:35px}.intro h1 i{margin-top:12px}.intro .description{font-size:11px;margin:14px 0;display:block}.intro>.eyebrow,.intro .rules,.intro .reward-note{display:none}.intro .other-path{display:inline;font-size:10px}.arena{width:100%}.field{height:calc(100svh - 116px);min-height:150px;max-height:none}.hud{height:43px;gap:22px;padding:5px 12px}.hud strong{font-size:17px}.hud #shields{font-size:14px}.hud button{height:27px;width:27px}.arena-foot{height:23px;padding-block:4px}.arena-foot small{display:none}.screen .seal,.screen .eyebrow{display:none}.screen{padding:12px}.screen h2{font-size:24px;margin-bottom:10px}.screen p:not(.eyebrow){font-size:10px;margin-bottom:12px}.screen .primary{min-height:38px;font-size:11px}}
.reward-help{margin:0 0 14px!important;color:#a8beb5!important;font-size:12px!important}.resend-note{display:block;margin-top:9px;text-align:center;color:#708d82;font-size:10px}#claim-human{margin-top:12px}#reward-error{min-height:19px;color:#d99386}#reward-secret label{margin-top:15px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Rage is driven by jade count; collecting the goal starts pure survival. */
.arena[data-phase="rage"],.arena[data-phase="survival"]{border-color:#d8946b99}
.arena[data-phase="rage"] .phase,.arena[data-phase="survival"] .phase{color:#ffe0ad;background:#48291ecf;width:max-content;max-width:95%;left:50%;right:auto;transform:translateX(-50%);border:1px solid #d39e7759;border-radius:20px;padding:6px 14px;white-space:nowrap}
.arena[data-phase="survival"] .hud strong:first-child{color:#ffc19a}
.arena[data-phase="rage"] .field,.arena[data-phase="survival"] .field{box-shadow:inset 0 0 0 2px #b961483b}
.screen .loss-taunt{font-size:13px!important;line-height:1.65!important;color:#e8cc9e!important;margin:6px 0 16px!important;max-width:300px}
.oath-detour{display:flex;align-items:center;justify-content:center;min-height:38px;margin-top:8px;color:#f0d6a0;font-size:12px;border-bottom:1px solid #d9bf8559}
@media(max-height:620px){.screen:has(.loss-taunt:not([hidden])) .seal,.screen:has(.loss-taunt:not([hidden])) .eyebrow{display:none}.screen .loss-taunt{font-size:11px!important;margin:4px 0 12px!important}.oath-detour{font-size:11px;min-height:32px;margin-top:6px}.screen:has(.loss-taunt:not([hidden])) h2{margin-bottom:7px}}

/* A compact sound control keeps the existing short-screen arena height. */
.hud #sound{flex-shrink:0;touch-action:manipulation;font:20px Georgia,serif}.hud #sound[aria-pressed="false"]{opacity:.5}.screen #screen-description{white-space:pre-line}
@media(max-width:350px){.hud{gap:14px}.hud #sound{width:28px;height:30px}}
