:root{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;color:#27344b;background:#fff8e9;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #6b7ee3;outline-offset:3px}
.hidden{display:none!important}
.student-page{background:radial-gradient(circle at 50% -10%,#fff4c9 0,#fff8e9 42%,#fbefdb 100%);position:relative;overflow-x:hidden}
.student-page:before,.student-page:after{content:"";position:fixed;border:1px solid #e9d9b9;border-radius:50%;pointer-events:none;opacity:.45}
.student-page:before{width:780px;height:780px;left:-530px;top:33%}
.student-page:after{width:700px;height:700px;right:-480px;top:-380px}
.sky-decor{position:absolute;color:#f4c45e;pointer-events:none}.sky-decor-left{font-size:40px;left:10%;top:22%}.sky-decor-right{font-size:64px;right:12%;top:38%}
.student-shell{width:min(100% - 32px,760px);margin:auto;position:relative;z-index:1}
.brand-header{height:78px;display:flex;align-items:center;gap:11px;color:#4d5b6e;font-size:14px;font-weight:800;letter-spacing:.11em}
.brand-mark{width:32px;height:32px;background:#f7b845;color:#fff;border-radius:10px;display:inline-grid;place-items:center;transform:rotate(-9deg);box-shadow:0 4px 0 #de9630;font-size:22px;flex:none}
.entry-stage{text-align:center;padding:28px 0 55px}
.floating-badge{display:inline-block;border:2px solid #edc979;background:#fff4c9;border-radius:100px;padding:8px 23px;color:#9b6b25;font-size:13px;font-weight:800;letter-spacing:.18em;box-shadow:0 5px 0 #efdca7}
.compass{width:130px;height:130px;display:grid;place-items:center;margin:29px auto 25px;background:#ffefbc;border:4px solid #f6d177;border-radius:50%;box-shadow:0 0 0 10px #fff4d4,0 11px 20px #c7a97140;position:relative;animation:float 3s ease-in-out infinite}
.compass:before,.compass:after{content:"";position:absolute;background:#e9ad44}.compass:before{height:100px;width:2px}.compass:after{width:100px;height:2px}.compass span{font-size:72px;color:#f69c58;z-index:1;text-shadow:0 3px 0 #fff7df}
.parchment{background:#fffdfa;border:2px solid #e9d8b7;box-shadow:0 12px 0 #d0b8854a,0 17px 34px #815c2930;position:relative}
.entry-card{max-width:560px;margin:auto;border-radius:24px;padding:44px 48px 34px}
.entry-card:before,.entry-card:after,.task-card:before,.task-card:after{content:"✦";position:absolute;color:#ddb46a;font-size:15px}.entry-card:before,.task-card:before{left:18px;top:16px}.entry-card:after,.task-card:after{right:18px;bottom:15px}
.eyebrow{font-family:Georgia,serif;color:#d19a4b;font-size:12px;font-weight:700;letter-spacing:.22em;margin:0 0 10px}
h1,h2,p{margin-top:0}.entry-card h1{font-size:clamp(27px,5vw,37px);line-height:1.3;letter-spacing:.03em;margin-bottom:14px;color:#24354e}
.lead{color:#67758b;line-height:1.85;font-size:15px;margin-bottom:33px}
label{display:block;text-align:left;font-weight:800;font-size:14px;color:#3b4e62;margin-bottom:11px}
.join-controls{position:relative}.join-controls input{height:58px;padding:0 19px 0 57px;width:100%;border:2px solid #dcd9cf;border-radius:14px;background:#fffcf5;font-size:19px;font-weight:700;color:#26354a}.join-controls input:focus{border-color:#e8b253}.join-controls input::placeholder{color:#a3a9af;font-size:15px;font-weight:400}.number-icon{position:absolute;left:21px;top:15px;font-size:22px;color:#d7a653;font-weight:800}
.primary-button{width:100%;min-height:56px;border:0;border-radius:14px;background:linear-gradient(180deg,#f6c458,#e9a83d);color:#4b351c;font-weight:800;font-size:16px;box-shadow:0 5px 0 #c8892b,0 10px 16px #e8ae4a30;transition:transform .16s,box-shadow .16s}.primary-button:hover{transform:translateY(-2px);box-shadow:0 7px 0 #c8892b,0 12px 17px #e8ae4a30}.primary-button:active{transform:translateY(4px);box-shadow:0 1px 0 #c8892b}.primary-button span{margin-left:10px}
#join-form .primary-button{margin-top:17px}.form-error{color:#b74a36;min-height:22px;font-size:13px;margin:10px 0 0;text-align:left}.entry-footer{font-size:13px;color:#9b8b74;margin:27px 0}
.room-stage{padding:9px 0 60px}.room-topline{display:flex;justify-content:space-between;align-items:center;margin:3px 0 20px}.text-button{border:0;background:none;color:#587092;font-weight:800;padding:10px 0}.text-button:hover{text-decoration:underline}.room-stamp{padding:8px 14px;border-radius:100px;background:#e6f2e7;color:#47836d;font-weight:800;font-size:12px}
.room-hero{text-align:center;padding:13px 0 23px}.room-emblem{width:66px;height:66px;background:#f6be5c;color:#fff;border-radius:18px;transform:rotate(-9deg);box-shadow:0 7px 0 #d69e48;display:grid;place-items:center;font-size:36px;margin:0 auto 24px}.room-hero h1{font-size:clamp(28px,5vw,38px);margin:0 0 7px}.room-hero>p:last-child{color:#718096;font-size:14px}
.task-card{border-radius:19px;padding:30px 32px;margin:8px auto 20px}.section-label{display:flex;align-items:center;gap:9px;color:#bd823a;font-weight:800;letter-spacing:.08em;margin-bottom:15px}.label-icon{width:31px;height:31px;background:#fff2ce;border-radius:9px;display:grid;place-items:center;font-size:23px}.task-text{white-space:pre-wrap;line-height:1.9;font-size:17px;color:#33445d;margin:0}.trail{display:flex;justify-content:center;gap:26px;color:#d0b77d;font-size:12px;padding:24px}.trail span:nth-child(2){transform:translateY(6px)}
.hints-heading{display:flex;align-items:end;justify-content:space-between;gap:12px}.hints-heading h2{font-size:25px;margin:0}.hint-counter{background:#fff2cf;color:#ae7d39;padding:8px 13px;border-radius:100px;font-size:12px;font-weight:800}.hint-intro{color:#8290a0;font-size:14px;margin:11px 0 22px}.hint-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.hint-card{border:2px solid #e6d9bd;border-radius:17px;background:#fffdfa;padding:21px;text-align:left;min-height:165px;box-shadow:0 5px 0 #d5c5a77a;position:relative;transition:transform .15s,box-shadow .15s}.hint-card:hover{transform:translateY(-3px);box-shadow:0 8px 0 #d5c5a77a}.hint-card:active{transform:translateY(3px);box-shadow:0 2px 0 #d5c5a77a}.hint-card:before{content:"";position:absolute;right:0;top:0;width:43px;height:43px;background:#f7e8c7;clip-path:polygon(100% 0,0 0,100% 100%);border-radius:0 15px 0 0}.hint-index{font-size:11px;font-weight:800;letter-spacing:.13em;color:#c68a43}.hint-chest{display:block;font-size:37px;margin:9px 0 2px}.hint-title{display:block;font-size:17px;font-weight:800;color:#34455c;line-height:1.4}.hint-state{display:block;color:#8c9aa6;font-size:12px;margin-top:6px}.hint-card.opened{background:#f3faed;border-color:#c8ddbb}.hint-card.opened .hint-state{color:#61966f}.hint-card.opened:before{background:#ddecce}.empty-hints{grid-column:1/-1;background:#fffdfa;border:2px dashed #dfd3bc;border-radius:17px;padding:28px;text-align:center;color:#8390a1}.room-footer{text-align:center;color:#9b8b74;font-size:13px;margin:42px 0 0}
.dialog-backdrop{position:fixed;inset:0;background:#28374bc9;display:grid;place-items:center;padding:20px;z-index:10;animation:fade-in .2s ease-out}.dialog-card{width:min(100%,500px);max-height:min(760px,calc(100dvh - 30px));overflow:auto;position:relative;text-align:center;padding:47px 7px 15px}.close-button{position:absolute;top:0;right:4px;border:0;background:#fff5dd;color:#566578;width:39px;height:39px;border-radius:50%;font-size:29px;line-height:1;z-index:2}.chest-reveal{width:140px;height:108px;margin:0 auto -9px;position:relative;z-index:1;animation:chest-pop .6s ease-out both}.chest-lid{position:absolute;width:130px;height:35px;left:5px;top:19px;border:5px solid #915b30;border-radius:12px;background:#e5ab4d;transform-origin:8px 26px;animation:open-lid .65s .3s ease-out both}.chest-box{position:absolute;width:120px;height:70px;left:10px;bottom:2px;border:5px solid #915b30;border-radius:9px 9px 15px 15px;background:#eeb454;display:grid;place-items:center;color:#fff6d5;font-size:35px;box-shadow:0 10px 20px #0003}.revealed-note{padding:49px 31px 34px;border-radius:6px;transform-origin:top center;animation:note-open .55s .42s ease-out both}.note-tag{color:#c28a48;font-size:11px;font-weight:800;letter-spacing:.2em}.revealed-note h2{font-size:24px;margin:12px 0 16px}.revealed-note p{font-size:16px;line-height:1.9;white-space:pre-wrap;text-align:left;margin:0;overflow-wrap:anywhere}.dialog-caption{color:#fff0cd;font-size:13px;margin:23px 0 0}
@keyframes float{50%{transform:translateY(-8px) rotate(4deg)}}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes chest-pop{from{opacity:0;transform:scale(.6) translateY(30px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes open-lid{to{transform:rotate(-26deg) translateY(-15px)}}@keyframes note-open{from{opacity:0;transform:scaleY(.3) translateY(-60px)}to{opacity:1;transform:scaleY(1) translateY(0)}}
.admin-page{background:#f6f8f4}.admin-shell{width:min(100% - 32px,1100px);margin:auto}.admin-header{height:78px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e8df}.admin-header a{color:#557290;text-decoration:none;font-size:13px;font-weight:700}.admin-brand{display:flex;align-items:center;gap:11px;font-weight:900}.admin-brand small{font-weight:500;color:#83919a;margin-left:8px}.login-panel{max-width:470px;margin:10vh auto;padding:43px;border-radius:20px;text-align:center}.admin-hero-icon{display:grid;place-items:center;width:65px;height:65px;border-radius:19px;background:#ffeab8;color:#d39140;font-size:40px;margin:0 auto 22px}.login-panel h1{font-size:25px;margin-bottom:10px}.login-panel>p:not(.eyebrow){color:#7c8b96;font-size:14px;margin-bottom:29px}.login-panel input{width:100%;height:52px;border:2px solid #dddcd3;border-radius:11px;padding:0 15px;background:#fff}.login-panel .primary-button{margin-top:19px}.editor-heading{display:flex;justify-content:space-between;gap:20px;align-items:start;padding:39px 0 26px}.editor-heading h1{font-size:30px;margin:0 0 6px}.editor-heading p:last-child{color:#7f8d98;font-size:14px}.editor-intro{border-radius:16px;padding:23px 26px;margin-bottom:22px;box-shadow:0 5px 0 #d0b88532}.group-count-wrap{display:flex;align-items:center;gap:11px}.group-count-wrap label{margin:0}.group-count-wrap input{width:80px;height:43px;text-align:center;border:2px solid #d7decf;border-radius:9px}.group-count-wrap span{color:#7b8995;font-size:14px}.editor-intro p{color:#84919a;font-size:13px;margin:13px 0 0}.editor-layout{display:grid;grid-template-columns:175px minmax(0,1fr);gap:20px}.group-tabs{display:flex;flex-direction:column;gap:9px}.group-tab{border:2px solid #e3e7df;background:#fff;border-radius:11px;padding:13px 15px;text-align:left;font-weight:800;color:#73828a}.group-tab.active{background:#fff2d5;border-color:#efc36c;color:#9b6825}.group-editor{border-radius:17px;padding:30px;box-shadow:0 5px 0 #d0b88532}.group-editor h2{font-size:22px;margin-bottom:23px}.field-block{margin-bottom:25px}.field-block textarea,.hint-editor input,.hint-editor textarea{width:100%;border:2px solid #dfe3de;border-radius:10px;background:#fff;padding:12px;color:#27344b}.field-block textarea{min-height:135px;resize:vertical;line-height:1.7}.hint-editor{background:#f8faf7;border:1px solid #e3e9df;border-radius:12px;padding:18px;margin-bottom:13px}.hint-editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.hint-editor-head strong{font-size:14px}.hint-editor label{font-size:12px;margin:12px 0 7px}.hint-editor textarea{min-height:96px;resize:vertical;line-height:1.6}.hint-editor input{height:45px}.delete-button{border:0;background:#ffeae6;color:#bb604d;border-radius:8px;padding:7px 11px;font-size:12px;font-weight:800}.add-button{border:2px dashed #d6bc83;color:#a17532;border-radius:11px;background:#fffaf0;padding:14px;width:100%;font-weight:800}.save-bar{display:flex;justify-content:flex-end;align-items:center;gap:20px;position:sticky;bottom:0;background:#f6f8f4ed;padding:19px 0;margin-top:12px;backdrop-filter:blur(12px)}.save-bar p{flex:1;font-size:13px;color:#527d66;margin:0}.save-bar .primary-button{width:auto;min-width:190px;padding:0 20px}
@media(max-width:650px){.brand-header{height:66px}.entry-stage{padding-top:15px}.compass{width:96px;height:96px;margin:27px auto}.compass:before{height:73px}.compass:after{width:73px}.compass span{font-size:58px}.entry-card{padding:36px 22px 28px}.sky-decor-left{left:0;top:15%}.sky-decor-right{right:0;top:65%}.hint-grid{grid-template-columns:1fr}.hint-card{min-height:136px}.task-card{padding:27px 24px}.admin-header{height:65px}.admin-brand small{display:block;margin:0;font-size:11px}.editor-heading{padding:27px 0 15px}.editor-heading h1{font-size:24px}.editor-intro{padding:20px}.editor-layout{display:block}.group-tabs{flex-direction:row;overflow-x:auto;padding-bottom:12px}.group-tab{white-space:nowrap;min-width:83px;text-align:center}.group-editor{padding:22px}.save-bar{gap:10px}.save-bar .primary-button{min-width:145px;font-size:14px}.login-panel{padding:35px 24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.hint-chest{display:grid;place-items:center;position:relative;width:46px;height:33px;background:#edb95d;color:#fff4d4;border:3px solid #986539;border-radius:5px 5px 8px 8px;font-size:20px;margin:17px 0 12px;box-shadow:0 3px 0 #d3a04a}.hint-chest:before{content:"";position:absolute;left:-4px;top:-10px;width:48px;height:11px;border:3px solid #986539;background:#f5c66e;border-radius:6px 6px 2px 2px}.hint-card.opened .hint-chest{background:#a5c79c;border-color:#609076;box-shadow:0 3px 0 #7cae82}.hint-card.opened .hint-chest:before{border-color:#609076;background:#c4ddae}
.editor-heading .text-button{white-space:nowrap;flex:none}
.student-preview-links{display:flex;gap:17px;align-items:center}.student-preview-links a{white-space:nowrap}@media(max-width:650px){.student-preview-links{gap:9px}.student-preview-links a{font-size:11px}}
