/* =====================================================
   style.css — overrides (loaded AFTER main.css)
   (desktop-first; NO mobile adaptation)
   ===================================================== */
/* =====================================================
   BASE TYPOGRAPHY (GLOBAL) — only safe properties
   ===================================================== */
body{
  font-size: clamp(15px, 3.4vw, 18px);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
/* =====================================================
   FIX: NAVIGATION BG (::after) MUST NOT BLOCK CLICKS
   main.css has [data-section=navigation]::after overlay
   ===================================================== */
[data-section="navigation"]::after{
  pointer-events: none;
}
/* =====================================================
   L2 ITEM — RESPONSIVE CARD
   ===================================================== */
.l2-item{
  display:flex;
  align-items:center;
  gap:12px;
  background:rgba(0,0,0,.7);
  border:1px solid #4a3c28;
  border-radius:5px;
  color:#e0d1b1;
  padding:clamp(10px,2.5vw,16px);
  margin:10px;
}
.l2-item img{
  width:clamp(48px,11vw,96px);
  height:auto;
  flex-shrink:0;
  border:2px solid #25221b;
  border-radius:3px;
}
.l2-item figcaption{min-width:0}
.l2-item figcaption h3{
  margin:0 0 4px 0;
  font-size:clamp(14px,3.8vw,18px);
  line-height:1.3;
  color:#ffb400;
}
.l2-item figcaption p{
  margin:2px 0;
  font-size:clamp(13px,3.4vw,16px);
  line-height:1.55;
  color:#e0d6c4;
}
@media (max-width:480px){
  .l2-item{margin:6px 0;padding:6px 8px}
  .l2-item img{width:40px;border-width:1px}
  .l2-item figcaption h3{font-size:13px}
  .l2-item figcaption p{font-size:12px}
}
/* =====================================================
   TOP (rating) — fix "10." not fitting
   ===================================================== */
.top__num{ flex-basis:28px; }
.top__num .top__content{
  overflow:visible;
  text-overflow:clip;
}
/* =====================================================
   NAVIGATION — DISABLE MOBILE BURGER/DRAWER COMPLETELY
   (site should look like desktop on phone)
   ===================================================== */
.nav-toggle,
.nav-drawer,
.nav-overlay{
  display:none !important;
}
/* =====================================================
   BUTTON FIX — "Особистий кабінет" не вилазить
   ===================================================== */
.mid__btns .btn,
.about-sidebar .btn{
  height:auto;
  min-height:35px;
  padding:6px 10px;
  line-height:1.15;
  white-space:normal;
}
@media (min-width:1081px){
  .mid__btns .btn{
    width:190px;
    letter-spacing:.6px;
  }
}
/* Опустити персонажа в хедері (desktop tweak) */
.header__char{
  bottom: -40px !important;
}
/* =====================================================
   FLOATING SIDE BUTTONS — OUTSIDE FRAME (LEFT)
   (About left menu stays!)
   FIX: menu centers + never hides last button
   ===================================================== */
.side-links{
  position: fixed;
  top: 400px;
  left: 50%;
  transform: translateX(-700px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}
.side-btn{
  min-width: 160px;
  padding: 10px 14px;
  text-align: right;
  background: linear-gradient(180deg,#2a1600,#140a00);
  border: 1px solid #3a2200;
  color: #f3e6c8;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0,0,0,.6);
  transition: all .2s ease;
  white-space: nowrap;
}
.side-btn:hover{
  background: linear-gradient(180deg,#ff8a00,#c45a00);
  color: #000;
  transform: translateX(-6px);
}
.side-btn.discord{
  border-color: #5865F2;
  color: #cfd6ff;

  /* ✅ “назад/▲” не буде ховатися — липне до низу всередині меню */
  position: sticky;
  bottom: 0;
  margin-top: 6px;
}
/* ✅ Ховаємо тільки на дуже вузьких екранах (не на ноутбуці) */
@media (max-width: 900px){
  .side-links{ display: none; }
}
.side-links::before{
  content: "";
  position: absolute;
  right: -6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #ff8a00, transparent);
  opacity: .4;
}
/* =========================
   FILES PAGE (ERINIA STYLE)
   ========================= */
.files-page { padding: 6px 2px; }
.files-intro h3 {
  margin: 10px 0 6px;
  font-size: 20px;
  color: #ffdd61;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.files-intro p {
  margin: 0 0 12px;
  color: #c9b58a;
  line-height: 1.6;
  font-size: 14px;
}
.files-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0 14px;
}
.files-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #1e1000;
  padding: 10px;
  display: flex;
  gap: 10px;
  min-width: 0;
}
.files-card__pic {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid #282012;
  background-color: #130a00;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.95;
}
.files-card__pic_client { background-image: url(../images/resource/pic-1.png); }
.files-card__pic_patch  { background-image: url(../images/resource/pic-2.png); }
.files-card__pic_updater{ background-image: url(../images/resource/pic-3.png); }
.files-card__body { min-width: 0; }
.files-card__title {
  font-size: 14px;
  color: #fdd057;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 2px 0 4px;
  font-weight: 700;
}
.files-card__desc {
  font-size: 12px;
  color: #bfa77b;
  line-height: 1.5;
  margin: 0 0 8px;
}
.files-card__btns .btn { width: 160px; max-width: 100%; }
.files-howto { border-top: 1px solid #1e1000; padding-top: 12px; }
.files-howto__ttl {
  color: #ffdd61;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 8px;
}
.files-howto__list {
  margin: 0 0 10px 18px;
  padding: 0;
  color: #c9b58a;
  font-size: 13px;
  line-height: 1.6;
}
.files-note {
  background: rgba(26, 16, 8, 0.7);
  border: 1px solid #1e1000;
  padding: 8px 10px;
  color: #e8d1a6;
  font-size: 12px;
  margin: 8px 0 10px;
}
.files-support__ttl {
  color: #ccaa65;
  font-size: 13px;
  margin: 8px 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.files-support__btns .btn { width: 220px; max-width: 100%; }
.files-mdl {
  width: 520px;
  max-width: 92vw;
  background: #130a00;
  border: 1px solid #1e1000;
  padding: 14px;
  color: #c9b58a;
}
.files-mdl__ttl {
  color: #ffdd61;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 6px;
}
.files-mdl__desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.files-links { display: grid; gap: 8px; }
.files-links__main.btn { width: 100%; }
.files-links__mirror {
  display: block;
  text-decoration: underline;
  color: #fdd057;
  font-size: 12px;
}
.files-links__mirror:hover { text-decoration: none; }
@media (max-width: 1080px) {
  .files-grid { grid-template-columns: 1fr; }
  .files-card { margin: 0; }
  .files-card__btns .btn { width: 100%; }
}
@media (max-width: 480px) {
  .files-card__pic { width: 54px; height: 54px; }
  .files-intro h3 { font-size: 18px; }
}
/* =========================
   MASTER ACCOUNT BLOCK
   ========================= */
.files-master { margin-top: 18px; }
.files-master__box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #1e1000;
  padding: 14px;
}
.files-master__title {
  font-size: 18px;
  color: #ffdd61;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.files-master__title span { color: #fbbf3d; }
.files-master__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #d4c29a;
  margin-bottom: 10px;
}
.files-master__list {
  margin: 0 0 10px 18px;
  padding: 0;
  font-size: 13px;
  color: #c9b58a;
  line-height: 1.6;
}
.files-master__note {
  font-size: 13px;
  color: #e8d1a6;
  background: rgba(26, 16, 8, 0.7);
  border: 1px solid #1e1000;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.files-master__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.files-master__btn { min-width: 220px; }
.files-master__btn_alt { background: linear-gradient(180deg, #3b2a16, #1b1208); }
@media (max-width: 480px) {
  .files-master__title { font-size: 16px; }
  .files-master__btn { width: 100%; }
}
/* =========================
   ABOUT PAGE (ERINIA STYLE)
   ========================= */
.about-page{ padding: 6px 2px; }
.about-gap{ height: 12px; }
.about-section{
  margin: 12px 0;
  scroll-margin-top: 95px;
}
.about-head{
  padding: 14px;
  background: rgba(0,0,0,.55);
  border: 1px solid #1e1000;
}
.about-title{
  margin: 0 0 8px;
  font-size: 16px;
  color: #ffdd61;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.about-sub{
  margin: 0;
  color: #c9b58a;
  font-size: 14px;
  line-height: 1.7;
}
/* ABOUT GRID */
.about-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
}
.about-grid_6{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-grid_4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px){
  .about-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid_4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-grid_4{ grid-template-columns: 1fr; }
}
/* ABOUT CARD — PREMIUM HOVER (V2) */
.about-card{
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 12px;
  border: 1px solid rgba(30,16,0,.9);
  background: rgba(0,0,0,.35);
  border-radius: 10px;
  overflow: hidden;
  will-change: transform;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 12px;
  background: radial-gradient(700px 220px at 20% 0%,
    rgba(255,138,0,.22),
    rgba(0,0,0,0) 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events:none;
}
.about-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255,138,0,.45);
  box-shadow: 0 18px 45px rgba(0,0,0,.75);
}
.about-card:hover::before{ opacity: 1; }
.about-card__pic{
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(0,0,0,.65);
  transition: transform .35s ease, filter .35s ease, box-shadow .35s ease;
}
.about-card__pic::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 45%,
    rgba(0,0,0,.35) 70%,
    rgba(0,0,0,.65) 100%
  );
  pointer-events: none;
}
.about-card__pic::before{
  content:"";
  position:absolute;
  inset:-40% -60%;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.12) 50%,
    rgba(255,255,255,0) 60%);
  transform: translateX(-40%);
  opacity: 0;
  transition: transform .6s ease, opacity .25s ease;
  pointer-events:none;
}
.about-card:hover .about-card__pic{
  transform: scale(1.055);
  filter: saturate(1.15) contrast(1.08);
  box-shadow: 0 0 60px rgba(0,0,0,.95);
}
.about-card:hover .about-card__pic::before{
  opacity: 1;
  transform: translateX(25%);
}
.about-card__body{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding: 14px 6px 0;
  flex: 1 1 auto;
  min-width: 0;
}
.about-card__ttl{
  margin: 0;
  color: #fdd057;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: 13px;
}
.about-card__desc{
  margin: 0;
  color: #c9b58a;
  font-size: 14px;
  line-height: 1.6;
}
.about-strong{ color:#e8d1a6; font-weight:700; }
@media (max-width: 1024px){
  .about-card__pic{ height: 200px; }
}
@media (max-width: 600px){
  .about-card__pic{ height: 190px; }
}
/* ABOUT LISTS / CALLOUTS / TIMELINE */
.about-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.about-li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:#c9b58a;
  font-size:14px;
  line-height:1.6;
}
.about-li::before{
  content:"";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #fdd057;
  box-shadow: 0 0 10px rgba(0,0,0,.45);
  flex: 0 0 8px;
}
.about-callout{
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #1e1000;
  background: rgba(26,16,8,.65);
  color: #e8d1a6;
  font-size: 13px;
  line-height: 1.6;
}
.about-callout--ok{
  border-color: rgba(120,255,160,.25);
  background: rgba(20,60,35,.35);
}
.about-callout--warn{
  border-color: rgba(255,120,120,.25);
  background: rgba(60,20,20,.35);
}
.about-timeline{
  border: 1px solid rgba(30,16,0,.9);
  background: rgba(0,0,0,.35);
  padding: 12px;
}
.about-tl{
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-tl__item{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 10px 10px;
  border: 1px solid rgba(30,16,0,.7);
  background: rgba(26,16,8,.25);
}
.about-tl__date{
  color: #fdd057;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 12px;
}
.about-tl__txt{
  color: #c9b58a;
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 1024px){
  .about-tl__item{ grid-template-columns: 1fr; }
}
.about-ul{
  margin: 8px 0 0 18px;
  padding: 0;
  color: #c9b58a;
  font-size: 13px;
  line-height: 1.6;
}
.about-top-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(30,16,0,.9);
  background: rgba(26,16,8,.35);
  color:#e8d1a6;
  text-decoration:none;
}
.about-top-btn:hover{
  background: linear-gradient(180deg,#ff8a00,#c45a00);
  color:#000;
}
/* ABOUT — WIDE IMAGE + TEXT */
.about-hero{
  box-sizing: border-box;
  display: block;
  width: 100%;
  aspect-ratio: 1536 / 586;
  height: auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border: 1px solid #1e1000;
  box-shadow: 0 0 30px rgba(0,0,0,.65);
  margin-bottom: 14px;
  border-radius: 2px;
  min-height: 0 !important;
  max-height: none !important;
}
.about-text{
  background: rgba(0,0,0,.45);
  border: 1px solid #1e1000;
  padding: 14px 16px;
  color: #c9b58a;
  font-size: 14px;
  line-height: 1.7;
}
.about-text .about-list{ margin: 0; }
.about-text .about-callout{ margin-top: 10px; }
@media (max-width: 600px){
  .about-text{
    font-size: 13px;
    padding: 12px;
  }
}
/* video inside about card */
.about-card__video{
  position: relative;
  overflow: hidden;
}
.about-card__video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
