@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap');


body {
  background: linear-gradient(135deg, #1a1a1e 70%, #2c1a2c 100%);
  color: #e9e6d7;
  font-family: 'UnifrakturCook', cursive, serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.main-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(28, 22, 36, 0.97);
  border-bottom: 2px solid #543332;
  padding: 18px 0 14px 0;
  box-shadow: 0 2px 14px #000a;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  min-height: 70px;
}

.header-title {
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: #c7b392;
  text-shadow: 0 2px 6px #000;
  margin-left: 48px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 48px;
}

#logout-btn,
#toggle-inventory-btn {
  font-family: 'UnifrakturCook', cursive, serif;
  background: #392b21;
  border: 2px solid #ad8a5c;
  color: #e9e6d7;
  padding: 9px 24px;
  border-radius: 9px;
  font-size: 1.13rem;
  letter-spacing: 1px;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #1a1a1e33;
}
#logout-btn:hover,
#toggle-inventory-btn:hover {
  background: #ad8a5c;
  color: #261a13;
  border-color: #c7b392;
  box-shadow: 0 4px 16px #ad8a5c33;
}

/* Add space under fixed header */
#main-content {
  padding-top: 110px;
}

/* Inventory container */
.inventory-container {
  max-width: 980px;
  margin: 0 auto 40px auto;
  background: rgba(28, 22, 36, 0.96);
  border: 2px solid #543332;
  border-radius: 16px;
  box-shadow: 0 0 30px #000;
  padding: 36px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
  color: #c7b392;
  text-shadow: 0 2px 6px #000;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  grid-template-rows: repeat(5, 70px);
  gap: 10px;
  background: rgba(50, 40, 60, 0.38);
  border: 2px ridge #5e3a2f;
  border-radius: 12px;
  padding: 14px;
}

.inventory-slot {
  background: #222025;
  border: 2px solid #3a2622;
  border-radius: 7px;
  box-shadow: 0 2px 10px #110c14 inset;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border 0.2s;
}
.inventory-slot.selected {
  border-color: #c7b392;
  box-shadow: 0 0 12px #c7b392;
}
.inventory-slot img {
  width: 44px;
  height: 44px;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px #000a);
  pointer-events: none;
}
.inventory-slot .item-qty {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 0.9rem;
  color: #b99476;
  text-shadow: 0 1px 4px #000, 0 0px 2px #000;
  font-family: 'UnifrakturCook', cursive, serif;
}

.item-details {
  flex: 1;
  background: rgba(34, 27, 38, 0.93);
  border: 2px solid #3f2d2e;
  border-radius: 11px;
  min-width: 240px;
  padding: 20px;
  min-height: 220px;
  box-shadow: 0 0 12px #000;
}
.item-details h2 {
  margin-top: 0;
  color: #ad8a5c;
  font-size: 1.6rem;
}
#details-content {
  font-size: 1.16rem;
  margin-bottom: 1.2em;
  min-height: 60px;
}
.item-details button {
  font-family: 'UnifrakturCook', cursive, serif;
  background: #392b21;
  border: 1px solid #ad8a5c;
  color: #e9e6d7;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 1.1rem;
  margin-right: 13px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.item-details button:hover {
  background: #ad8a5c;
  color: #261a13;
  border-color: #c7b392;
}

#admin-panel {
  margin: 40px auto 0 auto;
  max-width: 520px;
  background: rgba(24,16,28,0.94);
  border: 2px solid #462e29;
  border-radius: 14px;
  box-shadow: 0 0 20px #000;
  padding: 24px;
}
#admin-panel h2 {
  margin-top: 0;
  color: #c7b392;
  font-size: 1.5rem;
}
#admin-panel form {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}
#admin-panel label {
  font-size: 1.1rem;
  color: #b99476;
}
#admin-panel input, #admin-panel select {
  font-family: inherit;
  font-size: 1rem;
  margin-left: 7px;
  border-radius: 5px;
  border: 1px solid #a98b6d;
  padding: 3px 8px;
  background: #232026;
  color: #e9e6d7;
}
#admin-panel button {
  margin-left: 0;
  background: #392b21;
  border: 1px solid #ad8a5c;
  color: #e9e6d7;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
#admin-panel button:hover {
  background: #ad8a5c;
  color: #261a13;
  border-color: #c7b392;
}
#admin-msg {
  min-height: 30px;
  margin-top: 13px;
  color: #b99476;
  font-size: 1.1rem;
}

.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}
#login-form {
  background: rgba(28, 22, 36, 0.97);
  border: 2px solid #543332;
  border-radius: 14px;
  box-shadow: 0 0 22px #000;
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 300px;
}
#login-form h2 {
  color: #c7b392;
  margin: 0 0 12px 0;
  text-align: center;
  font-size: 1.6rem;
}
#login-form input {
  font-family: inherit;
  font-size: 1.05rem;
  padding: 8px 11px;
  border-radius: 7px;
  border: 1px solid #a98b6d;
  background: #232026;
  color: #e9e6d7;
}
#login-form button {
  background: #392b21;
  border: 1px solid #ad8a5c;
  color: #e9e6d7;
  padding: 9px 0;
  border-radius: 7px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
#login-form button:hover {
  background: #ad8a5c;
  color: #261a13;
  border-color: #c7b392;
}
.error-msg {
  color: #e56464;
  min-height: 24px;
  text-align: center;
  font-size: 1rem;
}

/* Scroll compensation for fixed header on anchor links (if any) */
:target:before {
  content: "";
  display: block;
  height: 110px;
  margin-top: -110px;
}

/* ...существующие стили... */

/* Панель экипировки */
.equipment-panel {
  flex: 0 0 230px;
  background: rgba(34, 27, 38, 0.93);
  border: 2px solid #3f2d2e;
  border-radius: 11px;
  padding: 18px 10px 20px 10px;
  margin-left: 28px;
  min-width: 180px;
  max-width: 250px;
  box-shadow: 0 0 12px #000;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.equipment-panel h2 {
  margin-top: 0;
  color: #ad8a5c;
  font-size: 1.45rem;
  text-align: center;
  margin-bottom: 14px;
}
.equipment-section {
  background: rgba(50,36,58,0.21);
  border-radius: 8px;
  padding: 7px 7px 10px 7px;
  margin-bottom: 0;
  box-sizing: border-box;
}
.equipment-section h3 {
  margin: 0 0 7px 0;
  color: #a88e6c;
  font-size: 1.13rem;
  text-align: left;
}
.equipment-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.equipment-label {
  min-width: 64px;
  color: #b99476;
  font-size: 1.08rem;
}
.equipment-item {
  flex: 1;
  min-height: 48px;
  min-width: 48px;
  background: #222025;
  border: 2px solid #3a2622;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 3px 8px;
  box-sizing: border-box;
  position: relative;
}
.equipment-item img {
  width: 38px;
  height: 38px;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px #000a);
}
.equipment-empty {
  color: #4a3a32;
  font-size: 0.99rem;
  font-style: italic;
}

.equipment-item .unequip-btn {
  margin-left: 7px;
  background: #392b21;
  border: 1px solid #ad8a5c;
  color: #e9e6d7;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.equipment-item .unequip-btn:hover {
  background: #ad8a5c;
  color: #261a13;
  border-color: #c7b392;
}

.suggestions-list {
  position: absolute;
  background: #231c24;
  border: 1px solid #ad8a5c;
  border-radius: 6px;
  box-shadow: 0 4px 12px #000b;
  max-height: 200px;
  overflow-y: auto;
  width: 220px;
  z-index: 100;
}
.suggestion-item {
  padding: 7px 16px;
  cursor: pointer;
  color: #e9e6d7;
}
.suggestion-item:hover {
  background: #ad8a5c;
  color: #261a13;
}


@font-face {
font-family: "Mason";  
src: url("../fonts/Mason.ttf") format("truetype"); 
font-style: normal; 
font-weight: normal;
}

* {
  font-family: "Mason";
}