:root{--background:#000000;--fluid:#ff0808;--ui:#c5c5cd;--panel:#141416;--line:#ffffff13}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{background:var(--background);color:var(--ui);font:12px Arial,"Microsoft YaHei",sans-serif}main{height:100%;width:100%;position:relative;isolation:isolate}button,input{font:inherit}button{background:none;border:0;color:inherit;cursor:pointer}button:hover{color:#fff;background:#ffffff0a}button,input{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible{outline:1px solid #888;outline-offset:4px}button:disabled{opacity:.3;cursor:default}[hidden]{display:none!important}#fluid{position:absolute;inset:0;width:100%;height:100%;touch-action:none}#word{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);font-family:Georgia,"Times New Roman","Songti SC",SimSun,serif;font-weight:700;font-size:clamp(90px,15vw,260px);line-height:.88;white-space:pre;letter-spacing:-.075em;padding-right:.075em;color:var(--background);-webkit-text-stroke:.5px var(--fluid);pointer-events:none;user-select:none}#guides{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:40vw;height:12vw;display:flex;align-items:end;pointer-events:none;opacity:.42}#guides>i{border:1px solid #8a8a8a66;flex:1;height:100%;margin-right:2px}#guides>i:nth-child(2){height:74%}#guides>i:nth-child(3){height:78%}#guides>i:last-of-type{margin:0}#guides svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}#guides path{fill:none;stroke:#aaa;stroke-width:.6}#guides circle{fill:#eee}.dock-area{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(760px,calc(100vw - 40px));z-index:5}.time{display:block;text-align:center;font-variant-numeric:tabular-nums;color:#747480;font-size:10px;margin-bottom:18px}.dock{display:flex;align-items:center;gap:14px;padding:18px 20px;background:#151516eb;backdrop-filter:blur(20px);border:1px solid #ffffff13;border-radius:24px;height:78px;box-shadow:0 6px 30px #0002}#text{min-width:40px;flex:1;width:0;background:none;border:0;outline-offset:2px;color:#e5e5ec;font-size:20px;letter-spacing:.4px;padding:5px 0}.colour-controls{display:flex;align-items:center;gap:16px}.colour-control{display:flex;align-items:center;gap:9px;cursor:pointer}.colour-control>span{font-size:10px;color:#92929b;white-space:nowrap}input[type=color]{appearance:none;-webkit-appearance:none;width:30px;height:30px;border:1px solid #ffffff20;border-radius:50%;background:transparent;padding:0;overflow:hidden;cursor:pointer;flex-shrink:0}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}input[type=color]::-moz-color-swatch{border:0;border-radius:50%}.divider{height:28px;width:1px;background:#ffffff24;margin:0 2px}.icon{padding:5px;width:31px;height:32px;display:grid;place-items:center;border-radius:7px;flex-shrink:0}.icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:square;stroke-linejoin:miter}.speed-control{display:block;width:82%;margin:18px auto 0}.speed-control input{display:block;appearance:none;-webkit-appearance:none;width:100%;height:3px;border-radius:4px;background:#37373d;cursor:pointer;margin:0}.speed-control input::-webkit-slider-thumb{appearance:none;width:10px;height:10px;border-radius:50%;background:#96969e}.speed-control input::-moz-range-thumb{width:10px;height:10px;border:0;border-radius:50%;background:#96969e}#panel{position:absolute;bottom:178px;left:50%;transform:translateX(-50%);width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 205px);overflow:auto;background:#151518f5;border:1px solid #ffffff16;backdrop-filter:blur(24px);border-radius:20px;padding:20px 22px;z-index:10;box-shadow:0 16px 65px #0005}.panel-title{display:flex;align-items:center;justify-content:space-between}.panel-title h1{font-size:14px;font-weight:500;letter-spacing:.5px;margin:0}.panel-title button{font-size:24px;font-weight:300}.section-label{font-size:10px;color:#85858e;margin:20px 0 12px}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.preset{border:1px solid #ffffff10;border-radius:10px;padding:10px;text-align:left;color:#a5a5ae;font-size:10px}.preset[aria-pressed=true]{border-color:#ffffff60;background:#ffffff08;color:#fff}.preset-colors{height:26px;border-radius:5px;display:flex;margin-bottom:9px;overflow:hidden}.preset-colors i{flex:1;background:var(--c)}.custom-title{display:flex;justify-content:space-between;font-size:11px;margin:23px 0 12px}.custom-title button{font-size:10px;color:#8f8f9b;padding:0}.custom-colors{display:flex;gap:15px;align-items:center;min-height:39px}.custom-color{position:relative}.custom-color input{width:30px;height:30px}.remove-color{position:absolute;right:-6px;top:-7px;border-radius:50%;background:#39393f;color:#d2d2db;width:14px;height:14px;font-size:11px;line-height:14px;padding:0}.background-row{display:flex;align-items:center;gap:12px;font-size:11px;margin:20px 0;border-top:1px solid var(--line);padding-top:18px}.background-row>span{margin-right:auto}.background-swatches{display:flex;gap:7px}.background-swatches button{width:20px;height:20px;border-radius:50%;background:var(--swatch);border:1px solid #ffffff25}.background-row input{width:24px;height:24px}.option{display:flex;align-items:center;justify-content:space-between;margin:16px 0;font-size:11px}.option input{appearance:none;-webkit-appearance:none;width:29px;height:17px;background:#36363d;border-radius:20px;position:relative;cursor:pointer;margin:0}.option input:after{content:"";position:absolute;left:3px;top:3px;background:#aaaab3;width:11px;height:11px;border-radius:50%;transition:transform .2s}.option input:checked{background:#676773}.option input:checked:after{transform:translateX(12px);background:#fff}.panel-actions{border-top:1px solid var(--line);padding-top:17px;display:flex;justify-content:space-between;margin-top:20px;font-size:10px}.panel-actions button{padding:4px 0}.keys{font-size:9px;color:#62626c;margin:19px 0 0;text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#restore{position:absolute;bottom:24px;right:24px;color:#999;background:#19191bcc;opacity:.5;z-index:10}#toast{position:absolute;bottom:180px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#202023ed;color:#ccc;border:1px solid #ffffff14;border-radius:10px;z-index:20;opacity:0;pointer-events:none;transition:opacity .2s;white-space:nowrap;font-size:11px}#toast.visible{opacity:1}.immersive .dock-area{display:none}#fallback{position:absolute;top:65%;left:20px;right:20px;text-align:center;color:#999;font-size:12px}@media(max-width:640px){#word{font-size:25vw;top:43%}#guides{width:67vw;height:20vw;top:43%}.dock-area{width:calc(100vw - 24px);bottom:max(22px,env(safe-area-inset-bottom))}.dock{padding:12px 13px;gap:8px;height:64px;border-radius:19px}#text{font-size:16px}.colour-controls{gap:10px}.colour-control{gap:5px}.colour-control>span{font-size:8px}input[type=color]{width:23px;height:23px}.icon{width:25px;height:30px;padding:3px}.icon svg{width:20px;height:20px}.divider{margin:0;height:23px}.speed-control{margin-top:16px}.time{font-size:9px;margin-bottom:13px}#panel{bottom:151px;max-height:calc(100dvh - 175px);padding:18px}#toast{bottom:150px}.keys{font-size:8px}}@media(max-width:350px){.colour-control>span{display:none}.dock{gap:6px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Right-hand inspector, independent of the centred bottom dock. */
#panel{left:auto;right:18px;top:18px;bottom:auto;transform:none;width:350px;max-height:calc(100dvh - 36px);padding:20px;scrollbar-width:thin;scrollbar-color:#444 transparent}.font-row{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:11px;gap:15px}.font-row select{background:#242428;color:#d7d7df;border:1px solid #ffffff20;border-radius:7px;padding:8px 10px;width:160px;outline-offset:2px}.font-row option{background:#242428;color:#ddd}.interaction-help{font-size:10px;line-height:1.8;color:#85858e;margin:14px 0 0}.presets{gap:6px}.preset{padding:8px}.custom-colors{gap:13px}@media(max-width:640px){#panel{right:10px;top:10px;width:min(310px,calc(100vw - 20px));max-height:calc(100dvh - 155px);padding:16px;border-radius:16px}.font-row select{width:145px}.interaction-help{font-size:9px}}
