:root{color-scheme:dark;--bg:#160d28;--panel:#302043;--line:#66427d;--lime:#e2ff76;--muted:#c4afd7;--text:#fff4e6;--purple:#b07dff;--pink:#fc85b9}*{box-sizing:border-box}body{margin:0;background:#090711;color:var(--text);font:15px/1.5 ui-rounded,system-ui,sans-serif}main{max-width:1000px;position:relative;min-height:100vh;margin:auto;background:var(--bg);overflow:clip;padding-bottom:94px}header{padding:20px 26px 14px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:11px;align-items:center}.brand-icon{width:43px;height:43px;border:2px solid #ad75ff;border-radius:14px;overflow:hidden;transform:rotate(-6deg);box-shadow:0 4px #070410}.brand-icon img{width:100%;height:100%;object-fit:cover}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#bbaac7;font-weight:850}h1{font-size:23px;letter-spacing:-1px;line-height:1.2;margin:3px 0;font-weight:950}h1 em{font-style:normal;color:#d7b5ff}.icon{width:37px;height:37px;border:2px solid #80579d;border-radius:13px;background:#352047;color:#e8d3ff;font-size:20px}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;transition:transform .15s,filter .15s}button:hover{filter:brightness(1.12);transform:translateY(-2px)}button:active{transform:translateY(3px)}button:disabled{opacity:.5;cursor:wait;transform:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #ffb863;outline-offset:4px}[hidden]{display:none!important}a{color:var(--lime)}h2{font-size:38px;line-height:1.05;letter-spacing:-1.4px;margin:12px 0 18px;font-weight:950}h2 em{font-style:normal;color:var(--lime)}h3{font-size:19px}.green{color:var(--lime)}.muted,.note{color:var(--muted)}.note{font-size:12px;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.content{padding:0 26px 24px}.primary,.secondary{padding:14px 20px;font-weight:900;border-radius:16px;border:2px solid #8e66b0}.primary{background:linear-gradient(#f1ff9a,#c7eb50);border-color:#f7ffc3;color:#30233b;width:100%;box-shadow:0 6px #768e2c,0 10px 24px #07041155}.secondary{background:linear-gradient(#59406f,#352348);color:#fff1e9;box-shadow:0 4px #0a0513}.full{width:100%;margin:8px 0}.text-button{border:0;background:none;padding:11px 5px;color:#d7bee9;font-size:12px}.danger{color:#ffa29b}.input-row{display:flex;gap:9px}input{min-width:0;flex:1;border:2px solid #78518c;background:#110a1d;border-radius:14px;padding:14px;color:white}input::placeholder{color:#bba5cd}.separator{display:flex;align-items:center;gap:12px;margin:25px 0 15px;color:#bd9fd2;font-size:9px;font-weight:850;letter-spacing:1px}.separator:before,.separator:after{content:'';height:1px;flex:1;background:#69477d}.account-panel{margin:0 26px 12px;padding:10px 12px;border:1px solid #6f458d;border-radius:18px;background:linear-gradient(120deg,#442854,#251933);box-shadow:0 4px #090511;display:grid;grid-template-columns:1fr auto;gap:7px 18px}.account-top{display:flex;align-items:center;gap:10px}.profile-avatar{width:44px;height:44px;background:#774ca1;border:2px solid #c69be8;border-radius:14px;display:grid;place-items:center;overflow:hidden;font-weight:900;font-size:20px;flex-shrink:0}.profile-avatar img{width:100%;height:100%;object-fit:cover}.account-name{flex:1;min-width:0}.account-name strong{display:block;font-size:13px;overflow-wrap:anywhere}.account-name small{font-size:9px;display:block;color:#c5add8}.account-name>span{font-size:9px;color:#eed3a7}.wallet{position:relative;background:#21132e;border:1px solid #9d7d39;border-radius:12px;padding:5px 40px 5px 13px;white-space:nowrap}.wallet>span{display:block;color:#e2bf7c;font-size:8px;font-weight:900;letter-spacing:1px}.wallet strong{color:#ffe394;font-size:24px;line-height:1}.wallet i{position:absolute;right:8px;top:8px;font-size:23px;font-style:normal}.account-actions{display:flex;align-items:center;gap:8px;grid-column:2;grid-row:1}.account-actions button{font-size:10px;padding:10px}.profile-details{grid-column:1/-1;font-size:10px;color:#d2badd}.profile-details summary{cursor:pointer;list-style:none}.profile-details summary span{float:right}.profile-stats{padding-top:10px}.headquarters{margin:0 -26px}.scene{height:540px;position:relative;isolation:isolate;perspective:1000px;overflow:hidden;background:#221233}.scene-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 60%;z-index:-3}.scene-vignette{position:absolute;inset:0;background:linear-gradient(90deg,#150d28c9,transparent 70%),linear-gradient(0deg,#160d28,transparent 20%,transparent 85%,#160d28);z-index:-2}.scene-mist{position:absolute;bottom:-60px;left:-20%;height:150px;width:100%;background:radial-gradient(ellipse,#a07cff30,transparent 65%);filter:blur(25px);animation:mist 13s ease-in-out infinite;z-index:2;pointer-events:none}.scene-intro{position:absolute;top:47px;left:7%;z-index:3;pointer-events:none}.chapter-tag{font-size:9px;letter-spacing:2px;color:#eccfff;font-weight:900}.scene-intro h2{font-size:49px;line-height:1.03;letter-spacing:-2px;margin:15px 0;text-shadow:0 4px 15px #13091f}.scene-intro p{font-size:13px;color:#e5cbe8}.hero-character{position:absolute;width:300px;height:355px;left:56%;bottom:65px;transform-origin:center bottom;z-index:2;filter:drop-shadow(0 12px 12px #09051366)}.hero-character>img{width:100%;height:100%;object-fit:contain;transform-origin:center bottom;animation:hero-idle 4s ease-in-out infinite}.hero-name{position:absolute;bottom:-16px;left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;padding:5px 15px;border:1px solid #e0bbff;border-radius:30px;background:#341e50ed;font-weight:900}.hero-platform{position:absolute;left:53%;bottom:40px;width:320px;height:50px;background:radial-gradient(ellipse,#b88cff3d,transparent 70%);border-bottom:1px solid #a47ce466;border-radius:50%;transform:rotateX(55deg)}.hero-frame-lime{filter:drop-shadow(0 0 17px #d4ff5a88)}.hero-frame-pink{filter:drop-shadow(0 0 17px #ff79bf99)}.hero-frame-gold{filter:drop-shadow(0 0 17px #ffd96c99)}.scene-bubble{position:absolute;left:77%;top:45px;padding:9px 13px;border-radius:15px 15px 15px 0;border:2px solid #d8c0eb;background:#f6e9d5;color:#412746;transform:rotate(5deg);font-size:11px;font-weight:950;line-height:1.25;box-shadow:0 5px #190c2a77;z-index:3}.scene-caption{position:absolute;bottom:17px;left:7%;font-size:10px;color:#e8cff7;font-weight:800;z-index:3}.scene-caption small{display:block;letter-spacing:2px;font-size:8px;color:#b294cb}.live-dot{width:6px;height:6px;display:inline-block;background:#c9f76a;border-radius:50%;box-shadow:0 0 12px #cfff9a}.scene-spark{position:absolute;color:#f1d2ff;z-index:2;animation:sparkle 3s ease-in-out infinite;font-size:25px;pointer-events:none}.spark-one{left:54%;top:33%}.spark-two{right:7%;bottom:25%}.hq-actions{display:flex;align-items:center;gap:16px;margin:0 auto;max-width:650px;padding:0 26px}.play-button{font-size:24px;letter-spacing:2px;min-height:76px}.play-button>span{font-size:20px;margin-right:12px}.play-button small{display:block;font-size:9px;letter-spacing:.5px;margin-top:2px;color:#52602d}.create-hq{font-size:12px;white-space:nowrap;padding:20px}.loot-strip{display:flex;justify-content:center;gap:20px;margin:25px 15px;font-size:10px;color:#bba1d0;font-weight:750}.hq-story{max-width:600px;margin:28px auto;padding:20px 25px;border-top:1px dashed #604173;text-align:center}.hq-story>span{display:block;color:#b185d2;font-size:9px;letter-spacing:3px}.hq-story strong{display:block;font-size:17px;margin-top:8px}.hq-story p{font-size:12px;color:#b79acb}.game-nav{position:fixed;z-index:800;bottom:12px;left:50%;transform:translateX(-50%);display:flex;width:310px;max-width:calc(100% - 28px);background:#21132feb;border:1px solid #835b9e;border-radius:22px;padding:6px;box-shadow:0 6px #07030e,0 0 30px #05020999;backdrop-filter:blur(15px)}.game-nav button{flex:1;border:0;border-radius:16px;background:none;color:#a78ab9;font-size:10px;font-weight:850;padding:7px}.game-nav button span{display:block;font-size:25px;line-height:1.1;margin-bottom:4px}.game-nav button.active{background:linear-gradient(#6c448b,#422451);color:#eaff97;box-shadow:inset 0 1px #a980bc}.screen-heading{padding:28px 4px 10px;text-align:center}.screen-heading p{font-size:12px;color:#bfa2d5}.directory-heading{display:flex;justify-content:space-between;align-items:center}.directory-card{position:relative;border:2px solid #855598;border-radius:20px;padding:18px 18px 18px 68px;margin:12px 0;background:linear-gradient(130deg,#462956,#23162f);box-shadow:0 5px #0b0613}.directory-card:before{content:'♠';position:absolute;left:19px;top:17px;font-size:35px;color:#d8b1fd}.directory-card>strong{font-size:16px;overflow-wrap:anywhere}.directory-card>.note{margin:6px 0}.directory-card>small{font-size:10px;color:#b99acb}.directory-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.directory-actions button{font-size:11px;padding:8px 13px}.empty-rooms{padding:30px;border:2px dashed #6d457f;border-radius:20px;color:#c8b1da;text-align:center}.reward-tip{padding:13px 16px;border:1px solid #7c8b3e;border-radius:14px;background:#a2c64a12;color:#d9efac;font-size:12px;margin:18px 0}.reward-tip small{display:block;color:#b6a8c8;font-size:10px;margin-top:5px}.room-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}.room-heading h2{font-size:27px;margin:7px 0 18px;overflow-wrap:anywhere}.count{font-weight:950;border:2px solid #b385c9;padding:8px 12px;border-radius:14px;background:#4b2c61;box-shadow:0 4px #080310;white-space:nowrap}.room-set{height:155px;position:relative;border-radius:22px;overflow:hidden;border:2px solid #80519a;margin-bottom:20px}.room-set>img:first-child{width:100%;height:100%;object-fit:cover;object-position:50% 65%;filter:brightness(.6)}.room-raccoon{position:absolute;right:12%;bottom:-22px;height:190px;animation:hero-idle 4s ease-in-out infinite}.room-set>span{position:absolute;left:22px;bottom:23px;max-width:45%;font-size:18px;font-weight:950;line-height:1.1;letter-spacing:1px;text-shadow:0 3px #1a0a28}.start-panel{padding:20px;border:2px solid #a8bd53;border-radius:22px;background:linear-gradient(135deg,#36472f,#322044);box-shadow:0 6px #080510;margin:15px 0 25px}.start-panel>strong{font-size:15px;color:#edf9c2}.start-panel .primary{margin-top:8px}.map-wrap{height:300px;position:relative;border:2px solid #986bcd;border-radius:23px;overflow:hidden;margin:4px 0 27px;box-shadow:0 6px #080411}#map{height:100%;z-index:0}.map-badge{position:absolute;top:12px;left:12px;z-index:400;padding:7px 10px;font-size:9px;font-weight:900;border:1px solid #a981c2;border-radius:10px;pointer-events:none}.map-badge i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px}#map-note{position:absolute;z-index:400;bottom:12px;left:12px;right:12px;padding:10px;border:1px solid #8d6ba9;border-radius:12px;text-align:center;font-size:11px;pointer-events:none}.players{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.player{display:flex;align-items:center;gap:11px;position:relative;border:2px solid #67417e;border-radius:18px;padding:17px 12px;background:linear-gradient(140deg,#422651,#241630);box-shadow:0 5px #090412}.player.is-new{animation:enter .4s ease-out}.avatar{display:grid;place-items:center;width:44px;height:48px;border:2px solid #b88fe0;border-radius:15px;background:linear-gradient(#a47cd3,#65458d);font-size:22px;font-weight:900;flex-shrink:0}.player:nth-child(3n+2) .avatar{background:linear-gradient(#e6a3bf,#a55388)}.player-name{flex:1;min-width:0;font-size:13px;font-weight:850;overflow-wrap:anywhere}.player small{display:block;font-size:10px;color:#c9afd9;margin-top:3px}.player .tag{position:absolute;right:10px;top:3px;font-size:7px;color:#a891b9}.google-maps-link{display:inline-block;margin-top:6px;font-size:10px;color:#ddff87;text-underline-offset:3px}.role{padding:32px 20px;border-radius:24px;border:2px solid #c59ae2;background:radial-gradient(ellipse at top,#775194,#302040);font-size:23px;text-align:center;font-weight:950;box-shadow:0 6px #0b0615}.role.reveal{animation:reveal .6s ease-out}.reward-result{padding:25px;border:2px solid #dae796;border-radius:20px;text-align:center;font-size:20px;color:#edffae;background:#56673444}.invite-motivation{padding:15px;margin:18px 0 8px;border:1px dashed #87609c;border-radius:15px;font-size:12px;color:#d7bde9}.room-footer{display:flex;justify-content:space-between;flex-wrap:wrap;margin-top:25px;padding-top:15px;border-top:1px dashed #684676}.vote{width:100%;margin:8px 0;text-align:left}.selected{border-color:var(--lime);color:var(--lime)}#status:not(:empty){padding:12px 15px;border:1px solid #a89550;border-radius:13px;background:#392838;color:#e5eda8;margin:10px 0;font-size:12px}#status:empty{display:none}footer{display:flex;justify-content:center;gap:9px;color:#a788bc;font-size:9px;margin-top:30px;padding-top:20px;border-top:1px dashed #50335f}dialog{width:calc(100% - 28px);max-width:460px;max-height:85vh;overflow:auto;padding:26px;border:2px solid #a575bf;border-radius:27px;background:linear-gradient(140deg,#462955,#21152e);color:#fff1e9;box-shadow:0 10px #08040e,0 25px 100px #000a}dialog::backdrop{background:#080312d9;backdrop-filter:blur(8px)}dialog[open]{animation:enter .2s ease-out}dialog h2{font-size:29px}dialog p{font-size:12px}#address-query{width:100%;display:block;margin-top:10px}#address-results button{text-align:left}.shop-item{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #6c477a;gap:10px;font-size:13px}.shop-item button{font-size:11px;padding:10px}.frame-lime{border-color:#d4ff5a!important;box-shadow:0 0 14px #d4ff5a55!important}.frame-pink{border-color:#ff79bf!important;box-shadow:0 0 14px #ff79bf55!important}.frame-gold{border-color:#ffd96c!important;box-shadow:0 0 14px #ffd96c55!important}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#281832;color:#fff}.leaflet-control-attribution{font-size:9px!important}:root[data-phase=night] main{background:#110c24}
@keyframes hero-idle{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}@keyframes mist{50%{transform:translateX(35%)}}@keyframes sparkle{0%,100%{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}@keyframes enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes reveal{from{opacity:0;transform:perspective(600px) rotateY(-60deg)}to{opacity:1;transform:none}}@media(min-width:750px){.content>#room,.gangs-screen{max-width:690px;margin-inline:auto}}@media(max-width:600px){header{padding:16px 18px 12px}h1{font-size:20px}.eyebrow{font-size:7px}.content{padding-inline:16px}.account-panel{margin:0 16px 8px;grid-template-columns:1fr;padding:9px 11px;gap:6px}.account-actions{grid-column:1;grid-row:2;justify-content:space-between}.account-actions button{font-size:9px;padding:6px 12px}.profile-details{grid-row:3;font-size:9px}.headquarters{margin-inline:-16px}.scene{height:475px}.scene-background{object-position:60% 50%}.scene-intro{top:22px;left:7%}.scene-intro h2{font-size:36px;letter-spacing:-1.3px;margin:12px 0}.scene-intro p{font-size:11px;max-width:135px}.chapter-tag{font-size:7px}.hero-character{width:215px;height:265px;left:40%;bottom:48px}.hero-platform{width:215px;left:40%;bottom:30px}.scene-bubble{left:auto;right:5%;top:75px;font-size:9px;padding:8px}.scene-caption{bottom:10px;font-size:8px}.hq-actions{padding:0 22px;flex-direction:column;gap:15px}.play-button{min-height:70px;font-size:25px}.create-hq{width:100%;padding:12px}.loot-strip{font-size:8px;gap:12px;margin-top:23px}.hq-story{margin-inline:20px}.players{grid-template-columns:1fr}.map-wrap{height:265px}.room-set{height:135px}.room-heading h2{font-size:24px}.room-set>span{font-size:15px}.start-panel{padding:17px}.wallet strong{font-size:23px}.profile-avatar{width:40px;height:40px}}
/* Recolour only the raster layer, keeping markers, controls and attribution clear. */
.map-wrap{border-color:#986bcd;box-shadow:0 7px 0 #0b071b,0 0 28px #a15bff20;background:#26133e}.map-wrap #map{background:#28163f}.map-wrap .leaflet-tile-pane{filter:grayscale(1) invert(1) sepia(.65) hue-rotate(220deg) saturate(2) brightness(.86) contrast(.9);opacity:.92}.map-badge{background:#211037ef;border-color:#ab7be2;box-shadow:0 4px 15px #09021440;letter-spacing:.8px}.map-badge i{background:#ca9cff;box-shadow:0 0 10px #b47bff}.map-legend{position:absolute;top:49px;left:12px;z-index:400;display:flex;gap:10px;padding:6px 9px;border:1px solid #80609d;border-radius:9px;background:#201331eb;color:#eee0ff;font-size:9px;font-weight:750;pointer-events:none}.map-legend>span{display:flex;align-items:center;gap:4px}.map-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}.legend-meeting{background:#d4ff5a}.legend-self{background:#ff84be}.legend-player{background:#bb8aff}.game-map-pin-holder{background:none;border:0}.game-map-pin{position:relative;width:40px;height:40px;border-radius:15px 15px 15px 5px;transform:rotate(-45deg);border:2px solid #ddc0ff;background:linear-gradient(145deg,#b07bfa,#6941a9);box-shadow:0 4px 12px #11062288,0 0 17px #ac76ff55;color:#fff;font-size:0;display:grid;place-items:center}.game-map-pin:after{content:attr(data-initial);transform:rotate(45deg);font-size:17px;font-weight:950}.pin-meeting{background:linear-gradient(135deg,#efffa5,#b7ec46);border-color:#f5ffd4;box-shadow:0 4px 12px #11062288,0 0 22px #d4ff5a55;color:#2d2043}.pin-self{background:linear-gradient(135deg,#ffb4d4,#d760a2);border-color:#ffd0e7;box-shadow:0 4px 12px #11062288,0 0 22px #ff84be55}.map-wrap .leaflet-control-zoom{border:1px solid #9a70bf!important;border-radius:11px!important;overflow:hidden;box-shadow:0 4px 15px #0b041d66}.map-wrap .leaflet-control-zoom a{background:#332047;color:#f5eaff;border-color:#74518c}.map-wrap .leaflet-control-zoom a:hover{background:#573370}.map-wrap .leaflet-control-attribution{background:#211331e8;color:#cfbfdf;padding-inline:6px;border-radius:6px 0 0 0}.map-wrap .leaflet-control-attribution a{color:#d7b6ff}.map-wrap .leaflet-popup-content-wrapper{border:1px solid #986bc0;border-radius:15px;box-shadow:0 8px 30px #09021470}.map-popup-detail{display:block;margin-top:5px;color:#cbb2e0;font-size:10px}#map-note{background:#251438ef;border-color:#8b62ad}

.map-pin-count{position:absolute;right:-5px;top:-5px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#ff84be;color:#211231;border:2px solid #ffe1f0;font-size:10px;font-weight:950;transform:rotate(45deg);z-index:1}

.map-wrap.has-popup .map-badge,.map-wrap.has-popup .map-legend{opacity:0}

/* Rival gangs are decorative and always sit below real player markers. */
.rival-pin-holder{background:none;border:0}.rival-pin{--gang-color:#ff9e54;display:flex;align-items:center;flex-direction:column;gap:3px;width:70px;pointer-events:none}.rival-symbol{display:grid;place-items:center;width:31px;height:34px;font-size:20px;line-height:1;border:2px solid var(--gang-color);border-radius:10px 10px 13px 13px;background:#21152fee;box-shadow:0 3px 0 #080414aa,0 0 13px color-mix(in srgb,var(--gang-color) 35%,transparent)}.rival-pin small{max-width:78px;white-space:nowrap;padding:1px 4px;border:1px solid color-mix(in srgb,var(--gang-color) 60%,transparent);border-radius:5px;background:#1b112de8;color:var(--gang-color);font-size:8px;font-weight:800;line-height:1.4}.rival-pin-holder:focus-visible .rival-symbol{outline:3px solid white;outline-offset:3px}.rivals-toggle{position:absolute;right:9px;top:12px;z-index:400;border:1px solid #ab7be2;border-radius:9px;background:#211037ef;color:#eedfff;padding:6px 8px;font-size:9px;font-weight:800;min-height:30px}.rivals-toggle[aria-pressed=false]{color:#b6a6cb;border-color:#69527c}.rivals-disclaimer{position:absolute;bottom:18px;left:7px;z-index:400;background:#211331e8;border-radius:5px;padding:2px 5px;color:#e2ceef;font-size:8px;pointer-events:none}.map-wrap.has-popup .rivals-toggle{opacity:0;pointer-events:none}.map-wrap:has(#map-note:not([hidden])) .rivals-disclaimer{bottom:66px}@media(max-width:380px){.map-badge{font-size:8px;padding:8px}.rivals-toggle{right:7px;padding-inline:6px;font-size:8px}.map-legend{gap:8px;font-size:8px}}

.district-notice{position:sticky;top:8px;z-index:600;display:flex;align-items:center;gap:12px;padding:13px 15px;margin:12px 0;border:2px solid #ca9cff;border-radius:16px;background:linear-gradient(135deg,#573376,#302048);box-shadow:0 5px 0 #10091e,0 8px 24px #0005;font-size:13px;font-weight:750;animation:enter .3s ease-out}.district-notice>span{flex:1;overflow-wrap:anywhere}.district-notice button{flex-shrink:0;border:1px solid #a983c5;border-radius:10px;background:#2a193e;color:#fff;width:32px;height:32px;font-size:22px}.ready-meter{display:flex;align-items:center;gap:12px;margin:12px 0;color:#e6ffb6}.ready-meter strong{font-size:15px;white-space:nowrap}.ready-meter progress{width:100%;min-width:35px;height:9px;border:0;border-radius:8px;overflow:hidden;accent-color:#d4ff5a;background:#20152f}.ready-meter progress::-webkit-progress-bar{background:#20152f;border-radius:8px}.ready-meter progress::-webkit-progress-value{background:linear-gradient(90deg,#b58aff,#d4ff5a);border-radius:8px}.ready-meter progress::-moz-progress-bar{background:#d4ff5a;border-radius:8px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.yard-junk{position:absolute;z-index:4;width:48px;height:55px;background:none;border:0;display:grid;place-items:center;filter:drop-shadow(0 8px 3px #09051288);transition:opacity .2s,transform .2s}.yard-junk small{position:absolute;right:-4px;top:-8px;color:#ecff9c;font-size:11px;font-weight:950;text-shadow:0 2px #301a41;animation:sparkle 2.8s ease-in-out infinite}.junk-one{left:20%;bottom:100px;transform:rotate(-13deg)}.junk-two{left:39%;bottom:55px;transform:rotate(15deg)}.junk-three{right:7%;bottom:55px;transform:rotate(20deg)}.junk-can{width:24px;height:32px;border-radius:5px;background:linear-gradient(90deg,#294b73,#c3e0d8 25%,#6f91b4 55%,#203353);border-block:3px solid #bdc6cf;transform:rotate(20deg);box-shadow:inset 0 -8px #496a9b}.junk-paper{width:30px;height:30px;background:linear-gradient(135deg,#eadbc6,#a598bf);clip-path:polygon(5% 12%,87% 0,100% 88%,20% 100%,0 50%);color:#674976;font-size:21px;transform:rotate(-25deg)}.junk-bottle{width:20px;height:34px;background:linear-gradient(90deg,#204859,#58cbae,#164546);border-radius:5px 5px 7px 7px;border:1px solid #8cddbb;position:relative;transform:rotate(40deg)}.junk-bottle:before{content:'';position:absolute;top:-11px;left:4px;width:8px;height:12px;background:#62bca9;border-top:3px solid #edbd64;border-radius:2px}.junk-bottle:after{content:'';position:absolute;top:12px;left:0;width:18px;height:10px;background:#d6dcab}.yard-hint{position:absolute;left:7%;bottom:74px;font-size:8px;color:#e5d1f6;z-index:3;pointer-events:none}.yard-hint strong{display:block;letter-spacing:1.5px;color:#e4ffb3;font-size:8px}.yard-hint span{display:block;margin-top:3px}.yard-status{position:absolute;bottom:42px;left:7%;font-size:11px;font-weight:850;color:#f2ffb9;z-index:5;pointer-events:none}.hero-character.collecting{animation:walk-to-loot 2.4s ease-in-out both}.hero-character.collecting>img{animation:hero-step .2s ease-in-out infinite}.yard-junk.picked{opacity:0;transform:translateY(-35px) scale(.3)}@keyframes walk-to-loot{0%,100%{transform:translateX(0)}35%{transform:translateX(var(--walk-x)) scale(.92)}48%,60%{transform:translateX(var(--walk-x)) rotate(-12deg) scale(.85)}70%{transform:translateX(var(--walk-x)) scale(.92)}}@keyframes hero-step{50%{transform:translateY(-8px) rotate(3deg)}}@media(max-width:600px){.junk-one{left:17%;bottom:132px}.junk-two{left:30%;bottom:76px}.junk-three{right:5%;bottom:43px}.yard-hint{bottom:49px;max-width:125px;font-size:7px}.yard-hint strong{font-size:7px}.yard-status{bottom:24px;left:7%;font-size:9px}.scene-caption{display:none}.hero-character{bottom:64px}.hero-platform{bottom:48px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.scene{height:460px}.hq-actions{position:relative;margin-top:-5px;z-index:5}@media(max-width:600px){.scene{height:clamp(330px,calc(100svh - 390px),475px)}.scene-intro h2{font-size:32px}.scene-intro p{max-width:120px}.hero-character{width:205px;height:250px;bottom:57px}.scene-bubble{top:85px;right:4%;font-size:8px}.junk-one{bottom:110px}.yard-hint{bottom:37px}.yard-status{bottom:16px}.scene-spark{display:none}}
.content{position:relative}#back-to-game{position:absolute;z-index:6;right:26px;top:7px;width:auto;padding:7px 12px;margin:0;font-size:10px}@media(max-width:600px){.scene{height:clamp(320px,calc(100svh - 420px),440px)}#back-to-game{right:12px;top:5px;max-width:160px;font-size:8px;padding:6px 9px}.scene-intro{top:38px}.scene-intro h2{font-size:30px}.scene-bubble{left:6%;right:auto;top:auto;bottom:190px;font-size:8px}.hero-character{height:235px;width:195px;left:43%;bottom:58px}}
@media(min-width:1200px){.game-nav{left:auto;right:calc((100vw - 1000px)/2 - 94px);top:50%;bottom:auto;transform:translateY(-50%);width:78px;flex-direction:column}.game-nav button{padding:14px 6px}.game-nav button span{font-size:28px}}
/* Tinted liquid glass: readable labels, curved reflections and a blurred backdrop. */
button{position:relative}button:not(.yard-junk){backdrop-filter:blur(18px) saturate(1.6);-webkit-backdrop-filter:blur(18px) saturate(1.6);background-image:linear-gradient(135deg,#fff4 0%,#fff1 32%,#ffffff05 52%,#fff2 100%);border:1px solid #ead2ff66;box-shadow:inset 0 1px 0 #ffffff80,inset 0 -1px 0 #ffffff15,0 5px 14px #07021055;isolation:isolate}button:not(.yard-junk):before{content:'';position:absolute;inset:1px;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse at 15% 0,#fff5,transparent 58%);z-index:-1}button.primary{background:linear-gradient(140deg,#efffb9c9,#c8ef6a99 52%,#eaffacba);border-color:#f6ffcccc;color:#28321c;box-shadow:inset 0 2px #ffffffe0,inset 0 -2px #9ea85555,0 5px 0 #667a3866,0 12px 30px #03010844}button.secondary,button.text-button,button.icon{background-color:#684d823d}button.text-button{border-radius:12px;padding-inline:11px}button:hover:not(:disabled):not(.yard-junk){box-shadow:inset 0 2px #fff9,inset 0 -1px #fff3,0 5px 20px #b784ff33;border-color:#f3e3ffad}.game-nav{background:linear-gradient(140deg,#725d8e40,#281b3b80);border-color:#f2ddff55;backdrop-filter:blur(25px) saturate(1.8);-webkit-backdrop-filter:blur(25px) saturate(1.8);box-shadow:inset 0 1px #fff5,0 10px 35px #03010788}.game-nav button{border-color:transparent;background-color:transparent;box-shadow:none}.game-nav button.active{background:linear-gradient(145deg,#c897ff66,#7c56983b);border-color:#edd9ff77;box-shadow:inset 0 1px #fff7,0 4px 13px #14071e44}.game-nav button:not(.active):before{opacity:.25}.rivals-toggle{background-color:#281632a8!important}.district-notice button{background-color:#684d8250!important}.graffiti-svg{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 4px 2px #09031288)}h1{width:210px;height:62px;margin:0;transform:rotate(-3deg)}h1 .sr-only{font-family:system-ui}.scene-intro h2{width:420px;max-width:85vw;height:auto;transform:rotate(-4deg);margin:12px 0 16px}.screen-heading h2{width:330px;max-width:90%;margin:12px auto 20px;transform:rotate(-3deg)}dialog h2,.room-heading h2,.directory-heading h3{font-family:'Chalkduster','Chalkboard SE',ui-rounded,system-ui,sans-serif;transform:rotate(-2deg);letter-spacing:-1px;text-shadow:2px 3px #170a27}header{padding-block:13px}.brand .eyebrow{font-size:7px}@media(max-width:600px){h1{width:176px;height:54px}.scene-intro h2{width:295px;max-width:82vw}.scene-intro{top:26px}.scene-intro p{font-size:10px}.scene-bubble{bottom:173px}.screen-heading h2{width:280px}header{padding-block:10px}.brand{gap:8px}.brand-icon{width:37px;height:37px}}
.brand .graffiti-svg{height:62px;width:auto;max-width:100%}.scene-intro h2 .graffiti-svg{max-height:175px}.brand .eyebrow{white-space:nowrap}@media(max-width:600px){.brand .graffiti-svg{height:54px}.scene-intro h2 .graffiti-svg{max-height:140px}}

/* The headquarters is the game world; the HUD floats over the entire viewport. */
:root[data-screen=hq] body{overflow:hidden}:root[data-screen=hq] main{max-width:none;height:100svh;min-height:100svh;padding:0;background:#160d28}:root[data-screen=hq] .content{padding:0}:root[data-screen=hq] header{position:fixed;left:24px;top:12px;right:24px;z-index:20;padding:0;pointer-events:none}:root[data-screen=hq] header .icon{pointer-events:auto;margin-top:110px}:root[data-screen=hq] .brand{pointer-events:auto}:root[data-screen=hq] .account-panel{position:fixed;right:80px;left:auto;top:22px;width:460px;max-width:48vw;z-index:20;margin:0;background:linear-gradient(130deg,#634b7d55,#21142c70);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}:root[data-screen=hq] .headquarters{margin:0}:root[data-screen=hq] .scene{position:fixed;inset:0;width:100vw;height:100svh;z-index:0}:root[data-screen=hq] .scene-background{object-position:50% 60%}:root[data-screen=hq] .scene-vignette{background:linear-gradient(90deg,#11091b9c,transparent 65%),linear-gradient(0deg,#11091bc0,transparent 38%,transparent 70%,#11091b99)}:root[data-screen=hq] .scene-intro{top:25%;left:6%}:root[data-screen=hq] .hero-character{height:min(58svh,530px);width:min(43vw,455px);left:54%;bottom:17%}:root[data-screen=hq] .hero-platform{left:53%;bottom:14%;width:400px}:root[data-screen=hq] .scene-bubble{left:77%;top:23%}:root[data-screen=hq] .hq-actions{position:fixed;bottom:42px;left:6%;width:560px;max-width:65vw;z-index:10;padding:0;margin:0}:root[data-screen=hq] .hq-story,:root[data-screen=hq] .loot-strip,:root[data-screen=hq] footer{display:none}:root[data-screen=hq] .yard-hint{bottom:23%;left:6%;font-size:11px}:root[data-screen=hq] .yard-hint strong{font-size:10px}:root[data-screen=hq] .yard-status{bottom:19%;left:6%}:root[data-screen=hq] .scene-caption{bottom:140px;left:6%}:root[data-screen=hq] .junk-one{left:26%;bottom:25%}:root[data-screen=hq] .junk-two{left:44%;bottom:16%}:root[data-screen=hq] .junk-three{right:12%;bottom:13%}:root[data-screen=hq] #status:not(:empty){position:fixed;top:140px;left:6%;max-width:440px;z-index:30;background:#2c1b3cdd}:root[data-screen=hq] #back-to-game{position:fixed;right:80px;top:140px;z-index:21}:root[data-screen=hq] .game-nav{right:24px}:root[data-screen=hq] #telegram-hint{position:fixed;top:100px;left:6%;z-index:25}
@media(max-width:700px){:root[data-screen=hq] header{top:12px;left:16px;right:16px}:root[data-screen=hq] header .icon{margin-top:0}:root[data-screen=hq] .account-panel{top:84px;left:16px;right:16px;width:auto;max-width:none}:root[data-screen=hq] .scene-background{object-position:59% 60%}:root[data-screen=hq] .scene-intro{top:27%;left:6%}:root[data-screen=hq] .scene-intro h2{width:260px;max-width:72vw}:root[data-screen=hq] .scene-intro p{font-size:10px}:root[data-screen=hq] .hero-character{height:34svh;min-height:220px;width:58vw;left:41%;bottom:23%}:root[data-screen=hq] .hero-platform{left:39%;width:58vw;bottom:21%}:root[data-screen=hq] .scene-bubble{left:6%;right:auto;top:auto;bottom:34%;font-size:9px}:root[data-screen=hq] .hq-actions{bottom:105px;left:16px;right:16px;width:auto;max-width:none;display:grid;grid-template-columns:1fr 55px;gap:12px}:root[data-screen=hq] .play-button{font-size:23px;min-height:64px}:root[data-screen=hq] .create-hq{font-size:0;padding:0;min-height:64px}:root[data-screen=hq] .create-hq:after{content:'＋';font-size:30px}:root[data-screen=hq] .yard-hint{bottom:25%;max-width:130px;font-size:8px}:root[data-screen=hq] .yard-hint strong{font-size:8px}:root[data-screen=hq] .yard-status{bottom:21%;font-size:9px}:root[data-screen=hq] .junk-one{left:14%;bottom:38%}:root[data-screen=hq] .junk-two{left:34%;bottom:29%}:root[data-screen=hq] .junk-three{right:7%;bottom:21%}:root[data-screen=hq] #back-to-game{top:211px;right:16px;font-size:8px}:root[data-screen=hq] #status:not(:empty){top:210px;left:16px;right:16px;max-width:none;font-size:10px}:root[data-screen=hq] .game-nav{right:auto}:root[data-screen=hq] #telegram-hint{top:72px;left:16px}}
@media(max-height:700px) and (max-width:700px){:root[data-screen=hq] .scene-intro{top:30%}:root[data-screen=hq] .scene-intro h2{width:205px}:root[data-screen=hq] .scene-intro p{display:none}:root[data-screen=hq] .hero-character{min-height:180px;height:32svh;bottom:26%}:root[data-screen=hq] .scene-bubble{display:none}}
:root[data-screen=hq] .account-panel{grid-template-columns:1fr;gap:7px}:root[data-screen=hq] .account-actions{grid-column:1;grid-row:2;justify-self:end}:root[data-screen=hq] .account-actions button{padding:7px 10px;font-size:9px}:root[data-screen=hq] .profile-details{grid-column:1;grid-row:2;align-self:center;max-width:115px}:root[data-screen=hq] .profile-details[open]{grid-row:3;max-width:none;width:100%}


#admin-open{position:fixed;right:12px;bottom:94px;z-index:900;background:#302043;border:1px solid #b07dff;border-radius:12px;padding:10px 14px}#invitation-text{font:inherit;color:var(--text);background:#160d28;border:1px solid #b07dff;border-radius:12px;padding:12px;resize:vertical}#invitation-text:focus-visible{outline:3px solid var(--lime)}

:root[data-screen=hq] .hq-actions{display:grid;grid-template-columns:1fr auto;gap:12px}.invite-hq{grid-column:1/-1;font-size:15px;line-height:1.25;padding:14px 18px;border-color:var(--lime);text-align:center}.invite-hq small{display:block;font-size:11px;font-weight:500;margin-top:5px;color:var(--lime)}:root[data-screen=hq] #admin-open{bottom:220px}@media(max-width:700px){:root[data-screen=hq] .hq-actions{grid-template-columns:1fr 55px;gap:10px}.invite-hq{font-size:14px;padding:12px}.invite-hq small{font-size:10px}:root[data-screen=hq] #admin-open{bottom:270px}}

.active-tasks{margin:18px 0}.active-tasks h3{font-size:15px;letter-spacing:1px;color:var(--lime)}.task-card{border:1px solid #b07dff;border-radius:16px;background:#302043;padding:16px}.task-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#160d28;border:1px solid #66427d;border-radius:12px;padding:14px;max-height:35vh;overflow:auto}
