:root{font-family:system-ui,-apple-system,'Malgun Gothic',sans-serif;color:#edf5f8;background:#0d1d2b;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.hidden{display:none!important}#app{max-width:860px;margin:auto;padding:16px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 22px}.brand{display:flex;align-items:center;gap:10px}.brandico{font-size:34px;color:#e8c893}.brand strong{color:#f1d9b2;letter-spacing:.05em;font-size:17px}.brand small{display:block;color:#a6bccc;font-size:11px;margin-top:3px}.topactions{display:flex;gap:9px;align-items:center}.tag{background:#294958;color:#f3dfbd;border-radius:15px;padding:5px 9px;font-size:11px;white-space:nowrap}.iconbtn{position:relative;border:0;background:#294656;border-radius:10px;font-size:19px;padding:6px 10px}.iconbtn em{position:absolute;top:-8px;right:-6px;color:white;background:#c84040;border-radius:20px;font-style:normal;font-size:10px;padding:2px 6px}.linkbtn{background:none;border:0;color:#d6c5a8;text-decoration:underline;font-size:12px}h1,h2,h3,p{margin:0}h1{font-size:25px}h2{font-size:21px;color:#f6dfb8}h3{font-size:16px;color:#efdbbc;margin:12px 0 6px}.muted,.hint{color:#a9becd}.hint{font-size:12px;line-height:1.65}.center{text-align:center}main{min-height:70vh}.authbox{max-width:460px;margin:18px auto;background:#203a4a;border-radius:18px;padding:24px}.logo-big{text-align:center;color:#f0ce98;font-size:56px}.authbox h1{text-align:center;color:#f0ce98}.switch,.subtabs{display:flex;gap:6px;background:#122b3a;border-radius:10px;padding:5px;margin:18px 0}.switch button,.subtabs button{flex:1;padding:12px 5px;border:none;background:transparent;color:#c1d2dc;border-radius:8px;font-size:13px}.switch .active,.subtabs .active{background:#426278;color:#fff}.stack{display:grid;gap:14px}.stack label,label:not(.check){display:grid;gap:6px;font-size:13px;color:#e7d6b8}.stack input:not([type=checkbox]),input[type=tel],input[type=password],select,textarea{width:100%;border:1px solid #617584;border-radius:9px;background:#112938;color:#f5f8fa;padding:12px;outline:none}.stack input[type=file]{color:#d1e0e8;background:#142f3e;border:1px dashed #7693a4;border-radius:8px;padding:16px;width:100%}input:focus,textarea:focus,select:focus{outline:2px solid #e4c893}.note{display:block;background:#345366;color:#f5d9a6;border-radius:7px;padding:9px;margin-top:4px;font-weight:500;line-height:1.5}.check{display:flex;gap:10px;font-size:12px;color:#d3e0e8;align-items:start;line-height:1.7}.check input{margin-top:4px;accent-color:#a8d1b5}button.primary,.primary{border:0;background:#e4c38c;color:#172b38;border-radius:10px;padding:13px;font-weight:750}button.secondary{border:1px solid #afc2c9;color:#f2dec2;background:#254253;border-radius:9px;padding:12px}.panel{background:#203a4a;padding:18px;border-radius:14px}.waiting{max-width:450px;margin:12vh auto;padding:30px}.waiting p{margin:14px}.waiting button{margin:12px}#nav{display:flex;gap:6px;margin-bottom:16px}#nav button{display:flex;flex:1;gap:4px;align-items:center;justify-content:center;flex-direction:column;padding:12px 2px;color:#d0dee5;background:#203948;border:1px solid #385063;border-radius:11px;font-size:19px}#nav button span{font-size:11px}#nav .active{background:#406377;color:#ffdfa9;border-color:#8b9faa}.radio-casing{border-radius:23px;background:#b69a75;padding:10px;box-shadow:0 14px 40px #050d13}.radio-inner{background:#233b49;border-radius:15px;padding:17px}.radio-head,.lcd-top,.lcd-bottom{display:flex;justify-content:space-between;gap:10px}.radio-head{font-size:10px;letter-spacing:.1em;color:#e9d1ad;margin-bottom:14px}.lcd{border:2px solid #517367;border-radius:10px;background:#102a2b;padding:18px;color:#a8ddb8;box-shadow:inset 0 0 20px #08171c}.lcd-top{font-size:10px;letter-spacing:.06em}.lcd-center{display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 4px;gap:8px}.lcd-center small{font-size:12px;color:#8bc8a0}.lcd-center strong{font-size:clamp(21px,4vw,32px);color:#dcf5de;word-break:keep-all}.lcd-center span{font-size:12px;color:#aacbbb}.eq{height:30px;display:flex;justify-content:center;align-items:end;gap:5px;margin:0 auto 14px}.eq i{background:#70bb92;width:5px;height:7px;border-radius:3px}.eq.live i:nth-child(3n){animation:eq 1s infinite alternate}.eq.live i:nth-child(3n + 1){animation:eq .65s infinite alternate-reverse}.eq.live i:nth-child(3n + 2){animation:eq 1.2s infinite alternate}@keyframes eq{to{height:28px}}.lcd-bottom{font-size:12px}.selector{display:flex;gap:5px;margin-top:12px;overflow-x:auto}.selector button{min-width:78px;flex:1;border:1px solid #536d78;background:#122935;border-radius:9px;padding:10px 8px;color:#a8c4cf;font-size:12px}.selector button.active{background:#426368;color:#ffe1ac;border-color:#efc68d}.control{display:flex;justify-content:center;align-items:center;gap:28px;margin:18px}.control button{border:1px solid #6e8290;border-radius:50%;background:#1c3341;color:#f5dfc4;width:49px;height:49px}.control .play{width:78px;height:78px;background:#e8c994;color:#273b48;font-size:32px;font-weight:bold;border:4px solid #d3b888;box-shadow:0 3px 0 #8e7657}.seek label{display:flex;justify-content:space-between;color:#d5c2a5;font-size:11px}.seek input,.volume input{width:100%;accent-color:#e8c994}.volume{display:flex;align-items:center;gap:14px;color:#e8d1ac;font-size:12px;margin-top:10px}.volume input{flex:1}.counters{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.counters div{background:#2b404d;border-radius:9px;text-align:center;padding:14px 8px}.counters small{display:block;color:#e1caa7;font-size:12px}.counters strong{display:block;color:#ffe2ad;font-size:27px;margin-top:5px}.radio-casing + .hint{margin:12px 4px}.sectiontitle{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 15px}.cards{display:grid;gap:10px}.card{background:#203a4a;padding:15px;border:1px solid #365666;border-radius:12px}.card h4{color:#f5e4c6;font-size:15px;margin:0 0 7px}.card p{color:#bbcfda;font-size:12px;line-height:1.6}.card .row{display:flex;justify-content:space-between;align-items:center;gap:10px}.card .row + .row{margin-top:12px}.card .mini{color:#efcf98;font-weight:bold;font-size:18px}.card button{border:1px solid #8cabb9;border-radius:8px;color:#f5e5c7;background:#355569;padding:8px 11px;font-size:12px}.card button.reject{background:#613a3b}.card button:disabled{opacity:.5}.pill{display:inline-block;background:#426175;color:#f4dfb6;padding:5px 8px;border-radius:20px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0 20px}.stats div{background:#263f4e;border-radius:10px;text-align:center;padding:16px 6px}.stats span{display:block;color:#c6d6dd;font-size:11px}.stats strong{display:block;font-size:22px;color:#f7daa7;margin-top:7px}.progressbar{height:7px;background:#132c39;border-radius:8px;margin:8px 0;overflow:hidden}.progressbar i{height:100%;display:block;background:#c5a779;border-radius:8px}#rankTrack{margin:8px 0 15px}.subtabs{margin:0 0 12px}.subtabs button{font-size:12px}#settingsPanel{display:grid;gap:15px}#toast:not(:empty){position:sticky;top:8px;z-index:100;background:#d7eddf;color:#14362a;border-radius:9px;padding:12px;font-size:13px;margin-bottom:12px;box-shadow:0 4px 22px #0005}footer{color:#829cab;text-align:center;font-size:10px;line-height:1.8;margin:25px 0 4px}@media(max-width:520px){#app{padding:10px}header{padding:9px 0 15px}.brand strong{font-size:14px}.brandico{font-size:24px}.brand small{font-size:10px}.radio-inner{padding:11px}.lcd{padding:12px}.lcd-center{padding:27px 4px}.control{gap:20px}.authbox{padding:16px}#nav button span{font-size:10px}#nav button{font-size:17px}.stats strong{font-size:19px}}

/* V1-2: iOS Safari, Galaxy Fold, and safe-area improvements */
html{-webkit-text-size-adjust:100%}body{padding-bottom:env(safe-area-inset-bottom,0px)}button,input,select,textarea{touch-action:manipulation}input,select,textarea{font-size:16px}button{min-height:40px}#nav{gap:5px}#nav button{min-height:57px}header{padding-top:max(9px,env(safe-area-inset-top,0px))}.install-help{position:fixed;inset:0;z-index:500;background:#000b;display:flex;align-items:center;justify-content:center;padding:16px}.install-help.hidden{display:none}.install-card{width:min(100%,470px);background:#1f3c4b;color:#f4e6cc;border:1px solid #658092;border-radius:18px;padding:20px;box-shadow:0 20px 60px #0009}.install-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.install-head h2{font-size:19px;margin:0}.install-card ol{line-height:1.9;color:#e4eaf0;padding-left:23px}.install-card .hint{color:#bbcad6}.radio-casing{max-width:100%;min-width:0}.lcd-center strong{overflow-wrap:anywhere}#nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}#nav button{width:100%;min-width:0}#app{overflow-x:clip}@media(min-width:550px){#nav{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:360px){.radio-inner{padding:8px}.lcd{padding:9px}.radio-head{font-size:8px}.stats strong{font-size:17px}.control{gap:14px}.control .play{width:68px;height:68px}}@media(orientation:landscape) and (max-height:520px){.lcd-center{padding:13px 4px}.control{margin:8px}}
