@charset "UTF-8";
:root{--bg:#f6f5f0;--paper:#fffefa;--ink:#293f3b;--muted:#6d7770;--green:#284e45;--mint:#e0e9dd;--line:#e3e6dc;--lilac:#e9e3f1;--peach:#f2e6d9;--shadow:0 10px 40px #263f3810;--serif:Georgia,'Times New Roman',serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #937dab;outline-offset:4px}button svg,span svg{vertical-align:middle}svg.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:400}h1,h2{font-family:var(--serif)}.skip{position:fixed;top:-70px;left:20px;z-index:100;background:white;padding:10px}.skip:focus{top:10px}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#fbfbf6;border-right:1px solid var(--line);padding:36px 24px 24px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;margin-bottom:55px}.brand>span{font-family:var(--serif);font-size:27px;letter-spacing:-1px;line-height:1.1}.brand-caption{display:block;font:8px system-ui;letter-spacing:2px;margin-top:8px;color:var(--muted)}.sidebar-label{font-size:9px;letter-spacing:2px;color:#859087;margin:0 12px 16px}.nav-link{display:flex;gap:13px;align-items:center;padding:13px 15px;border-radius:10px;margin-bottom:8px;font-size:14px;color:#6b766e;transition:.2s}.nav-link.active{background:#e5ede2;color:var(--green);font-weight:600}.nav-link:hover{background:#edf0e7}.nav-dot{margin-left:auto;width:6px;height:6px;background:#9ea988;border-radius:50%}.side-note{margin-top:auto;padding:42px 14px 34px}.tiny-star{font-size:25px;color:#a4ab8d}.side-note p{font:20px/1.35 var(--serif);margin:10px 0}.side-note>span:last-child{font-size:11px;color:var(--muted)}.profile{border:0;border-top:1px solid var(--line);padding:21px 0 0;background:none;display:flex;gap:10px;align-items:center;text-align:left}.avatar{background:#ece6d9;border-radius:50%;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:18px;flex-shrink:0}.profile strong{font-size:12px;font-weight:600;display:block}.profile small{font-size:10px;color:var(--muted)}.profile-edit{margin-left:auto;color:#8a948b}.workspace{margin-left:238px;width:calc(100% - 238px)}.topbar{height:85px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 45px}.topbar-title{color:#7c867d;font-size:12px}.topbar-right{display:flex;align-items:center;gap:25px}.tempo{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.tempo .icon{width:15px;height:15px}.glints{padding:7px 12px;border:1px solid #dedfcf;background:#f2f0e4;border-radius:22px;font-size:12px;display:flex;gap:7px;align-items:center}.glints .icon{width:15px;height:15px;color:#9d9566}main{max-width:1390px;margin:auto;padding:38px 45px 28px;min-height:calc(100vh - 145px)}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#7a8978;margin-bottom:9px;display:flex;gap:8px;align-items:center}.eyebrow .icon{width:14px;height:14px}h1{font-size:39px;letter-spacing:-1.2px;line-height:1.2;margin-bottom:10px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-header p{color:var(--muted);font-size:13px;margin:0}.mode-switch{display:flex;background:#edeFE6;border:1px solid #e4e7dc;padding:4px;border-radius:25px;flex-shrink:0}.mode-switch button{border:0;border-radius:20px;background:none;padding:8px 15px;font-size:11px;display:flex;gap:7px;align-items:center}.mode-switch button.active{background:var(--paper);box-shadow:0 2px 5px #284e4512}.mode-switch .icon{width:14px;height:14px}.overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 274px;gap:22px}.hero{border-radius:17px;overflow:hidden;position:relative;min-height:372px;background:#697f73;isolation:isolate}.hero img{width:100%;height:100%;position:absolute;object-fit:cover;object-position:center 45%;z-index:-2}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#142d2715 20%,#163f3080 65%,#183b34ea);z-index:-1}.hero-badge{position:absolute;top:22px;left:25px;color:#fff6df;background:#ffffff1e;backdrop-filter:blur(10px);border:1px solid #fff3d933;border-radius:20px;padding:6px 12px;font-size:9px;letter-spacing:1.3px}.hero-corner{position:absolute;right:24px;top:22px;display:flex;gap:6px;align-items:center;font-size:10px;color:#fbf5df}.hero-corner .icon{width:13px;height:13px}.hero-content{position:absolute;left:28px;bottom:27px;right:28px;color:#f9f5e9}.hero-content .eyebrow{color:#dce0c8;font-size:9px;margin-bottom:8px}.hero h2{font-size:33px;line-height:1.15;margin:0 0 8px}.hero p{font-size:12px;max-width:420px;color:#e3e8d9;line-height:1.6;margin-bottom:18px}.btn{border:0;border-radius:8px;padding:12px 19px;background:var(--green);color:#fffdf6;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:550;font-size:12px;min-height:43px;transition:transform .2s,background .2s}.btn:hover{background:#365e53;transform:translateY(-1px)}.btn .icon{width:16px;height:16px}.btn-light{background:#f4f3e4;color:#2f4a3c}.btn-light:hover{background:white}.btn-secondary{background:#ecefe5;color:var(--green)}.btn-secondary:hover{background:#e1e7d9}.btn-purple{background:#e9e3f1;color:#65567c}.btn-purple:hover{background:#ded5e9}.btn:disabled{background:#e1e3da;color:#879085;transform:none}.card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:22px}.progress-card{height:100%;display:flex;flex-direction:column}.card-title{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;margin-bottom:4px}.card-title .icon{color:#7e8b72;width:18px;height:18px}.card-subtitle{font-size:11px;color:var(--muted);margin-bottom:20px}.mini-island{height:103px;background:radial-gradient(ellipse at 50% 80%,#e1e8d6 0%,#fbfaf3 68%);display:flex;align-items:center;justify-content:center;margin:2px 0 14px;border-radius:10px}.mini-island svg{width:170px;height:100px}.chapter-dots{display:flex;justify-content:space-between;align-items:center;position:relative;margin:8px 0 14px}.chapter-dots:before{content:'';position:absolute;left:8px;right:8px;height:1px;background:#d9e0d1}.chapter-dot{position:relative;width:27px;height:27px;border-radius:50%;background:#f2f3eb;border:1px solid #dce2d5;color:#8c967d;display:flex;align-items:center;justify-content:center;font-size:10px}.chapter-dot.done{background:#678467;color:#fff;border-color:#678467}.chapter-dot.current{border-color:#7e9778;background:#f4f5e7;box-shadow:0 0 0 3px #e7ecde}.progress-text{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#7c877a;margin-bottom:8px}.progress-text strong{color:#4e664d;font-weight:500}.progress-track{height:4px;background:#edf0e4;border-radius:5px;overflow:hidden}.progress-track span{display:block;height:100%;background:#8b9e75;border-radius:5px;transition:width .4s}.progress-card .next-unlock{border-top:1px solid var(--line);padding-top:16px;margin-top:auto;font-size:11px;color:var(--muted);display:flex;gap:10px;align-items:center}.next-unlock .icon{width:17px;color:#94a083}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:29px 0 14px}.section-heading h2{font-size:23px;margin:0;letter-spacing:-.5px}.text-button{border:0;background:none;padding:5px 0;font-size:11px;color:var(--muted);display:flex;gap:5px;align-items:center}.text-button .icon{width:13px;height:13px}.mission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mission-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:20px;display:flex;flex-direction:column;min-height:184px;position:relative;text-align:left;width:100%;transition:.2s}.mission-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:var(--shadow);border-color:#bacab4}.mission-card:disabled{opacity:.65}.mission-icon{width:37px;height:37px;background:var(--mint);border-radius:11px;display:flex;align-items:center;justify-content:center;margin-bottom:14px;color:#5f7b59}.mission-icon.purple{background:var(--lilac);color:#8a75a1}.mission-icon.peach{background:var(--peach);color:#ad8760}.mission-card h3{font-family:var(--serif);font-size:20px;line-height:1.2;margin:0 0 6px}.mission-card p{font-size:11px;line-height:1.6;color:var(--muted);margin-bottom:15px}.mission-meta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#859080}.mission-meta span{display:flex;align-items:center;gap:5px}.mission-meta .icon{width:12px;height:12px}.card-arrow{position:absolute;right:18px;top:22px;color:#99a08c}.card-arrow .icon{width:16px}.bottom-note{margin-top:23px;padding:15px 19px;background:#eeeee5;border:1px solid #e5e6da;border-radius:10px;display:flex;align-items:center;gap:12px;font-size:11px;color:#7d8778}.bottom-note .icon{color:#9aa184;width:17px}.bottom-note strong{color:#586852;font-weight:500}.footer{max-width:1390px;margin:auto;padding:18px 45px 24px;display:flex;justify-content:space-between;align-items:center;color:#8b9387;font-size:10px}.footer button{border:0;background:none;color:inherit;font-size:10px}.chapter-list{display:grid;gap:13px}.chapter-row{border:1px solid var(--line);background:var(--paper);border-radius:13px;padding:20px;display:flex;gap:18px;align-items:center}.chapter-row .mission-icon{margin:0;width:50px;height:50px;flex-shrink:0}.chapter-row h3{font-family:var(--serif);font-size:24px;margin:1px 0 5px}.chapter-row p{font-size:12px;color:var(--muted);margin:0}.chapter-row .btn{margin-left:auto;flex-shrink:0}.chapter-row.locked{background:#f0f1e9}.chapter-row.locked h3{color:#7e8778}.chapter-kicker{font-size:9px;letter-spacing:1px;color:#8d957f;display:flex;align-items:center;gap:7px}.room-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.room-scene{min-height:350px;display:flex;align-items:center;justify-content:center;border-radius:15px;overflow:hidden;background:#e6e8d9;position:relative;border:1px solid var(--line)}.room-scene>svg{width:100%;height:auto;min-height:300px}.room-label{position:absolute;bottom:18px;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fffcf0d9;backdrop-filter:blur(8px);border-radius:10px;padding:15px 18px}.room-label h2{font-size:23px;margin:0}.room-label span{font-size:10px;color:var(--muted)}.themes{display:flex;gap:10px;margin:15px 0 22px}.swatch{width:40px;height:40px;border:3px solid transparent;outline:1px solid #e0e4d8;border-radius:50%;background:var(--swatch)}.swatch.selected{border-color:var(--paper);outline:2px solid #6e876a}.room-choice{display:flex;gap:12px;align-items:center;text-align:left;width:100%;padding:12px;border:1px solid var(--line);background:#fbfbf5;border-radius:9px;margin:8px 0;font-size:12px}.room-choice.selected{border-color:#8c9e7b;background:#eaf0e1}.room-choice .icon{color:#6a8465}.room-choice small{display:block;color:var(--muted);font-size:10px}.group-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.team-banner{padding:25px;background:var(--lilac);border-radius:14px;border:1px solid #dfd8e7}.team-banner h2{font-size:28px;margin-bottom:10px}.team-banner p{font-size:13px;color:#70697b;max-width:600px}.players{display:flex;flex-direction:column;gap:10px;margin:22px 0}.player-row{display:flex;align-items:center;gap:12px}.player-row input{flex:1;min-width:0}.player-row button{border:0;background:transparent;color:#8c8d80;width:32px;height:38px}.input{width:100%;padding:11px 13px;border-radius:8px;border:1px solid #d7dece;background:#fffefa;font-size:13px;color:var(--ink)}.form-label{display:block;margin-bottom:7px;font-size:12px;font-weight:500}.help{font-size:11px;color:var(--muted);line-height:1.6;margin:10px 0}.small-tag{font-size:9px;letter-spacing:.7px;border:1px solid #d7d5df;background:#faf8fd;border-radius:20px;padding:5px 9px;display:inline-block;color:#82778d}.group-layout h3{font-family:var(--serif);font-size:24px}.how-list{padding:0;list-style:none;counter-reset:steps}.how-list li{counter-increment:steps;display:flex;gap:11px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.how-list li:before{content:counter(steps);border-radius:50%;background:#edf0e4;width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:10px;color:#607354}.how-list strong{display:block;color:var(--ink);font-weight:500;margin-bottom:3px}.activity{list-style:none;padding:0;margin:12px 0 0;font-size:11px;color:var(--muted)}.activity li{padding:9px 0;display:flex;gap:7px;align-items:center}.activity .icon{width:13px;height:13px;color:#7d946b}dialog{border:0;padding:0;border-radius:20px;width:min(640px,calc(100% - 32px));max-height:90dvh;background:var(--paper);color:var(--ink);box-shadow:0 24px 100px #1a302a55}dialog::backdrop{background:#1d342bb0;backdrop-filter:blur(5px)}#dialog-body{padding:30px}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-top .eyebrow{margin:0;font-size:9px}.close-button{width:32px;height:32px;border:1px solid var(--line);border-radius:50%;background:#f7f7ef;display:flex;align-items:center;justify-content:center;flex-shrink:0}.close-button .icon{width:16px;height:16px}dialog h2{font-size:31px;line-height:1.2;margin-bottom:12px;letter-spacing:-.6px}.dialog-desc{font-size:13px;color:var(--muted);line-height:1.7}.story-box{background:#f1efe4;border:1px solid #e5e2d4;border-radius:10px;padding:18px 20px;margin:18px 0;font:17px/1.6 var(--serif);color:#677356}.story-box p{margin:0}.story-box small{display:block;font:10px system-ui;letter-spacing:1px;margin-bottom:8px;color:#8b927c}.clue-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.clue-tile{padding:18px 10px;border-radius:10px;border:1px solid #e2dfd0;background:#f3f0e3;text-align:center;min-height:125px}.clue-tile .envelope{display:block;font-size:27px;margin-bottom:9px}.clue-tile strong{display:block;font:16px var(--serif);margin-bottom:5px}.clue-tile small{display:block;font-size:9px;color:var(--muted)}.clue-tile.found{background:#e9efdf;border-color:#cad6be}.clue-tile.found p{font-size:11px;margin:10px 0 0}.clue-tile.found .owner{font-size:9px;color:#708260;margin-top:9px}.owner-select{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);background:#f4f5ee;border-radius:8px;font-size:11px;margin:14px 0}.owner-select select{border:0;background:transparent;max-width:220px;color:var(--green);font-size:12px;font-weight:500}.sequence{display:flex;gap:10px;justify-content:center;margin:17px 0}.symbol-slot{width:58px;height:62px;border-radius:11px;border:1px dashed #c6d1be;background:#f1f4e9;display:flex;align-items:center;justify-content:center;font-size:25px;color:#9ca78e}.symbol-choices{display:flex;justify-content:center;gap:10px;margin:14px 0 9px}.symbol-button{border:1px solid #d5dccb;background:#fffdf5;border-radius:11px;width:60px;height:58px;font-size:26px}.symbol-button:hover{background:#eaf0de}.symbol-button:disabled{opacity:.3}.dialog-actions{display:flex;gap:9px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:23px}.dialog-actions .left{margin-right:auto}.inline-feedback{min-height:25px;text-align:center;font-size:12px;color:#866852;margin:8px 0}.inline-feedback.good{color:#58764d}.answers{display:flex;flex-direction:column;gap:10px;margin:18px 0}.answer{display:flex;align-items:center;gap:12px;text-align:left;background:#f9f9f1;border:1px solid #dfe4d5;padding:14px;border-radius:9px;font-size:13px;min-height:50px}.answer:hover{background:#edf2e3;border-color:#a5b996}.answer.selected{background:#e6eddb;border-color:#8ea577}.answer .letter{width:24px;height:24px;border-radius:50%;background:#e9eddf;display:flex;align-items:center;justify-content:center;font-size:10px;flex-shrink:0}.answer.selected .letter{background:#79916c;color:white}.hint-button{background:none;border:0;color:#7b8770;font-size:11px;text-decoration:underline;text-underline-offset:4px;padding:8px 0}.poll-label{font-size:10px;letter-spacing:1px;color:#7f8c74;margin:20px 0 8px}.answer-small{padding:11px;font-size:12px}.success-mark{margin:0 auto 19px;width:68px;height:68px;border-radius:50%;background:#e6edda;display:flex;justify-content:center;align-items:center;font-size:30px;color:#789067}.success{text-align:center;padding:8px 2px}.success h2{font-size:34px}.success .story-box{text-align:left}.reward{display:inline-flex;gap:8px;align-items:center;background:#f0eddc;color:#8b865e;border-radius:20px;font-size:12px;padding:7px 14px;margin:4px 0 16px}.reward .icon{width:15px;height:15px}.poll-bar-row{margin:15px 0;font-size:12px}.poll-bar-label{display:flex;justify-content:space-between;margin-bottom:6px}.poll-bar{height:8px;background:#e9ece1;border-radius:6px;overflow:hidden}.poll-bar span{height:100%;display:block;background:#9eaf88}.scores{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.score-pill{background:#eeede5;border-radius:20px;padding:6px 11px;font-size:11px}.progress-inline{font-size:10px;color:#8b947d;text-align:right;margin:8px 0}.pass-card{text-align:center;padding:25px;background:#f0eaf5;border-radius:14px;margin-top:22px}.pass-card .avatar{width:60px;height:60px;font-size:28px;background:#dfd5e9;margin-bottom:15px}.pass-card h3{font:25px var(--serif);margin:0 0 8px}.pass-card p{font-size:12px;color:#7d6f89}.room-option-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.room-option{border:1px solid #dce1d1;border-radius:12px;background:#f5f6ed;padding:20px 10px;text-align:center}.room-option .icon{width:28px;height:28px;color:#829375;margin-bottom:10px}.room-option strong{font:17px var(--serif);display:block}.room-option small{font-size:10px;color:var(--muted);display:block;margin-top:8px}.room-option.selected{background:#e5edda;border-color:#8b9e78}.milestone{display:flex;gap:12px;align-items:center;background:#e9eedf;padding:16px;border-radius:10px;margin-top:16px;font-size:12px}.milestone .icon{width:25px;height:25px;color:#7d936c}.milestone strong{display:block}.milestone small{color:#7c8971;font-size:10px}.reset-button{background:none;border:0;color:#9c8070;font-size:11px;padding:12px 0;text-decoration:underline}.notice{padding:13px 16px;background:#f1eee3;border:1px solid #e5e0cc;border-radius:9px;font-size:11px;color:#827861;margin:16px 0}.garden-pots{display:flex;justify-content:center;gap:12px;margin:20px 0}.pot-button{border:1px solid #dce0d0;border-radius:10px;background:#f7f6ec;padding:13px 9px;width:95px;display:flex;flex-direction:column;align-items:center;gap:4px}.pot-button span{font-size:28px}.pot-button strong{font-size:11px;font-weight:500}.pot-button small{color:#7e8c74;font-size:9px}.pot-button:disabled{opacity:.4}.garden-slot{font-size:15px}.welcome-name{margin:20px 0}#toast{position:fixed;bottom:28px;left:calc(50% + 100px);transform:translate(-50%,15px);background:#284e45;color:#fffdf1;padding:11px 18px;border-radius:10px;font-size:12px;box-shadow:var(--shadow);opacity:0;pointer-events:none;z-index:70;transition:.25s;max-width:calc(100vw - 40px)}#toast.show{opacity:1;transform:translate(-50%,0)}.empty-state{text-align:center;padding:42px 24px}.empty-state .icon{width:45px;height:45px;color:#8c9e76;margin-bottom:20px}.empty-state h2{font-size:28px}.empty-state p{color:var(--muted);font-size:13px;max-width:430px;margin:0 auto 22px}.subtle{font-size:11px;color:var(--muted)}.mobile-brand{display:none}
@media(min-width:1550px){main{padding-top:48px}.hero{min-height:440px}.hero h2{font-size:39px}.hero p{font-size:14px}.overview-grid{grid-template-columns:minmax(0,1fr) 300px}.mission-card{min-height:210px}}
@media(max-width:1150px){.sidebar{width:202px;padding:28px 18px}.workspace{margin-left:202px;width:calc(100% - 202px)}main{padding:30px 28px}.topbar{padding:0 28px}.overview-grid{grid-template-columns:minmax(0,1fr) 235px;gap:16px}.hero{min-height:355px}.hero h2{font-size:29px}.hero-content{left:23px;right:23px}.card{padding:18px}.mission-grid{gap:12px}.mission-card{padding:16px}.mission-card h3{font-size:18px}.room-grid,.group-layout{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.footer{padding:18px 28px}.page-header h1{font-size:34px}.mode-switch button{padding:7px 11px}}
@media(max-width:940px){.overview-grid{grid-template-columns:1fr}.progress-card{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;align-items:center}.progress-card .mini-island{display:none}.progress-card .card-title,.progress-card .card-subtitle{grid-column:1}.progress-card .card-subtitle{margin-bottom:0}.progress-card .journey-progress{grid-column:2;grid-row:1/3}.progress-card .next-unlock{display:none}.chapter-dots{margin-top:0}.room-grid,.group-layout{grid-template-columns:1fr}.hero{min-height:390px}.mission-card h3{font-size:18px}.page-header{align-items:flex-start}.mode-switch{margin-top:8px}.topbar-right{gap:12px}.tempo{display:none}}
@media(max-width:1023px){body{font-size:14px}.sidebar{position:fixed;top:auto;bottom:0;right:0;width:100%;height:76px;padding:0;background:#fbfbf5f2;backdrop-filter:blur(15px);border:0;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.sidebar .brand,.sidebar-label,.side-note,.profile{display:none}.sidebar nav{display:flex;width:100%;justify-content:space-around;height:100%}.nav-link{flex:1;display:flex;flex-direction:column;gap:4px;padding:12px 3px 9px;margin:0;background:none!important;font-size:9px;border-radius:0;justify-content:center;position:relative}.nav-link.active{color:#355b49}.nav-link.active:before{content:'';width:28px;height:3px;position:absolute;top:0;background:#78926c;border-radius:0 0 3px 3px}.nav-link .icon{width:21px;height:21px}.nav-dot{display:none}.workspace{margin:0 0 76px;width:100%}.topbar{height:67px;padding:0 22px}.topbar-title{font-family:var(--serif);color:var(--green);font-size:25px;letter-spacing:-1px}.topbar-title:before{content:'pusterom'}.topbar-title{font-size:0}.topbar-title:before{font-size:25px}.glints{font-size:10px;padding:6px 11px}.glints .icon{width:13px;height:13px}main{padding:25px 20px 15px;min-height:calc(100dvh - 190px)}.page-header{display:block;margin-bottom:23px}.page-header h1{font-size:33px;letter-spacing:-.9px}.page-header p{font-size:12px}.eyebrow{font-size:9px}.mode-switch{display:inline-flex;margin-top:17px}.mode-switch button{font-size:11px;padding:7px 14px}.hero{min-height:360px;border-radius:13px}.hero-badge{top:17px;left:19px;font-size:8px}.hero-corner{top:19px;right:19px;font-size:9px}.hero-content{left:22px;right:22px;bottom:23px}.hero h2{font-size:30px}.hero p{font-size:12px;margin-bottom:17px}.hero img{object-position:52% center}.overview-grid{gap:14px}.progress-card{padding:16px;gap:0 14px}.card-title{font-size:12px}.card-subtitle{font-size:10px}.chapter-dot{width:22px;height:22px;font-size:9px}.chapter-dots{margin-bottom:8px}.progress-text{font-size:9px;margin-bottom:6px}.mission-grid{grid-template-columns:1fr}.mission-card{min-height:0;padding:18px 18px 16px 74px}.mission-card .mission-icon{position:absolute;top:19px;left:18px;margin:0;width:38px;height:38px}.mission-card h3{font-size:20px;margin-right:15px}.mission-card p{margin-bottom:10px;max-width:300px;font-size:11px}.mission-meta{font-size:9px}.card-arrow{right:17px;top:21px}.section-heading{margin-top:26px}.section-heading h2{font-size:23px}.bottom-note{padding:13px 14px;align-items:flex-start;font-size:10px}.bottom-note .icon{flex-shrink:0}.footer{padding:17px 20px 25px;font-size:9px}.footer button{font-size:9px}.chapter-row{padding:16px;gap:13px;flex-wrap:wrap}.chapter-row .mission-icon{position:static;width:40px;height:40px}.chapter-row>div:nth-child(2){flex:1;min-width:180px}.chapter-row h3{font-size:23px}.chapter-row p{font-size:11px}.chapter-row .btn{margin-left:53px;padding:9px 15px;min-height:37px}.chapter-kicker{font-size:8px}.room-scene{min-height:290px}.room-scene>svg{min-height:260px}.room-label{left:13px;right:13px;padding:12px;bottom:13px}.room-label h2{font-size:20px}.room-label span{font-size:9px}.team-banner{padding:20px}.team-banner h2{font-size:26px}.team-banner p{font-size:12px}#dialog-body{padding:22px}dialog{max-height:91dvh;width:calc(100% - 22px);border-radius:16px}dialog h2{font-size:29px}.dialog-desc{font-size:12px}.story-box{padding:16px;font-size:16px}.clue-list{gap:7px}.clue-tile{padding:14px 7px;min-height:115px}.clue-tile strong{font-size:14px}.clue-tile p{font-size:10px!important}.clue-tile .envelope{font-size:23px}.symbol-slot{width:52px;height:57px}.symbol-button{width:55px;height:53px}.dialog-actions .btn{padding:11px 15px}.room-option{padding:15px 8px}.room-option strong{font-size:15px}.room-option small{font-size:9px}.garden-pots{gap:7px}.pot-button{width:77px;padding:12px 5px}.pot-button strong{font-size:10px}.pot-button span{font-size:25px}#toast{left:50%;bottom:92px;min-width:240px;text-align:center}.owner-select{display:block}.owner-select select{margin-left:7px}.success h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.group-strip{display:flex;gap:12px;align-items:center;background:#e4ecdf;border:1px solid #d1ddc7;border-radius:11px;padding:13px 17px;margin-bottom:24px;font-size:12px}.group-strip>.icon{color:#6d8460}.group-strip small{display:block;color:#7a8c70;font-size:10px;margin-top:2px}.group-strip>.text-button{margin-left:auto;flex-shrink:0}.online-group{display:flex;justify-content:space-between;gap:25px;background:#e3ebdc;border:1px solid #d2ddc5;border-radius:15px;padding:28px}.online-group h2{font-size:33px;margin:0 0 8px}.online-group p{font-size:12px;color:#76856b;margin-bottom:15px}.member-chips{display:flex;gap:7px;flex-wrap:wrap}.member-chips span{padding:5px 10px;background:#f8fbf1;border-radius:20px;color:#6a7e5f;font-size:10px}.invite-card{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;min-width:240px;background:#f5f6e9;border-radius:11px;padding:20px}.invite-card small{font-size:9px;letter-spacing:1.5px;color:#7b8970}.invite-card strong{font-size:29px;font-weight:500;letter-spacing:4px;margin:8px 0 15px}.online-forms{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}.online-forms .card{padding:25px}.online-forms .btn{margin-top:8px}.code-input{text-transform:uppercase;letter-spacing:2px}.saved-group{display:flex;gap:16px;align-items:center;width:100%;background:#f8f9f0;border:1px solid #dfe5d5;padding:13px 15px;margin-top:9px;border-radius:9px;text-align:left;font-size:12px}.saved-group small{color:#89957b;margin-left:auto;letter-spacing:1px}.local-play-note{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 5px;font-size:12px;color:#697c5e}.local-play-note strong{font-weight:500}.local-play-note p{font-size:11px;color:#7b8b72;margin:3px 0}.voting-progress{background:#eef1e6;color:#76866a;border-radius:20px;padding:10px 17px;display:inline-block;margin:14px 0 8px;font-size:12px}.voting-progress strong{color:#4e6f46}.achievement-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.achievement{border:1px solid #e0e4d7;border-radius:11px;background:#eef0e7;text-align:center;padding:20px 12px;color:#9aA58d}.achievement>span{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:50%;background:#e5e9dc;margin:0 auto 12px}.achievement strong{font:16px var(--serif);display:block;margin-bottom:7px}.achievement small{font-size:10px;line-height:1.6;display:block}.achievement.earned{background:#fffdf4;color:#637b57;border-color:#d7dfc7}.achievement.earned>span{background:#e5edda}.memory-lights{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:25px 0}.memory-light{background:#eff1e5;border:2px solid #d9e0cb;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px 5px;gap:10px;min-height:110px;transition:background .15s,box-shadow .15s,transform .15s}.memory-light span{font-size:34px}.memory-light small{font-size:11px;color:#7b8c70}.memory-light.lit{background:#fff3bd;border-color:#dcc584;box-shadow:0 0 28px #e6cd8590;transform:translateY(-5px)}.memory-controls{display:flex;justify-content:center;align-items:center;gap:15px;margin:20px 0 25px;flex-wrap:wrap}.memory-slot{width:50px;height:56px;font-size:22px}.word-tiles{display:flex;justify-content:center;gap:9px;margin:30px 0}.word-tiles span{width:48px;height:56px;background:#ebe4d7;border:1px solid #ded4bd;border-bottom:3px solid #d0c3a8;border-radius:7px;display:flex;align-items:center;justify-content:center;font:26px var(--serif);color:#707c61}.footer-actions{display:flex;gap:18px}.offline-indicator{font-size:10px;color:#998260}
@media(max-width:1000px){.achievement-grid{grid-template-columns:repeat(3,1fr)}.online-group{padding:23px}.invite-card{min-width:210px}}
@media(max-width:1023px){.group-strip{padding:11px 12px;margin-bottom:20px;font-size:11px}.group-strip>.text-button{font-size:10px}.online-group{display:block;padding:20px}.online-group h2{font-size:29px}.invite-card{margin-top:20px;padding:18px}.online-forms{grid-template-columns:1fr;gap:14px}.online-forms .card{padding:22px}.local-play-note{display:block;padding:23px 5px}.local-play-note .btn{margin-top:12px}.achievement-grid{grid-template-columns:repeat(2,1fr);gap:10px}.achievement{padding:18px 12px}.achievement:last-child{grid-column:1/3}.memory-lights{gap:8px}.memory-light{padding:15px 3px;min-height:90px}.memory-light span{font-size:28px}.memory-light small{font-size:9px}.word-tiles{gap:6px}.word-tiles span{width:35px;height:47px;font-size:23px}.footer{align-items:flex-start;gap:15px}.footer-actions{gap:9px;align-items:flex-end;flex-direction:column}}
/* Tåkevika: chapters, escalating challenges and reusable puzzle controls. */
.chapter-dots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.chapter-dot{width:100%;max-width:31px;aspect-ratio:1;height:auto}.difficulty-mini{display:inline-block;background:#eeeadd;padding:3px 7px;border-radius:5px;margin-left:10px;letter-spacing:.4px}.chapter-kicker{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.difficulty-mini{margin:0}.challenge-banner{background:#e6e1ec;border:1px solid #d8cee3;border-radius:16px;padding:30px;display:flex;justify-content:space-between;gap:25px;align-items:center;margin-top:30px}.challenge-banner h2{font-size:29px;margin:0 0 8px}.challenge-banner p{font-size:12px;color:#6d6977;max-width:490px;margin:0}.challenge-banner .btn{flex-shrink:0}.challenge-total{display:flex;align-items:center;gap:12px;white-space:nowrap;background:#e8ece1;border-radius:12px;padding:12px 18px}.challenge-total strong{font:32px var(--serif);color:#56714e}.challenge-total span{font-size:11px;color:var(--muted)}.tracks-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.track-card{border:1px solid var(--line);border-radius:15px;background:var(--paper);padding:25px}.track-card:last-child{grid-column:1/-1}.track-heading{display:flex;gap:15px;align-items:flex-start;margin-bottom:21px}.track-heading .mission-icon{position:static;flex-shrink:0;margin:0}.track-heading h2{font-size:25px;line-height:1.2;margin-bottom:7px}.track-heading p{font-size:12px;color:var(--muted);margin:0}.track-levels{display:grid;gap:9px}.track-level{border:1px solid #e0e4d9;border-radius:9px;padding:13px 12px;background:#f7f8ef;text-align:left;display:flex;gap:12px;align-items:center;min-height:68px}.track-level:hover:not(:disabled){background:#eaf0e1;border-color:#acbc9b}.track-level.done{background:#e6eee0}.track-level.locked{background:#f2f1ed;color:#868b82}.level-number{width:28px;height:28px;border-radius:50%;background:#e7e8da;display:grid;place-items:center;font-size:12px;flex-shrink:0}.done .level-number{background:#bfd1af;color:#31572f}.track-level strong{font-size:12px;font-weight:600}.track-level small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.track-level>.icon{width:16px;height:16px;flex-shrink:0}.level-reward{font-size:10px;margin-left:auto;white-space:nowrap;color:#7c8870}.puzzle-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:17px 0 23px;font-size:9px;letter-spacing:1px;color:var(--muted)}.difficulty{font-size:9px;padding:5px 9px;border-radius:7px;letter-spacing:.4px;background:#e4eddc;color:#4e6c48}.difficulty-3{background:#e8e1ef;color:#7b638a}.difficulty-4{background:#efe2cd;color:#8a6b42}.puzzle-clues{padding:17px 19px 17px 35px;background:#f0f1e8;border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.65;margin:20px 0}.puzzle-clues li+li{margin-top:8px}.puzzle-input{max-width:350px;font-size:21px;letter-spacing:3px}.number-inputs{display:flex;gap:16px;margin:24px 0}.number-inputs label{flex:1;max-width:170px;font-size:11px}.number-inputs span{display:block;margin-bottom:7px;color:var(--muted)}.number-inputs input{font-size:20px}.order-slots{display:flex;gap:7px;margin:26px 0 19px;flex-wrap:wrap}.order-slots>span{flex:1;min-width:100px;min-height:61px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;background:#efeee4;border:1px dashed #c1c7b5;border-radius:8px;font-size:12px;text-align:center}.order-slots small{font-size:9px;color:#929680}.order-options{display:flex;gap:9px;flex-wrap:wrap}.order-options .btn{min-height:44px}.assign-rows{display:grid;gap:10px;margin:25px 0}.assign-rows label{display:grid;grid-template-columns:80px 1fr;align-items:center;gap:10px}.assign-rows label>span{font-size:13px}.assign-rows select{font-size:14px;min-height:46px}.puzzle-hints{margin-top:23px}.hint-button{min-height:44px}.hint-button .icon{width:16px;height:16px;margin-right:6px}.hint-panel{font-size:12px;line-height:1.7;padding:14px 17px;border-radius:9px;background:#ede7f2;color:#6f5d7b;margin-top:9px}.puzzle-word{flex-wrap:wrap}.puzzle-word span{width:35px;height:44px;font-size:21px}.long-sequence{flex-wrap:wrap;gap:7px}.long-sequence .memory-slot{width:43px;height:48px;font-size:23px}.path-grid{display:grid;grid-template-columns:repeat(var(--grid),minmax(0,1fr));gap:6px;max-width:350px;margin:23px auto 10px}.path-cell{aspect-ratio:1;border:1px solid #ced7c0;border-radius:9px;background:#e7edd9;position:relative;font-size:24px;min-width:0;padding:8px}.path-cell.blocked{background:#d7e0de;color:#8eaaab;border:1px solid #cbd5d2;opacity:.7}.path-cell.visited{background:#c1d6b0;border-color:#86a675}.path-cell.current{background:#728f66;color:#fff6df;box-shadow:inset 0 0 0 2px #527248}.path-cell small{position:absolute;top:3px;left:6px;font-size:10px}.path-cell>span{position:relative;top:3px}.path-count{text-align:center;color:var(--muted);font-size:11px;margin:13px 0}.path-legend{display:flex;gap:13px;flex-wrap:wrap;justify-content:center;font-size:10px;margin-top:20px}.lights-grid{display:grid;grid-template-columns:repeat(3,1fr);max-width:260px;gap:10px;margin:24px auto}.light-cell{aspect-ratio:1;border-radius:12px;background:#d6dfd2;border:1px solid #c2cbbd;font-size:35px;position:relative;color:#8b9980}.light-cell.lit{background:#f3d48f;border-color:#ddba70;color:#a97d3e;box-shadow:0 0 15px #e5c48055}.light-cell small{position:absolute;bottom:5px;right:8px;font-size:9px;opacity:.7}.story-token{display:flex;flex-direction:column;gap:7px;border:1px solid #d6d2b5;background:#f4f0dd;border-radius:10px;padding:16px 20px;margin:20px 0;text-align:center}.story-token small{font-size:9px;letter-spacing:1.5px;color:#8c8869}.story-token strong{font-size:14px;font-weight:500;color:#747052}.footer-actions{flex-wrap:wrap}.puzzle-meta+.owner-select{margin-top:-8px}.puzzle-meta+.story-box{margin-top:0}
@media(max-width:1100px){.tracks-grid{grid-template-columns:1fr}.track-card:last-child{grid-column:auto}.challenge-banner{padding:25px;align-items:flex-start;flex-direction:column}.challenge-total{padding:10px 13px}}
@media(max-width:1023px){.tracks-grid{gap:14px}.track-card{padding:20px 17px}.track-heading{gap:12px}.track-heading h2{font-size:25px}.track-heading .mission-icon{width:38px;height:38px}.track-heading p{font-size:11px}.track-level{gap:9px;padding:12px 9px}.track-level strong{font-size:11px}.track-level small{font-size:10px}.level-reward{font-size:9px}.challenge-total{display:inline-flex;margin-top:17px}.challenge-banner{padding:23px;gap:18px}.challenge-banner h2{font-size:27px}.chapter-dot{max-width:none}.chapter-dots{gap:4px}.puzzle-meta{margin:15px 0 20px;gap:7px;font-size:8px}.puzzle-clues{font-size:12px}.puzzle-word span{width:30px;height:40px;font-size:20px}.puzzle-input,.assign-rows select{font-size:16px}.order-slots>span{min-width:85px;font-size:11px}.order-options{gap:7px}.order-options .btn{font-size:11px;padding:10px 12px}.long-sequence .memory-slot{width:35px;height:41px;font-size:21px}.path-grid{gap:5px;max-width:315px}.path-cell{font-size:22px;border-radius:7px;padding:4px}.path-cell small{font-size:9px;left:4px}.path-legend{font-size:10px;gap:10px}.assign-rows label{grid-template-columns:65px 1fr}.dialog-actions{flex-wrap:wrap}.dialog-actions .left{min-height:44px;font-size:11px}.dialog-actions .btn{min-height:44px}.footer-actions{max-width:65%}.footer #mobile-profile{font-size:11px;min-height:44px}}
@media(max-width:380px){.progress-card{display:block}.progress-card .card-subtitle{margin-bottom:13px}.chapter-dots{max-width:235px}.chapter-dot{max-width:28px}.level-reward{display:none}.path-cell{font-size:20px}.long-sequence .memory-slot{width:30px;height:38px}.puzzle-word{gap:5px}}
/* Choose a pause, explore three regions, and take personal progress along. */
.quick-section{margin-top:27px;background:#edeedf;border:1px solid #dfe2cf;border-radius:15px;padding:25px}.quick-heading h2{font-size:28px;margin-bottom:7px}.quick-heading p{font-size:12px;color:var(--muted);margin-bottom:17px;max-width:660px}.mood-options{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}.mood-options button{min-height:44px;border:1px solid #d1d7c4;border-radius:9px;background:#f7f8ef;padding:10px 15px;font-size:11px;display:flex;align-items:center;gap:8px}.mood-options button.active{background:#476249;color:#fffef0;border-color:#476249}.mood-options .icon{width:16px;height:16px}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-mission{display:flex;gap:10px;align-items:flex-start;text-align:left;min-height:115px;background:#fffdf5;border:1px solid #dce0cc;border-radius:10px;padding:16px 12px}.quick-mission:hover{border-color:#9cad8e;background:#fafbf1}.quick-mission small{font-size:9px;color:var(--muted);display:block;line-height:1.5;margin-bottom:7px}.quick-mission strong{display:block;font:18px/1.2 var(--serif);margin-bottom:9px}.quick-icon{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;background:#e7eddc;border-radius:7px;color:#7a9267}.quick-icon .icon{width:16px;height:16px}.quick-meta{display:block;font-size:9px;line-height:1.7;color:#7b856f}.quick-mission>.icon{margin-left:auto;flex-shrink:0;width:13px;height:13px;margin-top:8px}.quick-note{font-size:12px;color:#747b65;margin:0 0 15px}.region-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:27px}.region-card{border:2px solid #dce3d4;border-radius:12px;padding:0;background:#f2f3e9;overflow:hidden;text-align:left;position:relative;min-height:175px;color:#f7f5e7;isolation:isolate}.region-card img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;z-index:-2}.region-card:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#23433eeb,#28403c40);z-index:-1}.region-card.active{border-color:#839b6b;box-shadow:0 0 0 3px #d8e4ca}.region-card>span{display:flex;flex-direction:column;padding:20px 17px;justify-content:flex-end;min-height:175px}.region-card small{font-size:9px;letter-spacing:1.5px;margin-bottom:9px;color:#e0e5c8}.region-card strong{font:25px var(--serif);margin-bottom:7px;font-weight:400}.region-card>span>span{font-size:10px;line-height:1.5;color:#e3e4d2}.region-title{display:flex;gap:15px;align-items:baseline;margin-bottom:15px}.region-title h2{font-size:28px;margin:0}.region-title>span{font-size:11px;color:var(--muted)}.lights-grid{grid-template-columns:repeat(var(--grid,3),minmax(0,1fr));max-width:340px}.word-bank{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin:22px 0 13px}.word-bank>span{font-size:11px;letter-spacing:1px;background:#ebe8d9;border:1px solid #dcd7c2;padding:8px 13px;border-radius:8px}.word-bank>span.found{background:#dce9d2;border-color:#aabc97;color:#527347}.word-grid-wrap{overflow-x:auto;padding:5px;margin:16px auto;max-width:355px}.word-grid{display:grid;grid-template-columns:repeat(var(--grid),minmax(0,1fr));gap:5px;width:100%;max-width:345px;margin:auto}.word-cell{aspect-ratio:1;min-height:42px;border:1px solid #d9d7c6;border-radius:7px;background:#f0eddf;font:24px var(--serif);padding:4px;color:#5f6b54}.word-cell.found{background:#d5e6ca;border-color:#a6bd95;color:#557444}.word-cell.selected{background:#9786ab;color:white;border-color:#806d96;box-shadow:inset 0 0 0 1px #695978}.profile-backup{border-top:1px solid var(--line);margin-top:25px;padding-top:20px}.profile-backup>strong{font-size:13px;font-weight:500}.profile-backup p{font-size:12px;color:var(--muted);margin:7px 0 15px}.backup-summary{display:flex;gap:12px;flex-wrap:wrap;background:#eff0e5;border-radius:10px;padding:15px;margin:19px 0;font-size:11px}.backup-summary span{display:flex;flex-direction:column;gap:3px;min-width:65px;color:var(--muted)}.backup-summary strong{font:25px var(--serif);color:#60764f}.backup-actions{display:flex;flex-direction:column;gap:12px;margin:23px 0;align-items:flex-start}.backup-file{position:relative;cursor:pointer}.backup-file input{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}.backup-file:focus-within{outline:3px solid #937dab;outline-offset:4px}.backup-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.backup-compare section{border:1px solid var(--line);border-radius:12px;padding:17px;min-width:0}.backup-compare section:last-child{background:#edf2e5;border-color:#ccd8bb}.backup-compare small{font-size:8px;letter-spacing:1px;color:var(--muted)}.backup-compare h3{font:25px var(--serif);margin:10px 0}.backup-compare .backup-summary{padding:10px;gap:10px;margin:13px 0;background:#f7f8ef}.backup-compare .backup-summary span{min-width:60px}.backup-compare .help{margin-bottom:0;font-size:9px}
@media(max-width:1150px){.quick-grid{grid-template-columns:1fr}.quick-mission{min-height:0;align-items:center;padding:13px 15px}.quick-mission strong{font-size:20px;margin-bottom:5px}.quick-mission small{margin-bottom:4px}.quick-meta{display:block}.region-card>span{padding:17px 12px}.region-card strong{font-size:23px}}
@media(max-width:1023px){.quick-section{padding:20px 17px;margin-top:21px}.quick-heading h2{font-size:27px}.quick-heading p{font-size:11px}.mood-options{gap:7px}.mood-options button{font-size:10px;flex:1;min-width:110px;padding:10px 9px;text-align:left;line-height:1.4}.quick-mission{padding:13px 11px}.quick-mission strong{font-size:21px}.quick-icon{width:30px;height:30px}.quick-meta{font-size:9px}.region-nav{gap:9px;grid-template-columns:1fr;margin-bottom:22px}.region-card{min-height:94px}.region-card>span{min-height:94px;padding:15px 19px}.region-card img{object-position:center 50%}.region-card small{font-size:8px;margin-bottom:4px}.region-card strong{font-size:24px;margin-bottom:4px}.region-card>span>span{font-size:10px}.region-title{display:block}.region-title h2{font-size:27px;margin-bottom:5px}.region-title>span{font-size:10px}.word-cell{font-size:22px}.word-grid{gap:5px}.lights-grid{gap:8px;max-width:300px}.light-cell{font-size:29px}.word-bank{gap:7px}.word-bank>span{font-size:10px;padding:7px 10px}.backup-compare{gap:9px}.backup-compare section{padding:13px 10px}.backup-compare h3{font-size:22px}.backup-compare .backup-summary{padding:10px 9px}.backup-summary{font-size:10px}.backup-summary strong{font-size:23px}.backup-actions .btn{font-size:12px}}

/* Månedens konkurranse */
.pilot-badge{display:inline-flex;align-items:center;padding:7px 11px;border:1px solid #cec4de;border-radius:20px;background:#efebf5;color:#76648b;font-size:10px;white-space:nowrap}.arena-hero{display:grid;grid-template-columns:1.2fr 1fr;border:1px solid #d8dfce;border-radius:16px;overflow:hidden;background:#e9eddf;margin-bottom:16px}.arena-hero>div:first-child{padding:32px 35px;background:radial-gradient(ellipse at 0 100%,#cedcbf,transparent 65%)}.arena-big-score{font:90px/1.1 var(--serif);color:#526c47;margin:10px 0}.arena-big-score span{font:22px var(--serif);margin-left:12px;color:#89927e}.arena-hero p{font-size:13px;line-height:1.7;color:#707961}.arena-lifetime{font-size:11px;display:flex;gap:8px;align-items:center;border-top:1px solid #cbd7bd;padding-top:18px;margin-top:20px;color:#6a785b}.arena-prize-teaser{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:26px 25px;background:#f3eee1}.prize-symbol{font-size:42px;margin-bottom:12px}.arena-prize-teaser small{font-size:9px;letter-spacing:1.5px;color:#978872}.arena-prize-teaser strong{font:32px var(--serif);color:#76664e;margin:10px 0 0}.arena-prize-teaser p{margin:7px 0 17px}.arena-prize-teaser .text-button{font-size:11px}.arena-deadline{display:flex;gap:10px;align-items:center;font-size:11px;color:#7c816c;margin-bottom:26px;flex-wrap:wrap}.arena-deadline .icon{width:16px}.arena-deadline .text-button{margin-left:auto;font-size:10px}.arena-enroll{background:#eeebf3;border:1px solid #d9d1e4;border-radius:12px;padding:25px;display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:25px}.arena-enroll h2{font-size:28px;margin:0 0 8px}.arena-enroll p{font-size:12px;color:#7e7487;line-height:1.7;margin:0;max-width:480px}.arena-enroll .btn{flex-shrink:0}.arena-tabs{display:flex;gap:8px;margin:25px 0;flex-wrap:wrap}.arena-tabs button{background:#f1efe3;border:1px solid #d9dbca;color:#768064;border-radius:8px;padding:12px 17px;font-size:11px}.arena-tabs button.active{background:#6f8461;color:#fffef4;border-color:#6f8461}.arena-ranking{padding:26px;margin-bottom:20px}.arena-ranking .section-heading{margin:0 0 12px;flex-wrap:wrap}.arena-ranking h2{font-size:29px}.arena-table-wrap{overflow-x:auto}.arena-table{border-collapse:collapse;width:100%;font-size:12px;margin:20px 0}.arena-table thead{font-size:10px;color:#8b917b;text-align:left}.arena-table td,.arena-table th{padding:15px 12px;border-bottom:1px solid #e4e5d6;text-align:left}.arena-table tbody th{font-weight:500;overflow-wrap:anywhere;max-width:180px}.arena-table tbody td:first-child{width:52px;color:#8b9678}.arena-table td:nth-child(3){font-size:16px;color:#667e54}.arena-table .is-you{background:#e6eddb}.arena-table small{display:inline-block;font-size:9px;background:#d1dfbf;color:#607a49;padding:3px 6px;border-radius:4px;margin-left:8px}.arena-your-rank{padding:13px 16px;background:#e7edde;border-radius:8px;font-size:12px;color:#637855}.arena-empty{text-align:center;padding:45px 25px}.arena-empty>span{font-size:42px}.arena-empty h2{font-size:30px;margin:18px 0 12px}.arena-empty p{font-size:13px;line-height:1.8;color:#818871;max-width:450px;margin:auto}.arena-empty-text{font-size:13px;line-height:1.7;color:#8b927c;padding:30px 0}.arena-home-banner{display:flex;align-items:center;gap:24px;margin:24px 0 0;padding:28px;border:1px solid #dfd1bd;border-radius:14px;background:#f2ede0}.arena-home-banner>span{font-size:40px}.arena-home-banner h2{font-size:30px;margin:8px 0}.arena-home-banner p{font-size:12px;color:#8c806d;line-height:1.7;max-width:490px;margin:0}.arena-home-banner .btn{margin-left:auto;flex-shrink:0}.prize-card{text-align:center;background:#f3ecdc;border:1px solid #e0d5bf;border-radius:13px;padding:25px;margin:22px 0}.prize-card>span:first-child{font-size:45px;display:block;margin-bottom:13px}.prize-card small{display:block;font-size:9px;letter-spacing:1.5px;color:#a08b67}.prize-card strong{display:block;font:55px var(--serif);color:#867044;margin-top:8px}.prize-card p{font-size:12px;line-height:1.7;color:#9c886b}.competition-rules{padding-left:21px;font-size:12px;line-height:1.85;color:#7e836f}.competition-rules li{padding-left:4px;margin-bottom:12px}.arena-consent{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.7;color:#747a65;margin:18px 0}.arena-consent input{width:20px;height:20px;flex-shrink:0;margin:0;accent-color:#70845c}.arena-point-strip{display:flex;flex-direction:column;gap:7px;font-size:10px;background:#e7ecdf;border-radius:8px;padding:13px 15px;margin:14px 0;color:#748363}.arena-point-strip strong{letter-spacing:.5px;color:#61754e}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1150px){.arena-home-banner{flex-wrap:wrap}.arena-home-banner .btn{margin-left:64px}.arena-enroll{flex-direction:column;align-items:flex-start}}
@media(max-width:1023px){#nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.nav-link{font-size:9px;padding-left:2px;padding-right:2px;min-width:0;text-align:center}.nav-link span{max-width:100%;overflow-wrap:anywhere}.nav-link .icon{width:18px;height:18px}.arena-hero{grid-template-columns:1fr}.arena-hero>div:first-child{padding:26px}.arena-big-score{font-size:76px}.arena-prize-teaser{padding:23px;border-top:1px solid #ded9c8}.arena-prize-teaser strong{font-size:29px}.arena-deadline{font-size:10px;line-height:1.7}.arena-deadline .text-button{margin-left:26px}.arena-enroll{padding:22px}.arena-enroll h2{font-size:26px}.arena-tabs{gap:6px}.arena-tabs button{font-size:10px;padding:11px 10px;flex:1}.arena-ranking{padding:19px 14px}.arena-ranking h2{font-size:26px}.arena-table td,.arena-table th{padding:13px 8px}.arena-table{font-size:11px}.arena-table tbody td:first-child{width:35px}.arena-home-banner{padding:24px 20px;gap:15px}.arena-home-banner>span{font-size:31px}.arena-home-banner h2{font-size:27px}.arena-home-banner>div{flex:1;min-width:190px}.arena-home-banner .btn{margin-left:0}.competition-rules{font-size:11px}.prize-card strong{font-size:48px}}

/* Fire hovedvalg og en roligere fremside */
.home-championship{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:24px;padding:31px 30px;background:linear-gradient(125deg,#e9e2f0,#f3eada);border:1px solid #d8cee2;border-radius:17px;margin-bottom:30px}.championship-emblem{width:72px;height:82px;display:grid;place-items:center;position:relative;background:#f7f1e5;border:1px solid #d9c8b1;border-radius:28px 28px 17px 17px;color:#a38455;transform:rotate(-5deg)}.championship-emblem .icon{width:39px;height:39px;stroke-width:1.5}.championship-emblem>span{position:absolute;right:-8px;top:0;color:#a596b7;font-size:25px}.championship-content h2{font:35px/1.12 var(--serif);font-weight:400;letter-spacing:-.6px;color:#625576;margin:10px 0}.championship-content p{font-size:12px;line-height:1.7;color:#877b8d;margin:0 0 12px}.championship-content .eyebrow{color:#9780a4}.championship-prize{display:inline-flex;align-items:center;gap:6px;color:#907959;font-size:10px;line-height:1.5}.championship-prize .icon{width:14px;height:14px;flex-shrink:0}.home-heading{margin:0 0 18px}.home-heading h1{font:29px/1.2 var(--serif);margin:0 0 7px;font-weight:400;letter-spacing:-.3px}.home-heading p{margin:0;font-size:12px}.home-adventure{grid-template-columns:minmax(0,1fr) 225px;gap:19px}.home-adventure .hero{min-height:290px}.home-adventure .hero-content{bottom:25px}.home-adventure .hero h2{font-size:32px}.home-adventure .hero p{font-size:12px;max-width:430px}.home-summary{padding:23px;display:flex;flex-direction:column;justify-content:space-between;gap:20px}.home-rank{font:27px var(--serif);font-weight:400;color:#6b805a}.home-stats{display:grid;gap:19px}.home-stats strong{font:33px/1.1 var(--serif);font-weight:400;color:#60764f}.home-stats strong span{font-size:17px;color:#a0a58e}.home-stats small{display:block;font-size:10px;color:#939982;margin-top:6px}.home-summary>.text-button{font-size:10px;line-height:1.5;justify-content:flex-start;white-space:normal}.home-quick{border:1px solid #d8dfcd;background:#f6f7ed;border-radius:13px;margin-top:23px;overflow:hidden}.home-quick>summary{list-style:none;display:flex;align-items:center;gap:15px;padding:19px 22px;cursor:pointer}.home-quick>summary::-webkit-details-marker{display:none}.home-quick>summary .mission-icon{margin:0;flex-shrink:0;width:40px;height:40px}.home-quick>summary strong{display:block;font:24px var(--serif);font-weight:400}.home-quick>summary small{display:block;font-size:11px;color:#8a927a;margin-top:6px}.home-quick>summary>.icon{margin-left:auto;flex-shrink:0;transform:rotate(90deg);transition:transform .2s}.home-quick[open]>summary>.icon{transform:rotate(-90deg)}.home-quick[open]>summary{border-bottom:1px solid #dce2d1}.home-quick .quick-section{margin:0;border:0;border-radius:0;background:none}.home-quick>summary:focus-visible{outline:3px solid #9179a5;outline-offset:-4px}.more-championship{display:flex;gap:18px;align-items:center;background:#ede7f2;border:1px solid #d6cbe1;border-radius:13px;padding:24px;margin-bottom:29px}.more-championship>.mission-icon{margin:0;flex-shrink:0}.more-championship>span:nth-child(2){display:flex;flex-direction:column;gap:9px}.more-championship small{font-size:9px;letter-spacing:1px;color:#9580a7;line-height:1.5}.more-championship strong{font:27px/1.2 var(--serif);color:#756384;font-weight:400}.more-championship>span:nth-child(2)>span{font-size:11px;color:#91809b;line-height:1.7}.more-championship>.icon{margin-left:auto;flex-shrink:0;color:#9480a4}.more-layout{display:grid;grid-template-columns:1fr 1fr;gap:27px}.more-layout h2{font:26px var(--serif);font-weight:400;margin:0 0 17px}.more-list{border:1px solid var(--line);background:var(--paper);border-radius:13px;overflow:hidden}.more-item{display:flex;align-items:center;gap:14px;width:100%;padding:20px 17px;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;color:inherit}.more-item:last-child{border-bottom:0}.more-item:hover{background:#eff2e6}.more-item>.mission-icon{width:35px;height:35px;margin:0;flex-shrink:0}.more-item>span:nth-child(2){min-width:0;flex:1}.more-title{display:block;font-size:13px;font-weight:500;color:#647457;margin-bottom:6px}.more-description{display:block;font-size:11px;color:#8c937e;line-height:1.6}.more-item>.icon{width:16px;flex-shrink:0;color:#99a38d}.more-item[aria-pressed=true] .mission-icon{background:#d7e6c6;color:#60794c}
@media(max-width:1150px){.home-championship{grid-template-columns:62px minmax(0,1fr);gap:20px;padding:27px}.home-championship>.btn{grid-column:2;justify-self:start}.championship-emblem{width:62px;height:73px;grid-row:1 / 3}.championship-content h2{font-size:33px}.home-adventure{grid-template-columns:minmax(0,1fr) 195px}.home-summary{padding:20px}.more-layout{gap:18px}.more-item{padding:18px 14px}.more-championship strong{font-size:25px}}
@media(max-width:900px){.home-adventure{grid-template-columns:1fr}.home-summary{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}.home-summary .card-title{grid-column:1}.home-rank{grid-column:1;font-size:24px}.home-stats{grid-column:2;grid-row:1 / 4;display:flex;gap:24px}.home-summary>.text-button{grid-column:1}.more-layout{grid-template-columns:1fr;gap:25px}}
@media(max-width:1023px){.sidebar{height:calc(72px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}#nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:72px}.nav-link{font-size:11px;padding:10px 5px;gap:6px;min-height:64px}.nav-link .icon{width:22px;height:22px}.nav-link span{overflow-wrap:normal}.workspace{margin-bottom:calc(72px + env(safe-area-inset-bottom))}.home-championship{grid-template-columns:43px minmax(0,1fr);gap:13px;padding:24px 18px;margin-bottom:25px}.championship-emblem{width:43px;height:55px;grid-row:1;align-self:start;border-radius:18px 18px 12px 12px;margin-top:22px}.championship-emblem .icon{width:26px;height:26px}.championship-emblem>span{font-size:18px;right:-5px;top:-3px}.championship-content h2{font-size:30px;line-height:1.12;margin:9px 0 11px}.championship-content .eyebrow{font-size:8px;letter-spacing:1px}.championship-content p{font-size:11px;line-height:1.7}.championship-prize{font-size:9px;align-items:flex-start}.championship-prize .icon{margin-top:1px}.home-championship>.btn{grid-column:1 / -1;justify-self:stretch;margin-top:5px;justify-content:center;font-size:12px;min-height:47px}.home-heading h1{font-size:26px}.home-heading p{font-size:11px}.home-adventure .hero{min-height:280px}.home-adventure .hero h2{font-size:28px}.home-adventure .hero p{font-size:11px;line-height:1.7}.home-adventure .hero-content{bottom:22px}.home-summary{padding:19px 17px;gap:11px;grid-template-columns:minmax(0,1fr) auto}.home-summary .card-title{font-size:11px}.home-rank{font-size:22px}.home-stats{gap:14px}.home-stats strong{font-size:27px}.home-stats strong span{font-size:14px}.home-stats small{font-size:8px}.home-summary>.text-button{font-size:9px}.home-quick{margin-top:19px}.home-quick>summary{padding:18px 16px;gap:12px}.home-quick>summary strong{font-size:22px}.home-quick>summary small{font-size:10px;line-height:1.6}.home-quick>summary .mission-icon{width:33px;height:33px}.more-championship{padding:20px 17px;gap:13px;margin-bottom:27px}.more-championship>.mission-icon{width:36px;height:36px}.more-championship strong{font-size:24px}.more-championship small{font-size:8px;letter-spacing:.6px}.more-championship>span:nth-child(2)>span{font-size:10px}.more-item{padding:19px 16px;min-height:82px}.more-title{font-size:13px}.more-description{font-size:11px}.more-layout h2{font-size:25px}.footer{padding-bottom:17px;gap:10px;flex-wrap:wrap}.footer>span{font-size:9px}}
@media(max-width:360px){.home-summary{grid-template-columns:1fr}.home-stats{grid-column:1;grid-row:auto;gap:30px}.home-summary .card-title,.home-rank,.home-summary>.text-button{grid-column:1}.home-summary>.text-button{grid-row:4}}

/* Kompakt mesterskap og tydelig planlagt premie */
.home-championship{gap:18px;padding:23px 25px;margin-bottom:22px}
.championship-emblem{width:60px;height:67px;border-radius:23px 23px 14px 14px}
.championship-emblem .icon{width:32px;height:32px}
.championship-content h2{font-size:29px;margin:7px 0}
.championship-content p{margin-bottom:10px}
.championship-reward{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.championship-prize{padding:7px 10px;border:1px solid #be9444;border-radius:8px;background:#f7d982;color:#573b13;font-size:11px;line-height:1.4}
.championship-prize strong{font-weight:700}
.championship-pilot{font-size:10px;color:#71657d;line-height:1.4}
.home-heading{margin-bottom:19px}
@media(max-width:1150px){.home-championship{grid-template-columns:52px minmax(0,1fr);gap:12px 18px;padding:21px}.championship-emblem{width:52px;height:62px}.championship-content h2{font-size:27px}}
@media(max-width:1023px){.home-championship{grid-template-columns:33px minmax(0,1fr);gap:9px 12px;padding:15px 16px;margin-bottom:19px}.championship-emblem{width:33px;height:43px;margin-top:3px;border-radius:13px 13px 9px 9px}.championship-emblem .icon{width:22px;height:22px}.championship-emblem>span{font-size:15px;right:-5px}.championship-content .eyebrow{display:none}.championship-content h2{font-size:23px;line-height:1.12;margin:0 0 6px;letter-spacing:-.4px}.championship-content p{font-size:10px;line-height:1.5;margin:0 0 9px}.championship-reward{gap:5px 7px}.championship-prize{padding:6px 8px;font-size:11px;align-items:center}.championship-prize .icon{width:13px;height:13px;margin:0}.championship-pilot{font-size:9px}.home-championship>.btn{min-height:44px;margin:2px 0 0;padding:10px 15px;font-size:11px}.home-heading{margin-bottom:18px}.home-heading h1{font-size:26px;line-height:1.2}.footer{padding-top:12px}}
/* Keep the layout at device width, including rotation and display cutouts. */
html{touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}
input,select,textarea{max-width:100%;min-width:0;font-size:16px}
.input,.puzzle-input,.owner-select select,.assign-rows select{font-size:16px}
.workspace,main,.card,.hero,.online-forms>*,.home-adventure>*,.more-layout>*,.room-grid>*,.group-layout>*{min-width:0}
.page-header h1,dialog h2,.more-title,.more-description,.chapter-row h3,.championship-content h2{overflow-wrap:anywhere}
.btn{max-width:100%;white-space:normal}
.hero{display:flex;flex-direction:column;justify-content:flex-end}
.hero-content{position:relative;inset:auto;padding:100px 28px 27px}
.hero img{inset:0}

/* The heading receives screen-reader focus; only controls need a visible ring. */
#dialog-title:focus{outline:none}
dialog{width:min(640px,calc(100% - 2 * max(12px,env(safe-area-inset-left),env(safe-area-inset-right))));max-height:calc(100dvh - 2 * max(12px,env(safe-area-inset-top),env(safe-area-inset-bottom)));overflow-y:auto;overscroll-behavior:contain}
body:has(dialog[open]){overflow:hidden}
#dialog-body{min-width:0}
.dialog-top{gap:14px;align-items:flex-start}
.dialog-top .eyebrow{overflow-wrap:anywhere}
.close-button{flex-shrink:0;min-width:44px;min-height:44px}
.dialog-desc{font-size:14px}
.memory-lights{grid-template-columns:repeat(4,minmax(0,1fr))}
.memory-light{min-width:0}
.memory-light small{max-width:100%;overflow-wrap:anywhere}
.sequence,.word-tiles,.garden-pots{flex-wrap:wrap}
.pot-button{flex:0 1 95px;min-width:0}
.word-tiles span,.symbol-slot{flex-shrink:0}
.owner-select select{margin:6px 0 0;min-height:44px}
.arena-table{table-layout:fixed}
.arena-table td,.arena-table th{overflow-wrap:anywhere}

@media(max-width:1023px){
 .sidebar{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 .topbar{height:auto;min-height:calc(67px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
 main{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
 .footer{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
 .home-adventure{grid-template-columns:minmax(0,1fr)}
 .home-summary{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .home-summary .card-title,.home-rank,.home-summary>.text-button{grid-column:1}
 .home-stats{grid-column:2;grid-row:1/4}
 .hero-content,.home-adventure .hero-content{inset:auto;padding:95px 22px 23px}
 .online-forms{grid-template-columns:minmax(0,1fr)}
 .online-forms .card{padding:22px}
 .room-grid,.group-layout{grid-template-columns:minmax(0,1fr)}
 .invite-card{min-width:0;max-width:100%}
 #dialog-body{padding:20px}
 dialog h2{font-size:clamp(25px,4vw,31px);line-height:1.2}
 .dialog-desc{font-size:14px}
 .dialog-actions .btn,.memory-controls .btn{min-height:44px}
}

/* Use the extra width on tablets without bringing back the narrow sidebar. */
@media(min-width:701px) and (max-width:1023px){
 main{padding:30px max(28px,env(safe-area-inset-left)) 24px max(28px,env(safe-area-inset-right))}
 .mission-grid,.online-forms,.more-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
 .page-header h1{font-size:36px}
 .home-heading h1{font-size:32px}
 .home-championship{grid-template-columns:43px minmax(0,1fr) auto;gap:18px;padding:20px 24px}
 .home-championship>.btn{grid-column:3;justify-self:end;margin:0}
 .championship-content h2{font-size:26px}
 .home-adventure .hero{min-height:340px}
}

/* Compact navigation leaves room for the game on landscape phones. */
@media(max-width:1023px) and (max-height:600px) and (orientation:landscape){
 .sidebar{height:calc(56px + env(safe-area-inset-bottom))}
 #nav{height:56px}
 .nav-link{min-height:56px;flex-direction:row;gap:8px;padding:8px;font-size:12px}
 .nav-link .icon{width:21px;height:21px}
 .workspace{margin-bottom:calc(56px + env(safe-area-inset-bottom))}
 .topbar{min-height:calc(52px + env(safe-area-inset-top))}
 main{padding-top:20px}
 .home-adventure .hero{min-height:260px}
 #dialog-body{padding:16px 22px}
 .dialog-top{margin-bottom:10px}
 dialog h2{font-size:25px}
 .memory-lights{margin:16px 0}
 .memory-light{min-height:76px;padding:10px 4px}
 #toast{bottom:calc(68px + env(safe-area-inset-bottom))}
}

@media(max-width:380px){
 main{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
 #dialog-body{padding:16px}
 .home-summary{grid-template-columns:minmax(0,1fr)}
 .home-stats{grid-column:1;grid-row:auto;gap:30px}
 .chapter-row>div:nth-child(2){min-width:0;flex-basis:calc(100% - 53px)}
 .chapter-row .btn{margin-left:0}
 .hero-badge{letter-spacing:.6px;left:14px}
 .hero-corner{right:14px}
 .memory-lights{gap:5px}
}
/* Programmatic focus on the content container must not outline the whole page. */
main:focus{outline:none}
#my-groups[hidden],#my-groups:empty{display:none}
.local-play-note{margin:0 0 20px;padding:20px 22px;border:1px solid #d6dfcc;border-radius:13px;background:#eaf0e2;display:flex;gap:18px;justify-content:space-between;align-items:center}
.local-play-note strong{color:var(--ink)}
.local-play-note p{margin:6px 0 0}
.local-play-note .btn{flex-shrink:0;margin:0}
.more-championship .championship-reward{display:flex;flex-wrap:wrap;gap:7px 9px}
.more-championship .championship-prize{background:#f4dfa6;border:1px solid #d2b871;border-radius:7px;padding:7px 10px;color:#514022;font-size:12px;font-weight:700;line-height:1.4}
.more-championship .championship-prize b{font-weight:700}
.more-championship .championship-pilot{font:10px/1.5 system-ui;color:#75667d;letter-spacing:0}
.more-championship>span:nth-child(2){min-width:0}
.support-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;margin:20px 0}
.support-layout>*{min-width:0}
.support-chat h2,.support-contact h2,.support-admin h2{font:27px/1.2 var(--serif);margin:0 0 9px}
.support-chat-heading,.support-admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.support-chat-heading p{font-size:13px;color:var(--muted);margin:0}
.support-chat-heading>.icon{flex-shrink:0;color:#78916b;width:28px;height:28px}
.support-messages{height:clamp(210px,40dvh,380px);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:14px;background:#f2f3eb;border:1px solid var(--line);border-radius:11px;margin:22px 0 18px}
.support-bubble{max-width:90%;width:fit-content;padding:12px 15px;border-radius:13px;background:#fffefa;border:1px solid #dbe1d4;flex-shrink:0}
.support-bubble.from-player{align-self:flex-end;background:#e1ebd9}
.support-bubble small{font-size:10px;color:#64735f;display:block;line-height:1.5}
.support-bubble p{font-size:14px;margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
.support-empty{margin:auto;text-align:center;max-width:290px;color:var(--muted);font-size:13px}
.support-empty strong{font:25px var(--serif);color:var(--green)}
.support-send{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}
.support-send small{font-size:11px;color:var(--muted)}
.support-chat textarea{resize:vertical;min-height:90px;font-size:16px;line-height:1.5}
.support-chat #support-status{min-height:18px}
.support-contact{align-self:start}
.support-contact p{font-size:13px;color:var(--muted);line-height:1.7}
.support-contact .btn{margin-top:15px}
.support-email{display:block;color:var(--green);font-size:15px;text-decoration:underline;overflow-wrap:anywhere}
.support-admin{margin-top:26px}
.support-admin-heading{align-items:center;margin-bottom:18px}
.support-settings-row{display:flex;gap:12px;align-items:center}
.support-settings-row .input{flex:1}
.support-settings-row .btn{flex-shrink:0}
#support-settings{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.support-thread{border:1px solid var(--line);background:#f9faf2;border-radius:9px;width:100%;padding:15px;display:flex;justify-content:space-between;gap:14px;text-align:left;margin:9px 0;color:var(--ink)}
.support-thread>span:first-child{min-width:0}
.support-thread strong{display:block;font-size:14px}
.support-thread small{display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.support-thread-state{font-size:11px;flex-shrink:0;color:#64774d}
@media(max-width:1023px){
 .local-play-note{padding:20px;margin-bottom:20px}
 .support-layout{grid-template-columns:minmax(0,1fr)}
 .support-contact{display:block}
 .support-admin-heading{flex-wrap:wrap}
 .support-chat .btn,.support-settings-row .btn,.support-admin .btn{min-height:44px}
}
@media(max-width:700px){
 .local-play-note{display:block}
 .local-play-note .btn{margin-top:15px}
 .support-settings-row{flex-direction:column;align-items:stretch}
 .support-thread{flex-direction:column;gap:8px}
 .support-messages{padding:10px}
 .support-bubble{max-width:95%}
}
/* Native controls keep fast taps; background double taps are handled separately. */
html,body,main,dialog{touch-action:pan-x pan-y}
button,a,input,textarea,select,summary{touch-action:manipulation}
.picnic-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:20px 0}
.picnic-strip>span{display:flex;flex-direction:column;align-items:center;gap:7px;padding:16px 5px;background:#f0e1dd;border-radius:10px;font-size:30px}
.picnic-strip>span:nth-child(2){background:#f2eacb}.picnic-strip>span:nth-child(3){background:#e2ebd8}.picnic-strip>span:nth-child(4){background:#dfe9ee}
.picnic-strip small{font-size:11px;color:var(--ink)}
.night-code-art{text-align:center;border-radius:12px;background:linear-gradient(140deg,#284e45,#516773);padding:20px;color:#f7f0d7;margin:20px 0}
.night-code-art>span{display:block;font-size:29px}.night-code-art strong{display:block;font:32px var(--serif);letter-spacing:5px;margin:8px 0}.night-code-art small{font-size:12px}
.install-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0}
.install-selector button{padding:12px 8px;border:1px solid #d5ddcb;border-radius:8px;background:#f2f4e8;color:var(--green);font-size:12px;min-height:44px}
.install-selector button.active{background:var(--green);color:#fffefa;border-color:var(--green)}
.install-steps{list-style:none;padding:0;display:flex;flex-direction:column;gap:12px;margin:20px 0}
.install-steps li{display:grid;grid-template-columns:28px minmax(0,1fr) 60px;gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f7f8ef;align-items:start}
.install-number{display:grid;place-items:center;border-radius:50%;width:28px;height:28px;background:#e1e9d8;color:var(--green);font-size:13px;font-weight:700}
.install-steps strong{font-size:14px;line-height:1.5;display:block}
.install-steps p{font-size:13px;color:var(--muted);line-height:1.65;margin:6px 0 0}
.install-picture{display:flex;align-items:center;justify-content:center;min-height:55px;border:1px solid #d2dbc6;border-radius:9px;background:#e8eee0;align-self:center;color:var(--green);overflow:hidden}
.install-picture .icon{width:29px;height:29px}
.install-share{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.install-mini-menu{font-size:35px;line-height:1}.install-mini-address{font-size:8px;padding:6px;background:#fffefa;border:1px solid #d8dfce;border-radius:5px;max-width:54px;overflow-wrap:anywhere;text-align:center}
.install-picture-note{font-size:10px;color:var(--muted);margin:0 0 20px}
.install-help{border:1px solid var(--line);border-radius:10px;padding:15px;font-size:13px;line-height:1.65;background:#f9f7ed}
.install-help summary{cursor:pointer;font-weight:600}.install-help a{color:var(--green);text-decoration:underline}
.install-address{margin:22px 0}.install-address .btn{margin-top:12px;min-height:44px}
.install-native{width:100%;min-height:44px}.install-ready{margin-bottom:16px}
@media(max-width:400px){.install-steps li{grid-template-columns:24px minmax(0,1fr) 44px;padding:12px;gap:8px}.install-number{width:24px;height:24px}.install-picture{min-height:44px}.install-steps p{font-size:12px}.picnic-strip{gap:5px}.picnic-strip small{font-size:10px}}

/* Dialogs stay inside the visible area as the keyboard and browser bars change. */
#game-dialog[open]{position:fixed;inset:auto;top:var(--dialog-visible-top,12px);left:var(--dialog-visible-left,max(12px,calc((100vw - 640px)/2)));margin:0;transform:none;width:var(--dialog-visible-width,min(640px,calc(100vw - 24px)));max-height:var(--dialog-available-height,calc(100svh - 24px))}
dialog .dialog-top{position:sticky;top:0;z-index:5;background:var(--paper);padding-bottom:10px}
.support-draft-note{font-size:11px;line-height:1.6;margin-bottom:0}
@media(max-height:500px){.support-messages{height:160px}.support-chat textarea{min-height:72px}}

/* Pusterom masthead: one compact identity, with a personal profile on every screen. */
:root{--topbar-height:76px;--bottom-nav-height:76px}
html{scroll-padding-top:calc(var(--topbar-height) + 16px)}
.topbar{position:sticky;top:0;z-index:30;height:var(--topbar-height);min-height:var(--topbar-height);padding:0 32px;background:rgb(246 245 240 / .96);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);gap:18px;transition:box-shadow .2s}
.topbar.is-scrolled{box-shadow:0 5px 22px #263f3810}
.header-brand{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;min-height:44px;border-radius:9px}
.header-brand img{display:block;flex-shrink:0;width:38px;height:38px}
.header-wordmark{display:block;color:var(--green);font:29px/.95 var(--serif);letter-spacing:-1.3px}
.header-wordmark small{display:block;font:8px/1.5 system-ui;letter-spacing:2px;color:#73806e;margin-top:6px}
.topbar-right{min-width:0;gap:18px;justify-content:flex-end}
.header-about{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;color:#5d6f60;font-size:12px;padding:8px;border-radius:10px;flex-shrink:0}
.header-about:hover{background:#e7ecdf}
.header-about .icon{width:19px;height:19px}
.header-profile{display:flex;align-items:center;gap:10px;min-width:0;min-height:48px;max-width:230px;background:#fffefa;border:1px solid #dce3d6;border-radius:14px;padding:7px 10px;text-align:left;box-shadow:0 2px 8px #284e4505}
.header-profile:hover{border-color:#a9b99a;background:#f8faef}
.header-profile .avatar{background:#e3ebdb;color:var(--green);width:32px;height:32px;font-size:17px}
.header-profile-text{display:block;min-width:0}
.header-profile strong{display:block;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650;color:var(--ink);line-height:1.4}
.header-profile small{display:block;font-size:10px;font-weight:550;line-height:1.5;color:#667755;white-space:nowrap}
.header-profile .profile-chevron{width:13px;height:13px;color:#798872;margin-left:4px}
.sidebar{padding-top:31px}
.sidebar-label{margin-bottom:22px}
.profile-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.profile-stat-grid>div{padding:20px 16px;border:1px solid #dce3d4;border-radius:13px;background:#eff3e6;min-width:0}
.profile-stat-grid>div:nth-child(2){background:#eee9f3;border-color:#dfd6e8}
.profile-stat-grid small{display:block;font:9px/1.5 system-ui;font-weight:650;letter-spacing:1px;color:#667955;overflow-wrap:anywhere}
.profile-stat-grid strong{display:block;font:38px/1.4 var(--serif);color:var(--green)}
.profile-stat-grid>div:nth-child(2) strong{color:#71617e}
.profile-stat-grid span{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.profile-links{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0 24px}
.profile-links .text-button{font-size:12px;min-height:44px;gap:7px}
.profile-links .text-button .icon{width:17px;height:17px}
#profile-score-sync:empty{display:none}
.back-to-top{position:fixed;z-index:25;right:28px;bottom:24px;width:46px;height:46px;display:flex;align-items:center;justify-content:center;border:1px solid #466858;border-radius:50%;background:rgb(40 78 69 / .96);color:#fffefa;box-shadow:0 6px 18px #284e4528;transition:bottom .2s,background .2s}
.back-to-top[hidden]{display:none}
.back-to-top:hover{background:#3e6757}
.back-to-top .icon{width:21px;height:21px}
main{scroll-margin-top:calc(var(--topbar-height) + 16px)}
@media(min-width:1024px) and (max-width:1200px){.topbar{padding-inline:24px}.topbar .tempo{display:none}.topbar-right{gap:12px}}
@media(max-width:1023px){
 :root{--topbar-height:calc(68px + env(safe-area-inset-top))}
 .topbar{padding-top:env(safe-area-inset-top);padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));gap:12px}
 .header-brand{gap:8px}.header-brand img{width:33px;height:33px}.header-wordmark{font-size:26px;letter-spacing:-1.1px}.header-wordmark small{font-size:7px;letter-spacing:1.5px;margin-top:5px}
 .topbar .tempo{display:none}.topbar-right{gap:9px}
 .header-about span{display:none}.header-about{padding:10px}
 .header-profile{max-width:200px;padding:6px 9px;gap:8px;min-height:46px}
 .header-profile strong{max-width:124px}
 .sidebar{height:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));padding-top:0;padding-bottom:env(safe-area-inset-bottom);background:rgb(255 254 250 / .72);backdrop-filter:blur(18px) saturate(1.15);-webkit-backdrop-filter:blur(18px) saturate(1.15);border-top:1px solid #ffffff90;box-shadow:0 -4px 22px #284e4508;transition:transform .24s ease,opacity .2s ease;will-change:transform}
 .sidebar nav{height:var(--bottom-nav-height)}
 .sidebar.is-scroll-hidden{transform:translateY(calc(100% + 2px));opacity:0;pointer-events:none}
 .nav-link{font-size:11px;gap:5px}.nav-link .icon{width:23px;height:23px}
 .workspace{margin-bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom))}
 .back-to-top{right:max(18px,env(safe-area-inset-right));bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 16px)}
 .bottom-nav-hidden .back-to-top{bottom:calc(env(safe-area-inset-bottom) + 16px)}
 #toast{bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 18px);max-width:calc(100vw - 40px)}
}
@media(max-width:600px){
 .header-wordmark small{display:none}.header-wordmark{font-size:24px}.header-brand img{width:31px;height:31px}
 .header-profile .avatar,.header-profile .profile-chevron{display:none}.header-profile{max-width:145px;min-width:104px;border-radius:11px;padding:7px 10px}
 .header-profile strong{max-width:118px}.topbar-right{gap:5px}.topbar{gap:8px}
}
@media(max-width:380px){
 .topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));gap:5px}
 .header-brand{gap:6px}.header-brand img{width:28px;height:28px}.header-wordmark{font-size:21px;letter-spacing:-.9px}
 .header-profile{min-width:100px;max-width:116px;padding:7px 8px}.header-profile strong{max-width:98px;font-size:11px}.header-profile small{font-size:9px}
 .topbar-right{gap:3px}.header-about{padding:10px}
 .profile-stat-grid>div{padding:14px 11px}.profile-stat-grid small{font-size:8px}
}
@media(max-width:1023px) and (max-height:600px) and (orientation:landscape){
 :root{--topbar-height:calc(56px + env(safe-area-inset-top));--bottom-nav-height:56px}
 .header-brand img{width:30px;height:30px}.header-wordmark{font-size:24px}.header-wordmark small{display:none}.header-profile{min-height:44px;padding-block:5px}
 .sidebar #nav{height:56px}.nav-link{flex-direction:row;gap:8px;padding:8px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.topbar,.sidebar,.back-to-top{transition:none}}

/* Selection stays green; pointer taps must not leave a second focus frame. */
.mood-options button:focus-visible,.quick-mission:focus-visible{outline:2px solid #8a749f;outline-offset:-4px}
body[data-focus-input="pointer"] :is(button,a,input,textarea,select,summary):focus{outline:none}

.picnic-assignments label{grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:center}
.picnic-assignments label>span{white-space:nowrap}
.picnic-assignments select{width:100%;min-width:0;min-height:44px}
@media(max-width:340px){.picnic-assignments label{grid-template-columns:minmax(0,1fr);gap:6px}.picnic-assignments label>span{font-size:13px}}
/* A steady header and answer area; only the task content scrolls. */
dialog .dialog-top{position:static}
#game-dialog[data-layout="mission"]{height:min(620px,var(--dialog-available-height,calc(100svh - 24px)));overflow:hidden}
#game-dialog[data-layout="mission"] #dialog-body{height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;padding:20px}
#game-dialog[data-layout="mission"] .dialog-top{flex-shrink:0;margin-bottom:10px;padding-bottom:0}
#game-dialog[data-layout="mission"] #dialog-title{flex-shrink:0;font-size:clamp(24px,4vw,30px);line-height:1.15;margin:0 0 14px}
.mission-panel{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0;overflow:hidden}
.mission-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 4px 12px;scroll-padding-block:12px}
.mission-content:focus-visible{outline:2px solid #8a749f;outline-offset:-2px}
.mission-content .dialog-desc{margin:0;line-height:1.5}
.mission-content .word-tiles{gap:clamp(3px,1vw,9px);margin:16px auto}
.word-clues .word-tiles{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));max-width:380px}
.word-clues .word-tiles span{width:100%;height:48px;min-width:0;font-size:clamp(21px,5vw,26px)}
.word-hint{padding:12px 14px;border:1px solid #e5e2d4;border-radius:10px;background:#f1efe4;color:#677356}
.word-hint small{display:block;font-size:10px;letter-spacing:1px;margin-bottom:4px}
.word-hint p{margin:0;font-size:14px;line-height:1.5}
.mission-footer{flex-shrink:0;border-top:1px solid var(--line);padding-top:12px;background:var(--paper)}
.mission-footer .form-label{margin-bottom:5px;font-size:13px}
.mission-footer .input{min-height:44px;scroll-margin-block:12px}
.mission-footer .inline-feedback:empty{display:none}
.mission-footer .inline-feedback{min-height:0;margin:6px 0;text-align:left}
.mission-footer .dialog-actions{margin-top:10px;gap:8px}
.mission-footer .btn{min-height:44px}
.word-answer-form .btn{width:100%}
.mission-footer .help{margin:8px 0 0}
.mission-content .puzzle-meta{margin:0 0 12px}
.mission-content .puzzle-hints{margin:12px 0 0}
.mission-content .lights-grid{max-width:240px;margin:14px auto;gap:8px}
.mission-content .night-code-art{display:flex;align-items:center;justify-content:center;gap:14px;padding:12px;margin:14px 0}
.mission-content .night-code-art span{font-size:26px}
.mission-content .night-code-art strong{font-size:24px;letter-spacing:4px;margin:0}
.mission-content .night-code-art small{display:none}
.picnic-mission .picnic-strip{margin:12px 0;gap:6px}
.picnic-mission .picnic-strip>span{padding:10px 4px;gap:5px;font-size:25px}
.picnic-mission .puzzle-clues{margin:12px 0;padding:12px 14px 12px 30px}
.picnic-mission .picnic-assignments{margin:12px 0 0}
.memory-mission .memory-lights{margin:12px 0;gap:8px}
.memory-mission .memory-light{min-height:74px;padding:10px 3px;gap:6px}
.memory-mission .memory-light span{font-size:27px}
.memory-mission .memory-light small{font-size:10px}
.memory-mission .memory-controls{margin:12px 0;gap:10px}
.memory-mission .sequence{margin:14px 0 4px}
/* At keyboard height, one continuous scroll area keeps every part reachable. */
#game-dialog[data-layout="mission"][data-viewport-compact="true"]{overflow-y:auto}
#game-dialog[data-layout="mission"][data-viewport-compact="true"] #dialog-body{height:auto;display:block;overflow:visible;padding:16px}
dialog[data-viewport-compact="true"] .mission-panel{display:block}
dialog[data-viewport-compact="true"] .mission-content{overflow:visible}
@media(max-height:420px){
 #game-dialog[data-layout="mission"]{overflow-y:auto}
 #game-dialog[data-layout="mission"] #dialog-body{height:auto;display:block;overflow:visible;padding:16px}
 .mission-panel{display:block}
 .mission-content{overflow:visible}
}

/* Pusterom: a warm, grown-up adventure. Nature retains its green palette. */
:root{--bg:#fbf6f0;--paper:#fffcf8;--ink:#41213d;--muted:#756676;--line:#e8dce1;--plum:#542b49;--rose:#f4e4e1;--lilac:#eae0ef;--gold:#e4c78a;--shadow:0 12px 38px #4b24420c}
body{background:radial-gradient(ellipse at 85% 0,#f3e3e655,transparent 55%),var(--bg)}
.topbar{background:rgb(251 246 240 / .95);border-color:var(--line)}
.header-wordmark{color:var(--ink)}
.header-wordmark small,.header-about,.header-profile small,.tempo{color:var(--muted)}
.header-profile{background:rgb(255 252 248 / .85);border-color:var(--line)}
.header-profile:hover,.header-about:hover{background:#f3e8ec;border-color:#cbb5c7}
.header-profile .avatar{background:var(--lilac);color:var(--plum)}
.sidebar{background:#f8f0ed;border-color:var(--line)}
.sidebar-label,.side-note{color:var(--muted)}
.nav-link{color:#736775}
.nav-link.active{color:var(--plum);background:#ecdfeb}
.nav-link:hover{background:#f2e8ef}
.nav-dot{background:#ac84a7}
.btn{background:var(--plum);border-color:var(--plum);color:#fffcf8;font-size:14px}
.btn:hover{background:#6b375b}
.btn:disabled{background:#d9d0da;border-color:#d9d0da;color:#6b5c6e;opacity:1}
.btn-secondary{background:#f0e9ec;border-color:#e0d2dc;color:var(--plum)}
.btn-secondary:hover{background:#e9dce6}
.btn-purple{background:#e7d9ec;border-color:#d8c7df;color:var(--plum)}
.text-button,.hint-button{color:#6e4b6b}
.mission-icon{background:#efe2e8;color:#835978}
.mission-icon.purple{background:var(--lilac);color:#806490}
.mission-icon.peach{background:var(--rose);color:#9c6d67}
.mood-options button.active{background:var(--plum);color:var(--paper);border-color:var(--plum)}
.mood-options button:not(.active){background:#fffcf8;border-color:var(--line);color:var(--ink)}
.answer.selected,.room-option.selected{background:#f0e5ef;border-color:#9c7a99}
.input,.owner-select select{background:var(--paper);border-color:var(--line);color:var(--ink)}
.input:focus-visible,.owner-select select:focus-visible{border-color:#aa83a4}
.more-championship{background:linear-gradient(110deg,#eaddee,#f3e4e8);border-color:#d6c4df;color:var(--plum)}
.more-title,.more-championship strong{color:var(--ink)}
.bottom-note{background:#f2eaf0;border-color:var(--line);color:var(--muted)}
.bottom-note>.icon{color:#9f86a6}
.back-to-top{background:rgb(84 43 73 / .96);border-color:#744b6a;box-shadow:0 6px 18px #542b4922}
.back-to-top:hover{background:#6b375b}
dialog{box-shadow:0 24px 100px #34162b45}
dialog::backdrop{background:#3525369c}
.footer{color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Main adventure first; compact, optional destinations follow it. */
.story-home{max-width:1160px;margin-inline:auto}
.story-home .home-heading{margin:0 0 22px}
.story-home .home-heading h1{font-size:clamp(27px,3.3vw,42px);line-height:1.18;letter-spacing:-.8px;margin-bottom:8px}
.story-home .home-heading p{font:17px/1.45 var(--serif);color:#715769}
.home-feature-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px;align-items:stretch}
.home-feature-grid>*{min-width:0}
.story-home .story-hero{min-height:460px;border:1px solid #4c2c4422;border-radius:20px;background:#2d3431;box-shadow:var(--shadow)}
.story-hero img{object-position:62% center}
.story-hero::after{background:linear-gradient(180deg,#3019340a 20%,#301b2b0d 43%,#192a27a6 68%,#1b2929fa)}
.story-hero-meta{position:absolute;left:18px;right:18px;top:17px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#fff8eb}
.story-hero .hero-badge,.story-hero .hero-corner{position:static;min-width:0;font-size:11px;letter-spacing:.5px}
.story-hero .hero-badge{padding:6px 11px;border-color:#fff6e875;background:#48364c33}
.story-hero .hero-corner{font-size:12px;letter-spacing:0;white-space:nowrap;background:#33253b33;border-radius:20px;padding:5px 8px}
.story-hero .hero-corner .icon{width:15px;height:15px}
.story-home .story-hero .hero-content{padding:195px 22px 22px;inset:auto;color:#fffaf2}
.story-home .story-hero h2{font-size:clamp(28px,2.7vw,38px);line-height:1.13;letter-spacing:-.4px;margin-bottom:10px;overflow-wrap:anywhere}
.story-hero .hero-content .eyebrow{color:#f6e9de;font-size:10px;letter-spacing:2px}
.story-home .story-hero p{font-size:14px;line-height:1.5;color:#fcf3e9;margin:0 0 17px;max-width:480px}
.story-hero .story-continue{width:100%;min-height:50px;justify-content:center;gap:18px;border:1px solid var(--gold);border-radius:15px;background:linear-gradient(120deg,#65354e,#482441);font:18px/1.3 var(--serif);color:#fff9ed;box-shadow:0 3px 12px #120a1122}
.story-hero .story-continue:hover{background:#733e60}
.home-secondary{display:flex;flex-direction:column;gap:16px;min-width:0}
.home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-shortcut{display:flex;flex-direction:column;align-items:stretch;justify-content:center;text-align:left;min-width:0;padding:12px 14px 14px;border:1px solid var(--line);border-radius:17px;background:linear-gradient(150deg,#fffcf8,#faf0ee);box-shadow:0 4px 12px #4b244205;transition:background .15s,border-color .15s}
.home-shortcut:hover{background:#f6e9ef;border-color:#c5a7bb}
.home-shortcut>img{width:100%;height:95px;object-fit:contain}
.home-shortcut>span{display:flex;align-items:center;justify-content:space-between;gap:5px}
.home-shortcut strong{font:22px/1.25 var(--serif);color:var(--ink)}
.home-shortcut .icon{width:17px;height:17px;color:var(--plum)}
.home-shortcut small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:7px}
.home-championship-compact{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid #d9c4df;background:linear-gradient(110deg,#e9d8ec,#f0e0e9);border-radius:15px;min-width:0}
.home-championship-compact:hover{border-color:#af8eaf;background:#e5d4e8}
.home-trophy{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:38px;height:44px;color:#a77831;background:#fff0cf;border:1px solid #e2c78f;border-radius:12px;transform:rotate(-5deg)}
.home-trophy .icon{width:24px;height:24px;stroke-width:1.7}
.home-championship-copy{min-width:0;flex:1}
.home-championship-copy>strong{display:block;font:21px/1.2 var(--serif);overflow-wrap:anywhere}
.home-championship-copy>small{display:block;color:#725c78;font-size:11px;margin-top:5px}
.home-championship-compact>.icon{width:17px;height:17px;flex-shrink:0}
.home-prize{display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px;margin-top:8px}
.home-prize b{display:inline-block;padding:3px 6px;border:1px solid #d1ad61;border-radius:6px;background:#f6df9d;color:#5d4317;font-size:10px;line-height:1.6}
.home-prize small{font-size:10px;color:#725c78}
.home-progress-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 17px;background:var(--paper);border:1px solid var(--line);border-radius:15px;flex:1;min-width:0}
.home-progress-panel>div:first-child{min-width:0}
.home-progress-label{font-size:9px;font-weight:650;letter-spacing:1.5px;display:flex;align-items:center;gap:6px;color:#7a6b75}
.home-progress-label .icon{width:15px;height:15px;color:#769071}
.home-progress-panel>div>strong{display:block;font:24px/1.3 var(--serif);margin:5px 0 2px}
.home-progress-panel .text-button{justify-content:flex-start;font-size:11px;min-height:36px}
.home-progress-panel .text-button .icon{width:15px;height:15px}
.home-progress-stats{display:flex;gap:19px;text-align:center;flex-shrink:0}
.home-progress-stats b{font:28px/1.2 var(--serif);display:block}
.home-progress-stats b small{font-size:13px;display:inline}
.home-progress-stats small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.story-home .home-quick{background:#fbf1ec;border-color:var(--line);margin-top:22px;border-radius:16px}
.story-home .home-quick>summary{padding:17px 20px;min-width:0}
.story-home .home-quick>summary>span:nth-child(2){min-width:0}
.story-home .home-quick>summary strong{font-size:23px;line-height:1.25;overflow-wrap:anywhere}
.story-home .home-quick>summary small{color:var(--muted);font-size:12px}
.story-home .home-quick[open]>summary{border-color:var(--line)}
.story-home .quick-section{padding:22px}
.story-home .quick-mission{background:var(--paper);border-color:var(--line)}
.story-home .quick-mission:hover{background:#f7eaf2;border-color:#bfa1bd}
.story-home .bottom-note{margin-top:20px;font-size:13px;line-height:1.55}

/* First mystery: the scene scrolls; the answer and close control stay reachable. */
.door-scene{position:relative;margin:0;border-radius:14px;overflow:hidden;aspect-ratio:2.35;background:#354334}
.door-scene>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 44%}
.door-arch{position:absolute;left:50%;top:12%;transform:translateX(-50%);display:flex;gap:6px;background:#fbeadcd9;box-shadow:0 0 16px #fbe6cbaa;border-radius:16px;padding:2px 6px}
.door-arch .door-symbol{width:19px;height:19px}
.door-symbol{display:block;width:28px;height:28px;flex-shrink:0}
.door-intro{text-align:center;padding:12px 4px 10px}
.door-intro h3{font:23px/1.2 var(--serif);margin:0 0 6px}
.door-intro p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
.door-mission .owner-select{margin:0 0 10px;font-size:12px}
.door-clues{display:grid;gap:7px}
.door-clue{display:flex;align-items:center;gap:10px;width:100%;min-height:57px;padding:8px 11px;border:1px solid var(--line);border-radius:11px;text-align:left;background:#faeae7;color:var(--ink)}
.door-clue:nth-child(2){background:#f6efdf}
.door-clue:nth-child(3){background:#edf0e7}
.door-clue:hover:not(:disabled){border-color:#ba94b0;box-shadow:0 2px 6px #542b4912}
.door-clue.found{cursor:default;opacity:1}
.door-clue-object{width:34px;height:36px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.clue-object{display:block;width:100%;height:100%}
.door-clue>span:nth-child(2){min-width:0;flex:1}
.door-clue strong{display:block;font:14px/1.4 var(--serif)}
.door-clue small{display:block;font-size:10px;color:#76646e;line-height:1.45;margin-top:3px;overflow-wrap:anywhere}
.door-clue.found strong{font-size:15px}
.door-clue.found small{margin:0 0 2px}
.door-clue>.icon{width:16px;height:16px;flex-shrink:0;color:#997b91}
.door-controls{padding-top:10px}
.door-controls>.btn{width:100%;justify-content:center}
.door-instructions{font:14px/1.4 var(--serif);text-align:center;margin:0 0 7px}
.door-sequence{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;list-style:none;padding:0;margin:0 auto 8px;max-width:350px}
.door-sequence li{height:42px;border:1px dashed #d9c6d0;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#f8efeb;color:#a98b9f;font-size:24px}
.door-sequence li.filled{background:#f8e8d4;border-style:solid;border-color:#dac094}
.door-sequence .door-symbol{width:25px;height:25px}
.door-symbol-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 auto;max-width:350px}
.door-symbol-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:58px;border:1px solid #d8c4b1;border-radius:12px;padding:6px 3px;background:#fff7ea}
.door-symbol-choices button:hover:not(:disabled){background:#f8e7c9;border-color:#bd9255}
.door-symbol-choices button:disabled{opacity:.42}
.door-symbol-choices button span{font-size:10px;color:#76616c}
.door-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:10px}
.door-actions .btn{min-height:46px;justify-content:center;font:17px/1.3 var(--serif);border:1px solid var(--gold);border-radius:12px;padding:10px 14px}
.door-actions .text-button{font-size:11px;min-height:44px;justify-content:center;padding:6px}
.door-found-count{display:flex;align-items:center;justify-content:center;gap:11px;font-size:12px;color:var(--muted);margin:0 0 9px}
.door-found-count>span{display:flex;gap:5px}
.door-found-count i{width:7px;height:7px;border-radius:50%;background:#e0cdd9}
.door-found-count i.found{background:#a4799d}
.door-controls .help{text-align:center;font-size:11px}
.clue-prop{display:flex;align-items:center;gap:20px;margin:0 0 18px;padding:15px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(110deg,#f5e4e0,#fff8ef)}
.clue-prop-1{background:linear-gradient(110deg,#eae0ee,#fff8ef)}
.clue-prop-2{background:linear-gradient(110deg,#e8eddf,#fff8ef)}
.clue-prop .clue-object{width:78px;height:78px;flex-shrink:0}
.clue-prop span{font:22px/1.3 var(--serif)}
.clue-mission .answer{min-height:48px;background:#fff8f3;border-color:var(--line);font-size:14px}
.clue-mission .answer:hover{background:#f2e5ef;border-color:#bb9ab3}
.clue-mission .letter{background:#ecdfec;color:var(--plum)}
.clue-mission #back-door{width:100%;justify-content:center}
.clue-mission #back-door .icon{transform:rotate(180deg)}
.door-success-scene{position:relative;margin:0 0 16px;aspect-ratio:1.8;border-radius:15px;overflow:hidden;background:#324a3b}
.door-success-scene img{width:100%;height:100%;display:block;object-fit:cover}
.door-success-scene:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 72%,#ffe59a6b,transparent 40%),linear-gradient(0deg,#271a2aa1,transparent 60%);pointer-events:none}
.door-success-scene span{position:absolute;z-index:1;top:44%;left:50%;transform:translate(-50%,-50%);color:#ffecad;font-size:55px;text-shadow:0 0 20px #ffdf6c}
.door-success-scene figcaption{position:absolute;z-index:1;bottom:15px;left:15px;right:15px;text-align:center;color:#fff8e9;font:27px/1.3 var(--serif)}
.door-success .reward{margin:0 0 5px;color:#87642a;background:#f8e9c9;border-color:#e7cf9e}
.door-success .help{font-size:12px;color:var(--muted)}

@media(max-width:1100px){.home-feature-grid{gap:16px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.home-shortcut{padding-inline:10px}.home-shortcut strong{font-size:19px}.home-championship-copy>strong{font-size:19px}.home-progress-stats{gap:12px}}
@media(max-width:760px){
 .home-feature-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .story-home .story-hero{min-height:390px}
 .home-secondary{gap:13px}
 .home-shortcut>img{height:85px}
 .home-shortcut strong{font-size:23px}
 .home-progress-panel{padding:13px 17px}
 .home-championship-compact{padding:13px 15px}
 .home-championship-copy>strong{font-size:21px}
 .story-home .home-heading{margin-bottom:17px}
 .story-home .home-heading p{font-size:16px}
}
@media(max-width:600px){
 .story-home .story-hero{min-height:365px;border-radius:16px}
 .story-home .story-hero .hero-content{padding:175px 17px 17px}
 .story-home .story-hero h2{font-size:29px}
 .story-home .story-hero p{font-size:13px;margin-bottom:14px}
 .story-hero-meta{left:13px;right:13px;top:13px}
 .story-hero .hero-badge{font-size:9px;letter-spacing:.6px;padding:5px 8px}
 .story-hero .hero-corner{font-size:11px;padding:4px 5px}
 .story-hero .story-continue{min-height:48px;font-size:17px;border-radius:13px}
 .home-shortcuts{gap:10px}
 .home-shortcut{padding:6px 12px 11px;border-radius:14px}
 .home-shortcut>img{height:68px}
 .home-shortcut strong{font-size:20px}
 .home-shortcut small{font-size:10px;margin-top:5px}
 .home-championship-compact{gap:10px;padding:12px}
 .home-championship-copy>strong{font-size:20px}
 .home-championship-copy>small{font-size:10px}
 .home-trophy{width:32px;height:38px}
 .home-trophy .icon{width:21px;height:21px}
 .home-progress-panel>div>strong{font-size:22px}
 .home-progress-stats b{font-size:27px}
 .story-home .home-quick>summary{padding:16px 14px;gap:10px}
 .story-home .home-quick>summary strong{font-size:22px}
 .story-home .home-quick>summary small{font-size:11px}
 .story-home .quick-section{padding:19px 15px}
 .door-intro h3{font-size:21px}
 .door-clue{gap:8px;padding:7px 9px}
 .door-clue strong,.door-clue.found strong{font-size:14px}
 .door-controls .inline-feedback{font-size:12px;line-height:1.4}
 .clue-prop{padding:10px;gap:12px}
 .clue-prop .clue-object{width:65px;height:65px}
 .clue-prop span{font-size:20px}
 .door-success .dialog-actions{display:grid;grid-template-columns:1fr 1fr}
 .door-success .dialog-actions .btn{font-size:12px;justify-content:center}
}
@media(max-width:380px){
 .story-home .home-heading h1{font-size:26px}
 .home-shortcut strong{font-size:18px}
 .home-shortcut{padding-inline:9px}
 .home-shortcut small{font-size:10px}
 .home-championship-copy>strong{font-size:18px}
 .home-progress-panel{padding-inline:12px;gap:8px}
 .home-progress-stats{gap:10px}
 .home-progress-stats b{font-size:24px}
 .door-actions{gap:5px}
 .door-actions .btn{font-size:16px;padding-inline:8px}
 .door-actions .text-button{font-size:10px;padding:4px}
 .door-symbol-choices,.door-sequence{gap:6px}
}
@media(max-width:1023px){
 .sidebar{background:rgb(255 251 247 / .72);border-top-color:#f2e7ed99;box-shadow:0 -4px 22px #542b4907}
 .nav-link.active{background:transparent}
 .nav-link.active:before{background:#a382a8}
}
@media(max-width:1023px) and (max-height:600px) and (orientation:landscape){
 .home-feature-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
 .story-home .story-hero{min-height:320px}
 .story-home .story-hero .hero-content{padding-top:130px}
 .home-shortcut>img{height:55px}
 .home-shortcut strong{font-size:18px}
 .home-progress-panel{padding:10px 12px}
 .home-secondary{gap:10px}
 .home-progress-panel .text-button{min-height:30px}
}
@media(max-height:420px){.door-scene{max-height:150px}.door-success-scene{max-height:180px}.clue-prop .clue-object{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.home-shortcut{transition:none}}

/* The first mystery uses the available screen, rather than the general 620px cap. */
#game-dialog[data-layout="mission"][data-presentation="adventure"]{height:min(860px,var(--dialog-available-height,calc(100svh - 24px)));width:var(--dialog-visible-width,min(860px,calc(100vw - 24px)));left:var(--dialog-visible-left,max(12px,calc((100vw - 860px)/2)))}
#game-dialog[data-layout="mission"][data-presentation="adventure"] #dialog-body{padding:14px}
#game-dialog[data-presentation="adventure"] .dialog-top{align-items:center;margin-bottom:4px}
#game-dialog[data-presentation="adventure"] #dialog-title{margin-bottom:10px}
#game-dialog[data-presentation="adventure"] .close-button{width:44px;height:44px;min-height:44px;min-width:44px}
.door-mission .mission-content{padding:0 2px 10px}
.door-scene{aspect-ratio:3 / 2;max-height:none}
.door-scene>img{object-fit:contain;object-position:center}
.door-arch{top:12%;gap:6px;padding:3px 7px}
.door-intro{padding:10px 2px 8px}
.door-intro h3{margin-bottom:4px}
.door-clues-ready{gap:5px}
.door-clues-ready .door-clue{min-height:37px;padding:5px 9px;gap:9px}
.door-clues-ready .door-clue-object{width:25px;height:25px}
.door-clues-ready .door-symbol{width:24px;height:24px}
.door-clues-ready .door-clue.found strong{font-size:14px;line-height:1.35}
.door-controls{padding-top:8px}
.door-controls .door-sequence,.door-controls .door-symbol-choices{max-width:none;gap:8px}
.door-controls .door-sequence li{height:38px}
.door-controls .door-symbol-choices button{min-height:54px}
.door-controls .door-instructions{margin-bottom:6px}
.door-actions{margin-top:8px}
@media(min-width:680px){
 .door-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:16px}
 .door-overview>*{min-width:0}
 .door-overview .door-intro{padding-top:3px;text-align:left}
 .door-overview .door-intro h3{font-size:23px}
 .door-overview .door-clues{margin-top:10px}
 .door-overview .door-clues-ready .door-clue{min-height:48px}
 #game-dialog[data-presentation="adventure"] .door-controls .door-sequence,#game-dialog[data-presentation="adventure"] .door-controls .door-symbol-choices{max-width:440px}
 .door-controls .door-actions{max-width:540px;margin-inline:auto}
}
@media(max-width:600px){
 #game-dialog[data-layout="mission"][data-presentation="adventure"]{height:var(--dialog-available-height,100svh);max-height:var(--dialog-available-height,100svh);width:var(--dialog-visible-width,100vw);top:var(--dialog-visible-top,0px);left:var(--dialog-visible-left,0px);border-radius:0}
 #game-dialog[data-layout="mission"][data-presentation="adventure"] #dialog-body{padding:12px}
 #game-dialog[data-presentation="adventure"] #dialog-title{font-size:26px;line-height:1.15;margin:0 0 10px}
 #game-dialog[data-presentation="adventure"] .dialog-top .eyebrow{font-size:9px;letter-spacing:1.4px}
 .door-arch .door-symbol{width:21px;height:21px}
 .door-intro h3{font-size:21px}
 .door-actions .btn{min-height:46px}
}
/* A short viewport still uses one scroll area, including the complete image. */
#game-dialog[data-layout="mission"][data-presentation="adventure"][data-viewport-compact="true"]{overflow-y:auto}
#game-dialog[data-layout="mission"][data-presentation="adventure"][data-viewport-compact="true"] #dialog-body{height:auto;display:block;overflow:visible}
@media(max-height:420px){
 #game-dialog[data-layout="mission"][data-presentation="adventure"]{overflow-y:auto}
 #game-dialog[data-layout="mission"][data-presentation="adventure"] #dialog-body{height:auto;display:block;overflow:visible}
}

/* The page scenery covers the viewport; readable content retains its gutters. */
html{min-height:100%;background:var(--bg)}
body{min-height:100svh;background:linear-gradient(135deg,#fbf6f0 0%,#f8eeed 58%,#f0e8f1 100%);background-attachment:fixed}
.app-shell{min-height:100svh;width:100%}
.workspace{min-height:100svh;background:transparent}
.page-header>div{min-width:0}
/* Give the raster a definite intrinsic box, including Safari's grid layout. */
.door-scene{width:100%;height:auto;min-width:0;aspect-ratio:3 / 2;flex-shrink:0}
.door-scene>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
/* Detailed rooms keep their photograph visible even before the room unlocks. */
.room-grid{align-items:start}
.room-scene{display:block;min-height:0;aspect-ratio:3 / 2;background:#ede2dc;isolation:isolate}
.room-photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.room-ambience{position:absolute;inset:0;background:var(--room-tint);opacity:.12;mix-blend-mode:color;pointer-events:none}
.room-theme-label{position:absolute;top:14px;left:14px;padding:5px 12px;border-radius:20px;background:#fffcf8ed;color:var(--ink);font-size:11px;border:1px solid var(--line)}
.room-label{bottom:14px;left:14px;right:14px;background:#fffcf8f0;flex-wrap:wrap;gap:5px 12px;padding:14px 16px;color:var(--ink)}
.room-label span{color:var(--muted);font-size:11px}
.room-choice.selected{border-color:#a48aac;background:#f0e5ef}
.local-play-note{background:linear-gradient(115deg,#f4e4e1,#eee3f1);border-color:var(--line);color:var(--ink)}
.local-play-note p{color:var(--muted)}
.notice{background:#f4eee6;border-color:#e8ded2;color:#756955}
.online-forms .card{background:#fffcf8ed;box-shadow:0 8px 25px #542b4906}
.region-card{min-height:210px;border-color:var(--line);border-radius:16px;background:#514458;color:#fff9ef}
.region-card>span{min-height:210px;padding:22px;position:relative}
.region-card:after{background:linear-gradient(0deg,#251a32e8 0%,#251a3260 54%,transparent 100%)}
.region-card.active{border-color:#9e7da3;box-shadow:0 0 0 3px #e9dcea}
.region-card small,.region-card>span>span{color:#fff4e9}
.region-card strong{font-size:28px;color:#fffaf2;text-shadow:0 2px 12px #24152c}
@media(max-width:1023px){
 .region-card,.region-card>span{min-height:155px}
 .region-card>span{padding:17px 20px}
 .region-card strong{font-size:27px}
 .region-card small{font-size:9px;letter-spacing:1.5px}
 .region-card>span>span{font-size:12px}
 .room-label h2{font-size:23px;line-height:1.15}
}
@media(max-width:600px){
 main{--page-gutter:max(14px,env(safe-area-inset-left),env(safe-area-inset-right));padding-inline:var(--page-gutter)}
 .room-scene{margin-inline:calc(-1 * var(--page-gutter));width:calc(100% + 2 * var(--page-gutter));border-radius:0;border-inline:0;aspect-ratio:4 / 3}
 .room-grid{gap:18px}
 #game-dialog[data-layout="mission"] .mission-footer{padding-top:10px}
 #game-dialog[data-layout="mission"] .mission-content{scrollbar-width:thin}
 .word-clues{gap:14px}
 .word-clues .word-tiles{margin:10px 0;gap:5px}
}

/* Full-screen assignments: remove native dialog width limits and keep safe edges. */
#game-dialog[open]{max-width:none;max-inline-size:none;min-width:0;box-sizing:border-box}
#game-dialog[data-layout="mission"][data-presentation="adventure"]{width:var(--dialog-visible-width,min(1024px,calc(100vw - 24px)));left:var(--dialog-visible-left,max(12px,calc((100vw - 1024px)/2)))}
#game-dialog[data-layout="mission"] .dialog-desc{font-size:16px;line-height:1.6}
#game-dialog[data-layout="mission"] .btn,#game-dialog[data-layout="mission"] .close-button{min-height:48px;font-size:15px}
#game-dialog[data-layout="mission"] .close-button{width:48px;height:48px;flex-shrink:0}
#game-dialog[data-layout="mission"] .form-label{font-size:16px}
#game-dialog[data-layout="mission"] .input{font-size:17px;min-height:48px}
#game-dialog[data-layout="mission"] .help,#game-dialog[data-layout="mission"] .path-count{font-size:13px;line-height:1.5}
#game-dialog[data-layout="mission"] .text-button,#game-dialog[data-layout="mission"] .hint-button{min-height:48px;font-size:14px}
#game-dialog[data-layout="mission"] #dialog-title{font-size:clamp(28px,4vw,34px);line-height:1.2}
#game-dialog[data-layout="mission"] .puzzle-meta{font-size:12px;flex-wrap:wrap;gap:10px}
.word-grid-wrap{width:100%;max-width:none;padding:4px;overflow-x:auto;margin:16px auto}
.word-grid{gap:6px;width:min(100%,calc(var(--grid) * 64px + (var(--grid) - 1) * 6px));max-width:none}
.word-cell{min-width:44px;min-height:44px;font-size:26px;padding:3px}
.word-bank{margin:14px 0;gap:8px}
.word-bank>span{font-size:13px;padding:8px 12px}
/* One scroll surface avoids hiding the last board row behind a fixed action bar. */
#game-dialog[data-layout="mission"][data-presentation="adventure"][data-viewport-scroll="true"]{height:var(--dialog-available-height,100dvh);max-height:var(--dialog-available-height,100dvh);overflow-y:auto;overflow-x:hidden;border-radius:0;scroll-padding-block:80px 24px;-webkit-overflow-scrolling:touch}
#game-dialog[data-layout="mission"][data-presentation="adventure"][data-viewport-scroll="true"] #dialog-body{height:auto;min-height:100%;display:block;overflow:visible;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(24px,calc(env(safe-area-inset-bottom) + 12px)) max(16px,env(safe-area-inset-left))}
#game-dialog[data-layout="mission"][data-presentation="adventure"][data-viewport-scroll="true"] .mission-panel{display:block;overflow:visible}
#game-dialog[data-layout="mission"][data-presentation="adventure"][data-viewport-scroll="true"] .mission-content{overflow:visible;padding:0 0 16px}
#game-dialog[data-layout="mission"][data-presentation="adventure"][data-viewport-scroll="true"] .mission-footer{position:static;padding-top:16px}
#game-dialog[data-layout="mission"][data-presentation="adventure"][data-viewport-scroll="true"] .dialog-top{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;padding-block:0 8px;margin-bottom:12px;min-height:56px;background:var(--paper)}
#game-dialog[data-layout="mission"] .door-clue{min-height:64px}
#game-dialog[data-layout="mission"] .door-clue small{font-size:13px}
#game-dialog[data-layout="mission"] .door-symbol-choices button{min-height:64px}
#game-dialog[data-layout="mission"] .door-symbol-choices small{font-size:13px}
#game-dialog[data-layout="mission"] .word-hint{font-size:15px;color:var(--ink);background:#f3eee7}
#game-dialog[data-layout="mission"] .word-hint p{font-size:15px}
.home-progress-stats{display:grid;grid-template-columns:repeat(2,minmax(66px,1fr));column-gap:clamp(28px,4vw,44px);text-align:center;flex-shrink:0}
.home-progress-stats small{font-size:13px;margin-top:7px}
.home-progress-stats b{font-size:29px}
.home-progress-stats b small{font-size:15px}
.home-progress-panel{gap:24px;flex-wrap:wrap;padding:18px}
.home-progress-panel .text-button{font-size:14px;min-height:44px}
@media(max-width:1023px){
 #game-dialog[data-layout="mission"][data-presentation="adventure"]{width:var(--dialog-visible-width,100vw);left:var(--dialog-visible-left,0px);top:var(--dialog-visible-top,0px);height:var(--dialog-available-height,100dvh);max-height:var(--dialog-available-height,100dvh);border-radius:0}
 .chapter-row h3,.track-heading h2{font-size:27px;line-height:1.2}
 .chapter-row p,.track-heading p,.page-header p{font-size:15px;line-height:1.55}
 .chapter-row .btn,.track-level,.room-choice,.more-item{min-height:48px}
 .chapter-row .btn,.more-title{font-size:15px}
 .track-level strong{font-size:15px}.track-level small,.more-description,.card-subtitle{font-size:13px;line-height:1.5}
 .track-card{padding:20px}
}
@media(max-width:420px){
 .home-progress-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 .home-progress-stats{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;text-align:left;border-top:1px solid var(--line);padding-top:14px}
 #game-dialog[data-layout="mission"] .dialog-actions{gap:12px}
 #game-dialog[data-layout="mission"] .dialog-actions .btn{flex:1;min-width:0}
 #game-dialog[data-layout="mission"] .dialog-actions .left{margin-right:0}
}

#game-dialog[open][data-viewport-scroll="true"]{height:var(--dialog-available-height,100dvh);max-height:var(--dialog-available-height,100dvh);overflow-y:auto;overflow-x:hidden;border-radius:0;scroll-padding-block:80px 24px}
#game-dialog[data-viewport-scroll="true"] #dialog-body{padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(24px,calc(env(safe-area-inset-bottom) + 12px)) max(16px,env(safe-area-inset-left))}
#game-dialog[data-viewport-scroll="true"] .dialog-top{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--paper);min-height:56px;padding-bottom:8px}

@media(max-width:1023px){
 #game-dialog .dialog-top .eyebrow{font-size:11px;letter-spacing:1.3px}
 .online-forms .form-label,.card .form-label{font-size:16px}
 .online-forms .input,.card .input{font-size:17px;min-height:48px}
 .online-forms .help,.local-play-note p{font-size:14px;line-height:1.55}
 .online-forms .btn,.local-play-note .btn{font-size:15px;min-height:48px}
}
/* v22: the dialog shell stays put; the padded child owns mobile scrolling. */
#game-dialog[open][data-viewport-managed="true"]{position:fixed;top:var(--dialog-visible-top,8px);left:var(--dialog-visible-left,0px);width:var(--dialog-visible-width,100%);max-width:none;max-inline-size:none;min-inline-size:0;margin:0;transform:none;box-sizing:border-box}
#game-dialog[open][data-viewport-managed="true"][data-viewport-scroll="true"]{height:var(--dialog-available-height,calc(100dvh - 16px));max-height:var(--dialog-available-height,calc(100dvh - 16px));overflow:hidden;border-radius:16px}
#game-dialog[open][data-viewport-managed="true"][data-viewport-scroll="true"] #dialog-body{box-sizing:border-box;height:100%;min-height:0;min-width:0;display:block;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:76px 24px;padding:max(18px,env(safe-area-inset-top)) max(18px,calc(env(safe-area-inset-right) + 12px)) max(28px,calc(env(safe-area-inset-bottom) + 16px)) max(18px,calc(env(safe-area-inset-left) + 12px))}
#game-dialog[open][data-viewport-managed="true"][data-viewport-scroll="true"] .dialog-top{position:sticky;top:0;z-index:5;min-height:56px;padding-block:0 8px;margin-bottom:12px;background:var(--paper)}
#game-dialog[open][data-viewport-managed="true"][data-viewport-scroll="true"] .mission-panel{display:block;min-height:0;overflow:visible}
#game-dialog[open][data-viewport-managed="true"][data-viewport-scroll="true"] .mission-content{overflow:visible;padding:0 0 20px}
#game-dialog[open][data-viewport-managed="true"][data-viewport-scroll="true"] .mission-footer{position:static;margin:0;padding-top:18px;padding-bottom:8px}
#game-dialog[open][data-viewport-managed="true"] .help{overflow-wrap:anywhere}
.island-setup-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:24px;padding:6px;background:#f1e9ef;border-radius:16px}
.island-setup-switch button{min-height:52px;padding:12px 8px;border:0;border-radius:12px;background:transparent;color:var(--ink);font:inherit;font-weight:600;line-height:1.4}
.island-setup-switch button[aria-pressed="true"]{background:var(--paper);box-shadow:0 2px 8px #34162b12}
.island-setup-switch button:disabled{opacity:.65}
.online-forms.online-forms-single{display:block}
#island-setup .input{font-size:17px;min-height:52px}
#island-setup .btn{min-height:52px;width:100%}
#island-setup .form-label{margin-top:18px}
#island-setup .help{margin:18px 0;line-height:1.6}
.footer{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:0;padding-bottom:28px}
.page-copyright{display:block;width:100%;margin-top:4px;padding:0;font-size:11px;line-height:1.6;font-style:italic;text-align:left;color:var(--muted);overflow-wrap:normal}
.header-install .icon{width:21px;height:21px}
.support-channel{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.support-channel button{border:1px solid var(--line);border-radius:12px;padding:12px 18px;min-height:48px;background:var(--paper);font:inherit;color:var(--ink)}
.support-channel button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.support-messages[hidden],.support-chat form[hidden]{display:none}
.support-chat,.support-contact{scroll-margin-top:calc(var(--topbar-height) + 20px)}
.support-admin-layout{grid-template-columns:minmax(0,1fr)}
.support-admin-layout.has-conversation{grid-template-columns:minmax(320px,420px) minmax(0,1fr);align-items:start}
.support-admin-layout .support-chat[hidden]{display:none}
.support-admin-layout .support-messages{height:clamp(220px,42dvh,440px)}
.support-admin-layout .support-admin-heading{flex-wrap:wrap;align-items:center}
.support-admin-heading h2{font-size:clamp(25px,3vw,34px);margin:0}
.support-admin-layout .support-admin{margin-top:0}
.support-admin-layout .support-admin-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}
.support-admin-heading .btn{min-height:44px;padding:10px 16px;font-size:14px}
.support-inbox-help{margin:12px 0 16px}
.support-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.support-filters button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 12px;font-size:13px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:10px}
.support-filters button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.support-filters button span{padding:1px 6px;border-radius:7px;background:#9e82a61c;font-size:12px}
.support-filters button[aria-pressed="true"] span{background:#ffffff24}
.support-search label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.support-search>div{display:flex;gap:8px}
.support-search .input{min-width:0;min-height:44px;font-size:16px;padding:8px 12px}
.support-search .btn{min-height:44px;font-size:14px;padding:8px 14px;flex-shrink:0}
#support-inbox-status{font-size:12px;margin:12px 0}
.support-inbox-list{max-height:520px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.support-admin-layout .support-thread{min-height:64px;margin:0 0 7px;padding:10px 12px;display:grid;grid-template-columns:24px minmax(0,1fr) auto 18px;align-items:center;gap:10px;border-radius:10px}
.support-thread .support-thread-summary{min-width:0}
.support-thread strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.support-thread small{font-size:12px;line-height:1.4;margin-top:3px}
.support-thread-envelope{color:var(--muted)}
.support-thread-envelope .icon{width:21px;height:21px}
.support-thread-state{font-size:12px;line-height:1.4;border-radius:7px;padding:4px 7px;background:#e9efe5;color:#48643f;white-space:normal}
.support-thread.waiting .support-thread-state{background:#f6e9c9;color:#725113}
.support-thread[aria-expanded="true"]{border-color:var(--ink);background:#f1e7ef}
.support-thread-arrow .icon{width:17px;height:17px}
.support-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:14px;border-top:1px solid var(--line);margin-top:8px}
.support-pagination .btn{min-height:44px;padding:9px 12px;font-size:13px}
.support-pagination>span{font-size:12px;color:var(--muted);white-space:nowrap}
.support-inbox-empty{padding:24px 12px;text-align:center;font-size:14px;color:var(--muted)}
.support-close-thread{min-height:44px;font-size:14px;margin-bottom:16px;line-height:1.4;text-align:left}
.support-email{overflow-wrap:anywhere}
@media(min-width:1024px) and (max-width:1280px){.header-install span{display:none}.support-admin-layout.has-conversation{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1023px){
 :root{--bottom-nav-height:76px}
 .sidebar #nav{height:var(--bottom-nav-height);flex:none}
 .page-copyright{margin-top:4px;padding:0;font-size:11px}
 .support-admin-layout,.support-admin-layout.has-conversation{grid-template-columns:minmax(0,1fr)}
 .support-admin-layout.has-conversation .support-admin{display:none}
 .support-chat,.support-contact,.support-admin{padding:20px}
 .support-inbox-list{max-height:480px}
}
@media(max-width:380px){.header-wordmark{font-size:20px}.header-brand{gap:6px}.header-profile{min-width:84px;max-width:96px;padding:6px}.header-profile strong{max-width:82px}.topbar-right{gap:2px}.topbar{gap:4px}.page-copyright{padding-inline:24px;font-size:10px}.support-admin-layout .support-thread{gap:7px;grid-template-columns:20px minmax(0,1fr) auto}.support-thread-arrow{display:none}.support-thread-state{max-width:85px;font-size:11px;padding:4px 6px}.support-filters button{padding:8px;font-size:12px}}
@media(max-width:1023px) and (orientation:landscape) and (max-height:600px){:root{--bottom-nav-height:56px}}
/* Bounded catalogues: six journeys or one area with up to eight chapters. */
.catalogue-next{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border:1px solid var(--line);border-radius:20px;background:rgba(235,221,236,.55);margin-bottom:24px}
.catalogue-next h2{margin:7px 0;font-size:28px}.catalogue-next p{margin:0}.catalogue-next small{font-weight:700;letter-spacing:.12em}
.catalogue-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;scroll-margin-top:calc(var(--topbar-height,80px) + 20px)}
.catalogue-filters{display:flex;flex-wrap:wrap;gap:8px}.catalogue-filters button[aria-pressed=true]{background:#5a2d50;color:#fff}
.catalogue-search{display:grid;gap:8px;font-size:16px;font-weight:600;flex:0 1 320px;min-width:0}.catalogue-search input{width:100%;min-height:48px;font-size:16px}
.catalogue-count{font-size:16px;margin:20px 0;color:#716572}
.tracks-grid .track-card{min-width:0;padding:20px}.track-heading h2{font-size:26px;overflow-wrap:anywhere}.track-heading p{font-size:16px;line-height:1.6}
.track-progress{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0;font-size:16px}.track-progress>span:last-child{white-space:nowrap;color:#6c486a}
.track-continue{width:100%;font-size:16px;min-height:48px}.track-details{margin-top:16px}.track-details summary{cursor:pointer;padding:12px 0;min-height:44px;font-size:16px;font-weight:600}.track-details .track-levels{margin-top:12px}.track-completed{font-weight:600;color:#4e6b47}
.catalogue-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:24px 0}.catalogue-pagination .btn{min-height:48px;font-size:16px}
.chapter-area-picker{display:flex;align-items:flex-end;gap:20px;margin-bottom:20px}.chapter-area-picker label{display:grid;gap:8px;flex:1;font-size:16px;font-weight:600}.chapter-area-picker .input{width:100%;font-size:16px;min-height:48px}
.chapter-area-picker+.region-nav{display:block}.chapter-area-picker+.region-nav .region-card{width:100%;min-height:180px}
@media(max-width:640px){.catalogue-next{display:block;padding:20px}.catalogue-next .btn{width:100%;margin-top:18px}.catalogue-controls{display:block}.catalogue-search{margin-top:20px}.catalogue-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.catalogue-filters .btn{padding:12px 8px;font-size:16px;min-height:48px}.tracks-grid{grid-template-columns:minmax(0,1fr)}.chapter-area-picker{display:block}.chapter-area-picker .btn{width:100%;margin-top:14px}.track-level small{overflow-wrap:anywhere}.catalogue-pagination{gap:12px}.catalogue-pagination .btn{padding:12px 18px}.puzzle-mission .word-grid{min-width:0!important;width:100%;gap:4px}.puzzle-mission .word-cell{min-width:0;width:100%;min-height:44px}}

/* A separate reading pane keeps the rules underneath a steady close bar. */
#game-dialog[open][data-presentation="reading"] #dialog-body{display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;padding-bottom:max(18px,env(safe-area-inset-bottom));min-height:0;scroll-padding:0}
#game-dialog[open][data-presentation="reading"] .dialog-top{position:static;margin:0;padding-bottom:12px;border-bottom:1px solid var(--line)}
.dialog-reading-content{min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 2px 16px;scroll-padding-block:16px}
#game-dialog,#dialog-body,.dialog-reading-content{overflow-anchor:none}
.region-card img{z-index:0}.region-card:after{z-index:1;pointer-events:none}.region-card>span{z-index:2}
@media(hover:none){.btn:hover,.mission-card:hover:not(:disabled){transform:none}}

/* In-app area selection closes on choice and never invokes a native phone menu. */
.chapter-area-picker .area-picker{position:relative;flex:1;min-width:0}
.area-picker .form-label{display:block;margin:0 0 8px;font-size:16px}
.area-picker .area-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;color:var(--ink);font-weight:600;min-height:52px}
.area-toggle .icon{transform:rotate(90deg);width:18px;height:18px}
.area-toggle[aria-expanded="true"] .icon{transform:rotate(-90deg)}
.area-options{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:35;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:min(360px,50svh);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:10px;box-shadow:0 8px 24px #34162b24}
.area-options[hidden]{display:none}
.area-options button{display:grid;gap:4px;align-content:center;min-height:58px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--paper);font-size:16px;text-align:left;overflow-wrap:anywhere}
.area-options button small{font-size:13px;color:var(--muted)}
.area-options button[aria-pressed="true"]{background:#f0e5ef;border-color:#9e7da3}
.arena-intro>span{display:block}
.arena-page-header .arena-intro{font-size:clamp(14px,3.5vw,16px);line-height:1.6}
.prize-podium{list-style:none;padding:0;margin:16px 0;display:grid;gap:8px;width:100%}
.prize-podium li{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #c9b99266;padding:10px 0;color:#665334}
.prize-podium li:last-child{border-bottom:0}
.prize-podium li span{font-size:16px}.prize-podium li strong{font:30px var(--serif);color:#6b5635;white-space:nowrap}
.prize-card-three{padding:24px}.prize-card-three>span{font-size:40px}.prize-card-three .prize-podium{max-width:360px;margin:12px auto}
.archive-winners{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}.archive-winners li{display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:16px}.archive-winners li>span:last-child{font-size:14px;color:var(--muted)}
/* A visible theme preview updates the existing photo instead of rebuilding it. */
.room-photo{filter:var(--room-photo-filter,none)}
.room-ambience{background:linear-gradient(125deg,var(--room-tint),transparent 85%);opacity:.34;mix-blend-mode:normal}
.room-scene .room-label{border:2px solid var(--room-accent,var(--line))}
.room-scene .room-theme-label{border-color:var(--room-accent,var(--line));font-size:14px}
.room-theme-status{font-size:14px;color:var(--muted);margin:-8px 0 20px;line-height:1.5}
.swatch{width:46px;height:46px;min-width:46px;min-height:46px}.swatch:disabled{cursor:wait}
@media(max-width:360px){.area-options{grid-template-columns:minmax(0,1fr)}.area-options button{min-height:52px}.arena-page-header .arena-intro{font-size:13px}}

/* Compact controls retain a full touch target and accessible names. */
.header-about{color:var(--plum);background:transparent;border:1px solid transparent;min-height:44px;font-size:13px;font-weight:600}
.header-about .icon{width:22px;height:22px;stroke-width:1.8}
.header-action-short{display:none}
.header-profile{border:1px solid var(--line);background:var(--paper);min-height:44px;padding:5px 10px}
.header-profile-label{display:none}
.header-profile strong{font-size:14px;color:var(--plum)}
.header-profile small{font-size:12px;color:#59485a}
.footer{align-items:flex-start;gap:0;padding-top:12px;padding-bottom:16px}
.footer>span{font-size:12px;line-height:1.5}
.footer-legal{display:flex;justify-content:flex-start;margin-top:0}
.footer-legal a{display:inline-flex;align-items:center;justify-content:flex-start;min-height:44px;padding:4px 0;color:#695269;font:italic 600 14px/1.5 var(--serif);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.footer-legal+.page-copyright{margin-top:4px;padding:0}
.terms-nav{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.terms-nav a{display:inline-flex;align-items:center;min-height:48px;border:1px solid #bba2b4;border-radius:12px;background:var(--paper);padding:10px 16px;color:var(--plum);font-size:16px;font-weight:600;text-decoration:none}
.terms-sections{display:grid;gap:24px;max-width:900px}
.terms-sections section{scroll-margin-top:calc(var(--topbar-height) + 20px);padding:clamp(20px,4vw,32px)}
.terms-sections h3{margin:24px 0 10px;font-size:19px;font-family:system-ui;font-weight:650}
.terms-sections p,.terms-sections .competition-rules{font-size:16px;line-height:1.8;color:#59485a}
.terms-sections a{color:var(--plum);text-underline-offset:3px;overflow-wrap:anywhere}
.terms-sections .competition-rules{padding-left:24px}.terms-sections .competition-rules li{padding-left:6px;margin-top:16px}
.terms-prize-list{display:grid;gap:10px;margin:20px 0}.terms-prize-list>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 18px;border-radius:12px;background:var(--lilac)}
.terms-prize-list dt{font-size:16px}.terms-prize-list dd{margin:0;font-size:18px;font-weight:650;color:var(--plum)}
@media(max-width:1023px){
 :root{--topbar-height:calc(64px + env(safe-area-inset-top))}
 .topbar{display:flex;gap:8px;padding-bottom:0;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
 .topbar-right{display:flex;gap:4px;margin-left:auto;flex-shrink:0}.topbar .tempo{display:none}
 .header-brand{gap:7px;min-width:0;flex-shrink:1}.header-brand img{width:30px;height:30px}.header-wordmark{font-size:24px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-wordmark small{display:none}
 .header-profile{width:clamp(80px,22vw,108px);min-width:0;max-width:108px;min-height:44px;padding:5px 8px;gap:0;flex-shrink:0}
 .header-profile .avatar,.header-profile .profile-chevron{display:none}.header-profile strong{font-size:14px;max-width:100%}.header-profile small{font-size:11px}
 .header-about{flex-direction:column;width:44px;min-width:44px;min-height:44px;padding:3px 1px;gap:1px;border-radius:8px}
 .header-about .header-action-label{display:none}.header-about .header-action-short{display:block;font-size:10px;line-height:12px;white-space:nowrap}
 .header-about .icon{width:20px;height:20px}
 main{padding-bottom:16px}
 .footer{padding-inline:20px}
 .terms-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.terms-nav a{font-size:15px;padding:10px 12px}
}
@media(max-width:380px){.header-wordmark{font-size:20px;letter-spacing:-.8px}.header-brand{gap:5px}.header-brand img{width:26px;height:26px}.topbar{gap:4px;padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right))}.header-profile{padding-inline:6px}.header-profile strong{font-size:13px}.terms-nav{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1023px) and (max-height:600px) and (orientation:landscape){
 :root{--topbar-height:calc(56px + env(safe-area-inset-top))}
 .topbar{gap:8px}.header-wordmark{font-size:24px}
}

/* Keep the page in its viewport; vertical reading and form selection stay native. */
html,body{width:100%;max-width:100%;overflow-x:hidden;overflow-x:clip;overscroll-behavior-x:none;touch-action:pan-y}
.app-shell,.workspace,main,.footer{min-width:0;max-width:100%}
.app-shell,.topbar,.sidebar,#game-dialog{overscroll-behavior-x:none}
img,a,button{-webkit-user-drag:none}
.header-brand,.header-about,.header-profile,.sidebar,.back-to-top{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
input,textarea,[contenteditable="true"]{-webkit-user-select:text;user-select:text;touch-action:auto}

/* Email registration reuses the viewport-aware dialog and accessible input sizes. */
#email-registration form{display:grid;gap:12px;margin-block:20px}#email-registration .btn{justify-self:stretch}#email-registration p{overflow-wrap:anywhere}

/* Compact competition catalogue and persistent profile awards. */
.profile-awards{margin-block:20px}.profile-award{display:flex;align-items:center;gap:14px;padding:16px;background:#f4eee1;border:1px solid #d4bf93;border-radius:16px;margin-block:12px}.profile-award>span{font-size:30px}.profile-award strong,.profile-award small{display:block}.profile-award small{margin-top:5px;color:var(--muted)}.award-stars{display:block;color:#987226;letter-spacing:4px;margin-top:6px}.profile-awards summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.track-heading small{display:block;line-height:1.5;overflow-wrap:anywhere}#arena-missions .track-card{min-width:0}#arena-missions h2{overflow-wrap:anywhere}#arena-count{scroll-margin-top:calc(var(--topbar-height,90px) + 16px)}

/* A compact introduction, with practical details available on demand. */
#game-dialog[open][data-viewport-managed="true"][data-presentation="reading"] #dialog-body{display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;scroll-padding:0}
.about-pusterom{min-width:0;color:#59485a;font-size:15px;line-height:1.65}
.arena-qualification{display:grid;gap:8px;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--paper);font-size:14px;line-height:1.55;color:#59485a}.arena-qualification strong{color:var(--plum);font-size:15px}.arena-qualification progress{width:100%;height:8px;accent-color:var(--green)}.arena-qualification.is-qualified{background:#e8eee1;border-color:#b8c7aa}
.about-image{margin:0 0 18px}.about-image img{display:block;width:100%;height:clamp(140px,28vw,190px);object-fit:cover;object-position:center 55%;border-radius:14px}.about-image figcaption{margin-top:6px;font-size:11px;font-style:italic;color:var(--muted)}
.about-intro{font-size:16px;color:var(--ink);margin-bottom:20px}
.about-pusterom section{margin-top:22px}.about-pusterom h3{font:600 16px/1.4 system-ui;color:var(--plum);margin:0 0 10px}.about-pusterom p{margin:0 0 12px}
.about-steps{list-style:none;counter-reset:about-step;display:grid;gap:14px;padding:0;margin:0}.about-steps li{counter-increment:about-step;display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:10px;align-items:start}.about-steps li::before{content:counter(about-step);grid-row:span 2;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--lilac);color:var(--plum);font-size:13px;font-weight:600}.about-steps strong{font-weight:600;color:var(--ink)}.about-steps li>span{grid-column:2;font-size:14px}
.about-activities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 22px}.about-activities>div{min-width:0;border-top:1px solid var(--line);padding-top:10px}.about-activities dt{font-size:14px;font-weight:650;color:var(--plum)}.about-activities dd{font-size:14px;margin:4px 0 0}
.about-details{border-top:1px solid var(--line);padding-block:4px;margin-top:8px}.about-details summary{min-height:44px;padding-block:10px;font-weight:600;color:var(--plum);cursor:pointer;line-height:1.45}.about-details p{font-size:14px;margin:10px 0}.about-details .text-button{min-height:44px;font-size:14px}.about-owner{font-size:12px;margin-top:20px!important;overflow-wrap:anywhere}.about-owner a{text-decoration:underline;text-underline-offset:3px}.about-actions{margin-top:16px}.about-reset{margin-top:18px;font-size:12px}.about-reset summary{font-weight:400;color:var(--muted)}
@media(max-width:360px){.about-activities{grid-template-columns:minmax(0,1fr);gap:12px}}

/* Merge only the participation and mission information; keep score and prizes separate. */
.arena-overview{margin-block:16px 20px;padding:20px 24px;background:#eeedf4;border-color:#d8d2e2;font-size:15px;line-height:1.6;color:#59485a}
.arena-overview h2{font:600 22px/1.4 var(--serif);color:var(--plum);margin:0 0 10px}
.arena-overview .arena-qualification{margin:0;padding:0;border:0;border-radius:0;background:none;font-size:inherit;line-height:inherit;gap:0}
.arena-overview .arena-qualification strong{font-size:inherit}
.arena-overview p{margin:0 0 10px}
.qualification-progress{display:grid;gap:6px;margin-bottom:12px;font-size:14px}
.arena-overview .arena-format-note{font-size:14px}
.arena-overview .arena-overview-date{display:flex;align-items:flex-start;gap:8px;margin:12px 0 0;font-size:14px}
.arena-overview-date svg{flex:0 0 18px;width:18px;height:18px;margin-top:3px}
#arena-panel:empty{display:none}
@media(max-width:640px){.arena-overview{padding:18px}.arena-overview h2{font-size:21px}}
.arena-overview{container-type:inline-size}
.arena-overview h2{font-size:clamp(14px,4.7cqw,22px);white-space:nowrap;line-height:1.4}
.admin-overview{padding:22px;margin-top:18px;min-width:0}
.admin-overview .support-admin-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:16px}
.admin-overview h2{font:600 25px/1.25 var(--serif);margin:0 0 4px}
.admin-overview .support-admin-heading p{margin:0}
.admin-overview .btn{font-size:13px;padding:9px 12px;min-height:40px}
.admin-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.admin-metrics>div{padding:12px;border:1px solid #dfdcd6;border-radius:12px;background:#f4f5ed;display:flex;flex-direction:column;gap:3px}
.admin-metrics strong{font:600 28px/1.1 var(--serif);color:var(--plum)}
.admin-metrics span{font-size:12px;line-height:1.4;color:#625c63}
.admin-data-note,.admin-privacy{font-size:12px;line-height:1.5;margin-block:12px}
.admin-definitions{font-size:13px;line-height:1.5;margin:12px 0 18px}
.admin-definitions summary{cursor:pointer;font-weight:600}
.admin-player-filters{flex-wrap:wrap;margin-bottom:10px}
.admin-player-filters button{font-size:12px;padding:8px 10px;min-height:36px}
.admin-player{border:1px solid #e0dbdf;border-radius:10px;margin:7px 0;background:#fcfaf6;font-size:13px;overflow:hidden}
.admin-player summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;list-style:none}
.admin-player summary::after{content:'+';font-size:20px;flex-shrink:0;color:var(--plum)}
.admin-player[open] summary::after{content:'−'}
.admin-player-name{display:flex;flex-direction:column;gap:3px;min-width:0}
.admin-player-name strong{font-size:13px;overflow-wrap:anywhere}
.admin-player-name small{font-size:11px;color:#66645c}
.admin-player-counts{font-size:12px;margin-left:auto;color:#5c6755;text-align:right}
.admin-player dl{padding:0 13px 12px;margin:0;display:grid;gap:8px;border-top:1px solid #ece7eb}
.admin-player dl>div{display:flex;justify-content:space-between;gap:10px;padding-top:8px}
.admin-player dt{color:#706975}.admin-player dd{margin:0;text-align:right;font-weight:600}
@media(max-width:640px){.admin-overview{padding:16px}.admin-overview h2{font-size:22px}.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-player summary{flex-wrap:wrap;position:relative;padding-right:30px}.admin-player summary::after{position:absolute;right:12px}.admin-player-counts{flex-basis:100%;text-align:left;margin:0}.admin-player dl>div{font-size:12px}}

/* A compact, grouped directory for the More page. */
.more-page .more-header{margin-bottom:16px}
.more-page .more-header h1{font-size:clamp(30px,4vw,38px);margin-bottom:10px}
.more-page .more-header p{font-size:15px;line-height:1.5;margin:0}
.more-jumps{display:flex;gap:8px;margin:0 0 24px}
.more-jumps button{flex:1;min-height:44px;padding:8px 14px;border:1px solid #d5cbd6;border-radius:10px;background:var(--paper);color:var(--plum);font:600 14px/1.4 var(--sans,system-ui);cursor:pointer}
.more-jumps button:hover{background:#eee5f0}
.more-page .more-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px}
.more-group{min-width:0}
.more-page .more-group h2{font:600 18px/1.4 var(--sans,system-ui);color:var(--plum);margin:0 0 10px;scroll-margin-top:calc(var(--topbar-height,90px) + 16px)}
.more-page .more-list{border-radius:14px}
.more-page .more-item{gap:12px;padding:14px 16px;min-height:76px;cursor:pointer;text-decoration:none}
.more-page .more-item>.mission-icon{width:36px;height:36px;margin:0;background:#f0e5ed;color:#805a78}
.more-page .more-title{font-size:16px;line-height:1.4;font-weight:600;margin:0 0 3px;color:var(--plum)}
.more-page .more-description{font-size:14px;line-height:1.45;color:#706674}
.more-page .more-item>.icon{width:18px;height:18px;color:#827187}
.more-page .more-competition{background:#eee4f1}
.more-page .more-competition:hover{background:#e8dced}
.more-page .more-item:focus-visible,.more-jumps button:focus-visible{outline:3px solid #896095;outline-offset:-4px}
.more-page .more-group h2:focus-visible{outline:2px solid #896095;outline-offset:4px;border-radius:3px}
.more-sound-control{display:flex;align-items:center;gap:7px;flex-shrink:0;color:#67516a;font-size:13px;font-weight:600}
.more-sound-control [data-sound-status]{min-width:19px}
.more-switch{position:relative;width:38px;height:22px;border:1px solid #9e8fa1;border-radius:14px;background:#e1d8e3}
.more-switch::after{content:'';position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 3px #33213930}
.more-sound[aria-checked=true] .more-switch{background:#527448;border-color:#527448}
.more-sound[aria-checked=true] .more-switch::after{left:18px}
.more-admin-slot:empty{display:none}
@media(max-width:700px){.more-page .more-layout{grid-template-columns:minmax(0,1fr);gap:22px}.more-page .more-item{padding:12px 14px;min-height:72px}}
@media(max-width:360px){.more-page .more-item{gap:10px;padding-inline:12px}.more-page .more-description{font-size:13px}.more-jumps{gap:6px}.more-jumps button{padding-inline:10px}}

/* Profile: a compact overview followed by consistent, accessible account actions. */
#game-dialog[data-presentation="profile"]{width:min(640px,calc(100% - 32px))}
#game-dialog[data-presentation="profile"] #dialog-title{font:400 28px/1.25 var(--serif);margin:0 0 18px}
.profile-panel{font-size:14px;line-height:1.5;min-width:0}
.profile-identity{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.profile-initial{display:flex;align-items:center;justify-content:center;flex:0 0 52px;height:52px;border:1px solid #d0ddce;border-radius:16px;background:#e6ede0;color:var(--green);font:28px/1 var(--serif)}
.profile-identity>div{min-width:0}
.profile-identity h3{font:400 28px/1.2 var(--serif);color:var(--plum);margin:0 0 4px;overflow-wrap:anywhere}
.profile-identity p{font-size:13px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.profile-overview{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--paper)}
.profile-panel .profile-stat-grid{gap:0;margin:0}
.profile-panel .profile-stat-grid>div{display:flex;flex-direction:column;border:0;border-radius:0;padding:16px;min-width:0;background:#edf2e7}
.profile-panel .profile-stat-grid>div:nth-child(2){background:#eeebf3;border-left:1px solid #dfd8e7}
.profile-panel .profile-stat-grid small{font:600 12px/1.45 system-ui;letter-spacing:0;color:#55684d;min-height:35px}
.profile-panel .profile-stat-grid strong{font:38px/1.2 var(--serif);margin:4px 0 6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.profile-panel .profile-stat-grid span{font-size:13px;line-height:1.45;color:#716572;min-height:38px}
.profile-chapter-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:14px 16px;font-size:13px;color:#706674}
.profile-chapter-progress strong{color:var(--ink);font-weight:600}
.profile-chapter-progress progress{grid-column:1/-1;display:block;width:100%;height:7px;border:0;border-radius:6px;overflow:hidden;background:#eee8ed;accent-color:var(--green)}
.profile-chapter-progress progress::-webkit-progress-bar{background:#eee8ed;border-radius:6px}
.profile-chapter-progress progress::-webkit-progress-value{background:var(--green);border-radius:6px}
.profile-chapter-progress progress::-moz-progress-bar{background:var(--green);border-radius:6px}
.profile-panel .profile-group-note,.profile-sync{font-size:13px;line-height:1.5;color:var(--muted);margin:10px 0}
.profile-action-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-top:14px}
.profile-action{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;min-height:70px;border:0;padding:13px 14px;background:var(--paper);text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.profile-action+.profile-action{border-top:1px solid var(--line)}
.profile-action-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#eee4ed;color:#805a78}
.profile-action-icon .icon{width:19px;height:19px}
.profile-action>span:nth-child(2){min-width:0}
.profile-action strong{display:block;font-size:15px;line-height:1.4;font-weight:600;color:var(--plum);overflow-wrap:anywhere}
.profile-action small{display:block;font-size:13px;line-height:1.45;color:#706674;margin-top:3px;overflow-wrap:anywhere}
.profile-action>.icon{width:18px;height:18px;color:#8d7b8c}
.profile-action:hover{background:#f6f0f4}
.profile-action:focus-visible{outline:3px solid #896095;outline-offset:-4px}
.profile-titles{margin-top:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.profile-titles>summary,.profile-name-editor>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:12px 14px;color:var(--plum);font-size:15px;font-weight:600;cursor:pointer;list-style:none}
.profile-titles>summary::-webkit-details-marker,.profile-name-editor>summary::-webkit-details-marker{display:none}
.profile-titles>summary>span,.profile-name-editor>summary>span{display:flex;align-items:center;gap:10px;min-width:0}
.profile-titles>summary small{font-size:12px;font-weight:400;color:var(--muted);text-align:right}
.profile-titles>summary small::after{content:'⌄';display:inline-block;margin-left:8px;font-size:16px}
.profile-titles[open]>summary small::after{content:'⌃'}
.profile-titles>summary:focus-visible,.profile-name-editor>summary:focus-visible{outline:3px solid #896095;outline-offset:-4px;border-radius:12px}
#profile-awards-content{padding:0 14px 14px}
.profile-panel #profile-awards-content .help{font-size:13px;line-height:1.55;margin:0;color:#706674}
.profile-panel .profile-award{padding:12px;gap:10px;margin:0 0 10px;border-radius:12px}
.profile-panel .profile-award:last-child{margin-bottom:0}
.profile-panel .profile-award>span{font-size:24px}
.profile-panel .profile-award strong{font-size:14px}.profile-panel .profile-award small{font-size:12px}
.profile-panel #profile-awards-content details summary{font-size:13px;min-height:44px;padding-block:10px;cursor:pointer}
.profile-settings{margin-top:22px}
.profile-settings>h3{font:600 16px/1.4 system-ui;color:var(--plum);margin:0 0 10px}
.profile-name-editor{border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.profile-name-editor>summary>.icon{width:18px;height:18px;transform:rotate(90deg);color:#8d7b8c}
.profile-name-editor[open]>summary>.icon{transform:rotate(-90deg)}
.profile-name-editor form{padding:0 14px 14px;margin:0}
.profile-panel .form-label{display:block;font-size:13px;font-weight:600;line-height:1.4;margin:4px 0 8px}
.profile-name-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.profile-name-fields .input{width:100%;min-width:0;min-height:48px;padding:10px 12px;font-size:16px;line-height:1.4;border-radius:10px}
.profile-name-fields .btn{min-height:48px;padding:10px 16px;font-size:14px;transform:none}
.profile-storage-note{font-size:12px;color:var(--muted);margin:10px 0 0}
@media(max-width:360px){.profile-action{gap:10px;padding-inline:12px}.profile-panel .profile-stat-grid>div{padding:14px 12px}.profile-panel .profile-stat-grid strong{font-size:34px}.profile-name-fields{grid-template-columns:minmax(0,1fr)}.profile-titles>summary{gap:8px}.profile-titles>summary small{font-size:11px}}

/* The hidden second journey uses larger boards without widening the page. */
.sequel-mission .mission-content .lights-grid{width:100%;max-width:340px;gap:6px}
.sequel-mission .light-cell{min-width:0;padding:7px;font-size:26px}
.sequel-mission .path-grid{width:100%;max-width:340px;gap:4px}
.sequel-mission .path-cell{padding:4px;font-size:20px;min-height:44px}
.sequel-mission .number-inputs{gap:10px}
.sequel-mission .number-inputs label,.sequel-mission .number-inputs input{min-width:0}
.sequel-reveal{font-size:15px;line-height:1.6;padding:16px;background:#edf2e7;border:1px solid #d4dfcb;border-radius:12px}

/* Direct Pusterom sign-in, with a compact form and no platform navigation. */
.login-page{background:var(--bg,#fbf6f0);min-height:100svh;color:#43273f}
.login-layout{max-width:1080px;margin:auto;min-height:100svh;display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(24px,5vw,64px);align-items:center;padding:clamp(20px,4vw,48px)}
.login-brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:#43273f;font:40px Georgia,serif;margin-bottom:32px}
.login-welcome h1{font-size:clamp(30px,3.5vw,44px);line-height:1.15;margin:12px 0}.login-welcome p{line-height:1.6;color:#796f78}.login-welcome .eyebrow{color:#7b8b78;font-size:12px}
.login-landscape{width:100%;height:240px;object-fit:cover;border-radius:24px;margin-top:24px;display:block}
.login-card{background:#fffdfa;border:1px solid #e4dcdf;border-radius:28px;padding:clamp(22px,3vw,36px);box-shadow:0 12px 44px #43273f08}
.login-card h2{font:clamp(25px,3vw,32px)/1.2 Georgia,serif;margin:0 0 12px}.login-card>p{font-size:15px;line-height:1.5;color:#796f78}
.login-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;background:#eee8ed;border-radius:14px;gap:4px;margin:24px 0}
.login-tabs button{padding:12px 8px;border:0;background:transparent;color:#5a3453;border-radius:11px;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}.login-tabs button[aria-pressed=true]{background:#fffdfa;box-shadow:0 2px 6px #43273f0a}
.login-card .input{width:100%;min-width:0;font-size:16px}.login-card .form-label{margin-top:16px}.login-submit{width:100%;justify-content:center;margin-top:18px}.login-code{letter-spacing:.3em;font-variant-numeric:tabular-nums}
.login-card .help{font-size:13px;line-height:1.55}.login-account-note{border-top:1px solid #e4dcdf;padding-top:16px}.login-footer{display:flex;flex-direction:column;gap:9px;margin-top:24px;color:#796f78;font-size:12px}.login-footer button{text-align:left;width:fit-content;padding:0;font-family:Georgia,serif;font-style:italic;font-weight:700}.login-footer small{font-style:italic;line-height:1.5}.login-footer a{color:inherit}.login-page dialog{padding:22px;width:min(700px,calc(100% - 28px));max-height:85svh;overflow:auto}.login-page dialog h1{font-size:32px}.login-page dialog h2{font-size:24px}.login-page dialog .card{padding:20px}.login-page dialog p{font-size:15px;line-height:1.6}
@media(max-width:700px){.login-layout{grid-template-columns:1fr;gap:20px;align-content:start;padding:22px 18px}.login-brand{font-size:34px;margin-bottom:20px}.login-welcome h1{font-size:29px}.login-welcome>div>p:last-child{font-size:14px;margin:10px 0 0}.login-landscape{display:none}.login-card{padding:22px;border-radius:22px}.login-card h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){.login-page *{scroll-behavior:auto}}
