@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  box-sizing: border-box;
}

body {
  background: #0F0735;
  color: white;
  min-height: 100vh;
  font-family: sans-serif;
}

.wrapper {
  margin-top: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== HEADER ===== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  color: white;
  padding: 1rem 2rem;
  font-family: "Segoe UI", sans-serif;
}
.main-header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #00ff99;
}
.main-header .nav-links {
  display: flex;
  gap: 1.5rem;
}
.main-header .nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.2s ease;
}
.main-header .nav-links a:hover {
  color: #00ffcc;
}
.main-header .steam-login {
  display: flex;
  align-items: center;
}
.main-header .steam-login .btn-steam {
  background: #171a21;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s ease;
  border: 1px solid #66c0f4;
}
.main-header .steam-login .btn-steam:hover {
  background: #66c0f4;
  color: #171a21;
}

/* ===== END HEADER ===== */
.app {
  position: relative;
  width: 650px;
  border-radius: 10px;
}
.app .pointer {
  z-index: 1;
  position: absolute;
  left: 50%;
  transform: translate3d(-50%, -25px, 0);
  height: 50px;
  filter: drop-shadow(0 0 20px rgba(247, 0, 255, 0.4));
}
.app .scope {
  overflow: hidden;
}
.app .scope .list {
  position: relative;
  display: inline-flex;
  list-style: none;
  transition: 6s cubic-bezier(0.16, 0.43, 0.03, 1);
}
.app .scope .list .list_item {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 160px;
  opacity: 0.65;
  transition: 0.3s ease;
}
.app .scope .list .list_item.active {
  opacity: 1;
}
.app .scope .list .list_item.active img {
  transform: scale(1.295);
}
.app .scope .list .list_item img {
  width: 80%;
  height: 80%;
  -o-object-fit: contain;
     object-fit: contain;
  transition: 0.3s ease;
}
.app .scope .list .list_item .item-info {
  position: absolute;
  bottom: 4px;
  text-align: center;
  font-size: 13px;
  width: 100%;
  color: white;
  text-shadow: 1px 1px 3px #000;
}
.app .scope .list .list_item .item-info .item-name {
  font-weight: bold;
  margin-bottom: 2px;
}
.app .scope .list .list_item .item-info .item-price {
  font-size: 12px;
  opacity: 0.85;
}
.app .scope .list .list_item.rarity-common {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 4px solid rgb(255, 255, 255);
}
.app .scope .list .list_item.rarity-uncommon {
  background: rgba(144, 202, 249, 0.2);
  border-bottom: 4px solid rgb(144, 202, 249);
}
.app .scope .list .list_item.rarity-rare {
  background: rgba(66, 165, 245, 0.2);
  border-bottom: 4px solid rgb(66, 165, 245);
}
.app .scope .list .list_item.rarity-mythical {
  background: rgba(171, 71, 188, 0.2);
  border-bottom: 4px solid rgb(171, 71, 188);
}
.app .scope .list .list_item.rarity-legendary {
  background: rgba(236, 64, 122, 0.2);
  border-bottom: 4px solid rgb(236, 64, 122);
}
.app .scope .list .list_item.rarity-immortal {
  background: rgba(244, 67, 54, 0.2);
  border-bottom: 4px solid rgb(244, 67, 54);
}
.app .scope .list .list_item.rarity-arcana {
  background: rgba(255, 215, 0, 0.2);
  border-bottom: 4px solid rgb(255, 215, 0);
}
.app .button-group {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.app .button-group button.start {
  position: static;
  transform: none;
}
.app .start {
  padding: 8px 25px;
  background: #f700ff;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  outline: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.app .start:hover {
  opacity: 0.8;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.user-info .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #66c0f4;
}

.balance-block {
  margin-left: 12px;
  font-size: 14px;
  font-weight: normal;
}
.balance-block #add-funds {
  margin-left: 6px;
  padding: 0 8px;
  font-size: 14px;
  cursor: pointer;
  background: #66c0f4;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
}
.balance-block #add-funds:hover {
  background: #409bd5;
}

.case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.list .case-preview {
  cursor: pointer;
  background: #111;
  border-radius: 10px;
  padding: 15px;
  width: 200px;
}

.inv-item {
  background: #2a2e38;
  border: 1px solid #3e3e3e;
  border-radius: 5px;
  padding: 5px;
  width: 80px;
  height: 90px;
  text-align: center;
  font-size: 12px;
  margin: 4px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.inv-item:hover {
  transform: scale(1.05);
}

.inv-item.selected {
  border: 2px solid #f39c12;
}

.inv-item img {
  width: 80px;
  height: auto;
  border-radius: 4px;
}

.inv-item .info {
  display: flex;
  flex-direction: column;
}

.filter-buttons {
  margin: 10px 0;
}

.filter-buttons button {
  margin-right: 8px;
  padding: 5px 10px;
  background: #444;
  color: white;
  border: none;
  cursor: pointer;
}

.filter-buttons button:hover {
  background: #666;
}

.user-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  background: #222;
  padding: 10px;
  border-radius: 8px;
}

.user-block img.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  flex-wrap: wrap;
}

.sort-buttons select {
  padding: 4px 8px;
}

#summary {
  margin-bottom: 10px;
  font-size: 16px;
}

.inventory-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* фиксировано 4 колонки */
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.inv-item-tile {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding: 10px;
  color: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.tile img.item-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.tile-info {
  margin-top: 10px;
}

.tile-info .price {
  color: #f7931a;
  font-weight: bold;
}

.tile-info .name {
  font-size: 0.9em;
  margin: 5px 0;
}

.tile-info button.sell-btn {
  margin-top: 5px;
  padding: 4px 8px;
  background: #f7931a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}/*# sourceMappingURL=style.css.map */