/* Ari Rewards: trang "Nhân vật của tôi" (rewards/nhan-vat.php). Dùng token chung (--c-*), thêm đúng phần riêng của trang. */
.nv-khung { position: relative; display: grid; place-items: center; min-height: 260px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, var(--c-brand-soft), transparent 70%), var(--c-bg-sunk); border: 1px solid var(--c-line-soft); }
.nv-khung.co-3d { min-height: 0; height: min(68vh, 520px); }
.nv-3d { position: absolute; inset: 0; }
.nv-3d[hidden] { display: none; }
.nv-tinh { display: grid; justify-items: center; gap: 8px; padding: 24px 16px; text-align: center; }
.nv-tinh[hidden] { display: none; }
.nv-tinh .av { width: 112px; height: 112px; border-radius: 50%; }
.nv-tinh-ten { margin: 0; font-weight: 600; }
.nv-dang-mac { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nv-dang-mac li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
  background: var(--c-bg-sunk); border: 1px solid var(--c-line-soft); font-size: .9rem; }
.nv-dang-mac img, .nv-dang-mac .nv-khong-hinh { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.nv-bao { min-height: 1.4em; margin: 8px 0 0; font-size: .9rem; color: var(--c-text-accent); }
.nv-bao.loi { color: #ffb4a8; }
.nv-khe { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.nv-khe legend { padding: 0; font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.nv-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.nv-mon { display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 44px; padding: 10px 6px; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: .82rem; line-height: 1.25; text-align: center; color: var(--c-text); background: var(--c-bg-sunk);
  border: 1px solid var(--c-line-soft); transition: border-color .15s, background-color .15s, transform .15s; }
.nv-mon img, .nv-mon .nv-khong-hinh { width: 72px; height: 72px; object-fit: contain; }
.nv-khong-hinh { display: grid; place-items: center; border-radius: 12px; background: var(--c-brand-soft); color: var(--c-text-accent); font-weight: 700; }
.nv-mon:hover { border-color: var(--c-line-strong); }
.nv-mon:active { transform: scale(.97); }
.nv-mon:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.nv-mon[aria-pressed="true"] { border-color: var(--c-brand); background: var(--c-brand-soft); box-shadow: inset 0 0 0 1px var(--c-brand); }
.nv-mon[aria-pressed="true"] .nv-mon-ten::after { content: " · đang mặc"; color: var(--c-text-accent); }
.nv-mon[disabled] { opacity: .55; cursor: progress; }
.nv-cap-so { margin: 0 0 6px; font-size: 1.1rem; }
.nv-xp { display: block; width: 100%; height: 12px; border: 0; border-radius: 999px; overflow: hidden; background: var(--c-bg-sunk); accent-color: var(--c-brand); }
.nv-xp::-webkit-progress-bar { background: var(--c-bg-sunk); border-radius: 999px; }
.nv-xp::-webkit-progress-value { background: var(--c-brand); border-radius: 999px; }
.nv-xp::-moz-progress-bar { background: var(--c-brand); border-radius: 999px; }
.nv-truc { display: grid; gap: 14px; align-items: center; }
.nv-luc-giac { width: 100%; max-width: 380px; height: auto; margin: 0 auto; display: block; }
.nv-lg-luoi { fill: none; stroke: var(--c-line); stroke-width: 1; }
.nv-lg-noi-luc { fill: rgb(255 180 107 / .16); stroke: #ffb46b; stroke-width: 1.5; stroke-dasharray: 4 3; }
.nv-lg-phong-do { fill: var(--c-brand-soft); stroke: var(--c-brand); stroke-width: 2; }
.nv-lg-chu { fill: var(--c-text-2); font-size: 11px; font-family: inherit; }
.nv-truc-bang th[scope="row"] { font-weight: 500; text-align: left; }
@media (min-width: 760px) { .nv-truc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .nv-mon { transition: none; } .nv-mon:active { transform: none; } }

/* Góc trưng bày (Phòng riêng Đợt B) */
.ph-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.ph-o { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 8px; border-radius: 14px; text-align: center; min-width: 0;
        border: 1px dashed var(--c-line-strong); background: var(--c-surface); }
.ph-o.co-do { border-style: solid; border-color: var(--c-brand); background: var(--c-brand-soft); }
.ph-o select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; text-overflow: ellipsis; }
.ph-o .btn { min-height: 44px; }
.ph-ten { font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.ph-trong { font-size: 1.6rem; opacity: .45; line-height: 56px; }
.ph-huy { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 1.7rem; color: #fff; background: #b8793b; }
.ph-huy.ph-hang-2 { background: #8b95a5; }
.ph-huy.ph-hang-1 { background: #d9a520; }
.ph-huy.ph-khoa { background: transparent; color: inherit; border: 2px dashed var(--c-line-strong); opacity: .6; }
.ph-ds { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.ph-ds li { display: flex; gap: 12px; align-items: center; }
.ph-ds img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.ph-co { margin-top: 6px; }
#goc-trung-bay h3 { margin-top: 22px; }
.ph-bi-mat { margin-top: 12px; }

/* Nhà của nhân vật (rewards/phong.php): khung phòng 3D */
.ph-nha { position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 1600 / 1611; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #3a2a4a 0%, #1a1326 70%); }
.ph-nha-tinh, .ph-nha-khung { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: transparent; color-scheme: normal; }
.ph-nha-tinh { object-fit: contain; }
.ph-nha.co-3d .ph-nha-tinh { visibility: hidden; }
.ph-di-lai { margin-top: 14px; }
/* nhà người mới còn trống: lời mời mua món đầu tiên */
.ph-moi-dau { margin: 12px auto 0; max-width: 760px; padding: 12px 14px; border-radius: 14px; background: var(--c-bg-raise, #fff8fb); border: 1px dashed var(--c-text-accent, #a8305e); }
.ph-moi-dau a { font-weight: 700; display: inline-block; padding: 6px 0; }
/* Nhà trên phiến đá (11/10/2026): khung cao theo đúng tỉ lệ cảnh (nhà ở trên, phòng tập ở dưới), nền vũ trụ; điện thoại tràn hết bề ngang */
.ph-nha { aspect-ratio: 1519 / 2252; max-width: 620px; background: #120b1f; }
.ph-nha-tinh { object-fit: cover; object-position: 50% 30%; opacity: .5; }
@media (max-width: 560px) { .card.nv-san { padding-left: 0; padding-right: 0; } .ph-nha { border-radius: 0; } }
