:root{--glass-line:rgba(139,218,244,.48)}
.app{background:rgba(5,25,39,.64)!important;backdrop-filter:blur(5px)}
.hero,.practice-entry,.mode-card,.pause-card,.empty-state{background-color:rgba(12,46,66,.5)!important}
.game-details{margin:14px 0;padding:12px 16px;background:#102b3c70;border:1px solid #648fa477;border-radius:14px;font-size:14px}.game-details summary{min-height:24px;cursor:pointer;font-weight:650;color:#96e8f0}.game-details li{margin:9px 0;line-height:1.5}.game-details p{line-height:1.6}
body[data-screen=intro] .app{padding-bottom:90px}body[data-screen=intro] h1{margin:10px 0;font-size:28px}body[data-screen=intro] .instructions{margin:10px 0;font-size:16px}body[data-screen=intro] .details{margin:10px 0}body[data-screen=intro] .tier-picker{margin:12px 0}body[data-screen=intro] #start{min-height:48px}body[data-screen=intro] .local-note{font-size:12px;margin:10px 0}
body.playing-now{overflow:hidden}body.playing-now .app{height:100dvh;min-height:0!important;margin:0 auto!important;padding:6px 12px max(8px,env(safe-area-inset-bottom))!important;border-radius:0;box-sizing:border-box;overflow:hidden}
body.playing-now .app>header,body.playing-now footer,body.playing-now .bottom-tabs{display:none!important}
body.playing-now #content{height:100%;min-height:0;display:flex;flex-direction:column;gap:4px;padding:0!important}
body.playing-now .session-toolbar{position:static!important;height:52px;min-height:52px;padding:0 4px!important;margin:0!important;background:transparent!important;border-bottom:1px solid #7296a633;flex-shrink:0}
body.playing-now .session-logo{height:50px!important;width:50px!important}body.playing-now .session-pause{min-height:44px;padding:8px 16px}
body.playing-now .session-mode{margin:0!important;text-align:center;font-size:10px}body.playing-now .game-head{margin:0!important;min-height:40px;flex-shrink:0}body.playing-now .game-head h2{font-size:20px;line-height:1.15;margin:0!important}body.playing-now .round-meta{font-size:11px;margin:3px 0!important}
body.playing-now .progress{height:3px;min-height:3px;margin:2px 0!important;flex-shrink:0}body.playing-now .session-help{display:none}
body.playing-now #question-area{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 1px 8px;box-sizing:border-box}
body.playing-now #feedback:empty{display:none}body.playing-now #feedback{min-height:0;padding:6px;font-size:14px;margin:0;line-height:1.3}
#round-actions{flex:0 0 auto;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 0 0;border-top:1px solid #79b9ca66;background:rgba(6,29,41,.92)}#round-actions #feedback{grid-column:1/-1;font-size:13px}#round-actions .primary,#round-actions .secondary{min-height:44px;margin:0!important;padding:8px;font-size:14px}#round-actions #next:only-of-type{grid-column:1/-1}#round-actions:not(:has(#retry-answer)) #next{grid-column:1/-1}
body.playing-now .question-label{font-size:14px;margin:4px 0 8px}body.playing-now .equation{font-size:clamp(30px,7vw,48px);margin:14px 0}body.playing-now .answers{gap:8px}body.playing-now .answer{min-height:52px;padding:10px}
body.playing-now .board{margin:6px auto;gap:5px;max-width:min(100%,calc(100dvh - 235px))}body.playing-now .tile{min-height:0!important;aspect-ratio:1;border-radius:8px;padding:2px;font-size:clamp(16px,5vw,24px)}
body.playing-now .board.clearing-rectangles{max-width:min(100%,calc((100dvh - 250px)*.75))}
body.playing-now .board.expanded-sudoku{max-width:min(100%,calc(100dvh - 290px))}
body.playing-now .board.attention{max-width:min(100%,calc(100dvh - 220px))}
.tile,.answer{background:linear-gradient(145deg,#3282a22e,#072a474d)!important;border:1px solid var(--glass-line)!important;box-shadow:inset 0 1px 1px #fff3,0 3px 7px #0003;color:#f3fcff}
#question-area .board.attention .tile.number-tint:not(.found){background:linear-gradient(145deg,hsl(var(--number-tint) 70% 55%/.23),hsl(var(--number-tint) 65% 25%/.18))!important}
.tile.picked,.tile.active-cell{outline:2px solid #91f6f1;outline-offset:-2px;background-color:#42d8df40!important}
.tile.good,.tile.found{background:#33d7bb55!important;border-color:#99ffec!important}.tile.bad{background:#ecb84d44!important;border-color:#ffce80!important}
.memory .tile.lit,.memory .tile.memory-color-0{background:#438ff9bb!important;box-shadow:inset 0 2px 6px #a4e5ff,0 0 8px #4093e955}.memory .tile.memory-color-1{background:#ffb047bd!important}.memory .tile.memory-color-2{background:#eb79d3bd!important}.memory .tile.memory-color-3{background:#55d899bd!important}
.rectangle-tile{background:linear-gradient(145deg,#ffffff6b,transparent 35%,#0003),color-mix(in srgb,var(--rect-color) 66%,transparent)!important;border:2px solid #9aafbcaa!important;border-top-color:#dce6eccc!important;border-bottom-color:#456476bb!important;box-shadow:inset 0 0 0 1px #dff8ff66,inset 2px 3px 5px #fff4,inset -2px -3px 5px #001c3655,0 2px 3px #0006!important;border-radius:6px!important}
.group-tile{background:linear-gradient(145deg,#ffffff66,transparent 35%,#0002),color-mix(in srgb,var(--group-color) 70%,transparent)!important;box-shadow:inset 1px 2px 4px #fff5,inset -2px -3px 5px #001c3644,0 2px 3px #0004!important}
#question-area .board.rectangles .tile.rectangle-tile{background:linear-gradient(145deg,#ffffff70,transparent 36%,#0003),color-mix(in srgb,var(--rect-color) 60%,transparent)!important;border:2px solid #9eafbcaa!important;border-top-color:#edf5facc!important;border-bottom-color:#385569cc!important;box-shadow:inset 0 0 0 1px #dbfaff66,inset 2px 3px 5px #fff5,inset -2px -3px 5px #001c3666,0 2px 3px #0006!important;border-radius:5px!important}
#question-area .board .tile.group-tile{background:linear-gradient(145deg,#ffffff66,transparent 35%,#0002),color-mix(in srgb,var(--group-color) 65%,transparent)!important;box-shadow:inset 1px 2px 4px #fff5,inset -2px -3px 5px #001c3644,0 2px 3px #0004!important}
.sudoku-pad{grid-template-columns:repeat(5,minmax(0,1fr))!important}.sudoku-pad button{min-width:0!important}.sudoku-pad [data-digit="0"]{font-size:13px!important}
.sudoku .tile{font-size:clamp(18px,5.3vw,28px)!important;font-weight:750;background:#167b9560!important;color:#b2fff0!important}.sudoku .tile.given{background:#575ba666!important;color:#fff5db!important;opacity:1}.sudoku .tile.block-left{border-left:2px solid #b2aaf3!important}.sudoku .tile.block-top{border-top:2px solid #b2aaf3!important}.sudoku-pad{display:grid!important;grid-template-columns:repeat(5,1fr);gap:5px;margin:6px 0!important}.sudoku-pad button{min-height:38px!important;padding:4px;font-size:18px}
#question-area .links-board .tile{background:linear-gradient(140deg,hsl(var(--digit-hue) 85% 68%/.28),hsl(var(--digit-hue) 70% 35%/.16))!important;border-color:hsl(var(--digit-hue) 75% 75%/.55)!important;color:hsl(var(--digit-hue) 90% 90%)!important;text-shadow:0 0 9px hsl(var(--digit-hue) 90% 60%/.3)}
.links-scroll{max-height:none!important;overflow:auto;margin:4px 0!important}.links-board{max-width:100%!important}.links-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:sticky;bottom:0;background:#102733b8;padding:6px 0}.links-controls button{min-height:44px;padding:8px;font-size:14px}.links-notice{font-size:12px!important;min-height:17px;margin:4px 0!important}.hint-link{outline:3px solid #fff3a4!important;outline-offset:-2px;box-shadow:0 0 14px #f3d96299!important}.invalid-link{outline:2px solid #f1b878;outline-offset:-2px}
.chess-board{width:min(100%,calc(100dvh - 230px))!important;margin:6px auto!important;gap:0!important}.chess-square{background:#a9c7d7c9!important;border-radius:0!important;padding:0!important;min-height:0!important;aspect-ratio:1}.chess-square.dark-square{background:#326278d6!important}.chess-square span{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.chess-piece-svg{width:92%;height:92%;filter:drop-shadow(0 1px 1px #0005)}.chess-square small{display:none!important}#chess-help{font-size:12px;margin:6px 0}
body[data-active-game=meaning] .answers,body[data-active-game=spelling] .answers,body[data-active-game=english] .answers{grid-template-columns:1fr!important}body[data-active-game=meaning] [data-choice],body[data-active-game=spelling] [data-choice],body[data-active-game=english] [data-choice]{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;min-width:0;overflow:hidden;padding:10px 8px!important;line-height:1.3}
@media(max-height:700px){body.playing-now .session-toolbar{height:44px;min-height:44px}body.playing-now .session-logo{height:42px!important;width:42px!important}body.playing-now .game-head h2{font-size:17px}body.playing-now .session-mode{display:none}body.playing-now .tile{font-size:18px}body.playing-now .sudoku .tile{font-size:18px!important}}

/* Touch controls and matching glass tiles. */
.tier-picker::after{display:none!important}.difficulty-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;margin-top:7px;padding:12px 18px;border:1px solid #76cddb99;border-radius:14px;background:#133f5377;color:#e9fbff;font:inherit;font-weight:650;text-align:left}.difficulty-trigger span{font-size:25px;color:#75edee}
.difficulty-dialog{width:min(360px,calc(100vw - 32px));max-height:85dvh;box-sizing:border-box;border:1px solid #68d5df99;border-radius:22px;padding:18px;background:#0b2735ed;color:#f1fbff;backdrop-filter:blur(18px);box-shadow:0 20px 65px #0008}.difficulty-dialog::backdrop{background:#00121bbb;backdrop-filter:blur(5px)}.difficulty-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.difficulty-heading h2{font-size:22px;margin:0}.difficulty-heading button{min-width:44px;min-height:44px;padding:4px;font-size:24px}.difficulty-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.difficulty-options button{min-height:52px;border:1px solid #81ced855;border-radius:12px;background:#24617955;color:#effaff;font:inherit;font-weight:650}.difficulty-options button[aria-pressed=true]{background:#39b6c077;border-color:#85f5eb;box-shadow:inset 0 0 0 1px #8dffe855}.difficulty-options button:focus-visible,.difficulty-trigger:focus-visible{outline:3px solid #ffee9f;outline-offset:2px}
#question-area .board .tile.group-tile{background:linear-gradient(145deg,#ffffff70,transparent 36%,#0003),color-mix(in srgb,var(--group-color) 60%,transparent)!important;border:2px solid #9eafbcaa!important;border-top-color:#edf5facc!important;border-bottom-color:#385569cc!important;box-shadow:inset 0 0 0 1px #dbfaff66,inset 2px 3px 5px #fff5,inset -2px -3px 5px #001c3666,0 2px 3px #0006!important;border-radius:5px!important}
#question-area .tile.invalid-corner{outline:2px solid #ffc784;outline-offset:-2px}#question-area .group-preview{outline:2px solid #e2fff8!important;outline-offset:-2px;filter:brightness(1.2)}
#question-area .sudoku{gap:2px!important;padding:2px;border:2px solid #c2eafa;border-radius:5px;background:#052031bb}#question-area .sudoku .tile{border-radius:3px!important}#question-area .sudoku .tile.block-left{border-left:3px solid #d1efff!important}#question-area .sudoku .tile.block-top{border-top:3px solid #d1efff!important}
#question-area .sudoku-pad{gap:7px;margin:12px 0!important}#question-area .sudoku-pad button{min-height:52px!important;font-size:24px;font-weight:700;border:1px solid #81e3e099;background:#21667e80}#question-area .sudoku-pad [data-digit="0"]{font-size:13px!important}body.playing-now .board.expanded-sudoku{max-width:min(100%,calc(100dvh - 380px))}
.arithmetic-entry{max-width:360px;margin:0 auto}.arithmetic-entry label{display:block;font-size:13px;margin-bottom:5px}.arithmetic-entry input{width:100%;box-sizing:border-box;text-align:center;font-size:30px;line-height:1.3;min-height:54px;border:1px solid #88e9e899;border-radius:12px;background:#183f5770;color:#f4feff}.number-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}.number-keypad button{min-height:48px!important;font-size:23px;font-weight:650;padding:7px!important}.arithmetic-entry>.primary{width:100%;min-height:48px}.arithmetic-entry input.good{border-color:#74ffe3}.arithmetic-entry input.bad{border-color:#ffd18e}
@media(max-height:720px){body[data-active-game=arithmetic] .equation{font-size:28px;margin:6px 0}.number-keypad{gap:4px;margin:7px 0}.number-keypad button{min-height:42px!important}.arithmetic-entry input{min-height:44px;font-size:26px}}
.difficulty-heading button{width:44px!important;flex:0 0 44px;margin:0!important}.difficulty-heading h2{flex:1;line-height:1.2}
#question-area .sudoku{position:relative}#question-area .sudoku::after{content:"";position:absolute;inset:2px;pointer-events:none;background:repeating-linear-gradient(to right,transparent 0,transparent calc(100% / var(--blocks-x) - 2px),#b8e3ed calc(100% / var(--blocks-x) - 2px),#b8e3ed calc(100% / var(--blocks-x) + 1px),transparent calc(100% / var(--blocks-x) + 1px)),repeating-linear-gradient(to bottom,transparent 0,transparent calc(100% / var(--blocks-y) - 2px),#b8e3ed calc(100% / var(--blocks-y) - 2px),#b8e3ed calc(100% / var(--blocks-y) + 1px),transparent calc(100% / var(--blocks-y) + 1px));}
body.playing-now .board.clearing-rectangles{max-width:min(100%,calc((100dvh - 320px)*var(--rect-ratio,.75)))}
#question-area .rectangle-tile{touch-action:manipulation;transition:none!important;animation:none;user-select:none;-webkit-tap-highlight-color:transparent}#question-area .rectangle-tile.picked{outline:3px solid #e6fffc!important;outline-offset:-3px;filter:brightness(1.3)}#question-area .rectangle-tile.hint-corner{outline:3px solid #ffe59d!important;outline-offset:-3px;box-shadow:inset 0 0 10px #fff5,0 0 9px #ffe59d77!important}.rect-controls{margin-top:12px}.rect-controls button{width:100%;min-height:46px}.rect-controls .local-note{font-size:13px;line-height:1.35;margin:8px 0}
body[data-screen=home] .app>footer{display:none!important}.product-home>.home-profile{margin-bottom:18px}.product-home>.home-profile .study-avatar{width:152px!important;height:152px!important}.product-home>.home-profile>span{gap:7px}.product-home>.home-profile small{font-size:13px}.bottom-tabs button{font-size:13px!important;padding-left:4px;padding-right:4px}
@media(max-width:380px){.product-home>.home-profile .study-avatar{width:124px!important;height:124px!important}.product-home>.home-profile{gap:10px;padding:12px}.bottom-tabs button{font-size:12px!important}}
/* Airier panels, wrapped categories, and consistent branding. */
.app{background:rgba(5,25,39,.38)!important;backdrop-filter:blur(3px)!important}.hero,.practice-entry,.mode-card,.pause-card,.empty-state,.iq-card,.xp-day,.xp-result,.profile-summary,.stats,.stat,.level-map,.level-stop,.row-toggle,.result-row{background:rgba(9,41,59,.38)!important}.home-profile{background:rgba(7,31,47,.26)!important}.bottom-tabs{background:rgba(7,24,35,.72)!important}.game-details,.difficulty-dialog{background:rgba(9,38,53,.84)!important}.app>header{background:transparent!important}.app>footer{display:none!important}
.category-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible!important;gap:7px!important}.category-tabs button{min-width:0;width:100%;padding:10px 4px!important;font-size:14px!important;white-space:normal!important}.category-tabs button:last-child:nth-child(3n+2){grid-column:auto}
.brand{text-transform:none!important}.alpha{font-size:.5em;align-self:flex-start;position:relative;top:10px;margin-left:3px;line-height:1;color:#99eaf1}.umvion-welcome h1 .alpha{top:-.6em;font-size:.42em}
body[data-active-game=mines].playing-now,body[data-active-game=mines].playing-now *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}.mine-tile{touch-action:manipulation!important}
.iq-card,.xp-day,.xp-result{border:1px solid #70b9c366;border-radius:20px;padding:20px;margin:18px 0}.iq-card h2,.xp-day h2{margin:6px 0 12px;font-size:24px}.iq-card p,.xp-day p,.xp-result p{font-size:15px;line-height:1.5}.iq-caption{color:#c7dfe8;font-size:14px!important;line-height:1.5}.iq-card button{width:100%;min-height:48px}.xp-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.xp-slots span{font-size:12px;line-height:1.4;border:1px solid #6fcad355;border-radius:10px;padding:10px 5px;text-align:center}.xp-slots strong{display:block;font-size:14px;margin-top:6px;color:#9df9e8}.iq-history{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}.iq-history th,.iq-history td{padding:12px 5px;border-bottom:1px solid #76c8d344;text-align:left;overflow-wrap:anywhere}.iq-history small{display:block;font-size:12px;color:#b5d0dc;margin-top:4px}
/* Keep touch/wheel scrolling available without visible scrollbar tracks. */
html,body,*{scrollbar-width:none!important}::-webkit-scrollbar{width:0!important;height:0!important}
.product-home>.hero,.product-home>.practice-entry{display:flex!important;flex-direction:column;gap:12px;padding:24px!important;border:1px solid #6cc5d566!important;border-radius:22px!important;background:rgba(9,41,59,.38)!important;box-shadow:inset 0 1px 0 #d5ffff12!important;text-align:left!important;margin:18px 0!important}
.product-home>.hero::before,.product-home>.hero::after,.product-home>.practice-entry::before,.product-home>.practice-entry::after{display:none!important}.product-home>.hero h2,.product-home>.practice-entry h2{font-size:26px!important;line-height:1.25!important;margin:0!important;font-weight:750;text-align:left!important}.product-home>.hero p,.product-home>.practice-entry p{font-size:16px!important;line-height:1.5!important;margin:0!important}.product-home>.hero .label,.product-home>.practice-entry .label{font-size:12px;letter-spacing:.12em;color:#86eaf0}.product-home>.hero button,.product-home>.practice-entry button{width:100%;min-height:52px!important;margin:6px 0 0!important;border:1px solid #9cf9fa!important;border-radius:14px!important;background:linear-gradient(110deg,#60dce1,#53c1d9)!important;color:#032c3d!important;font-size:17px!important;font-weight:750!important}
.study-avatar{background:#183747;content-visibility:auto}

/* Keep long Number Links boards inside the available phone viewport. */
body.playing-now[data-active-game=links] #question-area{display:flex;flex-direction:column;overflow:hidden}
body.playing-now[data-active-game=links] .links-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
body.playing-now[data-active-game=links] .links-controls{position:static;flex-shrink:0}
body.playing-now[data-active-game=links] .links-notice,body.playing-now[data-active-game=links] .question-label{flex-shrink:0}
body[data-screen=pause] .pause-card{width:100%;max-width:none;margin:20px 0 0;padding:24px;box-sizing:border-box;border-radius:22px}
body[data-screen=pause] .pause-card .stack{display:grid;width:100%;gap:10px}
body[data-screen=pause] .pause-card .stack>button{width:100%;min-height:52px;margin:0}
body[data-screen=pause] .pause-audio{padding:0;border:0;background:transparent}
body[data-screen=pause] .pause-help{padding:14px;margin:16px 0}

/* Compact home and read-only profile. */
.product-home{gap:12px!important}.product-home>*,.product-home .hero,.product-home .practice-entry,.product-home .iq-card,.product-home .xp-day{margin-top:0!important;margin-bottom:0!important}.product-home .hero,.product-home .practice-entry,.product-home .iq-card{padding:18px 22px!important;gap:8px!important}.product-home h2,.product-home p{margin:0!important}.product-home .home-profile{padding:10px 14px!important}.brand{gap:8px!important}.brand .alpha{font-size:.75em!important;margin-left:-5px!important;align-self:flex-start;line-height:1;padding-top:5px}.welcome-title .alpha{font-size:.7em;margin-left:1px}
.profile-readonly{display:grid;gap:14px}.profile-readonly .profile-summary{display:flex;align-items:center;gap:18px;padding:18px;border-radius:20px}.profile-readonly .study-avatar{width:100px;height:100px;flex-shrink:0}.profile-readonly h2{overflow-wrap:anywhere}.profile-editor{width:min(570px,calc(100vw - 24px));max-height:90dvh;padding:22px;border:1px solid #78cbd977;border-radius:22px;background:#0d2735f5;color:#eefbff;overscroll-behavior:contain}.profile-editor::backdrop{background:#001019bd;backdrop-filter:blur(5px)}.profile-editor .dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:-22px;background:#0d2735;z-index:2;padding:12px 0}.profile-editor button{min-height:44px}.nickname-suggestions{display:flex;flex-wrap:wrap;gap:8px}.help-page details{padding:14px 0;border-bottom:1px solid #78cbd944}.help-page summary{min-height:44px;cursor:pointer;font-size:18px;font-weight:650}.help-page p,.help-page li{line-height:1.6}.help-page a{color:#96ebf1}.help-page .help-search{width:100%;margin:10px 0}.help-page .level-road{max-width:100%}

.research-title{font-size:19px;margin:12px 0;text-align:center}#research-field{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;overflow:auto}.research-matrix{display:block;object-fit:contain;width:100%;max-height:calc(100dvh - 320px);min-height:120px;background:white;border-radius:12px}.research-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.research-choice{min-width:0;padding:5px;border:1px solid #85dfe5;border-radius:10px;background:white;color:#102b3c;min-height:70px}.research-choice img{width:100%;height:58px;object-fit:contain}.research-choice span{display:block;font-size:15px}.research-choice:focus-visible{outline:3px solid #ffc879}.research-choice:disabled{opacity:.5}#research-feedback{font-size:14px;line-height:1.5;text-align:center}body[data-screen=research-play] .bottom-tabs{display:none!important}
