*{box-sizing:border-box}

:root{
  --ink:#17181c;
  --paper:#f8f7f3;
  --header:72px;
}

html,body{
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#d7d3ca;
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
}

button,input{font:inherit}
button{color:inherit}

.topbar{
  position:fixed;
  z-index:100;
  top:0;
  left:0;
  right:0;
  height:var(--header);
  display:flex;
  align-items:center;
  padding:0 31px;
  background:rgba(250,249,246,.985);
  border-bottom:1px solid rgba(0,0,0,.13);
}

.brand{
  flex:0 0 auto;
  padding-right:25px;
  font-size:35px;
  line-height:1;
  font-weight:950;
  letter-spacing:-2.3px;
  white-space:nowrap;
  border-right:1px solid #c8c8c8;
}

.pitch{
  width:355px;
  padding-left:25px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.pitch strong{
  font-size:17px;
  line-height:19px;
  letter-spacing:-.3px;
}

.pitch span{
  margin-top:3px;
  font-size:13px;
}

nav{
  height:100%;
  margin-left:auto;
  display:flex;
  align-items:center;
}

.nav{
  position:relative;
  height:100%;
  padding:0 15px;
  border:0;
  background:transparent;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.nav.active:after{
  content:"";
  position:absolute;
  left:15px;
  right:15px;
  bottom:15px;
  height:2px;
  background:#17181c;
}

.random{
  height:44px;
  margin-left:12px;
  padding:0 21px;
  border:0;
  border-radius:4px;
  background:#18191d;
  color:#fff;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

.cart{
  width:50px;
  height:50px;
  margin-left:8px;
  border:0;
  background:transparent;
  cursor:pointer;
}

.cart-shape{
  font-size:30px;
  display:block;
  transform:rotate(4deg);
}

#stage{
  position:fixed;
  z-index:1;
  top:var(--header);
  left:0;
  right:0;
  bottom:0;
  overflow:hidden;
  background:#b8d5e9;
}

#world{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
  cursor:grab;
}

#world.dragging{cursor:grabbing}
#world.buying{cursor:crosshair}

.mode-hint{
  position:absolute;
  z-index:20;
  top:15px;
  left:50%;
  transform:translateX(-50%);
  padding:9px 17px;
  border-radius:30px;
  background:rgba(30,33,37,.77);
  color:#fff;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.25px;
  white-space:nowrap;
  pointer-events:none;
  backdrop-filter:blur(5px);
}

.zoom-controls{
  position:absolute;
  z-index:35;
  left:28px;
  top:55%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:7px;
  background:#fff;
  box-shadow:0 4px 18px rgba(0,0,0,.15);
}

.zoom-controls button{
  width:54px;
  height:51px;
  padding:0;
  border:0;
  border-bottom:1px solid #ddd;
  background:#fff;
  font-size:25px;
  cursor:pointer;
}

.zoom-controls button:last-child{
  border-bottom:0;
  font-size:19px;
}

#sidePanels{
  position:absolute;
  z-index:40;
  top:13px;
  right:28px;
  width:326px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.panel{
  position:relative;
  padding:15px 16px;
  border-radius:8px;
  background:rgba(250,249,246,.965);
  box-shadow:0 6px 24px rgba(0,0,0,.13);
  backdrop-filter:blur(9px);
}

.panel-title{
  margin-bottom:10px;
  font-size:11px;
  line-height:14px;
  font-weight:900;
}

.selection-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.selection-head strong:first-child{
  font-size:14px;
}

#selectionPrice{
  font-size:22px;
}

#preview{
  width:100%;
  height:112px;
  display:block;
  border-radius:4px;
  background:#a9917b;
}

#selectionHelp{
  margin:9px 0;
  color:#575757;
  font-size:10px;
}

.claim{
  width:100%;
  height:45px;
  border:0;
  border-radius:3px;
  background:#191a1e;
  color:#fff;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.claim:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.paint-panel{
  padding-bottom:16px;
}

.colors{
  display:flex;
  gap:7px;
  align-items:center;
  margin:3px 0 14px;
}

.colors button{
  width:21px;
  height:21px;
  flex:0 0 21px;
  padding:0;
  border:1px solid rgba(0,0,0,.07);
  border-radius:50%;
  background:var(--c);
}

.colors button.selected{
  outline:2px solid #17181c;
  outline-offset:2px;
}

.tools{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
}

.tools button{
  height:42px;
  border:0;
  border-radius:4px;
  background:#ebeae8;
  font-size:18px;
}

.tools button.selected{
  background:#1a1b1f;
  color:#fff;
}

.brush{
  display:flex;
  align-items:center;
  gap:15px;
  margin-top:13px;
  font-size:10px;
}

.brush input{
  flex:1;
  accent-color:#17181c;
}

.paint-lock{
  position:absolute;
  inset:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:rgba(248,247,243,.30);
  color:transparent;
  pointer-events:auto;
}

.hud{
  position:absolute;
  z-index:30;
  left:27px;
  right:27px;
  bottom:18px;
  height:105px;
  display:flex;
  align-items:center;
  pointer-events:none;
}

.minimap-card{
  width:495px;
  height:101px;
  flex:0 0 495px;
  padding:8px 9px 4px;
  border-radius:7px;
  background:rgba(250,249,246,.96);
  box-shadow:0 4px 18px rgba(0,0,0,.12);
  pointer-events:auto;
}

#minimap{
  width:100%;
  height:78px;
  display:block;
  cursor:pointer;
  touch-action:none;
}

.minimap-label{
  margin-top:2px;
  text-align:center;
  font-size:7px;
  font-weight:900;
}

.stats{
  margin-left:67px;
  display:flex;
  gap:72px;
}

.stat{
  min-width:95px;
  display:flex;
  flex-direction:column;
}

.stat strong{
  font-size:20px;
  line-height:22px;
}

.stat span{
  margin-top:3px;
  font-size:11px;
}

.hud-divider{
  width:1px;
  height:45px;
  margin-left:35px;
  background:rgba(0,0,0,.25);
}

.actions{
  display:flex;
  align-items:center;
  gap:16px;
  margin-left:27px;
  pointer-events:auto;
}

.actions button{
  padding:11px 5px;
  border:0;
  background:transparent;
  font-size:10px;
  cursor:pointer;
  white-space:nowrap;
}

.actions b{
  margin-right:7px;
  font-size:18px;
}

.signature{
  margin-left:auto;
  padding-right:13px;
  font-size:19px;
  line-height:19px;
  font-weight:900;
  transform:rotate(-5deg);
}

#toast{
  position:fixed;
  z-index:200;
  left:50%;
  bottom:25px;
  padding:11px 16px;
  border-radius:5px;
  background:#17181c;
  color:#fff;
  font-size:11px;
  font-weight:800;
  opacity:0;
  transform:translate(-50%,20px);
  pointer-events:none;
  transition:.2s;
}

#toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

@media(max-width:1250px){
  .pitch{width:285px}
  .nav{padding:0 9px}
  .nav.active:after{left:9px;right:9px}
  .hud{right:15px}
  .minimap-card{width:410px;flex-basis:410px}
  .stats{margin-left:35px;gap:30px}
  .actions{margin-left:20px}
}

@media(max-width:1000px){
  .brand{font-size:27px;border:0;padding-right:10px}
  .pitch{display:none}
  nav{display:none}
  #sidePanels{right:14px;width:290px}
  .hud{left:14px}
  .minimap-card{width:350px;flex-basis:350px}
  .stats,.actions,.hud-divider,.signature{display:none}
}
