.planet-field-hud{position:absolute;right:18px;top:156px;z-index:24;color:#f6f4e7;background:rgba(15,31,39,.94);border:1px solid #718981;border-radius:16px;box-shadow:0 12px 38px #0004}
.planet-field-hud{max-height:calc(100dvh - 260px);overflow:auto}.planet-kit{margin-top:12px;border-top:1px solid #64726a55;padding-top:8px}.planet-kit>div{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0}.planet-kit button{font-size:10px;padding:6px}.planet-kit button[aria-pressed=true]{border-color:#f2cb8a;background:#63573b}.planet-kit button:disabled{opacity:.4}.planet-kit small{display:block;color:#c9b992;font-size:10px}.planet-recipes{max-width:820px;margin:auto}.planet-recipes article{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid #60716f55}.planet-recipes h2{margin:0;font-size:20px}.planet-recipes p{color:#bac6c1}.planet-recipes article button{min-width:160px}@media(max-width:650px){.planet-recipes article{gap:10px}.planet-recipes article button{min-width:110px}.planet-field-hud{max-height:calc(100dvh - 255px)}}
.game-shell:has(.wildstar-backdrop) .top-hud,.game-shell:has(.wildstar-backdrop) .bottom-dock,.game-shell:has(.wildstar-backdrop) .jump-button{visibility:hidden;pointer-events:none}
.planet-live-map{position:absolute;top:156px;right:322px;width:184px;padding:9px;background:rgba(99,109,111,.48);border:1px solid #d4ded899;border-radius:14px;box-shadow:0 8px 24px #10171933;backdrop-filter:blur(10px) saturate(.7);z-index:24;color:#f2f5f1;font:10px system-ui}.planet-live-map header{display:flex;align-items:center;justify-content:space-between;font-size:14px}.planet-live-map header div{display:flex}.planet-live-map header button{color:inherit;background:transparent;border:0;cursor:pointer;font-size:17px;padding:0 4px}.planet-live-map svg{display:block;width:100%;margin:5px 0}.planet-live-map text{fill:#f1f4ef;font:7px system-ui;text-anchor:middle}.planet-map-key{display:grid;grid-template-columns:1fr 1fr;gap:4px;text-shadow:0 1px 3px #1c2425}.planet-map-key .map-caves{grid-column:1/-1;color:#fff4c7;font-size:8px;line-height:1.35}.map-camp{color:#ffcf87}.map-player{color:#8eeaf1}.map-danger{color:#ff9188}@media(max-width:650px){.planet-live-map{width:132px;top:148px;left:8px;right:auto;padding:6px}.planet-map-key{font-size:8px;gap:3px}.planet-map-key .map-caves{font-size:7px}}@media(max-height:550px){.planet-live-map{top:100px;right:278px;width:138px}.planet-map-key{font-size:8px}}
.planet-field-hud{width:284px;padding:14px;font:12px/1.5 system-ui;backdrop-filter:blur(12px)}
.planet-hud-heading,.planet-safety,.planet-stats,.planet-hud-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.planet-hud-heading{font-size:16px;font-weight:650}.planet-safety{margin:9px 0;color:#ffbcaa;font-size:11px}.planet-safety.is-safe{color:#b4f1bd}.planet-safety span{white-space:nowrap;color:#d0d9d4}.planet-meter{display:grid;grid-template-columns:42px 1fr 30px;gap:8px;align-items:center}.planet-meter meter{width:100%;accent-color:#a5dfa5}.planet-meter b{text-align:right}.planet-stats{margin-top:8px}.planet-field-hud p{color:#d7ddcf;margin:10px 0;font-size:11px}.planet-field-hud button,.wildstar-dialog button{font:inherit;color:inherit;border:1px solid #607f7d;background:#243e47;border-radius:9px;cursor:pointer;padding:8px 10px}.planet-field-hud button:hover,.wildstar-dialog button:hover{background:#39555a}.planet-hud-heading button{font-size:11px;padding:4px 8px}
.wildstar-backdrop{position:absolute;inset:0;z-index:100;background:radial-gradient(ellipse at 50% 28%,#273c54 0%,#0b1728ee 50%,#080e1cf5 100%);display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(14px);pointer-events:auto}
.wildstar-dialog{width:min(1200px,100%);max-height:calc(100dvh - 44px);overflow:auto;color:#f2f3e9;font:14px/1.5 system-ui;outline:none;padding:20px 10px}
.wildstar-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:30px}.wildstar-dialog header small{font-size:10px;letter-spacing:3px;color:#9cb8c2}.wildstar-dialog h1{font-size:clamp(24px,3.2vw,44px);font-weight:550;letter-spacing:-1.4px;margin:8px 0}.wildstar-dialog header p{color:#bdcbd0;max-width:760px;margin:4px 0}.wildstar-dialog .wildstar-close{font-size:24px;line-height:1;padding:9px 13px;background:transparent}
.wildstar-planets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.wildstar-planet-card{display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(150deg,#25374480,#0d1a2a99);border:1px solid #41576b;border-radius:18px;padding:18px 14px;overflow:hidden}.planet-number{font-size:9px;letter-spacing:1.5px;color:var(--planet-color)}.wildstar-dialog .planet-orb-button{border:0;background:transparent;align-self:center;width:100%;display:grid;place-items:center;height:170px;padding:0}.planet-orb{width:114px;height:114px;border-radius:50%;position:relative;display:block;overflow:hidden;background:radial-gradient(circle at 30% 25%,var(--planet-color),#447873 45%,#07121f 83%);box-shadow:0 0 35px color-mix(in srgb,var(--planet-color) 15%,transparent),inset -18px -9px 22px #0008;transform:rotate(-20deg);transition:transform .4s}.planet-orb-button:hover .planet-orb{transform:rotate(-12deg) scale(1.06)}.planet-orb i{position:absolute;left:12px;top:26px;width:80px;height:20px;background:#d6c1a255;border-radius:40% 70% 40% 90%;transform:rotate(18deg)}.planet-orb i:nth-child(2){top:66px;left:-10px;width:90px;height:36px}.planet-orb i:nth-child(3){left:77px;top:30px;height:90px;width:30px}.biome-swamp .planet-orb{background:radial-gradient(circle at 30% 25%,#b7d477,#526e45 45%,#0c2330 83%)}.biome-fantasy .planet-orb{background:radial-gradient(circle at 30% 25%,#ffc9e5,#9e7dc1 45%,#202c59 83%)}.biome-desert .planet-orb{background:radial-gradient(circle at 30% 25%,#ffe1ad,#c78457 45%,#45293c 83%)}.biome-arctic .planet-orb{background:radial-gradient(circle at 30% 25%,#edfffa,#a2d4e2 45%,#253e65 83%)}.wildstar-planet-card h2{font-size:21px;margin:0 0 8px;font-weight:550}.wildstar-planet-card p{font-size:12px;color:#bdcbd0;margin:0 0 18px;flex:1}.planet-companion{font-size:10px;color:var(--planet-color);margin-bottom:12px}.wildstar-dialog .planet-land{width:100%;font-size:11px;padding:10px 4px}.wildstar-dialog button:disabled{cursor:not-allowed;opacity:.55}.is-locked .planet-orb{filter:saturate(.35);opacity:.66}.wildstar-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:20px;color:#afc4cc;font-size:11px;margin-top:24px}
.planet-journal-layout{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}.planet-field-map{background:#13232f;border:1px solid #526d78;border-radius:24px;padding:12px;text-align:center}.planet-field-map svg{max-height:440px;width:100%}.planet-field-map text{font:6px system-ui;fill:#e5ede1;text-anchor:middle}.planet-field-map small{color:#9eb7bf;font-size:10px}.planet-objectives h2{font-size:22px;font-weight:550}.planet-objectives p{margin:10px 0;color:#d3dfd9}.planet-objectives .planet-journal-hint{font-size:12px;color:#aabfc4;background:#203442;border-radius:12px;padding:14px;margin:20px 0}.planet-journal-actions{display:flex;flex-wrap:wrap;gap:10px}.wildstar-dialog button:focus-visible,.planet-field-hud button:focus-visible{outline:3px solid #ffe1ac;outline-offset:3px}
@media(max-width:1000px){.wildstar-planets{grid-template-columns:repeat(3,minmax(0,1fr))}.planet-orb-button{height:140px!important}.wildstar-dialog header{margin-bottom:18px}}
@media(max-width:650px){.wildstar-backdrop{padding:12px}.wildstar-dialog{max-height:calc(100dvh - 24px);padding:10px 0}.wildstar-planets{grid-template-columns:repeat(2,minmax(0,1fr))}.wildstar-planet-card{padding:12px}.wildstar-planet-card p{font-size:11px}.planet-journal-layout{grid-template-columns:1fr;gap:12px}.planet-field-map svg{max-height:240px}.planet-field-hud{top:148px;right:8px;width:226px;padding:9px}.planet-field-hud p{margin:5px 0}.planet-hud-heading{font-size:14px}.planet-stats{font-size:10px}.planet-field-hud button{font-size:10px;padding:5px 8px}.wildstar-dialog footer{align-items:flex-start}.wildstar-dialog header small{letter-spacing:1.3px}}
@media(max-height:550px){.planet-field-hud{top:100px;width:240px;font-size:10px}.planet-field-hud p{display:none}.planet-safety{margin:3px 0}.planet-stats{margin-top:2px}.planet-hud-actions{margin-top:5px}}
.planet-survival-meters{position:absolute;top:124px;left:20px;right:20px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:20px;z-index:24;color:white;font:600 13px system-ui;text-shadow:0 2px 4px #000}.planet-survival-meters span{display:flex;align-items:center;gap:5px}.planet-survival-meters meter{width:72px;height:12px;accent-color:#acd58c}.planet-survival-meters button{border:0;background:none;color:inherit;font-size:20px;cursor:pointer}.planet-night-count{position:absolute;top:92px;left:50%;transform:translateX(-50%);color:white;font:600 14px system-ui;text-shadow:0 2px 4px #000;z-index:24;white-space:nowrap}.planet-survival-kit{position:absolute;bottom:94px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:24}.planet-survival-kit button{border:1px solid #aaba9c77;border-radius:7px;background:#172927bb;color:white;padding:7px;white-space:nowrap;cursor:pointer}.planet-survival-kit button[aria-pressed=true]{border-color:#ffe0a0}.planet-live-map{right:18px;top:178px}@media(max-width:650px){.planet-survival-meters{top:133px;gap:10px;font-size:11px}.planet-survival-meters meter{width:40px}.planet-night-count{top:109px;font-size:12px}.planet-live-map{left:auto;right:8px;top:180px}.planet-survival-kit{max-width:95%;flex-wrap:wrap;justify-content:center;bottom:95px}.planet-survival-kit button{font-size:10px}}
.solar-route-heading{display:flex;flex-wrap:wrap;gap:8px 24px;color:#e9dac5;font-size:15px}.solar-route-heading span{font-size:12px;color:#afbbc9}
.solar-map-scroll{overflow-x:auto;border:1px solid #a8bbda26;border-radius:24px;background:radial-gradient(ellipse at 20% 65%,#62515e38,transparent 55%),radial-gradient(ellipse at 75% 20%,#47589d38,transparent 55%),#081120}
.solar-destination-map{position:relative;min-width:780px;aspect-ratio:1000/430;isolation:isolate;background-image:radial-gradient(circle,#d0deec77 .7px,transparent 1px),radial-gradient(circle,#a4b6d05a .6px,transparent 1px);background-size:87px 83px,137px 109px;background-position:13px 31px,67px 11px}
.solar-destination-map>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.solar-map-sun{position:absolute;left:8.5%;top:56%;width:70px;height:70px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 40% 35%,#fffbdd,#f3c576 55%,#bf6d3e);box-shadow:0 0 35px #ffc78270,0 0 90px #edb78835}
.wildstar-dialog .solar-destination{position:absolute;transform:translate(-50%,-28%);width:160px;padding:0;display:flex;align-items:center;flex-direction:column;gap:6px;background:none;border:0;color:#eef1f4;text-align:center}.wildstar-dialog .solar-destination:hover{background:none}.solar-destination .planet-orb{width:80px;height:80px;transition:transform .25s}.solar-destination:not(:disabled):hover .planet-orb{transform:rotate(-12deg) scale(1.09)}.solar-destination strong{font-size:14px;font-weight:600}.solar-destination small{font-size:10px;color:#bac7d6}.solar-destination-state{font-size:9px;letter-spacing:1.5px;color:var(--planet-color)}.solar-destination.is-next .planet-orb{outline:1px solid #f6dfb586;outline-offset:7px;box-shadow:0 0 40px #ddc79533}.wildstar-dialog .solar-destination:disabled{opacity:.65}.solar-destination.biome-fantasy .planet-orb i{background:#dfbaec5f}.solar-destination.biome-arctic .planet-orb i{background:#e9fcff99}
.game-shell:has(.planet-gate-controls) .top-hud,.game-shell:has(.planet-gate-controls) .bottom-dock,.game-shell:has(.planet-gate-controls) .jump-button{visibility:hidden;pointer-events:none}
.planet-gate-controls{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:100;text-align:center;color:#e6fffa;text-shadow:0 2px 5px #00181c;pointer-events:none;width:min(340px,90%)}
.planet-gate-controls span{display:inline-block;font-size:26px;width:36px}.planet-gate-controls p{font-size:12px;line-height:1.5;margin:5px 0}.planet-gate-controls button{pointer-events:auto;color:inherit;background:none;border:0;cursor:pointer;text-shadow:inherit;min-height:44px;padding:8px 15px;font:600 15px system-ui;touch-action:manipulation}.planet-gate-controls button:focus-visible{outline:2px solid #a5f2e3;outline-offset:2px}.planet-gate-actions{display:flex;justify-content:center;gap:12px}@media(max-height:500px){.planet-gate-controls p{display:none}.planet-gate-controls{bottom:4px}.planet-gate-controls span{font-size:20px}}
.planet-obby-hud{position:absolute;top:120px;left:50%;transform:translateX(-50%);z-index:35;text-align:center;width:min(540px,85%);color:#f0ffed;text-shadow:0 2px 5px #102519;font:13px system-ui;pointer-events:none}.planet-obby-hud strong{font-size:18px}.planet-obby-hud p{margin:7px 0;line-height:1.5}.planet-obby-hud small{display:block;margin:4px}.planet-obby-hud button{pointer-events:auto;border:0;background:none;color:inherit;font:600 14px system-ui;min-height:44px;padding:8px 14px;cursor:pointer;text-shadow:inherit;touch-action:manipulation}.planet-obby-hud button:focus-visible{outline:2px solid #c1ffc5;outline-offset:2px}@media(max-width:650px){.planet-obby-hud{top:132px;font-size:11px}.planet-obby-hud strong{font-size:15px}}@media(max-height:550px){.planet-obby-hud{top:80px;width:min(470px,65%)}.planet-obby-hud p{font-size:11px;margin:3px 0}.planet-obby-hud strong{font-size:14px}}
.planet-obby-hud .planet-race-countdown{font-size:60px;font-weight:800;margin:8px}.planet-race-progress{display:flex;justify-content:center;gap:20px;flex-wrap:wrap}.planet-race-progress label{display:flex;align-items:center;gap:7px}.planet-race-progress progress{width:85px;height:10px;accent-color:#acf0ae}.planet-race-progress label+label progress{accent-color:#84d9ec}.planet-obby-hud button:disabled{opacity:.6;cursor:default}
.planet-obby-hud.is-running{top:auto;bottom:max(92px,calc(env(safe-area-inset-bottom) + 76px));left:16px;transform:none;width:auto;text-align:left}.planet-obby-hud.is-running>p{margin:0;font-size:16px;font-weight:750;letter-spacing:.4px}
.planet-obby-choices{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:8px 0}.planet-obby-hud .planet-obby-play{min-width:210px;min-height:68px;padding:12px 18px;border:2px solid #d9efd2;border-radius:15px;background:linear-gradient(145deg,rgba(45,93,62,.96),rgba(20,51,38,.96));box-shadow:0 8px 24px #081a1199;text-align:left;text-shadow:0 2px 4px #07150c}.planet-obby-hud .planet-obby-play.is-hard{border-color:#f2d39b;background:linear-gradient(145deg,rgba(119,75,38,.97),rgba(54,35,26,.97))}.planet-obby-hud .planet-obby-play b{display:block;font-size:18px}.planet-obby-hud .planet-obby-play small{font-size:12px;color:#e6f4e1}.planet-obby-hud .planet-obby-exit{min-width:190px;min-height:56px;margin-top:8px;padding:12px 20px;border:2px solid rgba(255,255,255,.82);border-radius:14px;background:rgba(17,36,31,.92);box-shadow:0 7px 20px #07140daa;font-size:16px;font-weight:800}@media(max-width:650px){.planet-obby-choices{gap:8px}.planet-obby-hud .planet-obby-play{min-width:min(210px,88vw);min-height:60px}.planet-obby-hud .planet-obby-exit{min-width:180px}}
.planet-obby-hud.is-running .planet-obby-exit{min-width:0;min-height:36px;margin:0;padding:4px 7px;border:0;border-radius:0;background:none;box-shadow:none;font-size:12px;font-weight:650;opacity:.72;text-shadow:0 1px 4px #000}.planet-obby-hud.is-running .planet-obby-exit:hover,.planet-obby-hud.is-running .planet-obby-exit:focus-visible{opacity:1}@media(max-width:650px){.planet-obby-hud.is-running{left:8px;bottom:max(88px,calc(env(safe-area-inset-bottom) + 72px))}.planet-obby-hud.is-running .planet-obby-exit{min-width:0;font-size:11px;padding:3px 5px}}
.planet-cinema-frame{position:absolute;inset:0;z-index:66;pointer-events:none;border-block:6vh solid #06090d}.planet-cinema-frame button{position:absolute;right:20px;bottom:-4.5vh;pointer-events:auto;border:0;background:none;color:white;cursor:pointer}
.planet-hazard-hint{position:absolute;top:164px;left:50%;transform:translateX(-50%);color:#ffe3b4;font-size:13px;text-shadow:0 2px 5px #000;pointer-events:none;z-index:24;max-width:58%;text-align:center}@media(max-width:650px){.planet-hazard-hint{top:185px;max-width:56%;font-size:11px}}

/* A course should explain its state before asking for the next jump. */
.planet-obby-hud .obby-summary{display:flex;align-items:center;gap:10px;text-align:left;margin:0 0 12px}
.obby-summary>span{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:12px;background:#65875533;font-size:25px}
.obby-summary>div{display:grid;gap:5px;flex:1}.obby-summary div>small{color:#b8d19b;font-size:8px;font-weight:800;letter-spacing:1px}.obby-summary b{font-size:14px;color:#f1f5df}
.obby-summary>strong{display:grid;gap:1px;color:#d6efb6;font-size:23px;line-height:1}.obby-summary>strong small{font-size:8px;letter-spacing:1px}.obby-summary>strong.is-urgent{color:#ffc791}
.obby-progress{height:5px;border-radius:8px;overflow:hidden;background:#e0ecc722}.obby-progress>span{display:block;height:100%;background:linear-gradient(90deg,#9dce8b,#d6ecaa);border-radius:8px;transition:width .2s}
.obby-readouts{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin:9px 0 12px;color:#c4cfba;font-size:10px}.obby-readouts>span:last-child{width:100%;color:#a3b59a;font-size:9px}.obby-intro{font-size:12px!important;line-height:1.6!important;color:#d3dec5!important;margin:4px 0 14px!important}
.planet-obby-hud{min-width:min(330px,calc(100vw - 32px))}
.game-shell:has(.planet-live-map) .journey-tracker{max-width:230px}
@media(max-width:600px){.planet-obby-hud{min-width:0;width:min(340px,calc(100vw - 24px))}.obby-summary b{font-size:12px}.game-shell:has(.planet-live-map) .journey-tracker{visibility:hidden}}
:root {
  --ink: #3f3a41;
  --muted: #776f76;
  --cream: #fffaf2;
  --cream-strong: #fffdf8;
  --sage: #809576;
  --sage-dark: #5f7758;
  --peach: #e7a081;
  --rose: #cf8197;
  --lavender: #9e8bb9;
  --sky: #86afc5;
  --gold: #efc664;
  --glass: rgba(255, 251, 244, 0.88);
  --glass-strong: rgba(255, 252, 247, 0.96);
  --hairline: rgba(77, 65, 70, 0.1);
  --shadow-soft: 0 18px 60px rgba(42, 51, 45, 0.18);
  --shadow-card: 0 10px 30px rgba(52, 46, 51, 0.12);
  color-scheme: light;
  font-family: "Avenir Next Rounded", "Nunito Sans", "Trebuchet MS", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background: #dbe6cc;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

button,
select,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(78, 124, 146, 0.55);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.multiplayer-lobby {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 6px;
}

.player-name-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  text-align: left;
}

.player-name-field > span,
.join-private-server label > span {
  color: #664f4e;
  font-size: 12px;
  font-weight: 900;
}

.multiplayer-lobby input {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 2px solid rgba(141, 91, 94, 0.18);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 800;
}

.multiplayer-lobby .primary-play {
  grid-column: 1 / -1;
  min-height: 58px;
}

.private-server-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 9px 20px rgba(91, 69, 98, 0.17);
  font-size: 11px;
  font-weight: 900;
}

.private-server-button span {
  font-size: 18px;
  line-height: 1;
}

.create-server-button {
  background: linear-gradient(135deg, #a6709d, #7c6a9b);
}

.join-server-button {
  background: linear-gradient(135deg, #6c8fa3, #617889);
}

.join-private-server {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(113, 91, 113, 0.14);
  border-radius: 17px;
  background: rgba(246, 241, 250, 0.84);
}

.join-private-server label {
  display: grid;
  gap: 5px;
}

.join-private-server > button {
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #765f88;
  font-size: 11px;
  font-weight: 900;
}

.multiplayer-lobby p {
  grid-column: 1 / -1;
  margin: 2px 2px 0;
  color: #9a6d60;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}
.multiplayer-lobby p.is-online { color: #4e7c62; }

.multiplayer-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 15px;
  color: #3e6852;
  background: rgba(235, 250, 239, 0.9);
  box-shadow: var(--shadow-card);
}
.multiplayer-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fbd78;
  box-shadow: 0 0 0 4px rgba(79,189,120,.14);
}
.multiplayer-pill small { font-size: 9px; font-weight: 900; letter-spacing: .08em; }

.private-server-invite {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(43, 34, 43, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.private-server-invite > section {
  width: min(440px, 100%);
  padding: 28px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  color: #674d57;
  background:
    radial-gradient(circle at 92% 3%, rgba(245, 190, 208, 0.45), transparent 35%),
    #fffaf6;
  box-shadow: 0 28px 90px rgba(47, 31, 44, 0.35);
  text-align: center;
  animation: panel-up 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.private-server-invite-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #f7e4ef;
  font-size: 26px;
}

.private-server-invite > section > small {
  color: #a46b80;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.private-server-invite h2 {
  margin: 5px 0 18px;
  font-size: 23px;
  line-height: 1.15;
}

.private-server-code {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 17px;
  border: 2px dashed rgba(173, 98, 129, 0.42);
  border-radius: 20px;
  color: #765168;
  background: rgba(255, 237, 246, 0.72);
}

.private-server-code strong {
  font-size: clamp(30px, 9vw, 44px);
  letter-spacing: 0.15em;
  line-height: 1;
}

.private-server-code span {
  color: #987786;
  font-size: 11px;
  font-weight: 750;
}

.private-server-invite-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.private-server-invite-actions button {
  min-height: 47px;
  padding: 0 12px;
  border: 0;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 900;
}

.private-server-invite-actions button:first-child {
  color: #fff;
  background: linear-gradient(135deg, #d97088, #a86c9d);
}

.private-server-invite-actions button:last-child {
  color: #684f59;
  background: #eee4e3;
}

.pet-trade-overlay {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(38, 34, 48, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pet-trade-dialog {
  width: min(520px, 100%);
  padding: 25px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 29px;
  color: #594b63;
  background:
    radial-gradient(circle at 95% 3%, rgba(183, 230, 211, 0.54), transparent 34%),
    radial-gradient(circle at 3% 96%, rgba(231, 199, 244, 0.48), transparent 35%),
    #fffaf7;
  box-shadow: 0 28px 90px rgba(40, 30, 48, 0.36);
  text-align: center;
  animation: panel-up 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pet-trade-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: rgba(226, 244, 235, 0.88);
  font-size: 22px;
}

.pet-trade-dialog > small {
  color: #8e729c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pet-trade-dialog h2 {
  margin: 4px 0 16px;
  font-size: 22px;
}

.pet-trade-dialog > p {
  margin: 13px 0 0;
  color: #817585;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.pet-trade-offers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.pet-trade-offers > i {
  color: #9676a8;
  font-size: 21px;
  font-style: normal;
  font-weight: 900;
}

.pet-trade-offers article {
  display: grid;
  gap: 3px;
  min-height: 142px;
  align-content: center;
  padding: 13px 9px;
  border: 1px solid rgba(111, 87, 125, 0.13);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.72);
}

.pet-trade-offers article > span {
  font-size: 39px;
}

.pet-trade-offers article > small,
.pet-trade-request small {
  color: #99899e;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pet-trade-offers article > b {
  font-size: 11px;
  line-height: 1.3;
}

.pet-trade-offers article > em {
  width: fit-content;
  margin: 4px auto 0;
  padding: 4px 7px;
  border-radius: 999px;
  color: #5d806d;
  background: rgba(183, 224, 203, 0.35);
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.pet-trade-offers article.is-waiting {
  opacity: 0.7;
}

.pet-trade-request {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 19px;
  background: rgba(236, 226, 245, 0.65);
  text-align: left;
}

.pet-trade-request > span {
  font-size: 42px;
}

.pet-trade-request > div {
  display: grid;
  gap: 3px;
}

.pet-trade-request b {
  font-size: 13px;
}

.pet-trade-select {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  text-align: left;
}

.pet-trade-select span,
.pet-trade-launch-controls label > span {
  color: #77687c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pet-trade-select select,
.pet-trade-launch-controls select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(100, 80, 113, 0.16);
  border-radius: 12px;
  color: #5f5066;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

.pet-trade-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.pet-trade-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #7da989, #8175ad);
  font-size: 10px;
  font-weight: 900;
}

.pet-trade-actions button.is-secondary {
  color: #685b6d;
  background: #eee7ea;
}

.pet-trade-actions button:disabled {
  color: #918993;
  background: #e6e1e4;
}

.pet-trade-dialog-v2 {
  width: min(760px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.pet-trade-dialog-v2 .pet-trade-icon {
  color: #fff;
  background: linear-gradient(135deg, #7c68b1, #5ca386);
  box-shadow: 0 10px 24px rgba(100, 87, 144, 0.24);
  font-size: 34px;
  font-weight: 950;
}

.pet-trade-dialog-v2 .pet-trade-offers article {
  min-height: 188px;
  align-content: start;
  gap: 8px;
}

.pet-trade-bundle-list {
  display: grid;
  gap: 6px;
  width: 100%;
}

.pet-trade-bundle-list > span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(240, 234, 244, 0.72);
  text-align: left;
}

.pet-trade-bundle-list > span i {
  font-size: 20px;
  font-style: normal;
  text-align: center;
}

.pet-trade-bundle-list > span b {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-trade-bundle-list > strong {
  padding: 8px;
  border-radius: 11px;
  color: #3569a3;
  background: rgba(188, 220, 255, 0.48);
  font-size: 11px;
}

.pet-trade-builder {
  display: grid;
  gap: 12px;
  text-align: left;
}

.pet-trade-partner-select,
.pet-trade-gem-builder label {
  display: grid;
  gap: 5px;
}

.pet-trade-partner-select > span,
.pet-trade-gem-builder label > span,
.pet-trade-incoming-bundle > small {
  color: #77687c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pet-trade-partner-select select,
.pet-trade-gem-builder input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(100, 80, 113, 0.17);
  border-radius: 12px;
  color: #5f5066;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
}

.pet-trade-builder-summary {
  display: flex;
  gap: 8px;
}

.pet-trade-builder-summary span {
  flex: 1;
  padding: 9px 12px;
  border-radius: 12px;
  color: #74637d;
  background: rgba(235, 227, 241, 0.68);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.pet-trade-pet-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 2px;
}

.pet-trade-pet-picker > button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 7px;
  min-height: 67px;
  padding: 8px;
  border: 2px solid rgba(111, 88, 124, 0.1);
  border-radius: 15px;
  color: #66576d;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.pet-trade-pet-picker > button > span {
  grid-row: 1 / 3;
  font-size: 28px;
  text-align: center;
}

.pet-trade-pet-picker > button > b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-trade-pet-picker > button > small {
  color: #948799;
  font-size: 7px;
}

.pet-trade-pet-picker > button > i {
  grid-column: 3;
  grid-row: 1 / 3;
  padding: 4px 6px;
  border-radius: 999px;
  color: #83778a;
  background: #eee9ef;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.pet-trade-pet-picker > button.is-selected {
  border-color: #69a788;
  background: linear-gradient(145deg, rgba(222, 246, 232, 0.95), rgba(237, 230, 249, 0.92));
  box-shadow: 0 8px 20px rgba(83, 137, 105, 0.14);
}

.pet-trade-pet-picker > button.is-selected > i {
  color: #fff;
  background: #65a482;
}

.pet-trade-pet-picker > p {
  grid-column: 1 / -1;
  margin: 8px;
  color: #87798c;
  font-size: 10px;
  text-align: center;
}

.pet-trade-gem-builder {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 11px;
  border-radius: 15px;
  background: rgba(219, 237, 255, 0.5);
}

.pet-trade-gem-builder > div {
  display: flex;
  gap: 5px;
}

.pet-trade-gem-builder button {
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  color: #4f6f96;
  background: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  font-weight: 900;
}

.pet-trade-incoming-bundle {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(116, 87, 139, 0.14);
  border-radius: 15px;
  background: rgba(239, 230, 247, 0.62);
}

.pet-trade-incoming-bundle > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pet-trade-incoming-bundle span,
.pet-trade-incoming-bundle strong {
  padding: 5px 8px;
  border-radius: 999px;
  color: #695975;
  background: rgba(255, 255, 255, 0.78);
  font-size: 8px;
}

.hide-and-seek-card {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  max-width: 254px;
  padding: 5px 7px 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 16px;
  color: #664e63;
  background: rgba(255, 243, 244, 0.92);
  box-shadow: var(--shadow-card);
}
.hide-and-seek-card > span { font-size: 19px; line-height: 1; }
.hide-and-seek-card > div { display: grid; min-width: 0; flex: 1; gap: 1px; }
.hide-and-seek-card b { overflow: hidden; font-size: 10px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.hide-and-seek-card small { overflow: hidden; color: #94747f; font-size: 8px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.hide-and-seek-card button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #d77287, #b8759d);
  box-shadow: 0 4px 10px rgba(173, 90, 119, .2);
  font-size: 8px;
  font-weight: 900;
}
.hide-and-seek-card button:disabled { color: #9b8990; background: rgba(220, 206, 210, .8); box-shadow: none; }
.hide-and-seek-card.is-hiding { background: rgba(244, 237, 255, .94); }
.hide-and-seek-card.is-hiding button { background: linear-gradient(135deg, #8a79be, #6f83b8); }
.hide-and-seek-card.is-seeking { background: rgba(237, 251, 244, .94); }
.hide-and-seek-card.is-seeking button { background: linear-gradient(135deg, #5f9d84, #4f857e); }
.hide-and-seek-card.is-found,
.hide-and-seek-card.is-escaped { background: rgba(235, 255, 244, .95); }

.hide-seek-invite-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 25, 43, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hide-seek-invite-dialog {
  width: min(570px, 100%);
  padding: 28px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  color: #4f405d;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 218, 232, 0.82), transparent 35%),
    radial-gradient(circle at 96% 96%, rgba(208, 239, 223, 0.9), transparent 38%),
    #fffaf5;
  box-shadow: 0 30px 100px rgba(40, 25, 49, 0.45);
  text-align: center;
  animation: panel-up 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hide-seek-invite-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 25px;
  background: linear-gradient(145deg, #f8d0df, #d7c8ef);
  box-shadow: 0 12px 25px rgba(124, 83, 132, 0.18);
  font-size: 38px;
}

.hide-seek-invite-alert {
  display: block;
  margin-top: 4px;
  color: #b66084;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.2em;
}

.hide-seek-invite-dialog h2 {
  margin: 3px 0 0;
  color: #513d62;
  font-size: clamp(35px, 8vw, 54px);
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hide-seek-invite-dialog h3 {
  margin: 9px 0 5px;
  color: #6e5a7a;
  font-size: 17px;
}

.hide-seek-invite-dialog > p {
  max-width: 445px;
  margin: 0 auto 18px;
  color: #807284;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.55;
}

.hide-seek-ready-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
}

.hide-seek-ready-list > span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 8px;
  min-height: 64px;
  padding: 9px;
  border: 1px solid rgba(92, 72, 107, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.hide-seek-ready-list i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #94899b;
  background: #eee8ef;
  font-size: 14px;
  font-style: normal;
  font-weight: 1000;
}

.hide-seek-ready-list b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hide-seek-ready-list small {
  color: #998c9d;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.hide-seek-ready-list > span.is-ready {
  border-color: rgba(78, 158, 118, 0.22);
  background: rgba(224, 247, 233, 0.78);
}

.hide-seek-ready-list > span.is-ready i {
  color: #fff;
  background: #66a982;
  box-shadow: 0 5px 12px rgba(67, 143, 101, 0.25);
}

.hide-seek-ready-list > span.is-ready small { color: #4b8d69; }

.hide-seek-ready-list > span.is-declined {
  border-color: rgba(190, 87, 126, 0.18);
  background: rgba(255, 230, 238, 0.7);
}

.hide-seek-ready-list > span.is-declined i {
  color: #fff;
  background: #d26d92;
}

.hide-seek-ready-list > span.is-declined small { color: #b45779; }

.hide-seek-invite-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hide-seek-invite-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #d4688d, #8e72b2);
  box-shadow: 0 11px 25px rgba(148, 76, 117, 0.25);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.025em;
}

.hide-seek-invite-actions button.is-secondary {
  color: #65586c;
  background: #eae4e9;
  box-shadow: none;
}

.hide-seek-invite-actions button:disabled,
.laser-tag-invite-actions button:disabled,
.car-race-invite-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: saturate(0.35);
  box-shadow: none;
}

.laser-tag-start-card {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  max-width: 272px;
  padding: 5px 7px 5px 9px;
  border: 1px solid rgba(197, 246, 255, 0.7);
  border-radius: 16px;
  color: #eafdff;
  background: linear-gradient(135deg, rgba(28, 31, 72, 0.94), rgba(60, 30, 87, 0.92));
  box-shadow: 0 10px 32px rgba(10, 15, 43, 0.35), inset 0 0 22px rgba(67, 231, 255, 0.1);
}

.laser-tag-start-card > span {
  color: #70efff;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 0 7px #5ee8ff);
}

.laser-tag-start-card > div {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.laser-tag-start-card b {
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.laser-tag-start-card small {
  overflow: hidden;
  color: #b9c9ed;
  font-size: 8px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.laser-tag-start-card button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(180, 249, 255, 0.45);
  border-radius: 10px;
  color: #11264b;
  background: linear-gradient(135deg, #78f1ff, #d980ff);
  box-shadow: 0 0 14px rgba(80, 225, 255, 0.28);
  font-size: 8px;
  font-weight: 950;
}

.laser-tag-start-card button:disabled {
  color: #8890a9;
  background: #3d405a;
  box-shadow: none;
}

.laser-tag-invite-overlay {
  position: absolute;
  inset: 0;
  z-index: 44;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 10, 28, 0.62);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.laser-tag-invite-dialog {
  width: min(500px, 100%);
  padding: 26px;
  border: 1px solid rgba(131, 240, 255, 0.65);
  border-radius: 28px;
  color: #f4fbff;
  background:
    radial-gradient(circle at 10% 5%, rgba(80, 235, 255, 0.23), transparent 34%),
    radial-gradient(circle at 96% 100%, rgba(235, 85, 255, 0.2), transparent 40%),
    linear-gradient(145deg, #171b3f, #301d48);
  box-shadow: 0 28px 90px rgba(3, 6, 24, 0.62), inset 0 0 34px rgba(94, 226, 255, 0.07);
  text-align: center;
  animation: panel-up 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.laser-tag-invite-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  border: 1px solid rgba(138, 245, 255, 0.55);
  border-radius: 20px;
  color: #73f2ff;
  background: rgba(79, 224, 255, 0.1);
  box-shadow: 0 0 25px rgba(73, 228, 255, 0.22);
  font-size: 29px;
  filter: drop-shadow(0 0 8px #66efff);
}

.laser-tag-invite-dialog > small {
  color: #9ee9f5;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.laser-tag-invite-dialog h2 {
  margin: 5px 0 8px;
  font-size: 24px;
}

.laser-tag-invite-dialog > p {
  max-width: 390px;
  margin: 0 auto 16px;
  color: #c1c9e4;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.laser-tag-ready-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.laser-tag-ready-list > span {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 8px;
  min-height: 56px;
  padding: 8px;
  border: 1px solid rgba(178, 195, 235, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.laser-tag-ready-list i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #8e96b5;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.laser-tag-ready-list b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.laser-tag-ready-list small {
  color: #a9b1cc;
  font-size: 8px;
  font-weight: 800;
}

.laser-tag-ready-list > span.is-ready i {
  color: #102f37;
  background: #6deeff;
  box-shadow: 0 0 13px rgba(78, 232, 255, 0.5);
}

.laser-tag-ready-list > span.is-ready small { color: #7aeef5; }
.laser-tag-ready-list > span.is-declined i { color: #fff; background: #d76491; }
.laser-tag-ready-list > span.is-declined small { color: #ef91b6; }

.laser-tag-invite-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.laser-tag-invite-actions button {
  min-height: 47px;
  border: 1px solid rgba(166, 244, 255, 0.5);
  border-radius: 14px;
  color: #122744;
  background: linear-gradient(135deg, #6ceaff, #d578ff);
  font-size: 11px;
  font-weight: 950;
}

.laser-tag-invite-actions button.is-secondary {
  color: #d7dbed;
  background: rgba(255, 255, 255, 0.09);
}

.laser-tag-hud {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  width: min(430px, calc(100% - 28px));
  padding: 10px;
  border: 1px solid rgba(115, 239, 255, 0.52);
  border-radius: 19px;
  color: #f5fdff;
  background: linear-gradient(135deg, rgba(25, 75, 88, 0.88), rgba(91, 48, 77, 0.86));
  box-shadow: 0 10px 34px rgba(3, 7, 25, 0.34), inset 0 0 24px rgba(126, 244, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.laser-tag-hud > header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.laser-tag-hud > header > span {
  color: #6deeff;
  font-size: 22px;
  filter: drop-shadow(0 0 7px #55e9ff);
}

.laser-tag-hud > header > div {
  display: grid;
  min-width: 0;
  flex: 1;
}

.laser-tag-hud > header small {
  color: #99e8f3;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.laser-tag-hud > header b {
  font-size: 18px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.laser-tag-hud > header button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 162, 202, 0.38);
  border-radius: 10px;
  color: #ffdbea;
  background: rgba(186, 67, 118, 0.28);
  font-size: 8px;
  font-weight: 900;
}

.laser-tag-scoreboard {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.laser-tag-scoreboard > span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.laser-tag-scoreboard > span.is-you {
  background: rgba(83, 225, 247, 0.15);
  box-shadow: inset 0 0 0 1px rgba(103, 234, 255, 0.2);
}

.laser-tag-scoreboard i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #112743;
  background: #7eeeff;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
}

.laser-tag-scoreboard b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.laser-tag-scoreboard strong {
  color: #f3c6ff;
  font-size: 15px;
}

.laser-tag-hud > p {
  display: flex;
  justify-content: space-between;
  margin: 7px 2px 0;
  color: #aab7d5;
  font-size: 8px;
  font-weight: 800;
}

.laser-tag-hud > p span { color: #78eaf5; }

.car-race-start-card {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  max-width: 276px;
  padding: 5px 7px 5px 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 16px;
  color: #17466d;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .8), transparent 32%),
    linear-gradient(135deg, rgba(112, 233, 255, .96), rgba(255, 226, 93, .96) 55%, rgba(255, 143, 183, .96));
  box-shadow: 0 10px 28px rgba(25, 105, 139, .22), inset 0 1px rgba(255, 255, 255, .7);
}

.car-race-start-card > span {
  font-size: 21px;
  line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(20, 74, 111, .2));
}

.car-race-start-card > div {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.car-race-start-card b {
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.car-race-start-card small {
  overflow: hidden;
  color: #47718b;
  font-size: 8px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-race-start-card button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff4e91, #765de8);
  box-shadow: 0 5px 13px rgba(111, 72, 181, .25);
  font-size: 8px;
  font-weight: 950;
}

.car-race-start-card button:disabled {
  color: #8795a1;
  background: rgba(229, 235, 236, .92);
  box-shadow: none;
}

.car-race-invite-overlay {
  position: absolute;
  inset: 0;
  z-index: 47;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(83, 232, 255, .28), transparent 32%),
    radial-gradient(circle at 90% 88%, rgba(255, 83, 163, .28), transparent 36%),
    rgba(13, 39, 64, .68);
  backdrop-filter: blur(15px) saturate(1.2);
  -webkit-backdrop-filter: blur(15px) saturate(1.2);
}

.race-course-picker-overlay {
  position: absolute;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
  background:
    radial-gradient(circle at 14% 10%, rgba(76, 232, 255, .28), transparent 34%),
    radial-gradient(circle at 87% 84%, rgba(255, 77, 158, .25), transparent 38%),
    rgba(10, 22, 48, .78);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
}

.race-course-picker {
  width: min(880px, 100%);
  padding: 25px;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 32px;
  color: #645464;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 237, 178, .35), transparent 42%),
    linear-gradient(155deg, #fff9ec, #f2e8da 44%, #f3e4ec);
  box-shadow: 0 35px 120px rgba(4, 14, 39, .62);
  text-align: center;
  animation: race-dialog-pop 360ms cubic-bezier(.15, 1.2, .3, 1) both;
}

.race-course-picker > header small {
  color: #e64088;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .22em;
}

.race-course-picker > header h2 {
  margin: 2px 0 3px;
  color: #645464;
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 1000;
  letter-spacing: -.045em;
  line-height: 1;
}

.race-course-picker > header p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: #688297;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.5;
}

.race-course-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.race-course-picker:has(.race-course-card:only-child) { width:min(560px,100%); }
.race-course-options:has(.race-course-card:only-child) { grid-template-columns:minmax(0,1fr); }

.race-course-card {
  position: relative;
  display: grid;
  justify-items: start;
  min-height: 305px;
  padding: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 25px;
  color: #695467;
  background: linear-gradient(150deg, #fffaee, #f4dfdf);
  box-shadow: 0 15px 34px rgba(27, 80, 112, .16);
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.race-course-card:hover,
.race-course-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(22, 71, 109, .25);
}

.race-course-card.is-advanced {
  color: #4c685e;
  background: linear-gradient(145deg, #f2f3de, #d5e2d3);
  box-shadow: 0 18px 42px rgba(72, 86, 68, .18);
}

.race-ticket-illustration { width:100%; height:auto; max-height:148px; margin:0 0 13px; border-radius:20px; }

.race-course-card-art {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 9px 22px rgba(25, 76, 112, .18);
  font-size: 31px;
}

.race-course-card.is-advanced .race-course-card-art {
  background: linear-gradient(145deg, #5ff4ff, #ff5daf);
  box-shadow: 0 0 26px rgba(95, 244, 255, .38);
}

.race-course-card > small {
  color: #e04282;
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: .13em;
}

.race-course-card.is-advanced > small { color: #819b74; }

.race-course-card > strong {
  margin: 2px 0 8px;
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -.04em;
  line-height: 1;
}

.race-course-card > p {
  margin: 0 0 14px;
  color: #668195;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.48;
}

.race-course-card.is-advanced > p { color: #738574; }

.race-course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-self: end;
}

.race-course-stats b {
  padding: 6px 8px;
  border-radius: 9px;
  color: #38708e;
  background: rgba(255, 255, 255, .72);
  font-size: 8px;
}

.race-course-card.is-advanced .race-course-stats b {
  color: #68816f;
  background: rgba(255, 255, 255, .52);
}

.race-course-card > em {
  margin-top: 13px;
  color: #775da5;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.race-course-card.is-advanced > em { color: #8a815b; }

.race-course-picker-close {
  min-width: 180px;
  min-height: 42px;
  margin-top: 17px;
  border: 0;
  border-radius: 14px;
  color: #526f82;
  background: #e3edf2;
  font-size: 10px;
  font-weight: 950;
}

.car-race-invite-dialog {
  position: relative;
  width: min(610px, 100%);
  padding: 0 30px 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .94);
  border-radius: 34px;
  color: #17435f;
  background:
    radial-gradient(circle at 92% 42%, rgba(255, 223, 83, .34), transparent 32%),
    linear-gradient(160deg, #f7ffff 0%, #eefbff 42%, #fff5e9 100%);
  box-shadow: 0 35px 110px rgba(8, 29, 55, .55), inset 0 0 0 1px rgba(24, 121, 164, .08);
  text-align: center;
  animation: race-dialog-pop 360ms cubic-bezier(.15, 1.2, .3, 1) both;
}

.car-race-invite-art {
  position: relative;
  height: 142px;
  margin: 0 -30px 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, #fff7ad 0 8%, rgba(255, 244, 153, 0) 9%),
    linear-gradient(#55d4fa 0 59%, #71d890 60% 100%);
  isolation: isolate;
}

.car-race-invite-art::before,
.car-race-invite-art::after {
  position: absolute;
  bottom: 33px;
  z-index: 0;
  width: 190px;
  height: 70px;
  border-radius: 50% 50% 0 0;
  background: #49ba77;
  content: "";
}

.car-race-invite-art::before { left: -22px; transform: rotate(5deg); }
.car-race-invite-art::after { right: -25px; background: #58c985; transform: rotate(-5deg); }

.race-art-cloud {
  position: absolute;
  z-index: 1;
  width: 49px;
  height: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 15px -8px 0 -2px rgba(255, 255, 255, .9), 29px 0 0 -5px rgba(255, 255, 255, .9);
}

.race-art-cloud.is-one { top: 29px; left: 12%; }
.race-art-cloud.is-two { top: 18px; right: 17%; transform: scale(.72); opacity: .82; }

.race-art-road {
  position: absolute;
  right: -34px;
  bottom: -15px;
  left: -34px;
  z-index: 2;
  height: 87px;
  overflow: hidden;
  border-top: 5px solid #fff;
  background:
    linear-gradient(90deg, transparent 0 47%, #fff 47% 53%, transparent 53%) 0 50% / 76px 5px repeat-x,
    #3f5770;
  transform: perspective(240px) rotateX(27deg);
  transform-origin: bottom;
}

.race-art-road::after {
  position: absolute;
  inset: 8px 0 auto;
  height: 3px;
  background: repeating-linear-gradient(90deg, #fff 0 22px, transparent 22px 42px);
  content: "";
  opacity: .65;
}

.race-art-car {
  position: absolute;
  z-index: 2;
  font-size: 45px;
  font-style: normal;
  line-height: 1;
  transform: scaleX(-1) rotate(-3deg);
  filter: drop-shadow(0 8px 5px rgba(10, 27, 43, .34));
}

.race-art-car.is-pink {
  right: 47%;
  bottom: 12px;
  animation: race-car-bob 650ms ease-in-out infinite alternate;
}

.race-art-car.is-blue {
  right: 17%;
  bottom: 43px;
  font-size: 37px;
  filter: hue-rotate(135deg) drop-shadow(0 7px 4px rgba(10, 27, 43, .3));
  animation: race-car-bob 720ms 110ms ease-in-out infinite alternate;
}

.race-art-road > b {
  position: absolute;
  top: 4px;
  left: 9%;
  font-size: 36px;
  transform: rotate(5deg);
  filter: drop-shadow(0 5px 3px rgba(16, 32, 46, .26));
}

.car-race-invite-alert {
  display: block;
  color: #ee4284;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .22em;
}

.car-race-invite-dialog h2 {
  margin: 1px 0 0;
  color: #174c71;
  font-size: clamp(35px, 7.5vw, 52px);
  font-weight: 1000;
  letter-spacing: -.055em;
  line-height: .98;
  text-shadow: 0 3px rgba(255, 255, 255, .8);
}

.car-race-invite-dialog h3 {
  margin: 7px 0 4px;
  color: #326681;
  font-size: 16px;
}

.car-race-invite-dialog > p {
  max-width: 500px;
  margin: 0 auto 12px;
  color: #617f91;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.5;
}

.car-race-feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 13px;
}

.car-race-feature-row > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid rgba(46, 124, 161, .1);
  border-radius: 12px;
  color: #365f76;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 4px 10px rgba(52, 105, 129, .07);
}

.car-race-feature-row i {
  font-size: 15px;
  font-style: normal;
}

.car-race-feature-row b {
  font-size: 8px;
}

.car-race-ready-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 8px;
}

.car-race-ready-list > span {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 8px;
  min-height: 59px;
  padding: 8px;
  border: 1px solid hsla(var(--racer-hue), 52%, 52%, .2);
  border-radius: 16px;
  background: hsla(var(--racer-hue), 76%, 95%, .64);
  text-align: left;
}

.car-race-ready-list i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: hsla(var(--racer-hue), 45%, 43%, .8);
  background: hsla(var(--racer-hue), 70%, 87%, .72);
  font-size: 13px;
  font-style: normal;
  font-weight: 1000;
}

.car-race-ready-list b {
  overflow: hidden;
  color: #345a70;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-race-ready-list small {
  color: #8296a2;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .05em;
}

.car-race-ready-list > span.is-ready {
  border-color: #5fd7b0;
  background: #e7fff5;
  box-shadow: inset 0 0 0 1px rgba(90, 211, 169, .12);
}

.car-race-ready-list > span.is-ready i {
  color: #fff;
  background: linear-gradient(145deg, #65dcad, #43bfa6);
  box-shadow: 0 5px 12px rgba(43, 172, 139, .25);
}

.car-race-ready-list > span.is-ready small { color: #319979; }
.car-race-ready-list > span.is-declined { border-color: #f3a1be; background: #fff0f5; }
.car-race-ready-list > span.is-declined i { color: #fff; background: #df5d91; }
.car-race-ready-list > span.is-declined small { color: #c64f7d; }

.car-race-invite-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.car-race-invite-actions button {
  min-height: 52px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff4d93, #8360e8);
  box-shadow: 0 10px 22px rgba(121, 73, 177, .25);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .035em;
}

.car-race-invite-actions button.is-secondary {
  border-color: rgba(45, 102, 130, .12);
  color: #516e7e;
  background: #e7f0f3;
  box-shadow: none;
}

.car-race-hud {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 14;
  display: grid;
  grid-template-columns: 92px minmax(300px, 630px) auto;
  align-items: stretch;
  gap: 8px;
  width: min(870px, calc(100% - 26px));
  color: #665466;
  transform: translateX(-50%);
}

/* Little racing toys: the track remains visible while driving. */
.race-route { position:absolute; right:max(20px, env(safe-area-inset-right)); bottom:24px; z-index:6; width:132px; padding:5px 7px 9px; border-radius:25px; background:rgba(255,246,225,.92); border:2px solid rgba(255,255,255,.85); box-shadow:0 8px 25px #4e566825; pointer-events:none; text-align:center; color:#655969; }
.race-route svg { width:100%; display:block; overflow:visible; }
.race-route small { font:800 10px/1.2 system-ui,sans-serif; }
.race-route path { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.race-route-border { stroke:#ddcbb5; stroke-width:8; }
.race-route-road { stroke:#fffdf4; stroke-width:4; }
.race-route circle { fill:#c4b8ad; }
.race-route circle.is-passed { fill:#8ab9a8; }
.race-route circle.is-next { fill:#e4b54e; stroke:#fff; stroke-width:1; }
.race-route circle.race-route-you { fill:#da799b; stroke:white; stroke-width:2; }
.race-route-finish { fill:#6f6475; stroke:#fff; stroke-width:1; }
.race-play-controls { position:absolute; right:max(24px, env(safe-area-inset-right)); bottom:199px; display:flex; gap:9px; align-items:center; z-index:7; }
.race-play-controls button { touch-action:none; user-select:none; -webkit-tap-highlight-color:transparent; border:2px solid #fff8ed; color:#68576b; background:#fff2deed; box-shadow:0 8px 24px #3b414c25; cursor:pointer; }
.race-play-controls button:disabled { opacity:.55; cursor:default; }
.race-drift { display:grid; grid-template-columns:24px auto; gap:2px 4px; width:94px; min-height:77px; border-radius:26px; padding:9px; }
.race-drift > span { grid-row:span 2; font-size:26px; align-self:center; color:#d989a4; }
.race-drift b { font-size:14px; }
.race-drift small { font-size:8px; letter-spacing:.09em; }
.race-drift > i { grid-column:span 2; height:5px; border-radius:5px; background:#dbcdbd; overflow:hidden; }
.race-drift em { height:100%; display:block; border-radius:inherit; background:#e8b766; transition:width 100ms linear; }
.race-drift.is-drifting { background:#ffecd0; }
.race-drift.is-charged { background:#d2efdf; border-color:#fff; }
.race-drift.is-charged em { background:#82bfae; }
.race-reset { width:43px; height:43px; border-radius:50%; display:grid; place-content:center; font-size:23px; line-height:.9; }
.race-reset small { margin-top:2px; font-size:7px; }
.race-play-pulse { position:absolute; top:145px; left:50%; transform:translateX(-50%); z-index:6; color:#fff4d0; text-shadow:0 2px 5px #70504b80; font:900 clamp(18px,3vw,30px)/1.2 system-ui,sans-serif; letter-spacing:.06em; pointer-events:none; animation:race-play-pop 1.2s both; }
.race-play-pulse.is-boost { color:#aff0d6; }
@keyframes race-play-pop { 0% { opacity:0; translate:0 12px; scale:.8; } 18%,65% { opacity:1; translate:0 0; scale:1; } 100% { opacity:0; translate:0 -12px; } }
@media (max-width:680px) {
  .race-route { right:12px; bottom:18px; width:100px; border-radius:21px; }
  .race-play-controls { right:14px; bottom:166px; gap:7px; }
  .race-drift { width:86px; min-height:72px; }
  .race-reset { width:37px; height:37px; }
  .race-play-pulse { top:135px; white-space:nowrap; }
  .is-car-race .car-race-live-standings { top:152px; }
}
@media (max-height:500px) and (min-width:681px) {
  .race-route { width:94px; bottom:10px; }
  .race-play-controls { bottom:134px; }
}
@media (prefers-reduced-motion:reduce) { .race-play-pulse { animation:none; } }

.car-race-place,
.car-race-center-stack,
.car-race-end {
  border: 2px solid rgba(255, 255, 255, .62);
  box-shadow: 0 10px 28px rgba(10, 37, 63, .32), inset 0 1px rgba(255, 255, 255, .38);
  backdrop-filter: blur(15px) saturate(1.15);
  -webkit-backdrop-filter: blur(15px) saturate(1.15);
}

.car-race-place {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 96px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 5%, rgba(255, 255, 255, .5), transparent 32%),
    linear-gradient(145deg, #d88eaa, #b68caf);
  text-align: center;
}

.car-race-place small {
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: .2em;
}

.car-race-place strong {
  margin-top: -2px;
  font-size: 35px;
  font-weight: 1000;
  letter-spacing: -.07em;
  line-height: 1;
  text-shadow: 0 4px 0 rgba(72, 37, 135, .25);
}

.car-race-center-stack {
  padding: 9px 12px 10px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 248, 231, .97), rgba(239, 225, 216, .96));
}

.car-race-center-stack > header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-race-flag {
  font-size: 21px;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25));
}

.car-race-center-stack > header > div {
  display: grid;
  min-width: 0;
  flex: 1;
}

.car-race-center-stack > header small {
  color: #8a6d7f;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.car-race-center-stack > header b {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.car-race-target {
  display: grid;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .09);
  text-align: right;
}

.car-race-target b { color: #9d7c41; font-size: 11px !important; }

.car-race-progress {
  position: relative;
  height: 9px;
  margin: 8px 5px 7px;
  border: 2px solid rgba(255, 255, 255, .36);
  border-radius: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 5px, rgba(255, 255, 255, .02) 5px 10px),
    #d6c5b6;
}

.car-race-progress > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #e5aec3, #b8d2b4 62%, #f1d7a1);
  box-shadow: none;
}

.car-race-progress > span {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 4px currentColor);
}

.car-race-progress > span.is-you { color: #ff72ad; z-index: 3; }
.car-race-progress > span.is-friend-1 { color: #67dfff; }
.car-race-progress > span.is-friend-2 { color: #ffe367; }

.car-race-readouts {
  display: grid;
  grid-template-columns: .8fr .9fr 1.6fr 1fr;
  align-items: center;
  gap: 5px;
}

.car-race-readouts > span {
  display: grid;
  min-height: 29px;
  padding: 4px 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .43);
}

.car-race-readouts small {
  color: #967e88;
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .08em;
}

.car-race-readouts b {
  font-size: 10px;
  line-height: 1.1;
}

.car-race-readouts b em {
  color: #967e88;
  font-size: 6px;
  font-style: normal;
}

.car-race-readouts > span > i {
  display: block;
  height: 3px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
}

.car-race-readouts > span > i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5de5ff, #ffe25e);
}

.car-race-readouts > span.is-boosting {
  color: #19364c;
  background: linear-gradient(135deg, #7df2ff, #ffe774);
  box-shadow: 0 0 13px rgba(121, 240, 255, .35);
  animation: race-boost-pulse 420ms ease-in-out infinite alternate;
}

.car-race-readouts > span.is-boosting small,
.car-race-readouts > span.is-boosting b em { color: #2f6875; }

.car-race-readouts > span.is-loot {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5px;
}

.car-race-readouts .is-loot b { font-size: 9px; white-space: nowrap; }

.car-race-end {
  align-self: stretch;
  min-width: 76px;
  padding: 0 12px;
  border-radius: 19px;
  color: #806477;
  background: linear-gradient(145deg, #f7e6e1, #ddc7d9);
  font-size: 8px;
  font-weight: 950;
}

.car-race-item {
  position: absolute;
  top: 106px;
  right: 83px;
  display: grid;
  grid-template-columns: 38px minmax(105px, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 235px;
  min-height: 52px;
  padding: 7px 9px;
  border: 2px solid rgba(255, 255, 255, .58);
  border-radius: 17px;
  color: #b9c7d3;
  background: rgba(17, 38, 65, .9);
  box-shadow: 0 10px 26px rgba(8, 23, 49, .34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.car-race-item > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
  font-size: 20px;
  font-style: normal;
}

.car-race-item > span { display: grid; min-width: 0; }
.car-race-item small {
  color: #84a2b7;
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .1em;
}
.car-race-item b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.car-race-item > strong {
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  font-size: 8px;
}

.car-race-item.is-ready {
  color: #183651;
  background: linear-gradient(135deg, rgba(111, 245, 255, .96), rgba(255, 225, 99, .96));
  box-shadow: 0 0 24px rgba(94, 235, 255, .38), 0 12px 26px rgba(8, 23, 49, .3);
  animation: race-boost-pulse 600ms ease-in-out infinite alternate;
}

.car-race-item.is-ready small { color: #386579; }
.car-race-item.is-ready > strong { color: #fff; background: #e44287; }
.car-race-item:disabled { cursor: default; opacity: .88; }

.car-race-live-standings {
  position: absolute;
  top: max(120px, calc(env(safe-area-inset-top) + 112px));
  left: max(13px, env(safe-area-inset-left));
  z-index: 13;
  display: grid;
  gap: 5px;
  width: min(180px, calc(100% - 26px));
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 15px;
  color: #f7fcff;
  background: rgba(13, 50, 73, .76);
  box-shadow: 0 8px 25px rgba(8, 32, 49, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.car-race-live-standings > span {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 3px 7px 3px 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
}

.car-race-live-standings > span.is-you {
  color: #173f59;
  background: linear-gradient(90deg, #80eff7, #fff18c);
}

.car-race-live-standings i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  color: #163d55;
  background: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 1000;
}

.car-race-live-standings b {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-race-live-standings small { font-size: 7px; font-weight: 900; }

.car-race-countdown {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  align-content: center;
  background: radial-gradient(circle, rgba(14, 43, 67, .1), rgba(14, 43, 67, .32));
  pointer-events: none;
}

.race-start-lights {
  display: flex;
  gap: 8px;
  padding: 9px 11px;
  border: 3px solid rgba(255, 255, 255, .75);
  border-radius: 25px;
  background: rgba(24, 39, 49, .92);
  box-shadow: 0 10px 26px rgba(7, 20, 30, .35);
}

.race-start-lights i {
  width: 29px;
  height: 29px;
  border: 3px solid #111e27;
  border-radius: 50%;
  background: #4f3137;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, .35);
}

.race-start-lights i.is-lit {
  background: #ff445b;
  box-shadow: 0 0 16px #ff4259, inset 0 3px rgba(255, 255, 255, .4);
}

.car-race-countdown > strong {
  margin: 6px 0 -4px;
  color: #fff;
  font-size: clamp(86px, 17vw, 142px);
  font-weight: 1000;
  letter-spacing: -.08em;
  line-height: .95;
  text-shadow: 0 8px 0 rgba(16, 53, 82, .34), 0 0 28px rgba(255, 255, 255, .4);
  animation: race-number-pop 850ms ease-out infinite;
}

.car-race-countdown > span {
  padding: 6px 13px;
  border-radius: 20px;
  color: #174761;
  background: #ffec65;
  box-shadow: 0 5px 15px rgba(70, 64, 18, .18);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .18em;
}

.car-race-results-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 231, 94, .21), transparent 39%),
    rgba(10, 35, 58, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.car-race-results {
  position: relative;
  width: min(550px, 100%);
  padding: 27px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 34px;
  color: #164762;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 241, 110, .72), transparent 28%),
    linear-gradient(155deg, #edffff, #fff9e8 60%, #ffeaf3);
  box-shadow: 0 34px 100px rgba(5, 26, 49, .58), inset 0 0 0 2px rgba(40, 127, 164, .12);
  text-align: center;
  animation: race-results-land 430ms cubic-bezier(.12, 1.18, .28, 1) both;
}

.race-results-rays {
  position: absolute;
  top: -185px;
  left: 50%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 219, 66, .2) 0 10deg, transparent 10deg 22deg);
  transform: translateX(-50%);
  animation: race-rays-spin 24s linear infinite;
  pointer-events: none;
}

.race-results-confetti {
  position: absolute;
  top: 17px;
  right: 15px;
  left: 15px;
  color: #ff5c99;
  font-size: 10px;
  letter-spacing: 1.8em;
  white-space: nowrap;
  opacity: .75;
  pointer-events: none;
}

.car-race-results > small {
  position: relative;
  color: #e74b86;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .22em;
}

.car-race-results h2 {
  position: relative;
  margin: 1px 0 -7px;
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: -.03em;
}

.race-results-number {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  color: #6d55dc;
  font-size: clamp(91px, 18vw, 135px);
  font-weight: 1000;
  letter-spacing: -.1em;
  line-height: .9;
  text-shadow: 0 8px 0 rgba(92, 62, 183, .14);
}

.race-results-number i {
  position: absolute;
  top: 13px;
  left: -27px;
  color: #ef4e8b;
  font-size: .29em;
  font-style: normal;
  letter-spacing: 0;
}

.race-results-ordinal {
  position: relative;
  display: inline-block;
  margin: 2px 0 12px;
  padding: 4px 11px;
  border-radius: 14px;
  color: #174b65;
  background: #ffeb6d;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.race-results-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.race-results-stats > span {
  display: grid;
  gap: 2px;
  min-height: 53px;
  place-content: center;
  border: 1px solid rgba(32, 112, 147, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
}

.race-results-stats small {
  color: #8197a4;
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .07em;
}

.race-results-stats b { font-size: 12px; font-variant-numeric: tabular-nums; }

.race-results-podium {
  position: relative;
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.race-results-podium > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  padding: 6px;
  border-radius: 11px;
  color: #577183;
  background: rgba(218, 236, 241, .68);
}

.race-results-podium > span.is-you {
  color: #5b4512;
  background: linear-gradient(135deg, #fff38b, #ffc984);
}

.race-results-podium i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: #6c7e89;
  font-size: 9px;
  font-style: normal;
  font-weight: 1000;
}

.race-results-podium > span:first-child i { color: #674c0d; background: #ffd849; }

.race-results-podium b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-results-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.race-results-actions button {
  min-height: 49px;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff4f91, #765bdf);
  box-shadow: 0 8px 19px rgba(117, 74, 170, .23);
  font-size: 11px;
  font-weight: 1000;
}

.race-results-actions button.is-secondary {
  border-color: rgba(37, 103, 132, .11);
  color: #49697b;
  background: #e4eff2;
  box-shadow: none;
}

@keyframes race-dialog-pop {
  from { opacity: 0; transform: translateY(25px) scale(.91); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes race-car-bob {
  from { transform: scaleX(-1) translateY(0) rotate(-3deg); }
  to { transform: scaleX(-1) translateY(-4px) rotate(-1deg); }
}

@keyframes race-number-pop {
  0% { opacity: .45; transform: scale(.72); }
  22%, 72% { opacity: 1; transform: scale(1); }
  100% { opacity: .9; transform: scale(.96); }
}

@keyframes race-boost-pulse {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.02); filter: brightness(1.12); }
}

@keyframes race-results-land {
  from { opacity: 0; transform: translateY(-25px) scale(.84) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes race-rays-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

.laser-tag-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  width: 34px;
  height: 34px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 6px #5cf0ff);
}

.laser-tag-crosshair::before,
.laser-tag-crosshair::after,
.laser-tag-crosshair span::before,
.laser-tag-crosshair span::after {
  position: absolute;
  content: "";
  background: #bffaff;
}

.laser-tag-crosshair::before,
.laser-tag-crosshair::after {
  top: 16px;
  width: 10px;
  height: 2px;
}

.laser-tag-crosshair::before { left: 0; }
.laser-tag-crosshair::after { right: 0; }

.laser-tag-crosshair span::before,
.laser-tag-crosshair span::after {
  left: 16px;
  width: 2px;
  height: 10px;
}

.laser-tag-crosshair span::before { top: 0; }
.laser-tag-crosshair span::after { bottom: 0; }

.laser-tag-crosshair i {
  position: absolute;
  inset: 14px;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #5eefff;
}

.laser-tag-fire-button {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 80px));
  z-index: 8;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  gap: 0;
  padding: 8px;
  border: 2px solid rgba(195, 249, 255, 0.82);
  border-radius: 50%;
  color: #102543;
  background: radial-gradient(circle at 35% 25%, #efffff, #6beaff 48%, #ce75f0);
  box-shadow: 0 0 25px rgba(70, 228, 255, 0.55), inset 0 2px rgba(255, 255, 255, 0.8);
  touch-action: manipulation;
}

.laser-tag-fire-button span {
  margin-bottom: -5px;
  font-size: 23px;
}

.laser-tag-fire-button b {
  font-size: 11px;
  font-weight: 1000;
}

.laser-tag-fire-button kbd {
  min-height: 14px;
  padding: 2px 4px;
  border: 0;
  color: #1b4a61;
  background: rgba(255, 255, 255, 0.5);
  font-size: 7px;
}

.laser-tag-fire-button:active {
  transform: scale(0.94);
}

.multiplayer-settings {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: #eef4ed;
}
.multiplayer-settings > div { display: grid; gap: 2px; }
.multiplayer-settings small { color: var(--muted); font-size: 10px; }
.multiplayer-settings button {
  padding: 9px 11px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #647d68;
  font-size: 10px;
  font-weight: 800;
}

.furniture-style-toolbar {
  position: fixed;
  left: 50%;
  bottom: 108px;
  z-index: 32;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 22px;
  background: rgba(255,250,244,.95);
  box-shadow: 0 18px 46px rgba(61,48,49,.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.furniture-style-toolbar > div {
  display: grid;
  min-width: 150px;
  padding: 0 8px;
}
.furniture-style-toolbar small {
  color: #9b6e6e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.furniture-style-toolbar b { font-size: 12px; }
.furniture-style-toolbar em {
  color: #776e83;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}
.furniture-style-toolbar > button:not(.style-done):not(.style-rotate):not(.style-view) {
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(70,55,60,.18);
}
.furniture-style-toolbar button.style-rotate {
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 13px;
  color: #665268;
  background: #eee3ef;
  font-size: 10px;
  font-weight: 850;
}
.furniture-style-toolbar button.style-view {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #b8c9e8;
  border-radius: 13px;
  color: #315b91;
  background: #e8f2ff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.furniture-style-toolbar button.style-view.is-active {
  color: #fff;
  border-color: #4279bd;
  background: linear-gradient(145deg, #5e9ee8, #3f73b4);
  box-shadow: 0 6px 16px rgba(56, 103, 164, 0.28);
}
.furniture-style-toolbar button.style-done {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #6b7d68;
  font-size: 10px;
  font-weight: 850;
}

/* Hand, backpack, and driving actions */
.bottom-dock button.is-pack-ready {
  color: #fff;
  background: linear-gradient(155deg, #e17858, #bb5d69);
  box-shadow: 0 12px 28px rgba(155, 66, 71, 0.34), inset 0 1px rgba(255, 255, 255, 0.34);
  animation: pack-pulse 1.8s ease-in-out infinite;
}

@keyframes pack-pulse {
  50% { transform: translateY(-4px) scale(1.035); }
}

.hand-actions,
.driving-actions {
  position: fixed;
  left: 50%;
  bottom: 108px;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px;
  color: #493f43;
  background: rgba(255, 249, 243, 0.94);
  box-shadow: 0 18px 46px rgba(61, 48, 49, 0.24);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.held-item-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 3px 12px 3px 5px;
}

.held-item-chip > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  font-size: 26px;
  background: linear-gradient(145deg, #ffe4cd, #f3c7d0);
}

.held-item-chip div {
  display: grid;
  gap: 2px;
}

.held-item-chip small {
  color: #9b6e6e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.held-item-chip b {
  font-size: 13px;
  white-space: nowrap;
}

.hand-actions > button,
.driving-actions button {
  display: grid;
  min-width: 68px;
  min-height: 58px;
  padding: 7px 10px;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 17px;
  color: #5e5558;
  background: #f0e8e4;
  font: 800 11px/1.1 inherit;
  cursor: pointer;
}

.hand-actions > button span { font-size: 18px; }

.hand-actions > button.primary-hand-action {
  color: #fff;
  background: linear-gradient(145deg, #e78562, #c95f69);
}

.hand-actions > button.put-down-hand-action {
  color: #566451;
  background: #e8eee4;
  box-shadow: inset 0 0 0 1px rgba(91, 112, 82, 0.08);
}

.hand-actions > button.put-down-hand-action:hover {
  background: #dfe9da;
}

.driving-actions.driving-exit-only {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.driving-actions button.vehicle-exit-button {
  display: grid;
  min-width: 112px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  color: #fff;
  background: rgba(48, 67, 59, 0.94);
  box-shadow: 0 12px 30px rgba(48, 57, 52, 0.28);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.ufo-alien-console {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(171, 255, 232, 0.48);
  border-radius: 30px 18px 30px 18px;
  background:
    radial-gradient(circle at 28% 38%, rgba(99, 255, 220, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(15, 28, 58, 0.9), rgba(38, 15, 70, 0.88));
  box-shadow:
    0 16px 42px rgba(4, 10, 35, 0.42),
    inset 0 0 28px rgba(105, 255, 221, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  touch-action: none;
  user-select: none;
}

.ufo-monolith-gps {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(330px, calc(env(safe-area-inset-bottom) + 314px));
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 152px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(210, 151, 255, 0.62);
  border-radius: 999px;
  color: #f7eaff;
  background: linear-gradient(145deg, rgba(17, 15, 42, 0.91), rgba(67, 25, 91, 0.88));
  box-shadow: 0 9px 28px rgba(15, 4, 35, 0.42), inset 0 0 18px rgba(199, 103, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.ufo-navigation-reticle {
  position: absolute;
  top: clamp(
    max(132px, calc(env(safe-area-inset-top) + 116px)),
    28vh,
    230px
  );
  z-index: 18;
  display: grid;
  justify-items: center;
  color: #edc5ff;
  text-shadow: 0 0 7px #bd5dff, 0 2px 5px rgba(8, 3, 25, 0.9);
  transform: translateX(-50%);
  transition: left 0.12s linear;
  pointer-events: none;
}

.ufo-navigation-reticle > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  font: 900 28px/1 system-ui, sans-serif;
  clip-path: polygon(0 0, 34% 0, 34% 6%, 66% 6%, 66% 0, 100% 0, 100% 34%, 94% 34%, 94% 66%, 100% 66%, 100% 100%, 66% 100%, 66% 94%, 34% 94%, 34% 100%, 0 100%, 0 66%, 6% 66%, 6% 34%, 0 34%);
  filter: drop-shadow(0 0 6px currentColor);
}

.ufo-navigation-reticle > small {
  margin-top: 3px;
  font: 900 8px/1 system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.ufo-navigation-reticle.is-warpomium {
  color: #70f5ff;
  text-shadow: 0 0 7px #21cfe5, 0 2px 5px rgba(2, 18, 28, 0.92);
}

.ufo-monolith-gps > span:last-child {
  display: grid;
  gap: 1px;
}

.ufo-monolith-gps small {
  color: #d9afff;
  font: 800 9px/1.1 system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.ufo-monolith-gps strong {
  font: 900 15px/1.1 system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.ufo-monolith-gps em {
  color: #9ceef6;
  font: 800 8px/1.15 system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.08em;
}

.ufo-monolith-gps.is-warpomium {
  border-color: rgba(92, 238, 255, 0.7);
  color: #e7fdff;
  background: linear-gradient(145deg, rgba(6, 28, 48, 0.94), rgba(61, 20, 87, 0.91));
  box-shadow: 0 9px 28px rgba(2, 18, 37, 0.5), inset 0 0 22px rgba(63, 224, 255, 0.15);
}

.ufo-monolith-gps.is-warpomium small,
.ufo-monolith-gps.is-warpomium .ufo-monolith-radar b {
  color: #7af5ff;
}

.ufo-monolith-gps.is-warpomium.is-charged {
  border-color: rgba(238, 250, 255, 0.92);
  box-shadow: 0 0 28px rgba(102, 238, 255, 0.5), inset 0 0 24px rgba(171, 126, 255, 0.22);
}

.ufo-monolith-radar {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid rgba(218, 167, 255, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(207, 137, 255, 0.25) 32% 34%, transparent 35% 62%, rgba(207, 137, 255, 0.22) 63% 65%, transparent 66%),
    linear-gradient(rgba(207, 137, 255, 0.16) 0 0) 50% / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(207, 137, 255, 0.16) 0 0) 50% / 100% 1px no-repeat,
    rgba(12, 13, 38, 0.88);
}

.ufo-monolith-radar i {
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 0deg, transparent 0 79%, rgba(210, 128, 255, 0.42) 88%, transparent 96%);
  animation: ufo-gps-sweep 2.1s linear infinite;
}

.ufo-monolith-radar b {
  position: relative;
  z-index: 1;
  color: #e8b8ff;
  font: 900 19px/1 system-ui, sans-serif;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(215, 129, 255, 0.95));
  transition: transform 0.12s linear;
}

.ufo-monolith-gps.is-arrived {
  border-color: rgba(124, 255, 218, 0.78);
  color: #d8fff3;
  background: linear-gradient(145deg, rgba(12, 47, 51, 0.92), rgba(43, 45, 88, 0.9));
}

.ufo-monolith-gps.is-arrived small,
.ufo-monolith-gps.is-arrived .ufo-monolith-radar b {
  color: #8ffff0;
}

@keyframes ufo-gps-sweep {
  to { transform: rotate(360deg); }
}

.ufo-alien-steering {
  display: grid;
  grid-template: repeat(3, 43px) / repeat(3, 43px);
  gap: 3px;
}

.ufo-alien-systems {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 5px;
}

.ufo-alien-console button {
  display: grid;
  place-items: center;
  min-width: 43px;
  min-height: 43px;
  padding: 0;
  border: 1px solid rgba(183, 255, 234, 0.58);
  border-radius: 14px 8px 14px 8px;
  color: #c9fff0;
  background: linear-gradient(145deg, rgba(48, 143, 137, 0.86), rgba(69, 39, 128, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.27), 0 3px 12px rgba(5, 8, 34, 0.4);
  touch-action: none;
}

.ufo-alien-console button:active,
.ufo-alien-console button.is-active {
  color: #fff;
  background: linear-gradient(145deg, rgba(96, 255, 208, 0.96), rgba(133, 74, 225, 0.98));
  transform: scale(0.94);
  box-shadow: 0 0 22px rgba(105, 255, 222, 0.66);
}

.ufo-alien-console button > span {
  font: 900 24px/1 "Arial Unicode MS", "Noto Sans Symbols 2", sans-serif;
  filter: drop-shadow(0 0 5px rgba(134, 255, 229, 0.85));
}

.ufo-alien-core {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  color: #c393ff;
  font-size: 25px;
  filter: drop-shadow(0 0 8px rgba(185, 117, 255, 0.9));
  animation: ufo-core-orbit 2.4s linear infinite;
}

.ufo-alien-systems button {
  min-width: 46px;
  min-height: 54px;
}

.ufo-alien-systems .ufo-alien-beam {
  grid-column: 1 / -1;
  color: #baffdb;
  background: linear-gradient(145deg, rgba(27, 174, 123, 0.94), rgba(55, 91, 143, 0.96));
}

.ufo-alien-systems .ufo-alien-warp {
  grid-column: 1 / -1;
  color: #7c8799;
  background: linear-gradient(145deg, rgba(40, 47, 63, 0.96), rgba(43, 29, 61, 0.96));
}

.ufo-alien-systems .ufo-alien-warp.is-charged {
  color: #efffff;
  background: linear-gradient(145deg, rgba(42, 204, 215, 0.96), rgba(124, 53, 190, 0.98));
  box-shadow: 0 0 24px rgba(90, 237, 255, 0.58), inset 0 1px rgba(255, 255, 255, 0.42);
  animation: ufo-beam-pulse 0.8s ease-in-out infinite alternate;
}

.ufo-alien-systems .ufo-alien-land {
  grid-column: 1 / -1;
  min-height: 38px;
  color: #dfcbff;
  background: linear-gradient(145deg, rgba(87, 51, 142, 0.94), rgba(31, 71, 102, 0.96));
}

.ufo-alien-systems .ufo-alien-beam.is-active {
  animation: ufo-beam-pulse 0.65s ease-in-out infinite alternate;
}

@keyframes ufo-beam-pulse {
  to { box-shadow: 0 0 22px rgba(113, 255, 185, 0.72); }
}

@keyframes ufo-core-orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  .ufo-alien-console {
    transform: scale(0.9);
    transform-origin: left bottom;
  }
}

.ufo-mission-list {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 8;
  display: grid;
  gap: 7px;
  width: 178px;
  padding: 10px 12px;
  border-radius: 18px;
  color: #eafff5;
  background: linear-gradient(145deg, rgba(10, 48, 52, 0.84), rgba(35, 44, 80, 0.78));
  box-shadow: 0 12px 32px rgba(5, 22, 31, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none !important;
}

.ufo-mission-list > header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ufo-mission-list > header > span {
  font-size: 23px;
  filter: drop-shadow(0 0 8px rgba(108, 255, 188, 0.58));
}

.ufo-mission-list > header > div {
  display: grid;
  gap: 1px;
}

.ufo-mission-list small {
  color: #9bf4ca;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.ufo-mission-list b {
  font-size: 10px;
  letter-spacing: 0.015em;
}

.ufo-mission-list > div {
  display: grid;
  gap: 3px;
}

.ufo-mission-list > div > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(235, 249, 255, 0.78);
  font-size: 9px;
  font-weight: 780;
}

.ufo-mission-list > div > span.is-done {
  color: #9ff4c9;
}

.ufo-mission-list i {
  width: 11px;
  color: #7ff1ba;
  font-style: normal;
  font-weight: 1000;
}

.ufo-mission-list > footer {
  padding-top: 5px;
  border-top: 1px solid rgba(176, 255, 220, 0.18);
  color: #fff0a5;
  font-size: 8px;
  font-weight: 900;
}

.ufo-mission-list.is-complete {
  width: 164px;
  color: #173f35;
  background: linear-gradient(145deg, rgba(180, 255, 211, 0.92), rgba(131, 231, 216, 0.9));
}

.ufo-mission-list.is-complete small,
.ufo-mission-list.is-complete > footer {
  color: #246450;
}

@media (max-width: 680px) {
  .ufo-mission-list {
    top: max(58px, calc(env(safe-area-inset-top) + 49px));
    left: max(9px, env(safe-area-inset-left));
    width: 156px;
    padding: 8px 10px;
  }

  .ufo-mission-list > header > span { font-size: 19px; }
  .ufo-mission-list > div > span { font-size: 8px; }
}

.pocket-shelf {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f9e5d4, #f3dce3);
}

.pocket-shelf > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 2px 10px;
}

.pocket-shelf > header span { font-weight: 850; }
.pocket-shelf > header small { color: #806c70; }
.pocket-shelf > div { display: flex; flex-wrap: wrap; gap: 8px; }

.pocket-shelf button {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 9px 10px;
  border: 1px solid rgba(119, 83, 83, 0.12);
  border-radius: 15px;
  color: #55494c;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.pocket-shelf button > span { font-size: 25px; }
.pocket-shelf button b { font-size: 12px; text-align: left; }
.pocket-shelf button small { color: #967a79; font-weight: 800; }
.pocket-shelf button em { padding: 6px 8px; border-radius: 9px; color: #fff; background: #b9666f; font-size: 10px; font-style: normal; font-weight: 800; }

@media (max-width: 760px) {
  .furniture-style-toolbar {
    right: 10px;
    bottom: 92px;
    left: 10px;
    gap: 5px;
    padding: 7px;
    overflow-x: auto;
    transform: none;
  }
  .furniture-style-toolbar > div { min-width: 104px; padding-inline: 4px; }
  .furniture-style-toolbar > button:not(.style-done):not(.style-rotate):not(.style-view) {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
  }
  .hand-actions {
    right: 10px;
    bottom: 92px;
    left: 10px;
    justify-content: center;
    gap: 5px;
    transform: none;
  }
  .held-item-chip { min-width: 0; padding-right: 4px; }
  .held-item-chip div { display: none; }
  .hand-actions > button { min-width: 54px; padding-inline: 7px; }
  .driving-actions { bottom: 92px; width: calc(100% - 20px); }
}

.game-shell {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #bcd9df 0%, #e9eed6 57%, #9eb58b 100%);
}

/* Keep touch play from triggering browser selection, callouts, or blue tap flashes. */
.game-shell,
.game-shell * {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Room codes, recovery codes, and other text fields must remain editable. */
.game-shell input,
.game-shell textarea,
.game-shell select,
.game-shell [contenteditable="true"] {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

.game-shell img,
.game-shell canvas {
  -webkit-user-drag: none;
}

.village-world {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #bdd9df;
}

.village-world canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.world-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(37, 47, 50, 0.09), transparent 23%, transparent 68%, rgba(35, 43, 38, 0.16)),
    radial-gradient(circle at 52% 40%, transparent 45%, rgba(37, 35, 39, 0.12) 130%);
  mix-blend-mode: multiply;
}

.is-welcoming .world-vignette {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(31, 41, 37, 0.28), rgba(31, 41, 37, 0.04) 58%, rgba(31, 41, 37, 0.13)),
    linear-gradient(180deg, rgba(26, 39, 42, 0.08), transparent 58%, rgba(31, 34, 29, 0.22));
}

/* Welcome */

.welcome-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vw, 78px);
  pointer-events: none;
}

.welcome-card {
  position: relative;
  width: min(610px, 47vw);
  max-height: calc(100dvh - 36px);
  padding: clamp(30px, 4vw, 58px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 40px;
  background:
    radial-gradient(circle at 92% 2%, rgba(255, 224, 181, 0.7), transparent 33%),
    linear-gradient(150deg, rgba(255, 253, 248, 0.97), rgba(255, 245, 235, 0.91));
  box-shadow:
    0 34px 100px rgba(37, 44, 38, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  animation: welcome-rise 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.welcome-card::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -95px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(181, 153, 193, 0.12);
  border-radius: 50%;
}

.welcome-card::after {
  content: "";
  position: absolute;
  bottom: -95px;
  left: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(141, 171, 119, 0.1);
}

.welcome-card > * {
  position: relative;
  z-index: 1;
}

.welcome-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 20px;
  border: 1px solid rgba(113, 124, 94, 0.13);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #8ea583, #6f8d70);
  box-shadow: 0 10px 24px rgba(83, 111, 78, 0.24), inset 0 1px rgba(255, 255, 255, 0.42);
  transform: rotate(-4deg);
}

.welcome-mark span:first-child {
  font-size: 32px;
}

.welcome-mark span:last-child {
  position: absolute;
  right: -10px;
  bottom: -8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 3px solid #fff9f0;
  border-radius: 50%;
  background: #f1b17f;
  font-size: 16px;
  transform: rotate(4deg);
}

.welcome-kicker {
  margin: 0 0 6px;
  color: #718168;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-card h1 {
  margin: 0;
  color: #494046;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.welcome-card h1 span {
  display: block;
  color: #6f8c67;
  font-family: "Avenir Next Rounded", "Trebuchet MS", system-ui, sans-serif;
  font-size: 0.54em;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.welcome-copy {
  max-width: 510px;
  margin: 24px 0 22px;
  color: #665f63;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 560;
  line-height: 1.62;
}

.welcome-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.welcome-features span {
  padding: 8px 12px;
  border: 1px solid rgba(89, 78, 83, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #625b61;
  box-shadow: 0 4px 14px rgba(77, 67, 72, 0.05);
  font-size: 12px;
  font-weight: 760;
}

.primary-play {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px 10px 24px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #6f8f68, #668274 58%, #738ba0);
  box-shadow: 0 15px 34px rgba(75, 104, 74, 0.3), inset 0 1px rgba(255, 255, 255, 0.32);
  font-size: 16px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-play b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.17);
  font-size: 22px;
}

.primary-play:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 19px 42px rgba(75, 104, 74, 0.36), inset 0 1px rgba(255, 255, 255, 0.35);
}

.primary-play:active {
  transform: translateY(1px) scale(0.995);
}

.welcome-note {
  margin: 14px 0 0;
  color: #8a8185;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.welcome-tip {
  position: absolute;
  right: clamp(28px, 7vw, 120px);
  bottom: clamp(28px, 7vh, 90px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  color: #4a4548;
  background: rgba(255, 250, 243, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  animation: tip-float 4.5s ease-in-out infinite;
}

.tip-paw {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f3c090, #dc8f78);
  font-size: 25px;
}

.welcome-tip div {
  display: grid;
  gap: 2px;
}

.welcome-tip b {
  font-size: 13px;
}

.welcome-tip small {
  color: #837a7d;
  font-size: 10px;
  font-weight: 650;
}

/* HUD */

.game-ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.game-ui button,
.game-ui nav,
.game-ui aside {
  pointer-events: auto;
}

.top-hud {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.xp-monitor,
.luck-boost-pill,
.school-key-hud,
.treasure-count,
.town-center-button,
.round-hud-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--glass);
  box-shadow: 0 10px 28px rgba(43, 52, 46, 0.16), inset 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.luck-boost-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 12px;
  border-radius: 17px;
  color: #276842;
  background: linear-gradient(145deg, rgba(236, 255, 225, 0.94), rgba(194, 242, 197, 0.9));
  box-shadow: 0 10px 28px rgba(45, 115, 67, 0.2), inset 0 1px rgba(255, 255, 255, 0.82);
}

.luck-boost-pill.is-active > span {
  animation: lucky-clover-pulse 1.6s ease-in-out infinite;
}

.luck-boost-pill.fishing-outfit-pill {
  color: #205d60;
  background: linear-gradient(145deg, rgba(226, 250, 244, 0.96), rgba(154, 218, 199, 0.92));
  box-shadow: 0 10px 28px rgba(35, 104, 96, 0.2), inset 0 1px rgba(255, 255, 255, 0.84);
}

.luck-boost-pill.fishing-outfit-pill > span {
  filter: drop-shadow(0 3px 5px rgba(27, 91, 87, 0.22));
}

.luck-boost-pill.abyssal-bait-pill {
  color: #f6eaff;
  background: linear-gradient(145deg, rgba(47, 55, 92, 0.96), rgba(119, 72, 145, 0.94));
  box-shadow: 0 10px 28px rgba(42, 36, 86, 0.24), inset 0 1px rgba(255, 255, 255, 0.32);
}

.luck-boost-pill.abyssal-bait-pill > span {
  filter: drop-shadow(0 3px 5px rgba(111, 230, 244, 0.42));
}

.luck-boost-pill.catch-bait-pill {
  color: #123f4d;
  background: linear-gradient(145deg, rgba(218, 255, 247, 0.97), rgba(103, 226, 207, 0.93));
  box-shadow: 0 10px 28px rgba(24, 109, 103, 0.24), inset 0 1px rgba(255, 255, 255, 0.8);
}

.luck-boost-pill.secret-catch-bait-pill {
  color: #3d2a07;
  background: linear-gradient(145deg, rgba(255, 247, 178, 0.98), rgba(255, 181, 72, 0.94));
  box-shadow: 0 10px 28px rgba(153, 92, 17, 0.26), inset 0 1px rgba(255, 255, 255, 0.82);
}

@keyframes lucky-clover-pulse {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.14) rotate(5deg); }
}

.school-key-hud {
  position: fixed;
  top: max(78px, calc(env(safe-area-inset-top) + 68px));
  left: 50%;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 15px 8px 10px;
  border-radius: 19px;
  color: #55401a;
  background: linear-gradient(145deg, rgba(255, 250, 214, 0.98), rgba(248, 204, 92, 0.95));
  box-shadow: 0 14px 34px rgba(123, 83, 18, 0.28), inset 0 1px rgba(255, 255, 255, 0.88);
  transform: translateX(-50%);
  animation: school-key-arrive 0.7s cubic-bezier(0.18, 0.89, 0.32, 1.25) both,
    school-key-glow 2s ease-in-out 0.7s infinite;
}

.school-key-hud > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 25px;
}

.school-key-hud > div {
  display: grid;
  text-align: left;
  line-height: 1.05;
}

.school-key-hud b {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.school-key-hud small {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 850;
}

.water-park-key-hud {
  color: #155968;
  background: linear-gradient(145deg, rgba(231, 255, 255, 0.98), rgba(79, 205, 213, 0.95));
  box-shadow: 0 14px 34px rgba(24, 127, 145, 0.3), inset 0 1px rgba(255, 255, 255, 0.9);
}

.water-park-key-hud.has-school-key {
  top: max(142px, calc(env(safe-area-inset-top) + 132px));
}

@keyframes school-key-arrive {
  from { opacity: 0; transform: translateX(-50%) translateY(-22px) scale(0.72); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes school-key-glow {
  0%, 100% { box-shadow: 0 14px 34px rgba(123, 83, 18, 0.28), inset 0 1px rgba(255, 255, 255, 0.88); }
  50% { box-shadow: 0 16px 42px rgba(231, 170, 45, 0.48), 0 0 0 5px rgba(255, 224, 118, 0.18), inset 0 1px rgba(255, 255, 255, 0.94); }
}

.luck-boost-pill > span {
  font-size: 22px;
  filter: drop-shadow(0 3px 5px rgba(34, 113, 62, 0.2));
}

.luck-boost-pill > div {
  display: grid;
  line-height: 1.05;
}

.luck-boost-pill b {
  font-size: 9px;
}

.luck-boost-pill small {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 950;
}

.hud-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 100%;
}

.xp-monitor {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 11px;
  border-radius: 17px;
  color: #5d555c;
}

.xp-monitor > span {
  font-size: 19px;
  filter: drop-shadow(0 2px 5px rgba(215, 169, 61, 0.28));
}

.xp-monitor > div {
  display: grid;
  min-width: 86px;
}

.xp-monitor b {
  font-size: 11px;
  line-height: 1.1;
}

.xp-monitor small {
  color: #84797f;
  font-size: 7px;
  font-weight: 760;
}

.xp-monitor i {
  width: 100%;
  height: 4px;
  margin: 3px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(91, 80, 87, 0.12);
}

.xp-monitor em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #efbd55, #d891b7, #9b8fd2);
}

.xp-monitor.has-key {
  background: rgba(255, 244, 196, 0.92);
}

.treasure-count {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 48px;
  padding: 11px 15px;
  border-radius: 17px;
}

.treasure-count output {
  position: absolute;
  top: calc(100% + 5px);
  right: 8px;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: #319a62;
  box-shadow: 0 6px 16px rgba(32, 112, 71, 0.3);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  animation: currency-gain-pop 2.4s ease-out both;
}

.treasure-count.is-gaining b {
  animation: currency-count-bump 0.55s ease-out;
}

@keyframes currency-count-bump {
  0% { transform: scale(1); }
  38% { transform: scale(1.34); }
  100% { transform: scale(1); }
}

@keyframes currency-gain-pop {
  0% { opacity: 0; transform: translateY(7px) scale(0.75); }
  14%, 70% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-13px) scale(0.92); }
}

.treasure-count > span {
  margin-right: 2px;
  color: #d7a93d;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(213, 159, 36, 0.25));
}

.treasure-count b {
  font-size: 17px;
}

.treasure-count small {
  color: #847b7f;
  font-size: 10px;
  font-weight: 720;
}

.pet-coin-count {
  background: linear-gradient(145deg, rgba(255, 249, 218, 0.94), rgba(255, 239, 177, 0.9));
  border-color: rgba(255, 255, 255, 0.88);
}

.pet-coin-count > span {
  filter: drop-shadow(0 2px 5px rgba(175, 119, 22, 0.3));
}

.pet-coin-count b {
  color: #73551d;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

.pet-gem-count {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, rgba(218, 255, 249, 0.95), rgba(159, 225, 218, 0.91));
}

.pet-gem-count > span {
  filter: drop-shadow(0 2px 6px rgba(38, 139, 133, 0.34));
}

.pet-gem-count b {
  min-width: 1ch;
  color: #276d69;
  font-variant-numeric: tabular-nums;
}

.ai-token-count {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, rgba(239, 228, 255, 0.96), rgba(181, 145, 244, 0.92));
}

.ai-token-count > span {
  color: #7950c9;
  filter: drop-shadow(0 2px 6px rgba(90, 48, 170, 0.38));
}

.ai-token-count b {
  min-width: 1ch;
  color: #55308f;
  font-variant-numeric: tabular-nums;
}

.shell-coin-count {
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, rgba(255, 239, 226, 0.96), rgba(243, 188, 164, 0.91));
}

.shell-coin-count > span {
  filter: drop-shadow(0 2px 6px rgba(158, 76, 79, 0.3));
}

.shell-coin-count b {
  min-width: 1ch;
  color: #8b4a4c;
  font-variant-numeric: tabular-nums;
}

.round-hud-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 17px;
  color: #6e666b;
  font-size: 20px;
}

.town-center-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 17px;
  color: #5c5559;
  font: 820 10px/1 system-ui, sans-serif;
  cursor: pointer;
}

.town-center-button span { font-size: 19px; }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 7px;
  border: 1px solid rgba(75, 67, 72, 0.09);
  border-bottom-width: 2px;
  border-radius: 7px;
  color: #5d555b;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 2px 6px rgba(50, 44, 48, 0.05);
  font-family: inherit;
  font-size: 8px;
  font-weight: 850;
}

.bottom-dock {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(62px, 82px));
  gap: 8px;
  padding: 0;
  transform: translateX(-50%);
}

.bottom-dock button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 58px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.91);
  box-shadow: 0 12px 32px rgba(35, 43, 38, 0.2), inset 0 1px rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bottom-dock button:hover {
  background: rgba(255, 246, 238, 0.96);
  box-shadow: 0 16px 38px rgba(35, 43, 38, 0.24), inset 0 1px #fff;
  transform: translateY(-2px);
}

.bottom-dock button.is-active {
  color: #1f5f91;
  background: linear-gradient(145deg, rgba(220, 241, 255, 0.98), rgba(177, 219, 249, 0.95));
  box-shadow: 0 15px 38px rgba(50, 125, 178, 0.3), inset 0 1px #fff;
  transform: translateY(-3px);
}

.bottom-dock button > span {
  font-size: 23px;
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(57, 48, 51, 0.1));
}

.bottom-dock button small {
  color: #655e62;
  font-size: 9px;
  font-weight: 800;
}

.bottom-dock button > b {
  position: absolute;
  top: 3px;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff9f2;
  border-radius: 999px;
  color: #fff;
  background: #d98984;
  font-size: 8px;
}

.bottom-dock button > i {
  position: absolute;
  top: 8px;
  right: 13px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #7db587;
  box-shadow: 0 2px 5px rgba(60, 117, 69, 0.35);
}

.pet-dock-button {
  background: linear-gradient(145deg, rgba(240, 194, 151, 0.2), rgba(218, 153, 144, 0.13)) !important;
}

.pet-dock-button > b {
  color: #55451f !important;
  background: #f0ca5d !important;
}

.pet-dock-button.is-empty {
  background: rgba(241, 237, 235, 0.9) !important;
}

.pet-dock-empty {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px dashed rgba(103, 92, 98, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  filter: grayscale(0.35);
}

.egg-rarity-reveal {
  position: absolute;
  top: 31%;
  left: 50%;
  z-index: 14;
  max-width: calc(100% - 32px);
  color: #8be3ad;
  background: none;
  border: 0;
  box-shadow: none;
  font: 1000 clamp(46px, 10vw, 112px) / 0.9 system-ui, sans-serif;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.62);
  opacity: 0;
  filter: drop-shadow(0 4px 1px rgba(18, 26, 34, 0.48));
  animation: egg-rarity-word 2.35s cubic-bezier(.16, .9, .24, 1) forwards;
}

.egg-rarity-reveal.is-rare {
  color: #8dceff;
}

.egg-rarity-reveal.is-ultra-rare {
  color: #d5a1ff;
}

.egg-rarity-reveal.is-legendary {
  color: #ffe27e;
}

.egg-rarity-reveal.is-mythical {
  color: #e8edf5;
  background-image: linear-gradient(105deg, #aeb9c7 4%, #ffffff 30%, #c4cfdd 55%, #f7ffff 75%, #aab5c4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 10px rgba(231, 244, 255, 0.92))
    drop-shadow(0 0 28px rgba(175, 205, 235, 0.72))
    drop-shadow(0 5px 1px rgba(24, 32, 45, 0.52));
}

.egg-rarity-reveal.is-shiny {
  color: #fff8c7;
  background-image: linear-gradient(105deg, #fff5a5 3%, #ffffff 24%, #9eeeff 46%, #ffffff 66%, #ffd878 92%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 9px rgba(255, 255, 226, 1))
    drop-shadow(0 0 25px rgba(132, 225, 255, 0.92))
    drop-shadow(0 0 48px rgba(255, 221, 111, 0.76))
    drop-shadow(0 5px 1px rgba(29, 34, 50, 0.55));
  animation:
    egg-rarity-word 2.35s cubic-bezier(.16, .9, .24, 1) forwards,
    shiny-word-sweep 0.75s linear infinite;
}

.egg-rarity-reveal.is-stellar-exclusive,
.egg-rarity-reveal.is-stellar-golden,
.egg-rarity-reveal.is-stellar-rainbow,
.egg-rarity-reveal.is-stellar-huge,
.egg-rarity-reveal.is-stellar-glow,
.egg-rarity-reveal.is-stellar-relic {
  top: 27%;
  z-index: 78;
  width: min(980px, calc(100% - 32px));
  font-size: clamp(34px, 7vw, 86px);
  line-height: .94;
  white-space: normal;
  text-wrap: balance;
  -webkit-text-stroke: 1px rgba(15, 20, 38, .34);
}

.egg-rarity-reveal.is-stellar-exclusive {
  color: #bfffe9;
  background-image: linear-gradient(105deg, #7dfad3 5%, #f1ffff 36%, #9fc6ff 62%, #d9a8ff 96%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(102, 255, 220, .95)) drop-shadow(0 0 34px rgba(124, 145, 255, .82)) drop-shadow(0 5px 1px rgba(16, 24, 48, .65));
}

.egg-rarity-reveal.is-stellar-golden,
.egg-rarity-reveal.is-stellar-huge {
  color: #fff0a5;
  background-image: linear-gradient(105deg, #dc9b31 2%, #fff5ac 28%, #fff 48%, #ffd45d 70%, #f4a735 100%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 11px rgba(255, 224, 113, .98)) drop-shadow(0 0 38px rgba(255, 157, 61, .78)) drop-shadow(0 6px 1px rgba(54, 30, 17, .65));
  animation: egg-rarity-word 2.35s cubic-bezier(.16, .9, .24, 1) forwards, shiny-word-sweep .85s linear infinite;
}

.egg-rarity-reveal.is-stellar-rainbow {
  color: #fff;
  background-image: linear-gradient(100deg, #ff6c9f, #ffd75d, #7dffc2, #77d9ff, #b998ff, #ff6c9f);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, .95)) drop-shadow(0 0 34px rgba(164, 123, 255, .8)) drop-shadow(0 5px 1px rgba(30, 27, 63, .65));
  animation: egg-rarity-word 2.35s cubic-bezier(.16, .9, .24, 1) forwards, shiny-word-sweep .7s linear infinite;
}

.egg-rarity-reveal.is-stellar-glow {
  color: #d9fff5;
  background-image: linear-gradient(105deg, #72ffc9 5%, #fff 38%, #87f6ff 62%, #b4ff99 96%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(190, 255, 229, 1)) drop-shadow(0 0 30px rgba(54, 255, 203, .94)) drop-shadow(0 0 60px rgba(93, 213, 255, .76)) drop-shadow(0 5px 1px rgba(18, 42, 47, .65));
  animation: egg-rarity-word 2.35s cubic-bezier(.16, .9, .24, 1) forwards, shiny-word-sweep .8s linear infinite;
}

.egg-rarity-reveal.is-stellar-relic {
  color: #ffd1dc;
  background-image: linear-gradient(105deg, #ff466f 4%, #fff1f7 36%, #ff9ac6 65%, #ff466f 98%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 54, 95, 1)) drop-shadow(0 0 34px rgba(255, 103, 170, .9)) drop-shadow(0 5px 1px rgba(54, 14, 28, .7));
  animation: egg-rarity-word 2.35s cubic-bezier(.16, .9, .24, 1) forwards, shiny-word-sweep .65s linear infinite;
}

@keyframes shiny-word-sweep {
  from { background-position: 100% 50%; }
  to { background-position: -120% 50%; }
}

@keyframes egg-rarity-word {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.62);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  24%, 72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -58%) scale(1.04);
  }
}

.game-toast {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  left: 50%;
  z-index: 80;
  max-width: min(520px, calc(100vw - 36px));
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  color: #4d464a;
  background: rgba(255, 251, 245, 0.95);
  box-shadow: 0 16px 46px rgba(46, 47, 41, 0.24);
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
  animation: toast-in 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.room-editor {
  position: absolute;
  left: 50%;
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px));
  z-index: 52;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(720px, calc(100vw - 32px));
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  color: #4d454b;
  background: linear-gradient(145deg, rgba(255, 253, 249, 0.97), rgba(250, 239, 244, 0.94));
  box-shadow: 0 20px 58px rgba(45, 40, 45, 0.25), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  transform: translateX(-50%);
  animation: panel-up 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.room-editor-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(137, 101, 116, 0.13);
  border-radius: 17px;
  background: linear-gradient(145deg, #fff7ed, #f1dfed);
  box-shadow: inset 0 1px #fff;
  font-size: 25px;
}

.room-editor > div {
  display: grid;
  flex: 1 1 170px;
  min-width: 0;
  line-height: 1.15;
}

.room-editor small {
  color: #a3697d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room-editor b {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-editor em {
  margin-top: 4px;
  color: #82767d;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.room-editor button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(89, 79, 84, 0.1);
  border-radius: 14px;
  color: #5d5158;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 16px rgba(62, 51, 58, 0.08);
  font-size: 10px;
  font-weight: 850;
}

.room-editor button:hover {
  transform: translateY(-1px);
}

.room-editor button.decor-view-toggle {
  color: #315b91;
  border-color: #b8c9e8;
  background: #e8f2ff;
  font-weight: 900;
  white-space: nowrap;
}

.room-editor button.decor-view-toggle.is-active {
  color: #fff;
  border-color: #4279bd;
  background: linear-gradient(145deg, #5e9ee8, #3f73b4);
  box-shadow: 0 7px 18px rgba(56, 103, 164, 0.26);
}

.room-editor button.decor-color-swatch {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(70,55,60,.18);
}

.room-editor button.is-danger {
  color: #945b68;
  background: #fff1f2;
}

.room-editor button.is-done {
  border-color: rgba(89, 122, 84, 0.14);
  color: #fff;
  background: #718a69;
}

.decor-mode-banner {
  position: absolute;
  left: 50%;
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px));
  z-index: 52;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(570px, calc(100vw - 32px));
  min-height: 68px;
  padding: 10px 12px 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 23px;
  color: #334f63;
  background: linear-gradient(145deg, rgba(242, 250, 255, 0.98), rgba(220, 239, 252, 0.95));
  box-shadow: 0 20px 58px rgba(31, 75, 105, 0.25), inset 0 1px #fff;
  backdrop-filter: blur(20px) saturate(1.1);
  transform: translateX(-50%);
}

.decor-mode-banner > div {
  display: grid;
  flex: 1;
  min-width: 0;
}

.decor-mode-banner small {
  color: #3d89bb;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.decor-mode-banner b { font-size: 12px; }
.decor-mode-banner span { color: #688091; font-size: 9px; }

.decor-mode-banner button {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  color: #38657f;
  background: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 850;
}

.decor-mode-banner button.is-done {
  color: #fff;
  background: #4f7f9d;
}

/* Panels */

.panel-scrim {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(39, 38, 40, 0.32);
  backdrop-filter: blur(9px) saturate(0.86);
  -webkit-backdrop-filter: blur(9px) saturate(0.86);
  animation: scrim-in 180ms ease-out both;
}

.game-panel {
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(82dvh, 820px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(237, 204, 170, 0.18), transparent 32%),
    var(--glass-strong);
  box-shadow: 0 32px 100px rgba(34, 35, 32, 0.34), inset 0 1px rgba(255, 255, 255, 0.82);
  animation: panel-up 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.panel-lookbook {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 89, 95, 0.2) transparent;
}

.panel-lookbook .panel-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 250, 246, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.panel-lookbook .choice-grid {
  flex: 0 0 auto;
  overflow: visible;
}

.panel-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 27px 18px 30px;
  border-bottom: 1px solid var(--hairline);
}

.panel-header > div {
  display: grid;
  gap: 2px;
}

.panel-header small {
  color: #8a796e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-header h2 {
  margin: 0;
  color: #4a4348;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.panel-header > button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(74, 66, 71, 0.08);
  border-radius: 15px;
  color: #776f74;
  background: rgba(80, 71, 77, 0.055);
  font-size: 24px;
  transition: background 160ms ease, transform 160ms ease;
}

.panel-header > button:hover {
  background: rgba(80, 71, 77, 0.1);
  transform: rotate(4deg);
}

.segmented-tabs {
  flex: 0 0 auto;
  display: inline-flex;
  align-self: flex-start;
  gap: 3px;
  margin: 17px 30px 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(75, 67, 72, 0.055);
}

.segmented-tabs button {
  min-height: 34px;
  padding: 7px 14px;
  border: 0;
  border-radius: 10px;
  color: #766f73;
  background: transparent;
  font-size: 10px;
  font-weight: 820;
}

.segmented-tabs button[aria-selected="true"] {
  color: #546d50;
  background: #fffdf9;
  box-shadow: 0 5px 14px rgba(58, 51, 55, 0.09);
}

.item-grid,
.choice-grid,
.building-grid,
.settings-list {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 89, 95, 0.2) transparent;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 15px 30px 32px;
}

.item-card {
  position: relative;
  display: grid;
  grid-template-columns: 67px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 8px 11px;
  min-height: 156px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(80, 69, 74, 0.075);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.63);
  box-shadow: 0 7px 20px rgba(59, 52, 56, 0.06);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.item-card:hover {
  z-index: 1;
  border-color: rgba(116, 144, 102, 0.2);
  box-shadow: 0 12px 28px rgba(59, 52, 56, 0.11);
  transform: translateY(-2px);
}

.item-art {
  display: grid;
  place-items: center;
  width: 67px;
  height: 67px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: linear-gradient(145deg, #f4e1d1, #dedcf0);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
  font-size: 32px;
}

.asset-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.asset-thumbnail > img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
  box-sizing: border-box;
  pointer-events: none;
  filter: drop-shadow(0 7px 7px rgba(66, 48, 53, 0.18));
}

.asset-thumbnail-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.pocket-item-preview {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff2e5, #efd9e2);
}

.pet-portrait {
  overflow: hidden;
}

.pet-asset-preview {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.pet-portrait > i {
  z-index: 2;
}

.pet-dock-preview {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.lookbook-asset-preview {
  width: 100%;
  height: 100%;
}

.lookbook-asset-preview > img {
  padding: 5px;
  filter: drop-shadow(0 14px 12px rgba(91, 58, 74, 0.2));
}

.held-item-preview > img,
.room-editor-icon > img {
  padding: 3px;
}

.item-card h3,
.choice-grid b,
.building-grid h3 {
  margin: 2px 0 3px;
  color: #514a4f;
  font-size: 12px;
  line-height: 1.25;
}

.item-card p,
.choice-grid small,
.building-grid p,
.panel-intro,
.location-nudge p,
.pet-care-card p {
  margin: 0;
  color: #81797e;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.45;
}

.item-card > button {
  grid-column: 1 / -1;
  min-height: 32px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #849d78, #718c75);
  font-size: 9px;
  font-weight: 820;
}

.item-card > button:disabled {
  color: #91898d;
  background: rgba(83, 76, 80, 0.08);
  cursor: not-allowed;
}

.decor-grid .item-card.is-locked {
  border-color: rgba(74, 111, 134, .12);
  background: rgba(241, 246, 249, .64);
}

.decor-grid .item-card.is-locked .item-art {
  opacity: .68;
  filter: saturate(.58);
}

.decor-access-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #347650;
  background: rgba(214, 240, 221, .9);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.decor-access-badge.is-locked {
  color: #68747c;
  background: rgba(221, 230, 235, .9);
}

.decor-access-detail {
  display: block;
  margin-top: 5px;
  color: #567284;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.35;
}

.item-card > button.decor-purchase-button {
  background: linear-gradient(135deg, #4e91bb, #3976a1);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 270px;
  padding: 40px;
  text-align: center;
}

.empty-state > span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: linear-gradient(145deg, #f2d9b7, #e0d9ed);
  font-size: 31px;
  box-shadow: var(--shadow-card);
}

.empty-state h3 {
  margin: 18px 0 6px;
  color: #575055;
  font-size: 17px;
}

.empty-state p {
  max-width: 370px;
  margin: 0;
  color: #827a7f;
  font-size: 11px;
  line-height: 1.5;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 24px 30px 32px;
}

.choice-grid > button {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 13px;
  border: 1px solid rgba(75, 67, 72, 0.075);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.choice-grid > button:hover:not(:disabled) {
  border-color: rgba(111, 143, 103, 0.24);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.choice-grid > button.is-selected {
  border-color: rgba(101, 139, 94, 0.45);
  background: rgba(242, 249, 238, 0.82);
  box-shadow: 0 10px 30px rgba(88, 121, 80, 0.12);
}

.choice-grid > button:disabled {
  filter: grayscale(0.3);
  opacity: 0.55;
}

.choice-grid > button > span:nth-child(2) {
  display: grid;
}

.choice-preview,
.pet-portrait {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  font-size: 38px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}

.lookbook-sparkle {
  position: absolute;
  color: #fff5bf;
  filter: drop-shadow(0 2px 5px rgba(158, 117, 89, 0.2));
  font-size: 21px;
}

.lookbook-sparkle.one { top: 18px; left: 24px; }
.lookbook-sparkle.two { top: 60px; right: 18px; font-size: 14px; }

/* Avatar Studio — production 3D previews only. */

.panel-lookbook {
  width: min(1080px, 100%);
  max-height: min(90dvh, 920px);
  background:
    radial-gradient(circle at 8% 12%, rgba(241, 207, 220, 0.38), transparent 30%),
    radial-gradient(circle at 92% 5%, rgba(215, 230, 205, 0.34), transparent 28%),
    linear-gradient(155deg, rgba(255, 253, 249, 0.99), rgba(249, 242, 240, 0.99));
}

.avatar-studio {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.45fr);
  align-items: start;
  gap: 18px;
  margin: 20px 28px 8px;
}

.avatar-stage {
  position: sticky;
  top: 94px;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(107, 84, 92, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(155deg, rgba(241, 218, 229, 0.96), rgba(251, 234, 218, 0.98) 57%, rgba(221, 232, 211, 0.96));
  box-shadow: 0 18px 45px rgba(91, 64, 75, 0.12), inset 0 1px rgba(255, 255, 255, 0.92);
}

.avatar-stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px 11px;
  color: #735e68;
}

.avatar-stage-heading span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #8d5c70;
  background: rgba(255, 255, 255, 0.68);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.avatar-stage-heading b {
  color: #81737a;
  font-size: 8px;
}

.avatar-stage-frame {
  position: relative;
  display: grid;
  place-items: center;
  height: 360px;
  margin: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 24px 24px 74px 74px;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.35) 50%, transparent 50.3%),
    radial-gradient(ellipse at 50% 96%, rgba(107, 74, 86, 0.2), transparent 39%),
    rgba(255, 255, 255, 0.27);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
}

.avatar-stage-halo {
  position: absolute;
  top: 25px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.06) 66%, transparent 68%);
}

.avatar-stage-preview {
  z-index: 1;
  width: 100%;
  height: 100%;
}

.avatar-stage-preview > img {
  padding: 8px;
  filter: drop-shadow(0 17px 14px rgba(83, 55, 68, 0.22));
}

.avatar-stage-caption {
  padding: 15px 19px 18px;
}

.avatar-stage-caption small {
  color: #9d687b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.avatar-stage-caption h3 {
  margin: 4px 0 6px;
  color: #4e4248;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.avatar-stage-caption p {
  margin: 0;
  color: #776970;
  font-size: 10px;
  line-height: 1.5;
}

.everyday-outfit-button {
  width: 100%;
  margin-top: 11px;
  padding: 9px 12px;
  border: 1px solid rgba(94, 74, 83, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #66545d;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.035em;
  cursor: pointer;
}

.everyday-outfit-button:hover,
.everyday-outfit-button:focus-visible {
  border-color: rgba(172, 91, 125, 0.42);
  background: #fff;
  color: #9e4168;
  outline: none;
}

.avatar-controls {
  display: grid;
  gap: 12px;
}

.avatar-option-group {
  padding: 15px;
  border: 1px solid rgba(92, 74, 81, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 9px 25px rgba(77, 61, 67, 0.055), inset 0 1px rgba(255, 255, 255, 0.84);
}

.avatar-option-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.avatar-option-heading > span,
.lookbook-outfit-heading > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-option-heading small,
.lookbook-outfit-heading small {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  color: #986276;
  background: #f7e8ed;
  font-size: 8px;
  font-weight: 900;
}

.avatar-option-heading b,
.lookbook-outfit-heading b {
  color: #55494f;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.avatar-option-heading p,
.lookbook-outfit-heading p {
  max-width: 330px;
  margin: 1px 0 0;
  color: #85777d;
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}

.avatar-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.avatar-type-card {
  min-height: 148px;
}

.avatar-type-preview {
  height: 132px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.96), transparent 42%),
    linear-gradient(145deg, #dfe9f4, #f9eadf 58%, #e1eadc);
}

.avatar-style-card {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 116px;
  padding: 7px;
  border: 1px solid rgba(91, 71, 79, 0.1);
  border-radius: 18px;
  color: #65585e;
  background: rgba(255, 253, 251, 0.82);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.avatar-style-card:hover {
  border-color: rgba(111, 145, 102, 0.34);
  box-shadow: 0 9px 20px rgba(78, 61, 69, 0.08);
  transform: translateY(-2px);
}

.avatar-style-card.is-selected {
  border-color: rgba(101, 139, 94, 0.48);
  background: #f6faef;
  box-shadow: 0 0 0 2px rgba(139, 164, 129, 0.82), 0 9px 22px rgba(88, 121, 80, 0.11);
}

.avatar-style-preview {
  width: 94px;
  height: 100px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 27%, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(145deg, #f3dfe8, #f9ebdc 58%, #e2ead9);
}

.avatar-style-preview > img {
  padding: 2px;
  filter: drop-shadow(0 8px 8px rgba(80, 52, 64, 0.18));
}

.avatar-style-card > span:not(.asset-thumbnail) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.avatar-style-card > span > b {
  color: #51464b;
  font-size: 10px;
  line-height: 1.2;
}

.avatar-style-card > span > small {
  display: -webkit-box;
  overflow: hidden;
  color: #86787e;
  font-size: 8px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.avatar-style-card > i {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: #7e9a74;
  font-size: 10px;
  font-style: normal;
  box-shadow: 0 3px 8px rgba(70, 104, 62, 0.24);
}

.avatar-style-card:not(.is-selected) > i {
  display: none;
}

.avatar-option-heading-inline {
  align-items: center;
}

.avatar-swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.avatar-swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 6px 9px 6px 7px;
  border: 1px solid rgba(91, 71, 79, 0.1);
  border-radius: 14px;
  color: #65595f;
  background: rgba(255, 253, 251, 0.82);
  font-size: 8.5px;
  font-weight: 850;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.avatar-swatch:hover {
  border-color: rgba(111, 145, 102, 0.34);
  transform: translateY(-1px);
}

.avatar-swatch.is-selected {
  border-color: rgba(101, 139, 94, 0.48);
  box-shadow: 0 0 0 2px rgba(139, 164, 129, 0.72);
}

.avatar-swatch > i {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(61, 45, 51, 0.2);
}

.avatar-swatch > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-swatch > b {
  margin-left: auto;
  color: #718c68;
  font-size: 11px;
}

.lookbook-outfit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 30px -9px;
  padding-top: 18px;
  border-top: 1px solid rgba(91, 71, 79, 0.1);
}

.avatar-outfit-grid {
  padding-top: 22px;
}

.outfit-grid > button.is-locked {
  border-color: rgba(92, 73, 103, 0.1);
  background: rgba(236, 231, 239, 0.74);
}

.outfit-grid > button.is-locked .choice-preview {
  filter: saturate(0.6);
}

.outfit-grid > button > span:nth-child(2) strong {
  display: block;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #735c80;
  background: rgba(137, 103, 157, 0.11);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wardrobe-shop-nudge {
  border-color: rgba(117, 84, 139, 0.2);
  background: linear-gradient(135deg, rgba(229, 211, 240, 0.58), rgba(207, 244, 235, 0.52));
}

.choice-grid button > i,
.choice-grid button > em {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #6c7f64;
  background: rgba(132, 160, 122, 0.13);
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-intro {
  flex: 0 0 auto;
  max-width: 650px;
  padding: 18px 30px 0;
  font-size: 11px;
}

.pet-grid > button {
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 130px;
}

.pet-grid > button.is-locked {
  background: rgba(235, 231, 226, 0.68);
}

.pet-power-rating {
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #654e17;
  background: rgba(240, 202, 93, 0.3);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pet-copy-counts {
  color: #7a6694 !important;
  font-size: 9px !important;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.pet-grid > button.is-locked .pet-power-rating {
  color: #6e6870;
  background: rgba(112, 104, 116, 0.12);
}

.pet-portrait {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 31px;
  background: linear-gradient(145deg, #f7d7b9, #e0d7eb);
  font-size: 53px;
}

.pet-portrait i {
  position: absolute;
  right: 6px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #dc8592;
  font-size: 11px;
  font-style: normal;
}

.pet-care-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 30px 28px;
  padding: 13px;
  border: 1px solid rgba(160, 122, 76, 0.1);
  border-radius: 18px;
  background: rgba(245, 222, 188, 0.35);
}

.pet-shop-nudge {
  border-color: rgba(199, 158, 65, 0.22);
  background: linear-gradient(135deg, rgba(250, 230, 167, 0.5), rgba(220, 239, 225, 0.52));
}

.pet-trade-launch {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  margin: 18px 30px 0;
  padding: 15px;
  border: 1px solid rgba(115, 91, 139, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(235, 224, 247, 0.6), rgba(218, 241, 231, 0.58));
}

.pet-trade-launch-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pet-trade-launch-heading > span {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

.pet-trade-launch-heading b {
  color: #5f5069;
  font-size: 11px;
}

.pet-trade-launch-heading p,
.pet-trade-offline {
  margin: 3px 0 0;
  color: #827489;
  font-size: 9px;
  line-height: 1.4;
}

.pet-trade-launch-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
}

.pet-trade-launch-controls label {
  display: grid;
  gap: 5px;
}

.pet-trade-launch-controls button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #806ca3, #6c9d83);
  font-size: 9px;
  font-weight: 900;
}

.pet-trade-launch-controls button:disabled {
  color: #978e9a;
  background: #e3dde4;
}

.panel-pets {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 89, 95, 0.2) transparent;
}

.panel-pets .panel-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(255, 250, 246, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.panel-pets > .panel-intro { order: 1; }
.panel-pets > .dual-pet-card { order: 2; }
.panel-pets > .pet-copy-collection { order: 3; }
.panel-pets > .pet-care-card { order: 4; }
.panel-pets > .pet-trade-launch { order: 5; }
.panel-pets > .pet-shop-nudge { order: 6; margin-bottom: max(22px, env(safe-area-inset-bottom)); }

.equipped-pet-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.equipped-pet-slots > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(75, 111, 84, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
}

.equipped-pet-slots small {
  grid-column: 1 / -1;
  color: #859084;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.equipped-pet-slots b {
  overflow: hidden;
  color: #455d4d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipped-pet-slots strong {
  color: #9a6f31;
  font-size: 9px;
}

.equipped-pet-slots > span.is-empty {
  opacity: 0.7;
  border-style: dashed;
}

.pet-copy-collection {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  padding: 18px 30px 8px;
}

.pet-copy-collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.pet-copy-collection-heading > div {
  display: grid;
  gap: 2px;
}

.pet-copy-collection-heading b {
  color: #514955;
  font-size: 14px;
}

.pet-copy-collection-heading small,
.pet-copy-collection-heading > span {
  color: #857985;
  font-size: 8px;
  line-height: 1.35;
}

.pet-storage-meter {
  position: relative;
  min-height: 22px;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(223, 218, 222, 0.74);
}

.pet-storage-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #72b68a, #acd47d);
  transition: width 180ms ease;
}

.pet-storage-meter span {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 22px;
  place-items: center;
  padding: 3px 10px;
  color: #4f5b50;
  font-size: 8px;
  font-weight: 900;
  text-align: center;
}

.pet-storage-meter.is-full {
  background: rgba(255, 218, 209, 0.92);
}

.pet-storage-meter.is-full i {
  background: linear-gradient(90deg, #e28166, #efad68);
}

.pet-storage-meter.is-full span {
  color: #7b3f34;
}

.pet-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pet-copy-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 22px rgba(95, 71, 86, 0.08);
}

.pet-copy-select {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pet-copy-select:focus-visible {
  outline: 3px solid rgba(78, 143, 95, 0.42);
  outline-offset: 4px;
  border-radius: 14px;
}

.pet-copy-card.tier-golden {
  border-color:#d79d18;
  background: linear-gradient(145deg, rgba(255, 224, 103, 0.96), rgba(255, 251, 215, 0.9));
  box-shadow:0 8px 24px rgba(190,126,15,.24),inset 0 0 0 2px rgba(255,255,255,.48);
}

.pet-copy-card.tier-rainbow {
  border-color:#c15bc9;
  background: linear-gradient(125deg, rgba(255, 173, 198, 0.96), rgba(255, 237, 147, 0.94), rgba(156, 241, 213, 0.95), rgba(179, 181, 255, 0.96));
  box-shadow:0 8px 26px rgba(129,79,190,.28),inset 0 0 0 2px rgba(255,255,255,.55);
}

.pet-copy-card.is-equipped {
  border-color: rgba(64, 151, 88, 0.82);
  background: linear-gradient(145deg, rgba(226, 250, 231, 0.97), rgba(255, 255, 255, 0.84));
  box-shadow: 0 8px 24px rgba(70, 139, 91, 0.22), inset 0 0 0 2px rgba(118, 197, 137, 0.12);
}
.pet-copy-card.tier-golden.is-equipped{background:linear-gradient(145deg,#ffe066,#fff7c7);border-color:#4f9f63}.pet-copy-card.tier-rainbow.is-equipped{background:linear-gradient(125deg,#ffaaca,#ffed8f,#96efd5,#b2b5ff);border-color:#4f9f63}

.pet-copy-card.is-huge {
  box-shadow: 0 8px 24px rgba(140, 93, 178, 0.2), inset 0 0 0 2px rgba(184, 129, 223, 0.22);
}

.pet-copy-card.is-shiny {
  border-color: rgba(255, 244, 160, 0.96);
  box-shadow:
    0 0 16px rgba(157, 231, 255, 0.62),
    0 0 30px rgba(255, 221, 104, 0.42),
    inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.pet-copy-card.is-storm-lost {
  border-color: rgba(65, 126, 151, 0.72);
  background: linear-gradient(145deg, rgba(208, 226, 232, 0.94), rgba(243, 248, 249, 0.82));
  box-shadow: 0 8px 24px rgba(46, 91, 112, 0.2), inset 0 0 0 2px rgba(102, 179, 196, 0.18);
}

.pet-copy-card.is-storm-lost .pet-copy-select {
  cursor: default;
}

.pet-copy-card.is-storm-lost .pet-copy-art > i {
  background: #416f82;
}

.pet-copy-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #f8dfd6, #dceae1);
}

.pet-copy-art .pet-asset-preview {
  width: 100%;
  height: 100%;
}

.pet-copy-art > i {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  background: #5d9b6f;
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
}

.pet-copy-art > em {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #8d64bd, #d278ad);
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
}

.pet-copy-art > mark.pet-copy-tier-badge{position:absolute;left:5px;bottom:5px;padding:4px 7px;border-radius:999px;color:#fff;background:#59616e;box-shadow:0 1px 5px rgba(0,0,0,.25);font-size:7px;font-weight:1000;letter-spacing:.06em;text-transform:uppercase}.pet-copy-art > mark.pet-copy-tier-badge.tier-golden{color:#493000;background:linear-gradient(135deg,#fff2a7,#e9aa21)}.pet-copy-art > mark.pet-copy-tier-badge.tier-rainbow{color:#fff;background:linear-gradient(100deg,#e9508d,#d89428,#2baf92,#6e6ccc);text-shadow:0 1px 2px rgba(0,0,0,.35)}

.pet-copy-art > mark.pet-copy-shiny-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #4b4354;
  background: linear-gradient(105deg, #ffe985, #fff, #a9efff, #fff1a4);
  box-shadow: 0 0 10px rgba(255, 255, 221, 0.96);
  font-size: 7px;
  font-weight: 1000;
}

.pet-converter-picker {
  position: absolute;
  top: max(82px, calc(env(safe-area-inset-top) + 68px));
  right: max(14px, env(safe-area-inset-right));
  z-index: 8;
  width: min(238px, calc(48vw - 14px));
  max-height: min(52vh, 410px);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  color: #403942;
  box-shadow: 0 12px 32px rgba(34, 31, 45, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pet-converter-picker.is-golden {
  background: linear-gradient(145deg, rgba(255, 252, 230, 0.9), rgba(247, 211, 109, 0.88));
}

.pet-converter-picker.is-rainbow {
  background: linear-gradient(145deg, rgba(249, 241, 255, 0.9), rgba(143, 224, 214, 0.88));
}

.pet-converter-picker.is-huge-machine {
  border-color: rgba(179, 135, 255, 0.78);
  background: linear-gradient(155deg, rgba(31, 29, 65, 0.97), rgba(50, 31, 88, 0.97));
  box-shadow: 0 22px 60px rgba(35, 20, 76, 0.42), inset 0 1px rgba(255, 255, 255, 0.2);
}

.pet-converter-picker.is-huge-machine > header > span {
  color: #fff4b0;
  background: rgba(132, 84, 211, 0.42);
}

.huge-machine-note {
  margin-top: 8px;
  color: rgba(235, 225, 255, 0.78);
  font: 750 8px/1.35 system-ui, sans-serif;
}

.pet-converter-picker > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.pet-converter-picker > header div {
  display: grid;
  gap: 2px;
}

.pet-converter-picker > header small {
  font: 900 7px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
}

.pet-converter-picker > header b {
  font: 950 15px/1 system-ui, sans-serif;
}

.pet-converter-picker > header > span {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  font: 950 8px/1 system-ui, sans-serif;
}

.pet-converter-picker > header > span.is-lucky {
  color: #245e4b;
  box-shadow: 0 0 12px rgba(109, 227, 175, 0.62);
}

.pet-converter-picker > p {
  margin: 6px 0 8px;
  font: 750 8px/1.25 system-ui, sans-serif;
}

.pet-converter-choice-list {
  display: grid;
  gap: 5px;
}

.pet-converter-choice-list > button {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 7px;
  border: 1px solid rgba(75, 75, 75, 0.16);
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.74);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.pet-converter-choice-list > button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.pet-converter-choice-list > button > span:first-child {
  font-size: 20px;
  line-height: 1;
}

.pet-converter-choice-list > button > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.pet-converter-choice-list b { font: 900 10px/1 system-ui, sans-serif; }
.pet-converter-choice-list small { font: 800 7px/1 system-ui, sans-serif; }
.pet-converter-choice-list strong { font: 950 8px/1 system-ui, sans-serif; }

.pet-converter-empty {
  padding: 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.56);
  font: 850 9px/1.2 system-ui, sans-serif;
  text-align: center;
}

.pet-copy-details {
  display: grid;
  align-content: center;
  min-width: 0;
}

.pet-copy-details small,
.pet-copy-details span {
  overflow: hidden;
  color: #8a7e86;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-copy-details b {
  color: #554c55;
  font-size: 11px;
}

.pet-copy-details strong {
  margin-top: 4px;
  color: #946b2f;
  font-size: 8px;
}

.pet-copy-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.pet-copy-actions button {
  min-height: 34px;
  padding: 5px;
  border: 0;
  border-radius: 10px;
  color: #6a6168;
  background: rgba(239, 233, 232, 0.9);
  font-size: 8px;
  font-weight: 900;
}

.pet-copy-actions button.is-active {
  color: #fff;
  background: #5f9b70;
}

.pet-copy-actions button.is-trade-selected {
  color: #fff;
  background: #806ca3;
}

.pet-copy-actions button.is-huge {
  color: #fff;
  background: linear-gradient(135deg, #8d64bd, #d278ad);
}

.pet-copy-actions button.is-release {
  color: #8a5a53;
  background: rgba(250, 229, 223, 0.94);
}

.pet-copy-actions button.is-release-confirm {
  color: #fff;
  background: linear-gradient(135deg, #c45e55, #dc8d5c);
}

.pet-copy-actions button:disabled {
  color: #aaa1a6;
  background: rgba(229, 225, 225, 0.72);
}

.dual-pet-card {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  align-items: center;
  gap: 16px;
  margin: 12px 30px 0;
  padding: 15px;
  border: 1px solid rgba(90, 123, 99, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(226, 247, 232, 0.72), rgba(251, 237, 190, 0.68));
}

.dual-pet-card.is-locked {
  background: linear-gradient(135deg, rgba(240, 237, 231, 0.78), rgba(231, 226, 239, 0.7));
}

.dual-pet-card.is-unlocked {
  grid-template-columns: 1fr;
}

.dual-pet-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dual-pet-heading > span {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.dual-pet-heading b,
.secondary-pet-picker > span {
  color: #4f6858;
  font-size: 10px;
  font-weight: 900;
}

.dual-pet-heading p {
  margin: 3px 0 0;
  color: #6f7f74;
  font-size: 9px;
  line-height: 1.4;
}

.secondary-pet-picker {
  display: grid;
  gap: 6px;
}

.secondary-pet-picker select {
  min-width: 0;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(75, 111, 84, 0.18);
  border-radius: 12px;
  color: #465a4c;
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 9px;
  font-weight: 850;
}

.school-key-checklist {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.school-key-checklist span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #817a82;
  background: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 850;
}

.school-key-checklist span.is-complete {
  color: #31714a;
  background: rgba(216, 246, 223, 0.94);
}

.pet-care-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 20px;
}

.pet-care-card b {
  font-size: 10px;
}

.location-nudge {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 18px 30px 0;
  padding: 13px;
  border: 1px solid rgba(119, 141, 102, 0.14);
  border-radius: 19px;
  background: rgba(230, 239, 219, 0.56);
}

.location-nudge > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 25px;
}

.location-nudge b {
  font-size: 11px;
}

.location-nudge button {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #7f9875;
  font-size: 9px;
  font-weight: 820;
}

.decor-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px 0;
}

.decor-toolbar span {
  color: #625a5f;
  font-size: 11px;
}

.decor-toolbar span b {
  font-size: 16px;
}

.decor-toolbar small {
  flex: 1;
  color: #8c8488;
  font-size: 9px;
}

.decor-toolbar > button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #4f7f9d;
  font-size: 9px;
  font-weight: 850;
}

.scrapbook-progress {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  align-items: center;
  gap: 20px;
  margin: 20px 30px 2px;
  padding: 16px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(242, 216, 169, 0.4), rgba(223, 215, 235, 0.4));
}

.scrapbook-progress > div:first-child {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1px 8px;
}

.scrapbook-progress > div:first-child span {
  grid-row: 1 / 3;
  color: #d1a13e;
  font-size: 28px;
}

.scrapbook-progress b {
  font-size: 14px;
}

.scrapbook-progress small {
  color: #847a7f;
  font-size: 8px;
  font-weight: 700;
}

.scrapbook-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(89, 79, 84, 0.09);
}

.scrapbook-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #84a076, #e9b65e);
}

.building-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 18px 30px;
}

.building-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 106px;
  padding: 12px;
  border: 1px solid rgba(80, 70, 75, 0.07);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.58);
}

.building-grid article > div > small {
  display: block;
  margin-top: 5px;
  color: #8a7f85;
  font-size: 8px;
  font-weight: 760;
}

.building-grid article > button {
  grid-column: 2;
  justify-self: start;
  min-width: 72px;
  margin-top: -3px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  background: #78658d;
  font-size: 9px;
  font-weight: 800;
}

.building-grid article > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: linear-gradient(145deg, #efdfcd, #e1dcef);
  font-size: 28px;
}

.building-grid article > b {
  position: absolute;
  top: 8px;
  right: 9px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #928a8e;
  background: rgba(80, 72, 77, 0.06);
  font-size: 7px;
}

.building-grid article.is-visited {
  border-color: rgba(116, 151, 102, 0.22);
  background: rgba(241, 247, 236, 0.72);
}

.building-grid article.is-visited > b {
  color: #66805f;
  background: rgba(117, 152, 103, 0.12);
}

.guide-controls {
  flex: 0 0 auto;
  margin: 0 30px 28px;
  padding: 16px 18px;
  border-radius: 19px;
  background: rgba(75, 67, 72, 0.045);
}

.guide-controls h3 {
  margin: 0 0 10px;
  font-size: 11px;
}

.guide-controls > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.guide-controls span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.guide-controls small {
  color: #777075;
  font-size: 8px;
  font-weight: 720;
}

.settings-list {
  padding: 12px 30px 30px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 13px 3px;
  border-bottom: 1px solid rgba(77, 69, 73, 0.075);
}

.setting-row > span {
  display: grid;
  gap: 2px;
}

.setting-row b {
  font-size: 12px;
}

.setting-row small {
  color: #827a7f;
  font-size: 9px;
  font-weight: 600;
}

.setting-row input[type="checkbox"] {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 27px;
  margin: 0;
  border: 1px solid rgba(75, 68, 72, 0.12);
  border-radius: 999px;
  background: rgba(77, 69, 74, 0.12);
  transition: background 180ms ease;
}

.setting-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(52, 46, 50, 0.23);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.setting-row input[type="checkbox"]:checked {
  background: #7e9a74;
}

.setting-row input[type="checkbox"]:checked::after {
  transform: translateX(19px);
}

.setting-row select {
  min-height: 38px;
  padding: 7px 30px 7px 12px;
  border: 1px solid rgba(76, 68, 73, 0.1);
  border-radius: 12px;
  color: #5f585d;
  background: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 750;
}

.setting-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.setting-button strong {
  color: #6c8566;
  font-size: 10px;
}

.local-backup-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(91, 129, 142, 0.18);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(231, 246, 247, 0.72), rgba(240, 235, 255, 0.62));
}

.local-backup-zone > div:first-child {
  display: grid;
  gap: 3px;
}

.local-backup-zone b { font-size: 10px; }
.local-backup-zone small { color: #6f7d82; font-size: 8px; line-height: 1.35; }

.local-backup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.local-backup-actions button {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #587b81;
  font-size: 8px;
  font-weight: 830;
}

.local-backup-actions button:last-child {
  color: #42636a;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(74, 111, 119, 0.18);
}

.parent-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid rgba(176, 93, 93, 0.12);
  border-radius: 17px;
  background: rgba(235, 203, 196, 0.24);
}

.recovery-code-zone {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(145px, 0.8fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(111, 94, 184, 0.18);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(236, 232, 255, 0.7), rgba(224, 249, 255, 0.68));
}

.recovery-code-zone > div {
  display: grid;
  gap: 2px;
}

.recovery-code-zone b { font-size: 10px; }
.recovery-code-zone small { color: #746f8c; font-size: 8px; }

.recovery-code-zone input,
.recovery-code-zone button {
  min-height: 36px;
  border-radius: 11px;
  font-size: 9px;
  font-weight: 800;
}

.recovery-code-zone input {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(97, 81, 167, 0.2);
  color: #51466f;
  background: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
}

.recovery-code-zone button {
  padding: 8px 12px;
  border: 0;
  color: #fff;
  background: #6f5eac;
}

.recovery-code-zone button:disabled {
  opacity: 0.48;
}

.multiplayer-luck-pill {
  border-color: rgba(92, 167, 211, 0.55) !important;
  background: linear-gradient(145deg, rgba(229, 250, 255, 0.96), rgba(230, 238, 255, 0.94)) !important;
}

.parent-zone > div {
  display: grid;
  gap: 2px;
}

.parent-zone b {
  font-size: 10px;
}

.parent-zone small {
  color: #847a7f;
  font-size: 8px;
}

.parent-zone button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(177, 81, 81, 0.16);
  border-radius: 11px;
  color: #a55f5f;
  background: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 830;
}

@keyframes welcome-rise {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes panel-up {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes tip-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(0.8deg); }
}

@media (max-width: 900px) {
  .welcome-screen {
    align-items: flex-end;
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent 20%, rgba(39, 46, 39, 0.1) 50%, rgba(32, 39, 34, 0.28));
  }

  .welcome-card {
    width: 100%;
    max-width: 590px;
    max-height: calc(100dvh - 40px);
    padding: 27px;
    overflow-y: auto;
    border-radius: 31px;
  }

  .welcome-mark {
    width: 54px;
    height: 54px;
    margin-bottom: 13px;
    border-radius: 18px;
  }

  .welcome-card h1 {
    font-size: clamp(42px, 11vw, 65px);
  }

  .welcome-copy {
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.48;
  }

  .welcome-features {
    gap: 6px;
    margin-bottom: 17px;
  }

  .welcome-features span {
    padding: 6px 9px;
    font-size: 10px;
  }

  .primary-play {
    min-height: 56px;
    border-radius: 18px;
    font-size: 14px;
  }

  .welcome-tip {
    display: none;
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .top-hud {
    top: max(9px, env(safe-area-inset-top));
    left: max(9px, env(safe-area-inset-left));
    right: max(9px, env(safe-area-inset-right));
  }

  .treasure-count {
    display: flex;
    min-height: 44px;
    padding: 7px 9px;
    border-radius: 15px;
  }

  .treasure-count small { display: none; }

  .treasure-count > span {
    font-size: 17px;
  }

  .treasure-count b {
    font-size: 14px;
  }

  .school-key-hud {
    top: max(66px, calc(env(safe-area-inset-top) + 57px));
    width: min(340px, calc(100vw - 18px));
    justify-content: center;
  }

  .water-park-key-hud.has-school-key {
    top: max(128px, calc(env(safe-area-inset-top) + 119px));
  }

  .xp-monitor {
    display: none;
  }

  .xp-monitor > div { min-width: 68px; }
  .xp-monitor small { font-size: 6px; }

  .round-hud-button {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 18px;
  }

  .town-center-button {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    border-radius: 15px;
  }

  .town-center-button b { display: none; }

  .hud-actions { max-width: 100%; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
  .multiplayer-pill { display: none; }
  .hide-and-seek-card { min-height: 44px; padding: 5px 6px; border-radius: 15px; }
  .hide-and-seek-card > div { display: none; }
  .hide-and-seek-card > span { font-size: 18px; }
  .hide-and-seek-card button { min-height: 32px; padding: 0 8px; font-size: 8px; }
  .hide-seek-invite-overlay { padding: 10px; }
  .hide-seek-invite-dialog { max-height: calc(100dvh - 20px); padding: 19px; overflow-y: auto; border-radius: 24px; }
  .hide-seek-invite-icon { width: 58px; height: 58px; font-size: 29px; }
  .hide-seek-invite-dialog h2 { font-size: clamp(32px, 12vw, 46px); }
  .hide-seek-invite-dialog h3 { font-size: 14px; }
  .hide-seek-ready-list { grid-template-columns: 1fr; }
  .hide-seek-ready-list > span { min-height: 52px; }
  .hide-seek-invite-actions button { min-height: 51px; }
  .laser-tag-start-card { min-height: 44px; padding: 5px 6px; border-radius: 15px; }
  .laser-tag-start-card > div { display: none; }
  .laser-tag-start-card > span { font-size: 18px; }
  .laser-tag-start-card button { min-height: 32px; padding: 0 8px; font-size: 8px; }
  .car-race-start-card { min-height: 44px; padding: 5px 6px; border-radius: 15px; }
  .car-race-start-card > div { display: none; }
  .car-race-start-card > span { font-size: 18px; }
  .car-race-start-card button { min-height: 32px; padding: 0 8px; font-size: 8px; }
  .race-course-picker-overlay { place-items: start center; padding: 9px; }
  .race-course-picker {
    max-height: calc(100dvh - 18px);
    padding: 17px;
    overflow-y: auto;
    border-radius: 24px;
  }
  .race-course-options { grid-template-columns: 1fr; }
  .race-course-card { min-height: 250px; padding: 16px; }
  .race-course-card-art { width: 48px; height: 48px; font-size: 24px; }
  .race-course-card > strong { font-size: 24px; }
  .car-race-invite-overlay { padding: 9px; }
  .car-race-invite-dialog {
    max-height: calc(100dvh - 18px);
    padding: 0 16px 17px;
    overflow-y: auto;
    border-radius: 25px;
  }
  .car-race-invite-art { height: 108px; margin: 0 -16px 10px; }
  .race-art-car { font-size: 36px; }
  .race-art-car.is-blue { font-size: 31px; }
  .car-race-invite-dialog h2 { font-size: clamp(31px, 11vw, 44px); }
  .car-race-invite-dialog h3 { font-size: 13px; }
  .car-race-feature-row { grid-template-columns: repeat(2, 1fr); }
  .car-race-ready-list { grid-template-columns: 1fr; }
  .car-race-ready-list > span { min-height: 50px; }
  .car-race-invite-actions button { min-height: 48px; }

  .pet-trade-overlay { padding: 10px; }
  .pet-trade-dialog { max-height: calc(100dvh - 20px); padding: 18px; overflow-y: auto; border-radius: 23px; }
  .pet-trade-icon { width: 62px; height: 44px; margin-bottom: 7px; font-size: 18px; }
  .pet-trade-dialog h2 { margin-bottom: 12px; font-size: 18px; }
  .pet-trade-offers article { min-height: 120px; padding: 9px 6px; }
  .pet-trade-offers article > span { font-size: 31px; }
  .pet-trade-offers article > b { font-size: 9px; }
  .pet-trade-dialog-v2 .pet-trade-offers article { min-height: 150px; }
  .pet-trade-pet-picker { grid-template-columns: 1fr 1fr; max-height: 220px; }
  .pet-trade-pet-picker > button { grid-template-columns: 32px minmax(0, 1fr); }
  .pet-trade-pet-picker > button > i { grid-column: 1 / -1; grid-row: 3; text-align: center; }
  .pet-trade-gem-builder { grid-template-columns: 1fr; }
  .pet-trade-gem-builder > div { display: grid; grid-template-columns: repeat(4, 1fr); }
  .pet-trade-actions button { min-height: 42px; }
  .pet-trade-launch { margin-inline: 18px; }
  .pet-trade-launch-controls { grid-template-columns: 1fr; }
  .pet-trade-launch-controls button { min-height: 42px; }
  .laser-tag-invite-overlay { padding: 10px; }
  .laser-tag-invite-dialog { max-height: calc(100dvh - 20px); padding: 19px; overflow-y: auto; border-radius: 23px; }
  .laser-tag-invite-icon { width: 52px; height: 52px; margin-bottom: 7px; font-size: 24px; }
  .laser-tag-invite-dialog h2 { font-size: 19px; }
  .laser-tag-ready-list { grid-template-columns: 1fr; }
  .laser-tag-hud { top: max(8px, env(safe-area-inset-top)); width: calc(100% - 18px); padding: 8px; }
  .laser-tag-hud > header b { font-size: 15px; }
  .laser-tag-scoreboard > span { padding: 5px; }
  .laser-tag-hud > p span { display: none; }
  .laser-tag-fire-button { right: max(17px, env(safe-area-inset-right)); bottom: max(94px, calc(env(safe-area-inset-bottom) + 78px)); width: 78px; height: 78px; }
  .car-race-hud {
    top: max(7px, env(safe-area-inset-top));
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 5px;
    width: calc(100% - 14px);
  }
  .car-race-place { min-height: 81px; border-radius: 17px; }
  .car-race-place strong { font-size: 27px; }
  .car-race-center-stack { padding: 7px 8px; border-radius: 17px; }
  .car-race-center-stack > header b { font-size: 16px; }
  .car-race-target { padding: 3px 5px; }
  .car-race-progress { margin-block: 6px; }
  .car-race-readouts { grid-template-columns: .8fr 1.35fr 1fr; }
  .car-race-readouts > span:nth-child(2) { display: none; }
  .car-race-readouts > span { min-height: 25px; padding: 3px 5px; }
  .car-race-end {
    position: absolute;
    right: 0;
    bottom: -35px;
    min-width: 69px;
    min-height: 30px;
    border-radius: 11px;
  }
  .car-race-item {
    top: 86px;
    right: auto;
    left: 0;
    grid-template-columns: 31px minmax(88px, 1fr) auto;
    min-width: min(225px, calc(100vw - 88px));
    min-height: 43px;
    padding: 5px 7px;
    border-radius: 13px;
  }
  .car-race-item > i { width: 29px; height: 29px; font-size: 16px; }
  .car-race-live-standings {
    top: max(98px, calc(env(safe-area-inset-top) + 91px));
    width: 130px;
    padding: 5px;
  }
  .car-race-live-standings > span { min-height: 22px; }
  .race-start-lights i { width: 24px; height: 24px; }
  .car-race-results-overlay { padding: 9px; }
  .car-race-results {
    max-height: calc(100dvh - 18px);
    padding: 20px 15px 16px;
    overflow-y: auto;
    border-radius: 25px;
  }
  .race-results-number { font-size: clamp(80px, 26vw, 110px); }
  .race-results-stats { gap: 4px; }
  .race-results-stats > span { min-height: 47px; padding: 3px; }
  .race-results-podium { flex-direction: column; }
  .race-results-podium > span { flex: auto; }

  .bottom-dock {
    left: 9px;
    right: 9px;
    bottom: max(8px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 0;
    transform: none;
  }

  .bottom-dock button {
    min-height: 53px;
    padding: 4px;
    border-radius: 18px;
  }

  .bottom-dock button > span {
    font-size: 20px;
  }

  .bottom-dock button small {
    font-size: 7.5px;
  }

  .room-editor {
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 70px));
    gap: 7px;
    width: calc(100vw - 18px);
    min-height: 62px;
    padding: 7px;
    border-radius: 20px;
  }

  .room-editor-icon {
    width: 43px;
    height: 43px;
    border-radius: 14px;
    font-size: 21px;
  }

  .room-editor b {
    font-size: 10px;
  }

  .room-editor em {
    font-size: 7px;
  }

  .room-editor button {
    min-height: 37px;
    padding: 0 9px;
    border-radius: 12px;
    font-size: 8px;
  }

  .room-editor button.decor-color-swatch {
    width: 28px;
    min-height: 28px;
    padding: 0;
  }

  .room-editor button.is-danger {
    display: none;
  }

  .decor-mode-banner {
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 70px));
    gap: 6px;
    width: calc(100vw - 18px);
    min-height: 62px;
    padding: 8px 8px 8px 12px;
    border-radius: 20px;
  }

  .decor-mode-banner span { display: none; }
  .decor-mode-banner b { font-size: 10px; }
  .decor-mode-banner button { min-height: 37px; padding: 0 9px; font-size: 8px; }

  .panel-scrim {
    align-items: end;
    padding: 0;
  }

  .game-panel {
    width: 100%;
    max-height: 84dvh;
    border-radius: 28px 28px 0 0;
    animation-name: panel-mobile-up;
  }

  .panel-header {
    padding: 20px 18px 14px 20px;
  }

  .panel-header h2 {
    font-size: 24px;
  }

  .panel-header > button {
    width: 39px;
    height: 39px;
  }

  .segmented-tabs {
    align-self: stretch;
    margin: 13px 18px 3px;
  }

  .segmented-tabs button {
    flex: 1;
    padding-inline: 6px;
  }

  .item-grid,
  .choice-grid,
  .building-grid,
  .settings-list {
    padding-left: 18px;
    padding-right: 18px;
  }

  .item-grid {
    gap: 9px;
    padding-top: 12px;
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }

  .item-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 145px;
    padding: 9px;
    border-radius: 17px;
  }

  .item-art {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    font-size: 26px;
  }

  .item-card h3 {
    font-size: 10px;
  }

  .item-card p {
    font-size: 8px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    padding-top: 17px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .choice-grid > button {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 94px;
    border-radius: 19px;
  }

  .choice-preview {
    width: 70px;
    height: 70px;
    border-radius: 19px;
    font-size: 31px;
  }

  .pet-grid > button {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 102px;
  }

  .pet-portrait {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    font-size: 42px;
  }

  .panel-intro,
  .decor-toolbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pet-care-card,
  .guide-controls {
    margin-left: 18px;
    margin-right: 18px;
    margin-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .location-nudge {
    grid-template-columns: 44px minmax(0, 1fr);
    margin: 14px 18px 0;
  }

  .location-nudge > button {
    grid-column: 1 / -1;
  }

  .scrapbook-progress {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 18px 0;
  }

  .building-grid {
    grid-template-columns: 1fr;
  }

  .guide-controls > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .setting-row {
    min-height: 66px;
  }

  .local-backup-zone {
    grid-template-columns: 1fr;
  }

  .local-backup-actions {
    justify-content: stretch;
  }

  .local-backup-actions button {
    flex: 1;
  }

  .parent-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .recovery-code-zone {
    grid-template-columns: 1fr;
  }

  .game-toast {
    top: auto;
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 82px));
    font-size: 11px;
  }
}

/* Minimal play HUD: icons and live values without card-shaped signage. */
.hud-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hud-mode-button,
.luck-boost-pill,
.treasure-count,
.town-center-button,
.round-hud-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hud-mode-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font: 900 10px/1 system-ui, sans-serif;
  filter: drop-shadow(0 3px 7px rgba(39, 35, 37, 0.25));
}

.hud-mode-button > span {
  font-size: 25px;
  line-height: 1;
}

.hud-mode-button > b {
  position: absolute;
  right: 0;
  bottom: 1px;
  min-width: 16px;
  color: #fff;
  font-size: 10px;
  text-shadow: 0 1px 4px rgba(30, 27, 28, 0.85);
}

.hud-mode-button:disabled {
  opacity: 0.38;
  filter: grayscale(0.65) drop-shadow(0 2px 4px rgba(39, 35, 37, 0.16));
}

.hud-mode-button.trade-hud-button {
  color: #fff;
  background: linear-gradient(145deg, rgba(113, 87, 166, 0.96), rgba(70, 151, 119, 0.95));
  box-shadow: 0 7px 18px rgba(79, 92, 131, 0.25), inset 0 1px rgba(255, 255, 255, 0.36);
}

.hud-mode-button.trade-hud-button > span {
  font-size: 24px;
  font-weight: 950;
}

.hud-mode-button.world-switch-button {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hud-mode-button.world-switch-button.is-earth {
  background: transparent;
}

.hud-mode-button.world-switch-button.is-moon {
  background: transparent;
}

.hud-mode-button.converter-shortcut {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hud-mode-button.converter-shortcut .rainbow-star-glyph {
  color: transparent;
  background: linear-gradient(135deg, #ff6f91 5%, #ffd75e 30%, #79f0be 52%, #6cddff 70%, #c892ff 94%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 31px;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.92))
    drop-shadow(0 3px 6px rgba(31, 34, 66, 0.5));
}

.luck-boost-pill {
  min-height: 44px;
  padding: 2px 4px;
  gap: 2px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(23, 68, 42, 0.88);
}

.luck-boost-pill.fishing-outfit-pill {
  min-width: 38px;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.luck-boost-pill.abyssal-bait-pill {
  min-width: 42px;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 5px rgba(45, 25, 80, 0.96);
}

.luck-boost-pill > span {
  font-size: 24px;
}

.luck-boost-pill small {
  margin: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.treasure-count {
  min-height: 44px;
  padding: 3px 5px;
  gap: 2px;
  border-radius: 0;
  background: transparent;
}

.treasure-count > span {
  margin: 0;
  font-size: 22px;
  filter: drop-shadow(0 2px 5px rgba(33, 29, 31, 0.34));
}

.treasure-count b,
.pet-coin-count b,
.pet-gem-count b,
.ai-token-count b,
.shell-coin-count b {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  text-shadow: 0 2px 6px rgba(31, 28, 30, 0.82);
}

.treasure-count output {
  top: calc(100% - 2px);
  right: 0;
  min-width: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  text-shadow: 0 2px 5px rgba(24, 79, 48, 0.9);
}

.town-center-button,
.round-hud-button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 3px 7px rgba(39, 35, 37, 0.26));
}

.town-center-button span,
.round-hud-button {
  font-size: 23px;
}

.bottom-dock {
  grid-template-columns: repeat(5, 52px);
  gap: 12px;
}

.bottom-dock button,
.bottom-dock button:hover {
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: drop-shadow(0 4px 8px rgba(42, 35, 38, 0.3));
}

.bottom-dock button:hover {
  transform: translateY(-2px) scale(1.06);
}

.bottom-dock button > span {
  font-size: 29px;
}

.bottom-dock button small {
  display: none;
}

.bottom-dock button > b,
.pet-dock-button > b {
  top: auto;
  right: -2px;
  bottom: 0;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  color: #fff !important;
  background: transparent !important;
  font-size: 10px;
  text-shadow: 0 2px 5px rgba(35, 30, 31, 0.9);
}

.pet-dock-empty {
  border: 0;
  background: transparent;
}

@media (max-width: 680px) {
  .hud-actions {
    gap: 4px;
  }

  .hud-mode-button,
  .town-center-button,
  .round-hud-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .treasure-count,
  .luck-boost-pill {
    min-height: 40px;
    padding: 2px 3px;
  }

  .bottom-dock {
    left: 50%;
    right: auto;
    grid-template-columns: repeat(5, 48px);
    gap: 7px;
    transform: translateX(-50%);
  }

  .bottom-dock button,
  .bottom-dock button:hover {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

@keyframes panel-mobile-up {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 430px), (max-height: 690px) {
  .welcome-card {
    padding: 22px;
  }

  .welcome-mark {
    display: none;
  }

  .welcome-kicker {
    font-size: 9px;
  }

  .welcome-card h1 {
    font-size: clamp(37px, 12vw, 51px);
  }

  .welcome-copy {
    margin: 11px 0 13px;
    font-size: 11px;
  }

  .welcome-features span {
    font-size: 9px;
  }

  .welcome-note {
    font-size: 9px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sky-fair-ticket {
  position: absolute;
  top: 150px;
  right: 22px;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(310px, calc(100% - 44px));
  padding: 13px 14px;
  overflow: hidden;
  color: #29495c;
  background: linear-gradient(135deg, #fff8d9, #ffe0a8 58%, #f7bdca);
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(51, 68, 78, .24), inset 0 0 0 2px rgba(56, 85, 107, .12);
  pointer-events: none;
  animation: sky-ticket-print 520ms cubic-bezier(.2, .9, .25, 1.18) both;
}

.glider-altimeter {
  position: absolute;
  top: 150px;
  right: 22px;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr 12px;
  align-items: center;
  gap: 11px;
  min-width: 192px;
  padding: 12px 13px;
  color: #f9fbf4;
  background: linear-gradient(145deg, rgba(42, 72, 83, .94), rgba(55, 95, 94, .92));
  border: 2px solid rgba(255, 255, 255, .84);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(31, 55, 66, .28), inset 0 0 0 2px rgba(165, 225, 218, .16);
  pointer-events: none;
}

.glider-altimeter-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff3bf;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  font: 900 25px/1 system-ui, sans-serif;
}

.glider-altimeter > div:nth-child(2) { display: grid; gap: 1px; }
.glider-altimeter small { font: 850 8px/1.1 system-ui, sans-serif; letter-spacing: .18em; color: #bce8df; }
.glider-altimeter strong { font: 950 24px/1 system-ui, sans-serif; letter-spacing: -.04em; }
.glider-altimeter em { font: 750 9px/1.2 system-ui, sans-serif; font-style: normal; color: #d9ebe6; }

.glider-altimeter-gauge {
  position: relative;
  align-self: stretch;
  min-height: 48px;
  overflow: hidden;
  background: rgba(12, 36, 43, .52);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
}

.glider-altimeter-gauge > span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  border-radius: 999px;
  background: linear-gradient(to top, #f5c45e, #8ee0d2);
  transition: height 100ms linear;
}

.jet-pack-fuel-meter {
  position: absolute;
  top: 238px;
  right: 22px;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 11px;
  min-width: 224px;
  padding: 11px 13px 12px;
  color: #f7fbff;
  background: linear-gradient(145deg, rgba(29, 55, 92, .95), rgba(54, 72, 126, .92));
  border: 2px solid rgba(183, 238, 255, .82);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(13, 27, 57, .34), inset 0 0 0 2px rgba(104, 224, 255, .12);
  pointer-events: none;
}

.jet-pack-fuel-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 30%, #fff3b8, #ff9068 46%, #4a72bc 74%);
  box-shadow: 0 0 18px rgba(92, 222, 255, .38);
  font-size: 21px;
}

.jet-pack-fuel-meter > div:nth-child(2) { display: grid; gap: 1px; }
.jet-pack-fuel-meter small { color: #8fe8ff; font: 900 8px/1.1 system-ui, sans-serif; letter-spacing: .17em; }
.jet-pack-fuel-meter strong { font: 950 22px/1 system-ui, sans-serif; letter-spacing: -.035em; }
.jet-pack-fuel-meter em { color: #d8eaff; font: 750 8px/1.25 system-ui, sans-serif; font-style: normal; }

.jet-pack-fuel-gauge {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(8, 21, 50, .58);
}

.jet-pack-fuel-gauge > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8065, #ffe170 42%, #72e7ff);
  box-shadow: 0 0 12px rgba(103, 227, 255, .65);
  transition: width 100ms linear;
}

.sky-fair-ticket::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(56, 85, 107, .35);
  border-radius: 12px;
}

.sky-fair-ticket > span { font-size: 34px; z-index: 1; }
.sky-fair-ticket > div { display: grid; gap: 1px; z-index: 1; }
.sky-fair-ticket small { font: 800 8px/1.1 system-ui, sans-serif; letter-spacing: .13em; }
.sky-fair-ticket strong { font: 950 18px/1 system-ui, sans-serif; letter-spacing: -.03em; }
.sky-fair-ticket b { font: 850 9px/1.2 system-ui, sans-serif; letter-spacing: .08em; color: #a25d75; }
.sky-fair-ticket em {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #38556b;
  font: 900 18px/1 system-ui, sans-serif;
  font-style: normal;
}

@keyframes sky-ticket-print {
  from { opacity: 0; transform: translateY(-22px) rotate(2deg) scale(.82); }
  to { opacity: 1; transform: translateY(0) rotate(-1deg) scale(1); }
}

@media (max-width: 700px) {
  .sky-fair-ticket { top: 138px; right: 12px; width: min(280px, calc(100% - 24px)); }
  .glider-altimeter { top: 138px; right: 12px; min-width: 172px; padding: 10px 11px; }
  .jet-pack-fuel-meter { top: 224px; right: 12px; min-width: 196px; max-width: calc(100% - 24px); padding: 9px 11px 10px; }
}

/* Taylor Town gameplay welcome art */
#root:empty {
  background: #f6ddcf url("../art/adventure-atlas-v1.jpg?v=42") center / cover no-repeat;
}

.welcome-screen {
  z-index: 20000;
  overflow: hidden;
  background: #f6ddcf url("../art/adventure-atlas-v1.jpg?v=42") center / cover no-repeat;
}

body:has(.welcome-screen) #tl-pizzeria-shift-hud,
body:has(.welcome-screen) #tl-pizzeria-menu-bar,
body:has(.welcome-screen) #tl-npc-playdate-bar,
body:has(.welcome-screen) #tl-vanity-studio-bar,
body:has(.welcome-screen) #tl-cooking-rating-toast,
body:has(.welcome-screen) #tl-chef-rating-card,
body:has(.welcome-screen) #tl-transition-banner {
  display: none !important;
}

.welcome-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../art/adventure-atlas-v1.jpg?v=42");
  background-position: center;
  background-size: cover;
  filter: saturate(1.04) contrast(1.015);
  transform: scale(1.005);
}

.welcome-card {
  width: min(520px, 43vw);
  padding: clamp(28px, 3.5vw, 48px);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 36px;
  background:
    radial-gradient(circle at 90% 2%, rgba(255, 215, 148, 0.38), transparent 35%),
    rgba(255, 250, 245, 0.9);
  box-shadow: 0 28px 80px rgba(121, 70, 52, 0.22), inset 0 1px #fff;
}

.welcome-card h1 {
  color: #6f4b45;
  font-family: "Avenir Next Rounded", "Trebuchet MS", system-ui, sans-serif;
  font-size: clamp(44px, 4.5vw, 70px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.welcome-card h1 span {
  color: #d76f7d;
  font-size: 0.58em;
  letter-spacing: -0.025em;
}

.welcome-kicker { color: #b5616e; }
.welcome-copy { color: #725f5a; font-weight: 650; }
.welcome-features span {
  border-color: rgba(198, 120, 110, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #765d58;
  box-shadow: 0 5px 14px rgba(135, 86, 70, 0.07);
}

.welcome-mark {
  background: linear-gradient(145deg, #ef9aa4, #d76f7d);
  box-shadow: 0 12px 26px rgba(190, 93, 108, 0.28), inset 0 1px rgba(255,255,255,.42);
}

.primary-play {
  background: linear-gradient(135deg, #e47783, #d76675 54%, #b8749b);
  box-shadow: 0 16px 34px rgba(190, 84, 103, 0.3), inset 0 1px rgba(255,255,255,.35);
}

.primary-play:hover {
  box-shadow: 0 20px 44px rgba(190, 84, 103, 0.36), inset 0 1px rgba(255,255,255,.4);
}

.welcome-tip { display: none; }

.game-panel {
  border: 2px solid rgba(255,255,255,.84);
  background:
    radial-gradient(circle at 94% 2%, rgba(248, 184, 151, .26), transparent 34%),
    linear-gradient(155deg, rgba(255, 251, 246, .98), rgba(253, 232, 232, .97));
  box-shadow: 0 28px 90px rgba(92, 50, 49, .25), inset 0 1px #fff;
}

.item-card,
.choice-grid > button {
  border-width: 2px;
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.74);
}

.item-art {
  background: linear-gradient(145deg, #ffe6db, #e6e4f6);
  box-shadow: inset 0 2px rgba(255,255,255,.8), 0 7px 18px rgba(123,80,76,.09);
}

.game-toast {
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 18px;
  color: #694a47;
  background: rgba(255, 247, 239, .96);
  box-shadow: 0 15px 44px rgba(99,55,50,.2);
}

@media (max-width: 800px) {
  .welcome-art {
    background-position: 62% center;
    filter: saturate(.96) brightness(.88);
  }

  .welcome-card {
    width: min(560px, 94vw);
    background: rgba(255, 250, 245, .94);
  }
}

@keyframes asset-thumbnail-loading-sheen {
  from { transform: translateX(-105%); }
  to { transform: translateX(105%); }
}

.asset-thumbnail > .asset-thumbnail-loading {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.78) 0 18%, transparent 19%),
    linear-gradient(145deg, rgba(225, 218, 212, 0.78), rgba(241, 237, 232, 0.88));
}

.asset-thumbnail > .asset-thumbnail-loading::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.58) 50%, transparent 70%);
  animation: asset-thumbnail-loading-sheen 1.15s ease-in-out infinite;
}

/* Polished backpack collection */

.panel-backpack {
  width: min(1040px, 100%);
  max-height: min(88dvh, 860px);
  background:
    radial-gradient(circle at 8% 0, rgba(239, 194, 151, 0.16), transparent 30%),
    linear-gradient(155deg, rgba(255, 253, 249, 0.99), rgba(249, 244, 239, 0.99));
}

.panel-backpack .panel-header {
  padding-bottom: 16px;
}

.backpack-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.inventory-overview {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(168px, 0.62fr) minmax(240px, 1.5fr) auto;
  align-items: center;
  gap: 20px;
  margin: 16px 26px 10px;
  padding: 14px 17px;
  border: 1px solid rgba(100, 84, 76, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(91, 70, 61, 0.055);
}

.inventory-overview-copy {
  display: grid;
  gap: 1px;
}

.inventory-overview-copy small,
.inventory-progress-label span,
.inventory-quick-rail header small {
  color: #9a7770;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inventory-overview-copy strong {
  color: #514742;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.inventory-overview-copy > span {
  color: #85766f;
  font-size: 10px;
  font-weight: 650;
}

.inventory-progress-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.inventory-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inventory-progress-label b {
  color: #6b8062;
  font-size: 11px;
}

.inventory-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8e2;
  box-shadow: inset 0 1px 2px rgba(79, 65, 58, 0.08);
}

.inventory-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #79916f, #a5b782);
  box-shadow: 0 0 12px rgba(119, 148, 104, 0.22);
  transition: width 300ms ease;
}

.inventory-overview-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 4px;
}

.inventory-overview-stats > span {
  display: grid;
  min-width: 62px;
}

.inventory-overview-stats b {
  color: #514742;
  font-size: 17px;
  line-height: 1;
}

.inventory-overview-stats small {
  margin-top: 3px;
  color: #8a7b75;
  font-size: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.inventory-overview-stats i {
  width: 1px;
  height: 28px;
  background: rgba(91, 75, 68, 0.12);
}

.inventory-quick-rail {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  min-height: 62px;
  margin: 0 26px 12px;
  padding: 8px;
  border: 1px solid rgba(100, 84, 76, 0.08);
  border-radius: 18px;
  background: rgba(245, 239, 234, 0.76);
}

.inventory-quick-rail > header {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 2px 11px;
  border-right: 1px solid rgba(93, 76, 69, 0.1);
}

.inventory-quick-rail header b {
  color: #5d514c;
  font-size: 12px;
}

.inventory-quick-items {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.inventory-quick-items::-webkit-scrollbar {
  display: none;
}

.inventory-quick-items > button {
  display: grid;
  grid-template-columns: 42px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 202px;
  min-height: 46px;
  padding: 4px 6px 4px 4px;
  border: 1px solid rgba(93, 75, 69, 0.09);
  border-radius: 13px;
  color: #5c514d;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 10px rgba(82, 65, 59, 0.045);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.inventory-quick-items > button:hover {
  border-color: rgba(114, 139, 102, 0.28);
  box-shadow: 0 7px 16px rgba(79, 65, 58, 0.08);
  transform: translateY(-1px);
}

.inventory-quick-items > button > span:not(.asset-thumbnail) {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}

.inventory-quick-items button b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-quick-items button small {
  color: #927b73;
  font-size: 9px;
  font-weight: 850;
}

.inventory-quick-items button em {
  padding: 6px 8px;
  border-radius: 9px;
  color: #fff;
  background: #7b906f;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.inventory-quick-rail .pocket-item-preview {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #f7e4d8, #ece4ef);
}

.inventory-quick-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 4px 10px;
  color: #887a74;
}

.inventory-quick-empty > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.8);
  filter: grayscale(0.35);
}

.inventory-quick-empty small {
  font-size: 10px;
  font-weight: 650;
}

.inventory-workspace {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 14px;
  min-height: 0;
  padding: 0 26px 24px;
}

.inventory-catalog {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(94, 78, 71, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
}

.panel-backpack .inventory-tabs {
  display: flex;
  align-self: stretch;
  gap: 5px;
  margin: 0;
  padding: 8px;
  border-bottom: 1px solid rgba(92, 75, 68, 0.08);
  border-radius: 0;
  background: rgba(247, 243, 239, 0.82);
}

.panel-backpack .inventory-tabs button {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 11px;
  color: #776b66;
  font-size: 10px;
}

.panel-backpack .inventory-tabs button > span {
  color: #a37b72;
  font-size: 12px;
}

.panel-backpack .inventory-tabs button em {
  overflow: hidden;
  font-style: normal;
  font-weight: 820;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-backpack .inventory-tabs button b {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border-radius: 8px;
  color: #887873;
  background: rgba(92, 76, 69, 0.07);
  font-size: 8px;
}

.panel-backpack .inventory-tabs button[aria-selected="true"] {
  color: #506449;
  background: #fff;
  box-shadow: 0 4px 13px rgba(77, 65, 59, 0.08);
}

.panel-backpack .inventory-tabs button[aria-selected="true"] > span {
  color: #6f8964;
}

.panel-backpack .inventory-tabs button[aria-selected="true"] b {
  color: #fff;
  background: #7d9472;
}

.panel-backpack .inventory-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 9px;
  min-height: 0;
  padding: 11px;
  overflow-y: auto;
}

.inventory-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(93, 77, 70, 0.09);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(79, 65, 59, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.inventory-card:hover {
  border-color: rgba(112, 137, 100, 0.24);
  box-shadow: 0 9px 21px rgba(79, 65, 59, 0.085);
  transform: translateY(-1px);
}

.inventory-card.is-selected {
  border-color: rgba(103, 132, 91, 0.58);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(125, 151, 112, 0.1), 0 10px 22px rgba(74, 65, 57, 0.09);
}

.inventory-card-select {
  display: grid;
  width: 100%;
  grid-template-columns: 80px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  min-height: 102px;
  padding: 8px 10px 8px 8px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.inventory-card-art {
  width: 80px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
}

.inventory-card-art > img {
  padding: 3px;
  filter: drop-shadow(0 8px 7px rgba(72, 53, 52, 0.2));
}

.inventory-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.inventory-card-copy > b {
  display: -webkit-box;
  overflow: hidden;
  color: #504844;
  font-size: 13px;
  font-weight: 880;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.inventory-card-copy > small {
  overflow: hidden;
  color: #897a74;
  font-size: 9px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-card-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.inventory-card-meta small {
  display: flex;
  overflow: hidden;
  align-items: center;
  gap: 4px;
  color: #a0766e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-card-meta small > span {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
}

.inventory-card-meta strong {
  display: grid;
  min-width: 23px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 8px;
  color: #65795d;
  background: #eef2ea;
  font-size: 8px;
}

.inventory-card-chevron {
  color: #a69a94;
  font: 500 22px/1 system-ui, sans-serif;
  transition: color 150ms ease, transform 150ms ease;
}

.inventory-card.is-selected .inventory-card-chevron {
  color: #708866;
  transform: translateX(1px);
}

.inventory-card-inline-detail {
  display: none;
}

.panel-backpack .inventory-empty-state {
  min-height: 230px;
  padding: 28px;
}

.panel-backpack .inventory-empty-state > span {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 25px;
  box-shadow: 0 8px 22px rgba(77, 65, 59, 0.09);
}

.panel-backpack .inventory-empty-state h3 {
  margin-top: 14px;
  font-size: 15px;
}

.panel-backpack .inventory-empty-state p {
  font-size: 10px;
}

.inventory-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid rgba(94, 78, 71, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 9px 26px rgba(80, 65, 58, 0.055);
}

.inventory-detail-visual {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  height: 178px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
}

.inventory-detail-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 58%);
  pointer-events: none;
}

.inventory-detail-art {
  width: 94%;
  height: 94%;
}

.inventory-detail-art > img {
  padding: 7px;
  filter: drop-shadow(0 15px 12px rgba(70, 48, 48, 0.22));
}

.inventory-detail-visual > span:not(.asset-thumbnail) {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 1;
  display: grid;
  min-width: 31px;
  height: 28px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 10px;
  color: #5d514c;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 12px rgba(73, 55, 51, 0.11);
  font-size: 10px;
  font-weight: 900;
  backdrop-filter: blur(6px);
}

.inventory-detail-copy {
  display: grid;
  gap: 5px;
  padding: 15px 4px 12px;
}

.inventory-detail-copy > small {
  color: #a0756e;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.inventory-detail-copy h3 {
  margin: 0;
  color: #4e4642;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.inventory-detail-copy p {
  margin: 0;
  color: #796e69;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.52;
}

.inventory-detail-facts {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 5px;
  padding: 9px;
  border-radius: 13px;
  background: #f5f1ed;
}

.inventory-detail-facts > span {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
}

.inventory-detail-facts small {
  color: #91827b;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inventory-detail-facts b {
  overflow: hidden;
  max-width: 100%;
  color: #594e49;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-detail-status {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid rgba(115, 142, 102, 0.12);
  border-radius: 13px;
  color: #64715f;
  background: #f3f6f0;
}

.inventory-detail-status > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #e4ecdf;
  font-size: 13px;
}

.inventory-detail-status p {
  margin: 0;
  font-size: 9px;
  font-weight: 720;
  line-height: 1.35;
}

.inventory-detail-action,
.inventory-card-inline-detail > button {
  min-height: 42px;
  margin-top: auto;
  padding: 9px 14px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #7e966f, #687f62);
  box-shadow: 0 8px 18px rgba(90, 116, 80, 0.18);
  font-size: 10px;
  font-weight: 880;
}

.inventory-detail-action {
  width: 100%;
  margin-top: 11px;
}

.inventory-detail-action:disabled,
.inventory-card-inline-detail > button:disabled {
  color: #8c837e;
  background: #eeeae6;
  box-shadow: none;
}

.inventory-detail-empty {
  display: grid;
  flex: 1;
  place-content: center;
  justify-items: center;
  padding: 30px 20px;
  color: #857872;
  text-align: center;
}

.inventory-detail-empty > span {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 18px;
  background: #f0e9e3;
  font-size: 22px;
}

.inventory-detail-empty b {
  color: #5b504b;
  font-size: 14px;
}

.inventory-detail-empty p {
  max-width: 190px;
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.45;
}

/* Tablet layout: iPad widths need a true list, not a squeezed card grid plus
   side inspector. Keeping each item in normal document flow prevents Safari
   from stacking cards and details on top of one another. */
@media (max-width: 1100px), (max-width: 1180px) and (pointer: coarse) {
  .panel-backpack {
    width: min(940px, 100%);
    max-height: min(92dvh, 900px);
  }

  .backpack-panel {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .inventory-overview {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .inventory-progress-wrap {
    grid-column: 1 / -1;
  }

  .inventory-workspace {
    display: block;
    flex: 0 0 auto;
  }

  .inventory-catalog {
    min-height: auto;
    overflow: visible;
  }

  .panel-backpack .inventory-tabs {
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .panel-backpack .inventory-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .inventory-card {
    position: relative;
    display: block;
    isolation: isolate;
  }

  .inventory-card-select {
    grid-template-columns: 96px minmax(0, 1fr) 18px;
    min-height: 114px;
  }

  .inventory-card-art {
    width: 96px;
    height: 98px;
  }

  .inventory-card-inline-detail {
    position: static;
    display: grid;
    gap: 8px;
    padding: 0 14px 14px 118px;
    border-top: 1px solid rgba(91, 75, 68, 0.07);
  }

  .inventory-card-inline-detail p {
    margin: 10px 0 0;
    color: #716762;
    font-size: 11px;
    font-weight: 620;
    line-height: 1.48;
  }

  .inventory-card-inline-detail > span {
    color: #65735f;
    font-size: 9px;
    font-weight: 760;
  }

  .inventory-card-inline-detail > button {
    justify-self: start;
    min-width: 156px;
    min-height: 38px;
    margin-top: 1px;
  }

  .inventory-detail {
    display: none;
  }
}

@media (max-width: 820px) {
  .panel-backpack {
    max-height: min(90dvh, 860px);
  }

  .backpack-panel {
    overflow-y: auto;
  }

  .inventory-overview {
    grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr) auto;
    gap: 14px;
    margin-right: 20px;
    margin-left: 20px;
  }

  .inventory-quick-rail {
    margin-right: 20px;
    margin-left: 20px;
  }

  .inventory-workspace {
    display: block;
    flex: 0 0 auto;
    padding: 0 20px 24px;
  }

  .inventory-catalog {
    min-height: auto;
    overflow: visible;
  }

  .panel-backpack .inventory-tabs {
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .panel-backpack .inventory-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .inventory-card-select {
    grid-template-columns: 90px minmax(0, 1fr) 18px;
    min-height: 108px;
  }

  .inventory-card-art {
    width: 90px;
    height: 92px;
  }

  .inventory-card-copy > b {
    font-size: 14px;
  }

  .inventory-card-copy > small {
    font-size: 10px;
  }

  .inventory-card-inline-detail {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px 110px;
    border-top: 1px solid rgba(91, 75, 68, 0.07);
  }

  .inventory-card-inline-detail p {
    margin: 10px 0 0;
    color: #716762;
    font-size: 11px;
    font-weight: 620;
    line-height: 1.48;
  }

  .inventory-card-inline-detail > span {
    color: #65735f;
    font-size: 9px;
    font-weight: 760;
  }

  .inventory-card-inline-detail > button {
    justify-self: start;
    min-width: 156px;
    min-height: 38px;
    margin-top: 1px;
  }

  .inventory-detail {
    display: none;
  }
}

@media (max-width: 680px) {
  .panel-backpack {
    max-height: 90dvh;
  }

  .panel-backpack .panel-header {
    padding-bottom: 12px;
  }

  .inventory-overview {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    margin: 12px 12px 8px;
    padding: 12px 13px;
    border-radius: 17px;
  }

  .inventory-overview-copy strong {
    font-size: 18px;
  }

  .inventory-progress-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .inventory-overview-stats {
    gap: 8px;
    padding: 0;
  }

  .inventory-overview-stats > span {
    min-width: 48px;
  }

  .inventory-overview-stats b {
    font-size: 15px;
  }

  .inventory-overview-stats small {
    max-width: 54px;
    font-size: 7px;
    white-space: normal;
  }

  .inventory-overview-stats i {
    height: 24px;
  }

  .inventory-quick-rail {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 12px 9px;
    padding: 7px;
    border-radius: 16px;
  }

  .inventory-quick-rail > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 1px 5px;
    border: 0;
  }

  .inventory-quick-items > button {
    min-width: 190px;
  }

  .inventory-workspace {
    padding: 0 12px max(22px, env(safe-area-inset-bottom));
  }

  .inventory-catalog {
    border-radius: 17px;
  }

  .panel-backpack .inventory-tabs {
    gap: 3px;
    padding: 6px;
  }

  .panel-backpack .inventory-tabs button {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px;
    min-height: 39px;
    padding: 5px 6px;
  }

  .panel-backpack .inventory-tabs button > span {
    display: none;
  }

  .panel-backpack .inventory-tabs button em {
    font-size: 9px;
    text-align: center;
  }

  .panel-backpack .inventory-tabs button b {
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
  }

  .panel-backpack .inventory-grid {
    gap: 8px;
    padding: 8px;
  }

  .inventory-card {
    border-radius: 15px;
  }

  .inventory-card-select {
    grid-template-columns: 82px minmax(0, 1fr) 14px;
    gap: 9px;
    min-height: 100px;
    padding: 7px 9px 7px 7px;
  }

  .inventory-card-art {
    width: 82px;
    height: 86px;
    border-radius: 13px;
  }

  .inventory-card-copy > b {
    font-size: 13px;
  }

  .inventory-card-copy > small {
    font-size: 9px;
  }

  .inventory-card-inline-detail {
    padding: 0 10px 11px 98px;
  }

  .inventory-card-inline-detail p {
    font-size: 10px;
  }

  .panel-backpack .inventory-empty-state {
    min-height: 210px;
  }
}

@media (max-width: 430px) {
  .inventory-overview-copy > span,
  .inventory-progress-label span {
    font-size: 8px;
  }

  .inventory-overview-stats > span:last-child,
  .inventory-overview-stats i {
    display: none;
  }

  .inventory-card-select {
    grid-template-columns: 72px minmax(0, 1fr) 12px;
    min-height: 91px;
  }

  .inventory-card-art {
    width: 72px;
    height: 77px;
  }

  .inventory-card-inline-detail {
    padding-left: 88px;
  }
}

@media (max-width: 900px) {
  .avatar-studio {
    grid-template-columns: minmax(230px, 0.66fr) minmax(420px, 1.34fr);
    margin-inline: 20px;
  }

  .avatar-stage-frame {
    height: 330px;
  }

  .avatar-style-card {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .avatar-style-preview {
    width: 80px;
    height: 96px;
  }
}

@media (max-width: 700px) {
  .panel-lookbook {
    max-height: 92dvh;
  }

  .avatar-studio {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px 14px 6px;
  }

  .avatar-stage {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(185px, 0.9fr) minmax(140px, 1fr);
    align-items: center;
    border-radius: 24px;
  }

  .avatar-stage-heading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 10px 11px;
  }

  .avatar-stage-heading b {
    display: none;
  }

  .avatar-stage-frame {
    height: 235px;
    margin: 10px 0 10px 10px;
    border-radius: 18px 18px 46px 46px;
  }

  .avatar-stage-halo {
    top: 28px;
    width: 150px;
    height: 150px;
  }

  .avatar-stage-preview > img {
    padding: 5px;
  }

  .avatar-stage-caption {
    padding: 44px 14px 15px;
  }

  .avatar-stage-caption h3 {
    font-size: 20px;
  }

  .avatar-stage-caption p {
    font-size: 9px;
  }

  .avatar-option-group {
    padding: 12px;
    border-radius: 20px;
  }

  .avatar-option-heading {
    margin-bottom: 10px;
  }

  .avatar-option-heading p {
    font-size: 8px;
  }

  .avatar-style-grid {
    gap: 7px;
  }

  .avatar-style-card {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 102px;
    border-radius: 15px;
  }

  .avatar-style-preview {
    width: 72px;
    height: 87px;
    border-radius: 12px;
  }

  .avatar-style-card > span > small {
    font-size: 7.5px;
    -webkit-line-clamp: 2;
  }

  .avatar-swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .avatar-swatch {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    min-height: 40px;
    padding: 5px;
    font-size: 7.5px;
  }

  .avatar-swatch > i {
    grid-row: 1;
    width: 26px;
    height: 26px;
  }

  .avatar-swatch > b {
    position: absolute;
    top: 2px;
    right: 4px;
  }

  .lookbook-outfit-heading {
    margin: 18px 18px -8px;
    padding-top: 14px;
  }
}

@media (max-width: 430px) {
  .avatar-stage {
    grid-template-columns: 56% 44%;
  }

  .avatar-stage-frame {
    height: 218px;
  }

  .avatar-stage-caption {
    padding-inline: 10px;
  }

  .avatar-stage-caption p {
    font-size: 8px;
  }

  .avatar-style-card {
    grid-template-columns: 1fr;
    justify-items: stretch;
    min-height: 150px;
  }

  .avatar-style-preview {
    width: 100%;
    height: 106px;
  }

  .avatar-style-card > span:not(.asset-thumbnail) {
    padding: 0 4px 4px;
  }

  .avatar-style-card > span > small {
    display: none;
  }

  .avatar-swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lookbook-outfit-heading p {
    max-width: 180px;
    font-size: 8px;
  }
}

@media (max-width: 820px) {
  .pet-copy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dual-pet-card {
    grid-template-columns: 1fr;
    margin-right: 18px;
    margin-left: 18px;
  }

  .school-key-checklist {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .panel-pets {
    max-height: 84dvh;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .pet-copy-collection {
    padding: 15px 18px 8px;
  }

  .pet-copy-collection-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .pet-copy-grid {
    grid-template-columns: 1fr;
  }

  .pet-copy-card {
    grid-template-columns: 1fr;
  }

  .pet-copy-select {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .pet-copy-art {
    width: 84px;
    height: 84px;
  }

  .equipped-pet-slots {
    grid-template-columns: 1fr;
  }

  .luck-boost-pill {
    min-height: 44px;
    padding: 5px 9px;
    border-radius: 15px;
  }

  .luck-boost-pill > div b {
    display: none;
  }

  .luck-boost-pill small {
    margin: 0;
    font-size: 10px;
  }

  .dual-pet-card {
    margin-right: 18px;
    margin-left: 18px;
    padding: 12px;
  }
}
/* Starlight One keeps the flight cinematic readable without covering the view. */
.rocket-journey-overlay {
  position: absolute;
  z-index: 90;
  inset: 0;
  overflow: hidden;
  color: #f4fbff;
  pointer-events: auto;
  background:
    linear-gradient(180deg, rgba(2, 7, 16, .9) 0, rgba(2, 7, 16, .28) 14%, transparent 31%),
    linear-gradient(0deg, rgba(2, 7, 16, .94) 0, rgba(2, 7, 16, .24) 25%, transparent 43%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
}

.rocket-journey-mission {
  position: absolute;
  top: clamp(18px, 4vh, 42px);
  left: clamp(20px, 4vw, 54px);
  display: grid;
  gap: 4px;
  letter-spacing: .18em;
}

.rocket-journey-mission span {
  color: #77e8ff;
  font: 800 clamp(10px, 1.1vw, 13px)/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.rocket-journey-mission strong {
  font: 900 clamp(13px, 1.6vw, 20px)/1.1 system-ui, sans-serif;
}

.rocket-journey-caption {
  position: absolute;
  right: clamp(22px, 6vw, 82px);
  bottom: clamp(24px, 6vh, 64px);
  left: clamp(22px, 6vw, 82px);
  display: grid;
  justify-items: center;
  text-align: center;
}

.rocket-journey-caption small {
  color: #75e8ff;
  font: 900 clamp(9px, 1vw, 12px)/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.rocket-journey-caption h2 {
  margin: 5px 0 2px;
  color: #fff;
  font: 950 clamp(25px, 4.5vw, 58px)/.98 system-ui, sans-serif;
  letter-spacing: .08em;
}

.rocket-journey-caption p {
  margin: 4px 0 13px;
  color: #d9f6ff;
  font: 750 clamp(11px, 1.5vw, 16px)/1.25 system-ui, sans-serif;
}

.rocket-journey-progress {
  width: min(470px, 72vw);
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 0 18px rgba(70, 217, 255, .2);
}

.rocket-journey-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ee8ff, #fff, #ffbd55);
  box-shadow: 0 0 14px #64e8ff;
  transform-origin: left center;
  transition: transform 180ms linear;
}

html[data-rocket-journey="true"] .top-hud,
html[data-rocket-journey="true"] .bottom-dock,
html[data-warp-journey="true"] .top-hud,
html[data-warp-journey="true"] .bottom-dock {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.warp-journey-overlay {
  background:
    radial-gradient(circle at 50% 46%, transparent 0 42%, rgba(13, 5, 35, .22) 72%, rgba(1, 2, 10, .78) 100%),
    linear-gradient(180deg, rgba(1, 3, 13, .88) 0, rgba(1, 3, 13, .16) 17%, transparent 34%),
    linear-gradient(0deg, rgba(1, 3, 13, .88) 0, rgba(1, 3, 13, .12) 24%, transparent 40%);
}

.warp-star-ribbon-field {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
  transform-origin: 50% 46%;
}

.warp-star-ribbon-field::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 50%;
  width: 3px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #eefcff;
  box-shadow: 0 0 5px #fff, 0 0 12px #8cecff;
  transform: translate(-50%, -50%);
}

.warp-journey-overlay[data-warp-phase="cockpit-warp"] .warp-star-ribbon-field,
.warp-journey-overlay[data-warp-phase="warp-dropout"] .warp-star-ribbon-field {
  opacity: 1;
}

.warp-star-ray {
  --warp-angle: 0deg;
  --warp-delay: 0s;
  --warp-duration: 1.4s;
  --warp-hue: 190;
  --warp-length: 14vmax;
  --warp-travel: 90vmax;
  --warp-width: 2px;
  position: absolute;
  top: 46%;
  left: 50%;
  width: 0;
  height: 0;
  color: hsl(var(--warp-hue) 78% 84%);
  transform: rotate(var(--warp-angle));
  transform-origin: center;
}

.warp-star-ray b {
  position: absolute;
  top: calc(var(--warp-width) * -.5);
  left: 0;
  display: block;
  width: var(--warp-length);
  height: var(--warp-width);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0, currentColor 58%, #fff 100%);
  box-shadow: 0 0 5px currentColor, 0 0 12px currentColor;
  opacity: 0;
  transform-origin: left center;
  will-change: transform, opacity, filter;
  animation: warp-star-flight var(--warp-duration) linear var(--warp-delay) infinite;
}

.warp-star-ray::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: warp-star-point-flight var(--warp-duration) linear var(--warp-delay) infinite;
}

@keyframes warp-star-point-flight {
  0% {
    opacity: 0;
    transform: translateX(0) scale(.25);
  }
  7% {
    opacity: .8;
    transform: translateX(.3vmax) scale(.7);
  }
  24% {
    opacity: .92;
    transform: translateX(4vmax) scale(1);
  }
  38% {
    opacity: .35;
    filter: hue-rotate(90deg) brightness(1.5);
    transform: translateX(11vmax) scale(1.35);
  }
  46%,
  100% {
    opacity: 0;
    transform: translateX(17vmax) scale(1.5);
  }
}

@keyframes warp-star-flight {
  0% {
    opacity: 0;
    filter: hue-rotate(0deg) brightness(.7);
    transform: translateX(0) scaleX(.006);
  }
  22% {
    opacity: 0;
    transform: translateX(3vmax) scaleX(.02);
  }
  34% {
    opacity: .55;
    filter: hue-rotate(85deg) brightness(1.35);
    transform: translateX(10vmax) scaleX(.18);
  }
  55% {
    opacity: 1;
    transform: translateX(24vmax) scaleX(.58);
  }
  78% {
    opacity: .95;
    filter: hue-rotate(155deg) brightness(1.55);
    transform: translateX(48vmax) scaleX(1.05);
  }
  100% {
    opacity: 0;
    filter: hue-rotate(235deg) brightness(1.8);
    transform: translateX(var(--warp-travel)) scaleX(1.7);
  }
}

.warp-speed-panel {
  position: absolute;
  z-index: 3;
  top: clamp(18px, 4vh, 42px);
  right: clamp(18px, 4vw, 54px);
  width: clamp(128px, 18vw, 194px);
  padding: clamp(10px, 1.4vw, 15px);
  border: 1px solid rgba(157, 239, 255, .66);
  border-radius: 8px;
  color: #ecfdff;
  background:
    linear-gradient(135deg, rgba(21, 68, 92, .78), rgba(22, 8, 55, .82)),
    rgba(2, 9, 22, .9);
  box-shadow:
    inset 0 0 18px rgba(93, 227, 255, .14),
    0 0 22px rgba(89, 213, 255, .2);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-shadow: 0 0 12px rgba(126, 238, 255, .9);
  transition: opacity 500ms ease, transform 500ms ease;
}

.warp-speed-panel span {
  align-self: center;
  color: #9df3ff;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 900;
  letter-spacing: .2em;
}

.warp-speed-panel output {
  color: #fff;
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 950;
  line-height: .8;
  font-variant-numeric: tabular-nums;
}

.warp-speed-gauge {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  height: 7px;
  margin-top: 5px;
}

.warp-speed-gauge i {
  border-radius: 1px;
  background: rgba(146, 221, 255, .13);
  box-shadow: inset 0 0 0 1px rgba(157, 239, 255, .18);
  transition: background 120ms linear, box-shadow 120ms linear;
}

.warp-speed-gauge i.is-active {
  background: linear-gradient(180deg, #fff, #79edff 48%, #bb7dff);
  box-shadow: 0 0 7px rgba(119, 237, 255, .86);
}

.warp-journey-overlay[data-warp-phase="warp-dropout"] .warp-speed-panel {
  border-color: rgba(255, 208, 136, .72);
  box-shadow:
    inset 0 0 18px rgba(255, 185, 105, .12),
    0 0 22px rgba(255, 179, 94, .18);
}

.warp-journey-overlay[data-warp-phase="alien-system"] .warp-speed-panel {
  opacity: 0;
  transform: translateY(-8px);
}

.warp-journey-overlay[data-warp-phase="alien-system"] {
  background:
    linear-gradient(180deg, rgba(2, 3, 16, .62) 0, transparent 24%),
    linear-gradient(0deg, rgba(2, 3, 16, .82) 0, transparent 35%);
}

.warp-journey-overlay[data-warp-phase="alien-system"] .warp-star-ribbon-field {
  display: none;
}
.daily-dragon-egg-card{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:16px;align-items:center;margin:14px 0;padding:15px 17px;border:1px solid rgba(142,238,255,.45);border-radius:20px;background:linear-gradient(125deg,rgba(22,38,72,.94),rgba(72,33,92,.9));box-shadow:inset 0 1px rgba(255,255,255,.16),0 12px 30px rgba(21,10,54,.24)}
.daily-dragon-egg-card>div:nth-child(2){display:grid;gap:3px}.daily-dragon-egg-card small{color:#9ef5ff;font-weight:900;letter-spacing:.09em}.daily-dragon-egg-card b{font-size:1.2rem;color:#fff}.daily-dragon-egg-card p{margin:0;color:rgba(255,255,255,.78);line-height:1.35}.daily-dragon-egg-card>button{min-height:44px;padding:0 15px;border:0;border-radius:14px;background:linear-gradient(135deg,#9cf8ee,#e8b1ff);color:#17213b;font-weight:950;cursor:pointer}.daily-dragon-egg-card>button:disabled{opacity:.55;cursor:not-allowed}
.daily-dragon-egg-art{position:relative;width:70px;height:82px;display:grid;place-items:center}.daily-dragon-egg-art i{width:55px;height:70px;border-radius:50% 50% 46% 46%/62% 62% 38% 38%;background:radial-gradient(circle at 34% 24%,#fff 0 7%,transparent 8%),radial-gradient(circle at 62% 48%,#f3bcff 0 8%,transparent 9%),linear-gradient(145deg,#92f7ee,#777eea 48%,#e983da);box-shadow:0 0 22px #8dedff,0 0 38px rgba(220,125,255,.5);transform:rotate(-4deg)}.daily-dragon-egg-art span{position:absolute;right:0;top:4px;color:#fff4a8;font-size:1.45rem;text-shadow:0 0 10px #fff}
@media(max-width:650px){.daily-dragon-egg-card{grid-template-columns:64px 1fr}.daily-dragon-egg-card>button{grid-column:1/-1}.daily-dragon-egg-art{width:58px;height:70px}.daily-dragon-egg-art i{width:47px;height:60px}}

/* Adventure-wide polish: readable tools, a real trail, and calm everyday rituals. */
  position: absolute; top: max(20px, env(safe-area-inset-top)); left: max(20px, env(safe-area-inset-left));
  width: min(290px, 29vw); display: flex; align-items: flex-start; border: 1px solid #ffffffc9;
  border-radius: 18px; background: #fffaf2ed; box-shadow: 0 8px 32px #253d3720; backdrop-filter: blur(18px);
}
.journey-eyebrow { color: #647c6b; font-size: 9px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; }
.panel-journey { width: min(1000px, calc(100vw - 48px)); }
.adventure-journal { color: #3c4b42; padding: 2px 2px 16px; }
.journey-intro { padding: 12px 8px 22px; }
.journey-intro h3 { margin: 8px 0; color: #324e40; font-size: clamp(23px, 3vw, 34px); letter-spacing: -1px; }
.journey-intro p { max-width: 600px; margin: 0; color: #737d73; font-size: 13px; line-height: 1.7; }
.chapter-route { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding-bottom: 24px; }
.chapter-route > button { position: relative; display: flex; flex-direction: column; gap: 7px; min-height: 140px; padding: 13px 9px; border: 1px solid #dfe4d9; border-radius: 16px; background: linear-gradient(155deg, #f5f5eb, #f0ece3); overflow: hidden; }
.chapter-route > button::before { position: absolute; top: -25px; right: -20px; width: 90px; height: 90px; border-radius: 50%; background: var(--chapter-color); opacity: .15; content: ''; }
.chapter-route > button.is-current { border: 2px solid #5d8b72; background: #edf4e9; box-shadow: 0 4px 14px #477c6715; }
.chapter-route > button.is-locked { opacity: .63; }
.chapter-route > button > span { position: relative; font-size: 30px; line-height: 1.3; }
.chapter-route small { color: #8d9587; font-size: 9px; letter-spacing: 2px; }
.chapter-route b { font-size: 11px; }
.chapter-route em { margin-top: auto; color: #71806b; font-size: 9px; font-style: normal; }
.journey-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 8px 12px; }
.journey-section-heading h3 { margin: 8px 0 0; font-size: 22px; }
.journey-section-heading > span { color: #758371; font-size: 11px; white-space: nowrap; }
.journey-checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.journey-checklist li { display: flex; align-items: flex-start; gap: 14px; padding: 17px; border: 1px solid #e6e7dd; border-radius: 15px; background: #ffffff80; }
.journey-step-number { display: grid; place-items: center; flex-shrink: 0; width: 29px; height: 29px; border: 1px solid #d6dfd2; border-radius: 50%; color: #88927f; font-size: 12px; font-weight: 900; }
.journey-checklist li.is-next { border-color: #aac5a8; background: #f1f6eb; }
.journey-checklist li.is-next .journey-step-number, .journey-checklist li.is-complete .journey-step-number { color: white; background: #628a70; border-color: #628a70; }
.journey-checklist li.is-complete { background: #eaf0e56b; }
.journey-checklist li > div { flex: 1; }
.journey-checklist b { font-size: 13px; }
.journey-checklist p { margin: 6px 0 0; color: #768071; font-size: 12px; line-height: 1.6; }
.journey-checklist li > small { color: #587b54; font-size: 8px; font-weight: 900; letter-spacing: .7px; white-space: nowrap; padding-top: 7px; }
.journey-detours { margin-top: 30px; }
.journey-detours > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.journey-detours article { padding: 18px; border-radius: 17px; background: #eee7d880; border: 1px solid #e3dece; }
.journey-detours article > span { font-size: 26px; }
.journey-detours h4 { margin: 10px 0 8px; font-size: 13px; }
.journey-detours p { margin: 0; color: #7c7b6d; font-size: 11px; line-height: 1.7; }
.guide-journey-link { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; margin-bottom: 18px; border: 1px solid #c4d6ba; border-radius: 17px; background: #edf4e5; text-align: left; }
.guide-journey-link > span { font-size: 25px; }
.guide-journey-link > div { flex: 1; display: grid; gap: 6px; }
.guide-journey-link b { font-size: 14px; color: #476649; }
.guide-journey-link small { font-size: 11px; color: #748469; }
.bottom-dock { grid-template-columns: repeat(5, 60px); gap: 7px; padding: 9px 14px 14px; border: 1px solid #ffffffb5; border-radius: 26px; background: #fffaf2ed; box-shadow: 0 12px 38px #263b302e; backdrop-filter: blur(20px); }
.bottom-dock button, .bottom-dock button:hover { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 3px; width: 60px; height: 62px; min-height: 62px; border-radius: 15px; padding: 4px 3px; filter: none; }
.bottom-dock button:hover, .bottom-dock button.is-active { background: #e5eddf !important; transform: translateY(-2px); }
.bottom-dock button > span { height: 32px; font-size: 27px; line-height: 32px; }
.bottom-dock button small { display: block; color: #69705f; font-size: 10px; font-weight: 800; line-height: 14px; }
.bottom-dock button > b, .pet-dock-button > b { top: -3px; right: -1px; bottom: auto; padding: 2px 4px; border-radius: 6px; color: #5d7054 !important; background: #edf3e5 !important; text-shadow: none; font-size: 8px; }
.bottom-dock .pet-dock-button .pet-dock-preview { width: 33px; height: 32px; min-height: 32px; margin: 0; }
.room-edit-controls { position: absolute; z-index: 35; top: max(86px, calc(env(safe-area-inset-top) + 70px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid #d0e3d6; border-radius: 16px; background: #fafdf6f5; box-shadow: 0 8px 30px #213e3920; backdrop-filter: blur(15px); }
.room-edit-controls > span { display: flex; align-items: center; gap: 7px; padding: 0 10px; color: #568472; font-size: 9px; font-weight: 900; letter-spacing: 1px; white-space: nowrap; }
.room-edit-controls i { font-size: 18px; font-style: normal; }
.room-edit-controls button { min-height: 36px; padding: 8px 12px; border: 1px solid #dce5d8; border-radius: 9px; background: #f0f3e9; color: #52654e; font-size: 11px; font-weight: 800; white-space: nowrap; }
.room-edit-controls button:disabled { opacity: .35; cursor: default; }
.room-edit-controls button[aria-pressed=true] { background: #e0edde; border-color: #a6c3a1; }
.room-edit-controls .is-done { color: white; background: #577f67; border-color: #577f67; }
@keyframes coffee-fills { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 850px) {
  .chapter-route { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .room-edit-controls > span { display: none; }
}
@media (max-width: 600px) {
  .bottom-dock { grid-template-columns: repeat(5, 50px); gap: 2px; padding: 6px 8px 8px; border-radius: 21px; }
  .bottom-dock button, .bottom-dock button:hover { width: 50px; min-width: 50px; height: 55px; min-height: 55px; }
  .bottom-dock button > span { font-size: 24px; height: 28px; line-height: 28px; }
  .bottom-dock button small { font-size: 9px; }
  .panel-journey { width: calc(100vw - 20px); }
  .chapter-route { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .chapter-route > button { min-height: 116px; padding: 10px; }
  .journey-checklist li { padding: 13px 10px; gap: 10px; }
  .journey-checklist li > small { display: none; }
  .journey-detours > div { grid-template-columns: 1fr; }
  .journey-section-heading { gap: 8px; }
  .journey-section-heading > span { font-size: 9px; }
  .room-edit-controls { top: 78px; gap: 4px; max-width: calc(100vw - 16px); padding: 6px; }
  .room-edit-controls button { padding: 7px 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .game-panel, .game-toast, .welcome-card, .bottom-dock button { animation: none !important; transition: none !important; }
}

.adventure-journal { padding: 20px 24px 28px; }
.chapter-route > button { text-align: left; font: inherit; }
.chapter-route > button[aria-pressed=true] { outline: 2px solid #83a88c; outline-offset: 2px; }
.journey-hero { position: relative; height: 220px; margin-bottom: 20px; border-radius: 20px; overflow: hidden; background: #dce4d1; }
.journey-hero img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 53%; }
.journey-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#132f2dd4,transparent 75%); }
.journey-hero > div { position: absolute; z-index: 1; bottom: 20px; left: 22px; display: grid; gap: 8px; color: #fffbee; text-shadow: 0 2px 8px #102f31; }
.journey-hero span { font-size: 9px; letter-spacing: 2px; font-weight: 800; }
.journey-hero b { font-size: 27px; letter-spacing: -.7px; }
@media(max-width:600px){.adventure-journal{padding:14px}.journey-hero{height:160px;border-radius:14px}.journey-hero>div{left:15px;bottom:15px}.journey-hero b{font-size:22px}}

/* The old panel-up animation replaced horizontal centering on these toolbars. */
.room-editor { animation: room-editor-appear 220ms ease-out both; bottom: max(112px, calc(env(safe-area-inset-bottom) + 104px)); flex-wrap: wrap; }
.room-editor > div { min-width: 140px; flex: 1; }
.furniture-style-toolbar { max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center; bottom: max(112px, calc(env(safe-area-inset-bottom) + 104px)); }
@keyframes room-editor-appear { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width:600px){.room-editor,.furniture-style-toolbar{bottom:92px;gap:6px}.room-editor>div{min-width:90px}.room-editor button{min-height:34px}.room-editor button.decor-color-swatch{width:25px;min-width:25px;height:25px;min-height:25px}}
@media (prefers-reduced-motion:reduce){.room-editor{animation:none}}

.egg-rarity-reveal.is-stellar-notice { top: 190px; max-width: min(480px, calc(100vw - 36px)); padding: 14px 20px; border: 1px solid #ffc5b8; border-radius: 15px; color: #fff3da; background: #703f3bf0; box-shadow: 0 8px 24px #251b262e; font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.5; text-transform: none; white-space: normal; letter-spacing: 0; filter: none; animation: relic-notice-in 4.2s ease both; }
.interaction-result { position:absolute; z-index:18; bottom:max(112px,calc(env(safe-area-inset-bottom) + 100px)); left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 32px); padding:10px 16px; border:1px solid #ddccba; border-radius:15px; color:#736077; background:#fff3dff5; font-size:13px; font-weight:750; line-height:1.4; text-align:center; pointer-events:none; box-shadow:0 5px 18px #59465c20; }
@keyframes relic-notice-in { 0% { opacity: 0; transform: translate(-50%, 8px); } 8%,88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@media(max-width:600px){.egg-rarity-reveal.is-stellar-notice{top:190px;font-size:12px}}
.world-interaction-accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.world-interaction-accessible:focus-visible {
  width: auto;
  height: auto;
  left: 50%;
  bottom: 106px;
  transform: translateX(-50%);
  padding: 12px 18px;
  margin: 0;
  clip-path: none;
  border-radius: 18px;
  color: #4a3e42;
  background: #fff6e6;
  outline: 3px solid #d7869e;
  z-index: 9;
}
.everyday-style-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.everyday-style-card { display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 0; padding: 10px 7px; border: 1px solid #decfc2; border-radius: 20px; background: #fff9ef; color: #654e4b; cursor: pointer; }
.everyday-style-card.is-selected { border-color: #b77791; box-shadow: inset 0 0 0 2px #c88ba0; background: #f9e9e8; }
.everyday-style-card:disabled { opacity: .5; cursor: default; }
.everyday-style-card > span:first-child { width: 100%; height: 115px; }
.everyday-style-card img { width: 100%; height: 115px; object-fit: contain; }
.everyday-style-card b { font-size: 12px; }
.everyday-style-card small { font-size: 10px; line-height: 1.4; color: #927a70; }
@media (max-width: 640px) { .everyday-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The arena shares the illustrated atlas's paper, rose and lavender palette. */
.laser-tag-hud { color:#66576d; background:rgba(255,247,231,.95); border:2px solid #e7dac8; box-shadow:0 9px 24px #4c36582b,inset 0 2px #fffdf4; border-radius:22px; }
.laser-tag-hud > header > span { color:#b093bf; filter:none; }
.laser-tag-hud > header small { color:#927b9b; font-size:8px; }
.laser-tag-hud > header button { color:#82647a; background:#f1dce4; border:1px solid #e6c5d2; border-radius:13px; }
.laser-tag-scoreboard > span { background:#eee7ec; border-radius:12px; }
.laser-tag-scoreboard > span.is-you { background:#dbe9df; box-shadow:inset 0 0 0 1px #bdcfc2; }
.laser-tag-scoreboard i { color:#766285; background:#f9eeda; }
.laser-tag-scoreboard strong { color:#8c719b; }
.laser-tag-hud > p { color:#8d7f8d; }
.laser-tag-hud > p span { color:#8c719b; }
.laser-tag-crosshair { width:30px; height:30px; filter:drop-shadow(0 1px 3px #504264b3); transition:filter .1s,scale .1s; }
.laser-tag-crosshair::before,.laser-tag-crosshair::after { top:14px; width:8px; background:#fff4dc; }
.laser-tag-crosshair span::before,.laser-tag-crosshair span::after { left:14px; height:8px; background:#fff4dc; }
.laser-tag-crosshair i { inset:12px; background:#fff4dc; border-color:#fff4dc; box-shadow:none; }
.laser-tag-crosshair.has-target { filter:drop-shadow(0 0 5px #e1b1ee); scale:1.22; }
.laser-tag-crosshair.has-target i { background:#e4a5d0; }
.laser-tag-crosshair.is-hit { rotate:45deg; scale:1.6; }
.laser-tag-fire-button { --laser-charge:100%; color:#75607f; border:3px solid #fff3dd; background:radial-gradient(circle at center,#fae7ee 62%,transparent 64%),conic-gradient(#b29bc9 var(--laser-charge),#e5dce8 0); box-shadow:0 5px 0 #8c799b,0 8px 18px #49395840; touch-action:none; }
.laser-tag-fire-button span { color:#ae88bb; }
.laser-tag-fire-button kbd { color:#917c99; background:#fff5e6; }
.laser-tag-fire-button b { font-size:9px; }
.laser-tag-fire-button[aria-disabled=true] { opacity:.5; }
.laser-dash-button { position:absolute; z-index:8; right:max(119px,env(safe-area-inset-right)); bottom:max(100px,calc(env(safe-area-inset-bottom) + 84px)); width:69px; height:70px; display:grid; place-items:center; padding:4px 7px; border:2px solid #f5efdb; border-radius:23px; color:#637f73; background:#deebdf; box-shadow:0 4px #9cb1a0,0 7px 16px #52456124; touch-action:manipulation; }
.laser-dash-button > span { font-size:25px; font-weight:900; line-height:20px; }
.laser-dash-button b { font-size:10px; }
.laser-dash-button kbd { background:transparent; border:0; font-size:7px; color:#7c9382; }
.laser-dash-button > i { width:80%; height:3px; background:#bfcec1; border-radius:3px; overflow:hidden; }
.laser-dash-button em { display:block; height:100%; background:#829e8b; border-radius:3px; }
.laser-dash-button:disabled { opacity:.65; }
.laser-dash-button:active { translate:0 3px; box-shadow:0 1px #9cb1a0; }
.laser-hit-mark { position:absolute; z-index:8; left:50%; top:calc(50% + 32px); transform:translateX(-50%); color:#fff3d8; text-shadow:0 2px 4px #7f5388; font-size:13px; font-weight:950; letter-spacing:.1em; pointer-events:none; }
.laser-tagged-glow { position:absolute; z-index:7; inset:0; box-shadow:inset 0 0 90px #e5a5c89c; pointer-events:none; }
.laser-shield-status { position:absolute; left:50%; bottom:76px; z-index:7; transform:translateX(-50%); padding:7px 13px; border:1px solid #dcd4e6; border-radius:20px; background:#fff1e8e6; color:#8e739d; font-size:8px; font-weight:900; letter-spacing:.1em; pointer-events:none; }
.laser-ready-count { position:absolute; z-index:12; top:42%; left:50%; transform:translate(-50%,-50%); display:grid; place-items:center; gap:14px; color:#fff2d9; text-shadow:0 3px 14px #5b406d80; pointer-events:none; }
.laser-ready-count small { font-size:11px; font-weight:950; letter-spacing:.18em; }
.laser-ready-count b { display:grid; place-items:center; width:112px; height:112px; border:3px solid #fcefd7; border-radius:40%; color:#80678f; background:#f9eddfed; box-shadow:0 9px 0 #b19cbe; font-size:74px; animation:laser-ready .8s ease both; }
@keyframes laser-ready { from { scale:.75; opacity:.4; } to { scale:1; opacity:1; } }
.laser-results-overlay { position:absolute; z-index:60; inset:0; display:grid; place-items:center; padding:20px; background:#6254717d; backdrop-filter:blur(7px); }
.laser-results { position:relative; width:min(470px,100%); max-height:calc(100dvh - 38px); overflow:auto; text-align:center; padding:26px; border:2px solid #f4e6d2; border-radius:34px; color:#746279; background:radial-gradient(ellipse at 0 0,#f2dde4,transparent 60%),#fff4df; box-shadow:0 15px 60px #49395336,inset 0 2px #fffaf1; }
.laser-results-medal { display:grid; place-items:center; width:82px; height:82px; margin:0 auto 18px; border:6px double #e3bd80; border-radius:50%; font-size:44px; color:#b88f4c; background:#f9e4b9; box-shadow:0 5px #d8b7a3; }
.laser-results > small { color:#aa8fa8; font-size:9px; font-weight:900; letter-spacing:.14em; }
.laser-results h2 { margin:12px 0 22px; font:850 29px/1.15 ui-rounded,system-ui,sans-serif; letter-spacing:-.04em; }
.laser-results-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-bottom:17px; }
.laser-results-stats > span { display:grid; gap:6px; background:#f1e6dc; border:1px solid #e9d8cf; border-radius:17px; padding:12px 5px; }
.laser-results-stats small { font-size:7px; font-weight:900; letter-spacing:.1em; color:#a48d9a; }
.laser-results-stats b { font-size:23px; }
.laser-results-standings { display:grid; gap:7px; }
.laser-results-standings > span { display:flex; align-items:center; gap:12px; padding:11px 14px; background:#eee6e9; border-radius:15px; font-size:12px; }
.laser-results-standings > span.is-you { background:#dfe9dc; }
.laser-results-standings i { font-style:normal; font-weight:900; color:#ab98b1; }
.laser-results-standings strong { margin-left:auto; }
.laser-results-reward { padding:12px; margin:17px 0 9px; background:#f3e6bc; border-radius:13px; color:#9c8050; font-weight:800; font-size:11px; }
.laser-results-unlocked { color:#8b9f7b; font-size:12px; font-weight:850; }
.laser-results-actions { display:flex; gap:9px; margin-top:21px; }
.laser-results-actions button { flex:1; padding:13px 8px; border:1px solid #c5accc; border-radius:16px; background:#d8c4df; color:#735b80; box-shadow:0 3px #b99fc4; font-size:11px; font-weight:850; }
.laser-results-actions button.is-secondary { color:#94818b; background:#f3e7dc; border-color:#e3d2c9; box-shadow:0 3px #d8c7c1; }
.race-course-card.is-lunar { background:linear-gradient(150deg,#f2e9f5,#e3e8ef); }
@media(max-width:600px) { .laser-dash-button { right:107px; bottom:max(100px,calc(env(safe-area-inset-bottom) + 84px)); width:63px; height:64px; border-radius:21px; } .laser-results { padding:22px 18px; } .laser-results h2 {font-size:26px;} .laser-tag-hud > header small {font-size:7px;} }
@media(prefers-reduced-motion:reduce) { .laser-ready-count b { animation:none; } .laser-tag-crosshair { transition:none; } }
.laser-arena-map { position:absolute; top:140px; right:18px; z-index:7; width:110px; padding:7px; border:2px solid #e6d9cc; border-radius:24px; background:#fff3dfed; box-shadow:0 5px 15px #49395424; pointer-events:none; }
.laser-arena-map svg { display:block; width:100%; }
.laser-arena-map small { display:block; margin-top:3px; text-align:center; color:#a18aa5; font-size:7px; font-weight:900; letter-spacing:.1em; }
@media(max-width:600px) { .laser-arena-map { top:126px; right:12px; width:78px; padding:5px; border-radius:18px; } }
.fort-slide-exit { position:absolute; bottom:95px; right:105px; z-index:9; padding:12px 17px; border:2px solid #ffefd7; border-radius:20px; background:#dbd0e4; color:#7f6889; font-size:11px; font-weight:850; box-shadow:0 4px #b29fbf,0 8px 18px #59456024; }
