:root{--paper:#fbf5e9;--ink:#30202b;--muted:#93836f;--purple:#963bf0;--dark-purple:#7130b2;--gold:#ffbe25;--line:#e7d9c4}*{box-sizing:border-box}body{margin:0;background:#f1eadc;color:var(--ink);font:14px/1.6 Arial,Helvetica,sans-serif}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--purple);outline-offset:4px}input,select{color:var(--ink)}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:square;stroke-linejoin:miter;flex-shrink:0}.pixel{font:bold 10px/1.5 'Courier New',monospace;letter-spacing:1px}.site-shell{max-width:600px;min-height:100vh;margin:auto;background:var(--paper);box-shadow:0 0 70px #654a2912}.site-header{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;text-decoration:none}.brand-mark{width:36px;height:36px;display:grid;place-items:center;background:var(--ink);color:var(--gold);box-shadow:3px 3px 0 #d7b979}.brand strong{display:block;line-height:1;font-size:23px;letter-spacing:-1px}.brand small{display:block;font-size:8px;color:var(--muted);letter-spacing:.8px;margin-top:5px}.preview-label{font:9px monospace;letter-spacing:1px;border:1px solid var(--line);padding:4px 8px;color:#a58c6c}.public-nav{display:flex;gap:5px;padding:12px 18px;background:#fbf5e9;position:sticky;top:0;z-index:10;border-bottom:1px solid var(--line)}.public-nav button{flex:1;background:none;border:0;border-radius:6px;padding:9px 7px;color:#8d7965;font-size:12px;font-weight:600;white-space:nowrap}.public-nav button.active{background:var(--purple);color:#fff8ed;box-shadow:0 3px 0 #7834b8}main{padding:0 20px 26px}.purple-label{display:inline-block;background:#963bf0;color:#fff7ec;padding:6px 10px;border-radius:0;box-shadow:3px 3px 0 #7130b2;font-size:9px}.board-hero{height:270px;position:relative;padding:31px 25px;margin:0 -20px;background:#ffe0a3 url('/assets/treasure-map.svg') center top/100% auto no-repeat;overflow:hidden}.board-hero h1{font-size:34px;letter-spacing:-1.5px;line-height:1.1;margin:19px 0 14px;max-width:70%}.board-hero p{font-size:12px;color:#846039;line-height:1.7;max-width:66%}.hero-hearts{position:absolute;right:25px;top:32px;display:flex;gap:5px;color:var(--purple)}.hero-hearts .icon{fill:currentColor;stroke:#fff6dc;width:20px;height:20px;stroke-width:2}.hero-hearts .icon:last-child{color:var(--gold)}.board-title{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:23px 0 17px}.board-title h2{font-size:24px;letter-spacing:-.8px}.board-title p{font-size:10px;color:#8b6a43;margin-top:5px}.chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #dec79f;background:#fff0cb;font:700 9px monospace;padding:5px 8px;color:#8e6629;white-space:nowrap}.chip .icon{width:12px;height:12px}.rank-list{display:grid;gap:9px;padding-bottom:4px;position:relative}.rank-row{display:flex;align-items:center;gap:11px;min-height:82px;padding:10px 16px 10px 11px;background:#fffcf4eb;border:1px solid #dcc49d;border-radius:9px;box-shadow:0 4px 0 #c9a86e50;position:relative}.rank-number{font:bold 14px 'Courier New',monospace;width:24px;text-align:center;color:#a38f72;flex-shrink:0}.rank-person{flex:1;min-width:0}.rank-person h3{font-size:16px;font-weight:700;overflow-wrap:anywhere}.avatar{display:inline-flex;width:54px;height:64px;align-items:center;justify-content:center;flex-shrink:0}.pixel-avatar{width:100%;height:100%;overflow:visible;image-rendering:pixelated}.rank-badge{display:block;font:bold 8px 'Courier New',monospace;letter-spacing:.6px;color:#87643e;margin-top:7px}.rank-points{text-align:right;min-width:50px;flex-shrink:0}.rank-points strong{display:block;font:bold 27px/1 'Courier New',monospace;letter-spacing:-1px}.rank-points span{display:block;font:8px monospace;letter-spacing:1px;margin-top:6px;color:#907450}.top-five{min-height:88px;border-width:2px}.top-five .rank-number{color:#796239}.top-1{background:linear-gradient(105deg,#fff0b0,#ffdc64);border-color:#caa145;box-shadow:0 4px 0 #bb8f36}.top-1:after{content:'✦';position:absolute;right:83px;top:9px;color:#d4a328;font-size:16px}.top-2{background:linear-gradient(105deg,#f5e7ff,#e5cbfa);border-color:#b891d2;box-shadow:0 4px 0 #a782bb}.top-3{background:linear-gradient(105deg,#ffe8db,#ffd2bd);border-color:#d5a186;box-shadow:0 4px 0 #b8886c}.top-4{background:linear-gradient(105deg,#eaf2d9,#d5e6b3);border-color:#a8bd84;box-shadow:0 4px 0 #8ca171}.top-5{background:linear-gradient(105deg,#e4f1ef,#c7e2e0);border-color:#91b5b5;box-shadow:0 4px 0 #7a9e9f}.board-note{text-align:center;font-size:10px;color:#856b4b;line-height:1.8;margin:22px 0}.join-strip{display:flex;align-items:center;justify-content:space-between;gap:13px;border:1px dashed #d5bb8e;background:#fff9e8;padding:17px;border-radius:8px;margin-top:23px}.join-strip b{font-size:13px}.join-strip p{font-size:10px;color:var(--muted);margin-top:4px}.btn{border:1px solid var(--line);background:#fffcf4;padding:11px 15px;border-radius:6px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none}.btn .icon{width:15px;height:15px}.btn.primary{background:var(--purple);color:white;border-color:#8430d3;box-shadow:0 3px 0 #7230b3}.btn.primary:hover{background:#8b30df}.btn.small{padding:6px 10px;font-size:10px}.text-button{border:0;padding:0;background:none;color:#987d60;font-size:10px}.footer{margin-top:28px;padding-top:21px;border-top:1px solid #d9c6a6;text-align:center;font-size:9px;color:#9d866a;line-height:1.9}.footer>div{display:flex;justify-content:center;gap:8px;margin-top:14px}.footer button{background:none;border:0;padding:0;color:#9d866a;font-size:9px;text-decoration:underline;text-underline-offset:3px}.quest-intro{padding:30px 2px 23px}.quest-intro h1{font-size:32px;letter-spacing:-1.2px;margin:19px 0 14px}.quest-intro p{font-size:12px;color:var(--muted);max-width:400px}.group-reminder{padding:12px 14px;background:#eee0fc;border:1px solid #dfc9f5;border-radius:7px;display:flex;gap:9px;align-items:center;color:#785497;font-size:11px}.group-reminder .icon{width:17px;height:17px}.quest-section{margin-top:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.section-heading h2{font-size:20px;letter-spacing:-.6px}.quest-list{display:grid;gap:8px}.quest-item{background:#fffcf7;border:1px solid var(--line);border-radius:8px;overflow:hidden}.quest-item summary{display:flex;align-items:center;gap:11px;padding:15px 14px;cursor:pointer;list-style:none}.quest-item summary::-webkit-details-marker{display:none}.quest-icon{background:#eedffb;color:#8b3ace;width:35px;height:35px;display:grid;place-items:center;flex-shrink:0;border-radius:5px}.quest-icon .icon{width:19px;height:19px}.quest-icon.gold{background:#fff0c6;color:#a47d24}.quest-icon.green{background:#e4eddb;color:#748b56}.quest-name{flex:1;font-size:12px;font-weight:600;line-height:1.4}.quest-name small{display:block;font-size:9px;color:var(--muted);font-weight:400;margin-top:4px}.points{font:bold 14px monospace;color:var(--dark-purple);white-space:nowrap}.chevron{font-size:17px;color:#a48b6d}.quest-item[open] .chevron{transform:rotate(180deg)}.quest-body{padding:0 17px 17px;font-size:12px;color:#796b59}.quest-body>p{margin-bottom:12px}.quest-rule{font-size:10px;color:#9b856a}.proof-note{font-size:10px;background:#f7f0e2;padding:12px;border-radius:5px}.proof-note b{display:block;margin-bottom:5px;color:#786048}.proof-note p{line-height:1.7}.register-intro{padding:29px 3px 20px}.register-intro h1{font-size:34px;letter-spacing:-1px;margin-top:20px}.register-intro p{font-size:12px;color:var(--muted);margin-top:10px}.registration-card{border:1px solid var(--line);background:#fffdf6;border-radius:10px;padding:23px}.avatar-stage{height:190px;background:linear-gradient(#efe1fa,#f5eafa);border:1px solid #ddc7ef;border-radius:8px;position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:25px;overflow:hidden}.avatar-stage .pixel-avatar{height:144px;width:128px;position:relative;z-index:1}.stage-shadow{width:100px;height:12px;background:#dac3e7;position:absolute;bottom:17px;left:50%;transform:translateX(-50%);clip-path:polygon(12% 0,88% 0,88% 25%,100% 25%,100% 75%,88% 75%,88% 100%,12% 100%,12% 75%,0 75%,0 25%,12% 25%)}.stage-star{position:absolute;color:#b089d1;font-family:monospace;font-size:24px}.star-left{left:43px;top:42px}.star-right{right:43px;bottom:45px;font-size:18px}.field{display:flex;flex-direction:column;font-size:12px;font-weight:600;gap:8px}.field input,.field select{width:100%;border:1px solid #d9cab5;background:#fffaf0;border-radius:5px;padding:12px;color:var(--ink);font-size:13px}.registration-card fieldset{border:0;margin:25px 0 0;padding:0;min-width:0}.registration-card legend{font-size:12px;font-weight:600;margin-bottom:11px}.character-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.character-choice{display:flex;flex-direction:column;align-items:center;position:relative;background:#fbf5e9;border:1px solid #e6d8c2;border-radius:6px;padding:11px 4px 8px;min-width:0}.character-choice .pixel-avatar{width:52px;height:58px}.character-choice small{font-size:9px;color:#99856b;margin-top:6px}.character-choice.selected{border:2px solid var(--purple);background:#f1e4fc;padding:10px 3px 7px}.choice-check{display:none;position:absolute;top:5px;right:6px;color:var(--purple);font-size:11px;font-weight:bold}.selected .choice-check{display:block}.accessory-list{display:flex;flex-wrap:wrap;gap:6px}.accessory-choice{border:1px solid var(--line);background:#fbf5e9;border-radius:5px;padding:8px 10px;font-size:10px;color:#957c61}.accessory-choice.selected{color:#7833b0;border-color:#b983e1;background:#efe1fb;font-weight:600}.register-submit{width:100%;margin-top:19px;padding:13px}.registration-note{text-align:center;font-size:10px;color:#a28d71;line-height:1.8;margin-top:17px}.form-error{font-size:11px;color:#ad4549;margin-top:13px}.form-error:empty{display:none}.registered-page{text-align:center;padding:38px 10px 27px}.success-stage{border:0;background:none;max-width:260px;margin:25px auto 21px}.registered-page h1{font-size:33px;letter-spacing:-1px}.registered-page p{font-size:12px;color:var(--muted);margin:18px 0 25px;line-height:1.8}.reward-placeholder{text-align:center;padding:46px 15px 40px}.placeholder-icon{width:78px;height:78px;background:#ffe7aa;color:#a77618;display:grid;place-items:center;margin:0 auto 25px;border:1px solid #e4c580}.placeholder-icon .icon{width:42px;height:42px}.reward-placeholder h1{font-size:34px;letter-spacing:-1.1px;margin:24px 0 20px}.reward-placeholder>p{font-size:13px;color:#8f775e;max-width:360px;margin:auto}.placeholder-note{font-size:11px;background:#f4eada;border:1px dashed #d6bda0;border-radius:7px;padding:18px;margin:24px 0;color:#9c8264}.admin-shell{max-width:880px}.admin-back{margin:21px 25px 0}.admin-header{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:25px 3px 18px}.admin-header .pixel{color:#9b7fac}.admin-header h1{font-size:29px;letter-spacing:-1px;margin-top:7px}.admin-header p{font-size:12px;color:var(--muted);margin-top:10px}.admin-demo-note{font-size:10px;padding:12px 14px;border:1px solid #e2cef2;color:#9479aa;background:#f3e9fa;border-radius:6px;margin-bottom:23px}.admin-selectors{display:grid;grid-template-columns:1fr 155px;gap:12px;margin-bottom:20px}.admin-card{border:1px solid var(--line);background:#fffdf6;border-radius:9px;overflow:hidden}.editor-top{display:flex;align-items:center;gap:12px;padding:17px 22px;border-bottom:1px solid var(--line);background:#faf2e6}.editor-top h2{font-size:21px}.editor-top p{font-size:10px;color:var(--muted);margin-top:6px}.editor-top .avatar{width:47px;height:56px}.editor-total{margin-left:auto;text-align:right}.editor-total strong{display:block;font:bold 29px monospace;color:var(--purple)}.editor-total span{font:9px monospace;letter-spacing:.7px;color:var(--muted)}.editor-section{padding:20px 22px}.editor-section h3{font-size:14px;margin-bottom:15px}.table-scroll{overflow:auto}.matrix{border-collapse:collapse;width:100%}.matrix th{font-size:10px;color:#9c8870;font-weight:500;text-align:center;padding:9px 5px}.matrix td{padding:12px 5px;border-top:1px solid #eee4d6;text-align:center}.matrix td:first-child,.matrix th:first-child{text-align:left}.matrix td:first-child{font-size:12px;min-width:130px}.matrix td:first-child small{display:block;font-size:9px;color:var(--muted);margin-top:3px}input[type=checkbox]{appearance:none;width:21px;height:21px;border:1px solid #d5c4ac;border-radius:4px;background:#fbf3e6;margin:0;vertical-align:middle;cursor:pointer;display:inline-grid;place-items:center}input[type=checkbox]:checked{background:var(--purple);border-color:#8030c9}input[type=checkbox]:checked:after{content:'✓';font-weight:700;font-size:13px;color:white}.weekly-edit-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #eee4d6}.weekly-edit-row:last-child{border-bottom:0}.weekly-edit-row label{flex:1;font-size:12px}.weekly-edit-row small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:5px;overflow:hidden}.stepper button{width:30px;height:32px;border:0;background:#f3eadb;font-size:16px}.stepper span{width:28px;text-align:center;font-size:12px}.editor-save{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px;background:#faf1e4;border-top:1px solid var(--line)}.editor-save b{font-size:12px}.editor-save small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.admin-bottom{padding:23px 3px 0;color:var(--muted);font-size:10px}.active-week-control{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:15px 0}.admin-bottom>.text-button{margin-top:7px;text-decoration:underline;text-underline-offset:3px}dialog{padding:0;background:#fffaf0;color:var(--ink);border:1px solid var(--line);border-radius:9px;width:min(450px,calc(100% - 32px));box-shadow:0 20px 60px #2d19262e}dialog::backdrop{background:#26162f88;backdrop-filter:blur(3px)}.modal-body{padding:25px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:19px}.modal-head h2{font-size:23px}.modal-close{border:0;background:#f0e6d7;width:27px;height:27px;display:grid;place-items:center;border-radius:4px;font-size:20px}.modal-body>p{font-size:12px;color:var(--muted);margin-bottom:19px}.modal-body .btn{margin-top:20px}.modal-body .btn+.btn{margin-left:5px}#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,15px);opacity:0;transition:all .2s;background:#30202b;color:#fff6e4;border:1px solid #614a50;padding:11px 17px;border-radius:7px;font-size:11px;max-width:90vw;text-align:center;z-index:50;pointer-events:none;box-shadow:0 5px 15px #30202b22}#toast.visible{opacity:1;transform:translate(-50%,0)}
/* The ranking floats over a continuous pixel treasure map. */
.site-shell:has(.rank-list){background:#ecc583 url('/assets/treasure-map.svg') center 131px/100% calc(100% - 131px) no-repeat}.site-shell:has(.rank-list) .site-header{background:#fbf5e9}.site-shell:has(.rank-list) .board-hero{background:none}.site-shell:has(.rank-list) .footer{color:#856645}.site-shell:has(.rank-list) .footer button{color:#856645}.site-shell:has(.rank-list) .board-title .chip{background:#fff5dce8}.site-shell:has(.rank-list) main{padding-left:27px;padding-right:27px}.site-shell:has(.rank-list) .board-hero{margin-left:-27px;margin-right:-27px;padding-left:27px}
@media(max-width:480px){.site-header{height:68px;padding:0 19px}.brand strong{font-size:21px}.brand-mark{width:32px;height:32px}.brand small{font-size:7px}.public-nav{padding:10px 12px;gap:4px}.public-nav button{font-size:11px;padding:9px 6px}main{padding:0 17px 25px}.board-hero{height:260px;padding:27px 19px;margin:0 -17px}.board-hero h1{font-size:29px;letter-spacing:-1px;margin-top:21px;max-width:72%}.board-hero p{font-size:11px;max-width:68%}.hero-hearts{right:20px;top:30px;gap:3px}.hero-hearts .icon{width:16px;height:16px}.purple-label{font-size:8px;padding:5px 8px}.board-title{padding-top:15px;padding-bottom:17px}.board-title h2{font-size:22px}.board-title p{font-size:9px}.chip{font-size:8px;padding:5px 6px}.rank-list{gap:9px}.rank-row{gap:7px;padding:8px 11px 8px 7px;min-height:78px}.top-five{min-height:84px}.rank-number{width:20px;font-size:13px}.avatar{width:45px;height:54px}.rank-person h3{font-size:15px}.rank-badge{font-size:7px;letter-spacing:.4px;margin-top:6px}.rank-points{min-width:47px}.rank-points strong{font-size:25px}.rank-points span{font-size:7px}.top-1:after{right:67px;top:9px;font-size:13px}.join-strip{padding:15px 12px;gap:8px}.join-strip p{font-size:9px;max-width:195px}.join-strip .btn{font-size:11px;padding:10px 12px}.quest-intro{padding-top:26px}.quest-intro h1{font-size:29px;letter-spacing:-1px}.quest-intro p{font-size:11px}.group-reminder{font-size:10px}.section-heading h2{font-size:19px}.quest-item summary{gap:8px;padding:14px 11px}.quest-name{font-size:11px}.quest-name small{font-size:8px}.quest-icon{width:31px;height:31px}.quest-icon .icon{width:17px;height:17px}.points{font-size:13px}.quest-body{font-size:11px;padding:0 14px 15px}.quest-rule{font-size:9px}.proof-note{font-size:9px}.register-intro h1{font-size:32px}.registration-card{padding:18px}.avatar-stage{height:168px;margin-bottom:22px}.avatar-stage .pixel-avatar{height:126px;width:112px}.stage-shadow{bottom:16px;width:89px}.character-grid{gap:7px}.character-choice .pixel-avatar{width:45px;height:50px}.character-choice small{font-size:8px}.star-left{left:29px;top:32px}.star-right{right:25px;bottom:39px}.accessory-choice{padding:8px 9px;font-size:9px}.field{font-size:11px}.field input,.field select{font-size:12px}.register-submit{font-size:12px}.registration-note{font-size:9px}.registered-page h1{font-size:30px}.registered-page p{font-size:11px}.admin-header{padding-top:22px}.admin-header h1{font-size:25px}.admin-header p{font-size:10px;max-width:218px}.admin-header .btn{font-size:10px;padding:9px}.admin-header .icon{width:13px;height:13px}.admin-demo-note{font-size:9px;padding:11px 12px}.admin-selectors{grid-template-columns:minmax(0,1fr) 112px;gap:8px}.admin-selectors select{padding:10px 8px;font-size:11px}.editor-top{padding:14px}.editor-top .avatar{width:41px;height:48px}.editor-top h2{font-size:20px}.editor-total strong{font-size:25px}.editor-total span{font-size:8px}.editor-section{padding:19px 12px}.editor-section h3{font-size:13px;margin-bottom:12px}.matrix th{font-size:8px;padding:8px 3px}.matrix td{padding:10px 3px}.matrix td:first-child{min-width:110px;font-size:10px}.matrix td:first-child small{font-size:8px}.matrix input[type=checkbox]{width:18px;height:18px}.weekly-edit-row{padding:13px 2px}.weekly-edit-row label{font-size:11px}.weekly-edit-row small{font-size:8px}.editor-save{padding:15px 13px;gap:9px}.editor-save b{font-size:10px}.editor-save small{font-size:9px}.editor-save .btn{font-size:11px;padding:11px}.admin-back{margin-left:20px}.active-week-control{font-size:9px}.admin-bottom{font-size:9px}.footer{font-size:8px;margin-top:25px}.footer button{font-size:8px}.site-shell:has(.rank-list){background-position:center 120px;background-size:100% calc(100% - 120px)}.site-shell:has(.rank-list) main{padding-left:21px;padding-right:21px}.site-shell:has(.rank-list) .board-hero{margin-left:-21px;margin-right:-21px;padding-left:21px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
