body {
  background-color: #121212;
  color: #fff;
  font-family: sans-serif;
  text-align: center;
  padding: 20px;
}

.shop-container {
  max-width: 400px;
  margin: auto;
}

.shop-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center;
}

.shop-category {
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease;
}

.shop-category img {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.shop-category:hover {
  transform: scale(1.03);
}
.custom-back-button {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 16px;
    color: #fff;
    background-color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background 0.2s;
}

.custom-back-button:hover {
    background-color: #555;
}



.category-card {
  background: #1c1c1c;
  border-radius: 10px;
  padding: 12px;

  cursor: pointer;
  border: 1px solid #333;
  text-align: center;
  transition: 0.2s;
}

.category-card:hover {
  transform: scale(1.03);
  border-color: #4da3ff;
}

.category-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 6px;
}

.category-info h4 {
  margin: 4px 0;
  font-size: 16px;
}

.category-info p {
  font-size: 12px;
  color: #aaa;
}

.shop-item {
  background: #222;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid #444;
}

.buy-btn {
  background: #4da3ff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}
.order-btn {
    width: 28px;
    height: 28px;
    font-size: 18px;
    background: #4da3ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
/* Центрируем модалку */
#order-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* скрыта по умолчанию */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}
.modal-content textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: white;
  border: none;
  resize: vertical;
  margin: 10px 0;
}

#order-form.visible {
  display: flex !important; /* 💥 добавляем !important */
}

#order-form .modal-content {
  background-color: #1c1c1c;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

/* Крестик закрытия */
#order-form .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

/* Поле ввода ника */
#order-nickname {
  width: 100%;
  max-width: 340px; /* 💡 ограничение ширины */
  margin: 12px auto 0 auto; /* 💡 выравнивание по центру */
  padding: 10px;
  border-radius: 6px;
  background-color: #2a2a2a;
  border: none;
  color: #fff;
  font-size: 16px;
  display: block;
}
.shop-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2b7a78;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.shop-toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* === Fireworks overlay (одна версия) === */
.fw-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: none;
  z-index: 9999;
}
.fw-overlay.show{ display:block; animation: fwFadeOut 2.2s ease 1.8s forwards; }
@keyframes fwFadeOut{ to{ opacity:0; } }

/* === Weekly Summary карточки (как были) === */
.ws-wrap { margin-top: 6px; }
.ws-heading{
  font-weight: 800; font-size: 16px; margin: 0 0 10px 0; letter-spacing: .2px;
  background: linear-gradient(90deg,#ffe08a,#9ae6b4,#93c5fd,#fda4af);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0; transform: translateY(-6px); transition: opacity .45s ease, transform .45s ease;
}
.ws-heading.show{ opacity:1; transform:none; }
.weekly-stats{ display:grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ws-card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s ease, box-shadow .3s ease;
}
.ws-card:hover{ box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.ws-card.show{ transform:none; opacity:1; }
.ws-top{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.ws-icon{ font-size:20px; line-height:1; }
.ws-chip{ margin-left:auto; font-weight:700; font-size:12px; padding:3px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); }
.ws-value{ font-size:28px; font-weight:800; line-height:1.1; letter-spacing:.3px; }
.ws-label{ margin-top:2px; font-size:13px; opacity:.9; }

/* === Fallback моно-строки === */
#weekly-summary-content .mono{ font-family: ui-monospace, Menlo, Consolas, monospace; font-size:14px; line-height:1.45; white-space:pre-wrap; }
#weekly-summary-content .line{ opacity:0; transform:translateY(8px); transition:opacity .4s ease, transform .4s ease; }
#weekly-summary-content .line.show{ opacity:1; transform:none; }

/* === ПРИЗЫ ЗА ИТОГИ НЕДЕЛИ — «как раньше» (только CSS) === */
#week .shop-info-box details{
  background: radial-gradient(120% 120% at 50% -10%, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  margin: 10px 0;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
#week .shop-info-box details:hover{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

#week .shop-info-box details > summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 700;
}
#week .shop-info-box details > summary::-webkit-details-marker{ display: none; }
#week .shop-info-box details > summary::after{
  content: "▾";
  margin-left: auto;
  transform: rotate(0deg);
  transition: transform .35s ease, opacity .2s ease;
  opacity: .9;
}
#week .shop-info-box details[open] > summary::after{ transform: rotate(-180deg); }

/* Плавное раскрытие (контент + внутренняя панель) */
#week .shop-info-box details > *:not(summary){
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height .42s ease, opacity .35s ease, transform .35s ease, padding .3s ease, border-top-color .3s ease;
  padding: 0 16px;
  border-top: 1px solid rgba(255,255,255,0);
}
#week .shop-info-box details[open] > *:not(summary){
  max-height: 600px;     /* запас под содержимое */
  opacity: 1;
  transform: none;
  padding: 10px 16px 14px 16px;
  border-top-color: rgba(255,255,255,.08);
}

/* Список наград — кастомные маркеры с анимацией (только внутри <details>) */
#week .shop-info-box details ul{
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
}

#week .shop-info-box details li{
  position: relative;
  padding-left: 18px;      /* место под точку */
  margin: 6px 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s ease, transform .28s ease;
}

/* сама «точка» */
#week .shop-info-box details li::before{
  content: "";
  position: absolute;
  left: 6px;               /* ближе к тексту */
  top: 0.9em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 2px rgba(255,255,255,.14) inset;
  transform: scale(.4);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}

/* при раскрытии панели */
#week .shop-info-box details[open] li{ opacity: 1; transform: none; }
#week .shop-info-box details[open] li::before{ transform: scale(1); opacity: 1; }

/* ступенчатые задержки (как раньше) */
#week .shop-info-box details[open] li:nth-child(1){ transition-delay: .05s; }
#week .shop-info-box details[open] li:nth-child(2){ transition-delay: .10s; }
#week .shop-info-box details[open] li:nth-child(3){ transition-delay: .15s; }
#week .shop-info-box details[open] li:nth-child(4){ transition-delay: .20s; }
#week .shop-info-box details[open] li:nth-child(5){ transition-delay: .25s; }
#week .shop-info-box details[open] li:nth-child(1)::before{ transition-delay: .05s; }
#week .shop-info-box details[open] li:nth-child(2)::before{ transition-delay: .10s; }
#week .shop-info-box details[open] li:nth-child(3)::before{ transition-delay: .15s; }
#week .shop-info-box details[open] li:nth-child(4)::before{ transition-delay: .20s; }
#week .shop-info-box details[open] li:nth-child(5)::before{ transition-delay: .25s; }


/* Кнопки */
#order-form .modal-content button {
  margin-top: 15px;
  margin-right: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

#order-form .modal-content button:first-of-type {
  background-color: #4caf50;
  color: white;
}

#order-form .modal-content button:last-of-type {
  background-color: #888;
  color: black;
}

.buy-btn.order-btn {
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4da3ff;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}
#top-request-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* скрыта по умолчанию */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#top-request-form.visible {
  display: flex !important;
}


#top-request-form .modal-content {
  background-color: #1c1c1c;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
}

#top-request-form .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

#top-request-form input,
#top-request-form textarea {
  width: 100%;
  max-width: 340px; /* ✅ ограничиваем, чтобы не растягивалось */
  display: block;
  margin: 12px auto 0 auto; /* ✅ центрируем */
  padding: 10px;
  border-radius: 6px;
  background-color: #2a2a2a;
  border: none;
  color: #fff;
  font-size: 16px;
}


#top-request-form button {
  margin-top: 15px;
  margin-right: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

#top-request-form button:first-of-type {
  background-color: #4caf50;
  color: white;
}

#top-request-form button:last-of-type {
  background-color: #888;
  color: black;
}
.menu-button {
  background-color: #2a2a2a;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-button:hover {
  background-color: #444;
}

