/* RUST store — monochrome glass theme matched to reeded-glass bg */

:root {
  --bg: #050505;
  --accent: #f2f2f2;
  --accent-soft: rgba(255, 255, 255, 0.78);
  --accent-glow: rgba(255, 255, 255, 0.28);
  --text: #f5f5f5;
  --text-dim: rgba(245, 245, 245, 0.62);
  --panel: rgba(12, 12, 12, 0.55);
  --panel-border: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.06);
  --card-hover: rgba(255, 255, 255, 0.12);
  --nav: rgba(8, 8, 8, 0.72);
  --btn: #efefef;
  --btn-text: #0a0a0a;
  --width: 1110px;
  --sidebar: 290px;
  --radius: 0px;
  --ease-ios: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../assets/bg.png");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 20% 40%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 255, 255, 0.05), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 0;
}

.page-glow {
  position: fixed;
  width: 42vmin;
  height: 42vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  filter: blur(40px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.8s var(--ease-ios), top 0.8s var(--ease-ios);
  left: 50%;
  top: 20%;
}

/* —— Side info cards (secondary facts in margins) —— */
.side-info {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: max(128px, calc((100vw - var(--width)) / 2 - 36px));
  max-width: 168px;
  z-index: 1;
  pointer-events: none;
  gap: 10px;
  flex-direction: column;
}

.side-info--left {
  left: 18px;
}

.side-info--right {
  right: 18px;
}

.side-card {
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  padding: 12px 12px 11px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  animation: sideCardIn 0.7s var(--ease-spring) both;
}

.side-info--left .side-card:nth-child(1) { animation-delay: 0.15s; }
.side-info--left .side-card:nth-child(2) { animation-delay: 0.28s; }
.side-info--left .side-card:nth-child(3) { animation-delay: 0.4s; }
.side-info--right .side-card:nth-child(1) { animation-delay: 0.22s; }
.side-info--right .side-card:nth-child(2) { animation-delay: 0.34s; }
.side-info--right .side-card:nth-child(3) { animation-delay: 0.46s; }

.side-card--soft {
  opacity: 0.92;
}

.side-card__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.side-card__value {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}

.side-card__text {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes sideCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (min-width: 1200px) {
  .side-info {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-card {
    animation: none;
  }
}

.wrapper {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.container {
  width: min(100% - 24px, var(--width));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  padding-top: 18px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-banner {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.28));
  animation: bannerIn 0.9s var(--ease-spring) both;
}

@keyframes bannerIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.nav-link.lang {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

/* —— Nav —— */
.navbar {
  margin-top: 10px;
  position: relative;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0;
  background: var(--nav);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  position: relative;
  z-index: 100;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 12px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.35s var(--ease-ios), transform 0.35s var(--ease-spring);
}

.nav-link i {
  font-size: 13px;
  opacity: 0.9;
}

.nav-link .caret {
  font-size: 10px;
  opacity: 0.7;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-spring);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link:active {
  transform: scale(0.96);
}

.has-dd {
  position: relative;
  z-index: 110;
}

.dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgba(20, 18, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.35s var(--ease-ios), transform 0.45s var(--ease-spring), visibility 0.35s;
  z-index: 200;
}

.has-dd:hover .dropdown,
.has-dd:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dropdown a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  transition: background 0.25s var(--ease-ios), color 0.25s var(--ease-ios), padding-left 0.35s var(--ease-spring);
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding-left: 18px;
}

/* —— Layout —— */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  padding: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.panel-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

/* Monitor */
.monitor-name {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.online-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6a6a6a, #f0f0f0, #9a9a9a);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 1.1s var(--ease-ios);
}

.bar-fill.is-on {
  width: var(--pct);
}

.online-count {
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
}

.btn-connect,
.btn-more,
.spring-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-ios), background 0.3s var(--ease-ios), filter 0.3s;
}

.btn-connect {
  background: var(--btn);
  color: var(--btn-text);
  font-size: 16px;
  padding: 9px 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.btn-connect:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-connect:active {
  transform: translateY(0) scale(0.97);
}

.ip-copy {
  margin-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.3s var(--ease-ios);
}

.ip-copy:hover {
  color: var(--accent);
}

/* Top players */
.top-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 10px;
}

.top-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 11px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--panel-border);
}

.top-table th:last-child,
.top-table td:last-child {
  text-align: right;
}

.top-table td {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.top-table a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s, letter-spacing 0.35s var(--ease-spring);
}

.top-table a:hover {
  color: #ffffff;
  letter-spacing: 0.02em;
}

.btn-more {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 13px;
  padding: 8px 10px;
}

.btn-more:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Commands */
.commands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.commands code {
  color: var(--accent);
  font-family: inherit;
  font-weight: 600;
  margin-right: 4px;
}

.commands span {
  color: var(--text-dim);
}

/* Shop */
.shop {
  min-height: 480px;
}

.shop-notice {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}

.shop-notice code {
  color: var(--accent);
  font-family: inherit;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cat-btn {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.35s var(--ease-ios), color 0.35s var(--ease-ios), transform 0.4s var(--ease-spring), box-shadow 0.35s;
}

.cat-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.cat-btn.is-active {
  background: rgba(255, 255, 255, 0.88);
  color: #0a0a0a;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.cat-btn:active {
  transform: scale(0.96);
}

.search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 13px;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 39px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 0 12px 0 36px;
  outline: none;
  transition: background 0.35s var(--ease-ios), border-color 0.35s, box-shadow 0.45s var(--ease-ios);
}

.search-wrap input::placeholder {
  color: rgba(242, 239, 229, 0.45);
}

.search-wrap input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Products grid */
.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.product-card {
  position: relative;
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  filter: blur(8px);
  will-change: transform, opacity, filter;
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.7s var(--ease-spring),
    filter 0.65s var(--ease-ios),
    background 0.35s var(--ease-ios),
    border-color 0.35s,
    box-shadow 0.45s var(--ease-ios);
}

.product-card.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  will-change: auto;
}

.product-card.is-in:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.product-card.is-in:active {
  transform: translateY(-1px) scale(0.99);
}

.product-card img {
  position: absolute;
  inset: 12% 10% 18% 10%;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 70%;
  margin: auto;
  object-fit: contain;
  transition: transform 0.55s var(--ease-spring), filter 0.4s;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.product-card:hover img {
  transform: scale(1.08) translateY(-2px);
}

.product-price {
  position: absolute;
  top: 6px;
  left: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  z-index: 1;
}

.product-qty {
  position: absolute;
  right: 7px;
  bottom: 5px;
  font-size: 11px;
  color: var(--text-dim);
  z-index: 1;
}

.product-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 6px 6px;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-ios), transform 0.45s var(--ease-spring);
  z-index: 1;
}

.product-card:hover .product-name {
  opacity: 1;
  transform: translateY(0);
}

.product-plus {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s var(--ease-ios), transform 0.45s var(--ease-spring);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
  z-index: 2;
  pointer-events: none;
}

.product-card:hover .product-plus {
  opacity: 1;
  transform: scale(1);
}

.empty-state {
  text-align: center;
  padding: 48px 12px;
  color: var(--text-dim);
  font-size: 16px;
}

/* Footer */
.site-footer {
  margin-top: 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.footer-meta a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-dim);
}

/* Reveal (React Bits–style scroll / mount) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-spring),
    filter var(--dur) var(--ease-ios);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px) scale(0.96);
  background: rgba(20, 18, 18, 0.95);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 16px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: opacity 0.4s var(--ease-ios), transform 0.5s var(--ease-spring);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.35s var(--ease-ios);
}

.modal-card {
  position: relative;
  width: min(100%, 380px);
  background: rgba(22, 20, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 255, 255, 0.1);
  animation: modalIn 0.5s var(--ease-spring);
  z-index: 1;
}

/* —— iOS sheet (rules / news / stats) —— */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: end center;
  padding: 0;
}

.sheet[hidden] {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-ios);
}

.sheet-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(86vh, 720px);
  margin: 0 auto;
  background: rgba(22, 20, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-spring);
  overflow: hidden;
}

.sheet.is-open .sheet-backdrop {
  opacity: 1;
}

.sheet.is-open .sheet-card {
  transform: translateY(0);
}

.sheet.is-closing .sheet-backdrop {
  opacity: 0;
}

.sheet.is-closing .sheet-card {
  transform: translateY(110%);
  transition: transform 0.38s var(--ease-ios);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  margin: 10px auto 0;
  flex-shrink: 0;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--panel-border);
}

.sheet-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sheet-close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}

.sheet-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.sheet-body {
  padding: 16px 18px 28px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.5;
}

.sheet-body h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 17px;
}

.sheet-sub {
  margin: 18px 0 8px !important;
  text-transform: uppercase;
  font-size: 13px !important;
  letter-spacing: 0.04em;
  color: var(--accent) !important;
}

.sheet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.sheet-list.tight {
  gap: 4px;
}

.sheet-note {
  margin: 16px 0 0;
  font-size: 13px;
  opacity: 0.7;
}

.news-card {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-card:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.stat span {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat strong {
  font-size: 20px;
  color: #fff;
  font-weight: 600;
}

.brand-tag {
  color: var(--text-dim);
  opacity: 0.8;
}

.btn-more {
  width: 100%;
}

@media (min-width: 720px) {
  .sheet {
    place-items: center;
    padding: 24px;
  }

  .sheet-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    transform: translateY(24px) scale(0.94);
    opacity: 0;
    filter: blur(8px);
    transition:
      transform 0.5s var(--ease-spring),
      opacity 0.45s var(--ease-ios),
      filter 0.45s var(--ease-ios);
  }

  .sheet.is-open .sheet-card {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }

  .sheet.is-closing .sheet-card {
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    filter: blur(6px);
    transition:
      transform 0.35s var(--ease-ios),
      opacity 0.3s var(--ease-ios),
      filter 0.3s var(--ease-ios);
  }

  .sheet-handle {
    display: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s, transform 0.35s var(--ease-spring);
}

.modal-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.modal-card img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 8px auto 16px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  animation: floatItem 3s var(--ease-ios) infinite alternate;
}

@keyframes floatItem {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.modal-price {
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.modal-body h3 {
  margin: 6px 0 16px;
  font-size: 22px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .products {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 0;
  }
}

@media (max-width: 640px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-link span {
    display: none;
  }

  .nav-link.steam span,
  .nav-link.lang {
    display: inline;
  }

  .nav-link.steam span {
    display: inline;
  }
}

@media (max-width: 420px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .product-card {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
