/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

/* Body & Typography */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #121212;
  color: #f4f4f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section Container */
.section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navbar */
#navbar {
  background: #1e1e1e;
  border-bottom: 2px solid #333;
  width: 100vw;
  padding: 0.75rem 0;
  margin-bottom: 0.1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
#navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 1rem;
}
#navbar li {
  margin: 0;
}
#navbar a {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  display: block;
  white-space: nowrap;
}
#navbar a:hover,
#navbar a:focus {
  background: #2c2c2c;
  outline: none;
}

/* Headings */
h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  color: #fff;
  font-weight: 700;
}

/* Main Button */
#rollBtn {
  background: #1f1f1f;
  color: #fff;
  margin: 2rem auto 0;
  border: 2px solid #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  padding: 15px 2.5rem;
  width: clamp(140px, 35vw, 220px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: block;
  position: relative;
  overflow: hidden;
  user-select: none;
}
#rollBtn:hover,
#rollBtn:focus {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(255, 255, 255, 0.15);
  outline: none;
}
#rollBtn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}
#rollBtn.cooldown::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  animation: cooldownOverlay 1.5s linear forwards;
}
@keyframes cooldownOverlay {
  from {
    top: -100%;
  }
  to {
    top: 0;
  }
}

/* Result Display */
#result {
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  word-break: break-word;
}

/* Progress Bar & Lucky Notice */
.progress-container {
  margin: 2rem auto;
  background: #232323;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
progress {
  width: 100%;
  height: 20px;
  border-radius: 10px;
  background: #444;
  appearance: none;
}
progress::-webkit-progress-bar {
  background: #444;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: #50ff4a;
  border-radius: 10px;
}
.luck-notice,
#luckNotice {
  color: rgb(80, 255, 74);
  font-weight: 700;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Settings & Cards */
.settings-container,
.progress-container,
.rarity-table {
  margin: 1.25rem auto;
  background: #232323;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  width: 95%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.settings-container {
  max-width: 450px;
}
#settingsSection label {
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}
#settingsSection input[type="checkbox"] {
  accent-color: #00bfff;
  margin-right: 8px;
}
#settingsSection h2,
#settingsSection h3 {
  text-align: center;
  margin-bottom: 1rem;
}

/* Inventory Section */
.inventory-section {
  height: auto; 
  min-height: 200px; 
  max-height: 80vh; 
  overflow-y: auto; 
  margin: 1.25rem auto;
  background: #232323;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  width: 95%;
  max-width: 1300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Inventory Grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 1800px;
  padding: 0 clamp(1rem, 2vw, 1.5rem);
  justify-items: center;
  align-items: stretch;
}
.inventory-slot {
  width: 100%;
  max-width: 220px;
  padding: clamp(12px, 2vw, 22px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  transition: transform 0.2s ease, background 0.2s ease;
  position: relative;
  font-weight: 700;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
}
.inventory-slot:hover,
.inventory-slot:focus-within {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

/* Tooltip */
.tooltip {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background: #222;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 6px 12px;
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.inventory-slot:hover .tooltip,
.inventory-slot:focus-within .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Rarity Colors */
.common {
  color: gray;
}
.uncommon {
  color: #28a745;
} 
.rare {
  color: dodgerblue;
}
.epic {
  color: purple;
}
.legendary {
  color: orange;
}
.mythical {
  color: red;
}
.divine {
  color: gold;
}
.eternal {
  color: blue;
  text-decoration: underline;
}
.celestial {
  color: #13b6d3;
  text-decoration: underline;
}
.arcane {
  color: #b80ccf;
  text-decoration: underline;
}
.godlike {
  color: #ffbb00;
  text-decoration: underline;
}
.ultimate {
  color: #00fff2;
  text-decoration: underline;
}
.supernova {
  color: #8400ff;
  font-weight: 700;
}
.shadow {
  color: #646464;
  font-weight: 700;
}
.ascended {
  color: #ffee8e;
  font-weight: 700;
}
.glitched {
  color: #69ff4b;
  font-weight: 700;
}
.Radiant {
  color: #fff9a8;
  text-decoration: underline;
  font-weight: 700;
}
.Omega {
  color: white;
  text-decoration: underline;
  font-weight: 700;
}
.immortal {
  color: darkred;
  text-decoration: underline;
  font-weight: 700;
}
.infinite {
  color: #c7ffbf;
  text-decoration: underline;
  font-weight: 700;
}
.secret {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  background: linear-gradient(to right, #1a1a1a, #202020, #353535);
  padding: 0 4px;
  border-radius: 3px;
}

/* Table alignment */
tbody tr td,
tbody tr {
  text-align: center;
  margin: 10px;
}

/* Rarity Table */
.rarity-table {
  margin: 2rem auto;
  background: #232323;
  width: 100%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  width: 100vw;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.7);
  user-select: none;
}
.footer a {
  color: #7289da;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover,
.footer a:focus {
  color: #9aaef2;
  outline: none;
}
.footer .discord-logo {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

/* Responsive Adjustments */

/* Large screens */
@media (min-width: 1440px) {
  .inventory-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: 2200px;
  }
  .inventory-slot {
    font-size: 1.2rem;
    max-width: 260px;
    padding: 20px 24px;
  }
  .rarity-table {
    max-width: 600px;
    font-size: 1.2rem;
  }
}

/* Medium screens */
@media (max-width: 1024px) and (min-width: 701px) {
  .inventory-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    max-width: 98vw;
  }
  .inventory-slot {
    font-size: 1rem;
    max-width: 160px;
    padding: 12px 8px;
  }
}

/* Small screens */
@media (max-width: 700px) {
  .inventory-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
    max-width: 99vw;
    padding: 0 2vw;
  }
  .inventory-slot {
    font-size: 0.9rem;
    max-width: 110px;
    padding: 8px 6px;
    min-height: 60px;
  }
  .section,
  .account-section.section {
    padding: 1rem 2vw;
    min-height: auto;
    padding-bottom: 2rem;
  }
  .progress-container,
  .settings-container,
  .rarity-table,
  .inventory-section {
    padding: 10px 1rem;
    width: 99%;
    margin: 0.5rem auto;
  }
  #navbar ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    display: none;
    background: #232323;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    box-shadow: 0 4px 12px #000a;
    z-index: 150;
    padding: 0.5rem 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  #navbar ul.open {
    display: flex;
  }
  #navbar li {
    margin: -4px 0;
  }
  #navbar a {
    font-size: 0.95rem;
    padding: 10px 12px;
    margin: 0;
    border-radius: 4px;
  }
  #rollBtn {
    width: 70vw;
    font-size: 1rem;
    padding: 12px 0;
  }
  #result {
    font-size: 1.75rem;
    word-break: break-word;
  }
  .footer {
    font-size: 0.75rem;
    padding: 10px 0;
  }
  #settingsSection h2,
  #settingsSection h3 {
    font-size: 1rem;
  }
  #settingsSection ul {
    font-size: 0.95rem;
  }
  .hamburger {
    display: flex;
  }
}

/* General Styles */
.inventory-slot {
  position: relative;
  min-height: 60px;
  cursor: pointer;
}
.inventory-slot.selected {
  outline: 3px solid #00bfff;
  z-index: 10;
}
.inventory-slot[draggable="true"] {
  cursor: grab;
}
.tooltip {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background: #222;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 3px 8px;
  position: absolute;
  left: 50%;
  border-radius: 5px;
  bottom: 90%; /* Lowered from 110% */
  transform: translateX(-50%);
  font-size: 0.95rem;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  min-width: 0;
}

.inventory-slot:hover .tooltip,
.inventory-slot:focus-within .tooltip {
  visibility: visible;
  opacity: 1;
}
.inventory-section {
  overflow: visible !important;
}

/* Craft Popup */
.craft-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  background: #232323;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px #000a;
  padding: 22px 28px;
  z-index: 100;
  min-width: 220px;
  text-align: center;
  font-size: 1.1em;
  display: none;
}
.craft-popup button {
  margin: 18px 8px 0;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: #00bfff;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}
.craft-popup button:hover {
  background: #0099cc;
}
.craft-popup .close-btn {
  background: #444;
  color: #fff;
}
.craft-popup .close-btn:hover {
  background: #222;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
  margin-left: 10px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navbar */
#navbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  width: auto;
  max-width: none;
}
#navbar li {
  margin: 0;
  display: block;
}
#navbar a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  font-size: 1.08em;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
#navbar a:hover,
#navbar a.active {
  background: #232323;
}
#navbar .icon {
  width: 25px;
  height: 25px;
  display: inline-block;
  vertical-align: middle;
}

/* Account Section */
.account-section {
  background: #2d2d2d;
  color: #f1f1f1;
  border-radius: 12px;
  max-width: 400px;
  margin: 40px auto 0;
  padding: 32px 24px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.account-section h1,
.account-section h2 {
  text-align: center;
  margin-bottom: 18px;
}
.account-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  background: #232323;
  padding: 18px 16px;
  border-radius: 8px;
}
.account-form input[type="text"],
.account-form input[type="password"] {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #444;
  color: #fff;
  font-size: 1em;
  outline: none;
  transition: background 0.2s;
}
.account-form input[type="text"]:focus,
.account-form input[type="password"]:focus {
  background: #555;
}
.account-btn {
  background: #1f1f1f;
  color: #fff;
  margin: 2rem auto 0;
  border: 2px solid #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  padding: 15px 2.5rem;
  width: clamp(140px, 35vw, 220px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: block;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.account-btn:hover,
.account-btn:focus {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(255, 255, 255, 0.15);
  outline: none;
}
.account-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}
#accountMessage {
  text-align: center;
  margin-top: 10px;
  min-height: 24px;
  font-size: 1em;
}
#accountWelcome {
  text-align: center;
  margin-top: 24px;
}

/* Leaderboard */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background: #232323;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed;
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 10px 16px;
  text-align: center;
}
.leaderboard-table th {
  background: #333;
  font-weight: bold;
}
.leaderboard-table tr:nth-child(even) {
  background: #292929;
}
.leaderboard-table th:nth-child(1),
.leaderboard-table td:nth-child(1) {
  width: 10%;
  min-width: 60px;
  max-width: 80px;
}
.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2),
.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(3) {
  width: 45%;
  min-width: 120px;
  max-width: 300px;
}
.leaderboard-toggle {
  background: #232323;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 28px;
  margin: 0 1%;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  outline: none;
}
.leaderboard-toggle:hover,
.leaderboard-toggle:focus,
.leaderboard-toggle.active {
  background: #333;
  color: #fff;
  border-color: #fff;
}
.leaderboard-toggle.active {
  box-shadow: 0 4px 16px rgba(80, 255, 74, 0.15);
}

/* Equipment */
.equip-slot {
  width: 260px;
  height: 80px;
  border: 2.5px dashed #4caf50;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35em;
  background: linear-gradient(135deg, #181818 80%, #232323 100%);
  margin: 0 auto;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(80, 255, 74, 0.07);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  position: relative;
}

.equip-slot.equipped {
  border-color: #bfff00;
  box-shadow: 0 0 16px 2px #bfff0033;
}

.equip-slot span.luck-bonus {
  color: #bfff00;
  font-size: 1.1em;
  font-weight: bold;
  margin-left: 8px;
  display: inline-block;
  text-shadow: 0 1px 6px #232;
}

.equip-slot span.luck-label {
  color: #bfff00;
  font-size: 1em;
  font-weight: bold;
  display: block;
  margin-top: 2px;
  text-shadow: 0 1px 6px #232;
}

/* Misc */
.luck-bonus {
  color: #bfff00;
  font-weight: bold;
  font-size: 0.95em;
  margin-left: 6px;
}
.account-section {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

}
/* Navbar base styles */
#navbar {
  width: 100%;
  background: #181818;
  padding: 0;
  position: relative;
  z-index: 200;
}
#navbar ul {
  display: flex;
  flex-direction: row;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0 1.5rem;
  align-items: center;
  transition: all 0.2s;
}
#navbar li {
  margin: 0;
}
#navbar a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 5px;
  font-size: 1.05rem;
  transition: background 0.15s;
}
#navbar a:hover,
#navbar a.active {
  background: #232323;
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 38px;
  height: 38px;
  margin: 0 0 0 8px;
  z-index: 201;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  background: #cfcfcf;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Responsive: show hamburger, stack menu vertically */
@media (max-width: 700px) {
  #navbar ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    display: none;
    background: #232323;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    box-shadow: 0 4px 12px #000a;
    z-index: 150;
    padding: 0.5rem 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  #navbar ul.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* Potion system styles */
.potion-card {
  display: flex;
  align-items: center;
  background: #232323;
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px 18px;
  box-shadow: 0 2px 8px #000a;
  gap: 18px;
  font-size: 1.1em;
}
.potion-icon {
  width: 38px;
  height: 38px;
  margin-right: 12px;
}
.potion-craft-btn {
  margin-left: auto;
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  background: #bfff00;
  color: #232323;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}
.potion-craft-btn:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}
.potion-inventory {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.potion-slot {
  background: #232323;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  min-width: 70px;
  box-shadow: 0 1px 4px #000a;
  transition: box-shadow 0.2s;
}
.potion-slot:hover {
  box-shadow: 0 2px 12px #bfff00aa;
}
.potion-tooltip {
  display: none;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #181818;
  color: #fff;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.95em;
  white-space: pre-line;
  z-index: 100;
  box-shadow: 0 2px 8px #000a;
  min-width: 120px;
  text-align: center;
}
.potion-slot:hover .potion-tooltip {
  display: block;
}
.potion-active {
  border: 2px solid #bfff00;
  box-shadow: 0 0 12px #bfff00cc;
}
.potion-count {
  font-size: 0.95em;
  color: #bfff00;
  margin-top: 2px;
}
#activePotionsDisplay {
  margin: 10px 0 0 0;
  font-size: 1.1em;
  color: #bfff00;
  text-align: center;
}
.crafting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  max-width: 600px;
  margin: 0 auto;
  justify-items: center;
  align-items: center;
  margin-right: 46%;
}
.potion-card {
  background: #181818;
  border-radius: 8px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 540px;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 2px 8px #0004;
  flex-direction: row;
  margin: auto;
  justify-content: space-between;
}
.potion-card svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.potion-craft-btn {
  margin-left: auto;
  font-size: 1em;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: #222;
  color: #bfff00;
  cursor: pointer;
  transition: background 0.2s;
}
.potion-craft-btn:disabled {
  background: #333;
  color: #888;
  cursor: not-allowed;
}
