#ost-dialog{box-sizing:border-box;width:min(100% - 20px,440px);max-width:440px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:20px 18px;color:#fff2db;background:radial-gradient(ellipse at 50% 20%,#79577b55,transparent 55%),linear-gradient(150deg,#32374e,#23253a 80%);border:1px solid #ead2a875;border-radius:26px;text-align:left;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 20px 60px #120e2688}#ost-dialog::backdrop{background:#121223c9}#ost-dialog button{font-family:inherit;cursor:pointer;color:inherit}#ost-dialog .ost-header{display:flex;align-items:center;justify-content:space-between;height:auto;margin:0 0 10px;gap:12px}#ost-dialog .ost-header small{font-size:9px;letter-spacing:3px;color:#c3b7d3}#ost-dialog h2{font-size:23px;line-height:1.25;margin:4px 0 0}#ost-dialog .ost-header button{width:38px;height:38px;flex:0 0 38px;border-radius:50%;border:1px solid #dac8ef33;background:#ffffff09;font-size:26px;padding:0;box-shadow:none}.ost-deck{text-align:center}.ost-record{width:126px;height:126px;margin:14px auto 12px;display:grid;place-items:center;position:relative;border-radius:50%;border:2px solid #dbc18999;background:repeating-radial-gradient(circle,#25233c 0 3px,#423351 4px 5px);box-shadow:0 8px 28px #080a2255,inset 0 0 0 7px #ffdca71a}.ost-record img{width:86px;height:86px;object-fit:contain}.ost-record i{position:absolute;inset:8px;border:1px dashed #edcfff55;border-radius:50%;animation:ost-spin 20s linear infinite;animation-play-state:paused}.ost-playing .ost-record i{animation-play-state:running}.ost-now small{font-size:11px;color:#d7bce7}.ost-now h3{margin:5px 0;font-size:23px;line-height:1.3;word-break:keep-all;overflow-wrap:normal}.ost-now>span{font-size:8px;letter-spacing:1.4px;color:#b6aec6}.ost-timeline{margin:17px 2px 0}.ost-timeline input{width:100%;accent-color:#f1c582}.ost-timeline>div{display:flex;justify-content:space-between;font-size:10px;color:#c8c0d6;font-variant-numeric:tabular-nums}.ost-controls{display:flex;justify-content:center;align-items:center;gap:13px;margin:9px 0}.ost-controls button{width:40px;height:40px;border:0;border-radius:50%;background:transparent;box-shadow:none;font-size:22px;padding:0}.ost-controls button[data-ost=play]{width:56px;height:56px;font-size:23px;background:linear-gradient(#fff2ca,#eabc75);color:#45304d!important;box-shadow:0 4px 0 #9e745466}.ost-controls button[aria-pressed=true]{color:#ffda93!important;background:#ffda9318}.ost-count{width:40px;font-size:11px;color:#ada1ba;visibility:hidden}.ost-volume{display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;color:#b6a9c8}.ost-volume input{width:96px;accent-color:#cbb0de;height:16px}.ost-list-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 0 9px}.ost-list-heading b{font-size:12px}.ost-list-heading span{font-size:9px;letter-spacing:1.5px;color:#b6aacb}.ost-list{list-style:none;margin:0;padding:0;display:grid;gap:5px}.ost-list li{margin:0;padding:0}.ost-list button{display:flex;align-items:center;gap:11px;width:100%;min-height:54px;padding:8px 10px;border:1px solid transparent;border-radius:13px;text-align:left;background:#ffffff05;box-shadow:none}.ost-list button.selected{background:#e4b1db14;border-color:#e4b1db55}.ost-number{flex:0 0 20px;color:#b7aac8;font-size:11px;font-variant-numeric:tabular-nums}.ost-track-copy{flex:1;min-width:0}.ost-track-copy b{display:block;font-size:13px;line-height:1.4;word-break:keep-all;overflow-wrap:normal}.ost-track-copy small{display:block;font-size:10px;margin-top:3px;color:#b9aec9}.ost-indicator{color:#e8ca95;font-size:19px;opacity:.3}.selected .ost-indicator{opacity:1}#ost-dialog [data-ost=error]{font-size:12px;color:#ffb9c9}#ost-dialog button:focus-visible{outline:2px solid #ffde9d;outline-offset:2px}#ost-dialog input{touch-action:pan-y}#settings-ost{display:block;width:100%;margin:8px 0}@keyframes ost-spin{to{transform:rotate(360deg)}}@media(max-width:340px){#ost-dialog{padding:16px 12px}.ost-record{width:102px;height:102px;margin:10px auto}.ost-record img{width:72px;height:72px}.ost-controls{gap:9px}.ost-now h3{font-size:21px}}@media(prefers-reduced-motion:reduce){.ost-record i{animation:none}}
/* The global candy button theme is intentionally limited to game actions here. */
#ost-dialog .ost-list button{background:#ffffff05!important;border:1px solid transparent!important;box-shadow:none!important;color:#fff2db!important;min-height:54px!important;height:auto!important;transform:none!important}#ost-dialog .ost-list button.selected{background:#e4b1db18!important;border-color:#e4b1db66!important}#ost-dialog .ost-controls button{background:transparent!important;border:0!important;box-shadow:none!important;color:#eddbf4!important}#ost-dialog .ost-controls button[data-ost=play]{background:linear-gradient(#fff2ca,#eabc75)!important;color:#45304d!important;box-shadow:0 4px 0 #9e745466!important}#ost-dialog .ost-controls button[aria-pressed=true]{background:#ffda9318!important;color:#ffda93!important}#ost-dialog .ost-header button{background:#ffffff09!important;box-shadow:none!important}

/* Secondary settings links stay quiet and keep a comfortable tap target. */
#settings-dialog{box-sizing:border-box;max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto}
#settings-dialog .settings-secondary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:15px;padding-top:9px;border-top:1px solid #ffffff26}
#settings-dialog .settings-secondary button{width:100%;min-width:0;min-height:44px;margin:0;padding:8px 3px;background:transparent;color:#e3d8ec;border:0;border-radius:10px;box-shadow:none;font-size:12px;font-weight:500;line-height:1.4;white-space:normal;word-break:normal;overflow-wrap:break-word}
#settings-dialog .settings-secondary button:active{background:#ffffff12}
#settings-dialog .settings-secondary button:focus-visible{outline:2px solid #ffe2aa;outline-offset:1px}
#settings-dialog .font-credit{font-size:8px;margin-top:12px}
#settings-dialog .version{margin-top:6px}
html:lang(th) body{line-height:1.5}
html:lang(th) .mode-menu small,html:lang(vi) .mode-menu small,html:lang(es) .mode-menu small{line-height:1.4;word-break:normal;overflow-wrap:normal}
html:lang(th) .mode-menu b,html:lang(vi) .mode-menu b,html:lang(es) .mode-menu b{font-size:13px;letter-spacing:0}
html:lang(th) .auto-match small{line-height:1.5}
#language-select{min-width:0;max-width:58%;font-size:14px}

main>header .brand{display:none!important}
#header-best{display:flex;align-items:center;gap:7px;min-width:0;text-align:left;color:#ffe2a0;flex:1;line-height:1.15}
#header-best>span{font-size:24px}
#header-best small{display:block;font-size:10px;line-height:1.35;opacity:.9}
#header-best strong{display:block;font-size:22px;line-height:1.1;font-variant-numeric:tabular-nums;transform-origin:left center;color:#fff0b8}
#header-best[hidden]{display:none!important}

html:lang(id) .mode-menu b,html:lang(pt) .mode-menu b{font-size:13px;letter-spacing:0}
html:lang(id) .mode-menu small,html:lang(pt) .mode-menu small{line-height:1.4;word-break:normal;overflow-wrap:normal}

@media(max-width:360px){#language-select{max-width:66%;padding:10px 7px;font-size:12px;min-height:44px}#settings-dialog label[for="language-select"]{flex-shrink:0}}
