@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#302754;--muted:#8c86a2;--purple:#7058e9;--line:#eae5f4;--paper:#faf8ff;--yellow:#ffcf68}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 0,#eee5ff,transparent 60%),var(--paper);color:var(--ink);font:14px Manrope,Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f6aa53;outline-offset:4px}a{color:inherit}button{color:inherit}h1,h2,h3,p{margin-top:0}h2{font-size:22px;letter-spacing:-.7px;margin-bottom:9px}h3{letter-spacing:-.3px}.shell{max-width:1450px;min-height:100vh;margin:auto;display:grid;grid-template-columns:345px minmax(0,1fr);box-shadow:0 0 90px #5847a00a}aside{padding:35px 30px;background:radial-gradient(circle at 0 35%,#c942f4,transparent 50%),linear-gradient(155deg,#7429ec,#3423ae);color:white;display:flex;flex-direction:column;overflow:hidden;position:relative}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:12px;font-weight:800;letter-spacing:1px;line-height:1.7}.brand small{display:block;font-size:9px;font-weight:500;letter-spacing:2px;color:#e0d5ff}.brand-mark{width:43px;height:45px;border-radius:13px;background:linear-gradient(145deg,#ffe294,#ffb851);display:grid;place-items:center;box-shadow:0 6px 0 #ca8d4d;color:#7255aa;font-size:30px;font-weight:800}.season{font-size:9px;letter-spacing:2px;color:#f7df9a;margin-top:55px}h1{font-size:38px;letter-spacing:-1.8px;line-height:1.3;margin:23px 0 15px}h1 em{font-style:normal;color:#ffe08e}.intro{color:#e4dbff;font-size:13px;line-height:1.9;max-width:265px}.hero-city-art{width:270px;max-width:100%;align-self:center;filter:drop-shadow(0 25px 20px #291f6f33);margin:20px -10px 0;transform:rotate(-4deg)}.hero-city-art svg{width:100%;height:auto}.hero-caption{text-align:center;font-size:12px;color:#f6e1ff;line-height:2;margin-bottom:30px}.hero-caption b{font-size:10px;font-weight:500;color:#d7cdff}.hub{margin-top:auto;text-decoration:none;border-top:1px solid #ffffff30;padding-top:22px;font-size:12px;color:#ffecae}.notice{font-size:10px;line-height:1.8;color:#dbd3ff;margin:14px 0}.open-bot{font-size:11px;color:white;text-decoration:none;font-weight:700}main{padding:30px 40px;min-width:0;max-width:1100px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#a098b7;font-weight:800}.sync-status{font-size:10px;color:#9a92b3;margin:7px 0 0}.quiet{background:#fff;color:#9a91b1;padding:11px 15px;border-radius:12px;font-size:11px;border:1px solid var(--line)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stats>div{display:flex;align-items:center;gap:12px;padding:19px 14px;border-radius:17px;border:1px solid #fff;box-shadow:0 8px 20px #6957b109}.stat-energy{background:#ffe39a}.stat-cities{background:#ddc9ff}.stat-score{background:#b9f5d8}.stat-icon{font-size:25px;width:32px;text-align:center;color:var(--purple)}.stat-energy .stat-icon{color:#f3a944}.stat-score .stat-icon{color:#29b89f}.stats small{font-size:8px;letter-spacing:1px;font-weight:800;color:#9d91ab;display:block}.stats strong{font-size:23px;display:block;letter-spacing:-1px;margin-top:4px;white-space:nowrap}nav{display:flex;gap:6px;flex-wrap:wrap;padding:6px;background:#f0ebf9;border-radius:14px;margin:22px 0 27px}nav button{font-size:11px;font-weight:700;color:#9c91b4;padding:11px 12px;background:transparent;border-radius:10px;white-space:nowrap;flex:1}nav button.active{background:#fff;color:var(--purple);box-shadow:0 4px 9px #6c55b815}#box-count{display:inline-block;background:#ece4ff;border-radius:5px;padding:1px 4px;font-size:9px}.board-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.board-head p,.section-heading p{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:15px}.board-head>span{font-size:11px;background:#ede7fc;color:#9476c9;padding:8px 10px;border-radius:10px;white-space:nowrap}.board-wrap{position:relative}#board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;background:linear-gradient(140deg,#bca4ef,#d4bef8);padding:15px;border:2px solid #fff;border-radius:23px;box-shadow:0 6px 0 #d0c5e8,0 15px 35px #7560a51c;touch-action:none;user-select:none;-webkit-user-select:none}#board-effects{position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:8}.tile{position:relative;aspect-ratio:1.04;background:linear-gradient(155deg,#fcfaff,#f0e9fc);border:1px solid #fff;border-radius:15px;box-shadow:0 4px 0 #c9bddf,0 5px 7px #8a75b21c;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;touch-action:none;user-select:none;-webkit-user-select:none;transform-origin:center;isolation:isolate}.tile.empty{background:#c1a8e5;border-color:#d0c6e7;box-shadow:inset 0 2px 5px #9a83bf13}.tile .item-art{width:90%;height:80%;margin-top:-3px;pointer-events:none;filter:drop-shadow(0 3px 2px #7f6da01a)}.tile small{font-size:8px;font-weight:700;color:#a196b3;margin-top:-2px;margin-bottom:4px;pointer-events:none}.tile .qty{position:absolute;right:6px;top:6px;font-size:8px;color:#8478a4;background:#f0e8ff;border-radius:5px;padding:2px 4px;pointer-events:none}.tile.selected,.tile.drop-target{outline:3px solid #b295f3;background:#fff6d9}.tile.drag-source{opacity:.35}.tile.level-1{background:linear-gradient(140deg,#fff9e8,#ffc88c)}.tile.level-2{background:linear-gradient(140deg,#edf5ff,#b7d6ff)}.tile.level-3{background:linear-gradient(140deg,#fff1f7,#ffa4ce)}.tile.level-4{background:linear-gradient(140deg,#f4efff,#c6a4ff)}.tile.level-5{background:linear-gradient(140deg,#e4fff8,#8de9d1)}.drag-ghost{position:fixed!important;z-index:100;pointer-events:none;transform:translate(-50%,-60%) scale(1.12) rotate(-5deg);opacity:.95;box-shadow:0 15px 25px #4e327f44;border:2px solid #fff;cursor:grabbing}.merge-spark{position:absolute;width:8px;height:8px;border-radius:3px;box-shadow:0 0 6px #ffdd86}.actions{display:flex;gap:12px;margin-top:22px}.primary{display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(120deg,#8232ff,#5130dc);border:1px solid #aa91f7;border-radius:13px;color:#fff;text-decoration:none;font-size:13px;font-weight:800;padding:17px 19px;box-shadow:0 5px 0 #5240ad;transition:filter .15s,transform .1s;touch-action:manipulation;user-select:none;-webkit-user-select:none}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #5240ad}.primary:hover:not(:disabled){filter:brightness(1.06)}.primary span{font-size:11px;color:#ffe8ac;white-space:nowrap}#spawn{flex:1;justify-content:space-between}.secondary{border:1px solid #ded4f2;background:#f4effe;color:#8a73b6;border-radius:12px;padding:13px 16px;font-size:11px;font-weight:700}.secondary:active{background:#e9e0fa}.chain{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;color:#b2a8c6;font-size:8px;margin:24px 0}.chain b{color:#8064c7}.invite-banner{display:flex;align-items:center;gap:15px;width:100%;text-align:left;padding:20px;border-radius:16px;background:linear-gradient(110deg,#ffc35c,#ffe19b);border:1px solid #fff7e8;color:#9b7439;margin:18px 0;box-shadow:0 5px 15px #bd9a5b0c}.invite-banner-icon{font-size:28px;width:43px;height:43px;flex-shrink:0;border-radius:13px;background:#ffd389;display:grid;place-items:center;color:#fff}.invite-banner b{font-size:13px;display:block;color:#82613c}.invite-banner small{font-size:10px;line-height:1.8;display:block;margin-top:5px;color:#b29770}.invite-banner>strong{margin-left:auto;font-size:22px}.balance-info{color:#9c91b0;font-size:10px;line-height:1.9;margin-top:24px}.balance-info summary{cursor:pointer;font-weight:700}.balance-info p{padding:12px 0}.section-heading{margin-bottom:20px}.section-heading .eyebrow{display:block;margin-bottom:12px}.section-heading h2{margin-bottom:12px}footer{display:flex;justify-content:space-between;gap:10px;margin-top:35px;border-top:1px solid var(--line);padding-top:20px;color:#b1a7c0;font-size:8px;letter-spacing:.8px}footer a{text-decoration:none}input,select{background:white;border:1px solid #e5dcf2;padding:12px 14px;border-radius:10px;color:var(--ink);min-width:0;max-width:100%;font-size:12px}input:focus,select:focus{border-color:#9e83e7}.specialty{display:flex;align-items:center;gap:14px;font-size:12px}.task-group-title{font-size:17px;margin:28px 0 8px}.ranking-help{font-size:10px;line-height:1.9;color:#a69ab6}.login-reward{background:linear-gradient(145deg,#efe7ff,#e9e8ff);border:1px solid #dfd3f4;border-radius:18px;padding:24px;margin:22px 0}.login-reward h3{font-size:22px;margin:10px 0}.login-reward p{font-size:11px;color:#a093b8;line-height:1.9}.streak-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:18px 0}.streak-days>div{display:flex;flex-direction:column;align-items:center;gap:8px;border-radius:10px;border:1px solid #e2d8f1;padding:11px 2px;background:#faf6ff}.streak-days small{font-size:8px;color:#a396b4}.streak-days b{font-size:10px;white-space:nowrap;color:#9a80c9}.streak-days span{font-size:7px;color:#b2a6c2}.streak-days .current{background:#ffefce;border:2px solid #f3c877}.streak-days .current b{color:#ce9c42}.login-reward>.primary{width:100%;margin:20px 0 13px}.login-reward>small{display:block;text-align:center;font-size:9px;color:#a99bbf}.task{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 0;border-bottom:1px solid var(--line)}.task h3{font-size:12px;margin-bottom:7px}.task p{font-size:10px;line-height:1.9;color:#a79bb7;margin:0}.task button{background:#eae2ff;border-radius:9px;color:#9476c8;padding:12px;font-size:10px;white-space:nowrap;font-weight:700}.task progress{display:block;width:185px;height:5px;border:0;border-radius:5px;accent-color:#b29be9;margin-top:10px}.task progress::-webkit-progress-bar{background:#ede7f5;border-radius:4px}.task progress::-webkit-progress-value{background:#b39be9;border-radius:4px}.completion-reward{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:14px;background:#fff2d7;padding:18px;margin-top:16px;color:#af8e51}.completion-reward b{font-size:12px}.completion-reward p{font-size:10px;line-height:1.7;margin:5px 0 0}.completion-reward button{white-space:nowrap;font-size:10px;background:#ffebc4;color:#b39053;border-color:#f2dca7}#search{width:100%;margin-bottom:22px}#citylist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.city-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;text-align:center;box-shadow:0 6px 13px #6b56a008}.city-avatar{position:relative;max-width:160px;margin:auto}.city-avatar svg{width:100%;height:auto;max-height:160px}.city-check{position:absolute;right:4px;bottom:5px;background:#56c9a7;color:#fff;border:3px solid #fff;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-size:14px;font-weight:800}.city-card h3{font-size:12px;margin:10px 0 6px}.city-card p{font-size:9px;line-height:1.6;color:#a89ab9;min-height:29px;margin-bottom:12px}.city-card-bottom{border-top:1px solid #f0eaf8;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px}.city-card-bottom b{color:#9a7ec9}.city-card-bottom small{font-size:7px;font-weight:400}.city-card-bottom>span{font-size:9px;color:#bbadc9}.city-card.owned{border-color:#b9e5d6;background:#f8fffc}.city-card.owned .city-card-bottom>span{color:#70bca5;font-size:8px}.city-population{display:block;font-size:8px;color:#c1b4cd;margin-top:8px}.source{font-size:9px;color:#b3a6c4;line-height:1.9;margin-top:22px}#boxlist{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0}.box-card{background:linear-gradient(140deg,#fff7d5,#ffe1b6);padding:20px;border-radius:18px;text-align:center;border:1px solid #fff;box-shadow:0 7px 20px #8a66ac0a}.box-card:nth-child(2){background:linear-gradient(140deg,#b8ffe0,#71e5d1)}.box-card:nth-child(3){background:linear-gradient(140deg,#ffc5e4,#f991cb)}.box-card:nth-child(4){background:linear-gradient(140deg,#dec0ff,#bb8cff)}.box-owned{text-align:left;display:block;font-size:10px;color:#a59ab3}.box-art{display:flex;height:125px;align-items:end;justify-content:center;margin-top:12px}.box-art svg{height:85px}.box-art.medium svg{height:100px}.box-art.large svg{height:113px}.box-art.grand svg{height:125px}.box-card h3{font-size:14px;margin:16px 0 7px}.box-card p{font-size:10px;color:#a59bb5;margin-bottom:17px}.box-card .primary{width:100%;font-size:12px;padding:12px}#loot-table,.loot-results{border:1px solid var(--line);padding:10px 18px;border-radius:13px;background:#fff}#loot-table>div,.loot-results>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #f0eaf7;font-size:11px;color:#9d8cb5}#loot-table>div:last-child,.loot-results>div:last-child{border:0}.reserve-item{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.reserve-item svg{width:65px;height:65px}.reserve-item span{flex:1}.reserve-item button{font-size:10px}.ranking-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.ranking-heading .eyebrow{display:block;margin-bottom:10px}#ranking-form{margin:25px 0}#ranking-form label{font-size:12px}.ranking-entry,.copy-row{display:flex;gap:9px;margin-top:10px}.ranking-entry input,.copy-row input{flex:1}.ranking-entry .primary{font-size:11px;white-space:nowrap;padding:13px}.ranking-columns,.ranking-row{display:grid;grid-template-columns:minmax(0,1fr) 60px 90px;gap:10px;align-items:center}.ranking-columns{font-size:8px;color:#b6a7c9;padding:14px 12px;border-bottom:1px solid var(--line);letter-spacing:1px}.ranking-columns>span:not(:first-child),.ranking-row>span,.ranking-row>strong{text-align:right}.ranking-row{font-size:12px;border-bottom:1px solid var(--line);padding:18px 12px}.ranking-row>div{display:flex;align-items:center;gap:15px;min-width:0}.ranking-row b{overflow-wrap:anywhere}.ranking-place{color:#bba5d2;min-width:20px}.ranking-row small{font-size:9px;color:#9d83c7}.ranking-row.is-me{background:#f0e8ff;border-radius:10px}.ranking-empty{font-size:12px;color:#b3a3c6;padding:30px;text-align:center;line-height:2}#ranking-status,#admin-status{font-size:11px;color:#9e8db5}#my-rank{background:linear-gradient(120deg,#8c71e4,#6b59c2);border-radius:12px;color:white;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}#my-rank strong{font-size:20px;color:#ffe6a5;margin-left:10px}.social-card{background:#fff;border:1px solid #e8def6;border-radius:20px;padding:25px;margin:20px 0;box-shadow:0 8px 18px #8064b408}.social-badge{font-size:9px;color:#b295d6;letter-spacing:1.7px;font-weight:800;margin-bottom:15px}.social-card h3{font-size:23px;margin-bottom:12px}.social-card>p{font-size:12px;line-height:1.9;color:#aa9abb}.social-card label{display:block;font-size:11px;font-weight:700;color:#9e89b7;margin:20px 0 10px}.social-card>.primary{margin-top:17px;width:100%}.copy-row input{font-size:10px;background:#faf6ff}.copy-row button{font-size:10px}.invite-stats{display:flex;gap:12px;margin:20px 0}.invite-stats>div{flex:1;text-align:center;border-radius:12px;background:#f6f0ff;padding:16px 8px}.invite-stats b{display:block;font-size:23px;color:#a68bcf}.invite-stats span{font-size:9px;color:#b6a6c8}.story-preview{border-radius:18px;max-width:290px;aspect-ratio:9/14;background:radial-gradient(circle at 0 50%,#ae7eef,transparent 60%),linear-gradient(140deg,#8d71ef,#5364cc);padding:25px;display:flex;flex-direction:column;overflow:hidden;position:relative;color:white;margin:25px auto;text-align:left}.story-preview>span{font-size:7px;letter-spacing:2px;color:#e8dcff}.story-preview>b{font-size:25px;line-height:1.3;letter-spacing:-1px;margin-top:25px}.story-preview #story-city-art{width:230px;max-width:100%;align-self:center;margin:15px -10px 0}.story-preview svg{width:100%;height:auto}.story-preview>small{margin-top:auto;font-size:10px;color:#ffde94}#story-form{border-top:1px solid var(--line);margin-top:25px;padding-top:5px}#story-evidence{width:100%;font-size:11px}#story-form button{margin-top:12px;width:100%}.story-submission{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:14px 0;font-size:11px;color:#a692bb}.story-submission b{color:#9d83c9}.admin-story{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;margin:15px 0;overflow-wrap:anywhere}.admin-story p{font-size:12px}.admin-story small{color:#aa97bd}.max-connection{font-size:11px;background:#e6faf3;color:#7aaf9e;border:1px solid #d1ebe2;border-radius:10px;padding:12px 15px;margin-bottom:20px;line-height:1.8}.max-connection.connection-error{background:#fff2e2;color:#c09c6c;border-color:#efd9bc}#toast{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);max-width:90vw;background:#514375;color:white;border:1px solid #8970af;padding:15px 22px;border-radius:14px;font-size:12px;box-shadow:0 10px 35px #3b245b30;z-index:120;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #ede0fa;border-radius:23px;padding:25px;color:var(--ink);background:#fffafc;width:90%;max-width:470px;max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #25174444}dialog::backdrop{background:#38245c88;backdrop-filter:blur(6px)}dialog #close{float:right;margin-bottom:10px}dialog h2{clear:both;padding-top:5px}dialog p,dialog li{font-size:12px;line-height:1.9;color:#a18bb6}dialog .eyebrow{display:block;clear:both}.reward{display:block;text-align:center;font-size:29px;color:#a284cd;margin:20px 0}.city-win-art{text-align:center;margin:20px 0}.city-win-art svg{max-width:100%;height:220px}.opened-gift{text-align:center;margin:15px 0}.opened-gift svg{height:140px}[hidden]{display:none!important}@media(min-width:1300px){main{padding:38px 55px}.tile small{font-size:9px}}@media(max-width:1050px){.shell{grid-template-columns:280px minmax(0,1fr)}aside{padding:30px 23px}h1{font-size:32px}.hero-city-art{width:240px}main{padding:25px}.stats{gap:8px}.stats>div{gap:7px;padding:15px 10px}.stats strong{font-size:20px}.stat-icon{font-size:20px;width:24px}.board-head h2{font-size:19px}.tile small{font-size:7px}#citylist{grid-template-columns:repeat(2,minmax(0,1fr))}nav button{padding:9px;font-size:10px}.streak-days b{font-size:9px}}@media(max-width:700px){.shell{display:block}aside{padding:22px 20px 24px;min-height:230px}.brand{font-size:10px;gap:10px}.brand small{font-size:7px}.brand-mark{width:33px;height:35px;font-size:23px;border-radius:10px}.season{margin-top:24px;font-size:7px;letter-spacing:1.5px}h1{font-size:28px;max-width:230px;margin:12px 0 6px;letter-spacing:-1px;line-height:1.25}.intro,.hero-caption,.hub,.notice{display:none}.hero-city-art{position:absolute;right:5px;bottom:-10px;width:170px;height:170px;max-width:42%;margin:0;transform:rotate(7deg)}.open-bot{font-size:9px;margin-top:10px;color:#f8e4b7;align-self:start;z-index:1}main{padding:20px 14px}header{margin-bottom:16px}.eyebrow{font-size:8px;letter-spacing:1.3px}.quiet{font-size:10px;padding:9px 12px}.stats{gap:7px}.stats>div{border-radius:13px;padding:13px 8px;gap:5px}.stats small{font-size:7px;letter-spacing:.6px}.stats strong{font-size:20px}.stat-icon{font-size:20px;width:23px}.sync-status{font-size:9px}nav{margin:17px 0 23px;gap:3px;padding:4px;border-radius:12px;flex-wrap:wrap}nav button{padding:10px 7px;font-size:9px;flex:1 0 auto}.board-head{gap:7px}.board-head h2{font-size:17px}.board-head p{font-size:9px;margin-bottom:12px}.board-head>span{font-size:10px;padding:7px}.tile{border-radius:11px;aspect-ratio:.99;box-shadow:0 3px 0 #c9bddf}.tile small{font-size:6.5px;margin-bottom:4px}.tile .qty{font-size:7px;top:4px;right:4px;padding:1px 3px}#board{gap:7px;padding:10px;border-radius:18px;box-shadow:0 5px 0 #d0c5e8,0 10px 25px #7560a515}.actions{gap:8px;margin-top:19px}.primary{font-size:12px;padding:15px 12px;border-radius:11px}.primary span{font-size:9px}.secondary{font-size:10px;padding:12px 10px;border-radius:10px}.chain{font-size:6.5px;gap:4px;margin:22px 0}.invite-banner{gap:10px;padding:16px 13px;border-radius:14px}.invite-banner-icon{width:35px;height:35px;font-size:22px}.invite-banner b{font-size:11px}.invite-banner small{font-size:8px}.invite-banner>strong{font-size:17px}.section-heading h2{font-size:21px}.section-heading p{font-size:10px}#citylist{gap:10px}.city-card{padding:12px;border-radius:16px}.city-card h3{font-size:12px}.city-avatar{max-width:150px}.login-reward{padding:18px 12px}.login-reward h3{font-size:19px}.login-reward p{font-size:10px}.streak-days{gap:3px}.streak-days small{font-size:7px}.streak-days b{font-size:9px}.streak-days span{font-size:6px}.task progress{width:145px}.task h3{font-size:11px}.task p{font-size:9px}.task button{font-size:9px}.task-group-title{font-size:16px}.completion-reward{padding:15px 12px}.completion-reward b{font-size:11px}.completion-reward p{font-size:9px}.completion-reward button{font-size:9px}#boxlist{gap:10px}.box-card{padding:15px}.box-art{height:115px}.box-art svg{height:75px}.box-art.medium svg{height:90px}.box-art.large svg{height:102px}.box-art.grand svg{height:115px}.box-card h3{font-size:13px}.ranking-columns,.ranking-row{grid-template-columns:minmax(0,1fr) 48px 70px;gap:6px}.ranking-row{font-size:11px;padding:15px 8px}.ranking-columns{font-size:7px;padding:12px 8px}.ranking-row>div{gap:7px}.ranking-entry .primary{font-size:10px;padding:12px}.ranking-entry input{font-size:11px}.social-card{padding:21px 17px}.social-card h3{font-size:21px}.social-card>p{font-size:11px}.copy-row button{font-size:9px}.copy-row input{font-size:9px;padding:11px 9px}.invite-stats{gap:7px}.invite-stats span{font-size:8px}.invite-stats b{font-size:21px}.story-preview{max-width:270px}.source{font-size:8px}footer{font-size:7px;padding-bottom:env(safe-area-inset-bottom)}}@media(max-width:370px){aside{min-height:210px}h1{font-size:25px}.hero-city-art{width:145px;height:145px}.stats>div{padding:12px 6px}.stats strong{font-size:18px}.stat-icon{font-size:17px;width:19px}nav button{font-size:8px;padding:9px 6px}#board{gap:5px;padding:8px}.tile small{font-size:6px}.board-head h2{font-size:15px}.board-head p{font-size:8px}.primary{font-size:11px}.secondary{font-size:9px}.chain{font-size:6px}.streak-days b{font-size:8px}.streak-days span{font-size:5px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:430px){aside{min-height:180px;padding:17px 19px 18px}.brand{font-size:8px}.brand-mark{width:29px;height:31px;font-size:21px}.brand small{font-size:6px}.season{display:none}h1{font-size:23px;max-width:210px;line-height:1.25;margin:15px 0 5px;position:relative;z-index:1}.hero-city-art{width:135px;height:135px;max-width:none;right:5px;bottom:8px}.open-bot{font-size:8px;margin-top:6px}nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}nav button{font-size:10px;padding:10px 5px}.tile small{font-size:7px}.tile .qty{font-size:7px}}

:root{--purple:#6826ee;--muted:#716084;--ink:#2c184b}nav button{color:#72558f}nav button.active{background:#6826ee;color:white}.eyebrow,.sync-status,.ranking-help,.task p,.social-card>p,.login-reward p,.box-card p,.source{color:#79638e}.stats small{color:#74507e}.secondary{background:#e5d4ff;color:#6431a5;border-color:#c8a7f7}.tile small{color:#705383}.city-card-bottom b{color:#6c30b5}.city-population{color:#8a739e}.city-card-bottom>span{color:#82619c}.invite-banner b{color:#704216}.invite-banner small{color:#8c5d26}.box-owned{color:#714d83}.wheel-wrap{position:relative;width:min(100%,390px);aspect-ratio:1;margin:30px auto 25px;filter:drop-shadow(0 12px 0 #38208422)}.wheel{width:100%;height:100%;border-radius:50%;border:10px solid #f9c540;outline:5px solid #6b2ed4;position:relative;overflow:hidden;box-shadow:inset 0 0 20px #25115d66}.wheel span{position:absolute;left:50%;top:50%;width:44%;transform-origin:0 0;transform:rotate(calc(var(--angle) - 90deg)) translate(24px,-50%);color:white;font-size:11px;font-weight:800;text-align:center;text-shadow:0 1px 3px #30133e;white-space:normal}.wheel-pointer{position:absolute;top:-22px;left:50%;transform:translateX(-50%);font-size:48px;line-height:1;color:#ffcc36;z-index:2;filter:drop-shadow(0 3px 1px #614000)}.wheel-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;border:4px solid #ffdf71;border-radius:50%;width:65px;height:65px;background:linear-gradient(140deg,#ffdd66,#ff9b15);color:#7139ac;font-size:34px;font-weight:800;box-shadow:0 3px 10px #34205b66}#spin-wheel{width:100%;max-width:390px;margin:0 auto 20px}header{gap:8px}header>div{margin-right:auto}header .quiet{font-size:10px;padding:10px}#wheel-chances{margin-top:15px}@media(max-width:430px){nav{grid-template-columns:repeat(4,minmax(0,1fr))}nav button{font-size:9px}header .quiet{font-size:9px;padding:8px}.wheel span{font-size:9px}.wheel-wrap{width:calc(100% - 18px)}}

/* Winter season: evergreen, cranberry, warm garlands and real city photographs. */
:root{--paper:#f1f7fb;--ink:#193e4d;--muted:#607c89;--purple:#047e73;--line:#d9e6eb;--yellow:#f4c568}body{background:radial-gradient(ellipse at 95% 0,#dbeaf7,transparent 65%),var(--paper)}aside{background:radial-gradient(circle at 0 20%,#218b96,transparent 55%),linear-gradient(165deg,#0c5361,#083745);border-right:1px solid #d8c98f}aside:before{content:'';position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle,#fff9 1px,transparent 2px),radial-gradient(circle,#fff5 1px,transparent 2px);background-size:67px 83px,101px 127px;opacity:.35}.brand,.season,h1,.intro,.hero-caption,.hub,.open-bot,.notice{position:relative}.brand-mark{color:#176a64}.brand small,.intro,.hero-caption,.hero-caption b,.notice{color:#d3e9ed}h1 em{color:#ffda7b}.season{color:#ffdb91;letter-spacing:1.5px;margin-top:35px}.hero-city-art{transform:rotate(-3deg);margin:20px 0 10px;max-width:100%;width:260px}.city-photo{display:block;object-fit:cover;width:100%;height:auto;aspect-ratio:1; border-radius:18px;border:3px solid #ffde90;background:#d9e7ee;box-shadow:0 8px 16px #092c4228}.hero-city-art .city-photo{border:5px solid #fff9d3;border-radius:23px;box-shadow:0 14px 25px #001a3750}.hero-caption{margin-bottom:8px;font-size:11px}.holiday-tree{position:relative;width:130px;margin:0 auto 20px}.holiday-tree svg{width:100%;height:auto;filter:drop-shadow(0 8px 8px #001f2940)}main{position:relative}.holiday-garland{display:flex;position:relative;justify-content:space-between;gap:6px;border-top:3px solid #176d60;margin:-8px 0 24px;padding:0 8px;height:24px;pointer-events:none}.holiday-garland i{display:block;width:10px;height:15px;background:#f6c254;border-radius:40% 40% 50% 50%;margin-top:4px;box-shadow:0 0 12px #ffcf7999;position:relative;animation:holiday-glow 4s ease-in-out infinite alternate}.holiday-garland i:before{content:'';position:absolute;top:-5px;left:3px;width:4px;height:6px;background:#166858}.holiday-garland i:nth-child(3n+1){background:#e94f6c;box-shadow:0 0 12px #e94f6c88;animation-delay:-1s}.holiday-garland i:nth-child(3n+2){background:#42cbb9;box-shadow:0 0 12px #42cbb988;animation-delay:-2s}.festive-snow{position:fixed;inset:0;pointer-events:none;z-index:0;background-image:radial-gradient(circle,#fff9 1.5px,transparent 2px),radial-gradient(circle,#b1cedd66 1px,transparent 1.5px);background-size:109px 137px,71px 89px;opacity:.45}.shell{position:relative}header .eyebrow{color:#407582}nav{background:#e0edf1}nav button{color:#5a7883}nav button.active{background:#087f76;color:white}.primary{background:linear-gradient(120deg,#e33e64,#bb2249);border-color:#f07991;box-shadow:0 5px 0 #8d203e}.primary:active{box-shadow:0 2px 0 #8d203e}.primary span{color:#ffe4aa}.secondary{background:#e1f2ef;border-color:#b6d9d1;color:#227a70}.stat-energy{background:#ffe1a0}.stat-cities{background:#cfe5f8}.stat-score{background:#bdeadd}.stats small{color:#51757c}.stats strong{color:#214c5c}.stat-icon{color:#3187ae}#board{background:linear-gradient(140deg,#74b7bb,#abd7da);border:4px solid white;box-shadow:0 6px 0 #4d8e95,0 12px 30px #215f6e20}.tile.empty{background:#91bec9;border-color:#87b6c1;box-shadow:inset 0 2px 5px #1e59641a}.tile{box-shadow:0 4px 0 #7ca1ae}.tile.selected,.tile.drop-target{outline-color:#ffcd64}.tile small{color:#466a7a}.tile .qty{background:#e2edf5;color:#4e7587}.invite-banner{background:linear-gradient(110deg,#fff2d2,#ffe1a4);border-color:#ead5a9}.invite-banner b{color:#775128}.invite-banner small{color:#8b6c40}.invite-banner-icon{background:#d84862}.login-reward{background:linear-gradient(135deg,#e0f1ec,#e4effb);border-color:#c5dcd9}.login-reward h3{color:#236962}.streak-days>div{background:#f7fffd;border-color:#c3ded7}.streak-days b{color:#208274}.streak-days .current{background:#ffebc0;border-color:#efb84f}.task button{background:#d8eee8;color:#337c6e}.task progress{accent-color:#25a58c}.task progress::-webkit-progress-value{background:#25a58c}.completion-reward{background:#fff0c9;color:#8b692b}.city-card{border-color:#d5e4ea;background:#fff;box-shadow:0 6px 16px #153c5c0a}.city-avatar .city-photo{border:3px solid #fff0bc;border-radius:14px;aspect-ratio:1.1}.city-card h3{font-size:13px;color:#285f72;margin:15px 0 12px}.city-card-bottom b{color:#167d77}.city-card-bottom>span,.city-population{color:#6a8794}.city-win-art .city-photo{max-width:260px;margin:auto}.city-card.owned{border-color:#70bca7}.eyebrow,.sync-status,.ranking-help,.task p,.social-card>p,.login-reward p,.box-card p,.source,.balance-info{color:#617e8a}.social-badge{color:#2f8e83}.social-card label{color:#476f7b}.invite-stats>div{background:#e8f4f1}.invite-stats b{color:#16826f}.invite-stats span{color:#577e81}.credit-link{background:none;padding:0;color:#397e91;font-size:inherit;text-decoration:underline}.photo-credits article{padding:13px 0;border-bottom:1px solid #dae7eb;font-size:11px;line-height:1.7;overflow-wrap:anywhere}.photo-credits b,.photo-credits span{display:block}.photo-credits span{color:#6c8691}.photo-credits a{color:#197e89}dialog{background:#f8fcff;color:#254e5f}.wheel{outline-color:#106f6e}footer{color:#7893a0}.board-head>span{background:#dbedf3;color:#598395}.city-card .city-check{border-color:#fff}.source{line-height:2}.quiet{color:#5f7f8d}
@keyframes holiday-glow{from{filter:brightness(.85)}to{filter:brightness(1.2)}}
@media(max-width:700px){.holiday-tree{display:none}.holiday-garland{margin:0 0 18px;height:21px}.holiday-garland i{width:8px;height:12px}.hero-city-art .city-photo{border:3px solid #fff0c8;border-radius:18px}.hero-city-art{width:150px;right:16px;bottom:16px;max-width:none}.hero-caption{display:none}}
@media(max-width:430px){.hero-city-art{width:125px;height:125px;right:12px;bottom:22px}h1{max-width:195px}.holiday-garland{margin-top:0}.city-card h3{font-size:12px}}
@media(prefers-reduced-motion:reduce){.holiday-garland i{animation:none}}

.city-photo-frame{margin:0;min-width:0}.city-photo-frame figcaption{font-size:8px;line-height:1.5;text-align:center;margin-top:7px;color:#617e8a}.city-photo-frame figcaption a{color:inherit}.hero-city-art .city-photo-frame figcaption{color:#e1eef0}.city-win-art .city-photo-frame figcaption{font-size:10px}

/* Bright winter palette and compact city postcards. */
:root {
  --paper: #f6f4ff;
  --ink: #24194f;
  --muted: #554a76;
  --line: #ddd6f5;
  --purple: #592cc8;
  --yellow: #ffc542;
}

body {
  background:
    radial-gradient(ellipse at 85% 0, #a9efff 0%, transparent 55%),
    radial-gradient(ellipse at 100% 85%, #f8cbff 0%, transparent 60%),
    var(--paper);
}
.shell { box-shadow: 0 0 90px #532ac41e; }
aside {
  background:
    radial-gradient(ellipse at 5% 14%, #6845ed, transparent 55%),
    radial-gradient(ellipse at 98% 82%, #077e91, transparent 63%),
    linear-gradient(150deg, #242065, #15184d);
  border-right-color: #a6dfff;
}
.brand-mark {
  background: linear-gradient(135deg, #fff29a, #ffbb32);
  color: #3e287b;
  box-shadow: 0 6px 0 #ca7927;
}
.season, h1 em, .hub { color: #ffdc63; }
.brand small, .intro, .notice, .hero-caption b { color: #e5e4ff; }
.hero-caption { color: #ffe48d; }
.hero-city-art { width: 200px; margin: 22px 0 14px; }
.hero-city-art .city-photo {
  border: 5px solid #ffe39a;
  box-shadow: 0 12px 24px #17123765;
}
main {
  background-image: radial-gradient(#6753b01c .6px, transparent .8px);
  background-size: 6px 6px;
}
.eyebrow, header .eyebrow { color: #5e38a0; }
.section-heading p, .ranking-help, .source, .sync-status,
.balance-info, .task p, .login-reward p, .box-card p, .social-card > p {
  color: var(--muted);
}
.quiet { color: #5a3c92; border-color: #d7c8f3; }

.stats > div { border-color: #fff; }
.stat-energy { background: linear-gradient(140deg, #fff294, #ffc94f); }
.stat-cities { background: linear-gradient(140deg, #ead3ff, #c5adff); }
.stat-score { background: linear-gradient(140deg, #a0ffe8, #5de5cc); }
.stats small, .stats strong { color: #302059; }
.stat-energy .stat-icon { color: #a14b00; }
.stat-cities .stat-icon { color: #5b2dc1; }
.stat-score .stat-icon { color: #12685d; }

nav { background: #e7deff; }
nav button { color: #51347f; }
nav button.active {
  background: linear-gradient(125deg, #6b3bef, #4b24b9);
  box-shadow: 0 4px 10px #4c24b33b;
}
#box-count { background: #ffd38c; color: #633412; }
.board-head > span { background: #d9edff; color: #25468c; }

#board {
  background: linear-gradient(145deg, #5549d6, #2972de 60%, #159eab);
  border-color: #fff;
  box-shadow: 0 6px 0 #313b93, 0 14px 28px #392db338;
}
.tile {
  border-color: #fff;
  box-shadow: 0 4px 0 #243ea46b;
}
.tile.empty {
  background: linear-gradient(145deg, #9bb8ff, #79c9f0);
  border-color: #d9e4ff80;
  box-shadow: inset 0 2px 6px #263b8c25;
}
.tile.level-0 { background: linear-gradient(155deg, #f9fbff, #ccdeff); }
.tile.level-1 { background: linear-gradient(155deg, #fff5b8, #ffbf61); }
.tile.level-2 { background: linear-gradient(155deg, #d9f8ff, #76caff); }
.tile.level-3 { background: linear-gradient(155deg, #ffe1fb, #f9a5e0); }
.tile.level-4 { background: linear-gradient(155deg, #ecddff, #c4a7ff); }
.tile.level-5 { background: linear-gradient(155deg, #c5ffec, #6ee6cf); }
.tile.selected, .tile.drop-target { outline-color: #ffde4a; }
.tile small { color: #352760; }
.tile .qty { background: #ecf0ff; color: #433582; }

.primary {
  background: linear-gradient(120deg, #ce246f, #a01966);
  border-color: #f56aa7;
  box-shadow: 0 5px 0 #74124d;
}
.primary:active { box-shadow: 0 2px 0 #74124d; }
.primary span { color: #fff0a6; }
.secondary {
  background: #e8dcff;
  border-color: #bba4ed;
  color: #4f278e;
}
.actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
}
.actions button { min-width: 0; }
#fill-projects {
  justify-content: space-between;
  background: linear-gradient(125deg, #6633ed, #4c1eb8);
  border-color: #a781ff;
  box-shadow: 0 5px 0 #321180;
}
#fill-projects:active { box-shadow: 0 2px 0 #321180; }
#fill-projects span {
  padding: 5px 8px;
  background: #30117670;
  border-radius: 8px;
}
#spawn {
  background: linear-gradient(130deg, #ffe985, #ffbe43);
  border-color: #fff1a0;
  color: #563206;
  box-shadow: 0 5px 0 #bd7418;
}
#spawn:active { box-shadow: 0 2px 0 #bd7418; }
#spawn span { color: #563206; }

.invite-banner {
  background: linear-gradient(110deg, #fff08c, #ffc569);
  border-color: #ffdf83;
}
.invite-banner b { color: #603307; }
.invite-banner small { color: #714313; }
.invite-banner-icon { background: #bc2565; }
.social-card { background: #fff9eb; border-color: #efcb79; }
.social-badge, .social-card label { color: #643990; }
.invite-stats > div { background: #d8f9ee; }
.invite-stats b, .invite-stats span { color: #16625b; }

.login-reward {
  background: linear-gradient(135deg, #e7ccff, #b9efff);
  border-color: #c0acf1;
}
.login-reward h3, .streak-days b { color: #5023a1; }
.streak-days > div { background: #fcf9ff; border-color: #c9b5f1; }
.streak-days .current { background: #fff08f; border-color: #f1b338; }
.task button { background: #e3d4ff; color: #50228f; }
.task progress { accent-color: #713be2; }
.task progress::-webkit-progress-value { background: #713be2; }
.completion-reward { background: #ffe799; color: #684209; }

.city-avatar { width: 110px; max-width: 110px; }
.city-avatar .city-photo {
  width: 110px;
  height: 110px;
  aspect-ratio: 1;
  border: 3px solid #ffd574;
  border-radius: 17px;
  box-shadow: 0 5px 12px #8759a32c;
}
.city-photo { filter: saturate(1.12); }
.city-card {
  padding: 15px 13px 12px;
  background: linear-gradient(145deg, #fffdf6, #f4eaff);
  border-color: #d7bff7;
  border-radius: 19px;
  box-shadow: 0 6px 15px #7345ab16;
}
.city-card h3 { font-size: 12px; color: #442975; margin: 12px 0 10px; }
.city-card-bottom { border-color: #e4d0fb; }
.city-card-bottom b { color: #7431a6; }
.city-card-bottom > span, .city-population { color: #63547c; }
.city-check {
  width: 21px;
  height: 21px;
  right: -3px;
  bottom: -2px;
  font-size: 11px;
  background: #138d6e;
}
.city-card.owned { border-color: #51c8a7; background: #e1fff1; }
.city-win-art .city-photo { width: 185px; height: 185px; max-width: 185px; aspect-ratio: 1; }
.city-photo-frame figcaption { font-size: 7px; color: #655281; }
.photo-credits article { border-color: #e1d1f4; }
.credit-link, .photo-credits a { color: #6035b0; }

.box-card { background: linear-gradient(145deg, #fff288, #ffbc56); }
.box-card:nth-child(2) { background: linear-gradient(145deg, #a2ffe9, #64dfdb); }
.box-card:nth-child(3) { background: linear-gradient(145deg, #ffd4ec, #f6a1e6); }
.box-card:nth-child(4) { background: linear-gradient(145deg, #e4c3ff, #b4a0ff); }
.box-owned { color: #4e336f; }
.wheel { outline-color: #683ac5; }
.ranking-row.is-me { background: #e3d5ff; }
.ranking-row small, .ranking-place { color: #6b41ac; }
dialog { background: #fffaf2; border-color: #e2bfff; color: var(--ink); }
footer { color: #6b5c87; }

.holiday-garland { border-color: #4b347e; }
.holiday-garland i:nth-child(3n+1) { background: #fa498e; }
.holiday-garland i:nth-child(3n+2) { background: #00d7ba; }
.festive-snow { z-index: 2; overflow: hidden; opacity: 1; background: none; }
.festive-snow span {
  position: absolute;
  top: -40px;
  left: calc(var(--x) * 1%);
  font-size: calc(var(--size) * 1px);
  font-family: Georgia, serif;
  line-height: 1;
  color: #fffdf1;
  opacity: .78;
  text-shadow: 0 1px 5px #59449660;
  animation: snowfall var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
  user-select: none;
}
.festive-snow span:nth-child(3n) { color: #a2efff; opacity: .65; }
@keyframes snowfall {
  from { transform: translate3d(0,-40px,0) rotate(0); }
  to { transform: translate3d(var(--drift),calc(100vh + 80px),0) rotate(200deg); }
}
@media (max-width: 850px) {
  .actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #fill-projects { grid-column: 1 / -1; }
}

@media(min-width:1100px){#citylist{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
@media(max-width:700px){.hero-city-art{width:125px;height:125px;right:18px;bottom:20px}.hero-city-art .city-photo{border-width:3px}.city-avatar{width:88px;max-width:88px}.city-avatar .city-photo{width:88px;height:88px;border-radius:14px}.city-card{padding:13px 10px 11px}.city-card h3{font-size:12px}.festive-snow span:nth-child(even){display:none}}
@media(max-width:430px){.hero-city-art{width:105px;height:105px;right:16px;bottom:25px}.city-avatar{width:84px;max-width:84px}.city-avatar .city-photo{width:84px;height:84px}.city-card h3{font-size:11px}}
@media(prefers-reduced-motion:reduce){.festive-snow span{animation:none;top:calc(var(--y)*1vh);transform:none;will-change:auto}}

/* Raised surfaces share a light from the upper left and a darker lower edge. */
:root {
  --surface-rim: inset 0 2px 0 #ffffffb3, inset 1px 0 0 #ffffff70, inset -1px -3px 0 #4e247519;
  --surface-depth: var(--surface-rim), 0 5px 0 var(--surface-edge, #c3afe7), 0 12px 20px #33246b27;
}

aside {
  box-shadow: inset -4px 0 0 #21195276, inset -6px 0 0 #c0eaff28, 9px 0 28px #24166130;
}
.brand-mark {
  box-shadow: var(--surface-rim), 0 6px 0 #a45321, 0 10px 16px #120a45a8;
}
.holiday-tree svg { filter: drop-shadow(4px 5px 0 #193767b0) drop-shadow(5px 12px 6px #15194a65); }
.holiday-garland i {
  background-image: radial-gradient(ellipse at 30% 20%, #fff9dfde, transparent 58%);
}
.hero-city-art .city-photo {
  border-color: #fff4c5 #e5b957 #b77d38 #ffeab1;
  box-shadow: 0 7px 0 #a86c3d, 7px 16px 22px #130c3b85;
}

.stats > div {
  border-width: 2px;
  box-shadow: var(--surface-depth);
}
.stat-energy { --surface-edge: #d89826; }
.stat-cities { --surface-edge: #a389de; }
.stat-score { --surface-edge: #37ad9e; }
.stat-icon {
  flex-shrink: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #fff9;
  border-radius: 10px;
  background: linear-gradient(145deg, #fffe, #ffffff32);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #38245a20, 0 3px 7px #28205226;
  text-shadow: 0 1px 0 #fff9;
}
nav {
  background: linear-gradient(180deg, #d9ccfa, #eee9ff);
  box-shadow: inset 0 3px 7px #39277535, 0 1px 0 #fff;
}
nav button { text-shadow: 0 1px 0 #fff8; }
nav button.active {
  text-shadow: 0 1px 2px #231063aa;
  box-shadow: var(--surface-rim), 0 3px 0 #3a2090, 0 4px 8px #4028a34f;
}
.board-head > span, .tile .qty, #box-count {
  box-shadow: inset 0 1px 0 #fffc, 0 2px 0 #43258e36;
}

#board {
  border: 3px solid #d9e7ff;
  border-bottom-color: #8c9ae0;
  background: linear-gradient(145deg, #6d5dec, #375bc7 56%, #149daf);
  box-shadow: inset 0 3px 0 #fff6, inset 0 -4px 0 #27265a55, 0 7px 0 #39337f, 0 14px 0 #29265f, 0 21px 30px #35286560;
}
.tile {
  --tile-edge: #8d9fd7;
  border-width: 2px;
  border-color: #fffe #f0edffbd #dbddff #fff;
  box-shadow: var(--surface-rim), 0 5px 0 var(--tile-edge), 0 7px 8px #14226d78;
}
.tile.level-1 { --tile-edge: #cb8839; }
.tile.level-2 { --tile-edge: #4384cc; }
.tile.level-3 { --tile-edge: #c15eaf; }
.tile.level-4 { --tile-edge: #8c6bd3; }
.tile.level-5 { --tile-edge: #2aa58f; }
.tile.empty {
  border: 1px solid #b6d6ff85;
  background: linear-gradient(145deg, #4775cc, #649cdb 52%, #92caf5);
  box-shadow: inset 3px 4px 8px #1b327d9c, inset -2px -2px 0 #d3efff77, 0 2px 0 #b3d9ff57;
}
.tile.selected, .tile.drop-target {
  background: linear-gradient(145deg, #fff9c6, #ffdf81);
}
.tile .item-art {
  filter: drop-shadow(2px 4px 2px #25276157);
}
.drag-ghost { box-shadow: var(--surface-rim), 0 7px 0 #5e53a5, 0 17px 25px #3021618a; }

.actions { margin-top: 32px; }
.primary, .secondary, .quiet, .task button, .invite-banner {
  box-shadow: var(--surface-depth);
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.primary { --surface-edge: #74124d; text-shadow: 0 1px 2px #370a2e80; }
#fill-projects { --surface-edge: #321180; }
#spawn { --surface-edge: #bd7418; text-shadow: 0 1px 0 #fff7; }
.primary, #fill-projects, #spawn,
.primary:active, #fill-projects:active, #spawn:active {
  box-shadow: var(--surface-depth);
}
.secondary, .quiet, .task button { text-shadow: 0 1px 0 #fff9; }
.quiet { --surface-edge: #d6c7ee; }
.invite-banner { --surface-edge: #dc8e31; }
.primary:active:not(:disabled), .secondary:active:not(:disabled),
.quiet:active:not(:disabled), .task button:active:not(:disabled), .invite-banner:active {
  transform: translateY(3px);
  box-shadow: var(--surface-rim), 0 2px 0 var(--surface-edge, #c3afe7), 0 4px 7px #33246b3b;
}
.primary:disabled, .secondary:disabled, .task button:disabled {
  opacity: .72;
}
.invite-banner-icon {
  box-shadow: var(--surface-rim), 0 3px 0 #80154b, 0 6px 9px #68224b4d;
}

.social-card, .login-reward, .completion-reward, .city-card, .box-card,
#my-rank, .ranking-row.is-me, dialog {
  box-shadow: var(--surface-depth);
}
.social-card, .completion-reward { --surface-edge: #e2b059; }
.login-reward { --surface-edge: #a58fe1; }
.invite-stats > div, .streak-days > div {
  box-shadow: inset 0 2px 0 #fffc, 0 3px 0 #41347530;
}
.task progress {
  height: 7px;
  background: #d9ccf7;
  box-shadow: inset 0 2px 3px #3b28744f, 0 1px 0 #fff;
}
.task progress::-webkit-progress-bar { background: transparent; }
.task progress::-webkit-progress-value {
  background: linear-gradient(180deg, #af7dff, #6033ce);
  border-radius: inherit;
}

.city-card { --surface-edge: #b8a0df; }
.city-card.owned { --surface-edge: #71bda7; }
.city-avatar .city-photo, .city-win-art .city-photo {
  border-color: #fff4cf #ffd88a #d99644 #ffe7a6;
  box-shadow: 0 4px 0 #bc864d, 3px 8px 10px #54325553;
}
.city-check { box-shadow: 0 2px 0 #136756, 0 3px 6px #16395546; }
.box-card { --surface-edge: #dc9b3e; }
.box-card:nth-child(2) { --surface-edge: #35b5ab; }
.box-card:nth-child(3) { --surface-edge: #cc78b6; }
.box-card:nth-child(4) { --surface-edge: #9073ce; }
.gift-model { filter: drop-shadow(3px 6px 4px #39235d56); }

.wheel-wrap {
  background: linear-gradient(145deg, #b391ff, #5637ac 52%, #392467);
  border-radius: 50%;
  box-shadow: 0 10px 0 #392169, 0 16px 0 #291c55, 0 25px 24px #2e1e665b;
  filter: none;
  margin-bottom: 40px;
}
.wheel {
  border-color: #fff3ab #eeb84a #af7122 #ffe18b;
  box-shadow: inset 3px 4px 13px #2211539e;
  outline: 2px solid #b19afb;
}
.wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 26% 16%, #ffffff73, transparent 54%);
  box-shadow: inset 0 -9px 20px #25144850;
}
.wheel span { z-index: 1; }
.wheel-center {
  z-index: 2;
  background: radial-gradient(circle at 30% 22%, #fffbbe, #ffd55e 50%, #cf791b);
  border-color: #fff2a3 #e8aa33 #aa641d #ffde6c;
  box-shadow: inset 0 2px 0 #fff9, 0 4px 0 #8c4e1b, 0 7px 12px #2713458f;
}
.wheel-pointer { filter: drop-shadow(0 4px 0 #994d14) drop-shadow(0 6px 4px #39235e6b); }
.loot-results > div, #loot-table > div, .ranking-row {
  border-bottom: 1px solid #d9c8f1;
  box-shadow: 0 1px 0 #fff9;
}
input, select {
  border-color: #d0bde9;
  background: #fffcff;
  box-shadow: inset 0 2px 4px #65468c20, 0 1px 0 #fff;
}
dialog { --surface-edge: #ac8bd7; }

@media (max-width: 700px) {
  aside { box-shadow: inset 0 -3px 0 #a4d9f35c, 0 6px 0 #413076; }
  #board { box-shadow: inset 0 2px 0 #fff6, 0 5px 0 #39337f, 0 9px 0 #29265f, 0 15px 20px #35286542; }
  .tile { border-width: 1px; box-shadow: var(--surface-rim), 0 3px 0 var(--tile-edge), 0 5px 6px #14226d62; }
  .actions { margin-top: 24px; }
  .stat-icon { width: 22px; border-radius: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary, .secondary, .quiet, .task button, .invite-banner { transition: none; }
}
.channel-link{display:flex;align-items:center;gap:12px;margin:6px 0 20px;padding:14px 16px;border:1px solid #84e7ef;border-bottom:5px solid #0778a0;border-radius:18px;background:linear-gradient(145deg,#12bce5,#1682d5);color:#fff;text-decoration:none;box-shadow:inset 0 2px 1px #c2faffaa,0 7px 14px #006caa24}
.channel-mark{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#fff,#b7f2ff);color:#0579b7;font-size:24px;font-weight:900;box-shadow:0 3px 0 #056eaa}
.channel-link b{display:block;font-size:16px}.channel-link small{display:block;font-size:13px;color:#e3faff;margin-top:3px}.channel-open{margin-left:auto;font-size:14px;font-weight:800;text-align:right}.channel-link:focus-visible{outline:3px solid #fcb92f;outline-offset:4px}
@media(max-width:430px){.channel-link{gap:9px;padding:11px 12px}.channel-link b{font-size:14px}.channel-open{max-width:65px;font-size:13px}}
