/* ================================================
   CUSTOM.CSS — ДОПОЛНИТЕЛЬНЫЕ СТИЛИ IGROMAX
   ================================================ */

/* Универсальный стиль для всех SLOT-иконок
   Применяется к любому классу, начинающемуся с slot-icon-
   Например:
   <span class="slot-icon-money"></span>
   <span class="slot-icon-777"></span>
   <span class="slot-icon-repair"></span>
*/

[class^="slot-icon-"],
[class*=" slot-icon-"] {
    display: inline-block;
    width: 64px;               /* ← меняешь это число — меняются все иконки */
    height: 64px;
    background-size: contain;  /* масштабируем изображение */
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;                 /* убираем любые внешние отступы */
    padding: 0;
    vertical-align: middle;
}

/* Если нужны большие иконки — просто включи через класс:
   <span class="slot-icon-money slot-lg"></span>
*/
.slot-lg {
    width: 96px !important;
    height: 96px !important;
}

/* Средние (по умолчанию 64px, можно менять)
   <span class="slot-icon-repair slot-md"></span>
*/
.slot-md {
    width: 64px !important;
    height: 64px !important;
}

/* Маленькие иконки
   <span class="slot-icon-eq slot-sm"></span>
*/
.slot-sm {
    width: 32px !important;
    height: 32px !important;
}

/* Универсальный стиль для иконок Bootstrap, чтобы работали как slot-icon */
.icon-sale,
[class^="icon-"],
[class*=" icon-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 48px; /* размер самой иконки внутри блока */
}

/* === NEWS ACCORDION === */

#news-archive .accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

#news-archive .accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 1.25rem;
  background-color: #f8f9fa;
}

#news-archive .accordion-button:not(.collapsed) {
  background-color: #f1f3f5;
  box-shadow: none;
}

#news-archive .accordion-button:focus {
  box-shadow: none;
}

#news-archive .accordion-body {
  padding: 0.75rem 1.25rem;
}

/* === NEWS LIST === */

#news-archive .news-list {
  margin: 0;
  padding: 0;
}

#news-archive .news-item {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

#news-archive .news-item:last-child {
  border-bottom: none;
}

#news-archive .news-link {
  color: #212529;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
}

#news-archive .news-link:hover {
  text-decoration: underline;
}

#news-archive .news-date {
  white-space: nowrap;
  font-size: 0.85rem;
  color: #6c757d;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  flex-shrink: 0;
}

/* === MOBILE FIXES === */

@media (max-width: 575px) {
  #news-archive .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  #news-archive .news-date {
    margin-top: 0.35rem;
  }
}

/* Float-image layout for article text */
.igro-float{
  float: left;
  width: min(42%, 420px);
  margin: 0.25rem 1.25rem 1rem 0;
}

.igro-float img{
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile: image becomes full width */
@media (max-width: 768px){
  .igro-float{
    float: none;
    width: 100%;
    margin: 0 0 1rem 0;
  }
}

.img-scale {
    max-height: 500px;
    transform: scale(0.6);
    transform-origin: center;
}


/* Mega menu */
.navbar .dropdown.position-static {
  position: static;
}

.navbar .dropdown-menu.w-100 {
  left: 0;
  right: 0;
  border-radius: 0;
}

.dropdown-menu h6 {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.dropdown-menu .dropdown-item {
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.dropdown-menu .dropdown-item:hover {
  background: transparent;
  text-decoration: underline;
}

/* Game matrix (versions table) */
.game-matrix-wrap{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.game-matrix{
  margin: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.game-matrix thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: #0f1115;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.game-matrix td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  border-right: 1px solid rgba(0,0,0,.06);
  vertical-align: middle;
  background: #fff;
}

.game-matrix tbody tr:hover td{
  background: rgba(210,74,69,.06);
}

.game-matrix th,
.game-matrix td{
  text-align: center;
}

.game-matrix .col-num{
  width: 64px;
  text-align: center;
}

.game-matrix .col-title{
  min-width: 220px;
  text-align: left;
  font-weight: 600;
}

.game-matrix .sticky-1,
.game-matrix .sticky-2{
  position: sticky;
  left: 0;
  z-index: 4;
  background: inherit;
}

.game-matrix .sticky-2{
  left: 64px; /* ширина col-num */
  z-index: 4;
}

.game-matrix thead .sticky-1,
.game-matrix thead .sticky-2{
  background: #0f1115;
  z-index: 6;
}

.game-matrix .dot{
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0f1115;
  box-shadow: 0 0 0 3px rgba(210,74,69,.18);
}

.game-matrix .tfoot td{
  font-weight: 700;
  background: #fafafa;
}

.game-matrix-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.game-matrix-scroll::-webkit-scrollbar{
  height: 10px;
}
.game-matrix-scroll::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.20);
  border-radius: 999px;
}

/* show desktop table only on lg+ */
@media (max-width: 991.98px){
  .game-matrix-wrap{ display:none; }
  .game-matrix-mobile{ display:block; }
}
@media (min-width: 992px){
  .game-matrix-mobile{ display:none; }
}

/* mobile UI */
.game-matrix-mobile{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.gmm-controls{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.gmm-controls .form-select{
  max-width: 220px;
}

.gmm-stats{
  margin-left: auto;
  font-weight: 600;
}

.gmm-list{
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gmm-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
}

.gmm-title{
  font-weight: 600;
  line-height: 1.2;
}

.gmm-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.gmm-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.20);
}

.gmm-dot.on{
  background: #0f1115;
  box-shadow: 0 0 0 3px rgba(210,74,69,.18);
}

.gmm-muted{
  color: rgba(0,0,0,.60);
  font-weight: 500;
}

.ult10-wrap{
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.ult10-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }

.ult10{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
  margin:0;
}

.ult10 thead th{
  position:sticky; top:0; z-index:3;
  background:#0f1115; color:#fff;
  padding:10px 10px;
  white-space:nowrap;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.ult10 td{
  padding:9px 10px;
  border-bottom:1px solid rgba(0,0,0,.08);
  border-right:1px solid rgba(0,0,0,.06);
  text-align:center;
}

.ult10 .col-game{ text-align:left; font-weight:600; min-width:240px; }
.ult10 .dot{
  display:inline-block; width:8px; height:8px;
  border-radius:999px; background:#0f1115;
  box-shadow:0 0 0 3px rgba(210,74,69,.18);
}
.ult10 tbody tr:hover td{ background:rgba(210,74,69,.06); }

/* mobile alt view */
@media (max-width: 991.98px){
  .ult10-wrap{ display:none; }
  .ult10-mobile{ display:block; }
}
@media (min-width: 992px){
  .ult10-mobile{ display:none; }
}

.ult10-mobile{
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  padding:16px;
  background:#fff;
}

.ult10-m-controls{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  margin-bottom:12px;
}
.ult10-m-controls .form-select{ max-width:220px; }

.ult10-m-stats{ margin-left:auto; font-weight:700; }

.ult10-m-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.ult10-m-item{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:12px; border:1px solid rgba(0,0,0,.10); border-radius:14px;
}
.ult10-m-title{ font-weight:600; line-height:1.2; }
.ult10-m-badge{ display:inline-flex; align-items:center; gap:8px; font-weight:600; white-space:nowrap; }
.ult10-m-dot{ width:10px; height:10px; border-radius:999px; background:rgba(0,0,0,.20); }
.ult10-m-dot.on{ background:#0f1115; box-shadow:0 0 0 3px rgba(210,74,69,.18); }
.ult10-muted{ color:rgba(0,0,0,.60); font-weight:500; }
