@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Rubik:wght@400;500;600;700&display=swap');
:root{--ink:#1f2033;--sky:#86cff5;--paper:#fff6d6;--green:#62b845;--muted:#4a4c66;--line:3px solid var(--ink);--radius:8px;--space:24px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:var(--sky);color:var(--ink);font:16px/1.6 Rubik,system-ui,sans-serif}header,main,footer{max-width:1200px;margin:auto;padding:24px 30px}header{display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font:23px Bungee,system-ui,sans-serif;text-decoration:none}.brand span{display:block;font:10px Rubik,sans-serif;letter-spacing:.18em}nav{display:flex;align-items:center;gap:22px}a{color:inherit}button{font:600 14px Rubik,sans-serif;color:var(--ink);background:var(--paper);border:2px solid var(--ink);border-radius:5px;padding:11px 16px;cursor:pointer}button:hover{background:#fff}button:disabled{cursor:wait;opacity:.6}:focus-visible{outline:3px solid #994300;outline-offset:4px}.primary{background:var(--green);box-shadow:0 4px 0 var(--ink);padding:14px 20px}.primary:hover{background:#77ce58}h1,h2,h3{line-height:1.15}h1{font:clamp(38px,5vw,66px)/1.08 Bungee,system-ui,sans-serif;margin:14px 0 24px}h2{font-size:28px;margin:8px 0 20px}h3{font-size:19px}.eyebrow,.tag{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.panel{background:var(--paper);border:var(--line);border-radius:var(--radius);box-shadow:0 6px 0 var(--ink);padding:30px;margin:24px 0}.login{display:grid;grid-template-columns:1fr 1fr;gap:64px;padding:40px}.login p{max-width:32ch}form{display:flex;flex-direction:column;gap:9px}label{font-size:14px;font-weight:600;margin-top:9px}input{font:inherit;padding:12px;border:2px solid var(--ink);border-radius:5px;background:#fff;width:100%;min-width:0}form button{margin-top:15px}.small{font-size:13px;color:var(--muted)}#status{min-height:26px;padding:8px 0;font-weight:500}#status.error{background:#fff0ea;color:#8a2313;border-left:4px solid #a83020;padding:12px 16px}.summary{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(5,minmax(0,1fr));align-items:center;gap:16px}.summary h2{margin:6px 0}.stat{border-left:2px solid #d8cfae;padding-left:22px}.stat span{display:block;font-size:11px;letter-spacing:.1em}.stat strong{font-size:28px}.tabs{flex-wrap:wrap;gap:8px}.tabs a{text-decoration:none;padding:10px 18px;border:2px solid var(--ink);border-radius:5px;background:var(--paper);font-weight:600}.tabs a:hover,.tabs a[aria-current]{background:var(--ink);color:var(--paper)}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.section-title h2{margin-bottom:0}.inventory{display:grid;grid-template-columns:repeat(auto-fill,minmax(65px,1fr));gap:6px;background:#39778a;border:3px solid #234a5c;padding:12px;border-radius:8px;margin-top:24px;max-height:600px;overflow:auto}.slot{padding:0;aspect-ratio:1;position:relative;background:#4e9caf;border:3px solid #97d0d9;box-shadow:inset 0 0 0 2px #346474;min-width:0;border-radius:6px}.slot:hover{background:#68b3bf}.slot.selected{border-color:#ffe04f;box-shadow:inset 0 0 0 2px #a67a27}.slot.empty{opacity:.6}.slot img{width:80%;height:80%;object-fit:contain;image-rendering:pixelated;vertical-align:middle}.slot b{position:absolute;right:3px;bottom:0;color:#fff;text-shadow:2px 2px #153d4c;font-size:19px;line-height:1.2}.item-detail{min-height:28px;font-weight:500}.worlds{display:flex;flex-wrap:wrap;gap:10px}.world{background:#e9d8a7;border:2px solid var(--ink);padding:10px 18px;font-weight:600;border-radius:5px}.packages{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:28px 0}.package{padding:22px 16px;background:#fffdf3;border:2px solid var(--ink);border-radius:6px;display:flex;flex-direction:column;align-items:start}.package img{width:48px;height:48px;image-rendering:pixelated}.package h3{min-height:44px}.package strong{font-size:24px}.package button{width:100%;margin-top:auto}.package p{margin:7px 0 18px}.package.chosen{outline:4px solid #bd8b15;outline-offset:3px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:50px}.settings form{align-self:start}.receipt{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 0;border-top:1px solid #d4cba8}footer{display:flex;gap:22px;font-size:13px;padding-bottom:40px}[hidden]{display:none!important}@media(max-width:800px){.packages{grid-template-columns:repeat(2,1fr)}.summary{grid-template-columns:1fr 1fr}.summary>div:first-child{grid-column:1/-1}.login{gap:24px;grid-template-columns:1fr}.settings{grid-template-columns:1fr;gap:25px}}@media(max-width:480px){header,main,footer{padding-left:16px;padding-right:16px}header nav{gap:12px;font-size:13px}.panel{padding:20px}.packages{grid-template-columns:1fr}.section-title{align-items:start;flex-direction:column}.tabs a{padding:8px 10px;font-size:13px}.inventory{grid-template-columns:repeat(auto-fill,minmax(52px,1fr));padding:8px;gap:5px}.stat strong{font-size:24px}}

#status{position:sticky;top:0;z-index:3;background:var(--sky)}.summary>div{min-width:0}.summary h2,.summary .stat strong,.world{overflow-wrap:anywhere}@media(min-width:481px) and (max-width:950px){.summary{grid-template-columns:repeat(3,minmax(0,1fr))}.summary>div:first-child{grid-column:auto}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.outfit-portrait {
  display: grid;
  place-items: center;
  min-height: 216px;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.outfit-portrait img {
  display: block;
  width: min(100%, 480px);
  height: auto;
  image-rendering: pixelated;
}
#outfit-status:empty { margin: 0; }

.outfit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
#outfit-fields { min-width: 0; margin: 0; padding: 14px; border: 2px solid var(--ink); border-radius: var(--radius); }
#outfit-fields legend { padding: 0 6px; font-weight: 700; }
#outfit-fields p { margin: 0 0 8px; }
#outfit-fields p:last-child { margin: 10px 0 0; }
.outfit-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.outfit-selects label { margin: 0; }
.outfit-selects select { display: block; width: 100%; min-height: 36px; padding: 5px; font: inherit; color: var(--ink); border: 2px solid var(--ink); border-radius: 5px; background: #fffdf3; }
.world[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.world-menu { margin-top: 16px; padding: 16px; border: 2px solid var(--ink); border-radius: var(--radius); }
.world-menu h3 { margin: 0; }
.world-menu p:empty, #outfit-save-status:empty { display: none; }
.world-menu button, .world-menu a { margin-top: 10px; margin-right: 10px; }
@media (max-width: 800px) { .outfit-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .outfit-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

#wardrobe-availability { margin: 0 0 8px; font-size: 14px; }
#wardrobe-availability:empty { display: none; }
.wardrobe-error { color: #8a2313; font-weight: 600; }
.wardrobe-unavailable { filter: grayscale(1); opacity: .58; }

#developer-panel-button {
  background: #704595;
  color: white;
}
#developer-panel-button:hover, #developer-panel-button[aria-expanded="true"] { background: #543374; }
#developer-search, .developer-results { max-width: 38rem; }
.developer-results {
  max-height: 22rem;
  overflow-y: auto;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #fffdf3;
}
.developer-result {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.developer-result + .developer-result { border-top: 1px solid #d8cfae; }
.developer-result:hover { background: var(--paper); }
.developer-result:focus-visible { outline-offset: -4px; }
.developer-result strong, .developer-player dd { overflow-wrap: anywhere; }
.developer-headshot {
  position: relative;
  width: 56px;
  height: 34px;
  overflow: hidden;
  background: var(--sky);
  border-radius: 4px;
}
.developer-headshot img {
  position: absolute;
  width: 192px;
  max-width: none;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  image-rendering: pixelated;
}
.developer-role { color: var(--muted); }
#developer-more { margin-top: 8px; }
#developer-status:empty { display: none; }
.developer-player { margin-top: 16px; border-top: 2px solid #d8cfae; }
.developer-player dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
.developer-player dt { font-weight: 600; }
.developer-player dd { margin: 0; }

.achievement-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 8px; padding: 0; list-style: none; }
.achievement-list:empty { display: none; }
.achievement-list li { border: 1px solid #d8cfae; border-radius: 5px; padding: 10px 12px; }
.achievement-list p { margin: 2px 0 0; }
.achievement-list-locked li { background: #e8e5dd; color: var(--muted); }
