/* หน้ายืนยันตัวตน (/verify) — พื้นหลังรูปเมือง + โลโก้ด้านบน + การ์ดตรงกลาง
   แถบบนใช้สไตล์เดียวกับหน้าผู้เล่น (sm-clean.css) · ถ้าแอดมินตั้งพื้นหลังเอง (pageBg) จะใช้รูปนั้นแทน */

/* ---------- พื้นหลัง ---------- */
.vf-body .vf-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(5, 4, 6, 0.35), rgba(5, 4, 6, 0.75) 80%),
    linear-gradient(180deg, rgba(5, 4, 6, 0.45) 0%, rgba(5, 4, 6, 0.7) 55%, #050406 100%),
    url('/img/smoothiecommunitylaoding.jpg') 50% 25% / cover no-repeat;
}

body.vf-body:has(.page-bg.on) .vf-bg {
  display: none;
}

html:not(#c1):not(#c2):not(#c3) body.vf-body .bg-grid {
  display: none;
}

/* ---------- เมนูบน: แสดงทุกขนาดจอ (หน้านี้ไม่มีแถบแท็บด้านล่าง) ---------- */
html:not(#c1):not(#c2):not(#c3) .vf-nav {
  display: flex !important;
}

@media (max-width: 640px) {
  html:not(#c1):not(#c2):not(#c3) .vf-nav {
    justify-content: flex-start;
  }

  html:not(#c1):not(#c2):not(#c3) .vf-nav .vn-top {
    padding: 0 8px !important;
    font-size: 14px !important;
  }

  html:not(#c1):not(#c2):not(#c3) .vf-nav .vn-top::after {
    left: 8px;
    right: 8px;
  }

  html:not(#c1):not(#c2):not(#c3) .vf-body .theme-btn {
    display: none;
  }
}

/* ---------- การ์ด ---------- */
html:not(#c1):not(#c2):not(#c3) .vf-body main.wrap {
  justify-content: center;
  padding-top: clamp(16px, 3vh, 40px) !important;
  padding-bottom: clamp(16px, 3vh, 40px) !important;
}

html:not(#c1):not(#c2):not(#c3) .vf-body #app.card {
  position: relative;
  z-index: 1;
  box-shadow: 0 40px 90px -40px #000 !important;
}

/* หัวการ์ด: รูปเมืองเป็นพื้นหลัง (ถ้าแอดมินตั้ง "แบนเนอร์" ไว้ในแดชบอร์ด จะใช้รูปนั้นแทน) */
html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero {
  isolation: isolate;
  overflow: hidden;
  background: #120f16 !important;
}

html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero > .hero-bg {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 6, 10, 0.25) 0%, rgba(8, 6, 10, 0.45) 45%, rgba(8, 6, 10, 0.85) 100%),
    var(--banner, url('/img/smoothiecommunitylaoding.jpg') 50% 30% / cover no-repeat) !important;
  background-size: cover !important;
}

html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero > .hero-bg::after,
html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero::before,
html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero::after {
  display: none !important;
}

html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero h1,
html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero p,
html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero p b {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero p {
  color: rgba(255, 255, 255, 0.85) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
}

/* คอม: การ์ดสี่เหลี่ยมแนวนอน 2 ฝั่ง — ซ้าย = หัวการ์ด + ขั้นตอน · ขวา = รายละเอียด + ปุ่ม
   (จอเล็กกว่า 900px ใช้แบบเดิม เรียงลงมาคอลัมน์เดียว) */
@media (min-width: 900px) {
  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: 8px;
    max-width: 1040px;
    width: 100%;
  }

  /* ซ้าย */
  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .hero,
  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .sk-hero {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    text-align: center;
  }

  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .steps,
  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .sk-steps {
    grid-column: 1;
    grid-row: 2;
    margin: 0 !important;
    padding: 16px 14px 14px !important;
  }

  /* ขวา */
  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .body,
  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .sk-body {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
    padding: 18px 18px 16px !important;
  }

  /* ในฝั่งขวา: การ์ดเดี่ยว (เซิร์ฟเวอร์ / Discord) วางคู่กันได้ 2 ช่อง ที่เหลือเต็มแถว */
  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    align-content: start;
  }

  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .body > * {
    grid-column: 1 / -1;
    min-width: 0;
  }

  html:not(#c1):not(#c2):not(#c3) .vf-body #app.card > .body > section:has(> .tile) {
    grid-column: auto;
  }
}
