@font-face{font-family:JB;src:local('Thonburi'),local('Noto Sans Thai'),local('Tahoma')}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:15px;scroll-padding-bottom:100px}body{--burgundy:#641A29;--wine:#4A1021;--copper:#9C3F36;--burnished:#B86A45;--gold:#D7A34B;--bright:#FFD36A;--cream:#FFF0D8;--ivory:#FFF8EE;--ink:#641A29;--muted:#98634e;--surface:#fff0d8;--soft:#ffead3;--border:#e6b260;margin:0;color:var(--ink);font:15px/1.5 JB,system-ui,sans-serif;background:radial-gradient(ellipse at 50% 25%,#b86a45 0,#9c3f36 42%,#641a29 78%,#4a1021);min-height:100dvh;padding-bottom:calc(95px + env(safe-area-inset-bottom))}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;background:#d7a34b12;color:inherit;border:1px solid #d7a34b99;border-radius:13px;min-height:44px;padding:8px 13px;box-shadow:none;text-shadow:none}button:hover:not(:disabled){background:#d7a34b24}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #ffd36a;outline-offset:3px}h1,h2,h3,p{margin:0}h2{font-size:19px;line-height:1.35}input:not([type=checkbox]):not([type=range]),select{width:100%;min-width:0;min-height:44px;border:1px solid #b98244aa;color:var(--ink);background:var(--ivory);border-radius:12px;padding:9px}label{display:block}form label{margin:12px 0}.svg-definitions{position:absolute;width:0;height:0;overflow:hidden}.icon{width:30px;height:30px;display:inline-block;flex-shrink:0;overflow:visible;vertical-align:middle}main{width:min(900px,100%);margin:auto;padding:0 14px 20px}.site-top{width:min(900px,100%);margin:auto;padding:12px 21px 10px;display:flex;justify-content:space-between;align-items:center;color:#ffedbc;min-height:57px;background:radial-gradient(ellipse at 50% 110%,#f9c66766,transparent 55%)}.brand{font-size:25px;font-weight:700;letter-spacing:-.6px;display:flex;align-items:center;gap:5px}.brand-lotus{width:31px;height:31px}.site-top>div{display:flex;gap:9px;align-items:center}.site-top button{width:40px;height:40px;padding:0;border-radius:50%;color:#ffe5a5;font-size:25px}.site-top a:not(.brand){font-size:11px}.sanctuary{position:relative;border-radius:24px 24px 0 0;isolation:isolate}.room-heading{position:absolute;z-index:9;top:6px;left:7px;right:7px;display:grid;grid-template-columns:48px minmax(0,1fr) 86px;gap:9px;align-items:center;color:#fff0d8}.back{display:grid;place-items:center;width:45px;height:45px;font-size:33px;line-height:1;border:1.5px solid #ffdc89;border-radius:50%;background:radial-gradient(ellipse at 35% 12%,#a34b3c,#4a1021);box-shadow:inset 0 1px 3px #ffe2a86e,0 0 10px #ffd36a44}.title-plaque{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-height:69px;padding:9px 13px;background:linear-gradient(180deg,#9c3f36,#641a29 32%,#4a1021 80%,#8d3d31);border:1.5px solid #ffdc84;border-radius:26px 24px 24px 26px;box-shadow:inset 0 1px 0 #fff0d888,inset 0 -2px 5px #d7a34b55,0 0 13px #ffcf7544}.title-plaque:before,.title-plaque:after{content:'❧';position:absolute;top:50%;transform:translateY(-50%);font-size:26px;color:#f3c270;text-shadow:0 1px #4a1021}.title-plaque:before{left:-8px}.title-plaque:after{right:-8px;transform:translateY(-50%) scaleX(-1)}.title-plaque>div{min-width:0}.title-wheel{width:44px;height:44px;flex-shrink:0;filter:drop-shadow(0 0 5px #ffd36a55)}.room-heading h1{font-size:25px;line-height:1.25;letter-spacing:-.65px;white-space:nowrap;text-align:center}.room-heading h1 span{white-space:nowrap}.room-heading p{font-size:13px;line-height:1.35;color:#ffe9c9;margin-top:3px;text-align:center}.live-count{background:linear-gradient(140deg,#641a29,#4a1021);border:1.5px solid #f6cc77;border-radius:19px;text-align:center;padding:6px 6px;box-shadow:inset 0 1px 2px #fff0d866,0 0 10px #d7a34b44}.live-count>.icon{width:27px;height:24px}.live-count>small{display:block;font-size:10px}.live-count strong{font-size:20px;line-height:1.2}.live-count div small{font-size:11px}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#93d675;box-shadow:0 0 3px #bdf49888}.scene{aspect-ratio:3 / 2;position:relative;isolation:isolate;background:#9c3f36 url('/chant/scene.svg?v=13-copper') center/cover no-repeat;overflow:hidden;border-radius:24px 24px 0 0}.scene:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;box-shadow:inset 0 -15px 22px #ffd36a38}.room-wheel{position:absolute;z-index:3;left:38.5%;top:25%;width:23%;height:auto;filter:drop-shadow(0 0 12px #fff4b9a3)}.altar-glow{position:absolute;z-index:2;left:28%;top:12%;width:44%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fff0bf4a,transparent 65%);pointer-events:none}.avatars{position:absolute;inset:0;z-index:5}.chant-person{position:absolute;bottom:var(--y,8%);left:var(--x,50%);width:19%;height:28%;transform:translateX(-50%);display:flex;justify-content:end;align-items:center;flex-direction:column;filter:drop-shadow(0 4px 3px #4a102133)}.chant-person[data-depth=back]{width:14%;height:20%;z-index:1}.chant-person[data-depth=front]{width:21%;height:30%;z-index:3}.chant-person.self{width:24%;height:35%;z-index:5;bottom:var(--y,4%)}.person-art{position:relative;width:100%;height:100%;display:grid;place-items:center}.person-art:after{content:'';position:absolute;bottom:-1%;width:88%;height:15%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#fff9d9 0,#ffd36a 38%,#c58b32 61%,#ffe7a18c 69%,transparent 75%);box-shadow:0 1px 0 #b47725}.self .person-art:after{box-shadow:0 0 13px 4px #ffd36a88}.person-sprite{position:absolute;left:50%;bottom:0;height:100%;width:auto;aspect-ratio:3 / 5;transform:translateX(-50%);background-image:var(--sprite);background-size:500% 100%;background-position:var(--column) center;background-repeat:no-repeat;z-index:2}.person-label{position:absolute;z-index:7;bottom:100%;left:50%;transform:translateX(-50%);max-width:135px;min-width:92px;padding:4px 9px;border:1px solid #f1ca7c;border-radius:18px;background:linear-gradient(180deg,#9c3f36,#641a29 40%,#4a1021);color:#fff0d8;box-shadow:inset 0 1px 1px #ffe2a855,0 1px 5px #ffd36a55;font-size:11px;line-height:1.2;text-align:center}.person-label span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.person-label small{display:block;white-space:nowrap;font-size:10px;line-height:1.3}.self .person-label{border-color:#ffe3a3;min-width:108px}.person-profile{width:65%;height:65%;object-fit:cover;border-radius:50%;border:2px solid #f4d288;background:#fff0d8}.person-halo{position:absolute;inset:-8% -12%;border-radius:50%;background:radial-gradient(ellipse at 50% 40%,var(--aura,#ffd780) 0,transparent 65%);opacity:.5}.person-halo>.au-visual{position:absolute;inset:0;width:100%;height:100%}.person-foot{position:absolute;bottom:-2%;width:112%;height:22%;border-radius:50%;opacity:.65}.person-foot>.df-aura{position:absolute;inset:-150% -15%;width:130%;height:300%}.person-art .dc-orbit{pointer-events:none}.chant-person.resting{opacity:.85}.empty-room{position:absolute;z-index:5;left:15%;right:15%;top:74%;text-align:center;color:#641a29;font-size:16px;font-weight:600;text-shadow:0 1px #fff5d1}.empty-room span{font-size:11px;font-weight:400}.people-more{position:absolute;right:10px;bottom:5px;z-index:8;font-size:10px;background:#641a29db;color:#fff0d8;min-height:30px;padding:4px 8px}.scene-dots{position:absolute;z-index:6;bottom:3px;left:50%;transform:translateX(-50%);display:flex;gap:6px;align-items:center}.scene-dots i{width:5px;height:5px;border-radius:50%;background:#fff0d86b}.scene-dots i:first-child{background:#fff0d8;box-shadow:0 0 5px #ffd36a}.player-card{position:relative;z-index:10;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 18px 8px;background:radial-gradient(ellipse at 65% 0,#ad4d3c88,transparent 55%),linear-gradient(180deg,#8f2f31,#641a29 40%,#4a1021 90%);color:#fff0d8;border:1.5px solid #ffdb88;border-radius:27px;margin-top:1px;box-shadow:inset 0 2px 4px #ffd89055,inset 0 -2px 3px #b86a4570,0 0 12px #ffcd7055,0 5px 12px #4a102133}.player-wheel{width:72px;height:72px;filter:drop-shadow(0 0 5px #ffd36a66)}.track-info{min-width:0}.track-info h2{font-size:18px;white-space:nowrap}.track-info p{font-size:11px;color:#ffe3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time{font-size:12px;font-variant-numeric:tabular-nums;line-height:1.4;margin-top:4px}progress{width:100%;height:5px;display:block;accent-color:#ffd36a;border:0;border-radius:20px;overflow:hidden;background:#ffffff33;margin-top:3px}progress::-webkit-progress-bar{background:#ffffff33}progress::-webkit-progress-value{background:linear-gradient(90deg,#fff2c0,#e5b35f)}.transport{display:flex;align-items:center;justify-content:center;gap:13px}.transport button{border-radius:50%;color:#ffe2a1;font-size:26px;min-width:44px;width:44px;height:44px;padding:0;border-color:#dcad5a88;background:#d7a34b0b}.transport .play{width:66px;height:66px;font-size:31px;color:#641a29;border:2px solid #ffe7a7;background:radial-gradient(circle at 37% 25%,#fff8d8,#ffdf7d 40%,#e4a944 78%,#fff3ba);box-shadow:inset 0 1px 3px #fff9df,0 0 8px #ffe3a6aa,0 0 20px #ffc34b55;text-shadow:0 1px 0 #ffebae}.transport .play:hover:not(:disabled){background:radial-gradient(circle at 37% 25%,#fffef0,#ffe7a3 40%,#e4a944 78%)}.sound{display:flex;align-items:center;gap:8px}.sound .icon{width:24px;height:24px}.sound input{width:74px;accent-color:#ffd36a}#notice{grid-column:1/-1;color:#ffe9c9;font-size:10px;line-height:1.45;min-width:0;padding-top:3px}#notice a{text-decoration:underline}.stats-card{background:radial-gradient(ellipse at 95% 0,#fff8ee,#fff0d8 40%,#f6d6a6);border:1.5px solid #ffe19c;border-radius:26px;box-shadow:inset 0 2px 4px #fffdf4,inset 0 -2px 5px #c9823c66,0 0 12px #ffcd7055,0 5px 10px #4a102133;margin-top:12px;padding:11px 15px 12px}.stats-card>h2{display:flex;gap:6px;align-items:center;font-size:21px}.stats-card>h2>.icon{width:30px;height:27px}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:7px}.stat-grid>div{position:relative;min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:7px;padding:8px 12px;background:linear-gradient(145deg,#fffaf1,#ffe4cb);border:1px solid #fff8e8;border-radius:19px;box-shadow:0 3px 4px #b86a4533,inset 0 1px 0 #fff}.stat-icon{grid-row:1/3;width:41px;height:41px;filter:drop-shadow(0 2px 1px #9c3f3622)}.stat-grid span{font-size:12px;white-space:nowrap;line-height:1.25}.stat-grid strong{font-size:27px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.5px}.stat-grid small{font-size:13px;font-weight:400}.my-stats{display:grid;grid-template-columns:53px minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center;margin-top:9px;padding:7px 10px;background:linear-gradient(140deg,#fff9ee,#ffe3c6);border:1px solid #fff8e9;border-radius:20px;box-shadow:inset 0 1px 1px #fff,0 2px 5px #b86a4522}.my-stats>img{width:49px;height:49px;border:2px solid #e7b75f;border-radius:50%;object-fit:cover;background:#fff0d8;box-shadow:0 0 5px #d7a34b88}.my-stats>div:nth-child(2){min-width:0}.my-stats>div:nth-child(2)>strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-stats span{display:block;color:#641a29;font-size:11px}.my-stats>div:nth-child(2)>span{font-size:9px;color:#98634e}.personal-count{position:relative;border-left:1px solid #9c3f3677;padding-left:43px;min-width:0}.personal-count .icon{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:29px;height:29px}.personal-count>strong{display:block;font-size:24px;line-height:1.3;white-space:nowrap}.ranking-card{overflow:hidden;background:linear-gradient(180deg,#7f272c,#4a1021 40%,#fff0d8 41%,#ffe0b6);border:1.5px solid #ffe1a1;border-radius:27px;margin-top:10px;padding:0 12px 10px;box-shadow:inset 0 2px 3px #ffd58066,0 0 10px #ffd36a66,0 4px 10px #4a102133}.ranking-card>header{color:#fff0d8;padding:4px 3px 2px;min-height:45px}.ranking-card h2{display:flex;gap:7px;align-items:center;font-size:21px}.ranking-card h2>.icon{width:28px;height:28px}.ranking-card>header,.group-card>header,.history-card>header{display:flex;align-items:center;justify-content:space-between;gap:7px}.ranking-card>header button{border:0;white-space:nowrap;padding:5px 4px;font-size:14px}.rank-row{display:grid;grid-template-columns:35px 42px minmax(0,1fr) auto;align-items:center;gap:10px;background:linear-gradient(100deg,#fff3e1,#ffddc0);border-top:1px solid #fff4e3;border-radius:23px;padding:5px 15px;margin-top:2px;min-height:47px;color:#641a29}.rank-row img{width:37px;height:37px;border:1.5px solid #d7a34b;border-radius:50%;object-fit:cover;background:#fff0d8}.rank-row em{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;font:italic 700 22px Georgia,serif;color:#a56d21;border:2px solid #f7c950;background:radial-gradient(circle at 40% 25%,#fff2ad,#f6ca4d 60%,#c88a28);box-shadow:0 1px 2px #9c3f3633;outline:1px solid #e7ba59;outline-offset:2px;text-shadow:0 1px #fff2d3}.rank-row:nth-child(2) em{color:#737381;border-color:#c5c7db;outline-color:#c0bed1;background:radial-gradient(circle at 40% 25%,#fafaff,#c6c7df 65%,#9292ac)}.rank-row:nth-child(3) em{color:#9f5e39;border-color:#e7ac72;outline-color:#cb895d;background:radial-gradient(circle at 40% 25%,#ffe3bd,#e5a170 65%,#b86a45)}.rank-row strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-row b{font-size:25px;white-space:nowrap;line-height:1.2}.empty-copy{color:#8c5443;font-size:12px;text-align:center;padding:17px 10px;background:linear-gradient(135deg,#fff8ee,#ffe0bd);border:1px solid #fff0d8;border-radius:20px;min-height:78px;display:grid;place-items:center}.empty-copy:before{content:'❀';display:block;font-size:27px;color:#c38d3d;line-height:1}.group-card,.history-card,.admin-card{background:var(--surface);border:1px solid #e6b260;border-radius:23px;padding:17px;margin-top:13px;box-shadow:inset 0 1px 1px #fff8ee99,0 3px 9px #4a102122}.group-card h2,.history-card h2{font-size:17px}.group-card>header button{font-size:11px}.group-picker{display:flex;gap:8px;margin-top:12px}.group-picker select{flex:1;width:0}.group-picker button{white-space:nowrap;font-size:12px}.help{font-size:11px;color:var(--muted);margin:8px 0 12px}summary{min-height:44px;cursor:pointer;padding:10px 0;font-size:13px}details{border-top:1px solid #b9824433;margin-top:9px}.history-tabs{display:flex;gap:8px;margin:12px 0}.history-tabs button{font-size:12px;min-height:38px}.history-tabs [aria-pressed=true]{background:#d7a34b26}.history-row{display:flex;justify-content:space-between;gap:10px;padding:9px 2px;font-size:12px;border-bottom:1px solid #b9824422}.history-card a{font-size:11px}.footnote{color:#fff0d8;text-align:center;font-size:10px;line-height:1.8;margin:17px 8px}.bottom-nav{position:fixed;z-index:30;left:50%;bottom:0;transform:translateX(-50%);width:min(920px,100%);display:flex;justify-content:space-around;gap:4px;padding:7px 7px max(7px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#8e3436,#641a29 30%,#4a1021);border:1.5px solid #e3b268;border-bottom:0;border-radius:28px 28px 0 0;color:#fff0d8;box-shadow:inset 0 1px 2px #fff0d866,0 -2px 12px #d7a34b33}.bottom-nav a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:12px;width:19%;min-height:65px;border-radius:19px}.bottom-nav .icon,.bottom-nav img{width:31px;height:31px;filter:drop-shadow(0 1px 2px #4a102144)}.bottom-nav [aria-current]{background:radial-gradient(ellipse at 50% 0,#cc704a66,#9c3f3622);border:1.5px solid #ffdb86;box-shadow:inset 0 1px 3px #fff0d888,0 0 10px #ffd36a66}.bottom-nav span{font-size:24px}dialog{width:450px;max-width:calc(100vw - 32px);max-height:85dvh;overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--gold);border-radius:23px;padding:23px}dialog::backdrop{background:#321421aa;backdrop-filter:blur(5px)}dialog h2{margin-bottom:15px}dialog>button{margin-top:14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.rights{display:flex;align-items:start;gap:8px;font-size:12px}.rights input{margin-top:6px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px}#admin-status{font-size:12px;padding-top:15px}.person-list-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #bd8d3d33}.person-list-row img{width:40px;height:40px;border-radius:50%;object-fit:cover}.person-list-row span{font-size:12px;flex:1}.person-list-row small{font-size:11px}.score-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #bd8d3d33;font-size:12px}[hidden]{display:none!important}
html[data-theme=light] body{background:#e8c7ac;--surface:#fff8ee;--ink:#641a29;--muted:#956d58}html[data-theme=dark] body{background:#27141c;--surface:#38232a;--ink:#fff0d8;--muted:#d4ad90}html[data-theme=dark] .group-card,html[data-theme=dark] .history-card,html[data-theme=dark] .admin-card{background:#38232a;color:#fff0d8}html[data-theme=dark] input:not([type=checkbox]):not([type=range]),html[data-theme=dark] select{background:#4a2931;color:#fff0d8}html[data-theme=dark] .scene{filter:brightness(.9)}
@media(max-width:600px){body{padding-bottom:calc(87px + env(safe-area-inset-bottom))}main{padding:0 8px 15px}.site-top{padding:7px 16px 6px;min-height:45px}.brand{font-size:21px}.brand-lotus{width:26px;height:26px}.site-top button{width:35px;height:35px;min-height:35px;font-size:22px}.site-top a:not(.brand){font-size:10px}.room-heading{grid-template-columns:32px minmax(0,1fr) 62px;gap:5px;top:3px;left:3px;right:3px}.back{width:31px;height:36px;font-size:26px}.title-plaque{gap:5px;min-height:57px;padding:6px 7px;border-radius:19px}.title-plaque:before,.title-plaque:after{font-size:21px}.title-wheel{width:28px;height:28px}.room-heading h1{font-size:clamp(12px,3.5vw,20px);line-height:1.25;letter-spacing:-.4px;white-space:normal}.room-heading h1 span{white-space:nowrap}.room-heading p{font-size:clamp(7px,1.85vw,10px);line-height:1.3;margin-top:2px}.live-count{border-radius:13px;padding:5px 3px}.live-count>.icon{width:23px;height:20px}.live-count>small{font-size:8px}.live-count strong{font-size:16px}.live-count div small{font-size:9px}.live-dot{width:5px;height:5px}.scene{aspect-ratio:1.39;border-radius:16px 16px 0 0;background-position:center;background-size:cover}.room-wheel{left:38.5%;top:28%;width:23%;filter:drop-shadow(0 0 8px #fff4b9aa)}.altar-glow{top:15%}.chant-person{width:20%;height:27%}.chant-person[data-depth=back]{width:15%;height:20%}.chant-person[data-depth=front]{width:22%;height:29%}.chant-person.self{width:25%;height:34%}.person-label{max-width:76px;min-width:58px;font-size:8px;border-radius:13px;padding:3px 5px}.person-label small{font-size:7px;line-height:1.2}.self .person-label{min-width:77px;max-width:90px;font-size:9px}.self .person-label small{font-size:8px}.empty-room{font-size:12px;top:76%}.empty-room span{font-size:9px}.scene-dots{bottom:3px;gap:5px}.scene-dots i{width:4px;height:4px}.people-more{font-size:8px;bottom:3px;min-height:24px;padding:2px 6px}.player-card{grid-template-columns:39px minmax(0,1fr) 134px;gap:6px;padding:9px 9px 5px;border-radius:21px}.player-wheel{width:39px;height:39px}.track-info h2{font-size:11px;line-height:1.25;letter-spacing:-.2px}.track-info p{font-size:7px;line-height:1.4;margin-top:2px}.time{font-size:9px;margin-top:2px}progress{height:4px;margin-top:3px}.transport{gap:5px}.transport button{min-width:32px;width:32px;height:35px;min-height:35px;font-size:23px;border-color:transparent}.transport .play{width:45px;height:45px;min-width:45px;min-height:45px;font-size:23px}.sound{gap:3px}.sound .icon{width:17px;height:17px}.sound input{width:30px;height:26px}#notice{font-size:8px;line-height:1.4;padding-top:1px}.stats-card{padding:7px 9px 8px;border-radius:21px;margin-top:7px}.stats-card>h2{font-size:16px;gap:4px}.stats-card>h2>.icon{width:23px;height:22px}.stat-grid{gap:5px;margin-top:4px}.stat-grid>div{grid-template-columns:26px minmax(0,1fr);column-gap:5px;padding:7px 7px;border-radius:14px}.stat-icon{width:25px;height:25px}.stat-grid span{font-size:8px;letter-spacing:-.3px}.stat-grid strong{font-size:18px;line-height:1.3;letter-spacing:-.6px}.stat-grid small{font-size:9px}.my-stats{grid-template-columns:34px minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);gap:5px;margin-top:6px;padding:5px 6px;border-radius:15px}.my-stats>img{width:33px;height:33px}.my-stats>div:nth-child(2)>strong{font-size:10px}.my-stats>div:nth-child(2)>span{font-size:7px}.personal-count{padding-left:23px}.personal-count .icon{left:4px;width:17px;height:20px}.personal-count>strong{font-size:17px;line-height:1.25}.my-stats span{font-size:8px}.ranking-card{border-radius:21px;margin-top:7px;padding:0 8px 7px}.ranking-card>header{min-height:34px;padding:1px 3px}.ranking-card h2{font-size:16px;gap:5px}.ranking-card h2>.icon{width:23px;height:23px}.ranking-card>header button{font-size:11px;min-height:34px}.rank-row{grid-template-columns:23px 29px minmax(0,1fr) auto;gap:8px;min-height:34px;padding:3px 10px;border-radius:17px}.rank-row img{width:28px;height:28px}.rank-row em{width:21px;height:21px;font-size:15px;border-width:1px;outline-offset:1px}.rank-row strong{font-size:11px}.rank-row b{font-size:18px}.empty-copy{font-size:10px;padding:8px;min-height:63px}.empty-copy:before{font-size:23px}.bottom-nav{border-radius:23px 23px 0 0;padding:4px 5px max(5px,env(safe-area-inset-bottom))}.bottom-nav a{min-height:60px;font-size:10px;gap:3px;border-radius:17px}.bottom-nav .icon,.bottom-nav img{width:27px;height:27px}.group-card,.history-card,.admin-card{padding:13px;border-radius:20px}.group-card h2,.history-card h2{font-size:15px}.footnote{font-size:9px}.help{font-size:10px}.history-card a{font-size:10px}}
@media(max-width:350px){.title-wheel{width:23px;height:23px}.room-heading{grid-template-columns:29px minmax(0,1fr) 54px;gap:4px}.title-plaque{padding:5px 6px;gap:3px}.room-heading h1{font-size:11px}.room-heading p{font-size:6.5px}.player-card{grid-template-columns:33px minmax(0,1fr) 111px;padding:8px 7px 5px;gap:5px}.player-wheel{width:33px;height:33px}.track-info h2{font-size:9px}.track-info p{font-size:6px}.transport{gap:1px}.transport button{width:29px;min-width:29px}.transport .play{width:42px;height:42px;min-width:42px;min-height:42px}.sound .icon{width:14px}.sound input{width:24px}.stat-grid>div{grid-template-columns:20px minmax(0,1fr);gap:4px;padding:6px 5px}.stat-icon{width:20px;height:22px}.stat-grid span{font-size:7px}.stat-grid strong{font-size:16px}.stat-grid small{font-size:8px}.personal-count>strong{font-size:15px}.personal-count{padding-left:19px}.personal-count .icon{width:14px;left:3px}.my-stats>div:nth-child(2)>strong{font-size:9px}.my-stats>div:nth-child(2)>span{font-size:6px}.person-label{max-width:63px;min-width:50px;font-size:7px}.person-label small{font-size:6px}.self .person-label{min-width:66px;max-width:77px;font-size:8px}.self .person-label small{font-size:7px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.altar-glow{opacity:.7}}
html.low-effects .person-halo{opacity:.3}html.low-effects .altar-glow{display:none}html.low-effects .person-foot{opacity:.4}html.low-effects .person-art:after{box-shadow:none}html.low-effects .dc-orbit{display:none}html.low-effects .room-wheel{filter:none}
@media(min-width:351px) and (max-width:600px){.player-card{grid-template-columns:39px minmax(0,1fr) 145px}.transport{gap:2px}.transport button{width:44px;min-width:44px;height:44px;min-height:44px}.sound{gap:2px;min-height:44px}.sound .icon{width:15px;height:18px}.sound input{width:29px}}
@media(max-width:350px){.player-card{grid-template-columns:36px minmax(0,1fr)}.player-wheel{width:36px;height:36px}.track-info h2{font-size:12px}.track-info p{font-size:8px}.transport{grid-column:1/-1;gap:25px;margin-top:3px}.transport button,.transport .play{width:44px;min-width:44px;height:44px;min-height:44px}.sound{min-height:44px;gap:5px}.sound .icon{width:21px}.sound input{width:57px}}
/* Render one outfit only; empty atlas slots are resolved by the avatar renderer. */
.person-sprite{background-image:var(--sprite)}
@media(max-width:600px){.chant-person[data-depth=front] .person-label{width:66px;min-width:66px;max-width:66px}}
@media(max-width:350px){.chant-person[data-depth=front] .person-label{width:58px;min-width:58px;max-width:58px}.self .person-label{width:66px;min-width:66px;max-width:66px}}
@media(max-width:600px){.scene{aspect-ratio:1.28}.room-wheel{top:24%}}
@media(max-width:600px){.chant-person[data-depth=back] .person-label{margin-bottom:11px;padding:2px 4px;font-size:7px;line-height:1.1}.chant-person[data-depth=back] .person-label small{font-size:6px;line-height:1.2}}
@media(max-width:350px){.scene{min-height:260px}.chant-person[data-depth=back] .person-label{font-size:6px;max-width:59px;min-width:48px}.chant-person[data-depth=back] .person-label small{font-size:6px}}
.scene{width:100%}
/* Seat selection is an overlay on the real floor; playback stays independent. */
.site-top #choose-seat{width:auto;padding:5px 10px;border-radius:13px;font-size:11px;min-height:44px;height:auto}
.site-top #choose-seat[aria-pressed=true]{background:#d7a34b33;border-color:#ffd36a}
.seat-targets{position:absolute;inset:0;z-index:12;pointer-events:none}
.seat-point{pointer-events:auto;position:absolute;left:var(--x);bottom:var(--y);transform:translateX(-50%);width:44px;height:44px;min-height:44px;padding:0;border:1px solid #ffd36a;border-radius:50%;color:#fff0d8;background:#641a29d9;font-size:25px;box-shadow:none}
.seat-point:disabled{opacity:.5;background:#4a1021cc;color:#e8c79d;cursor:not-allowed}
.seat-point.is-current{border-color:#fff0d8;background:#9c3f36e8}
.chant-person.self[data-depth=back]{height:22%;width:17%}
@media(prefers-reduced-motion:no-preference){.chant-person{transition:left .3s ease,bottom .3s ease}}
@media(max-width:350px){.site-top{padding-left:11px;padding-right:11px}.site-top #choose-seat{font-size:10px;padding:4px 7px}.site-top>div{gap:5px}}

/* Additional floor positions keep their proportions at every viewport size. */
.chant-person[data-depth=extra],.chant-person.self[data-depth=extra]{width:12%;height:18%;z-index:0}
.chant-person[data-depth=extra] .person-label{min-width:0;max-width:70px;font-size:7px;padding:2px 4px}
.chant-person[data-depth=extra] .person-label small{font-size:6px}
@media(max-width:600px){.chant-person[data-depth=extra],.chant-person.self[data-depth=extra]{width:12%;height:17%}.chant-person[data-depth=extra] .person-label{max-width:55px;font-size:6px}.chant-person[data-depth=extra] .person-label small{font-size:5px}}
/* Keep the mobile title outside the temple and give the floor more room. */
@media(max-width:600px){
 main{padding-left:4px;padding-right:4px}
 .room-heading{position:relative;top:auto;left:auto;right:auto;margin:0 3px 6px;padding:4px 0}
 .sanctuary{padding-top:3px}
 .scene{aspect-ratio:1.05;min-height:300px;border-radius:16px 16px 0 0;background-size:cover}
 .room-wheel{top:28%;left:38.5%;width:23%}
 .altar-glow{top:15%;left:28%;width:44%}
}

/* Listening-room loading composition, adapted to copper red. */


/* Waiting feedback follows actual transport/playback events, not a fake delay. */
.audio-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;margin:13px auto 8px;padding:16px 12px;max-width:350px;border:1px solid #e9dfc7;border-radius:22px;background:linear-gradient(145deg,#fffdfa,#f5f0e3);box-shadow:inset 0 1px #fff,0 5px 16px #b9a47812}
.audio-loading p{font-size:12px;color:#8a7d5b;margin:0;line-height:1.8}
.waiting-crystal{position:relative;display:block;width:38px;height:38px;border-radius:50%;border:1px solid #b8ddeb;background:radial-gradient(circle at 30% 23%,#fff 0,#ffffffb5 10%,transparent 27%),radial-gradient(circle at 55% 60%,#f6feff,#c5eaf8 45%,#a8ddf4 72%,#f4fdff);box-shadow:inset 0 0 7px #fff,0 0 0 5px #e2f4fb66,0 6px 13px #9ac8d94d;animation:waiting-crystal-float 2.4s ease-in-out infinite}
.waiting-crystal:after{content:"";position:absolute;inset:7px;border:1px solid #fff9;border-radius:50%;animation:waiting-crystal-glow 2s ease-in-out infinite}
.audio-loading #audio-start{min-height:44px;background:linear-gradient(#f9eac2,#e6c575);border-color:#d2b264;color:#745d2a;font-size:13px;border-radius:17px}
.awaiting-tap .waiting-crystal,.awaiting-tap .waiting-crystal:after{animation:none}
.waiting-crystal,.waiting-crystal:after{animation:none}


/* Estimated live-audio readiness: never completes before actual playing. */
.audio-loading{position:relative;overflow:hidden;padding:21px 17px 16px;gap:13px;border:1px solid #b5e5f8;background:radial-gradient(ellipse at 18% 0,#ffffffed,transparent 65%),linear-gradient(145deg,#f3fcff,#ddf3ff 55%,#e9f4ff);box-shadow:inset 0 1px 2px #fff,0 5px 22px #70cafa25,0 0 0 4px #e5f7ff66}
.audio-loading:not(.awaiting-tap)::before,.audio-loading:not(.awaiting-tap)::after{content:"";position:absolute;top:22px;left:22%;width:11px;height:11px;background:#fff;clip-path:polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%);animation:loading-twinkle 2.8s ease-in-out infinite;pointer-events:none}
.audio-loading:not(.awaiting-tap)::after{left:auto;right:21%;top:45px;width:8px;height:8px;animation-delay:-1.4s;background:#4bc9ff}
.audio-loading .waiting-crystal{width:47px;height:47px;background:radial-gradient(circle at 30% 20%,#fff 0,#fff9 10%,transparent 26%),radial-gradient(circle at 55% 55%,#e9fdff,#78ddff 45%,#47bdf6 72%,#e8fbff);border-color:#8ed9fa;box-shadow:inset 0 0 9px 2px #fff,0 0 0 6px #c5eeff73,0 0 22px #6dcfff80}
.audio-loading p{font-size:13px;font-weight:600;color:#3b8eb5}
.loading-meter{width:100%;max-width:290px}
.loading-label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#689cb5;font-size:10px;margin:0 0 7px}
.loading-label strong{font:700 16px/1.5 system-ui;color:#228fcd;font-variant-numeric:tabular-nums}
.loading-track{height:13px;padding:2px;border:1px solid #b0def4;border-radius:20px;background:#c5e9fb8c;box-shadow:inset 0 2px 4px #77b8da26;overflow:hidden}
.loading-fill{position:relative;display:block;width:var(--loading-progress,0%);height:100%;border-radius:12px;background:linear-gradient(90deg,#5ddded,#26b9fa 52%,#6998ff);box-shadow:0 0 8px #2cc8ff8c,inset 0 1px #ffffff8c;transition:width .25s linear;overflow:hidden}
.loading-fill::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 15%,#ffffff99 48%,transparent 80%);animation:loading-sheen 1.7s ease-in-out infinite}
.loading-scale{display:flex;justify-content:space-between;font:9px/1.6 system-ui;color:#79a6bd;margin-top:4px}
.audio-loading:before,.audio-loading:after,.loading-fill::after{animation:none!important}
.loading-fill{transition:none}
.audio-loading{max-width:100%;margin:10px 0;padding:24px 18px;border-color:#d7a34b;background:radial-gradient(ellipse at 18% 0,#fff0d829,transparent 65%),linear-gradient(145deg,#9c3f36,#641a29 55%,#4a1021);box-shadow:inset 0 1px 2px #fff0d84d}
.audio-loading p{color:#fff0d8;text-align:center}.loading-label,.loading-scale{color:#f3ccae}.loading-label strong{color:#ffd36a}.loading-track{border-color:#b86a45;background:#4a102188}.loading-fill{background:linear-gradient(90deg,#b86a45,#d7a34b 52%,#ffd36a);box-shadow:none}.loading-meter{max-width:420px}.audio-loading .waiting-crystal{width:55px;height:55px}
/* Simplify only the six marked statistics decorations. */
.stats-card>h2>.icon,.stats-card .stat-icon,.stats-card .personal-count .icon{display:none}
.stats-card .stat-grid>div{grid-template-columns:minmax(0,1fr);column-gap:0}
.stats-card .stat-grid>div>span,.stats-card .stat-grid>div>strong{grid-column:1}
.stats-card .personal-count{padding-left:12px}
@media(max-width:600px){.stats-card .personal-count{padding-left:8px}}

#choose-seat,#seat-targets{display:none!important}
.scene{touch-action:pan-y}

.player-card .transport{grid-column:1/-1;display:grid;grid-template-columns:44px minmax(44px,1fr) 64px minmax(0,1fr);align-items:center;gap:8px;width:100%;margin:8px 0}
.player-card .transport #speed{font-size:14px;width:44px;min-width:44px;min-height:44px;height:44px;border:1px solid #d7a34b88;border-radius:12px;background:#d7a34b12}
.player-card .transport #restart{justify-self:center}
.player-card .transport .play{width:64px;height:64px;min-width:64px;min-height:64px;grid-column:3}
.player-card .transport{grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);position:relative}
.player-card .transport #speed{grid-column:1;grid-row:1;justify-self:start}
.player-card .transport #restart{grid-column:1;grid-row:1;justify-self:end;margin-right:8px}
.player-card .transport .play{grid-column:2;grid-row:1}
.player-card .transport .sound{grid-column:3;grid-row:1;justify-self:center}
@media(max-width:350px){.player-card .transport{gap:5px}.player-card .transport #restart{margin-right:0;width:38px;min-width:38px}.player-card .transport #speed{width:40px;min-width:40px}.player-card .sound input{width:42px}}

.chant-person[data-perspective] .person-label{font-size:var(--label-size);max-width:90px;min-width:0}
.chant-person[data-perspective] .person-label small{font-size:max(6px,calc(var(--label-size) - 1px))}
@media(prefers-reduced-motion:no-preference){.chant-person[data-perspective]{transition:left .3s ease,bottom .3s ease,width .3s ease,height .3s ease}}

/* Name at the feet; today's total above the head in translucent sky blue. */
.chant-person .person-label,.chant-person.self .person-label{bottom:-4px;margin-bottom:0;line-height:1.2;box-shadow:none}
.chant-person .person-score{position:absolute;z-index:7;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);display:block;white-space:nowrap;padding:3px 7px;border:1px solid #a5e5ffcc;border-radius:13px;background:linear-gradient(180deg,#ecfbffdf,#a9e1f4ce);color:#16516d;font-size:var(--label-size,9px);font-weight:600;line-height:1.3;pointer-events:none}
@media(max-width:600px){.chant-person .person-score{padding:2px 5px;font-size:var(--label-size,7px)}}
/* Fill the available right-hand transport column with the volume control. */
.player-card .transport .sound{justify-self:stretch;width:100%;min-width:0;gap:7px;padding:0 3px;min-height:44px}
.player-card .transport .sound .icon{width:22px;height:22px;flex:0 0 22px}
.player-card .transport .sound input{flex:1 1 0;width:0;min-width:0;height:44px;margin:0}
@media(max-width:350px){.player-card .transport .sound{gap:4px;padding:0}.player-card .transport .sound .icon{width:18px;height:18px;flex-basis:18px}}

/* Presence fades run only on join/leave, never on heartbeat updates. */
@keyframes chant-arrive{from{opacity:0}to{opacity:1}}
@keyframes chant-depart{from{opacity:1}to{opacity:0}}
.avatar-entering{animation:chant-arrive .9s ease-out both}
.avatar-leaving{animation:chant-depart .7s ease-in both;pointer-events:none}
@media(prefers-reduced-motion:reduce){.avatar-entering,.avatar-leaving{animation:none}.avatar-leaving{opacity:0}}

/* Room selector spacing and the requested translucent sky-blue join button. */
.group-card .group-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;margin-top:16px}
.group-card .group-picker select{width:100%;min-height:48px}
.group-card .group-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 14px}
.group-card .group-actions:has(>button:not([hidden])){padding-bottom:2px}
.group-card .group-actions button{min-height:44px;padding:9px 13px}
.group-card>.help{margin:10px 0 16px;line-height:1.7}
.group-card #group-summary{margin:12px 0;padding:8px 0}
.group-card #management{margin-top:16px;padding-top:14px;border-top:1px solid #d7a34b55}
#join-room{position:relative;isolation:isolate;overflow:hidden;min-height:48px;padding:10px 16px;border:1px solid #72bfd9b3;border-radius:15px;background:linear-gradient(135deg,#effcffbb,#bceaf7b3);color:#18536b;box-shadow:none;font-weight:600}
#join-room:hover:not(:disabled){background:linear-gradient(135deg,#effcffeb,#bceaf7db)}
#join-room:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,transparent 25%,#ffffff99 50%,transparent 75%);transform:translateX(-150%);pointer-events:none;animation:chant-join-shine 4s ease-in-out infinite}
@keyframes chant-join-shine{0%,55%{transform:translateX(-150%)}90%,100%{transform:translateX(150%)}}
@media(max-width:350px){.group-card .group-picker{gap:7px}#join-room{padding:10px;font-size:11px}.group-card .group-actions button{font-size:11px}}
@media(prefers-reduced-motion:reduce){#join-room:after{animation:none;display:none}}

.group-card .group-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:stretch;gap:8px}
.group-card .group-actions #delete-room{grid-column:3;justify-self:end}
#share-line-room{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;border:1px solid #d7a34b99;border-radius:13px;background:#d7a34b12;color:inherit;text-align:center;font:inherit}
#share-line-room:hover{background:#d7a34b24}
@media(max-width:430px){.group-card .group-actions button,#share-line-room{font-size:11px;padding:9px 8px}.group-card .group-actions{gap:6px}}

.season-bar{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:4px 3px 10px;color:#fff0d8;font-size:12px}
.season-bar select{width:auto;max-width:190px;min-height:44px;padding:7px 30px 7px 12px;border:1px solid #d7a34b99;background:#641a2980;color:#fff0d8;border-radius:13px;font-size:12px}
.season-bar option{background:#641a29;color:#fff0d8}
@media(max-width:600px){.season-bar{padding-bottom:7px;font-size:10px}.season-bar select{font-size:11px;max-width:170px}}
/* Center the three room-wide statistics within their own cards. */
.stats-card .stat-grid>div{justify-items:center;align-content:center;text-align:center;row-gap:5px}
.stats-card .stat-grid>div>span,.stats-card .stat-grid>div>strong{width:100%;text-align:center}

/* Transparent green LINE share action with a moving edge sparkle. */
#share-line-room{position:relative;isolation:isolate;background:rgba(6,199,85,.12);border-color:rgba(18,151,75,.55);color:#126532;box-shadow:none;text-decoration:none}
#share-line-room:hover{background:rgba(6,199,85,.21)}
#share-line-room::after{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;background:linear-gradient(110deg,transparent 35%,#69e99b 46%,#f1fff5 50%,#69e99b 54%,transparent 65%);background-size:300% 100%;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;animation:chant-line-edge 3.6s ease-in-out infinite}
#share-line-room:focus-visible{outline:3px solid #15864a;outline-offset:3px}
html[data-theme=dark] #share-line-room{color:#a2f5bc;border-color:#66d98c99;background:rgba(6,199,85,.15)}
html[data-theme=dark] #share-line-room:hover{background:rgba(6,199,85,.25)}
@keyframes chant-line-edge{0%,15%{background-position:150% 0}85%,100%{background-position:-50% 0}}
@media(prefers-reduced-motion:reduce){#share-line-room::after{animation:none;background-position:50% 0}}

.chant-merit-card>p{line-height:1.65}.chant-merit-card #chant-merit-summary{font-weight:600}
#chant-merit-preview{display:block;width:100%;max-width:420px;height:auto;margin:18px auto;border-radius:18px}
#chant-merit-preview[hidden],#chant-merit-actions[hidden]{display:none}
.chant-merit-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
#chant-merit-create,#chant-merit-save,#chant-merit-line{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border:1px solid #b3945080;border-radius:13px;background:#b3945017;color:inherit;box-shadow:none;text-decoration:none;font:inherit;cursor:pointer}
#chant-merit-create:disabled{opacity:.55;cursor:default}
#chant-merit-create:focus-visible,#chant-merit-save:focus-visible,#chant-merit-line:focus-visible{outline:3px solid #21835d;outline-offset:3px}
#chant-merit-message{font-size:13px;color:var(--muted)}

/* Standalone merit card: readable across all room themes. */
html[data-theme] main .chant-merit-card{padding:20px 16px;background:linear-gradient(145deg,#fff9ed,#fff0d6);color:#5b2431;border:1px solid #dfbc73;border-radius:22px;text-shadow:none}
html[data-theme] main .chant-merit-card h2{display:block;color:#6b2637;font-size:20px;line-height:1.5;margin:0 0 8px}
html[data-theme] main .chant-merit-card>p{color:#694b40;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}
html[data-theme] main .chant-merit-card #chant-merit-summary{color:#245b43;font-size:16px}
html[data-theme] main .chant-merit-card #chant-merit-message{color:#665341;font-size:13px}
html[data-theme] main #chant-merit-create{position:relative;isolation:isolate;overflow:hidden;display:flex;width:fit-content;max-width:100%;min-height:52px;margin:18px auto 10px;padding:13px 24px;border:1px solid #16885c;border-radius:999px;background:linear-gradient(110deg,#b6f3d1,#b5eafa,#dfd0ff,#b6f3d1);background-size:250% 100%;color:#174936;font-weight:700;box-shadow:none;animation:chant-merit-colors 6s ease-in-out infinite}
html[data-theme] main #chant-merit-create::after{content:'✦';position:absolute;right:8px;top:3px;color:#13805a;font-size:15px;pointer-events:none;animation:chant-merit-spark 2.4s ease-in-out infinite}
html[data-theme] main #chant-merit-create:disabled{opacity:.65;animation:none;cursor:default}
html[data-theme=dark] main .chant-merit-card{background:linear-gradient(145deg,#263e35,#263542);border-color:#8db99a;color:#eef9f0}
html[data-theme=dark] main .chant-merit-card h2{color:#fff1c8}
html[data-theme=dark] main .chant-merit-card>p,html[data-theme=dark] main .chant-merit-card #chant-merit-message{color:#e1e9e1}
html[data-theme=dark] main .chant-merit-card #chant-merit-summary{color:#aff3cc}
.chant-merit-actions{justify-content:center}
@keyframes chant-merit-colors{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes chant-merit-spark{0%,100%{opacity:.3;transform:scale(.7) rotate(0deg)}50%{opacity:1;transform:scale(1.15) rotate(65deg)}}
@media(prefers-reduced-motion:reduce){html[data-theme] main #chant-merit-create,html[data-theme] main #chant-merit-create::after{animation:none}}

.chant-merit-background-label{margin-top:16px;margin-bottom:6px;font-weight:600}html[data-theme] main #chant-merit-background{background:#fffaf0;color:#483e32;border-color:#b89754;max-width:420px;display:block;margin:0 auto;min-height:48px}

html[data-theme] main #chant-merit-random{display:flex;align-items:center;justify-content:center;min-height:44px;margin:10px auto 14px;padding:10px 20px;border:1px solid #b3945080;border-radius:999px;background:#b3945017;color:inherit;box-shadow:none;font:inherit}#chant-merit-random:focus-visible{outline:3px solid #21835d;outline-offset:3px}

.chant-merit-stage{position:relative;max-width:420px;margin:18px auto}.chant-merit-stage #chant-merit-preview{margin:0;width:100%}html[data-theme] main .chant-merit-stage #chant-merit-random{position:absolute;right:10px;bottom:12px;margin:0;z-index:2;background:#fff7e8ed;color:#5b4321;border-color:#b39450;min-height:44px;padding:9px 14px;font-size:13px;backdrop-filter:blur(8px)}.chant-merit-stage:has(#chant-merit-preview[hidden]){min-height:64px}

.chant-merit-options{max-width:420px;margin:16px auto;text-align:center}.chant-merit-options>label{margin:12px 0 8px}.chant-merit-hide{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px}.chant-merit-hide input{width:20px;height:20px;accent-color:#268558}html[data-theme] main #chant-merit-name{background:#fffaf0;color:#483e32;border-color:#b89754;text-align:center;min-height:48px}.chant-merit-options #chant-merit-random{margin:16px auto}.chant-merit-stage:has(#chant-merit-preview[hidden]){display:none}

html[data-theme] main #chant-merit-random[hidden]{display:none}

.chant-merit-options[hidden]{display:none!important}
html[data-theme] main #chant-merit-create{overflow:visible;gap:10px;padding:14px 22px 14px 40px;background:linear-gradient(110deg,#ffc9de,#ffe5a1,#c8f5af,#acecf4,#c5c0ff,#ffc9de);background-size:400% 100%;border-color:#b59157;color:#48334b;animation:chant-merit-rainbow 5s ease-in-out infinite}
html[data-theme] main #chant-merit-create::after{display:none}
.chant-merit-pointer{position:absolute;left:12px;top:50%;font-size:20px;line-height:1;color:#6c438b;transform:translateY(-50%);animation:chant-merit-point 1.3s ease-in-out infinite;pointer-events:none}
@keyframes chant-merit-rainbow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes chant-merit-point{0%,100%{transform:translate(-3px,-50%)}50%{transform:translate(3px,-50%)}}
@media(prefers-reduced-motion:reduce){html[data-theme] main #chant-merit-create,.chant-merit-pointer{animation:none}}

#share-group-totals-line{display:flex;align-items:center;justify-content:center;min-height:48px;width:fit-content;max-width:100%;margin:16px auto 20px;padding:12px 18px;border:1px solid #ae8160;border-radius:999px;background:linear-gradient(110deg,#ffa9ce,#ffe38c,#aaf2b9,#9eeaff,#cbb1ff,#ffa9ce);background-size:400% 100%;color:#46304c;text-align:center;font-weight:700;line-height:1.5;box-shadow:none;animation:chant-merit-rainbow 5s ease-in-out infinite}
#share-group-totals-line[hidden]{display:none!important}
#share-group-totals-line:focus-visible{outline:3px solid #238159;outline-offset:4px}
@media(prefers-reduced-motion:reduce){#share-group-totals-line{animation:none}}

html[data-theme] main .chant-install-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;max-width:460px;margin:20px auto;padding:18px;border:1px solid #b89a5866;border-radius:24px;background:#f3f0e9;color:#493b2c}.chant-install-card>img{display:block;border-radius:16px;width:64px;height:64px}.chant-install-card strong{font-size:17px}.chant-install-card p{font-size:13px;line-height:1.65;margin-top:5px}.chant-install-card #chant-install{grid-column:1/-1;min-height:48px;border-radius:999px;background:#c6a04b22;border:1px solid #b89a5888;color:#493b2c;padding:12px 16px;box-shadow:none;font-weight:700}.chant-install-card #chant-install-status{grid-column:1/-1}html[data-theme=dark] main .chant-install-card{background:#26362f;color:#f4eddb}html[data-theme=dark] main #chant-install{color:#f4eddb}.chant-install-card #chant-install:focus-visible{outline:3px solid #25805a;outline-offset:3px}

html[data-theme] main .chant-install-card[hidden]{display:none!important}
/* Center the create-room action and guide members toward the player. */
.group-card>header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);min-height:48px;gap:8px}
.group-card>header h2{grid-column:1;grid-row:1}
.group-card>header #new-room{grid-column:2;grid-row:1;justify-self:center;min-height:44px}
.group-card .group-picker{position:relative;padding-top:23px}
.group-card .group-picker:has(#join-room)::after{content:'↓';position:absolute;right:0;top:-2px;width:104px;text-align:center;color:#2386aa;font-size:27px;line-height:25px;pointer-events:none;animation:chant-player-arrow 2.2s ease-in-out infinite}
@keyframes chant-player-arrow{0%,100%{opacity:0;transform:translateY(-5px)}25%,65%{opacity:1;transform:translateY(1px)}85%{opacity:0;transform:translateY(4px)}}
@media(max-width:350px){.group-card>header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:4px}.group-card>header h2{font-size:13px}.group-card>header #new-room{font-size:10px;padding:8px}.group-card .group-picker:has(#join-room)::after{width:88px}}
@media(prefers-reduced-motion:reduce){.group-card .group-picker:has(#join-room)::after{animation:none;opacity:1;transform:none}}

/* Center JodBoon independently of the admin control, with a clear crystal mark. */
.site-top{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:8px}
.site-top>.brand{grid-column:2;grid-row:1;justify-self:center}
.site-top>div{grid-column:3;grid-row:1;justify-self:end}
.brand-crystal{position:relative;display:inline-block;flex:0 0 31px;width:31px;height:31px;border-radius:50%;border:1px solid #c9f2ffe6;background:radial-gradient(circle at 28% 23%,#fff 0,#ffffffdd 7%,#ffffff00 24%),radial-gradient(circle at 60% 67%,#ffffffad,#a1e4f29c 46%,#55b9d7a6 72%,#effcffd9);box-shadow:inset 0 0 7px #fff9,0 0 6px #b5ecff40}
.brand-crystal:after{content:'';position:absolute;inset:5px;border:1px solid #f0fcffb3;border-radius:50%}
@media(max-width:600px){.brand-crystal{flex-basis:26px;width:26px;height:26px}.brand-crystal:after{inset:4px}}
/* Full-width track metadata and balanced left transport controls across browsers. */
.player-card{grid-template-columns:auto minmax(0,1fr)}
.player-card .track-info{grid-column:2/-1;width:100%;min-width:0}
.player-card .track-info progress{display:block;width:100%}
.player-card .transport #restart{width:44px;min-width:44px;height:44px;min-height:44px;margin-right:0}
.player-card .transport #speed{width:44px;min-width:44px;margin-left:max(0px,calc((100% - 88px)/2))}

.chant-subtitle{position:relative;display:grid;place-items:center;min-height:126px;height:clamp(126px,30vw,170px);margin:3px 0 8px;padding:20px 13% 24px;background:url('/chant/subtitle-frame.png?v=1') center/100% 165% no-repeat;color:#fff8ee;text-align:center;overflow:hidden}
.chant-subtitle p{font-size:clamp(14px,3.6vw,17px);line-height:1.45;max-height:4.35em;overflow:auto;width:100%;white-space:pre-line;overflow-wrap:anywhere;margin:0;scrollbar-width:thin}
@keyframes subtitle-arrive{from{opacity:.3}to{opacity:1}}.subtitle-change{animation:subtitle-arrive .18s ease-out}
#subtitle-admin{padding:14px 0;min-width:0}#subtitle-admin h3{font-size:17px}#subtitle-admin p{font-size:12px;line-height:1.6}#subtitle-admin audio{display:block;width:100%;margin:10px 0}#subtitle-admin textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #d7a34b80;background:var(--ivory);color:var(--ink);border-radius:10px;padding:9px;font:inherit}#subtitle-admin select{max-width:100%}#subtitle-admin select[size]{height:160px}#subtitle-admin label{margin:10px 0}#subtitle-admin input[type=checkbox]{width:auto}.alignment-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}.alignment-row label{flex:1;min-width:120px}.alignment-wave{width:100%;overflow:hidden;border-radius:12px;margin:12px 0}.alignment-wave canvas{display:block;width:100%;height:120px;cursor:crosshair;touch-action:pan-y}#subtitle-admin .chant-subtitle p{color:#fff8ee}.alignment-preview{height:126px;min-height:126px}#subtitle-admin [data-el=window]{font-size:11px}#subtitle-admin [data-el=summary]{padding:10px;border:1px solid #d7a34b66;border-radius:10px}
@media(prefers-reduced-motion:reduce){.subtitle-change{animation:none}}

/* Preserve the supplied frame proportions; blend the room beneath it. */
.chant-subtitle{aspect-ratio:4.4;height:auto;min-height:90px;padding:12px 13% 14px;background-size:100% auto;margin:0 0 8px;z-index:1}
.chant-subtitle p{font-size:clamp(14px,3.6vw,17px);max-height:4.35em}
.alignment-preview{height:auto;min-height:90px}
.sanctuary:after{content:"";position:absolute;left:0;right:0;bottom:-100px;height:110px;z-index:-1;pointer-events:none;background-image:var(--subtitle-room-image,url('/chant/scene.svg?v=13-copper'));background-position:center bottom;background-size:100% auto;background-repeat:no-repeat;filter:blur(9px);opacity:.48;mask-image:linear-gradient(to bottom,#000 0%,#0009 35%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#0009 35%,transparent 100%)}
.chant-subtitle{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
.chant-subtitle p{min-width:0}

.subtitle-reading-controls{display:flex;gap:8px;align-items:center;justify-content:center;margin:-3px 0 12px;color:#fff0d8;font-size:12px}.subtitle-reading-controls[hidden]{display:none}.subtitle-reading-controls button{min-height:44px;padding:7px 10px;flex-shrink:0}.subtitle-reading-controls span{text-align:center;line-height:1.4}

/* Text-only translation plaque, without raster ornaments. */
.chant-subtitle{aspect-ratio:auto;height:calc(4.5em + 40px);min-height:0;font-size:clamp(14px,3.5vw,18px);padding:18px 16px;margin:12px 0;background:linear-gradient(165deg,#912d36 0%,#641a29 45%,#4a1021 100%);border:2px solid #ffd36a;border-radius:26px;box-shadow:inset 0 0 0 2px #b86a45,inset 0 0 12px #ffd36a38,0 0 9px #ffd36a80;color:#fff8ee}
.chant-subtitle p{font-size:clamp(14px,3.5vw,18px);line-height:1.5;overflow-wrap:break-word;word-break:normal;white-space:pre-line;max-height:none;overflow:visible;text-overflow:clip;text-align:center;margin:0}
.alignment-preview{height:auto;min-height:110px}

/* Compact listener count and rounded lower room corners. */
.live-count>.icon{display:none}
.scene{border-radius:24px}
@media(max-width:600px){.scene{border-radius:16px}}

/* Stable gold hue and playback-controlled room wheel. */
.room-wheel{transform-origin:50% 50%;filter:grayscale(1) sepia(1) saturate(3) brightness(1.12) drop-shadow(0 0 8px #ffd36a88);animation:chant-wheel-turn 90s linear infinite;animation-play-state:paused}
.room-wheel[data-spinning=true]{animation-play-state:running}
@keyframes chant-wheel-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.room-wheel{animation:none}}

.room-wheel{aspect-ratio:1/1;object-fit:contain;filter:drop-shadow(0 0 8px #ffd36a88)}

/* Optional approximate subtitle pacing; does not control audio or count rounds. */
#subtitle-auto{position:absolute;right:12px;top:12px;min-height:44px;padding:6px 9px;font-size:12px;border:1px solid #d7a34b99;background:#d7a34b12;border-radius:12px;color:#fff0d8}
#subtitle-auto[aria-pressed=true]{background:#d7a34b30;border-color:#ffd36a}
.player-card .track-info h2{padding-right:80px;white-space:normal;min-height:1.5em}
.player-card .track-info>p{padding-right:80px}
@media(max-width:350px){#subtitle-auto{right:9px;top:9px;font-size:11px;padding:6px 7px}.player-card .track-info h2,.player-card .track-info>p{padding-right:72px}}

/* Round beside auto subtitles; listening status centered beneath controls. */
.subtitle-auto-tools{position:absolute;right:12px;top:12px;display:flex;align-items:center;gap:8px;max-width:48%;color:#fff0d8}
.subtitle-auto-tools #subtitle-auto{position:static;flex-shrink:0}
#playback-round{font-size:clamp(12px,3.2vw,16px);white-space:nowrap}
.player-card .track-info h2{padding-right:145px;min-height:2.5em}
.player-card .track-info>p{display:none}
.player-card #notice{grid-column:1/-1;text-align:center;width:100%}
@media(max-width:350px){.subtitle-auto-tools{right:9px;top:9px;gap:5px}.player-card .track-info h2{padding-right:125px}}

.ranking-periods,.ranking-scopes{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.ranking-periods button,.ranking-scopes button{background:#d7a34b12;border:1px solid #d7a34b99;box-shadow:none;min-height:44px}.ranking-periods button[aria-pressed=true],.ranking-scopes button[aria-pressed=true]{background:#d7a34b30;border-color:#b98735}.ranking-entry{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #d7a34b44}.ranking-entry>span:nth-child(2){overflow-wrap:anywhere}.ranking-entry strong{white-space:nowrap}.ranking-mine{color:#8b4328;font-weight:700}#ranking-summary{font-size:13px;line-height:1.6;margin:10px 0;overflow-wrap:break-word}.ranking-note{display:block;margin-top:14px;line-height:1.6;color:var(--muted)}#ranking-more{display:block;margin:14px auto 0}#ranking-more[hidden]{display:none}

/* Match today's leaderboard while keeping period/scope controls. */
#chant-rankings .ranking-periods,#chant-rankings .ranking-scopes{margin:14px 16px}#chant-rankings #ranking-summary,#chant-rankings .ranking-note{margin:12px 16px}#ranking-rows{padding:0 12px}#chant-rankings{padding-bottom:14px}#chant-rankings .ranking-mine{outline:1px solid #d7a34b;outline-offset:-1px}#chant-rankings header h2{min-width:0;white-space:normal}#chant-rankings .rank-row em{font-size:15px}#chant-rankings .rank-row[data-rank="2"] em{color:#737381;border-color:#c5c7db;outline-color:#c0bed1;background:radial-gradient(circle at 40% 25%,#fafaff,#c6c7df 65%,#9292ac)}#chant-rankings .rank-row[data-rank="3"] em{color:#9f5e39;border-color:#e7ac72;outline-color:#cb895d;background:radial-gradient(circle at 40% 25%,#ffe3bd,#e5a170 65%,#b86a45)}

/* Keep period tabs compact and readable on a stable cream surface. */
#chant-rankings{background:linear-gradient(135deg,#fff0d8,#ffe0b6);color:#641a29}
#chant-rankings>header{background:linear-gradient(180deg,#7f272c,#4a1021);margin:0 -12px;padding:10px 15px;color:#fff0d8}
#chant-rankings .ranking-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 4px}
#chant-rankings .ranking-periods button{min-width:0;min-height:44px;padding:5px 2px;font-size:clamp(11px,3vw,14px);white-space:nowrap;line-height:1.3;color:#641a29;border-radius:11px;background:#d7a34b12}
#chant-rankings .ranking-periods button[aria-pressed=true]{color:#4a1021;background:#d7a34b38;border-color:#a9772f;font-weight:700}
#chant-rankings .ranking-scopes button{color:#641a29}
@media(max-width:600px){#chant-rankings>header{margin:0 -8px;padding:9px 12px}}

/* Center scope tabs in the same four-column grid as period tabs. */
#chant-rankings .ranking-scopes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 4px}
#chant-rankings .ranking-scopes button:first-child{grid-column:2}
#chant-rankings .ranking-scopes button{min-width:0;min-height:44px;padding:5px 2px;font-size:clamp(11px,3vw,14px);white-space:nowrap;line-height:1.3;border-radius:11px}

.ranking-card>#all-ranks{display:block;margin:12px auto 2px;min-height:44px;padding:7px 16px;color:#641a29;background:#d7a34b12;border:1px solid #d7a34b99;box-shadow:none}.ranking-card>#all-ranks[hidden]{display:none}

/* Smooth burgundy-to-cream transition for today's leaderboard only. */
.ranking-card:has(>#rankings){background:linear-gradient(180deg,#641a29 0%,#752631 18%,#954337 36%,#b97250 54%,#deb087 72%,#f4d8b3 87%,#ffe0b6 100%)}

/* Give the personal name and listening duration more readable room. */
.stats-card .my-stats{grid-template-columns:34px minmax(0,1.8fr) minmax(0,.9fr) minmax(0,.9fr)}
.stats-card #my-name{display:block;width:100%;font-size:clamp(12px,3.2vw,16px);line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.stats-card #my-listened{font-size:clamp(10px,2.5vw,12px);line-height:1.5;white-space:normal;overflow-wrap:break-word}
@media(min-width:601px){.stats-card .my-stats{grid-template-columns:53px minmax(0,1.8fr) minmax(0,.9fr) minmax(0,.9fr)}}

/* Make the chant title fill its reserved name area more clearly. */
.player-card .track-info h2{font-size:clamp(14px,4vw,22px);line-height:1.4;letter-spacing:0;min-height:2.8em;display:flex;align-items:center;overflow-wrap:break-word}

/* Use the same balanced wheel and playback motion in the audio card. */
.player-wheel{aspect-ratio:1/1;object-fit:contain;transform-origin:50% 50%;animation:chant-wheel-turn 90s linear infinite;animation-play-state:paused}
.player-wheel[data-spinning=true]{animation-play-state:running}
@media(prefers-reduced-motion:reduce){.player-wheel{animation:none}}

.footnote.chant-dhamma{font-size:clamp(15px,3.8vw,19px);font-weight:600;line-height:1.85;margin:22px 8px;color:#fff0d8;}

#chant-rankings .ranking-scopes{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:14px 16px}#chant-rankings .ranking-scopes button{padding:8px 12px;white-space:normal}#chant-rankings .ranking-profile{display:flex;align-items:center;gap:8px;max-width:100%;text-align:left}#chant-rankings .ranking-profile img{width:36px;height:36px;flex-shrink:0;border-radius:50%;object-fit:cover;border:1px solid #d7a34b}#ranking-profile-name{overflow-wrap:anywhere}

#chant-rankings #ranking-summary{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-family:system-ui,"Thonburi","Tahoma",sans-serif;font-size:14px;font-weight:400;font-style:normal;line-height:1.7;letter-spacing:normal;font-variant-numeric:lining-nums tabular-nums;margin:16px 12px}#ranking-summary>span{display:block;max-width:100%}

/* Balanced ranking filters with matching touch-target heights. */
#chant-rankings .ranking-scopes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:12px;width:calc(100% - 32px);max-width:480px;margin:16px auto}#chant-rankings .ranking-scopes button:first-child{grid-column:auto}#chant-rankings .ranking-scopes button{width:100%;min-height:56px;height:100%;box-sizing:border-box;padding:8px 10px;display:flex;align-items:center;justify-content:center}#chant-rankings .ranking-profile{gap:8px;text-align:center}#chant-rankings #ranking-profile-name{min-width:0;overflow-wrap:anywhere}

.chant-login-footer{max-width:360px;margin:24px auto 16px;padding:0 12px}.chant-login-footer a{display:flex;align-items:center;justify-content:center;gap:12px;min-height:56px;padding:10px 20px;box-sizing:border-box;border:1px solid #d7a34b99;border-radius:18px;background:#d7a34b12;color:#fff0d8;font-size:18px;font-weight:500;box-shadow:none;text-shadow:none}.chant-login-footer a:hover{background:#d7a34b24}.chant-login-footer a:focus-visible{outline:3px solid #ffd36a;outline-offset:4px}.chant-login-footer .icon{width:25px;height:25px}

#groups>header{display:flex;align-items:center;justify-content:space-between;gap:12px}#new-room{flex-shrink:0}#request-room-dialog p{line-height:1.7}#request-room-dialog .request-room-contact{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:18px;padding:10px 14px;border:1px solid #d7a34b99;border-radius:14px;background:#d7a34b12;color:inherit;text-align:center;box-shadow:none}

/* Guide the completed card toward LINE sharing. */
html[data-theme] main #chant-merit-create[hidden]{display:none}
.chant-merit-actions{align-items:stretch;gap:12px;margin-top:38px}
.chant-merit-actions>#chant-merit-save,.chant-line-target{flex:1 1 150px;min-width:0}
.chant-line-target{position:relative;display:flex}
.chant-line-arrow{position:absolute;left:50%;top:-35px;transform:translateX(-50%);font-size:30px;line-height:1;color:#087d36;pointer-events:none;animation:chant-line-point 1.8s ease-in-out infinite}
#chant-merit-line{position:relative;isolation:isolate;width:100%;min-height:48px;padding:11px 14px;border:2px solid transparent;border-radius:14px;background:linear-gradient(135deg,#079c40,#05792f) padding-box,linear-gradient(100deg,#83f5a5,#fff9b3,#32ce65,#e0ffbb,#83f5a5) border-box;background-size:100% 100%,300% 100%;color:#fff;font-weight:700;overflow:visible;animation:chant-line-border 4s linear infinite}
#chant-merit-line::after{content:'✦';position:absolute;right:9px;top:-9px;color:#e7ffc2;font-size:17px;pointer-events:none;animation:chant-line-glint 2.6s ease-in-out infinite}
#chant-merit-line:hover{background:linear-gradient(135deg,#078739,#046128) padding-box,linear-gradient(100deg,#83f5a5,#fff9b3,#32ce65,#e0ffbb,#83f5a5) border-box}
@keyframes chant-line-point{0%,100%{opacity:.55;transform:translate(-50%,-4px)}50%{opacity:1;transform:translate(-50%,3px)}}
@keyframes chant-line-border{to{background-position:0 0,300% 0}}
@keyframes chant-line-glint{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
@media(prefers-reduced-motion:reduce){.chant-line-arrow,#chant-merit-line,#chant-merit-line::after{animation:none}}

/* Match the room statistics card while preserving ranking controls and data. */
#chant-rankings{background:radial-gradient(ellipse at 95% 0,#fff8ee,#fff0d8 40%,#f6d6a6);border:1.5px solid #ffe19c;border-radius:26px;box-shadow:inset 0 2px 4px #fffdf4,inset 0 -2px 5px #c9823c66,0 0 12px #ffcd7055,0 5px 10px #4a102133;margin-top:12px;padding:11px 15px 12px;color:#641a29}
#chant-rankings>header{background:none;color:#641a29;margin:0;padding:0;min-height:0}
#chant-rankings>header h2{font-size:21px;line-height:1.35;gap:6px}
#chant-rankings>header h2>.icon{display:none}
#chant-rankings .ranking-periods{margin:12px 0}
#chant-rankings .ranking-scopes{width:100%;margin:14px auto}
#chant-rankings #ranking-rows{padding:0}
#chant-rankings .rank-row{background:linear-gradient(145deg,#fffaf1,#ffe4cb);border:1px solid #fff8e8}
@media(max-width:600px){#chant-rankings{padding:7px 9px 8px;border-radius:21px;margin-top:7px}#chant-rankings>header{margin:0;padding:0}#chant-rankings>header h2{font-size:16px;gap:4px}}

/* Match ranking filter surfaces to the room-stat tiles. */
#chant-rankings .ranking-periods button,#chant-rankings .ranking-scopes button{background:linear-gradient(145deg,#fffaf1,#ffe4cb);border:1px solid #fff8e8;border-radius:19px;box-shadow:0 3px 4px #b86a4533,inset 0 1px 0 #fff;color:#641a29;font-weight:400}
#chant-rankings .ranking-periods button[aria-pressed=true],#chant-rankings .ranking-scopes button[aria-pressed=true]{background:linear-gradient(145deg,#fffaf1,#ffe4cb);border-color:#fff8e8;box-shadow:0 3px 4px #b86a4533,inset 0 1px 0 #fff,inset 0 -2px 0 #d7a34b88;color:#641a29;font-weight:700}
@media(max-width:600px){#chant-rankings .ranking-periods button,#chant-rankings .ranking-scopes button{border-radius:14px}}

/* Restore the centered burgundy trophy heading. */
#chant-rankings>header{background:linear-gradient(180deg,#7f272c,#4a1021);color:#fff0d8;margin:-11px -15px 0;padding:12px 15px;justify-content:center;text-align:center}
#chant-rankings>header h2{justify-content:center;text-align:center;color:#fff0d8}
#chant-rankings>header h2>.icon{display:block;width:28px;height:28px;flex-shrink:0}
@media(max-width:600px){#chant-rankings>header{margin:-7px -9px 0;padding:10px 9px}#chant-rankings>header h2>.icon{width:23px;height:23px}}

/* Align the chant title and round on the same first text baseline. */
.player-card .track-info{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:baseline}
.player-card .track-info h2{grid-column:1;grid-row:1;padding-right:0;min-height:0;display:block;margin:0}
.player-card .subtitle-auto-tools{position:static;grid-column:2;grid-row:1;max-width:none;align-items:baseline;align-self:baseline}
.player-card .track-info .time,.player-card .track-info progress{grid-column:1/-1}
@media(max-width:350px){.player-card .track-info{column-gap:6px}.player-card .track-info h2{padding-right:0}}

/* Center the time across the entire player with comfortable breathing room. */
.player-card>.time{grid-column:1/-1;text-align:center;justify-self:stretch;font-size:clamp(14px,3.8vw,19px);line-height:1.5;margin:5px 0 3px;letter-spacing:.25px}
.player-card>progress{grid-column:1/-1;display:block;width:100%;margin:0 0 5px}

/* Restore the original time size while retaining centered placement. */
.player-card>.time{font-size:12px;line-height:1.4;letter-spacing:normal}
@media(max-width:600px){.player-card>.time{font-size:9px}}

/* Restore compact original spacing between the title and centered time. */
.player-card>.time{margin:4px 0 0}
@media(max-width:600px){.player-card>.time{margin:2px 0 0}}

/* Personal history uses the same cream card and burgundy heading as rankings. */
#history-section{overflow:hidden;background:radial-gradient(ellipse at 95% 0,#fff8ee,#fff0d8 40%,#f6d6a6);border:1.5px solid #ffe19c;border-radius:26px;box-shadow:inset 0 2px 4px #fffdf4,inset 0 -2px 5px #c9823c66,0 0 12px #ffcd7055,0 5px 10px #4a102133;margin-top:12px;padding:11px 15px 12px;color:#641a29}
#history-section>header{position:relative;background:linear-gradient(180deg,#7f272c,#4a1021);color:#fff0d8;margin:-11px -15px 0;padding:12px 15px;justify-content:center;text-align:center}
#history-section>header h2{width:100%;padding:0 44px;font-size:21px;line-height:1.35;color:#fff0d8}
#history-section>header a{position:absolute;right:12px;color:#fff0d8;font-size:11px}
#history-section .history-tabs{justify-content:center;gap:12px;margin:16px 0}
#history-section .history-tabs button{width:calc((100% - 18px)/4);min-width:74px;min-height:44px;padding:8px 6px;font-size:clamp(11px,3vw,14px);background:linear-gradient(145deg,#fffaf1,#ffe4cb);border:1px solid #fff8e8;border-radius:19px;box-shadow:0 3px 4px #b86a4533,inset 0 1px 0 #fff;color:#641a29}
#history-section .history-tabs button[aria-pressed=true]{font-weight:700;box-shadow:0 3px 4px #b86a4533,inset 0 1px 0 #fff,inset 0 -2px 0 #d7a34b88}
#history-section .history-row{background:linear-gradient(145deg,#fffaf1,#ffe4cb);border:1px solid #fff8e8;border-radius:16px;padding:12px;margin:6px 0;color:#641a29}
@media(max-width:600px){#history-section{padding:7px 9px 8px;border-radius:21px;margin-top:7px}#history-section>header{margin:-7px -9px 0;padding:12px 9px}#history-section>header h2{font-size:16px}#history-section .history-tabs button{border-radius:14px}}

/* Match the group card to rankings and remove unused vertical space. */
#groups{overflow:hidden;background:radial-gradient(ellipse at 95% 0,#fff8ee,#fff0d8 40%,#f6d6a6);border:1.5px solid #ffe19c;border-radius:26px;box-shadow:inset 0 2px 4px #fffdf4,inset 0 -2px 5px #c9823c66,0 0 12px #ffcd7055,0 5px 10px #4a102133;margin-top:12px;padding:11px 15px 12px;color:#641a29}
#groups>header{position:relative;display:flex;justify-content:center;align-items:center;min-height:48px;margin:-11px -15px 0;padding:12px 15px;background:linear-gradient(180deg,#7f272c,#4a1021);color:#fff0d8;text-align:center}
#groups>header h2{width:100%;padding:0 80px;font-size:21px;line-height:1.35;text-align:center;color:#fff0d8}
#groups>header #new-room{position:absolute;right:12px;min-height:44px;padding:6px 8px;font-size:12px;border:1px solid #d7a34b88;border-radius:12px;background:#d7a34b12;color:#fff0d8;box-shadow:none}
#groups .group-picker{margin-top:8px;padding-top:18px}
#groups .group-picker:has(#join-room)::after{top:-5px;font-size:23px;line-height:23px}
#groups .group-actions{margin:8px 0}
#groups .group-actions:not(:has(>:not([hidden]))){display:none;margin:0;padding:0}
#groups>.help{margin:8px 0;line-height:1.6}
#groups #group-summary{margin:6px 0;padding:4px 0}
#groups>details{margin-top:8px}
@media(max-width:600px){#groups{padding:7px 9px 8px;border-radius:21px;margin-top:7px}#groups>header{margin:-7px -9px 0;padding:10px 9px}#groups>header h2{font-size:16px;padding:0 72px}#groups>header #new-room{right:9px;font-size:11px}}

#groups>header #new-room,#groups>header #new-room:hover{border:0;background:transparent;box-shadow:none}

/* Show the player guide only while an actual group is selected. */
#groups .group-picker:has(#join-room)::after{display:none}
#groups[data-room-selected=true] .group-picker:has(#join-room)::after{display:block}

/* Keep the group heading at the upper left, with create-room on the right. */
#groups>header{justify-content:flex-start;text-align:left}
#groups>header h2{text-align:left;padding-left:0;padding-right:90px}

#groups>details:has(#legacy){display:none}

.ranking-card:has(>#rankings)>header{justify-content:center;text-align:center}
.ranking-card:has(>#rankings)>header h2{justify-content:center;text-align:center}

/* Balanced round back control and a larger, centered room title group. */
.room-heading .back{box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;aspect-ratio:1;align-self:center;justify-self:center;padding:0;border-radius:50%;display:grid;place-items:center;font:400 32px/1 Arial,sans-serif;background:#d7a34b12;box-shadow:none;text-decoration:none}
.room-heading .back:focus-visible{outline:3px solid #fff0b0;outline-offset:3px}
.room-heading{grid-template-columns:48px minmax(0,1fr) 86px}
.room-heading .title-plaque{justify-content:center;align-items:center;gap:10px;min-height:76px}
.room-heading .title-wheel{width:50px;height:50px;object-fit:contain;aspect-ratio:1}
.room-heading h1{font-size:28px;margin:0;line-height:1.3;text-align:center}
.room-heading p{font-size:14px;line-height:1.4;text-align:center}
@media(max-width:600px){
.room-heading{grid-template-columns:44px minmax(0,1fr) 62px;gap:5px}
.room-heading .title-plaque{gap:5px;padding:7px 6px;min-height:64px}
.room-heading .title-wheel{width:32px;height:32px}
.room-heading h1{font-size:clamp(13px,3.8vw,22px);letter-spacing:-.4px;white-space:normal}
.room-heading p{font-size:clamp(7px,1.95vw,11px);margin-top:3px}
}
@media(max-width:350px){.room-heading{grid-template-columns:44px minmax(0,1fr) 54px;gap:4px}.room-heading .title-wheel{width:28px;height:28px}.room-heading h1{font-size:12px}.room-heading p{font-size:7px}}

/* A rounded, bolder back arrow inside the existing circular control. */
.room-heading .back{font-size:0}
.room-heading .back:before{content:'';display:block;width:28px;height:28px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M18 7 9 16l9 9M9 16h16' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M18 7 9 16l9 9M9 16h16' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* Center the visible arrow bounds and lengthen its shaft. */
.room-heading .back{display:grid;place-items:center;aspect-ratio:1;border-radius:50%;flex-shrink:0}
.room-heading .back:before{width:30px;height:30px;margin:0;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M14 7 5 16l9 9M5 16h22' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M14 7 5 16l9 9M5 16h22' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* Anchor the arrow to the circle center, independent of the text grid row. */
.room-heading .back{position:relative}
.room-heading .back:before{position:absolute;left:50%;top:50%;margin:0;transform:translate(-50%,-50%)}

/* Prayer cutouts use their natural proportions instead of the narrow atlas cell. */
.chant-person .person-sprite[data-pose="chant-prayer"]{width:100%;height:100%;aspect-ratio:auto;background-size:contain;background-position:center bottom;background-repeat:no-repeat}
/* Place names beneath the feet, with a visible gap instead of covering the robe. */
.chant-person .person-label,.chant-person.self .person-label{bottom:-15px;margin-bottom:0}
@media(max-width:600px){.chant-person .person-label,.chant-person.self .person-label{bottom:-13px}}

/* Match the crowned male's visual size to adjacent prayer avatars; keep feet anchored. */
.chant-person .person-sprite[data-pose="chant-prayer"][data-prayer-role="3"]{width:130%;height:130%;bottom:0;background-size:contain;background-position:center bottom}

/* Balance the new white patron cutouts against the seated monk, without stretching. */
.chant-person .person-sprite[data-pose="chant-prayer"][data-prayer-role="3"]{width:105%;height:105%;bottom:0}
.chant-person .person-sprite[data-pose="chant-prayer"][data-prayer-role="4"]{width:115%;height:115%;bottom:0}

/* Choose a verified round target without covering the wheel or seated members. */
.round-target{position:absolute;z-index:12;top:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 8px;max-width:85%;box-sizing:border-box;padding:5px 10px;border:1px solid #e8c17488;border-radius:16px;background:#4a1021b8;color:#fff0cf;font-size:12px;text-align:center}
.round-target label{white-space:nowrap;font-weight:600}.round-target select{font:inherit;color:inherit;min-height:44px;min-width:96px;max-width:100%;padding:4px 8px;border:1px solid #dfb86988;border-radius:12px;background:#d7a34b14;box-shadow:none}.round-target select option{background:#fff8e8;color:#5c2330}.round-target select:focus-visible{outline:3px solid #fff0b0;outline-offset:2px}#chant-round-target-status{width:100%;font-size:11px;line-height:1.4}#chant-round-target-status:empty{display:none}
html[data-theme=light] .round-target{background:#fff8e8e0;color:#5c2330}
html[data-chant-floating=true] .round-target{display:none!important}
@media(max-width:350px){.round-target{top:6px;font-size:11px;padding:3px 7px;gap:2px 5px;max-width:90%}}
.round-target{width:min(260px,88%)}

.round-target #chant-round-target[hidden],.round-target-menu[hidden]{display:none!important}
.round-target #chant-round-open,.round-target-menu button{font:inherit!important;color:inherit!important;min-width:44px!important;min-height:44px!important;border:1px solid #dfb86988!important;border-radius:12px!important;background:#d7a34b14!important;box-shadow:none!important;text-shadow:none!important;padding:4px 8px;cursor:pointer}
.round-target #chant-round-open:focus-visible,.round-target-menu button:focus-visible{outline:3px solid #fff0b0;outline-offset:2px}
.round-target-menu{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);width:260px;max-width:90vw;box-sizing:border-box;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:6px;border:1px solid #dfb86988;border-radius:14px;background:#4a1021f5;color:#fff0cf}
.round-target-menu button:first-child{grid-column:1/-1}.round-target-menu button[aria-pressed=true]{border-color:#fff0b0!important;background:#d7a34b33!important}
html[data-theme=light] .round-target-menu{background:#fff8e8f5;color:#5c2330}
.round-target #chant-round-open,.round-target-menu button{font:inherit;color:inherit;min-height:44px;min-width:0;padding:4px 8px;border:1px solid #dfb86988;border-radius:12px;background:#d7a34b14!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer}
.round-target #chant-round-open{min-width:96px}
.round-target-menu{position:absolute;z-index:20;left:50%;top:calc(100% + 6px);transform:translateX(-50%);box-sizing:border-box;width:min(260px,80vw);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:6px;border:1px solid #dfb86988;border-radius:14px;background:#4a1021f2;color:#fff0cf}
.round-target-menu[hidden]{display:none!important}.round-target-menu button:first-child{grid-column:1/-1}.round-target-menu button{font-size:12px;padding:3px}.round-target-menu button[aria-pressed=true]{font-weight:700;background:#d7a34b33!important;border-color:#ffe6a6}
.round-target button:focus-visible{outline:3px solid #fff0b0;outline-offset:2px}
html[data-theme=light] .round-target-menu{background:#fff8e8f5;color:#5c2330}

/* Independent circular light cycles are scheduled by the avatar renderer. */
.chant-clear-light{position:absolute;display:block;left:50%;top:62%;width:140%;height:auto;aspect-ratio:1/1;box-sizing:border-box;border-radius:50%;pointer-events:none;opacity:0;background:radial-gradient(circle at 34% 26%,#ffffffd9 0%,#ffffff55 7%,transparent 22%),radial-gradient(circle closest-side at 50% 50%,#fffbe81a 0%,#eafaff22 65%,#efffff55 88%,#fffef3dd 95%,#fffef377 98%,transparent 100%);box-shadow:0 0 16px #fff8c888,inset 0 0 12px #fffef477;transform:translate(-50%,-50%) scale(.13)}
html.low-effects .chant-clear-light{box-shadow:none}
