:root {
  color-scheme: dark;
  background: #101219;
  color: #fff5eb;
  font: 1rem/1.55 system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, #10121910 12%, #10121973 72%, #101219a0),
    #182843 url("ho-dem-trang.webp") center / cover no-repeat;
  pointer-events: none;
}

main {
  position: relative;
  padding-bottom: 3rem;
}

header {
  display: grid;
  align-content: end;
  min-height: clamp(21rem, 55vw, 34rem);
  padding: 1rem 1rem 2rem;
  text-align: center;
  text-shadow: 0 .15rem 1rem #080c1a;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  line-height: 1.1;
  margin: .25rem 0 .5rem;
}

h2 {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
}

p {
  margin: 0;
  color: #d1c9c7;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}

header a {
  text-shadow: none;
  padding: .65rem 1.35rem;
  border-radius: .5rem;
  background: #ffae68;
  color: #22140d;
  font-weight: 750;
  text-decoration: none;
}

section {
  max-width: 36rem;
  margin-inline: auto;
  background: #101219bf;
  border-top: 1px solid #d5e4ff30;
  padding: 1rem;
}

header {
  position: relative;
  isolation: isolate;
}

.cover-characters {
  position: absolute;
  inset: 1rem max(1rem, calc((100% - 70rem) / 2)) 0;
  z-index: -1;
  pointer-events: none;
}

.cover-characters img {
  position: absolute;
  bottom: 10%;
  width: min(22vw, 15rem);
  height: min(70%, 25rem);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 .5rem .8rem #080c1a);
  animation: character-float 4s ease-in-out infinite;
}

.cover-naruto { left: 0; }
.cover-characters .cover-kakashi { right: 0; animation-delay: -2s; }

@keyframes character-float {
  50% { transform: translateY(-.55rem); }
}

@media (max-width: 820px) {
  .cover-characters { bottom: 7rem; }
  .cover-characters img { height: 95%; width: min(34vw, 11rem); bottom: 0; }
  .cover-naruto { left: 9%; }
  .cover-characters .cover-kakashi { right: 9%; }
}

@media (prefers-reduced-motion: reduce) {
  .cover-characters img { animation: none; }
}

@media (max-width: 480px) {
  .cover-characters { bottom: 7.5rem; }
}

/* === Tích hợp Đăng nhập, Đăng ký & Quản lý Tài khoản Làng Lá Huyền Thoại === */
html {
  scroll-behavior: smooth;
}

header a {
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

header a:hover {
  background: #ffc188;
  transform: translateY(-1px);
}

.section-lead {
  margin-bottom: .85rem;
  font-size: .95rem;
  color: #d1c9c7;
}

.llht-form {
  display: grid;
  gap: .75rem;
  margin-top: .65rem;
}

.llht-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

@media (max-width: 560px) {
  .llht-row-2 {
    grid-template-columns: 1fr;
  }
}

.llht-field {
  display: grid;
  gap: .3rem;
}

.llht-field label {
  font-size: .88rem;
  font-weight: 650;
  color: #ffe8d4;
}

.llht-field small {
  font-size: .78rem;
  color: #b7b0ae;
}

.llht-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.llht-input-group input {
  width: 100%;
  padding-right: 4rem;
}

.llht-form input {
  box-sizing: border-box;
  width: 100%;
  padding: .62rem .8rem;
  border-radius: .5rem;
  border: 1px solid #d5e4ff38;
  background: #0b0e16d6;
  color: #fff5eb;
  font: inherit;
  font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.llht-form input::placeholder {
  color: #8f8a8b;
}

.llht-form input:focus {
  outline: none;
  border-color: #ffae68;
  box-shadow: 0 0 0 2px #ffae6833;
}

.llht-eye-btn {
  position: absolute;
  right: .4rem;
  padding: .28rem .55rem;
  border-radius: .38rem;
  border: 1px solid #d5e4ff30;
  background: #1b2233;
  color: #ffd8b5;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}

.llht-eye-btn:hover {
  background: #27324b;
}

.llht-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: .15rem;
}

.llht-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.35rem;
  border-radius: .5rem;
  border: none;
  background: #ffae68;
  color: #22140d;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, opacity .15s ease;
}

.llht-btn-primary:hover {
  background: #ffc188;
}

.llht-btn-primary:disabled {
  opacity: .65;
  cursor: wait;
}

.llht-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .58rem .95rem;
  border-radius: .5rem;
  border: 1px solid #d5e4ff38;
  background: #182030bf;
  color: #fff5eb;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.llht-btn-ghost:hover {
  border-color: #ffae6899;
  background: #222d44cc;
}

.llht-btn-sm {
  padding: .4rem .75rem;
  font-size: .84rem;
}

.llht-alert {
  padding: .62rem .8rem;
  border-radius: .5rem;
  font-size: .9rem;
  line-height: 1.45;
}

.llht-alert.is-success {
  background: #0f3324e0;
  border: 1px solid #41dc9570;
  color: #dcffef;
}

.llht-alert.is-error {
  background: #3c141ce0;
  border: 1px solid #ff6e7f75;
  color: #ffe3e7;
}

.llht-alert.is-info {
  background: #152642e0;
  border: 1px solid #76a9ff66;
  color: #e4efff;
}

.llht-subbox {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px dashed #d5e4ff30;
}

.llht-subbox h3 {
  margin: 0 0 .35rem;
  font-size: 1.02rem;
  color: #ffcf9e;
}

.llht-acc-card {
  display: grid;
  gap: .8rem;
  margin-top: .5rem;
}

.llht-acc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .8rem;
  border-radius: .5rem;
  background: #0b0e16b8;
  border: 1px solid #d5e4ff28;
}

.llht-acc-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.llht-acc-user strong {
  font-size: 1.05rem;
  color: #ffae68;
}

.llht-badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
}

.llht-badge.is-ok {
  background: #123c2a;
  color: #6df0b3;
  border: 1px solid #41dc9559;
}

.llht-badge.is-warn {
  background: #3d2c12;
  color: #ffd089;
  border: 1px solid #ffae6859;
}

.llht-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
}

@media (max-width: 480px) {
  .llht-stats-grid {
    grid-template-columns: 1fr;
  }
}

.llht-stat-item {
  padding: .55rem .7rem;
  border-radius: .5rem;
  background: #0b0e16a8;
  border: 1px solid #d5e4ff24;
}

.llht-stat-label {
  display: block;
  font-size: .76rem;
  color: #b7b0ae;
}

.llht-stat-val {
  font-size: 1rem;
  font-weight: 750;
  color: #fff5eb;
}

.llht-char-box {
  padding: .65rem .8rem;
  border-radius: .5rem;
  background: #0b0e16a8;
  border: 1px solid #d5e4ff24;
}

.llht-char-box h3 {
  margin: 0 0 .4rem;
  font-size: .9rem;
  color: #ffd8b5;
}

.llht-char-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.llht-char-pill {
  padding: .28rem .65rem;
  border-radius: .4rem;
  background: #1a2438;
  border: 1px solid #ffae684d;
  color: #fff5eb;
  font-size: .85rem;
  font-weight: 600;
}

.llht-server-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .6rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: #0b0e16bd;
  border: 1px solid #d5e4ff2b;
  font-size: .84rem;
  color: #e4dedc;
}

.llht-dot {
  width: .52rem;
  height: .52rem;
  border-radius: 50%;
  background: #ffae68;
  box-shadow: 0 0 .45rem #ffae68;
}

.llht-dot.is-online {
  background: #47e59bc9;
  box-shadow: 0 0 .5rem #47e59b;
}

.llht-link-box {
  margin-top: .6rem;
}

[hidden] {
  display: none !important;
}

.llht-dl-card {
  display: grid;
  gap: .75rem;
  margin-top: .45rem;
}

.llht-dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.llht-dl-tag {
  padding: .2rem .6rem;
  border-radius: 999px;
  background: #182338cc;
  border: 1px solid #d5e4ff2e;
  color: #ffd8b5;
  font-size: .78rem;
  font-weight: 600;
}

.llht-dl-steps {
  margin: .1rem 0 0;
  padding: .65rem .85rem .65rem 1.8rem;
  border-radius: .5rem;
  background: #0b0e16ad;
  border: 1px solid #d5e4ff24;
  color: #dcd5d3;
  font-size: .88rem;
  display: grid;
  gap: .3rem;
}

.llht-dl-steps code {
  padding: .1rem .35rem;
  border-radius: .3rem;
  background: #1c263b;
  color: #ffcf9e;
  font-size: .83rem;
}

/* === Bảng nổi (Popup Modal) Đăng ký tài khoản V25 === */
.llht-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #060810cc;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.llht-modal-box {
  box-sizing: border-box;
  width: min(100%, 26rem);
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: .85rem;
  background: #121725f5;
  border: 1px solid #ffae6859;
  box-shadow: 0 1.2rem 3rem #000000b3;
  animation: llht-modal-pop .16s ease-out;
}

@keyframes llht-modal-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.llht-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}

.llht-modal-head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #ffcf9e;
}

.llht-modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: .45rem;
  border: 1px solid #d5e4ff2e;
  background: #1b2233;
  color: #e2dad7;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
}

.llht-modal-close:hover {
  background: #28334d;
  color: #fff;
}

.llht-modal-actions {
  margin-top: .35rem;
}

.llht-modal-actions .llht-btn-primary {
  flex: 1 1 auto;
}


/* === V30 Multi-Platform Download Hub (PC, Android .APK, iOS .IPA) === */
section#tai-game,
section#dang-ky,
section#zalo,
section#thong-bao {
  max-width: 62rem;
  box-sizing: border-box;
}

.llht-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: .75rem;
}

@media (max-width: 860px) {
  .llht-platform-grid {
    grid-template-columns: 1fr;
  }
}

.llht-plat-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1rem;
  border-radius: .75rem;
  background: linear-gradient(180deg, #171d2de6, #0f131fe6);
  border: 1px solid #d5e4ff2e;
  box-shadow: 0 .35rem 1.1rem #05081180;
  transition: border-color .18s ease, transform .18s ease;
}

.llht-plat-card:hover,
.llht-plat-card.is-recommended {
  border-color: #ffae68b8;
}

.llht-plat-card.is-recommended {
  box-shadow: 0 0 0 1px #ffae6855, 0 .45rem 1.25rem #050811a6;
}

.llht-plat-head {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.llht-plat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: .6rem;
  background: #232c43;
  border: 1px solid #ffae6845;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.llht-plat-meta h3 {
  margin: 0;
  font-size: 1.06rem;
  color: #fff5eb;
}

.llht-plat-badge {
  display: inline-block;
  margin-top: .15rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 650;
  background: #24304a;
  color: #cfe0ff;
  border: 1px solid #8ab4ff40;
}

.llht-plat-badge.is-ready {
  background: #113827;
  color: #b8ffdf;
  border-color: #41dc9566;
}

.llht-plat-badge.is-pending {
  background: #3a2a14;
  color: #ffdca8;
  border-color: #ffae6859;
}

.llht-plat-desc {
  font-size: .88rem;
  line-height: 1.45;
  color: #d3cbc8;
  min-height: 3.9rem;
}

@media (max-width: 860px) {
  .llht-plat-desc {
    min-height: 0;
  }
}

.llht-btn-full {
  width: 100%;
  box-sizing: border-box;
}

.llht-plat-card .llht-dl-steps {
  margin: .15rem 0 0;
  padding-left: 1.15rem;
  font-size: .83rem;
  color: #c8c0be;
}

.llht-ios-guide-list {
  margin: .5rem 0 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: .55rem;
  font-size: .92rem;
  line-height: 1.5;
  color: #eae1de;
}
