/* Creative Arsenal expansion */
#game {
  filter: saturate(1.22) brightness(1.08) contrast(1.025);
}

#vignette {
  background: radial-gradient(circle, transparent 64%, rgba(0, 0, 0, .14) 100%) !important;
}

#mode-badge {
  display: inline-block;
  margin: 3px 0 2px;
  padding: 2px 6px;
  border: 1px solid rgba(149, 245, 255, .5);
  border-radius: 3px;
  background: rgba(25, 121, 134, .42);
  color: #bdf9ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

#quest-line, #ammo-line {
  margin-top: 4px;
  padding: 3px 7px;
  border-left: 3px solid rgba(114, 222, 126, .8);
  background: rgba(5, 12, 9, .52);
  color: #d9f5d8;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 0 1px 2px #000;
}

#ammo-line:empty { display: none; }
#ammo-line { border-left-color: #e8c35d; color: #fff0b6; text-align: right; }

body:not(.creative-mode) #mode-badge { display: none; }
body.gun-equipped #crosshair i { height: 18px; top: 0; background: #9ff5ff; box-shadow: 0 0 8px #3de7ff; }
body.gun-equipped #crosshair b { width: 18px; left: 0; background: #9ff5ff; box-shadow: 0 0 8px #3de7ff; }
body.gun-equipped #crosshair::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(159, 245, 255, .8); border-radius: 50%; }
body.gun-flash #crosshair::after { inset: -5px; border-color: #fff7a6; box-shadow: 0 0 18px #ffdc55; }

#creative-palette {
  display: none;
  margin: 5px 0 13px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(14, 87, 100, .31), rgba(58, 36, 86, .28));
  border: 1px solid rgba(127, 226, 240, .22);
  border-radius: 8px;
}

body.creative-mode #creative-palette { display: block; }
.creative-palette-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.creative-palette-head h3 { margin: 0; color: #bdf9ff; }
.creative-palette-head span { font-size: 11px; color: #afbdc7; }
#creative-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 7px; max-height: 245px; overflow-y: auto; padding: 3px 4px 8px 2px; scrollbar-color: #75cddd rgba(0, 0, 0, .2); }
.creative-item { min-width: 0; height: 74px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; padding: 3px 2px 2px; overflow: hidden; border-radius: 6px; background: rgba(7, 14, 17, .68); border: 1px solid rgba(187, 242, 255, .25); box-shadow: inset 0 0 13px rgba(0, 0, 0, .55); }
.creative-item:hover { border-color: #a6f2ff; filter: brightness(1.2); }
.creative-item img { width: 43px; height: 43px; flex: 0 0 43px; image-rendering: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.72)); }
.creative-item span { display: block; width: 100%; overflow: hidden; color: #dbe6ea; font-size: 8px; font-weight: 800; line-height: 10px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.creative-item.legendary { border-color: rgba(206, 137, 255, .65); box-shadow: inset 0 0 14px rgba(89, 24, 125, .45), 0 0 8px rgba(180, 94, 255, .16); }
.creative-item.gun { border-color: rgba(94, 230, 255, .68); box-shadow: inset 0 0 14px rgba(10, 101, 120, .42), 0 0 8px rgba(69, 216, 255, .16); }
body.creative-mode #hearts, body.creative-mode #breath { opacity: .28; }
body.creative-mode .inventory-window { height: min(94vh, 760px); }
body.creative-mode .inventory-layout { height: calc(100% - 350px); min-height: 235px; }

.slot img, .recipe img, #cursor-stack img { image-rendering: auto !important; }
.inventory-window {
  background: linear-gradient(145deg, rgba(31, 46, 39, .97), rgba(10, 19, 16, .97));
  border-color: rgba(208, 238, 221, .28);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .62), inset 0 1px rgba(255,255,255,.1);
}
.creative-item {
  background: radial-gradient(circle at 50% 28%, rgba(61, 84, 75, .38), rgba(6, 13, 11, .86) 72%);
  box-shadow: inset 0 1px rgba(255,255,255,.07), inset 0 -10px 24px rgba(0,0,0,.42), 0 3px 8px rgba(0,0,0,.24);
}
.clear-inventory-btn {
  min-height: 30px !important; padding: 5px 10px !important; margin-left: auto;
  color: #ffe0dc; background: linear-gradient(#7b4743, #4d2927); border-color: rgba(255,190,181,.42);
  font-size: 11px; white-space: nowrap;
}

.title-panel h1 {
  font-size: clamp(38px, 4vw, 50px);
  line-height: 1;
  letter-spacing: .08em;
  text-shadow: 0 4px 0 #22342a, 0 7px 16px rgba(0, 0, 0, .8);
}

body.gun-equipped #selected-name { color: #c5f8ff; }

@media (max-width: 900px) {
  body.creative-mode .inventory-window { overflow: auto; }
  .creative-palette-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  body.creative-mode .inventory-layout { height: auto; }
}
