/* VCC_HOME_REDESIGN_V1 */

body[data-page="home"]{
  min-height:100vh;
  background:
    linear-gradient(
      90deg,
      rgba(6,10,16,.58) 0%,
      rgba(6,10,16,.28) 45%,
      rgba(6,10,16,.48) 100%
    ),
    url("../images/main-page-bg.png") center center / cover no-repeat fixed;
}

/* Чуть компактнее общий контейнер */
body[data-page="home"] .shell{
  width:min(1240px,calc(100% - 48px));
  min-height:100vh;
  padding:28px 0 38px;
  display:flex;
  flex-direction:column;
}

/* Верхняя панель */
body[data-page="home"] .topbar{
  margin-bottom:0;
  position:relative;
  z-index:5;
}

/* Логотип слева не меняем */
body[data-page="home"] .brand{
  position:relative;
  z-index:10;
}

/* Админка чуть мягче */
body[data-page="home"] .topbar .ghost-btn{
  background:rgba(18,25,35,.62);
  border-color:rgba(115,132,155,.28);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 30px rgba(0,0,0,.18);
}

/* Центральная зона */
body[data-page="home"] .hero{
  flex:1;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:70px 0 40px;
}

/* Две карточки */
body[data-page="home"] .mode-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,330px));
  gap:32px;
  justify-content:center;
  align-items:start;
  width:100%;
}

/* Обёртка карточки + подпись */
body[data-page="home"] .mode-item{
  display:flex;
  flex-direction:column;
  width:100%;
}

/* Основные большие кнопки */
body[data-page="home"] .mode-card{
  position:relative;
  width:100%;
  aspect-ratio:auto;
  min-height:374px;

  padding:40px 36px 34px;

  border-radius:24px;
  border:1px solid rgba(154,170,191,.38);

  background:
    linear-gradient(
      180deg,
      rgba(29,38,50,.68) 0%,
      rgba(18,25,35,.70) 100%
    );

  backdrop-filter:blur(11px);
  -webkit-backdrop-filter:blur(11px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 22px 60px rgba(0,0,0,.30);

  display:flex;
  flex-direction:column;
  justify-content:flex-start;

  overflow:hidden;

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

/* Лёгкое внутреннее свечение */
body[data-page="home"] .mode-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background:
    radial-gradient(
      circle at 52% 45%,
      rgba(240,184,75,.10),
      transparent 42%
    );
}

/* Hover */
body[data-page="home"] .mode-card:hover{
  transform:translateY(-4px);
  border-color:rgba(240,184,75,.55);

  background:
    linear-gradient(
      180deg,
      rgba(34,44,58,.75) 0%,
      rgba(20,28,39,.78) 100%
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 28px 70px rgba(0,0,0,.36);
}

/* Круглая иконка сверху */
body[data-page="home"] .mode-card::before{
  content:"";
  position:relative;
  z-index:2;

  width:52px;
  height:52px;
  flex:0 0 52px;

  margin-bottom:62px;

  border-radius:50%;

  border:1px solid rgba(240,184,75,.38);

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(240,184,75,.16),
      rgba(20,27,37,.74) 70%
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 24px rgba(0,0,0,.18);
}

/* Маленькая категория */
body[data-page="home"] .mode-kicker{
  position:relative;
  z-index:2;

  margin:0 0 20px;

  color:#f0bd59;

  font-size:13px;
  line-height:1;
  font-weight:800;

  text-transform:uppercase;
  letter-spacing:.04em;
}

/* Заголовок */
body[data-page="home"] .mode-card h1{
  position:relative;
  z-index:2;

  margin:0;

  font-size:31px;
  line-height:1.12;
  font-weight:760;

  color:#f5f6f8;
  letter-spacing:-.025em;

  max-width:260px;
}

/* Стрелка вниз карточки */
body[data-page="home"] .mode-card h1::after{
  content:"→";
  display:block;

  margin-top:34px;

  color:#f0b84b;
  font-size:27px;
  line-height:1;
  font-weight:300;

  transition:transform .2s ease;
}

body[data-page="home"] .mode-card:hover h1::after{
  transform:translateX(5px);
}

/* Описание под карточкой */
body[data-page="home"] .mode-caption{
  margin:16px 12px 0;

  color:rgba(182,192,204,.70);

  font-size:14px;
  line-height:1.45;
  font-weight:400;
}

/* Мобильная версия */
@media(max-width:800px){

  body[data-page="home"]{
    background-position:center top;
    background-attachment:scroll;
  }

  body[data-page="home"] .hero{
    padding-top:45px;
    align-items:flex-start;
  }

  body[data-page="home"] .mode-grid{
    grid-template-columns:minmax(0,380px);
    gap:28px;
  }

  body[data-page="home"] .mode-card{
    min-height:330px;
  }
}

@media(max-width:520px){

  body[data-page="home"] .shell{
    width:calc(100% - 24px);
  }

  body[data-page="home"] .mode-card{
    padding:30px 26px;
  }

  body[data-page="home"] .mode-card h1{
    font-size:27px;
  }
}

/* VCC_HOME_CARD_ICONS_V1 */

body[data-page="home"] .mode-item:nth-child(1) .mode-card::before{
  background:
    url("../images/icons/single-player.png") center / 34px 34px no-repeat,
    radial-gradient(
      circle at 50% 42%,
      rgba(240,184,75,.16),
      rgba(20,27,37,.74) 70%
    );
}

body[data-page="home"] .mode-item:nth-child(2) .mode-card::before{
  background:
    url("../images/icons/netplay.png") center / 34px 34px no-repeat,
    radial-gradient(
      circle at 50% 42%,
      rgba(240,184,75,.16),
      rgba(20,27,37,.74) 70%
    );
}


/* ==========================================================
   VCC_HOME_LINKS_V1
   Compact top actions + ZHUCH social links
   ========================================================== */

body[data-page="home"] .topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

/* Верхние кнопки */
body[data-page="home"] .home-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin-left:auto;
  flex:0 0 auto;
}

body[data-page="home"] .home-top-btn{
  height:44px;
  min-height:44px;
  box-sizing:border-box;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:0;

  border-radius:12px;

  color:#e7ebf0;
  text-decoration:none;

  font-size:14px;
  line-height:1;
  font-weight:650;

  transition:
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

/* Регламент и Админка строго одинаковые */
body[data-page="home"] .home-top-text{
  width:112px;
  min-width:112px;
}

/* Квадратный VK между ними */
body[data-page="home"] .home-top-vk{
  width:96px;
  min-width:96px;
  flex:0 0 96px;

  border-color:rgba(240,184,75,.28);
}

body[data-page="home"] .home-vk-mark{
  display:block;

  color:#dce4ef;

  font-size:14px;
  line-height:1;
  font-weight:650;

  letter-spacing:0;
}

body[data-page="home"] .home-top-btn:hover{
  transform:translateY(-1px);

  color:#fff;

  border-color:rgba(240,184,75,.50);

  background:
    linear-gradient(
      180deg,
      rgba(37,47,61,.78),
      rgba(21,29,40,.78)
    );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 24px rgba(0,0,0,.22);
}

body[data-page="home"] .home-top-vk:hover .home-vk-mark{
  color:#f0bd59;
}


/* ----------------------------------------------------------
   Нижняя строка ZHUCH
   ---------------------------------------------------------- */

body[data-page="home"] .home-socials{
  width:100%;

  display:flex;
  align-items:center;
  justify-content:flex-end;

  gap:7px;

  margin-top:0;

  color:rgba(175,187,201,.58);

  font-size:12px;
  line-height:1;
}

body[data-page="home"] .home-socials-label{
  margin-right:3px;

  color:rgba(181,192,205,.62);

  font-size:11px;
  line-height:1;
  font-weight:700;

  letter-spacing:.08em;
}

body[data-page="home"] .home-social-link{
  height:30px;

  box-sizing:border-box;

  display:inline-flex;
  align-items:center;

  gap:6px;

  padding:0 10px;

  border:1px solid rgba(112,129,151,.24);
  border-radius:10px;

  background:rgba(15,22,31,.45);

  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);

  color:rgba(205,214,224,.76);

  text-decoration:none;

  font-size:11px;
  line-height:1;
  font-weight:500;

  transition:
    color .18s ease,
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

body[data-page="home"] .home-social-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-width:13px;

  color:#eeb84d;

  font-size:11px;
  line-height:1;
}

body[data-page="home"] .home-social-vk{
  font-size:9px;
  font-weight:900;
  letter-spacing:-.08em;
}

body[data-page="home"] .home-social-link:hover{
  transform:translateY(-1px);

  color:#f3f5f7;

  border-color:rgba(240,184,75,.40);

  background:rgba(24,33,45,.66);
}


/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media(max-width:760px){

  body[data-page="home"] .topbar{
    flex-wrap:wrap;
    gap:12px;
  }

  body[data-page="home"] .home-actions{
    width:100%;
    justify-content:flex-end;
  }

  body[data-page="home"] .home-socials{
    justify-content:center;
    flex-wrap:wrap;

    padding-top:10px;
  }
}

@media(max-width:440px){

  body[data-page="home"] .home-actions{
    gap:6px;
  }

  body[data-page="home"] .home-top-text{
    width:104px;
    min-width:104px;

    font-size:13px;
  }

  body[data-page="home"] .home-top-vk{
    width:92px;
    min-width:92px;
    flex-basis:92px;
  }

  body[data-page="home"] .home-socials-label{
    width:100%;
    text-align:center;
    margin:0 0 2px;
  }
}

/* ==========================================================
   VCC_PARTY_HOME_V1
   Third main mode card. Party icon intentionally not added yet.
   ========================================================== */

@media (min-width:1120px){
  body[data-page="home"] .mode-grid{
    grid-template-columns:repeat(3,minmax(0,330px));
    gap:24px;
  }
}

/* Temporary icon field without an image.
   Later assets/icons/party.png will be placed here. */
body[data-page="home"] .mode-item:nth-child(3) .mode-card::before{
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(240,184,75,.16),
      rgba(20,27,37,.74) 70%
    );
}

/* VCC_HOME_EQUAL_TOP_BUTTONS_V1 */
.home-actions .home-top-btn {
    width: 112px;
    min-width: 112px;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}

/* VCC_HOME_EQUAL_TOP_BUTTONS_V2 */
body[data-page="home"] .home-actions > .home-top-btn {
    flex: 0 0 112px !important;

    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;

    height: 44px;

    padding-left: 0 !important;
    padding-right: 0 !important;

    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    white-space: nowrap;
}

/* VCC_HOME_PARTY_ICON_V1 */
body[data-page="home"] .mode-item:nth-child(3) .mode-card::before{
  background:
    url("../images/icons/party.png") center / 34px 34px no-repeat,
    radial-gradient(
      circle at 50% 42%,
      rgba(240,184,75,.16),
      rgba(20,27,37,.74) 70%
    );
}
