.nav {
  gap: clamp(10px, 1.6vw, 26px);
}
.main-tabs {
  display: flex;
  gap: 5px;
  white-space: nowrap;
}
.main-tabs button {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
  color: #c4bccd;
}
.main-tabs button[aria-pressed='true'] {
  background: #362646;
  color: #f5e7ff;
}
.spin-mark {
  color: #ffcf68;
  text-shadow: 0 0 9px #ffb945;
}
.gem-wallet,
.trust-strip,
.spin-heading,
.daily-card,
.value-status {
  display: flex;
  align-items: center;
}
.gem-wallet {
  gap: 6px;
  white-space: nowrap;
  color: #bceaff;
}
.gem-wallet .icon {
  color: #7fdaff;
}
.free-badge,
.stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 4px 8px;
  background: #183d36;
  color: #b6ffcd;
  border: 1px solid #68b99f88;
}
.trust-strip {
  gap: 7px;
  flex-wrap: wrap;
}
.trust-strip span,
.value-status {
  font-size: 12px;
  font-weight: 650;
  color: #ecdefc;
}
.trust-strip span {
  background: #281e37a8;
  border: 1px solid #7a5d8a;
  border-radius: 6px;
  padding: 6px 9px;
}
.value-status {
  color: #b8afc5;
  margin: -8px 0 10px;
  gap: 6px;
}
.value-status:before {
  content: '';
  height: 7px;
  width: 7px;
  border-radius: 100%;
  background: #d8ab56;
}
.value-status.live:before {
  background: #83dba0;
}
.stock-tag {
  position: absolute;
  right: 9px;
  top: 10px;
  z-index: 1;
  font-size: 8px;
  padding: 3px 6px;
}
.sold-out .stock-tag {
  background: #29282f;
  border-color: #655f6c;
  color: #d6d1da;
}
.sold-out .stage img {
  filter: saturate(0.32) brightness(0.7);
}
.free-price {
  color: #a6e6b3;
  font-size: 14px;
  font-weight: 800;
}
.trade-value {
  font-size: 12px;
  color: #dfd3ed;
}
.claim-info,
.collection-list p,
#spin-panel p,
.roll-content > p {
  color: #c8bdcf;
}
.collection-list {
  margin-top: 20px;
}
.collection-list summary {
  cursor: pointer;
  font-weight: 700;
}
.line-item + .wide,
.order-lines + .wide {
  margin-top: 14px;
}
.line-item .text-button:last-child {
  margin-left: auto;
}
#spin-panel {
  padding: 29px 0;
}
.spin-heading h1 {
  font-size: clamp(42px, 5vw, 70px);
  margin: 8px 0;
}
.spin-heading p,
.daily-card p,
.crate-card p {
  margin: 4px 0;
}
.daily-card {
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(ellipse at 85% 45%, #70482c, transparent 48%), linear-gradient(110deg, #34243f, #372449);
  border: 1px solid #8c694d;
  border-radius: 15px;
  padding: 22px 26px;
  margin: 20px 0;
}
.daily-card h2 {
  margin: 8px 0 0;
}
.daily-card .primary {
  flex: none;
}
.crate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 14px;
}
.crate-card {
  background: #211c29;
  border: 1px solid color-mix(in srgb, var(--crate), #302c37 65%);
  border-radius: 12px;
  overflow: hidden;
}
.crate-card > img {
  width: 100%;
  display: block;
}
.crate-card > div {
  padding: 13px;
}
.crate-card h3 {
  font-size: 17px;
  margin: 0;
}
.crate-card p {
  font-size: 12px;
}
.crate-card button {
  margin-top: 12px;
  width: 100%;
}
.crate-card .icon {
  width: 17px;
}
.spin-dialog {
  width: min(570px, calc(100% - 26px));
}
.roll-content,
.win {
  padding: 18px;
}
.loot-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-height: 42dvh;
  overflow-y: auto;
  gap: 7px;
  margin-bottom: 16px;
}
.loot-list > div,
.reel-cell {
  background: radial-gradient(ellipse at bottom, #4c3564, #28232f);
  border: 1px solid #463a54;
  border-radius: 7px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 5px;
}
.loot-list img {
  height: 51px;
  width: 100%;
  object-fit: contain;
}
.loot-list small,
.win p {
  color: #dac2ea;
}
.reel-window {
  position: relative;
  overflow: hidden;
  border: 1px solid #806398;
  border-radius: 9px;
  padding: 5px 0;
}
.reel-window:after {
  position: absolute;
  content: '';
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffd36d;
  box-shadow: 0 0 6px gold;
}
.reel-track {
  position: relative;
  width: max-content;
  display: flex;
  gap: 6px;
}
.reel-cell {
  width: 104px;
  height: 116px;
}
.reel-cell img {
  width: 90px;
  height: 74px;
  object-fit: contain;
}
.win {
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #583468, transparent 64%);
}
.win > img {
  display: block;
  width: 80%;
  height: 150px;
  object-fit: contain;
  margin: auto;
}
.win h2 {
  margin: 3px;
}
.win p {
  margin: 3px 0 16px;
}
#reset-gems {
  margin-top: 15px;
}
@media (max-width: 1050px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    gap: 8px 14px;
    padding: 10px 0;
  }
  .nav .search-wrap {
    flex: 1;
  }
  .main-tabs {
    order: 4;
    flex-basis: 100%;
  }
  .main-tabs button {
    padding: 5px 10px;
  }
  .nav-actions {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  .nav .search-wrap {
    flex-basis: 100%;
    order: 3;
  }
  .nav-actions {
    gap: 6px;
  }
  .gem-wallet {
    font-size: 11px;
    gap: 3px;
  }
  .gem-wallet .icon {
    width: 14px;
  }
  .nav {
    gap: 6px;
  }
  .main-tabs {
    justify-content: center;
  }
  .main-tabs button {
    flex: 1;
  }
  .hero-copy {
    max-width: 72%;
  }
  .trust-strip {
    max-width: 150px;
    gap: 4px;
  }
  .trust-strip span {
    font-size: 9px;
    padding: 3px 6px;
  }
  .value-status {
    grid-area: 2/1/3/-1;
    margin: 0;
  }
  .pills {
    grid-row: 3;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pills .icon {
    display: none;
  }
  .pill {
    font-size: 11px;
  }
  .stock-tag {
    font-size: 7px;
    top: 7px;
    right: 5px;
    padding: 3px;
  }
  .rarity {
    font-size: 7px;
    left: 5px;
  }
  .item-meta {
    align-items: start;
    flex-wrap: wrap;
  }
  .free-price {
    font-size: 12px;
  }
  .trade-value {
    font-size: 10px;
  }
  .crate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .crate-card > div {
    padding: 9px;
  }
  .crate-card h3 {
    font-size: 15px;
  }
  .daily-card {
    align-items: start;
    flex-direction: column;
    padding: 17px;
  }
  .daily-card h2 {
    font-size: 20px;
  }
  .hero-copy p {
    max-width: 185px;
  }
  .spin-heading {
    margin-top: 5px;
  }
}
@media (max-width: 375px) {
  .nav .brand > span {
    font-size: 23px;
  }
  .nav .brand img {
    width: 23px;
  }
  .nav-actions .currency-button,
  .nav-actions .cart-button {
    font-size: 11px;
    padding: 0 6px;
  }
  .nav-actions .flag {
    width: 17px;
  }
  .pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stock-tag {
    top: auto;
    bottom: 3px;
  }
  .main-tabs {
    margin-top: 1px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 3px;
  }
  .nav .brand > span {
    font-size: 26px;
  }
  .nav .brand img {
    width: 26px;
  }
  .main-tabs,
  .nav > .search-wrap {
    grid-column: 1/-1;
  }
  .nav-actions {
    justify-self: end;
    gap: 5px;
  }
  .nav-actions .currency-button,
  .nav-actions .cart-button {
    padding: 0 7px;
  }
  #item-count {
    white-space: nowrap;
  }
  .shop-heading h2 {
    font-size: 22px;
  }
}
@media (max-width: 375px) {
  .nav .brand > span {
    font-size: 23px;
  }
  .cart-button > span {
    display: none;
  }
  .shop-symbol {
    display: none;
  }
}
