﻿/* App shell and social views. Desktop keeps its existing navigation. */
.mobile-home-title,.mobile-home-subtitle,.mobile-profile-chip,.mobile-rooms-label,.room-size-tabs,.room-symbol,.mobile-form-close,.app-bottom-nav,.ranking-title-icon{display:none}.friend-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;border:2px solid #5930ad;border-radius:10px;background:#efe5ff;color:#5930ad;min-height:34px;padding:5px 9px;font:600 13px Fredoka,sans-serif;cursor:pointer}.friend-action svg{width:21px;height:21px}.friend-action.is-compact{width:30px;min-height:30px;padding:4px;border-radius:9px}.friend-action:disabled{cursor:default;opacity:.6}.friend-action.is-friend{background:#d7f3e3;color:#286c49;border-color:#5a9376}.ranking-player-heading{display:flex;align-items:center;gap:7px;justify-content:space-between}.ranking-player-heading h3{min-width:0;flex:1}.quiz-leaderboard .friend-action{width:25px;min-height:25px;padding:3px;margin-left:2px}.lobby-player .friend-action{margin-left:auto}.social-heading h1{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.social-heading h1>svg{width:42px;height:42px;color:#ffd447;flex-shrink:0}.friends-hub,.profile-page,.social-empty{max-width:850px;margin-left:auto;margin-right:auto}.friend-search{display:flex;align-items:center;gap:12px;padding:10px 14px;border:3px solid #291b41;background:#fffcf2;border-radius:18px;box-shadow:0 4px 0 #291b41;margin-bottom:22px}.friend-search>svg{width:28px;height:28px;flex-shrink:0}.friend-search input{min-width:0;width:100%;padding:8px 0;background:none;border:0;outline:0;font:500 19px Fredoka,sans-serif}.friend-search>button{display:grid;place-items:center;border:0;border-radius:10px;background:#ffdc45;min-width:38px;min-height:38px;color:#291b41}.friend-search>button svg{width:23px;height:23px}.friend-search-results{padding:20px;margin-bottom:20px}.friend-search-results h2{font:600 22px Fredoka,sans-serif}.social-icon-button{border:0;background:none;width:35px;height:35px;color:#5930ad}.social-icon-button svg{width:24px;height:24px}.friends-tabs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 20px}.friends-tabs>button{border:3px solid #291b41;border-radius:15px;background:#fffcf2;color:#291b41;box-shadow:0 4px 0 #291b41;min-height:54px;font:600 23px Fredoka,sans-serif;display:flex;align-items:center;justify-content:center;gap:8px}.friends-tabs>button[aria-pressed=true]{background:#ffdc45}.friends-tabs b,.friends-tabs small{display:grid;place-items:center;min-width:26px;height:26px;border:2px solid #291b41;background:#ffdc45;border-radius:50%;font:600 15px Fredoka,sans-serif}.friends-tabs small{background:#fffaf0}.friend-list,.friend-requests{display:grid;gap:16px}.friend-card{position:relative;display:flex;gap:14px;align-items:center;padding:18px 20px}.friend-card-name{min-width:0;flex:1}.friend-card h2,.request-card h2{font:600 23px/1.2 Fredoka,sans-serif;margin:0 0 5px;overflow-wrap:anywhere}.friend-presence{display:flex;gap:6px;align-items:center;font-size:13px;color:#458143;line-height:1.4}.friend-presence i{width:9px;height:9px;background:#62c52b;border-radius:50%;flex-shrink:0}.friend-presence.playing,.friend-presence.waiting{color:#7e49b9}.friend-presence.playing i,.friend-presence.waiting i{background:#9e70de}.friend-presence.offline{color:#8a7f97}.friend-presence.offline i{background:#a89cb5}.friend-menu{position:absolute;right:6px;top:2px}.friend-menu>summary{list-style:none;cursor:pointer;font-size:18px;line-height:1;width:26px;text-align:center;color:#786386}.friend-menu>summary::-webkit-details-marker{display:none}.friend-menu>button{position:absolute;right:0;top:23px;z-index:3;white-space:nowrap;padding:10px 14px;border:2px solid #291b41;border-radius:10px;background:#fffaf0;color:#9c244c;font-weight:700;box-shadow:0 3px 0 #291b41}.social-person{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #e4d9f0}.social-person:first-of-type{border-top:0}.social-person>div{min-width:0;flex:1}.social-person h3{font:600 19px Fredoka,sans-serif;margin:0 0 4px;overflow-wrap:anywhere}.social-person small{font-size:11px;color:#786386}.social-empty{padding:28px;text-align:center;line-height:1.6}.social-empty>svg{width:70px;height:70px;color:#7847be;margin-bottom:12px}.social-empty h2{font:600 26px Fredoka,sans-serif;color:#5930ad;margin:0 0 12px}.social-empty p{color:#786386;font-size:14px;margin-bottom:18px}.social-empty .button{display:inline-flex}.request-card{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:20px}.request-card>div{min-width:0}.request-card p{font-size:13px;color:#786386;overflow-wrap:anywhere}.request-card .actions{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap}.sent-requests{padding:20px;margin-top:10px}.sent-requests>h2{font:600 23px Fredoka,sans-serif;margin-bottom:10px}.friends-callout{margin-top:25px;text-align:center;background:#5930ad;color:#fffaf0;font:600 23px/1.35 Fredoka,sans-serif;padding:20px;border:2px solid #291b41;border-radius:20px;box-shadow:0 4px 0 #291b41}.profile-score-card{padding:28px;text-align:center;margin:24px 0}.profile-avatar{display:grid;place-items:center;background:#ffdc45;border:3px solid #291b41;border-radius:24px;width:86px;height:86px;font:600 52px Fredoka,sans-serif;margin:0 auto 12px;box-shadow:4px 4px 0 #291b41}.profile-score-card h2{font:600 30px Fredoka,sans-serif;overflow-wrap:anywhere;margin:12px 0}.profile-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.profile-stat-grid b{font:600 31px Fredoka,sans-serif;color:#5930ad;overflow-wrap:anywhere;display:block}.profile-stat-grid span{display:block;font-size:12px;color:#786386}.profile-score-card .actions{justify-content:center;flex-wrap:wrap}.profile-links{padding:24px;margin-top:22px}.profile-links h2{font:600 25px Fredoka,sans-serif;color:#5930ad;margin-bottom:15px}.profile-links>a{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e1d4ef;padding:15px 0;font:500 18px Fredoka,sans-serif;color:#5930ad;text-decoration:none}.profile-links>small{display:block;text-align:center;font-size:10px;color:#786386;padding-top:20px}.friend-invite-dialog select{font-size:16px}.home-form-scrim{position:fixed;inset:0;border:0;background:#1d103dbf;z-index:105}.profile-page .community-profile{max-width:none}.profile-page .community-profile .actions{gap:10px}.profile-page .community-profile .actions>a[href="#profile"]{display:none}
@media(max-width:760px){
 :root{--app-safe-bottom:0px;--app-nav-height:calc(84px + var(--app-safe-bottom))}body{padding-bottom:var(--app-nav-height)}body[data-page=game]{padding-bottom:0}.header{position:sticky!important;top:0;z-index:65;min-height:78px!important;height:78px;padding:10px 16px!important;border-bottom:3px solid #291b41!important;box-shadow:0 4px 0 #ffffff35}.header .brand img{width:180px!important;max-height:58px}.header .mobile-menu,.header nav{display:none!important}.header-audio{width:44px!important;height:44px!important;min-width:44px!important;margin-left:auto}.site-footer,.game-guide{display:none!important}.app-bottom-nav{display:flex;position:relative;inset:auto;margin:0;width:100%;max-width:none;height:var(--app-nav-height);min-height:0;max-height:var(--app-nav-height);order:0;z-index:75;align-items:stretch;justify-content:space-around;gap:2px;padding:5px 8px calc(7px + var(--app-safe-bottom));background:#fffcf2;border:3px solid #291b41;border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -3px 0 #291b4140}.app-bottom-nav>a{min-width:0;flex:1;display:flex;justify-content:center;align-items:stretch;color:#291b41;text-decoration:none}.app-bottom-nav>a>span{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:65px;min-width:0;width:100%;padding:6px 2px;border-radius:17px}.app-bottom-nav>a[aria-current=page]>span{background:#ffdc45}.app-bottom-nav svg{width:27px;height:27px}.app-bottom-nav small{font:600 12px/1 Fredoka,sans-serif;white-space:nowrap}.app-nav-badge{position:absolute;top:0;right:2px;background:#ff7651;color:#291b41;border:2px solid #291b41;border-radius:20px;min-width:21px;height:21px;display:grid;place-items:center;font:700 10px 'DM Sans',sans-serif}
 body[data-page=home] #app{padding-top:20px!important}.home-heading .eyebrow,.desktop-home-title,.desktop-home-copy,body[data-page=home]>.community-profile,body[data-page=home] #app>.community-profile,.desktop-rooms-label{display:none!important}.mobile-home-title,.mobile-rooms-label{display:block}.home-heading{position:static!important;min-height:168px!important;padding-right:140px!important;margin-bottom:18px!important}.home-heading h1{font-size:31px!important;line-height:1.12!important;margin:0!important;overflow-wrap:anywhere}.mobile-home-title b{color:#ffdc45;font:inherit}.home-heading .mobile-home-subtitle{display:block!important;font:600 18px/1.25 Fredoka,sans-serif;color:#fffaf0;margin:10px 0 14px!important}.mobile-profile-chip{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-width:0;border:3px solid #291b41;border-radius:17px;background:#fffcf2;box-shadow:0 4px 0 #291b41;color:#291b41;text-decoration:none;padding:4px 12px 4px 5px;font:600 19px Fredoka,sans-serif;min-height:43px}.mobile-profile-chip>span{display:grid;place-items:center;background:#ffdc45;border:2px solid #291b41;border-radius:11px;width:32px;height:32px;flex-shrink:0}.mobile-profile-chip>b{font:inherit;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.home-wheel-panel{pointer-events:none}.home-wheel-panel .quiz-wheel-stage{width:140px!important;height:140px!important}.home-wheel-panel .quiz-pointer,.home-wheel-panel .wheel-streaks,.home-wheel-panel .quiz-wheel-center{display:none!important}.home-wheel-panel .quiz-wheel>circle:last-child{fill:#7540ce}body[data-page=home] .home-wheel-panel{top:22px!important;right:11px!important;width:140px!important;height:140px!important}.public-rooms{margin-bottom:17px!important}.public-rooms>.community-heading{margin-bottom:12px!important}.public-rooms>.community-heading .eyebrow{display:none}.public-rooms>.community-heading h2{font-size:29px!important;line-height:1.1;margin:0!important;color:#ffdc45;-webkit-text-stroke:3px #291b41;paint-order:stroke fill;filter:drop-shadow(0 2px 0 #291b41)}.public-rooms>.community-heading p{font:500 15px/1.3 Fredoka,sans-serif;margin:7px 0 0!important}.room-size-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:15px}.room-size-tabs>button{font:600 27px/1 Fredoka,sans-serif;color:#291b41;min-height:48px;border:3px solid #291b41;border-radius:15px;background:#fffcf2;box-shadow:0 4px 0 #291b41}.room-size-tabs>button[aria-pressed=true]{background:#ffdc45}.public-room-list{display:flex!important;position:relative;gap:12px;margin:0!important;padding:0 0 7px!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}.public-room-list::-webkit-scrollbar{display:none}.public-room-list>.public-room{flex:0 0 100%;width:100%;display:grid;grid-template-columns:57px minmax(0,1fr);grid-template-rows:auto auto auto;gap:4px 13px;padding:17px 19px!important;scroll-snap-align:start;scroll-snap-stop:always;border-radius:23px!important;min-height:164px;align-items:center;text-align:left;box-sizing:border-box;margin-bottom:3px}.public-room .room-capacity,.public-room-note{display:none}.room-symbol{display:grid;place-items:center;grid-column:1;grid-row:1/3;width:57px;height:57px;border:3px solid #291b41;border-radius:18px;background:#ffdc45;color:#291b41;box-shadow:2px 3px 0 #291b41}.room-symbol svg{width:38px;height:38px}.public-room h3{grid-column:2;grid-row:1;font:600 26px/1.15 Fredoka,sans-serif!important;margin:0!important;overflow-wrap:anywhere}.public-room p{grid-column:2;grid-row:2;font:500 18px Fredoka,sans-serif!important;margin:0!important}.public-room .button{grid-column:1/-1;grid-row:3;width:100%;text-align:center;font:600 22px Fredoka,sans-serif!important;min-height:45px;padding:8px 10px!important;margin:10px 0 0!important}.home-playground{gap:0!important}.home-mode-panel .mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0!important}.home-mode-panel .mode-tabs>button{font:600 18px/1.15 Fredoka,sans-serif!important;min-height:48px!important;padding:8px!important;white-space:nowrap;border-width:3px;box-shadow:0 4px 0 #291b41}.home-mode-panel .mode-tabs>button:first-child{background:#ffdc45!important;color:#291b41!important}.home-mode-panel .mode-tabs>button:last-child{background:#ffab88!important;color:#291b41!important}.home-mode-panel .mode-grid{display:none!important}.home-mode-panel.mobile-form-open .mode-grid{display:block!important;position:fixed;left:14px;right:14px;bottom:14px;max-height:calc(100vh - 70px);max-height:calc(100dvh - 70px);width:auto;margin:0;overflow:auto;overscroll-behavior:contain;z-index:110;border-radius:20px}.mobile-form-close{display:flex;position:absolute;top:12px;right:12px;z-index:2}.mobile-form-close>button{width:36px;height:36px;border:2px solid #291b41;border-radius:11px;color:#291b41;background:#ffdc45;font-size:27px;line-height:1}.mobile-form-open .mode-card h2{padding-right:35px}.home-form-open{overflow:hidden}.home-resume{margin-top:14px!important;padding:13px!important;gap:8px!important;font-size:12px}.home-resume>a{font-size:14px!important}.mode-card .field:has(input[readonly]){display:none}
 body[data-page=leaderboard] .page-heading .eyebrow,body[data-page=leaderboard] .page-heading>p{display:none}.ranking-title-icon{display:inline-flex;flex-shrink:0;width:38px;height:38px;color:#ffdc45;margin-right:8px;vertical-align:middle;transform:rotate(-8deg)}.ranking-title-icon svg{width:100%;height:100%}.ranking-banner{display:none}.global-podium{padding-top:27px;gap:7px}.global-podium-card{padding:22px 5px 0;min-height:211px}.global-podium-card.podium-slot-0{padding-top:31px;min-height:242px}.global-podium-card>.ranking-avatar{width:48px;height:48px;font-size:30px}.podium-slot-0>.ranking-avatar{width:58px;height:58px;font-size:36px}.global-podium-card h3{font-size:17px;line-height:1.15;margin:12px 0 8px}.podium-points{font-size:35px}.podium-points small{font-size:10px;margin:4px 0 12px}.podium-wins,.global-podium-card .ranking-you{display:none}.podium-place-label{font-size:15px;padding:12px 2px}.podium-slot-0 .podium-place-label{padding:16px 2px}.ranking-personal{margin:23px 0 0;padding:15px 12px;gap:10px}.ranking-personal .ranking-stats{display:none}.ranking-personal h3{font-size:23px;margin:6px 0 0}.ranking-personal>strong{font-size:33px}.ranking-personal .eyebrow{font-size:8px}.ranking-personal>strong small{font-size:10px}.ranking-board{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin-top:18px!important}.ranking-board-heading,.ranking-bottom{display:none}.ranking-row{border:3px solid #291b41;box-shadow:0 3px 0 #291b41;background:#fffcf2;padding:12px 10px;grid-template-columns:21px 36px minmax(0,1fr) auto;gap:8px;border-radius:18px;min-height:66px}.ranking-row .ranking-stats{display:none}.ranking-player h3{margin:0;font-size:17px}.ranking-row .ranking-total{font-size:27px}.ranking-row .ranking-total small{display:inline;font:500 10px Fredoka,sans-serif;margin-left:3px}.ranking-player-heading{gap:4px}.ranking-player .friend-action.is-compact{width:26px;height:26px;min-height:26px;padding:3px}.ranking-player .friend-action svg{width:18px;height:18px}.ranking-row .ranking-position{font-size:21px}.ranking-no-entries{background:#fffcf2;border:3px solid #291b41;border-radius:18px;padding:18px}.ranking-empty{margin:25px 0 0}
 .social-heading{margin-bottom:20px!important}.social-heading h1{font-size:29px!important;display:block;line-height:1.15!important}.social-heading h1>svg{width:36px;height:36px;vertical-align:middle;margin-right:8px}.social-heading>p{display:none}.friend-search{min-height:51px;margin-bottom:17px;padding:7px 12px;gap:9px}.friend-search input{font-size:18px;padding:5px 0}.friend-search>svg{width:25px;height:25px}.friend-search>button{min-width:32px;min-height:32px}.friends-tabs{gap:7px;margin-bottom:17px}.friends-tabs>button{min-height:51px;font-size:23px}.friends-tabs small{display:none}.friend-list,.friend-requests{gap:14px}.friend-card{padding:15px 16px;gap:12px;min-height:87px;border-radius:21px}.friend-card>.ranking-avatar{width:47px;height:47px;border-radius:16px;font-size:29px}.friend-card h2{font-size:22px;margin:0 0 5px}.friend-presence{font:500 15px Fredoka,sans-serif}.friend-card>.button{font:600 20px Fredoka,sans-serif;padding:7px 12px;min-height:38px;border-width:2px}.friend-menu{right:7px;top:1px}.friends-callout{font-size:23px;padding:18px 14px;margin-top:22px;border-radius:20px}.social-empty{padding:25px 18px}.social-empty h2{font-size:25px}.social-empty p{font-size:13px}.friend-search-results{padding:15px}.friend-search-results h2{font-size:21px}.social-person{gap:8px;flex-wrap:wrap}.social-person h3{font-size:19px}.request-card{padding:18px 15px}.request-card h2{font-size:21px}.request-card .actions .button{font-size:17px;padding:8px 11px}.social-person .button{font-size:14px;min-height:36px}.friend-invite-dialog{width:calc(100% - 28px)}.friend-invite-dialog .actions{flex-wrap:wrap}.profile-page .community-profile .actions{gap:8px}.profile-page .community-profile .actions>a[href="#friends"]{display:none}.profile-score-card{padding:23px 17px}.profile-stat-grid{gap:7px}.profile-stat-grid b{font-size:27px}.profile-stat-grid span{font-size:10px}.profile-links{padding:22px}.profile-page .community-profile.is-signed{display:block}.profile-page .community-profile.is-signed h2{margin-bottom:15px}.profile-page .community-profile.is-signed .actions>a[href="#leaderboard"]{display:none}.profile-page .community-profile.is-signed .eyebrow{display:none}.profile-score-card .actions .button{font-size:17px;min-height:43px}
}
@media(max-width:360px){.home-heading{padding-right:126px!important;min-height:163px!important}.home-heading h1{font-size:27px!important}.home-heading .mobile-home-subtitle{font-size:16px}.mobile-profile-chip{font-size:16px;gap:6px;padding-right:8px}.mobile-profile-chip>span{width:28px;height:28px}.home-wheel-panel .quiz-wheel-stage{width:125px!important;height:125px!important}body[data-page=home] .home-wheel-panel{width:125px!important;height:125px!important;right:9px!important}.public-rooms>.community-heading h2{font-size:26px!important}.public-rooms>.community-heading p{font-size:14px}.public-room-list>.public-room{padding:15px!important;grid-template-columns:48px minmax(0,1fr);gap:4px 10px}.room-symbol{width:48px;height:48px;border-radius:15px}.room-symbol svg{width:32px;height:32px}.public-room h3{font-size:23px!important}.home-mode-panel .mode-tabs>button{font-size:16px!important}.app-bottom-nav{padding-left:5px;padding-right:5px}.app-bottom-nav small{font-size:11px}.ranking-row{grid-template-columns:18px 32px minmax(0,1fr) auto;gap:5px;padding:10px 6px}.ranking-row>.ranking-avatar{width:32px;height:32px}.ranking-player h3{font-size:15px}.ranking-row .ranking-total{font-size:23px}.ranking-row .ranking-total small{display:block;margin:3px 0 0}.global-podium-card h3{font-size:15px}.podium-points{font-size:30px}.ranking-personal h3{font-size:20px}.ranking-personal>strong{font-size:27px}.friend-card{padding:15px 12px;gap:8px}.friend-card>.ranking-avatar{width:39px;height:39px;font-size:25px;border-radius:13px}.friend-card h2{font-size:19px}.friend-card>.button{font-size:17px;padding:7px 9px}.social-heading h1{font-size:27px!important}}
@media(max-width:760px){body[data-page=home] .home-heading h1{font-size:38px!important}body[data-page=home] .home-heading .mobile-home-subtitle{font-size:20px!important}.app-bottom-nav>a{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.app-bottom-nav>a>span{min-height:0;height:100%}.app-bottom-nav svg{width:31px;height:31px}.app-bottom-nav small{font-size:13px}.ranking-player h3 small{display:none}.friend-card>.button{background:#ffab88!important;color:#291b41!important;border-color:#291b41!important;box-shadow:0 3px 0 #291b41!important}.friend-card>.button:disabled{opacity:.65;box-shadow:none!important}.ranking-personal>strong{max-width:42%;overflow-wrap:anywhere}}
@media(max-width:360px){body[data-page=home] .home-heading h1{font-size:32px!important}body[data-page=home] .home-heading .mobile-home-subtitle{font-size:17px!important}.app-bottom-nav small{font-size:12px}}
.desktop-home-title{color:#fffaf0!important}.desktop-home-title>span{color:#ffd447}
@media(max-width:760px){.home-heading .mobile-home-title{color:#fffaf0!important}.home-heading .mobile-home-title b{color:#ffdc45}.mobile-profile-chip{width:180px;font-size:22px;min-height:48px}.mobile-profile-chip>span{width:36px;height:36px}}
@media(max-width:360px){.mobile-profile-chip{font-size:18px;min-height:44px}.mobile-profile-chip>span{width:30px;height:30px}}

/* The native fixed edge follows browser chrome without scroll-driven offsets. */
#app-navigation{position:fixed;inset:auto 0 0;z-index:75;margin:0;padding:0;width:100%;transform:none}

/* App shell: only the centre pane scrolls; document and bars never scroll. */
@media(max-width:760px){
 #game-screen{display:block!important;position:fixed;inset:0;overflow:hidden}
 html{height:100%;overflow:hidden;overscroll-behavior:none}
 body{position:fixed;inset:0;width:100%;height:auto;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden;overscroll-behavior:none}
 .header{position:fixed!important;inset:0 0 auto;z-index:65;width:100%;margin:0!important}
 body[data-page] #app{position:fixed;inset:var(--shell-header-height,78px) 0 var(--shell-nav-space,var(--app-nav-height));width:100%;height:auto;min-height:0!important;max-width:none;margin:0!important;padding:16px 14px 24px!important;overflow-x:hidden;overflow-y:scroll;overscroll-behavior:contain;scroll-padding-block:14px;will-change:scroll-position;-webkit-overflow-scrolling:touch}
 body[data-page=admin] #app{bottom:0}
 #app-navigation{position:fixed;inset:auto 0 0;z-index:75}
}

@media(max-width:767px){.mobile-profile-chip.is-login{background:#ffdc45;color:#291b41;justify-content:center;font-size:24px;min-height:50px;gap:10px}.mobile-profile-chip.is-login>b{overflow:visible;text-overflow:clip}.mobile-profile-chip.is-login>span{background:#fffcf2}}

.answer-vowel-error{margin:0;color:#8b172b;font:600 16px/1.4 Fredoka,sans-serif}.answer-vowel-error.has-vowel-malus{min-height:1.4em;margin:6px 0}.quiz-answer-form input[aria-invalid="true"]{border-color:#a51e36}

#toast.toast-top{top:calc(var(--chat-viewport-top,0px) + var(--shell-header-height,78px) + 12px);bottom:auto;transform:translate(-50%,-12px);pointer-events:none}#toast.toast-top.visible{transform:translate(-50%,0)}

.author-profile{max-width:850px;margin:24px auto;display:grid;gap:24px}.author-hub,.author-proposals,.badge-cabinet,.author-reports{padding:26px}.author-heading{display:flex;align-items:center;gap:16px;margin-bottom:18px}.author-heading h2{font:600 30px/1.1 Fredoka,sans-serif;margin:5px 0;color:#5930ad}.author-symbol{display:grid;place-items:center;flex-shrink:0;width:64px;height:64px;font-size:36px;background:#ffdc45;border:3px solid #291b41;border-radius:19px;box-shadow:0 5px 0 #291b41;transform:rotate(-5deg)}.author-hub>p,.badge-cabinet>p{font-size:14px;line-height:1.7;margin-bottom:18px}.author-hub form{margin-top:25px}.author-hub label,.author-review label,.author-report-dialog label{display:grid;gap:8px;font-size:14px;font-weight:700;margin:16px 0}.author-hub input:not([type=checkbox]),.author-hub select,.author-review input,.author-review select,.author-review textarea,.author-report-dialog textarea{display:block;width:100%;min-width:0;border:2px solid #bba1d4;background:white;border-radius:12px;padding:12px;color:#291b41;font:500 17px Fredoka,sans-serif}.author-fields{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:14px}.proposal-answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.proposal-answers b{color:#5930ad}.author-hub .author-consent{display:flex;align-items:flex-start;font-size:12px;line-height:1.6}.author-consent input{margin-top:4px;flex-shrink:0}.author-note{font-size:12px;line-height:1.6;color:#70577c}.proposal-summary{display:flex;gap:15px;padding:18px 0;border-top:2px dashed #ddd0e8}.proposal-summary>div{min-width:0}.proposal-letter{display:grid;place-items:center;flex-shrink:0;width:45px;height:45px;border:2px solid #291b41;border-radius:13px;background:#ffdc45;font:600 27px Fredoka,sans-serif}.proposal-summary h3{font:600 20px Fredoka,sans-serif;margin:10px 0}.proposal-summary small{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.proposal-status{display:inline-block;background:#eee4fb;color:#5930ad;border-radius:8px;padding:5px 9px;font-size:11px;font-weight:700}.proposal-status.approved{background:#d9f2df;color:#215e38}.proposal-status.revision{background:#fff0b8;color:#6b4810}.proposal-status.rejected{background:#fbe0e5;color:#8b2339}.proposal-review-note{padding:12px;border-left:4px solid #ffdc45;font-size:13px;line-height:1.6;background:#fff7da}.badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.badge-group-title{font:600 24px Fredoka,sans-serif;margin:27px 0 18px}.badge-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;border:3px solid #291b41;border-radius:20px;background:#fffaf0;box-shadow:0 5px 0 #291b41;padding:20px 12px;color:#291b41;cursor:pointer;min-width:0}.badge-card:disabled{cursor:default;opacity:1}.badge-card.locked{background:#f0ebf4;border-color:#aa9ab6;box-shadow:0 5px 0 #b9a9c6;color:#776482}.badge-medal{display:grid;place-items:center;width:74px;height:74px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff8ba,#ffd447 65%,#ff9c35);border:3px solid #5930ad;box-shadow:0 4px 0 #5930ad;font-size:39px}.locked .badge-medal{filter:grayscale(1);opacity:.65}.badge-card>b{font:600 20px/1.15 Fredoka,sans-serif}.badge-card>small{font-size:12px;line-height:1.5;flex:1}.badge-card.selected{background:#fff0aa;outline:3px solid #9c5ae4;outline-offset:3px}.badge-progress{height:9px;background:#ddd0eb;width:100%;border-radius:9px;overflow:hidden}.badge-progress i{display:block;background:#8541d6;height:100%;border-radius:inherit}.badge-count{font-size:12px;font-weight:700}.nickname-badge{display:inline-grid;place-items:center;font-size:.8em;vertical-align:middle;margin-left:6px;min-width:1.5em;height:1.5em;background:#ffdc45;border:1px solid #5930ad;border-radius:50%;line-height:1}.author-admin{display:grid;gap:18px}.author-review{padding:20px}.author-review summary{display:flex;gap:14px;align-items:center;cursor:pointer;list-style:none}.author-review summary>span:nth-child(2){flex:1;min-width:0}.author-review summary b{display:block;font:600 22px Fredoka,sans-serif;overflow-wrap:anywhere}.author-review summary small{display:block;margin-top:7px;font-size:12px}.author-review[open] summary{padding-bottom:18px;border-bottom:2px dashed #ddd0e8}.author-reports article{padding:16px 0;border-top:2px dashed #ddd0e8}.author-reports p{font-size:14px;line-height:1.6}.author-pagination{justify-content:center}.author-pagination span{font-size:13px}.report-question-link{display:block;margin:10px auto 0;font-size:11px!important;color:#786084!important}.author-report-dialog p{font-size:14px;line-height:1.5}
@media(max-width:760px){.author-profile{margin-top:20px;gap:20px}.author-hub,.author-proposals,.badge-cabinet,.author-reports{padding:21px 17px}.author-heading{gap:12px}.author-symbol{width:52px;height:52px;font-size:30px;border-radius:16px}.author-heading h2{font-size:27px}.author-heading .eyebrow{font-size:8px}.proposal-answers{grid-template-columns:1fr;gap:0}.proposal-answers label{margin:8px 0}.badge-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.badge-card{padding:17px 9px;gap:10px}.badge-card>b{font-size:19px}.badge-medal{width:64px;height:64px;font-size:34px}.badge-card>small{font-size:11px}.author-review{padding:17px}.author-review summary{flex-wrap:wrap}.author-review summary b{font-size:19px}.author-review .actions{display:grid;grid-template-columns:1fr}.author-fields{grid-template-columns:minmax(0,1fr) 80px;gap:10px}.author-proposals .section-title{flex-wrap:wrap;gap:10px}.author-proposals .section-title h2{font-size:25px}.author-consent{flex-wrap:wrap}.author-consent a{display:inline}.author-pagination{gap:8px}.author-pagination .button{font-size:13px}}

@media(min-width:1000px){.admin-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:760px){.admin-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Compact, live match standings; positions glide across the track after scoring. */
.match-ranking{display:none;position:relative;margin:0 0 22px;padding:9px;border:3px solid #291b41;border-radius:20px;background:#fffcf2;box-shadow:0 4px 0 #291b41;z-index:4}
.match-ranking ol{display:grid;grid-template-columns:repeat(var(--racers),minmax(0,1fr));gap:9px;margin:0;padding:0;list-style:none}
.match-racer{position:relative;min-width:0;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:5px 8px;padding:8px 10px;border:2px solid transparent;border-radius:13px;background:#f0e6ff;color:#291b41;text-align:center}
.match-racer.is-you{border-color:#7842c0;background:#ffe35b}.match-racer.has-left{opacity:.5}.match-place{font:600 14px Fredoka,sans-serif}.match-ranking .avatar{width:30px;height:30px;border:2px solid #291b41;border-radius:9px;font-size:20px;justify-self:center}.match-name{grid-column:1/-1;grid-row:2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:600 16px/1.15 Fredoka,sans-serif}.match-racer strong{font:600 23px/1 Fredoka,sans-serif;white-space:nowrap}.match-racer strong small{font-size:11px}.match-pass{position:absolute;right:0;top:-10px;padding:3px 5px;border-radius:9px;background:#6634b0;color:#fff;font:600 12px Fredoka,sans-serif;pointer-events:none}.match-pass:empty{display:none}.match-racer.is-overtaking{z-index:2;border-color:#6634b0;box-shadow:0 0 0 2px #ffdc45}
@media(max-width:760px){.match-ranking{display:block;position:sticky;top:0;margin:3px 0 12px;padding:5px;border-width:2px;border-radius:14px}.match-ranking ol{gap:3px}.match-racer{grid-template-columns:1fr auto;padding:5px 2px;gap:3px 1px;border-radius:9px}.match-place{font-size:10px;position:absolute;left:3px;top:3px}.match-ranking .avatar{width:24px;height:24px;font-size:17px;grid-column:1/-1;border-radius:7px}.match-name{font-size:12px;grid-row:2}.match-racer strong{grid-column:1/-1;font-size:19px}.match-racer strong small{font-size:9px}.match-pass{font-size:10px;right:-2px;top:-7px}}


/* Period leaderboards, player cards and moderated quick match reactions. */
.ranking-period-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:650px;margin:0 auto 13px}.ranking-period-tabs button{border:3px solid #291b41;border-radius:15px;box-shadow:0 4px 0 #291b41;background:#fffcf2;color:#291b41;font:600 22px Fredoka,sans-serif;min-height:50px;padding:8px;cursor:pointer}.ranking-period-tabs button[aria-pressed=true]{background:#ffdc45}.ranking-period-note{text-align:center;color:#fffaf0;font:500 15px Fredoka,sans-serif;margin:0 0 23px;text-shadow:0 2px 1px #291b41}.player-name-link{appearance:none;border:0;background:transparent;padding:0;font:inherit;color:inherit;text-align:inherit;cursor:pointer;max-width:100%;overflow-wrap:anywhere}.player-name-link:hover{color:#7034b4}.player-name-link:focus-visible{outline:3px solid #7b3cc7;outline-offset:3px;border-radius:4px}
.public-player-dialog{position:fixed;width:min(570px,calc(100% - 28px));max-height:85vh;max-height:85dvh;overflow-y:auto;padding:30px 25px;border:4px solid #291b41;border-radius:25px;background:#fffcf2;color:#291b41}.public-player-dialog::backdrop{background:#1b103dcc;backdrop-filter:blur(3px)}.public-player-close{position:absolute;right:12px;top:12px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:2px solid #291b41;border-radius:12px;background:#ffdc45;color:#291b41;font:600 30px/1 Fredoka,sans-serif;cursor:pointer}.public-player-close svg{display:block;width:22px;height:22px;pointer-events:none}.public-player-content{text-align:center}.public-player-content>.eyebrow{display:block;margin:12px 35px 20px}.public-player-avatar{display:grid!important;place-items:center;width:110px!important;height:110px!important;border:3px solid #291b41!important;border-radius:28px!important;margin:0 auto 17px;background:#dbc0ff;font:600 65px Fredoka,sans-serif;overflow:hidden}.public-player-content h2{font:600 34px Fredoka,sans-serif;overflow-wrap:anywhere;margin:12px 0}.public-player-featured{font:500 17px Fredoka,sans-serif;color:#6332aa}.public-player-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:19px 0;margin:18px 0;border-top:2px dashed #d8c8e5;border-bottom:2px dashed #d8c8e5}.public-player-stats b{display:block;color:#6332aa;font:600 29px Fredoka,sans-serif}.public-player-stats span{font-size:12px}.public-player-friend{display:flex;justify-content:center;margin:18px 0}.public-player-friend .friend-action{font:600 18px Fredoka,sans-serif;min-height:45px;padding:10px 17px;border-radius:13px}.public-player-content h3{font:600 23px Fredoka,sans-serif;margin:25px 0 17px}.public-player-content h3 small{background:#ffdc45;border-radius:50%;padding:3px 7px;font-size:16px}.public-player-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.public-player-badges article{padding:16px 10px;border:2px solid #ccb3e2;border-radius:16px;background:#f3eaff}.public-player-badges article>span{display:block;font-size:37px;margin-bottom:8px}.public-player-badges b{display:block;font:600 18px Fredoka,sans-serif}.public-player-badges small{display:block;font-size:11px;line-height:1.5;margin-top:7px}.public-player-badges>p{grid-column:1/-1;color:#786084;font-size:14px}.public-player-report{display:block;margin:25px auto 0;font-size:12px;color:#735b86}
.reaction-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 23px;padding:5px 8px;position:relative}.reaction-controls>span{font:500 14px Fredoka,sans-serif;color:#fffaf0}.reaction-controls button{display:grid;place-items:center;border:2px solid #291b41;border-radius:11px;background:#fffcf2;box-shadow:0 3px 0 #291b41;width:40px;height:35px;padding:0;font-size:22px;cursor:pointer}.reaction-controls button:disabled{opacity:.5;cursor:default}.reaction-cooldown{min-width:24px;font:500 12px Fredoka,sans-serif;color:#fffaf0}.match-bubble{position:absolute;z-index:8;top:-38px;left:50%;transform:translateX(-50%);display:block;min-width:130px;max-width:175px;width:max-content;padding:7px 9px;border:2px solid #291b41;border-radius:14px 14px 14px 3px;background:#fff5aa;color:#291b41;font:600 14px/1.2 Fredoka,sans-serif;box-shadow:0 3px 0 #291b41;pointer-events:none;white-space:normal;text-align:center}.match-bubble[hidden]{display:none}.match-racer:first-child .match-bubble{left:0;transform:none}.match-racer:last-child .match-bubble{left:auto;right:0;transform:none}.quiz-leaderboard li{position:relative}.quiz-leaderboard .match-bubble{top:-21px;left:auto;right:0;transform:none;max-width:180px}.match-racer:has(.match-bubble:not([hidden])){z-index:8}
@media(max-width:760px){.ranking-period-tabs{gap:7px;margin-top:4px}.ranking-period-tabs button{min-height:44px;font-size:18px;border-radius:13px;padding:6px 4px}.ranking-period-note{font-size:12px;margin-bottom:17px}.reaction-controls{gap:6px;margin-bottom:16px;padding:3px 0}.reaction-controls>span{font-size:11px}.reaction-controls button{width:32px;height:31px;font-size:20px;border-radius:9px}.reaction-cooldown{min-width:19px;font-size:10px}.match-bubble{font-size:12px;min-width:112px;max-width:135px;padding:6px}.public-player-dialog{padding:27px 17px;max-height:calc(100vh - 30px);max-height:calc(100dvh - 30px)}.public-player-stats b{font-size:25px}.public-player-stats span{font-size:11px}}

/* The mobile match dock is dedicated to the three malus shortcuts. */
@media(max-width:760px){.game-bottom-nav.malus-dock{flex-direction:column;gap:4px;padding:6px 12px calc(6px + env(safe-area-inset-bottom))}.malus-dock-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#291b41;font:500 12px Fredoka,sans-serif}.malus-dock-heading strong{font-size:15px}.malus-dock-heading>span{background:#eaddff;color:#54278f;border-radius:10px;padding:3px 8px}.malus-dock-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.game-bottom-nav.malus-dock button{min-width:0;min-height:53px;gap:2px;padding:3px 1px;border:2px solid #d5c0e9;border-radius:12px;background:#f2e9ff;color:#54278f}.game-bottom-nav.malus-dock button>img{width:34px;height:30px;object-fit:contain}.game-bottom-nav.malus-dock button>span{font:600 12px/1.1 Fredoka,sans-serif;height:auto;white-space:nowrap}.game-bottom-nav.malus-dock button[aria-pressed=true]{background:#ffdc45;border-color:#291b41;color:#291b41}.game-bottom-nav.malus-dock button:disabled{opacity:.5;cursor:default}.malus-dock-hint{font:500 10px/1.2 Fredoka,sans-serif;text-align:center;color:#786084;margin:1px 0 0}.app-panel.mobile-malus-picker{bottom:calc(var(--shell-nav-space,110px) + 7px);max-height:calc(var(--chat-viewport-height,100vh) - var(--shell-header-height,78px) - var(--shell-nav-space,110px) - 20px);max-height:calc(var(--chat-viewport-height,100dvh) - var(--shell-header-height,78px) - var(--shell-nav-space,110px) - 20px)}.mobile-malus-picker .panel-content{max-height:calc(var(--chat-viewport-height,100vh) - var(--shell-header-height,78px) - var(--shell-nav-space,110px) - 95px);max-height:calc(var(--chat-viewport-height,100dvh) - var(--shell-header-height,78px) - var(--shell-nav-space,110px) - 95px)}.malus-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font:600 19px Fredoka,sans-serif;color:#54278f}.malus-picker-heading .panel-close{display:grid!important;place-items:center;flex-shrink:0;width:38px;height:38px;padding:0;border:2px solid #291b41;border-radius:11px;background:#ffdc45;color:#291b41}.malus-picker-heading .panel-close svg{display:block;width:22px;height:22px}.quick-malus-preview{display:flex;align-items:center;gap:14px;padding:0 0 15px}.quick-malus-preview>img{width:64px;height:64px;object-fit:contain}.quick-malus-preview h2{font:600 26px/1.1 Fredoka,sans-serif;margin:0 0 6px;color:#54278f}.quick-malus-preview small{font-size:12px;color:#786084}.quick-malus-panel>h3{font:600 20px Fredoka,sans-serif;margin:0 0 12px}.quick-malus-panel .bonus-targets{gap:8px}.quick-malus-panel .bonus-target{min-height:54px!important}.quick-malus-panel .bonus-target b{font-size:17px!important}.quick-malus-panel .bonus-quick-hint{margin-top:13px}}
/* First-visit tutorial — mobile composition, with persistent skip and navigation. */
body.is-tutorial-open{overflow:hidden!important}
dialog.tutorial-dialog{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:14px 14px max(14px,env(safe-area-inset-bottom));border:0;border-radius:0;color:#291b41;background:#7040d2 url('/quiz-backdrop-mobile.svg') center/cover no-repeat;overflow:hidden;overscroll-behavior:contain;font-family:Fredoka,'Trebuchet MS',sans-serif}
dialog.tutorial-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:13px}
.tutorial-dialog::backdrop{background:#1d103cce;backdrop-filter:blur(5px)}
.tutorial-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:45px;padding-top:env(safe-area-inset-top)}
.tutorial-logo{display:block;width:172px;max-width:58%;height:auto;max-height:54px;object-fit:contain}
.tutorial-skip,.tutorial-back,.tutorial-next{appearance:none;border:3px solid #291b41;border-radius:17px;min-height:44px;padding:7px 17px;color:#291b41;background:#fffaf0;box-shadow:0 4px 0 #291b41;font:600 19px/1.1 Fredoka,sans-serif;cursor:pointer;touch-action:manipulation}
.tutorial-skip{background:#ffdc45;flex-shrink:0;min-width:76px}
.tutorial-body{display:grid;grid-template-rows:minmax(205px,1fr) auto;gap:13px;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:4px 3px 7px}
.tutorial-art{position:relative;min-width:0;min-height:205px;display:flex;align-items:center;justify-content:center}
.tutorial-copy{padding:18px 16px;border:3px solid #291b41;border-radius:23px;background:#fffcf2;box-shadow:0 5px 0 #291b41;text-align:center;align-self:end}
.tutorial-copy h1{font:600 clamp(24px,7vw,31px)/1.08 Fredoka,sans-serif;letter-spacing:-.6px;color:#291b41;margin:0 0 11px;overflow-wrap:normal}
.tutorial-copy h1:focus{outline:none}
.tutorial-copy p{font:500 16px/1.38 Fredoka,sans-serif;margin:0;color:#291b41}
.tutorial-footer{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px 10px;align-items:center;padding:0 3px 4px}
.tutorial-back{grid-row:2;grid-column:1;font-size:17px;padding:8px 12px;min-height:43px}
.tutorial-back:disabled{opacity:.52;cursor:default}
.tutorial-next{grid-row:2;grid-column:2;background:#7934d2;color:#ffdc45;border-color:#ffdc45;outline:2px solid #291b41;font-size:20px;min-height:43px}
.tutorial-progress{grid-row:1;grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:11px}
.tutorial-progress button{appearance:none;width:16px;height:16px;padding:0;border:2px solid #291b41;border-radius:50%;background:#fffcf2;cursor:pointer;box-shadow:0 2px 0 #291b41}
.tutorial-progress button[aria-current=step]{background:#ffdc45;transform:scale(1.16)}
.tutorial-dialog button:focus-visible{outline:3px solid #ffdc45;outline-offset:4px}
.tutorial-dialog .tutorial-skip:focus-visible{outline-color:#fffaf0}
.tutorial-replay{text-align:right;margin:0 0 20px}
.tutorial-wheel-scene,.tutorial-reward-scene,.tutorial-ranking-scene,.tutorial-chat-scene{position:relative;width:min(100%,420px);height:100%;max-height:410px;min-height:205px;margin:auto}
.tutorial-wheel-scene .quiz-wheel-stage{position:absolute!important;width:min(85%,300px)!important;max-width:300px!important;height:auto!important;max-height:none!important;right:0;top:2%;margin:0!important;padding:6px!important}
.tutorial-wheel-scene .quiz-wheel-caption{display:none!important}
.tutorial-wheel-scene .quiz-wheel-center strong{font-size:68px!important}
.tutorial-wheel-scene .quiz-pointer{width:30px;height:34px}
.tutorial-wheel-mascot{position:absolute;width:57%;height:78%;object-fit:contain;object-position:bottom;bottom:0;left:-1%;filter:drop-shadow(0 5px 0 #291b4140)}
.tutorial-letter-token{position:absolute;right:7%;bottom:2%;display:grid;place-items:center;width:66px;height:66px;border:4px solid #291b41;border-radius:50%;background:#ffdc45;box-shadow:inset 0 0 0 4px #fff8ce,0 4px 0 #291b41;color:#291b41;font:600 50px/1 Fredoka,sans-serif;transform:rotate(7deg)}
.tutorial-spin-arrow{position:absolute;top:0;left:5%;font:600 73px Fredoka,sans-serif;color:#ffdc45;-webkit-text-stroke:2px #291b41}
.tutorial-question-scene{width:min(100%,320px);max-height:390px;display:flex;flex-direction:column;gap:10px;padding-top:12px}
.tutorial-demo-question{position:relative;border:3px solid #291b41;border-radius:23px;background:#fffcf2;box-shadow:0 5px 0 #291b41;padding:16px}
.tutorial-demo-tokens{display:flex;align-items:center;justify-content:space-between;margin:-27px -3px 12px}
.tutorial-demo-tokens>span{display:grid;place-items:center;width:63px;height:63px;border:3px solid #291b41;border-radius:50%;background:#ffdc45;box-shadow:inset 0 0 0 3px #fff8bd;font:600 48px/1 Fredoka,sans-serif}
.tutorial-demo-tokens>b{display:block;padding:8px 12px;border:3px solid #291b41;border-radius:20px;background:#ff7651;color:#fffaf0;font:600 25px Fredoka,sans-serif;transform:rotate(5deg)}
.tutorial-demo-question h2{font:600 24px/1.12 Fredoka,sans-serif;text-align:center;margin:8px 0 14px;color:#291b41}
.tutorial-demo-answer{border:2px solid #291b41;border-radius:12px;background:#fff;padding:7px 12px;font:600 25px Fredoka,sans-serif}
.tutorial-demo-answer>span{color:#7934d2;animation:tutorial-caret 1s step-end infinite}
.tutorial-demo-send{margin-top:9px;padding:6px;border:2px solid #291b41;border-radius:13px;background:#ff7651;color:#fff;text-shadow:0 1px #291b4150;text-align:center;font:600 24px Fredoka,sans-serif;box-shadow:0 3px 0 #291b41}
.tutorial-demo-solutions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tutorial-demo-solutions>div{border:3px solid #291b41;border-radius:14px;background:#fffcf2;text-align:center;overflow:hidden;box-shadow:0 3px 0 #291b41}
.tutorial-demo-solutions b{display:block;font:600 31px/1.2 Fredoka,sans-serif}
.tutorial-demo-solutions span{display:block;background:#ffdc45;padding:4px 1px;font:600 14px Fredoka,sans-serif;white-space:nowrap}
.tutorial-demo-solutions>div:nth-child(2) span{background:#7934d2;color:#fff}.tutorial-demo-solutions>div:nth-child(3) span{background:#65d9ba}
.tutorial-reward-mascot{position:absolute;left:0;bottom:0;width:75%;height:92%;object-fit:contain;object-position:bottom;animation:tutorial-bounce 2.8s ease-in-out infinite}
.tutorial-plus-three{position:absolute;right:-1%;top:1%;width:42%;aspect-ratio:1;transform:rotate(9deg)}
.tutorial-plus-three svg{width:100%;height:100%;filter:drop-shadow(0 4px 0 #fffaf0)}
.tutorial-plus-three strong{position:absolute;inset:28% 12%;text-align:center;font:600 clamp(39px,11vw,58px)/1 Fredoka,sans-serif;color:#291b41}
.tutorial-earned-bonus{position:absolute;right:1%;bottom:2%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:41%;gap:5px}
.tutorial-earned-bonus>span:first-child{width:49px;height:49px;padding:5px;border:3px solid #291b41;border-radius:50%;background:#fff4a0;box-shadow:0 3px 0 #291b41}.tutorial-earned-bonus svg{width:100%;height:100%}
.tutorial-earned-bonus>b{font:600 14px Fredoka,sans-serif;background:#fffcf2;border:2px solid #291b41;padding:4px 9px;border-radius:10px}
.tutorial-earned-bonus>i{color:#ffdc45;-webkit-text-stroke:1px #291b41;font:600 40px/1 Fredoka,sans-serif}
.tutorial-opponent{display:grid;place-items:center;width:49px;height:49px;border:3px solid #291b41;border-radius:50%;background:#65d9ba;font:600 30px Fredoka,sans-serif}
.tutorial-malus-cards{display:grid;gap:9px;width:100%;max-width:380px;margin:auto}
.tutorial-malus-card{display:grid;grid-template-columns:77px minmax(0,1fr);align-items:center;gap:9px;min-height:87px;padding:8px;border:3px solid #291b41;border-radius:19px;background:#fffcf2;box-shadow:0 4px 0 #291b41}
.tutorial-malus-card img{width:77px;height:77px;object-fit:contain}.tutorial-malus-card h2{font:600 22px/1.05 Fredoka,sans-serif;color:#291b41;margin:0 0 6px}.tutorial-malus-card p{font:500 14px/1.25 Fredoka,sans-serif;margin:0;color:#291b41}
.tutorial-ranking-scene{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding-left:10px;padding-right:10px}
.tutorial-trophy{position:relative;z-index:2;width:88px;height:88px;margin-bottom:-24px;filter:drop-shadow(0 3px 0 #fffaf0)}.tutorial-trophy svg{width:100%;height:100%}
.tutorial-podium{display:flex;align-items:end;justify-content:center;gap:5px;width:65%;height:106px}.tutorial-podium>div{display:grid;place-items:center;background:#ba9bff;border:3px solid #291b41;border-radius:12px 12px 3px 3px;width:33%;height:65%;font:600 40px Fredoka,sans-serif;box-shadow:0 4px 0 #291b41}.tutorial-podium>div:nth-child(2){height:100%;background:#ffdc45}.tutorial-podium>div:nth-child(3){height:55%;background:#ff9a73}
.tutorial-periods{display:flex;gap:5px;justify-content:center;width:100%}.tutorial-periods>span{flex:1;text-align:center;border:2px solid #291b41;border-radius:12px;padding:5px 3px;background:#fffcf2;font:600 13px Fredoka,sans-serif}.tutorial-periods>span:first-child{background:#ffdc45}
.tutorial-rank-rows{display:grid;gap:5px;width:100%}.tutorial-rank-rows>div{display:flex;align-items:center;gap:8px;border:2px solid #291b41;border-radius:12px;background:#fffcf2;padding:5px 8px;font-size:14px;box-shadow:0 2px 0 #291b41}.tutorial-rank-rows>div>span{font-weight:600}.tutorial-rank-rows b{display:grid;place-items:center;border:2px solid #291b41;border-radius:7px;width:24px;height:24px;background:#ffdc45;font-size:16px}.tutorial-rank-rows strong{flex:1;font-weight:500}.tutorial-rank-rows small{font-size:13px;font-weight:600;white-space:nowrap}
.tutorial-ranking-mascot{position:absolute;left:0;top:0;object-fit:contain;width:29%;height:42%;transform:rotate(-9deg)}
.tutorial-chat-scene{display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:4px 5px}
.tutorial-friends{display:flex;align-items:center;justify-content:center;gap:12px}.tutorial-friends>div{display:flex;flex-direction:column;align-items:center;gap:4px}.tutorial-friends b{display:grid;place-items:center;width:58px;height:58px;background:#ba9bff;border:3px solid #291b41;border-radius:18px;font:600 40px/1 Fredoka,sans-serif}.tutorial-friends>div:last-child b{background:#ff9a73}.tutorial-friends span{border:2px solid #291b41;background:#ffdc45;padding:3px 10px;border-radius:8px;font:600 14px Fredoka,sans-serif}.tutorial-friends>strong{display:grid;place-items:center;min-width:49px;height:43px;background:#65d9ba;border:3px solid #291b41;border-radius:14px;color:#fff;font:600 26px Fredoka,sans-serif}
.tutorial-chat-bubbles{display:grid;gap:6px;justify-items:start;margin-left:10%}.tutorial-chat-bubbles span{border:2px solid #291b41;border-radius:14px 14px 14px 3px;background:#fffcf2;padding:7px 12px;font:600 17px Fredoka,sans-serif;box-shadow:0 3px 0 #291b41}.tutorial-chat-bubbles span:last-child{justify-self:end;margin-right:3%;background:#ffdc45}
.tutorial-chat-mascot{width:48%;height:47%;position:absolute;left:-3%;bottom:0;object-fit:contain;object-position:bottom}
.tutorial-voice{display:flex;align-items:center;gap:8px;border:3px solid #291b41;border-radius:16px;background:#7934d2;box-shadow:inset 0 0 0 2px #bb90fa,0 3px 0 #291b41;color:#fffaf0;padding:9px 10px;width:72%;align-self:end;margin-bottom:9%}.tutorial-voice>span{color:#ffdc45;font-size:25px}.tutorial-voice>div{display:flex;align-items:center;justify-content:space-between;gap:2px;flex:1;height:32px}.tutorial-voice i{display:block;width:3px;height:calc(var(--bar)*.7);border-radius:3px;background:#fffaf0;animation:tutorial-wave 1.6s ease-in-out infinite alternate}.tutorial-voice i:nth-child(3n){animation-delay:-.7s}.tutorial-voice b{font:600 16px Fredoka,sans-serif}
@keyframes tutorial-caret{50%{opacity:0}}@keyframes tutorial-bounce{50%{transform:translateY(-7px) rotate(-2deg)}}@keyframes tutorial-wave{to{transform:scaleY(.55)}}
@media(prefers-reduced-motion:reduce){.tutorial-dialog *{animation:none!important;transition:none!important}}
/* Desktop adaptation follows the approved wide, two-column tutorial mockup. */
.tutorial-footer{border:0!important;box-shadow:none;background:transparent;max-width:none!important;margin:0!important;width:100%;color:inherit}
@media(min-width:761px){
 dialog.tutorial-dialog{inset:0;width:min(1100px,calc(100vw - 48px));height:min(730px,calc(100vh - 40px));height:min(730px,calc(100dvh - 40px));margin:auto;padding:20px 24px 25px;border:4px solid #291b41;border-radius:28px;background-image:url('/quiz-backdrop.svg');box-shadow:0 10px 0 #291b4166}
 dialog.tutorial-dialog[open]{gap:18px}
 .tutorial-header{min-height:56px;padding:0 5px}.tutorial-logo{width:230px;max-height:62px}.tutorial-skip{min-width:100px;font-size:23px;min-height:48px}
 .tutorial-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:30px;align-items:center;overflow:auto;padding:28px;border:3px solid #291b41;border-radius:25px;background:#fffcf2;box-shadow:0 5px 0 #291b41}
 .tutorial-art{height:100%;min-height:250px}.tutorial-copy{padding:10px 0;border:0;background:transparent;border-radius:0;box-shadow:none;text-align:left;align-self:center}
 .tutorial-copy h1{font-size:clamp(31px,3.2vw,46px);line-height:1.04;letter-spacing:-1px;margin-bottom:23px}.tutorial-copy h1::after{content:'';display:block;width:140px;height:8px;margin-top:17px;border-radius:50%;background:#ffdc45;transform:rotate(-2deg)}
 .tutorial-copy p{font-size:clamp(19px,1.7vw,23px);line-height:1.45}
 .tutorial-footer{grid-template-columns:190px minmax(0,1fr) 230px;gap:20px;align-items:center;padding:0 9px 3px}
 .tutorial-back{grid-column:1;grid-row:1;font-size:22px;min-height:47px}.tutorial-next{grid-column:3;grid-row:1;font-size:24px;min-height:47px}.tutorial-progress{grid-column:2;grid-row:1;gap:15px}.tutorial-progress button{width:17px;height:17px}
 .tutorial-wheel-scene,.tutorial-reward-scene,.tutorial-ranking-scene,.tutorial-chat-scene{max-height:420px;min-height:250px}
 .tutorial-wheel-scene .quiz-wheel-stage{width:88%!important;max-width:340px!important;top:0}.tutorial-wheel-mascot{width:59%;height:76%}.tutorial-letter-token{width:76px;height:76px;font-size:57px}.tutorial-spin-arrow{font-size:80px}
 .tutorial-question-scene{max-width:330px}.tutorial-demo-question{padding:18px}.tutorial-demo-question h2{font-size:27px}.tutorial-demo-answer{font-size:27px}.tutorial-demo-send{font-size:25px}.tutorial-demo-solutions span{font-size:16px}
 .tutorial-plus-three strong{font-size:64px}.tutorial-earned-bonus>b{font-size:17px}
 .tutorial-dialog[data-step="4"] .tutorial-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:15px;padding:20px 22px}
 .tutorial-dialog[data-step="4"] .tutorial-copy{grid-row:1;text-align:center;padding:0}.tutorial-dialog[data-step="4"] .tutorial-copy h1{font-size:36px;margin-bottom:10px}.tutorial-dialog[data-step="4"] .tutorial-copy h1::after{margin:10px auto 0}.tutorial-dialog[data-step="4"] .tutorial-copy p{font-size:19px;line-height:1.3}
 .tutorial-dialog[data-step="4"] .tutorial-art{grid-row:2;min-height:230px}
 .tutorial-malus-cards{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:13px;align-self:center}
 .tutorial-malus-card{grid-template-columns:1fr;grid-template-rows:auto 1fr;min-height:245px;height:100%;padding:14px 10px;text-align:center;gap:10px}.tutorial-malus-card img{width:100%;height:130px}.tutorial-malus-card h2{font-size:24px;line-height:1.1}.tutorial-malus-card p{font-size:16px;line-height:1.3}
 .tutorial-periods>span{font-size:16px}.tutorial-rank-rows>div{font-size:17px}.tutorial-rank-rows small{font-size:15px}.tutorial-ranking-mascot{width:31%;height:43%}
 .tutorial-friends b{width:66px;height:66px;font-size:45px}.tutorial-friends span{font-size:17px}.tutorial-friends>strong{height:50px;width:58px}.tutorial-chat-bubbles span{font-size:20px}.tutorial-voice{padding:12px}.tutorial-voice b{font-size:18px}
}
@media(min-width:761px) and (max-height:700px){dialog.tutorial-dialog{padding:14px 20px 18px}.tutorial-header{min-height:43px}.tutorial-logo{width:190px;max-height:48px}.tutorial-body{padding:16px 20px;gap:22px}.tutorial-art{min-height:210px}.tutorial-copy h1{font-size:34px}.tutorial-copy p{font-size:18px}.tutorial-dialog[data-step="4"] .tutorial-copy h1{font-size:29px}.tutorial-dialog[data-step="4"] .tutorial-copy p{font-size:16px}.tutorial-dialog[data-step="4"] .tutorial-art{min-height:200px}.tutorial-malus-card{min-height:205px}.tutorial-malus-card img{height:95px}.tutorial-malus-card h2{font-size:21px}.tutorial-malus-card p{font-size:14px}}

/* Keep the onboarding visibly separate from the app on every screen size. */
.tutorial-dialog::backdrop{background:#10081de0;backdrop-filter:blur(6px)}
.tutorial-brand{display:flex;align-items:center;gap:17px;min-width:0}.tutorial-brand .tutorial-logo{max-width:100%;width:210px}.tutorial-label{display:inline-block;flex-shrink:0;background:#ffdc45;color:#291b41;border:2px solid #291b41;border-radius:13px;padding:7px 11px;font:500 14px/1.15 Fredoka,sans-serif;white-space:nowrap}.tutorial-label strong{font-weight:600}
@media(max-width:760px){dialog.tutorial-dialog{width:min(520px,calc(100vw - 24px));height:min(860px,calc(100vh - 32px));height:min(860px,calc(100dvh - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:12px 10px max(12px,env(safe-area-inset-bottom));border:4px solid #291b41;border-radius:25px;background:#fffcf2;box-shadow:0 8px 0 #291b4170,0 16px 55px #0008}dialog.tutorial-dialog[open]{gap:11px}.tutorial-header{gap:10px;min-height:64px;padding:0 3px}.tutorial-brand{flex-direction:column;align-items:flex-start;gap:4px}.tutorial-brand .tutorial-logo{width:143px;max-height:45px}.tutorial-label{padding:3px 6px;font-size:10px;border-width:1.5px;border-radius:8px}.tutorial-skip{min-width:70px;min-height:41px;font-size:18px;padding:7px 11px}.tutorial-body{border:2px solid #291b41;border-radius:18px;background:#7040d2 url('/quiz-backdrop-mobile.svg') center/cover no-repeat;padding:10px 7px 8px;gap:10px}.tutorial-copy{padding:14px 12px;border-radius:18px}.tutorial-copy h1{font-size:clamp(22px,6.5vw,29px);margin-bottom:9px}.tutorial-copy p{font-size:15px;line-height:1.35}.tutorial-footer{padding:0 4px 3px;gap:11px 9px}.tutorial-back{padding:7px 9px;font-size:16px}.tutorial-next{padding:7px 10px;font-size:18px}.tutorial-malus-card{grid-template-columns:64px minmax(0,1fr);gap:7px;padding:7px;min-height:78px}.tutorial-malus-card img{width:64px;height:64px}.tutorial-malus-card h2{font-size:20px}.tutorial-malus-card p{font-size:13px}}
/* Keep each mobile illustration in normal flow: its content must never overlap the explanation. */
@media(max-width:760px){
 .tutorial-dialog .tutorial-body{grid-template-rows:max-content max-content;align-content:start;gap:16px;padding:14px 8px 12px;scroll-padding:14px}
 .tutorial-dialog .tutorial-art{height:auto;min-height:0;flex-shrink:0}
 .tutorial-dialog .tutorial-copy{align-self:start;margin:0;min-width:0}
 .tutorial-dialog .tutorial-question-scene{max-height:none;flex:none;padding-top:12px;padding-bottom:5px}
 .tutorial-dialog .tutorial-demo-question,.tutorial-dialog .tutorial-demo-solutions{flex-shrink:0}
 .tutorial-dialog .tutorial-demo-tokens{margin:0 0 10px}
 .tutorial-dialog .tutorial-wheel-scene,.tutorial-dialog .tutorial-reward-scene,.tutorial-dialog .tutorial-chat-scene{height:clamp(240px,76vw,340px);min-height:0;max-height:none;flex:none}
 .tutorial-dialog .tutorial-ranking-scene{height:auto;min-height:340px;max-height:none;flex:none;padding-top:8px;padding-bottom:6px;justify-content:flex-start}
 .tutorial-dialog .tutorial-trophy{flex:0 0 72px;width:72px;height:72px;margin-bottom:-20px}
 .tutorial-dialog .tutorial-podium{flex:0 0 90px;height:90px}
 .tutorial-dialog .tutorial-periods,.tutorial-dialog .tutorial-rank-rows{flex-shrink:0}
 .tutorial-dialog .tutorial-ranking-mascot{top:12px;height:130px;width:27%}
 .tutorial-dialog .tutorial-malus-cards{margin:0 auto;padding-bottom:5px}
}
@media(max-width:760px){
 .tutorial-dialog .tutorial-demo-question{padding:12px}
 .tutorial-dialog .tutorial-demo-tokens>span{width:49px;height:49px;font-size:36px}
 .tutorial-dialog .tutorial-demo-tokens>b{padding:6px 9px;font-size:20px}
 .tutorial-dialog .tutorial-demo-question h2{font-size:22px;margin:6px 0 10px}
 .tutorial-dialog .tutorial-demo-answer{font-size:22px;padding:6px 10px}
 .tutorial-dialog .tutorial-demo-send{font-size:21px;padding:5px}
 .tutorial-dialog .tutorial-demo-solutions b{font-size:26px}
}
/* Compact mobile match: live scores above, question first, existing malus dock below. */
.quiz-mobile-round,.quiz-mobile-status{display:none}
@media(max-width:760px){
 body[data-page=game] .header{min-height:62px!important;height:62px;padding:5px 12px!important}
 body[data-page=game] .header .brand img{width:139px!important;max-height:48px}
 body[data-page=game] #app{padding:10px 12px 8px!important}
 body[data-page=game] .quiz-board{display:flex;flex-direction:column;gap:12px}
 body[data-page=game] .quiz-top{display:none!important}
 body[data-page=game] .match-ranking{order:0;position:relative;top:auto;margin:0;padding:4px;border-radius:14px;flex-shrink:0}
 body[data-page=game] .match-ranking ol{gap:2px}
 body[data-page=game] .match-racer{grid-template-columns:1fr;grid-template-rows:21px 14px 19px;gap:2px;padding:3px 1px;border-radius:9px;background:transparent}
 body[data-page=game] .match-racer:first-child{background:#ffe35b}
 body[data-page=game] .match-racer.is-you{border-color:#7842c0}
 body[data-page=game] .match-place{font-size:9px;left:2px;top:2px}
 body[data-page=game] .match-ranking .avatar{width:21px;height:21px;font-size:15px;border-radius:6px}
 body[data-page=game] .match-name{font-size:11px;line-height:14px;grid-row:2}
 body[data-page=game] .match-racer strong{font-size:17px;line-height:19px;grid-row:3}
 body[data-page=game] .match-racer strong small{font-size:8px}
 body[data-page=game] .quiz-grid{order:1;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 body[data-page=game] .quiz-wheel-column{position:relative;min-height:54px!important;height:54px;margin:0!important;gap:10px;padding-right:85px!important}
 body[data-page=game] .quiz-wheel-column .quiz-wheel-stage{width:54px!important;min-width:54px!important;max-width:54px!important;height:54px!important;padding:3px!important;flex-shrink:0}
 body[data-page=game] .quiz-wheel-column .quiz-wheel-center strong{font-size:18px!important}
 body[data-page=game] .quiz-wheel-column .quiz-wheel-caption{font-size:14px!important;padding:0!important;max-width:none;line-height:1.2}
 body[data-page=game] .quiz-wheel-caption>span:last-child{display:none}
 body[data-page=game] .quiz-wheel-caption b{display:none}
 body[data-page=game] .quiz-mobile-round{display:block;position:absolute;right:0;top:50%;transform:translateY(-50%);border:2px solid #e4d4ff;border-radius:20px;padding:6px 8px;background:#d5baff;color:#291b41;font:600 10px/1.2 Fredoka,sans-serif;white-space:nowrap}
 body[data-page=game] .quiz-question{padding:22px 13px 10px!important;border-radius:19px!important}
 body[data-page=game] .quiz-question-label{font-size:13px;top:-14px;padding:5px 12px;white-space:nowrap}
 body[data-page=game] .quiz-question-body{gap:12px!important;margin:4px 0 12px!important;min-height:68px!important}
 body[data-page=game] .quiz-question-body h2{font-size:clamp(23px,6.6vw,29px)!important;line-height:1.13!important;overflow-wrap:anywhere}
 body[data-page=game] .quiz-letter{min-width:52px;width:52px;height:63px;font-size:44px}
 body[data-page=game] .quiz-countdown{margin:10px 0 15px!important;gap:10px!important}
 body[data-page=game] .quiz-countdown .timer{gap:4px}
 body[data-page=game] .quiz-countdown .timer-track{height:11px}
 body[data-page=game] .quiz-player-label{display:none}
 body[data-page=game] .quiz-answer-form{margin-top:0!important;gap:8px!important}
 body[data-page=game] .quiz-answer-form .button{padding:8px 12px!important;font-size:19px!important}
 body[data-page=game] .quiz-solutions{margin-top:13px!important;gap:7px!important}
 body[data-page=game] .quiz-solutions .quiz-solution{min-height:58px!important;height:auto!important;border-radius:10px;padding:4px 4px 0}
 body[data-page=game] .quiz-solutions .quiz-solution>span{font-size:25px;line-height:1.15;padding:2px 0;min-height:28px;overflow-wrap:anywhere}
 body[data-page=game] .quiz-solutions .quiz-solution>b{font-size:11px;padding:5px 1px}
 body[data-page=game] .quiz-solutions[aria-label="Le tre soluzioni"] .quiz-solution>span{font-size:16px;line-height:1.15}
 body[data-page=game] .quiz-answer-note{margin:9px 0 0!important;font-size:10px!important;line-height:1.3!important}
 body[data-page=game] .quiz-mobile-status{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:10px;padding-top:9px;border-top:1px solid #d9cbe2;font:500 12px/1.3 Fredoka,sans-serif;text-align:center;color:#291b41}
 body[data-page=game] .quiz-mobile-status i{width:7px;height:7px;background:#2dccac;border-radius:50%;flex-shrink:0}
 body[data-page=game] .report-question-link{margin:5px auto 0;font-size:9px!important;min-height:24px;padding:3px 6px}
 body[data-page=game] .reaction-controls{order:2;gap:6px;margin:0;padding:0;min-height:34px}
 body[data-page=game] .reaction-controls button{height:32px;width:32px;flex-shrink:0;font-size:21px}
 body[data-page=game] .reaction-cooldown:empty{display:none}
 body[data-page=game] .quiz-toolbar{display:none!important}
 body[data-page=game] .leave-room-row{margin:5px 0 0;padding:0;justify-content:flex-end}
 body[data-page=game] .leave-room-row small{display:none}
 body[data-page=game] .leave-room-row .button{min-height:28px;font:500 11px Fredoka,sans-serif;padding:4px 10px;border-width:1px;box-shadow:0 2px 0 #291b41}
}
@media(max-width:760px){
 body[data-page=game] .header{box-sizing:border-box!important;height:62px!important}
 body[data-page=game] .match-racer{grid-template-rows:18px 12px 18px;gap:1px;padding:2px 1px;border-width:1px}
 body[data-page=game] .match-ranking .avatar{width:18px;height:18px;font-size:13px;border-width:1.5px}
 body[data-page=game] .match-name{line-height:12px}
 body[data-page=game] .match-racer strong{line-height:18px}
 body[data-page=game] .quiz-solutions .quiz-solution{padding:4px 4px 0!important}
 body[data-page=game] .quiz-solutions .quiz-solution>span{font-size:25px!important}
}
.quiz-mobile-letter{display:none}
@media(max-width:760px){
 body[data-page=game] .quiz-wheel-column .quiz-wheel-caption{display:none!important}
 body[data-page=game] .quiz-mobile-letter{display:block;font:600 17px/1.15 Fredoka,sans-serif;color:#fffaf0;text-shadow:0 2px 0 #291b41}
 body[data-page=game] .quiz-mobile-round{font-size:12px;padding:6px 11px}
}
@media(max-width:760px) and (max-height:760px){
 body[data-page=game] #app{padding-top:7px!important;padding-bottom:5px!important}
 body[data-page=game] .quiz-board{gap:8px}
 body[data-page=game] .match-racer{grid-template-rows:15px 11px 16px;padding:1px;gap:1px}
 body[data-page=game] .match-ranking .avatar{width:15px;height:15px;font-size:11px}
 body[data-page=game] .match-name{font-size:10px;line-height:11px}
 body[data-page=game] .match-racer strong{font-size:15px;line-height:16px}
 body[data-page=game] .quiz-grid{gap:15px!important}
 body[data-page=game] .quiz-wheel-column{min-height:40px!important;height:40px}
 body[data-page=game] .quiz-wheel-column .quiz-wheel-stage{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important}
 body[data-page=game] .quiz-mobile-letter{font-size:15px}
 body[data-page=game] .quiz-question{padding:17px 10px 6px!important}
 body[data-page=game] .quiz-question-body{min-height:58px!important;margin:2px 0 6px!important;gap:9px!important}
 body[data-page=game] .quiz-letter{height:52px;min-width:44px;width:44px;font-size:36px}
 body[data-page=game] .quiz-countdown{margin:6px 0 9px!important}
 body[data-page=game] .quiz-answer-form input,body[data-page=game] .quiz-answer-form .button{min-height:44px!important;height:44px!important;padding-top:6px!important;padding-bottom:6px!important}
 body[data-page=game] .quiz-solutions{margin-top:8px!important}
 body[data-page=game] .quiz-solutions .quiz-solution{min-height:45px!important;padding:1px 3px 0!important}
 body[data-page=game] .quiz-solutions .quiz-solution>span{min-height:20px;font-size:20px!important;padding:0}
 body[data-page=game] .quiz-solutions .quiz-solution>b{padding:3px 1px}
 body[data-page=game] .quiz-answer-note{margin-top:5px!important;font-size:9px!important}
 body[data-page=game] .quiz-mobile-status{margin-top:6px;padding-top:5px;font-size:11px}
 body[data-page=game] .report-question-link{margin-top:2px;min-height:19px;padding:1px 5px}
 body[data-page=game] .leave-room-row{margin-top:3px}
}
@media(max-width:760px){
 body[data-page=game] .quiz-question .verdict{min-height:46px;margin:8px 0 0;padding:6px 9px}
 body[data-page=game] .quiz-question .verdict strong{font-size:28px}
 body[data-page=game] .quiz-question.is-revealed .quiz-solution>span{min-height:28px;padding:3px 1px;font-size:16px!important}
}
@media(max-width:760px){body[data-page=game] .quiz-question.is-revealed .quiz-countdown{display:none}}
@media(max-width:760px){body[data-page=game] .quiz-question-body h2{font-size:clamp(25px,7.4vw,31px)!important}}
@media(max-width:760px) and (max-height:760px){body[data-page=game] .quiz-question-body h2{font-size:23px!important}}
@media(max-width:760px){body[data-page=game] .quiz-wheel-column{width:100%;max-width:none;box-sizing:border-box}}
@media(max-width:760px){body[data-page=game] .leave-room-row{justify-content:center}}
/* Mobile reactions use their own reserved space, away from wheel, question and scores. */
.mobile-reaction-feed{display:none}
@media(max-width:760px){
 body[data-page=game] .match-ranking .match-bubble{display:none!important}
 body[data-page=game] .reaction-controls{flex-wrap:wrap;gap:4px 6px}
 body[data-page=game] .reaction-controls>span{display:none}
 body[data-page=game] .mobile-reaction-feed{display:grid;place-items:center;flex:0 0 100%;height:32px;min-width:0;font:500 11px Fredoka,sans-serif;color:#fffaf0}
 .reaction-feed-idle,.reaction-feed-bubble{grid-area:1/1}
 .mobile-reaction-feed:has(.reaction-feed-bubble:not([hidden])) .reaction-feed-idle{visibility:hidden}
 .reaction-feed-bubble{display:flex;align-items:center;justify-content:center;gap:7px;max-width:100%;height:30px;box-sizing:border-box;padding:3px 10px;border:2px solid #291b41;border-radius:12px 12px 12px 3px;background:#fff5aa;box-shadow:0 2px 0 #291b41;color:#291b41;font:500 13px/1.2 Fredoka,sans-serif}
 .reaction-feed-bubble b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100px}
 .reaction-feed-bubble>span{flex-shrink:0;white-space:nowrap}
}
@media(max-width:760px) and (min-height:761px){
 body[data-page=game] .quiz-board{gap:10px}
 body[data-page=game] .quiz-question{padding-top:18px!important}
 body[data-page=game] .quiz-question-body{margin-bottom:8px!important}
 body[data-page=game] .quiz-countdown{margin-bottom:10px!important}
 body[data-page=game] .quiz-answer-note{margin-top:6px!important}
 body[data-page=game] .report-question-link{min-height:20px}
}
@media(max-width:760px) and (max-height:760px){
 body[data-page=game] .quiz-board{gap:6px}
 body[data-page=game] .quiz-question{padding-top:14px!important}
 body[data-page=game] .quiz-question-body{margin-bottom:4px!important}
 body[data-page=game] .report-question-link{min-height:16px}
}
@media(max-width:760px){body[data-page=game] #app{padding-bottom:6px!important}body[data-page=game] .leave-room-row{margin-top:3px}}
@media(max-width:760px) and (min-height:761px){body[data-page=game] .quiz-board{gap:8px}body[data-page=game] .quiz-question{padding-bottom:8px!important}}
/* Arsenal collection: chosen trio, permanent unlocks and personal achievement progress. */
.arsenal-page{max-width:1080px;margin:0 auto}.arsenal-heading{display:flex;align-items:center;gap:18px;margin-bottom:25px}.arsenal-pack{font-size:70px;filter:drop-shadow(0 4px 0 #291b41)}.arsenal-heading h1{font:600 clamp(30px,4vw,47px)/1.1 Fredoka,sans-serif;color:#fffcf2;-webkit-text-stroke:4px #291b41;paint-order:stroke fill;text-shadow:0 4px #291b41;margin:0 0 8px}.arsenal-heading h1 span{color:#ffdc45}.arsenal-heading p{color:#fffaf0;font:500 19px Fredoka,sans-serif;margin:0}.arsenal-loadout{padding:22px!important;margin:0 0 25px;box-shadow:0 5px 0 #291b41}.arsenal-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.arsenal-section-heading h2{font:600 27px Fredoka,sans-serif;margin:0}.arsenal-section-heading>span{background:#e5d0ff;color:#4d238a;border:2px solid #fff8;border-radius:30px;padding:7px 12px;white-space:nowrap;font:500 16px Fredoka,sans-serif}.arsenal-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.arsenal-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:150px;padding:14px 8px;border:3px solid #ffcb28;border-radius:20px;background:#fff9db;box-shadow:inset 0 0 0 2px #fff,0 4px 0 #d39f16;color:#291b41;cursor:pointer}.arsenal-slot>img,.arsenal-slot>.malus-art{width:82px;height:83px;object-fit:contain}.arsenal-slot b{font:600 19px/1.1 Fredoka,sans-serif}.arsenal-slot small{position:absolute;top:4px;left:6px;font:600 19px Fredoka,sans-serif}.arsenal-check{position:absolute;right:-4px;top:-8px;background:#169944;border:3px solid #fffcf2;border-radius:50%;width:27px;height:27px;color:#fff;font:bold 21px/22px sans-serif}.arsenal-slot.is-empty{border:2px dashed #b79ccc;background:#f6eeff;color:#8767a3;box-shadow:none}.arsenal-slot.is-empty>strong{font-size:44px}.arsenal-choice-help{font:500 12px Fredoka,sans-serif;text-align:center;margin:14px 0 0;color:#7e648e}.arsenal-collection-heading{color:#fffaf0}.arsenal-tabs{display:flex;gap:10px;margin-bottom:15px}.arsenal-tabs button{flex:1;min-height:43px;border:3px solid #291b41;border-radius:15px;background:#fffcf2;color:#291b41;box-shadow:0 4px 0 #291b41;font:600 18px Fredoka,sans-serif;cursor:pointer}.arsenal-tabs button[aria-pressed=true]{background:#ffdc45}.arsenal-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.arsenal-card{position:relative;display:flex;align-items:center;gap:10px;min-width:0;text-align:left;border:3px solid #291b41;border-radius:20px;padding:16px 12px;background:#fffcf2;color:#291b41;box-shadow:0 5px 0 #291b41;cursor:pointer}.arsenal-card.is-selected{border-color:#ffcd24;outline:2px solid #291b41;box-shadow:inset 0 0 0 2px #fff0a0,0 5px 0 #291b41}.arsenal-card>img,.arsenal-card>.malus-art{width:75px;height:88px;object-fit:contain;flex-shrink:0}.arsenal-card-copy{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.arsenal-card-copy>b{font:600 22px/1.05 Fredoka,sans-serif;padding-right:13px}.arsenal-card-copy>span:not(.arsenal-progress){font:400 12px/1.3 Fredoka,sans-serif;color:#62457c}.arsenal-card-copy>small{font:500 12px/1.2 Fredoka,sans-serif;color:#68448b}.arsenal-card-marker{position:absolute;right:6px;top:5px;font:600 21px Fredoka,sans-serif;color:#158e45}.arsenal-card.is-locked{background:#f7f0ff}.arsenal-card.is-locked .malus-art{filter:saturate(.75)}.arsenal-progress{position:relative;display:grid;place-items:center;background:#e7def0;border:1.5px solid #482666;border-radius:20px;height:21px;overflow:hidden;margin-top:3px}.arsenal-progress i{position:absolute;inset:0 auto 0 0;background:#51dcb4}.arsenal-progress strong{position:relative;font:600 12px Fredoka,sans-serif}.arsenal-save{text-align:center;padding:25px 0 10px}.arsenal-save>button.button{width:min(100%,600px);font:600 27px Fredoka,sans-serif;border:3px solid #ffdc45;border-radius:24px;color:#ffdc45;padding:12px}.arsenal-save>button.button:disabled{opacity:.5;cursor:default}.arsenal-save p{color:#fffaf0;font:500 14px Fredoka,sans-serif;margin:12px 0}.arsenal-save>a{display:inline-block;font-size:14px}.arsenal-entry,.arsenal-lobby{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px;background:#fff7d4}.arsenal-entry h2,.arsenal-lobby h2{font:600 26px Fredoka,sans-serif;margin:0 0 7px}.arsenal-entry p,.arsenal-lobby p{font-size:13px;line-height:1.4;margin:0}.arsenal-entry .button{flex-shrink:0}.arsenal-lobby{flex-wrap:wrap}.arsenal-lobby-slots{display:flex;gap:10px}.arsenal-lobby-slots>span{display:flex;align-items:center;gap:5px;max-width:150px;font:500 12px Fredoka,sans-serif}.arsenal-lobby-slots img,.arsenal-lobby-slots .malus-art{width:40px;height:42px;object-fit:contain;flex-shrink:0}.arsenal-rules{margin:22px auto;max-width:1100px}.arsenal-rules p{line-height:1.65}.arsenal-loading{color:#fffaf0;text-align:center}.malus-art{position:relative;display:inline-flex;align-items:center;justify-content:center}.malus-art img{width:100%;height:100%;object-fit:contain}.malus-art i{position:absolute;right:-3%;bottom:5%;min-width:32%;padding:2px 3px;text-align:center;background:#ffdc45;border:2px solid #291b41;border-radius:7px;font:600 22px/1 Fredoka,sans-serif;color:#291b41}.malus-art-secret i{background:#dbc2ff;font-size:18px;bottom:35%}.malus-art-pieces i{background:#7ce4c9}.malus-notice.arsenal-notice{padding:5px 8px;gap:8px;min-height:40px}.arsenal-notice .malus-art{width:35px;height:35px;flex-shrink:0}.arsenal-notice b{font:600 13px Fredoka,sans-serif}.arsenal-notice small{font-size:10px}.arsenal-effect-clock{white-space:nowrap}.quiz-question-body{position:relative}.malus-question-hidden{visibility:hidden}.arsenal-question-mask{position:absolute;left:70px;right:0;text-align:center;color:#6b35ad;font:600 18px/1.15 Fredoka,sans-serif}.arsenal-question-piece{transition:opacity .2s}.bonus-choice .malus-art{width:42px;height:42px;flex-shrink:0}.quick-malus-preview .malus-art{width:64px;height:64px;flex-shrink:0}
@media(max-width:760px){.arsenal-heading{gap:10px;margin-bottom:20px}.arsenal-pack{font-size:47px}.arsenal-heading h1{font-size:30px;-webkit-text-stroke:3px}.arsenal-heading p{font-size:14px}.arsenal-loadout{padding:16px 10px!important;margin-bottom:22px;border-radius:20px!important}.arsenal-section-heading{gap:7px;margin-bottom:12px}.arsenal-section-heading h2{font-size:20px}.arsenal-section-heading>span{font-size:12px;padding:5px 8px}.arsenal-slots{gap:8px}.arsenal-slot{min-height:120px;border-radius:14px;padding:18px 3px 8px;gap:6px}.arsenal-slot>img,.arsenal-slot>.malus-art{width:58px;height:64px}.arsenal-slot b{font-size:13px}.arsenal-slot small{font-size:14px}.arsenal-check{width:21px;height:21px;font-size:15px;line-height:16px}.arsenal-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 9px}.arsenal-card{flex-direction:column;align-items:stretch;gap:5px;padding:12px 10px 10px;border-radius:17px}.arsenal-card>img,.arsenal-card>.malus-art{align-self:center;width:65px;height:68px}.arsenal-card-copy>b{font-size:20px;padding-right:0}.arsenal-card-copy>span:not(.arsenal-progress){font-size:12px}.arsenal-card-copy>small{font-size:11px}.arsenal-tabs{gap:7px}.arsenal-tabs button{font-size:14px;padding:6px 2px;min-height:39px;border-width:2px;border-radius:13px}.arsenal-save>button.button{font-size:25px}.arsenal-entry{flex-direction:column;align-items:stretch;padding:20px!important}.arsenal-entry .button{width:100%;text-align:center}.arsenal-lobby{padding:16px!important;gap:12px}.arsenal-lobby-slots{width:100%;justify-content:space-between;gap:5px}.arsenal-lobby-slots>span{flex-direction:column;flex:1;text-align:center;font-size:11px}.arsenal-lobby>.button{width:100%}.malus-dock-buttons .malus-art{width:34px;height:30px;flex-shrink:0}.malus-dock-buttons .malus-art i{font-size:12px;border-width:1px;padding:1px}.malus-dock-buttons .malus-art-secret i{font-size:10px}.malus-dock-buttons button:has(.malus-art)>span:last-child{font-size:clamp(9px,2.7vw,12px);white-space:normal;line-height:1.05}.arsenal-question-mask{left:58px;font-size:15px}}
@media(prefers-reduced-motion:reduce){.arsenal-question-piece{transition:none}}
@media(max-width:760px){.arsenal-heading h1{-webkit-text-stroke:0;text-shadow:2px 2px 0 #291b41,-1px -1px 0 #291b41,1px -1px 0 #291b41,-1px 1px 0 #291b41;line-height:1.12}.arsenal-heading h1 span{display:block}}
@media(max-width:760px){
 .quiz-question .malus-notice.arsenal-notice{height:30px;min-height:0;padding:3px 6px;margin:5px 0;border-width:1px;gap:6px}
 .quiz-question .arsenal-notice .malus-art{width:23px;height:23px}
 .quiz-question .arsenal-notice .malus-art i{font-size:12px;border-width:1px;padding:1px}
 .quiz-question .arsenal-notice small{display:none}
 .quiz-question .arsenal-notice b{font-size:12px}
 .quiz-question:has(.arsenal-notice) .quiz-answer-note{display:none}
 .quiz-question:has(.arsenal-notice) .quiz-mobile-status{justify-content:flex-start;padding-right:79px;font-size:10px}
 .quiz-question:has(.arsenal-notice) .report-question-link{position:absolute;right:8px;bottom:6px;min-height:20px;margin:0;padding:2px 3px;font-size:8px!important}
}
@media(min-width:761px){
 .profile-page .arsenal-entry{box-sizing:border-box;width:100%;padding:30px 32px;gap:24px;min-height:138px}
 .profile-page .arsenal-entry>div{flex:1;min-width:0}
 .profile-page .arsenal-entry .eyebrow{display:block;margin-bottom:8px}
 .profile-page .arsenal-entry .button{margin:0;align-self:center}
}

/* Freeze lives in the dialog top layer, independently from both app bars. */
.freeze-modal{box-sizing:border-box;position:fixed;inset:0;width:100%;height:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#12385e;overflow:hidden}
.freeze-modal::backdrop{background:#103e65cc;backdrop-filter:blur(4px)}
.freeze-screen{position:relative;box-sizing:border-box;width:100%;height:100%;overflow:hidden;background:repeating-conic-gradient(from 10deg at 50% 52%,#b7edfabf 0deg 22deg,#67c5efb8 22deg 45deg);box-shadow:inset 0 0 60px 12px #e4ffff;animation:freeze-enter .25s ease-out}
.freeze-screen::after{content:'';position:absolute;inset:0;border:clamp(8px,2vw,22px) solid #d9ffffad;border-radius:12px;pointer-events:none;box-shadow:inset 0 0 25px #fff}
.freeze-heading{position:absolute;top:max(16px,env(safe-area-inset-top));left:8px;right:8px;text-align:center;z-index:2;font-family:Fredoka,sans-serif}
.freeze-from{font-size:clamp(13px,2vw,18px);font-weight:500}.freeze-heading h2{font:600 clamp(44px,8vh,90px)/1 Fredoka,sans-serif;color:#fff;margin:5px 0 8px;-webkit-text-stroke:5px #144672;paint-order:stroke fill;text-shadow:0 5px #144672}
.freeze-heading p{font:500 clamp(17px,2.6vw,25px)/1.2 Fredoka,sans-serif;margin:0 0 10px}.freeze-stats{display:flex;justify-content:center;gap:14px}.freeze-stats>span{background:#fff9e9;border:3px solid #15436d;border-radius:20px;padding:5px 14px;font:600 19px Fredoka,sans-serif;box-shadow:0 3px #15436d}
.freeze-mascot{position:absolute;left:50%;top:29%;transform:translateX(-50%);width:min(52vw,420px);height:43%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 7px 0 #12385e55)}
.freeze-cracks{position:absolute;inset:0;z-index:3;pointer-events:none}.freeze-crack{position:absolute;display:grid;place-items:center;width:clamp(62px,11vw,104px);height:clamp(62px,11vw,104px);padding:0;transform:translate(-50%,-50%);background:#cff9ffed;color:#12385e;border:3px solid #1d6490;border-radius:24px;box-shadow:0 5px #205275,inset 0 0 12px #fff;cursor:pointer;touch-action:manipulation;pointer-events:auto;transition:background .15s,opacity .15s}
.freeze-crack svg{position:absolute;width:88%;height:88%;overflow:visible;fill:none;stroke:#fff;stroke-width:5;stroke-linejoin:round;filter:drop-shadow(1px 2px 0 #1678ad)}.freeze-crack span{position:relative;display:grid;place-items:center;border-radius:50%;width:28px;height:28px;background:#fffce9;border:2px solid #145279;font:600 18px Fredoka,sans-serif}
.freeze-crack:focus-visible{outline:5px solid #ffdc45;outline-offset:4px}.freeze-crack:disabled:not(.is-broken){cursor:wait}.freeze-crack.is-broken{opacity:.3;background:#fff;box-shadow:none;pointer-events:none}.freeze-crack.is-broken svg{stroke:#1472a3;stroke-width:8}
.freeze-crack-0{left:19%;top:36%}.freeze-crack-1{left:81%;top:36%}.freeze-crack-2{left:16%;top:64%}.freeze-crack-3{left:84%;top:64%}.freeze-crack-4{left:50%;top:79%}
.freeze-help{position:absolute;left:12px;right:12px;bottom:max(15px,env(safe-area-inset-bottom));text-align:center;font:500 clamp(12px,1.8vw,17px)/1.3 Fredoka,sans-serif;margin:0}.freeze-error{position:absolute;left:15px;right:15px;bottom:11%;text-align:center;font:500 12px Fredoka,sans-serif;background:#fff5;border-radius:12px}
.freeze-modal.is-shattered{pointer-events:none;animation:freeze-out .26s ease-out forwards}.freeze-modal.is-shattered .freeze-crack{transform:translate(-50%,-50%) scale(1.5);opacity:0}.freeze-modal.is-shattered .freeze-mascot{filter:none}
@keyframes freeze-enter{from{opacity:0;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes freeze-out{to{opacity:0;transform:scale(1.08)}}
@media(min-width:761px){.freeze-crack-0{left:30%}.freeze-crack-1{left:70%}.freeze-crack-2{left:27%}.freeze-crack-3{left:73%}}
@media(max-height:530px){.freeze-heading h2{font-size:36px;margin:2px}.freeze-heading p{font-size:15px;margin:4px}.freeze-from{font-size:11px}.freeze-stats>span{font-size:14px;padding:2px 10px}.freeze-mascot{top:34%;height:39%}.freeze-crack{width:55px;height:55px}.freeze-crack-4{top:77%}.freeze-help{font-size:11px;bottom:8px}}
@media(prefers-reduced-motion:reduce){.freeze-screen,.freeze-modal.is-shattered{animation:none}.freeze-crack{transition:none}}


.freeze-shards{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden}.freeze-shards i{position:absolute;left:50%;top:50%;width:60px;height:85px;background:linear-gradient(30deg,#4eaee5bb,#eaffff);clip-path:polygon(0 0,100% 25%,60% 100%);opacity:0;transform:rotate(calc(var(--shard)*30deg)) translateY(-30px)}.is-shattered .freeze-shards i{animation:freeze-shard .26s ease-out forwards}@keyframes freeze-shard{0%{opacity:1}100%{opacity:0;transform:rotate(calc(var(--shard)*30deg)) translateY(-45vh) rotate(60deg)}}@media(prefers-reduced-motion:reduce){.freeze-shards{display:none}}

.header-exit{display:grid;place-items:center;flex-shrink:0;margin-left:0!important}.header-exit svg{width:24px;height:24px;display:block}.app-exit-dialog{box-sizing:border-box;width:min(440px,calc(100% - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:28px 24px;background:#fffcf2;color:#291b41;border:4px solid #291b41;border-radius:26px;box-shadow:0 7px 0 #291b41;overflow:auto}.app-exit-dialog::backdrop{background:#190d39bd}.app-exit-dialog h2{font:600 30px/1.1 Fredoka,sans-serif;margin:0 0 16px}.app-exit-dialog p{font:400 17px/1.4 Fredoka,sans-serif}.app-exit-dialog .actions{display:grid;grid-template-columns:1fr;gap:12px;margin-top:24px}.app-exit-dialog .button{width:100%;text-align:center;min-height:48px;font:600 20px Fredoka,sans-serif}
@media(max-width:760px){.header:has(.header-exit){gap:8px!important}.header:has(.header-exit) .brand{min-width:0;flex:1;max-width:calc(100% - 148px)}.header:has(.header-exit) .brand img{width:100%!important;height:auto;max-width:180px}.header:has(.header-exit) .header-audio{margin-left:0}}

/* Compact desktop home; the mobile app keeps its existing header and profile chip. */
.desktop-session{display:none}
@media(min-width:761px){
 .header{min-height:96px;gap:20px;padding-top:6px;padding-bottom:6px}
 .header .brand{width:210px;flex-basis:210px}
 .header #header-room{display:none!important}
 .header #main-nav{gap:10px;flex-wrap:nowrap}
 body[data-page=home] #app{padding-top:24px}
 .home-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;max-width:1140px;margin:0 auto 24px;text-align:left}
 .home-heading>.eyebrow{grid-column:1;grid-row:1;margin-bottom:10px}
 .home-heading h1{grid-column:1;grid-row:2;font-size:clamp(40px,4.7vw,68px);line-height:1.12;margin:0;min-width:0}
 .home-heading .desktop-home-copy{grid-column:1/-1;grid-row:3;margin:12px 0 0}
 .home-heading .desktop-session{grid-column:2;grid-row:2;align-self:center;justify-self:end;display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:340px;min-height:48px;padding:9px 18px;background:#ffdc45;color:#291b41;border:3px solid #291b41;border-radius:16px;box-shadow:0 4px 0 #291b41;font:600 22px/1.2 Fredoka,sans-serif;text-decoration:none;white-space:nowrap}
 .home-heading .desktop-session.is-signed{background:#fffcf2;font-size:21px;font-weight:400}
 .desktop-session b{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#5930ad;font-weight:600}
 .desktop-session:hover{background:#8de3c5!important}
 body[data-page=home] #app>.home-profile-panel{display:none!important}
}
@media(min-width:761px) and (max-width:1000px){
 .header{gap:12px;padding-left:20px;padding-right:20px}
 .header .brand{width:150px;flex-basis:150px}
 .header #main-nav{gap:6px}
 .header #main-nav a{font-size:15px;padding:10px}
 .home-heading{column-gap:16px}
 .home-heading .desktop-session{max-width:235px;padding:8px 12px;font-size:19px}
 .home-heading .desktop-session.is-signed{font-size:18px}
}

/* The arsenal belongs to the shared rules content, before its final call to action. */
.arsenal-rules{box-sizing:border-box;max-width:none;margin:28px 0;padding:clamp(18px,3vw,32px);color:#291b41;background:#fffcf2}
.arsenal-rules-heading{display:flex;align-items:center;gap:18px;margin-bottom:24px}.arsenal-rules-icon{display:grid;place-items:center;flex:0 0 68px;height:68px;background:#ffdc45;border:3px solid #291b41;border-radius:20px;box-shadow:0 4px #291b41;font-size:40px}.arsenal-rules-heading>div{min-width:0}.arsenal-rules-heading .eyebrow{display:block;font-size:11px;color:#795a93;margin-bottom:6px}.arsenal-rules-heading h2{font:600 clamp(27px,3vw,38px)/1.12 Fredoka,sans-serif;margin:0 0 8px;color:#5930ad}.arsenal-rules-heading p{margin:0;font-size:15px;line-height:1.5;color:#6b527f}
.arsenal-rules-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;list-style:none;counter-reset:arsenal-step;margin:0;padding:0}.arsenal-rules-steps li{position:relative;min-width:0;padding:18px 14px 16px 46px;background:#f0e6ff;border:2px solid #d8c1ed;border-radius:18px;counter-increment:arsenal-step}.arsenal-rules-steps li::before{content:counter(arsenal-step);position:absolute;top:15px;left:11px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#5930ad;color:#fff;font:600 17px Fredoka,sans-serif}.arsenal-rules-steps b{display:block;font:600 19px/1.2 Fredoka,sans-serif;margin-bottom:8px}.arsenal-rules-steps span{display:block;font:400 14px/1.55 Fredoka,sans-serif}
.arsenal-rules-group{margin-top:28px}.arsenal-rules-group>h3{font:600 26px/1.15 Fredoka,sans-serif;color:#5930ad;margin:0 0 7px}.arsenal-rules-group>p{font-size:14px;line-height:1.5;margin:0 0 16px;color:#6b527f}.malus-rules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.malus-rules-base{grid-template-columns:repeat(3,minmax(0,1fr))}.malus-rule{display:flex;align-items:flex-start;gap:14px;min-width:0;padding:18px 15px;background:#fff8dd;border:2px solid #291b41;border-radius:18px;box-shadow:0 4px #291b41}.malus-rule-art{flex:0 0 68px;display:grid;place-items:center;width:68px;height:80px}.malus-rule-art>img,.malus-rule-art>.malus-art{width:68px;height:80px;object-fit:contain}.malus-rule-copy{min-width:0;flex:1}.malus-rule h4{font:600 23px/1.1 Fredoka,sans-serif;margin:0 0 8px;color:#291b41;overflow-wrap:anywhere}.malus-rule-duration{display:inline-block;background:#e5d1ff;border-radius:9px;padding:4px 7px;font:500 12px/1.2 Fredoka,sans-serif;color:#512b87}.malus-rule p{font:400 14px/1.5 Fredoka,sans-serif;margin:10px 0 12px}.malus-rule-unlock{border-top:1px solid #d7c9a7;padding-top:10px;display:flex;flex-direction:column;gap:4px}.malus-rule-unlock b{font:600 13px Fredoka,sans-serif;color:#5930ad}.malus-rule-unlock span{font:500 14px/1.3 Fredoka,sans-serif}.malus-rule-unlock small{font:400 12px/1.3 Fredoka,sans-serif;color:#6b527f}.arsenal-rules-tip{margin:26px 0 0;padding:16px 18px;border-radius:16px;border:2px solid #ddc43f;background:#fff1ac;font:400 15px/1.6 Fredoka,sans-serif}
@media(min-width:761px) and (max-width:1100px){.malus-rules-base{grid-template-columns:1fr}.malus-rules-base .malus-rule-art{flex-basis:60px;width:60px}}
@media(max-width:760px){.arsenal-rules{padding:18px;margin:22px 0}.arsenal-rules-heading{gap:12px;align-items:flex-start}.arsenal-rules-icon{flex-basis:48px;height:48px;border-radius:14px;font-size:29px}.arsenal-rules-heading h2{font-size:27px}.arsenal-rules-heading .eyebrow{font-size:9px;letter-spacing:.8px}.arsenal-rules-heading p{font-size:14px}.arsenal-rules-steps,.malus-rules-grid{grid-template-columns:1fr}.arsenal-rules-steps{gap:10px}.arsenal-rules-group{margin-top:24px}.malus-rule{gap:12px;padding:15px 12px}.malus-rule-art{flex-basis:56px;width:56px;height:68px}.malus-rule-art>img,.malus-rule-art>.malus-art{width:56px;height:68px}.malus-rule h4{font-size:23px}.arsenal-rules-tip{padding:14px;font-size:14px}.arsenal-rules+.rules-cta{display:flex;flex-direction:column;align-items:stretch;gap:15px;text-align:center}.arsenal-rules+.rules-cta .button{white-space:normal}}

/* Uniform information, music and native exit controls. */
.header .header-info,.header #header-audio,.header .header-exit{box-sizing:border-box;display:grid;place-items:center;flex:0 0 44px;width:44px!important;min-width:44px!important;height:44px!important;padding:0;border:2px solid #291b41;border-radius:13px;background:#ffdb45;color:#291b41;box-shadow:0 3px 0 #291b41;margin:0!important;line-height:1}
.header .header-info{margin-left:auto!important}.header .header-info span{box-sizing:border-box;width:26px;height:26px;font-size:22px}.header #header-audio svg,.header .header-exit svg{width:24px;height:24px}
@media(min-width:761px){.header{column-gap:12px}}
@media(max-width:760px){.header{gap:8px!important}.header .brand{min-width:0}.header:has(.header-exit) .brand{max-width:calc(100% - 156px)}}

/* Daily solo challenge: a moving invitation and a self-contained game. */
.daily-ribbon{position:fixed;left:0;top:clamp(150px,34vh,340px);z-index:82;width:min(480px,92vw);display:flex;align-items:center;padding:0;border:0;background:none;color:#291b41;text-align:left;cursor:pointer;animation:daily-journey 17s linear infinite;filter:drop-shadow(0 6px 0 #291b4150)}
.daily-ribbon>img{position:relative;z-index:1;width:120px;height:145px;object-fit:contain;animation:daily-brain-step .4s ease-in-out infinite alternate;flex-shrink:0}
.daily-ribbon>span{position:relative;flex:1;margin-left:-15px;display:block;background:#ffdc45;border:3px solid #291b41;border-radius:14px 35px 35px 14px;padding:15px 18px 15px 22px;font:600 clamp(23px,3vw,32px)/1.05 Fredoka,sans-serif;box-shadow:0 5px #291b41}
.daily-ribbon small,.daily-ribbon strong{display:block;font:600 11px/1.3 Fredoka,sans-serif;letter-spacing:.6px}.daily-ribbon small{color:#5930ad;margin-bottom:5px}.daily-ribbon strong{margin-top:8px;font-size:14px;letter-spacing:0}
.daily-ribbon:hover,.daily-ribbon:focus-visible{animation-play-state:paused}body:has(.daily-dialog[open]) .daily-ribbon{visibility:hidden}
@keyframes daily-journey{0%{transform:translateX(calc(100vw + 30px))}18%,45%{transform:translateX(calc(50vw - 50%))}72%,100%{transform:translateX(-110%)}}
@keyframes daily-brain-step{from{transform:translateY(0) rotate(-4deg)}to{transform:translateY(-5px) rotate(3deg)}}
.daily-dialog{box-sizing:border-box;width:min(800px,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;color:#291b41;background:#fffcf2;border:4px solid #291b41;border-radius:26px;box-shadow:0 7px #291b41;overflow:auto}
.daily-dialog::backdrop{background:#190d39d9;backdrop-filter:blur(4px)}.daily-heading{position:relative;padding:24px 65px 20px 26px;background:#ffdc45;border-bottom:3px solid #291b41}.daily-heading h2{font:600 clamp(27px,4vw,38px)/1.1 Fredoka,sans-serif;color:#5930ad;margin:7px 0}.daily-heading p{margin:0;font:500 14px Fredoka,sans-serif}.daily-heading .eyebrow{font-size:10px;letter-spacing:1px}
.daily-close svg{display:block;width:22px;height:22px;pointer-events:none}
.daily-close{position:absolute;right:16px;top:19px;display:grid;place-items:center;width:40px;height:40px;padding:0;background:#fffcf2;border:2px solid #291b41;border-radius:12px;box-shadow:0 3px #291b41;font:500 32px/1 Fredoka,sans-serif;color:#291b41;cursor:pointer}
.daily-content{padding:24px 26px}.daily-rules>img{float:right;object-fit:contain;margin:0 0 10px 15px}.daily-rules h3{font:600 27px/1.1 Fredoka,sans-serif;margin:0 0 20px}.daily-rules ul{padding-left:22px;margin:0 0 20px}.daily-rules li{font:400 16px/1.55 Fredoka,sans-serif;margin:0 0 12px}.daily-rules>.button{display:block;width:100%;margin-top:14px}.daily-editorial-note{font-size:12px;color:#786386}.daily-content>.form-error:empty{display:none}
.daily-progress{display:flex;justify-content:space-between;padding:10px 14px;border-radius:12px;background:#eee3ff;font:600 17px Fredoka,sans-serif;color:#5930ad}.daily-play{display:grid;grid-template-columns:175px minmax(0,1fr);gap:18px;align-items:center;margin:16px 0}.daily-wheel .quiz-wheel-stage{width:170px}.daily-wheel .quiz-wheel-caption{display:none}.daily-question{display:flex;gap:15px;align-items:center;min-width:0}.daily-letter{flex-shrink:0;display:grid;place-items:center;width:54px;height:62px;border:3px solid #291b41;border-radius:15px;background:#65dcba;color:#291b41;font:600 37px Fredoka,sans-serif;box-shadow:0 3px #291b41}.daily-question h3{font:600 26px/1.2 Fredoka,sans-serif;margin:0;overflow-wrap:anywhere}
.daily-timer{display:flex;align-items:center;gap:7px;margin:14px 0;font:500 14px Fredoka,sans-serif}.daily-timer>[data-daily-seconds]{font-size:24px;min-width:28px}.daily-timer>div{margin-left:10px;flex:1;height:12px;border-radius:10px;background:#ded0eb;overflow:hidden}.daily-timer i{display:block;height:100%;background:#7540ce;transition:width .15s linear}
#daily-answer-form{display:flex;gap:10px;margin:15px 0}#daily-answer{box-sizing:border-box;min-width:0;flex:1;width:100%;border:2px solid #bda4cf;background:#fff;padding:12px;border-radius:12px;font:500 19px Fredoka,sans-serif;color:#291b41}#daily-answer-form .button{font-size:20px;padding:10px 18px}
.daily-solutions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0 12px}.daily-solutions>div{display:flex;flex-direction:column;justify-content:space-between;min-width:0;border:2px solid #291b41;border-radius:14px;background:#ffdc45;overflow:hidden;text-align:center;box-shadow:0 3px #291b41}.daily-solutions>div:nth-child(2){background:#7540ce;color:#fff}.daily-solutions>div:nth-child(3){background:#65dcba}.daily-solutions span{display:block;padding:12px 7px;overflow-wrap:anywhere;font:600 20px/1.1 Fredoka,sans-serif}.daily-solutions b{display:block;padding:8px 3px;border-top:1px solid #291b4140;font:500 14px Fredoka,sans-serif}.daily-verdict{display:flex;justify-content:space-between;gap:12px;font:500 18px Fredoka,sans-serif;padding:12px;background:#fff1ac;border-radius:12px}.daily-next{font:400 14px/1.5 Fredoka,sans-serif;text-align:center;color:#786386}
.daily-result{text-align:center}.daily-result>span{font-size:60px}.daily-result>h3{font:600 34px Fredoka,sans-serif;margin:10px 0}.daily-result>strong{font:600 48px Fredoka,sans-serif;color:#5930ad}.daily-result>strong small{font-size:23px}.daily-result>p{font-size:16px;line-height:1.5}.daily-ranking{text-align:left;margin:22px 0}.daily-ranking h3{font:600 28px Fredoka,sans-serif;color:#5930ad;margin:0 0 10px}.daily-ranking p,.daily-ranking>small{font:400 14px/1.5 Fredoka,sans-serif;color:#786386}.daily-ranking ol{list-style:none;padding:0;margin:14px 0}.daily-ranking li{display:flex;align-items:center;gap:12px;padding:12px;background:#f0e6ff;border:2px solid #d8c1ed;border-radius:13px;margin-bottom:8px;font:500 19px Fredoka,sans-serif}.daily-ranking li.is-you{background:#fff1ac;border-color:#ddbd35}.daily-ranking li>span{flex:1;overflow-wrap:anywhere;min-width:0}.daily-ranking li>strong{white-space:nowrap}.daily-ranking li small{font-size:12px}
@media(max-width:760px){.daily-ribbon>img{width:90px;height:110px}.daily-ribbon>span{padding:12px 12px 12px 18px;font-size:24px}.daily-ribbon small{font-size:9px}.daily-ribbon strong{font-size:12px}.daily-dialog{border-radius:22px}.daily-content{padding:18px 16px}.daily-heading{padding:20px 58px 17px 18px}.daily-heading h2{font-size:29px}.daily-heading .eyebrow{font-size:8px}.daily-rules li{font-size:15px}.daily-play{grid-template-columns:100px minmax(0,1fr);gap:12px}.daily-wheel .quiz-wheel-stage{width:100px}.daily-question{flex-direction:column;align-items:flex-start;gap:10px}.daily-letter{width:40px;height:42px;font-size:27px;border-radius:10px}.daily-question h3{font-size:21px}.daily-progress{font-size:15px}.daily-timer{font-size:12px}.daily-solutions{gap:7px}.daily-solutions span{font-size:17px}.daily-solutions b{font-size:12px}.daily-close{width:36px;height:36px;right:12px;top:18px}.daily-heading p{font-size:12px}#daily-answer{font-size:17px}#daily-answer-form .button{padding:10px 13px;font-size:18px}}
@media(prefers-reduced-motion:reduce){.daily-ribbon{animation:none;top:auto;bottom:calc(var(--app-nav-height,0px) + 18px);left:50%;transform:translateX(-50%)}.daily-ribbon>img{animation:none}.daily-timer i{transition:none}}



.daily-rules>.button,.daily-content>[data-daily-back],.daily-result>.button{font:600 20px Fredoka,sans-serif;min-height:50px}.daily-verdict{overflow-wrap:anywhere}

/* Readable headings and viewport bounds on older Android browser engines. */
.legacy-text h1,.legacy-text h2{-webkit-text-stroke:0!important;text-shadow:-2px -2px 0 #291b41,2px -2px 0 #291b41,-2px 2px 0 #291b41,2px 2px 0 #291b41,0 4px 0 #291b41!important}
@media(max-width:760px){.legacy-viewport body[data-page] #app{top:var(--shell-header-height,78px);left:0;right:0;bottom:var(--shell-nav-space,var(--app-nav-height))}.legacy-viewport .app-bottom-nav{bottom:0}.legacy-viewport .daily-dialog,.legacy-viewport .app-exit-dialog{max-height:calc(var(--chat-viewport-height,100vh) - 24px)}}

/* Compact proposal archive, accessible with mouse, touch and keyboard. */
.author-proposals>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;color:#291b41}
.author-proposals>summary::-webkit-details-marker{display:none}
.author-proposals>summary>span:first-child{display:grid;gap:7px;min-width:0}
.author-proposals>summary b{font:600 28px/1.15 Fredoka,sans-serif}
.author-proposals>summary small{font-size:13px;line-height:1.5;color:#70577c}
.author-proposals>summary:focus-visible{outline:3px solid #7940d4;outline-offset:7px;border-radius:8px}
.proposals-chevron{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border:2px solid #291b41;border-radius:12px;background:#ffdc45;font:bold 30px/1 sans-serif}
.author-proposals[open] .proposals-chevron{transform:rotate(180deg)}
.author-proposals .proposal-list{margin-top:20px}
.tutorial-copy strong{font-weight:700}

@media(max-width:760px) and (max-height:760px){
 .tutorial-dialog[data-step="2"] .tutorial-question-scene{max-width:250px;gap:8px;padding-top:4px}
 .tutorial-dialog[data-step="2"] .tutorial-demo-question{padding:9px}
 .tutorial-dialog[data-step="2"] .tutorial-demo-tokens{margin-bottom:6px}
 .tutorial-dialog[data-step="2"] .tutorial-demo-tokens>span{width:36px;height:36px;font-size:27px}
 .tutorial-dialog[data-step="2"] .tutorial-demo-tokens>b{font-size:16px;padding:4px 7px}
 .tutorial-dialog[data-step="2"] .tutorial-demo-question h2{font-size:19px;margin:4px 0 7px}
 .tutorial-dialog[data-step="2"] .tutorial-demo-answer{font-size:19px;padding:4px 8px}
 .tutorial-dialog[data-step="2"] .tutorial-demo-send{font-size:18px;padding:4px;margin-top:6px}
 .tutorial-dialog[data-step="2"] .tutorial-demo-solutions b{font-size:22px}
 .tutorial-dialog[data-step="2"] .tutorial-demo-solutions span{font-size:12px;padding:3px 1px}
 .tutorial-dialog[data-step="2"] .tutorial-copy{padding:10px}
 .tutorial-dialog[data-step="2"] .tutorial-copy h1{font-size:22px}
}

.daily-history{margin:20px 0 0;border:2px solid #d8c1ed;border-radius:14px;padding:12px;background:#fffaf0;text-align:left}.daily-history summary{cursor:pointer;color:#5930ad;font:600 17px Fredoka,sans-serif}.daily-history section{padding:12px 0;border-top:1px solid #d8c1ed;margin-top:12px}.daily-history h3{font:600 18px/1.3 Fredoka,sans-serif;margin:0}.daily-history p{font:400 15px/1.4 Fredoka,sans-serif;overflow-wrap:anywhere}.daily-history .daily-solutions{margin-top:12px}

.daily-singular{margin:0 0 12px;padding:12px;text-align:center;border:2px solid #291b41;border-radius:12px;background:#ffdc45;color:#291b41;font:500 16px/1.3 Fredoka,sans-serif}.daily-singular strong{font-weight:700}.daily-pause{display:block;width:100%;margin:16px 0}

.daily-question:has(.daily-person-hint){flex-wrap:wrap}.daily-person-hint{flex-basis:100%;margin:0;padding:9px 11px;border:2px solid #5930ad;border-radius:10px;background:#ffed92;color:#291b41;font:600 15px/1.3 Fredoka,sans-serif}

/* Recupero PIN: scheda autonoma e spaziature coerenti nel profilo mobile. */
@media(max-width:760px){
 .profile-page>.profile-security-card{margin:24px 0;padding:24px 20px;gap:22px}
 .profile-page>.profile-security-card .profile-security-heading{align-items:center;gap:14px}
 .profile-page>.profile-security-card .profile-security-heading h2{font-size:26px;line-height:1.2}
 .profile-page>.profile-security-card>p{margin:0;line-height:1.75}
 .profile-page>.profile-security-card .actions{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0;padding:0 0 5px}
 .profile-page>.profile-security-card .actions>.button{width:100%;min-height:52px;margin:0;padding:12px 16px}
 .profile-page>.pin-recovery-card{padding:24px 20px;gap:24px!important}
 .profile-page>.pin-recovery-card .profile-intro h2{margin:10px 0 14px;line-height:1.25}
 .profile-page>.pin-recovery-card .profile-intro p{margin:0;line-height:1.75}
 .profile-page>.pin-recovery-card .profile-form{gap:18px}
}
