html, body { background: #0a0c0d; min-height: 100vh; }
.cg-wrap { position: relative; z-index: 1; padding: 1.5rem 1.75rem 4rem 2.25rem; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 2rem; align-items: stretch; }
.cg-main { min-width: 0; }

.cg-side { border-right: 1px solid rgba(255,255,255,0.1); padding-right: 1.4rem; }
.cg-side-in { position: sticky; top: 1.25rem; }
.cg-side h2 { font-family: 'Lato', Arial, sans-serif; font-size: 1.25rem; color: #fff; margin: 0 0 0.8rem 0.4rem; }
.cg-list { display: flex; flex-direction: column; gap: 2px; }
.cg-item { display: block; text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 8px; cursor: pointer; color: #b6c2d3; transition: background-color 0.2s, color 0.2s; }
.cg-item:hover, .cg-item.active { background: rgba(255,255,255,0.08); color: #fff; }
.cg-item-title { font-family: 'Lato', Arial, sans-serif; font-weight: 500; font-size: 1.05rem; line-height: 1.25; }

.lv-empty { color: #8d85a3; font-size: 0.9rem; padding: 0.5rem 0; }
.lv-shop-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 1.2rem; margin-bottom: 1.4rem; }
.lv-shop-tabs { display: flex; gap: 0.5rem; }
.lv-shop-tab {
  text-align: center; padding: 0.55rem 1.1rem; border-radius: 0; cursor: pointer; white-space: nowrap;
  background: transparent; border: 1px solid rgba(255,255,255,0.2); font-size: 0.92rem;
  font-family: 'Lato', Arial, sans-serif; font-weight: 600; color: #c9bfe0; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.lv-shop-tab.active { background: transparent; border-color: #7fa8d9; color: #fff; }
.lv-shop-search {
  grid-column: 2; width: 380px; max-width: 100%; padding: 0.75rem 1.3rem; border-radius: 999px;
  font-family: 'Lato', Arial, sans-serif;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); color: #f0f0f0; font-size: 1rem;
}
.lv-shop-search:focus { outline: none; border-color: #7fa8d9; }
.lv-shop-search::placeholder { color: #8d85a3; }
@media (max-width: 560px) {
  .lv-shop-bar { grid-template-columns: 1fr; justify-items: center; }
  .lv-shop-search { grid-column: 1; width: 100%; }
}
.lv-shop-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.lv-shop-card {
  overflow: hidden; background: #0e0f12;
  border: 1px solid rgba(255,255,255,0.14); display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.lv-shop-card:hover { transform: translateY(-1px); border-color: rgba(240,192,96,0.4); }
.lv-shop-card-img-wrap {
  position: relative; aspect-ratio: 1 / 1; background: #1a1626; overflow: hidden;
}
.lv-shop-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.lv-shop-card--shiny .lv-shop-card-img-wrap::after {
  content: ''; position: absolute; top: 5px; right: 6px; width: 18px; height: 18px;
  background: url(/images/home/decoration-1.png) center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.8));
}
.lv-inline-sparkle { width: 1em; height: 1em; vertical-align: -0.15em; }
.lv-shop-card-body { padding: 0.7rem 0.75rem 0.85rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.lv-shop-card-name {
  font-family: 'Lato', Arial, sans-serif; font-weight: 700; font-size: 0.92rem; color: #f0f0f0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-shop-buy-btn {
  margin-top: auto; cursor: pointer; border: 1px solid #7fa8d9; border-radius: 0; padding: 0.55rem 0.6rem;
  font-family: 'Lato', Arial, sans-serif; font-weight: 600; font-size: 1.15rem; line-height: 1.2;
  background: transparent; color: #fff;
  transition: background-color 0.2s ease;
}
.lv-shop-buy-btn:hover:not(:disabled) { background: rgba(127,168,217,0.16); }
.lv-shop-buy-btn:disabled { cursor: default; border-color: rgba(255,255,255,0.2); color: #a79fc0; }
.lv-shop-empty { text-align: center; padding: 2rem 1rem; color: #a79fc0; grid-column: 1 / -1; }

.lv-shop-confirm-card, .lv-shop-insufficient-card {
  background: linear-gradient(160deg, rgba(10,8,14,0.88), rgba(10,8,14,0.82)), url('/images/home/box-background-3.jpg');
  background-size: cover; background-position: center;
  max-width: 460px; padding: 3rem 2.4rem 2.4rem;
}
.lv-shop-confirm-card .fpnav-modal-title, .lv-shop-insufficient-card .fpnav-modal-title {
  font-family: 'Lato', Arial, sans-serif !important; color: #f0f0f0; font-size: 1.5rem;
}
.lv-shop-confirm-card .fpnav-modal-text, .lv-shop-insufficient-card .fpnav-modal-text {
  font-family: 'Lato', Arial, sans-serif; font-size: 1rem;
}
.lv-shop-confirm-card .fpnav-modal-cta, .lv-shop-insufficient-okay-btn { background: transparent; border: 1px solid #7fa8d9; border-radius: 0; color: #fff; font-family: 'Lato', sans-serif; }
.lv-shop-confirm-card .fpnav-modal-cta:hover, .lv-shop-insufficient-okay-btn:hover { background: rgba(127,168,217,0.16); }
.lv-shop-pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.lv-shop-page-btn {
  min-width: 34px; height: 34px; padding: 0 0.5rem; border-radius: 8px; cursor: pointer;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); color: #c9bfe0;
  font-family: 'Lato', Arial, sans-serif; font-size: 0.88rem; transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.lv-shop-page-btn:hover:not(:disabled):not(.lv-shop-page-btn--active) { border-color: #7fa8d9; color: #7fa8d9; }
.lv-shop-page-btn:disabled { opacity: 0.35; cursor: default; }
.lv-shop-page-btn--active { background: transparent; border-color: #7fa8d9; color: #fff; }
.lv-shop-page-ellipsis { color: #8d85a3; padding: 0 0.2rem; }

@media (max-width: 860px) {
  .cg-wrap { grid-template-columns: 1fr; padding: 1rem 1rem 3rem; }
  .cg-side { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
  .cg-side-in { position: static; }
}
@media (max-width: 760px), (max-width: 1360px) and (pointer: coarse) {
  .lv-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .lv-shop-card-body { padding: 0.45rem 0.4rem 0.5rem; gap: 0.4rem; }
  .lv-shop-card-name { font-size: 0.85rem; text-align: center; }
  .lv-shop-buy-btn { font-size: 0.95rem; padding: 0.45rem 0.2rem; }
}

@media (max-width: 720px), (max-width: 1360px) and (pointer: coarse) {
  .cg-wrap { padding-bottom: 1rem; }
}

@media (max-width: 720px), (max-width: 1360px) and (pointer: coarse) {
  .cg-wrap { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.5rem; padding-top: 0.5rem; padding-left: 1rem; padding-right: 1rem; }
  .cg-side { margin: 0 -1rem 0.75rem; padding: 0.2rem 1.1rem 0.7rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.22); }
  .cg-side-in { position: static; }
  .cg-side h2 { display: none; }
  .cg-list { flex-direction: row; gap: 0; border: 1px solid rgba(255,255,255,0.2); }
  .cg-item { flex: 1 1 0; min-width: 0; text-align: center; padding: 1.05rem 0.5rem; border-radius: 0; position: relative; color: #bbb; outline: 1px solid rgba(255,255,255,0.2); outline-offset: -1px; transition: color 0.3s ease, outline-color 0.3s ease; }
  .cg-item:hover, .cg-item.active { background: none; }
  .cg-item.active { outline-color: #cfd3eb; z-index: 1; }
  .cg-item-title { font-size: 1.12rem; font-weight: 700; line-height: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 720px), (max-width: 760px) and (pointer: coarse) {
  .cg-item { padding: 0.7rem 0.1rem; }
  .cg-item-title { font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .cg-item { padding: 0.75rem 0.05rem; }
  .cg-item-title { font-size: 0.72rem; }
}
