.hv-game-crafting {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
}

.hv-game-crafting[hidden] {
  display: none !important;
}

.hv-game-crafting.is-open {
  pointer-events: auto;
}

.hv-craft-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.78);
}

.hv-craft-panel {
  position: relative;
  width: min(1060px, 100%);
  height: min(88vh, 680px);
  display: flex;
  flex-direction: column;
  padding: 10px 12px 8px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.05) 0%, transparent 24%),
    linear-gradient(135deg, rgba(8, 14, 28, 0.98) 0%, rgba(4, 8, 18, 0.99) 100%);
  border: 1px solid rgba(0, 255, 255, 0.24);
  border-radius: 10px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.6);
}

.hv-craft-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(120, 180, 255, 0.14);
}

.hv-craft-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hv-craft-title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e8f8ff;
}

.hv-craft-subtitle {
  margin: 2px 0 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.hv-craft-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hv-craft-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid rgba(120, 200, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 244, 255, 0.65);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.hv-craft-tab.is-active {
  color: #fff;
  background: rgba(56, 140, 220, 0.4);
  border-color: rgba(0, 255, 255, 0.45);
}

.hv-craft-tab.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.hv-craft-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(120, 200, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8f4ff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.hv-craft-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 148px 1fr 340px;
  gap: 10px;
  min-height: 0;
  flex: 1;
  padding-top: 8px;
  overflow: hidden;
}

.hv-craft-inv-cell {
  flex-shrink: 0;
  cursor: default;
}

.hv-craft-inv-cell:hover {
  transform: none;
  filter: none;
}

.hv-craft-inv-cell-xs {
  width: 34px;
  height: 34px;
  --hv-inv-cut: 5px;
  --hv-inv-cut-inner: 4px;
}

.hv-craft-inv-cell-xs .hv-inv-frame::before,
.hv-craft-inv-cell-xs .hv-inv-frame::after {
  width: 8px;
  height: 8px;
}

.hv-craft-inv-cell-md {
  width: 54px;
  height: 54px;
}

.hv-craft-inv-cell-xl {
  width: 92px;
  height: 92px;
  --hv-inv-cut: 8px;
  --hv-inv-cut-inner: 7px;
}

.hv-craft-inv-cell-xl .hv-inv-frame::before,
.hv-craft-inv-cell-xl .hv-inv-frame::after {
  width: 13px;
  height: 13px;
}

.hv-craft-categories-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-right: 6px;
  border-right: 1px solid rgba(120, 180, 255, 0.1);
}

.hv-craft-categories {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  min-height: 0;
}

.hv-craft-cat-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(232, 244, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: left;
  cursor: pointer;
}

.hv-craft-cat-btn.is-active {
  color: #fff;
  background: rgba(56, 140, 220, 0.32);
  border-color: rgba(120, 200, 255, 0.4);
}

.hv-craft-cat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.hv-craft-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.hv-craft-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hv-craft-search {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(120, 200, 255, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #e8f4ff;
  font-size: 11px;
  box-sizing: border-box;
}

.hv-craft-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hv-craft-sort-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.hv-craft-sort-select {
  padding: 6px 8px;
  border: 1px solid rgba(120, 200, 255, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: #e8f4ff;
  font-size: 9px;
  font-weight: 700;
}

.hv-craft-recipes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  padding-right: 4px;
  align-content: start;
}

.hv-craft-recipe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px 8px;
  border: 1px solid rgba(120, 200, 255, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 148px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hv-craft-recipe-card:hover {
  border-color: rgba(120, 200, 255, 0.35);
}

.hv-craft-recipe-card.is-selected {
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
  background: rgba(56, 140, 220, 0.14);
}

.hv-craft-recipe-card.is-disabled {
  opacity: 0.5;
}

.hv-craft-recipe-name {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  color: #e8f4ff;
  line-height: 1.25;
  min-height: 22px;
}

.hv-craft-rarity {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hv-craft-rarity-1 { color: #b8c4d0; }
.hv-craft-rarity-2 { color: #7ee87a; }
.hv-craft-rarity-3 { color: #6eb8ff; }
.hv-craft-rarity-4 { color: #c98cff; }

.hv-craft-mini-craft {
  margin-top: auto;
  width: 100%;
  padding: 6px 0;
  border: none;
  border-top: 1px solid rgba(0, 255, 255, 0.35);
  border-bottom: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(30, 90, 120, 0.9) 0%, rgba(46, 140, 180, 0.95) 100%);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.hv-craft-mini-craft:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hv-craft-details {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 8px 10px 8px 12px;
  border-left: 1px solid rgba(120, 180, 255, 0.1);
  overflow-y: auto;
  position: relative;
}

.hv-craft-details::before,
.hv-craft-details::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(0, 255, 255, 0.55);
  border-style: solid;
  pointer-events: none;
}

.hv-craft-details::before {
  top: 4px;
  right: 4px;
  border-width: 2px 2px 0 0;
}

.hv-craft-details::after {
  bottom: 4px;
  right: 4px;
  border-width: 0 2px 2px 0;
}

.hv-craft-section-tag {
  margin: 0 0 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}

.hv-craft-queue-tag {
  margin-top: 12px;
}

.hv-craft-detail-empty {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  padding: 12px 0;
}

.hv-craft-detail-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.hv-craft-detail-info h3 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.hv-craft-detail-info p {
  margin: 0 0 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.35;
}

.hv-craft-owned {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(0, 255, 255, 0.9);
}

.hv-craft-req-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.hv-craft-req-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(120, 180, 255, 0.1);
}

.hv-craft-req-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.hv-craft-req-name {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
}

.hv-craft-req-qty {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.hv-craft-req-list li.is-ok .hv-craft-req-name,
.hv-craft-req-list li.is-ok .hv-craft-req-qty {
  color: #9cff9c;
}

.hv-craft-req-list li.is-missing .hv-craft-req-name,
.hv-craft-req-list li.is-missing .hv-craft-req-qty {
  color: #ff9a9a;
}

.hv-craft-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.hv-craft-qty-group {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(120, 200, 255, 0.28);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.hv-craft-qty-btn {
  padding: 6px 10px;
  border: none;
  border-right: 1px solid rgba(120, 180, 255, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #e8f4ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hv-craft-qty-group .hv-craft-qty-btn:last-of-type {
  border-right: none;
  border-left: 1px solid rgba(120, 180, 255, 0.2);
}

.hv-craft-qty-max {
  padding: 6px 12px;
  border: 1px solid rgba(120, 200, 255, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #e8f4ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.hv-craft-qty-input {
  width: 48px;
  padding: 6px 4px;
  border: none;
  border-left: 1px solid rgba(120, 180, 255, 0.2);
  border-right: 1px solid rgba(120, 180, 255, 0.2);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.32);
  color: #e8f4ff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.hv-craft-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.hv-craft-time-icon {
  width: 14px;
  height: 14px;
  color: rgba(0, 255, 255, 0.85);
}

.hv-craft-time {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0, 255, 255, 0.9);
}

.hv-craft-start-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-top: 2px solid rgba(0, 255, 255, 0.75);
  border-bottom: 2px solid rgba(0, 255, 255, 0.75);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(24, 72, 96, 0.95) 0%, rgba(42, 150, 190, 0.98) 50%, rgba(24, 72, 96, 0.95) 100%);
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.18);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.hv-craft-start-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.hv-craft-queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hv-craft-slot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(120, 200, 255, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.hv-craft-slot.is-active {
  border-color: rgba(0, 255, 255, 0.45);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.12);
}

.hv-craft-slot.is-empty {
  opacity: 0.45;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.hv-craft-slot.is-locked {
  opacity: 0.5;
  display: flex;
  justify-content: space-between;
}

.hv-craft-slot-body {
  min-width: 0;
}

.hv-craft-slot-name {
  font-size: 9px;
  font-weight: 700;
  color: #e8f4ff;
}

.hv-craft-slot-timer {
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  color: rgba(0, 255, 255, 0.88);
  margin-top: 2px;
}

.hv-craft-slot-progress {
  height: 4px;
  margin-top: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hv-craft-slot-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #4ec8f0);
  transition: width 0.3s linear;
}

.hv-craft-slot-claim {
  padding: 6px 12px;
  border: 1px solid rgba(245, 197, 24, 0.6);
  border-radius: 0;
  background: linear-gradient(180deg, #f5c518 0%, #d4a010 100%);
  color: #1a1200;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.hv-craft-slot-cancel {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(120, 180, 255, 0.35);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(56, 0, 72, 0.88), rgba(24, 72, 96, 0.92));
  color: #c8e8ff;
  font-size: 14px;
  line-height: 1;
  cursor: not-allowed;
  opacity: 0.65;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.hv-craft-slot-unlock {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
}

.hv-craft-slot-plus {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(120, 200, 255, 0.35);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #e8f4ff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.hv-craft-slot-plus:hover {
  border-color: rgba(255, 180, 60, 0.75);
  color: #ffe7a8;
  background: rgba(255, 170, 40, 0.12);
}

.hv-craft-unlock-modal {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hv-craft-unlock-modal[hidden] {
  display: none !important;
}

.hv-craft-unlock-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
}

.hv-craft-unlock-dialog {
  position: relative;
  width: min(640px, 100%);
  padding: 22px 20px 16px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.06) 0%, transparent 30%),
    linear-gradient(145deg, rgba(10, 18, 34, 0.98), rgba(4, 8, 18, 0.99));
  border: 1px solid rgba(0, 220, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.hv-craft-unlock-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(120, 180, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #d8ecff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.hv-craft-unlock-title {
  margin: 0 28px 16px 0;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #e8f8ff;
}

.hv-craft-unlock-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.hv-craft-unlock-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(120, 180, 255, 0.16);
  border-radius: 8px;
}

.hv-craft-unlock-option.is-vip {
  border-color: rgba(230, 180, 70, 0.35);
  background: linear-gradient(180deg, rgba(90, 60, 10, 0.22), rgba(255, 255, 255, 0.02));
}

.hv-craft-unlock-option-kicker {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(180, 220, 255, 0.7);
}

.hv-craft-unlock-option.is-vip .hv-craft-unlock-option-kicker {
  color: rgba(255, 214, 120, 0.85);
}

.hv-craft-unlock-visual {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.hv-craft-unlock-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(160, 120, 255, 0.45);
  background:
    radial-gradient(circle at 35% 30%, rgba(200, 160, 255, 0.35), transparent 55%),
    rgba(40, 20, 70, 0.65);
  overflow: hidden;
}

.hv-craft-unlock-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hv-craft-unlock-icon-vip {
  border-color: rgba(230, 180, 70, 0.55);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 220, 120, 0.35), transparent 55%),
    rgba(70, 45, 8, 0.75);
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #ffe7a8;
}

.hv-craft-unlock-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.hv-craft-unlock-badge.is-gold {
  background: linear-gradient(180deg, #f0c14b, #c9921a);
  color: #1a1204;
}

.hv-craft-unlock-option-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #eef7ff;
}

.hv-craft-unlock-option-desc {
  margin: 0;
  min-height: 34px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(220, 235, 255, 0.62);
}

.hv-craft-unlock-owned {
  margin: 0;
  min-height: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(140, 200, 255, 0.75);
}

.hv-craft-unlock-btn {
  width: 100%;
  margin-top: auto;
  padding: 9px 10px;
  border: 1px solid rgba(80, 180, 255, 0.45);
  border-radius: 6px;
  background: linear-gradient(180deg, #2f6dff, #1d4ed8);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.hv-craft-unlock-btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.hv-craft-unlock-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.hv-craft-unlock-btn.is-vip {
  border-color: rgba(230, 180, 70, 0.55);
  background: linear-gradient(180deg, rgba(50, 36, 10, 0.9), rgba(24, 18, 8, 0.95));
  color: #ffe7a8;
}

.hv-craft-unlock-or {
  align-self: center;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(180, 210, 255, 0.55);
}

.hv-craft-unlock-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 10px;
  color: rgba(180, 210, 255, 0.55);
}

.hv-craft-unlock-tip::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(140, 190, 255, 0.45);
  font-size: 9px;
  font-weight: 800;
  color: #9ec8ff;
}

@media (max-width: 700px) {
  .hv-craft-unlock-options {
    grid-template-columns: 1fr;
  }
  .hv-craft-unlock-or {
    justify-self: center;
  }
}

.hv-craft-footer {
  position: relative;
  z-index: 1;
  padding-top: 6px;
  border-top: 1px solid rgba(120, 180, 255, 0.1);
}

@media (max-width: 900px) {
  .hv-craft-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    overflow-y: auto;
  }
  .hv-craft-recipes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hv-craft-categories-wrap {
    border-right: none;
    border-bottom: 1px solid rgba(120, 180, 255, 0.1);
    padding-bottom: 6px;
  }
  .hv-craft-categories {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hv-craft-details {
    border-left: none;
    border-top: 1px solid rgba(120, 180, 255, 0.1);
    padding-top: 8px;
  }
  .hv-craft-header {
    grid-template-columns: 1fr auto;
  }
}

.hv-craft-toast-stack {
  position: fixed;
  top: 68px;
  right: 12px;
  z-index: 135;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.hv-craft-toast {
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateX(calc(100% + 24px)) scale(0.96);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.18));
}

.hv-craft-toast.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hv-craft-toast.is-leaving {
  opacity: 0;
  transform: translateX(36px) scale(0.98);
  transition:
    transform 0.35s ease-in,
    opacity 0.3s ease-in;
}

.hv-craft-toast.is-claim .hv-craft-toast-inner {
  border-color: rgba(255, 214, 0, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 214, 0, 0.16);
}

.hv-craft-toast-inner {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(0, 255, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(0, 255, 255, 0.07) 0%, transparent 42%),
    linear-gradient(225deg, rgba(255, 0, 170, 0.08) 0%, transparent 48%),
    rgba(6, 10, 22, 0.94);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(0, 255, 255, 0.12);
}

.hv-craft-toast-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #00ffff 0%, #ff00aa 100%);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.65);
}

.hv-craft-toast-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 255, 0.03) 0px,
    rgba(0, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
  animation: hvCraftToastScan 3s linear infinite;
}

@keyframes hvCraftToastScan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.hv-craft-toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.hv-craft-toast-badge {
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.hv-craft-toast-delta {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00ffff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.75);
}

.hv-craft-toast.is-claim .hv-craft-toast-delta {
  color: #ffe066;
  text-shadow: 0 0 12px rgba(255, 214, 0, 0.75);
}

.hv-craft-toast-title {
  margin: 0 0 8px;
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #e8f4ff;
}

.hv-craft-toast-hint {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(143, 212, 255, 0.82);
}

.hv-craft-toast-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.hv-craft-toast-bar {
  flex: 1;
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.hv-craft-toast-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #4ec8f0);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.55);
}

.hv-craft-toast.is-claim .hv-craft-toast-bar-fill {
  background: linear-gradient(90deg, #ffe066, #ffb347);
  box-shadow: 0 0 10px rgba(255, 214, 0, 0.55);
}

.hv-craft-toast-numbers {
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(143, 212, 255, 0.88);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hv-craft-tabs {
    display: none;
  }
}
