﻿.friend-chat-button{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;background:#eee2ff;color:#5930ad;border:2px solid #5930ad;border-radius:11px}.friend-chat-button svg{width:22px;height:22px}.chat-hub,.chat-thread{max-width:850px;margin:auto}.chat-friends-only,.chat-safety{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff4c9;color:#291b41;border:2px solid #291b41;border-radius:15px;padding:12px;font:500 18px Fredoka,sans-serif;margin:0 0 20px}.chat-friends-only svg,.chat-safety svg{width:24px;height:24px;flex-shrink:0}.conversation-list{display:grid;gap:16px}.conversation-card{display:flex;align-items:center;gap:15px;padding:20px;width:100%;text-align:left;cursor:pointer;color:#291b41}.conversation-text{min-width:0;flex:1}.conversation-text>b{display:block;font:600 24px Fredoka,sans-serif;margin-bottom:7px;overflow-wrap:anywhere}.conversation-text>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:500 15px Fredoka,sans-serif;color:#7847be}.conversation-meta{display:flex;align-items:flex-end;flex-direction:column;gap:8px}.conversation-meta time{font:500 12px Fredoka,sans-serif;color:#8d78a2}.conversation-meta>b{display:grid;place-items:center;background:#ff7651;color:#fffaf0;border-radius:50%;min-width:25px;height:25px;font:600 16px Fredoka,sans-serif}.chat-find-friends{display:table;margin:25px auto 0}.chat-blocked{margin-top:25px;padding:20px}.chat-blocked summary{font:600 21px Fredoka,sans-serif;cursor:pointer}.chat-blocked p{font-size:12px;color:#786386;line-height:1.6}.chat-thread{display:flex;flex-direction:column;height:calc(100vh - 185px);height:calc(100dvh - 185px);min-height:440px;gap:12px}.chat-thread-header{display:flex;align-items:center;gap:12px;padding:12px 16px;flex-shrink:0;position:relative;z-index:2}.chat-thread-header>.social-icon-button{width:28px;flex-shrink:0}.chat-thread-header>div{min-width:0;flex:1}.chat-thread-header h1{font:600 25px/1.15 Fredoka,sans-serif;color:#291b41;margin:0 0 5px;overflow-wrap:anywhere}.chat-thread-menu{position:relative;flex-shrink:0}.chat-thread-menu summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:36px;height:40px;border:2px solid #291b41;border-radius:12px;font-size:27px;background:#fffaf0}.chat-thread-menu summary::-webkit-details-marker{display:none}.chat-thread-menu>div{position:absolute;right:0;top:47px;z-index:5;width:210px;border:3px solid #291b41;border-radius:15px;background:#fffcf2;padding:7px;box-shadow:0 4px 0 #291b41}.chat-thread-menu button{display:flex;align-items:center;gap:9px;border:0;padding:11px 6px;background:none;color:#291b41;width:100%;font:500 16px Fredoka,sans-serif;text-align:left}.chat-thread-menu button svg{width:22px;height:22px;flex-shrink:0}.chat-thread-menu [data-chat-block]{color:#b9324f;border-top:1px solid #e3d5ef}.chat-safety{align-self:center;font-size:14px;padding:8px 14px;margin:0;gap:7px}.chat-safety svg{width:20px;height:20px}.chat-message-list{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;padding:6px 8px 10px;scrollbar-width:thin;scrollbar-color:#bda0ff transparent}.chat-message{max-width:83%;align-self:flex-start;border:3px solid #291b41;border-radius:20px 20px 20px 5px;background:#fffcf2;padding:12px 14px;box-shadow:0 3px 0 #291b41;color:#291b41;min-width:100px}.chat-message.is-own{align-self:flex-end;background:#ffdc45;border-radius:20px 20px 5px 20px}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:500 19px/1.35 Fredoka,sans-serif;margin:0}.chat-message>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:11px;padding:4px 0 0;margin:0;width:auto;max-width:none;color:#8d78a2}.chat-message>footer button{display:grid;place-items:center;background:none;border:0;color:#5930ad;width:25px;height:25px;padding:3px}.chat-message>footer svg{width:20px;height:20px}.chat-message.is-hidden p{font-size:14px;font-style:italic;color:#786386}.chat-first-message{font:500 18px/1.6 Fredoka,sans-serif;align-self:center;text-align:center;color:#fffaf0;max-width:300px;margin:auto;text-shadow:0 1px 3px #291b41}.chat-history-buttons{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;flex-shrink:0}.chat-history-buttons:has(button:not([hidden])){min-height:35px}.chat-history-buttons .button{min-height:34px;padding:6px 10px}.chat-compose{display:flex;align-items:flex-end;gap:8px;background:#fffcf2;border:3px solid #291b41;border-radius:20px;padding:6px;box-shadow:0 4px 0 #291b41;flex-shrink:0}.chat-compose textarea{flex:1;width:100%;border:0;background:none;color:#291b41;font:500 18px/1.3 Fredoka,sans-serif;padding:8px 9px;min-height:39px;max-height:100px;resize:none;outline:0}.chat-compose .button{width:46px;min-width:46px;min-height:43px;padding:8px;display:grid;place-items:center;border-radius:14px;box-shadow:none}.chat-compose .button svg{width:25px;height:25px}.chat-compose-help{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#fffaf0;flex-shrink:0}.chat-thread #chat-send-error{color:#fffaf0;background:#a51c45;border-radius:9px;font-size:12px;padding:8px 12px;margin:0}.chat-thread #chat-send-error:empty{display:none}.chat-report-dialog blockquote{margin:12px 0;padding:12px;background:#f0e7ff;border-radius:12px;color:#291b41;white-space:pre-wrap;overflow-wrap:anywhere;max-height:130px;overflow:auto;font-size:14px}.chat-report-dialog .field input,.chat-report-dialog .field textarea,.chat-report-dialog .field select{font-size:16px}.chat-report-block{display:flex;align-items:center;gap:8px;font-size:13px;margin:15px 0}.chat-report-block input{width:19px;height:19px}body[data-page=chat] .site-footer{display:none!important}.admin-console{max-width:1280px;margin:auto}.admin-console-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.admin-console-heading .page-heading{margin-bottom:18px}.admin-console-heading .actions{flex-shrink:0}.admin-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:8px 0 28px}.admin-tabs>button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:62px;border:3px solid #291b41;border-radius:18px;color:#291b41;background:#fffcf2;box-shadow:0 4px 0 #291b41;font:600 25px Fredoka,sans-serif}.admin-tabs>button[aria-pressed=true]{background:#ffdc45}.admin-tabs svg{width:30px;height:30px}.admin-tabs small{font:600 14px Fredoka,sans-serif;background:#ff7651;display:grid;place-items:center;border-radius:20px;min-width:24px;height:24px}.console-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.console-metric{display:flex;gap:15px;align-items:center;padding:22px}.console-metric>svg{width:48px;height:48px;color:#5930ad;flex-shrink:0}.console-metric h2{font:500 17px/1.2 Fredoka,sans-serif;margin:0 0 8px}.console-metric strong{font:600 51px/1 Fredoka,sans-serif;color:#291b41}.admin-activity-note{color:#fffaf0;font-size:12px;margin:20px 0}.admin-analytics{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.room-analytics,.active-player-panel{padding:25px}.room-analytics h2,.active-player-panel h2,.admin-player-card h2,.banned-networks h2{font:600 26px Fredoka,sans-serif;color:#291b41;margin:0 0 14px}.room-analytics h2{display:flex;align-items:center;gap:10px}.room-analytics h2 svg{width:27px;height:27px}.room-analytics>p{font-size:12px;line-height:1.6;color:#786386;margin-bottom:18px}.usage-row{display:grid;grid-template-columns:90px 1fr 45px;gap:8px 12px;align-items:center;margin:17px 0}.usage-row>b,.usage-row>strong{font:600 18px Fredoka,sans-serif;white-space:nowrap}.usage-row>span{height:20px;overflow:hidden;border-radius:10px;background:#e2d8ef}.usage-row i{display:block;height:100%;min-width:0;background:linear-gradient(90deg,#7626dd,#ac38ff);border-radius:10px}.usage-row>small{grid-column:2/-1;font-size:10px;color:#786386}.room-kind-summary{border-top:1px solid #dacbe7;padding-top:16px;margin-top:20px;display:flex;gap:20px;color:#786386;font-size:12px}.active-player-panel>.button{margin-top:15px}.admin-recent-reports{margin-top:28px}.admin-reports-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px}.admin-reports-heading h2{font:600 28px Fredoka,sans-serif;color:#fffaf0;text-shadow:0 2px 0 #291b41}.admin-reports-heading label{color:#fffaf0;font-size:13px}.admin-reports-heading select{border:2px solid #291b41;border-radius:10px;padding:9px;background:#fffcf2;color:#291b41;font-size:14px;margin-left:8px}.admin-report{padding:0;margin-bottom:18px;overflow:hidden}.admin-report>summary{list-style:none;display:flex;gap:18px;align-items:center;cursor:pointer;padding:19px 22px}.admin-report>summary::-webkit-details-marker{display:none}.admin-report>summary>span:nth-child(2){min-width:0;flex:1}.admin-report>summary b{font:600 21px Fredoka,sans-serif;overflow-wrap:anywhere}.admin-report>summary small{display:block;margin-top:5px;color:#786386;font-size:11px;line-height:1.6}.report-reason{background:#ff7651;color:#fffaf0;font-size:12px;font-weight:800;border-radius:10px;padding:8px 11px;max-width:150px}.report-status{font-size:11px;color:#5930ad;font-weight:700;text-align:right}.report-evidence{padding:0 22px 22px;border-top:1px solid #dacbe7}.report-evidence h3{font:600 23px Fredoka,sans-serif;margin:18px 0 12px}.report-evidence blockquote{white-space:pre-wrap;overflow-wrap:anywhere;background:#eee4ff;border-radius:12px;padding:16px;margin:0 0 14px;color:#291b41;max-height:220px;overflow:auto;font-size:14px;line-height:1.6}.report-evidence p{font-size:13px;line-height:1.7;margin:10px 0;color:#655176;overflow-wrap:anywhere}.report-evidence>small{font-size:11px;color:#786386}.report-evidence textarea{font-size:15px}.report-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.report-evidence .ip-ban-note{font-size:11px;margin-top:17px}.banned-networks{padding:24px;margin-top:25px}.banned-networks>div{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0;border-top:1px solid #dacbe7}.banned-networks small{display:block;font-size:11px;color:#786386;margin-top:6px;line-height:1.5;overflow-wrap:anywhere}.admin-player-card{padding:25px}.admin-player-card .friend-search{box-shadow:none;margin-top:18px;max-width:520px}.admin-table-scroll{overflow:auto}.admin-table-scroll table{width:100%;border-collapse:collapse}.admin-table-scroll td,.admin-table-scroll th{padding:12px 10px;border-bottom:1px solid #e4d9f0;white-space:nowrap;text-align:left;font-size:12px}.admin-table-scroll th{font-weight:800}.admin-pagination{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:20px}.admin-pagination span{font-size:12px;color:#786386}.admin-abuses{margin-top:25px}
@media(max-width:1000px){.console-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-analytics{grid-template-columns:1fr}.admin-console-heading{align-items:flex-start;flex-direction:column;gap:8px}.admin-tabs>button{font-size:21px}}
@media(max-width:760px){.chat-heading h1{font-size:29px!important}.chat-friends-only{font-size:17px;padding:12px;margin-bottom:20px}.conversation-card{padding:17px 15px;gap:12px;min-height:93px}.conversation-card>.ranking-avatar{width:44px;height:44px;font-size:28px}.conversation-text>b{font-size:23px;margin-bottom:6px}.conversation-text>small{font-size:14px}.conversation-meta time{font-size:11px}.conversation-list{gap:17px}.chat-thread{height:calc(var(--chat-viewport-height,100vh) - 78px - var(--app-nav-height) - 40px);height:calc(var(--chat-viewport-height,100dvh) - 78px - var(--app-nav-height) - 40px);min-height:260px;gap:9px}.chat-thread-header{padding:10px 9px;gap:8px;border-radius:19px}.chat-thread-header .ranking-avatar{width:40px;height:40px;font-size:26px}.chat-thread-header h1{font-size:23px}.chat-thread-header .friend-presence{font-size:13px}.chat-thread-header>.social-icon-button{width:24px;padding:0}.chat-safety{font-size:13px;padding:7px 12px}.chat-message-list{padding:4px 3px 8px;gap:13px}.chat-message{padding:11px 12px;max-width:86%;border-radius:18px 18px 18px 4px}.chat-message.is-own{border-radius:18px 18px 4px 18px}.chat-message p{font-size:19px}.chat-compose textarea{font-size:18px}.chat-compose-help{font-size:10px;padding:0 2px}.chat-thread-menu>div{width:202px}.chat-blocked{padding:17px}.friend-card{flex-wrap:wrap}.friend-card-name{min-width:85px}.friend-chat-button{width:30px;height:34px}.friend-chat-button svg{width:20px;height:20px}.chat-keyboard #app-navigation{display:none}.chat-keyboard .chat-thread{height:calc(var(--chat-viewport-height,100vh) - 78px - 40px);height:calc(var(--chat-viewport-height,100dvh) - 78px - 40px)}.chat-report-dialog{width:calc(100% - 28px)}.chat-report-dialog .actions{flex-wrap:wrap}.admin-console-heading .page-heading h1{font-size:31px!important}.admin-console-heading .actions .button{font-size:15px;min-height:39px}.admin-tabs{gap:6px;margin:17px 0 22px}.admin-tabs>button{min-height:67px;flex-direction:column;gap:4px;font-size:13px;border-radius:13px;padding:5px}.admin-tabs svg{width:24px;height:24px}.admin-tabs small{position:absolute;margin-left:42px;margin-top:-40px;min-width:18px;height:18px;font-size:10px}.console-metrics{gap:11px}.console-metric{padding:17px 13px;gap:7px}.console-metric>svg{display:none}.console-metric h2{font-size:15px;min-height:36px}.console-metric strong{font-size:41px}.admin-analytics{gap:18px}.room-analytics,.active-player-panel{padding:20px 16px}.room-analytics h2,.active-player-panel h2{font-size:24px}.usage-row{grid-template-columns:76px 1fr 35px;gap:7px 8px}.usage-row>b,.usage-row>strong{font-size:16px}.admin-reports-heading{align-items:flex-start;flex-direction:column;gap:10px}.admin-reports-heading h2{font-size:25px}.admin-report>summary{padding:16px 13px;gap:10px;flex-wrap:wrap}.admin-report>summary b{font-size:19px}.report-reason{font-size:10px;padding:7px 8px}.report-status{font-size:10px}.report-evidence{padding:0 14px 18px}.report-actions{gap:8px}.report-actions>.button{font-size:14px;padding:8px 10px;min-height:36px}.admin-player-card{padding:20px 13px}.admin-player-card h2{font-size:25px}.admin-pagination{gap:8px;flex-wrap:wrap}.admin-pagination .button{font-size:14px}.banned-networks{padding:19px 15px}.banned-networks>div{align-items:flex-start;flex-direction:column;gap:10px}.chat-find-friends{font-size:19px}}
/* Waiting room and compact voice studio */
.header-info{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:#ffdc43;color:#29173f;border:2px solid #29173f;border-radius:13px;box-shadow:0 3px 0 #29173f;text-decoration:none;margin-left:12px}
.header-info span{display:grid;place-items:center;width:24px;height:24px;border:2px solid currentColor;border-radius:50%;font:bold 20px Georgia,serif}
.waiting-room{max-width:880px;margin:0 auto}.waiting-room>.page-heading{text-align:center;margin-bottom:22px}.waiting-summary{text-align:center;padding:28px;position:relative}.waiting-badge{display:inline-block;background:#ffdc43;border:2px solid #29173f;border-radius:9px;padding:5px 15px;color:#29173f;font-weight:900;font-size:12px;letter-spacing:.07em}.waiting-summary h2{color:#5830a0;font-size:32px;margin:15px 0}.waiting-count{display:inline-block;background:#ff7653;border:2px solid #29173f;box-shadow:0 3px 0 #29173f;border-radius:10px;padding:8px 20px;font-weight:900;color:#29173f}.waiting-progress{display:flex;justify-content:center;gap:9px;margin:22px auto}.waiting-progress>span{width:45px;height:30px;border:2px dashed #bbb1c6;border-radius:8px;color:#29173f;font-weight:900}.waiting-progress>.is-ready{border:2px solid #29173f;background:#65d8b4}.waiting-callout{background:#ffdc43;padding:12px;border-radius:12px;color:#29173f;font-weight:800;margin:0 0 10px}.waiting-summary>small{color:#78648e}.waiting-players{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.waiting-player{display:flex;align-items:center;gap:12px;padding:15px;min-width:0}.waiting-player>div{flex:1;min-width:0}.waiting-player h3{margin:0 0 4px;color:#29173f;overflow-wrap:anywhere;font-size:17px}.waiting-player small{color:#655775;font-size:12px}.waiting-player small i{display:inline-block;width:8px;height:8px;background:#48b491;border-radius:50%;margin-right:6px}.waiting-you{display:inline-block;margin-left:8px;background:#ffdc43;border-radius:5px;font-size:9px;padding:3px 5px;vertical-align:middle}.waiting-empty{display:flex;align-items:center;justify-content:center;gap:14px;border:2px dashed #bfb4d9;border-radius:18px;background:#ffffff12;padding:14px;color:#fff}.waiting-empty>span{font-size:30px}.waiting-empty p{margin:0;font-weight:700}.waiting-empty small{display:block;font-size:11px;font-weight:400;opacity:.8;margin-top:5px}.waiting-invite{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 22px}.waiting-invite small{display:block;color:#79648a;font-size:10px;font-weight:800;letter-spacing:.1em}.waiting-invite strong{font-size:25px;letter-spacing:.12em;color:#5931a2}.waiting-note{text-align:center;color:#fff;font-size:12px}.waiting-room+.player-leave-control{text-align:center}
.wheel-guide{position:fixed;right:0;width:min(42vw,190px);height:250px;overflow:hidden;pointer-events:none;z-index:80;animation:guide-visit 3.6s both}.wheel-guide img{width:100%;height:auto;animation:guide-bob .55s ease-in-out 1s 3 alternate;filter:drop-shadow(0 8px 4px #29173f55)}@keyframes guide-visit{0%{transform:translateX(110%)}20%,76%{transform:translateX(0)}100%{transform:translateX(110%)}}@keyframes guide-bob{to{transform:translateY(-9px) rotate(-4deg)}}
.chat-message audio,.report-evidence audio{display:block;width:min(270px,100%);height:42px}.chat-message p>small{display:block;font-size:10px;margin-top:5px}.chat-compose .voice-mic{padding:8px;width:44px;min-width:44px;font-size:21px}.voice-studio{background:#fff9e8;border:3px solid #29173f;border-radius:18px;padding:14px;display:grid;gap:10px;color:#29173f;box-shadow:0 4px 0 #29173f}.voice-studio>b{color:#6432a3}.voice-studio>small{font-size:11px;color:#78648e}.voice-studio audio{max-width:100%;width:100%;height:40px}.voice-studio .actions{justify-content:flex-end}.chat-compose[hidden]{display:none!important}
@media(max-width:760px){.header-info{margin-left:auto;margin-right:7px;width:40px;height:40px;flex-basis:40px;border-radius:11px}.header-info+#header-audio{margin-left:0}.waiting-room>.page-heading{margin:5px 0 16px}.waiting-room>.page-heading h1{font-size:27px;line-height:1.15}.waiting-room>.page-heading .eyebrow{display:none}.waiting-summary{padding:18px 14px}.waiting-summary h2{font-size:26px;margin:12px 0}.waiting-progress{margin:17px 0}.waiting-progress>span{width:38px;height:28px}.waiting-callout{font-size:14px;padding:10px}.waiting-summary>small{font-size:11px}.waiting-players{grid-template-columns:1fr;gap:10px;margin:13px 0}.waiting-player{padding:12px 14px}.waiting-player .avatar{width:44px;height:44px;flex-basis:44px}.waiting-invite{padding:12px 15px}.waiting-invite .button{font-size:13px}.waiting-empty{padding:12px}.waiting-empty p{font-size:13px}.waiting-note{margin:15px 0 6px}body[data-page=admin] .app-bottom-nav{display:none}body[data-page=admin]{padding-bottom:0}.chat-compose{gap:6px}.chat-compose textarea{min-width:0}.chat-message audio{max-width:240px}}
@media(prefers-reduced-motion:reduce){.wheel-guide{display:none}}

/* Stable composer geometry across font metrics and mobile viewport modes. */
.chat-thread-menu summary{box-sizing:border-box;width:40px;height:40px;padding:0;line-height:1;display:flex;align-items:center;justify-content:center;color:#291b41}
.chat-thread-menu summary::marker{content:''}.chat-thread-menu summary svg{display:block;width:24px;height:24px;fill:currentColor;flex:none}
.chat-thread-header>.social-icon-button{display:grid;place-items:center}
.chat-compose{align-items:center}.chat-compose textarea{box-sizing:border-box;min-width:0;min-height:44px;max-height:104px;margin:0;padding:10px 8px;line-height:24px;vertical-align:middle;appearance:none;border-radius:10px;scrollbar-width:thin}
.chat-compose .button{height:44px;min-height:44px;flex-shrink:0}.chat-message{flex-shrink:0}#voice-studio:empty{display:none}
@media(max-width:760px){
 body.chat-thread-open{overflow:hidden;overscroll-behavior:none;padding-bottom:0}
 body.chat-thread-open #app{position:fixed;z-index:60;top:var(--chat-viewport-top,0px);left:0;right:0;width:100%;max-width:none;height:var(--chat-viewport-height,100vh);height:var(--chat-viewport-height,100dvh);min-height:0;margin:0;padding:calc(var(--chat-header-height,78px) + 12px) 14px calc(var(--chat-nav-space,84px) + 12px)!important;box-sizing:border-box;display:flex;overflow:hidden}
 body.chat-thread-open .chat-thread{width:100%;height:100%;min-height:0;gap:8px;flex:1}
 body.chat-thread-open .chat-message-list{min-height:0;flex:1 1 0;overflow-y:auto;overflow-x:hidden;overflow-anchor:none}
 body.chat-thread-open .chat-history-buttons:has(button:not([hidden])){min-height:30px}
 body.chat-keyboard #app-navigation{display:none!important}
 body.chat-short-viewport .chat-safety,body.chat-short-viewport .chat-compose-help{display:none}
 body.chat-short-viewport .chat-thread-header{padding-top:6px;padding-bottom:6px}
 body.chat-short-viewport .chat-thread{gap:6px}
}
/* Voice recorder and player use game controls rather than browser media menus. */
.voice-player{display:flex;position:relative;align-items:center;gap:12px;min-width:0;max-width:100%;width:262px;padding:5px 0;white-space:normal;flex-wrap:wrap}.voice-player audio[hidden]{display:none!important}.voice-play{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:7px;border:2px solid #291b41;border-radius:14px;background:#7d2adb;color:#fffaf0;box-shadow:0 3px 0 #291b41;cursor:pointer}.voice-play svg{display:block;width:24px;height:24px}.voice-play:disabled{opacity:.65}.voice-track{min-width:0;flex:1;display:grid;gap:5px}.voice-wave{height:32px;display:flex;align-items:center;justify-content:space-between;gap:3px;overflow:hidden}.voice-wave>i{display:block;width:4px;height:var(--bar);max-height:30px;background:#8350be;border-radius:5px;flex:1}.voice-player.is-playing .voice-wave>i{animation:voice-bars .55s ease-in-out infinite alternate}.voice-wave>i:nth-child(3n){animation-delay:-.2s}.voice-wave>i:nth-child(3n + 1){animation-delay:-.4s}.voice-track progress{display:block;appearance:none;width:100%;height:4px;border:0;border-radius:5px;background:#d3bde8;accent-color:#6c28b9;overflow:hidden}.voice-track progress::-webkit-progress-bar{background:#d3bde8}.voice-track progress::-webkit-progress-value{background:#6c28b9}.voice-track progress::-moz-progress-bar{background:#6c28b9}.voice-track [data-voice-time]{font:600 12px/1.2 Fredoka,sans-serif;color:#593084;font-variant-numeric:tabular-nums}.voice-player-error{font:500 12px/1.4 Fredoka,sans-serif;color:#aa204b;flex-basis:100%;white-space:normal}.voice-player-error:empty{display:none}.voice-expired{font-size:14px;color:#78648e}.voice-studio{padding:13px;gap:12px;background:#fffcf2;border-radius:20px}.voice-studio-heading{display:flex;align-items:center;gap:8px}.voice-studio-heading>b{font:600 17px/1.1 Fredoka,sans-serif;color:#5930ad;flex:1;min-width:0}.voice-rec-badge{display:grid;place-items:center;min-width:35px;height:31px;padding:4px 6px;border:2px solid #291b41;border-radius:10px;background:#ffdc45;color:#291b41;font:700 11px Fredoka,sans-serif}.is-recording .voice-rec-badge{background:#ff7651;animation:voice-record-light 1s infinite alternate}.voice-studio #voice-seconds{font:600 12px/1.2 Fredoka,sans-serif;color:#5930ad;white-space:nowrap;font-variant-numeric:tabular-nums}.voice-recording-wave{display:flex;align-items:center;justify-content:center;gap:5px;height:43px;overflow:hidden;padding:0 5px}.voice-recording-wave>i{height:var(--bar);flex:1;max-width:7px;border-radius:6px;background:#7d2adb;animation:voice-bars .5s ease-in-out var(--delay) infinite alternate}.voice-recording-progress{height:7px;background:#e2d3f1;border:1px solid #291b41;border-radius:6px;overflow:hidden}.voice-recording-progress>i{display:block;width:0;height:100%;background:#ffbc31;transition:width .2s linear}.voice-studio .voice-player{width:100%}.voice-studio .actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.voice-studio .actions .button{min-height:40px;font-size:15px;padding:7px 12px}.voice-studio .actions #voice-send{flex:1;justify-content:center}.voice-studio>small{font-size:10px}.wheel-guide{animation:guide-visit 5.5s ease-in-out infinite}.wheel-guide img{animation:guide-bob .55s ease-in-out infinite alternate}
@keyframes voice-bars{from{transform:scaleY(.4)}to{transform:scaleY(1)}}@keyframes voice-record-light{to{background:#ffb04e}}
@media(max-width:360px){.voice-player{width:220px;gap:8px}.voice-play{flex-basis:38px;width:38px;height:38px}.voice-studio-heading>b{font-size:15px}.voice-studio #voice-seconds{font-size:11px}}
@media(prefers-reduced-motion:reduce){.voice-player.is-playing .voice-wave>i,.voice-recording-wave>i,.is-recording .voice-rec-badge{animation:none}.wheel-guide{display:none}}
/* Equal-sized friend actions, with no browser-default button padding. */
.friend-card>[data-invite-friend]{height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.friend-card>.friend-chat-button{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;line-height:1;border:2px solid #291b41;border-radius:12px;box-shadow:0 3px 0 #291b41}
.friend-card>.friend-chat-button svg{display:block;width:24px;height:24px;margin:0;flex:none}

/* Optical centring of the play glyph, including Firefox button internals. */
.voice-play{appearance:none;-webkit-appearance:none;padding:0;line-height:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.voice-play::-moz-focus-inner{padding:0;border:0}.voice-play svg{width:24px;height:24px;flex:0 0 24px;overflow:visible;margin:0}
@media(display-mode:standalone) and (max-width:760px){:root{--app-safe-bottom:clamp(0px,env(safe-area-inset-bottom,0px),34px)}}

@media(max-width:760px){body.chat-thread-open #app{bottom:auto;overflow:hidden;padding:calc(var(--chat-header-height,78px) + 12px) 14px calc(var(--chat-nav-space,84px) + 12px)!important}}

.lobby-leave-row{display:flex;justify-content:center;margin:24px auto 12px;width:100%;text-align:center}.lobby-leave-row #leave-room{min-height:54px;min-width:260px;max-width:100%;padding:12px 28px;font:600 22px/1.2 Fredoka,sans-serif;border-radius:16px}

/* Profile photos keep the existing avatar shapes and fallback initials. */
.profile-photo{display:block;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:inherit;overflow:hidden}.ranking-avatar:has(.profile-photo),.avatar:has(.profile-photo),.profile-avatar:has(.profile-photo),.mobile-profile-chip>span:has(.profile-photo){padding:0;overflow:hidden}.profile-photo-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:20px 0 10px}.profile-photo-actions .button{font-size:16px;min-height:42px}.profile-photo-note{color:#786386;font-size:12px;line-height:1.6;max-width:380px;margin:0 auto 20px}.profile-photo-dialog{max-width:440px}.profile-photo-dialog>p{font-size:14px;color:#786386;margin:12px 0 20px;line-height:1.6}.profile-photo-dialog canvas{display:block;width:200px;height:200px;max-width:100%;margin:0 auto 22px;border:3px solid #291b41;border-radius:24px;box-shadow:4px 4px 0 #291b41}.photo-zoom-label{display:grid;gap:10px;font:600 17px Fredoka,sans-serif;color:#5930ad;margin:18px 0}.photo-zoom-label input{width:100%;accent-color:#7d2adb;min-height:30px}.profile-photo-dialog .actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px}.profile-photo-dialog .actions .button{font-size:17px;min-height:44px}.profile-photo-dialog .form-error:empty{display:none}

.community-consent{font-size:13px;line-height:1.6;color:#59357c}.community-consent input{width:19px;height:19px;vertical-align:middle;margin:0 6px 0 0;accent-color:#7d2adb}.community-consent a{text-decoration:underline;text-underline-offset:3px}.profile-consent{grid-column:1/-1}.community-terms-dialog p{font-size:14px;line-height:1.6;margin:12px 0}.community-terms-dialog .actions{margin-top:20px;display:flex;gap:12px;justify-content:space-between}.photo-report-dialog label{display:block;font-size:14px;margin:14px 0}.photo-report-dialog select,.photo-report-dialog textarea{display:block;width:100%;font-size:16px;border:2px solid #291b41;border-radius:10px;padding:10px;margin-top:8px}.photo-report-dialog .actions{display:flex;gap:10px;justify-content:space-between}.photo-block-alone{margin-top:18px}.profile-photo[role=button]{cursor:pointer}.profile-photo[role=button]:focus-visible{outline:3px solid #ffdc45;outline-offset:-5px}.admin-photo-proof{display:block;max-width:220px;width:100%;border:3px solid #291b41;border-radius:18px;margin:16px 0}

.player-avatar-trigger{display:grid;place-items:center;width:100%;height:100%;border-radius:inherit;overflow:hidden}.player-avatar-trigger[role=button]{cursor:pointer}.player-avatar-trigger[role=button]:focus-visible{outline:3px solid #ffdc45;outline-offset:-5px}

/* Room forms live in the native modal top layer, outside the scrolling app pane. */
@media(max-width:760px){#app .home-mode-panel>.mode-grid{display:none!important}}
.home-room-dialog{position:fixed;inset:auto 0 auto;width:540px;max-width:calc(100% - 28px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:0 auto;padding:0;border:3px solid #291b41;border-radius:24px;background:#fffcf2;color:#291b41;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 7px 0 #291b41,0 18px 50px #1d103d66;scroll-padding-block:16px}
.home-room-dialog::backdrop{background:#1d103dbd}
.home-room-dialog>.mode-grid{display:block!important;position:relative!important;inset:auto!important;width:100%;max-height:none;margin:0;padding:0;overflow:visible;border-radius:20px}
.home-room-dialog .mode-card{border:0;box-shadow:none;border-radius:20px;min-width:0;background:#fffcf2}
.home-room-dialog .mode-card h2{padding-right:44px}
.home-room-dialog .mobile-form-close{position:sticky;top:0;right:auto;display:flex;justify-content:flex-end;height:0;padding:0 12px;transform:translateY(12px);z-index:3;pointer-events:none}
.home-room-dialog .mobile-form-close>button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:2px solid #291b41;border-radius:12px;background:#ffdc45;color:#291b41;font:500 28px/1 Fredoka,sans-serif;pointer-events:auto}
.home-room-dialog .home-popup-error{margin:0 0 14px;padding:10px 12px;border:2px solid #aa204b;border-radius:10px;background:#ffe9ee;color:#8a193d;font-size:14px;line-height:1.5}
.home-form-open{overflow:hidden}
@media(max-width:760px){.home-room-dialog .mode-card{padding:24px 20px!important}.home-room-dialog .mode-card h2{font-size:29px}.home-room-dialog .field input,.home-room-dialog .field select{font-size:16px!important}.home-room-dialog .mode-card form{margin-top:20px}}

/* Symmetric SVG keeps the close icon centred independently of font metrics. */
.home-room-dialog .mobile-form-close>button{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;font-size:0;line-height:0}
.home-room-dialog .mobile-form-close>button::-moz-focus-inner{padding:0;border:0}.home-room-dialog [data-home-close] svg{display:block;width:22px;height:22px;flex:0 0 22px;margin:0}

/* Keep first-time registration visible in both profile layouts. */
.button.profile-create{background:#ffdc45;color:#291b41;border-color:#291b41;text-shadow:none}.button.profile-create:hover{background:#ffe875}.button.profile-create[aria-pressed="true"]{outline:3px solid #7d2adb;outline-offset:3px}

.photo-file-label{display:block;font:600 17px Fredoka,sans-serif;margin-bottom:10px}.photo-file-input{display:block;box-sizing:border-box;width:100%;min-height:50px;padding:8px;background:#f0e6ff;border:2px solid #291b41;border-radius:12px;font:400 14px Fredoka,sans-serif;color:#291b41}.photo-file-input::file-selector-button{padding:10px 12px;margin-right:10px;background:#7d2adb;color:#fff;border:0;border-radius:8px;font:600 15px Fredoka,sans-serif;cursor:pointer}.photo-selection-status{font:400 14px/1.5 Fredoka,sans-serif;color:#5930ad;margin:12px 0 18px}.profile-photo-dialog [data-photo-preview]{margin-top:18px}.profile-photo-dialog .form-error{font-size:14px;line-height:1.5}
