/* Giao diện Giáng Sinh — DragonScale-TCG
   Nạp SAU mọi stylesheet khác. Bật/tắt bằng đúng một dòng <link> trong index.html.
   Chỉ thay phần nhìn: không đổi nội dung, giá, tỷ lệ, màu độ hiếm hay hành vi nút. */

:root {
  --gold: #efcb8b;
  --xmas-night: #07130f;
  --xmas-pine: #0c2119;
  --xmas-pine-2: #13301f;
  --xmas-berry: #a81f2d;
  --xmas-berry-deep: #7c1420;
  --xmas-snow: #f4fafb;
  --xmas-line: rgba(239, 203, 139, .22);
}

body { background-color: var(--xmas-night); }

/* ---------- Thanh trên cùng ---------- */
.topbar {
  background: linear-gradient(180deg, #0f2a1f, #0a1c15);
  border-bottom-color: var(--xmas-line);
}
.brand-mark { position: relative; }
.brand-mark::after {
  content: "";
  position: absolute;
  top: -15px;
  left: -11px;
  width: 33px;
  height: 25px;
  background: url("/assets/season/christmas/hat.svg") center / contain no-repeat;
  transform: rotate(-14deg);
  pointer-events: none;
}
.nav-btn.active::after { background: linear-gradient(90deg, #d5404e, var(--gold)); }
.login-gate { background: #10291e; border-bottom-color: rgba(239, 203, 139, .18); }
.login-gate span { color: #d3e2d8; }

/* ---------- Dây thông + đèn ---------- */
.convene { position: relative; }
.convene::before,
.convene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 54px;
  background: url("/assets/season/christmas/garland.svg") 50% 0 / 360px 54px repeat-x;
  pointer-events: none;
}
.convene::before { top: -9px; z-index: 5; }
.convene::after {
  top: -9px;
  z-index: 6;
  background-image: url("/assets/season/christmas/garland-glow.svg");
  animation: xmas-twinkle 2.8s ease-in-out infinite alternate;
}
/* Trang phụ: dây đèn nằm trong luồng, không chiếm chỗ và không đè dòng đăng nhập */
body:not(.shop-open) main::before {
  content: "";
  display: block;
  position: relative;
  z-index: 2;
  height: 45px;
  margin-bottom: -45px;
  background: url("/assets/season/christmas/garland.svg") 50% -3px / 300px 45px repeat-x;
  pointer-events: none;
}

.arena-top { padding-top: 40px; }
.banner-menu { padding-top: 50px; background: linear-gradient(180deg, #0c2219, #081611); border-right-color: var(--xmas-line); }

/* ---------- Danh sách banner ---------- */
.banner-choice { background: #0e261c; border-color: #2c4b3b; }
.banner-choice.active { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(239, 203, 139, .35), 0 8px 22px rgba(0, 0, 0, .35); }
.banner-choice .banner-thumb::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: url("/assets/season/christmas/snowcap.svg") 0 0 / 64px 7px repeat-x;
  pointer-events: none;
}

/* ---------- Sân khấu ---------- */
.arena { background: #0a1f22; }
.arena-bg,
.arena[data-banner] .arena-bg {
  background: url("/assets/season/christmas/forest.svg") center 62% / cover no-repeat;
  filter: none;
}
.arena::before {
  background:
    linear-gradient(90deg, rgba(5, 18, 15, .96) 0%, rgba(5, 18, 15, .84) 26%, rgba(5, 18, 15, .22) 52%, rgba(5, 18, 15, .05) 100%),
    linear-gradient(0deg, rgba(6, 18, 15, .5) 0%, rgba(6, 18, 15, .12) 12%, transparent 30%);
}

/* Tuyết: 2 lớp, chỉ dùng transform nên nhẹ; nằm dưới chữ và thẻ */
.arena::after,
.arena-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.arena::after {
  inset: -320px 0 0 -320px;
  z-index: -1;
  background: url("/assets/season/christmas/snow-near.svg") 0 0 / 320px 320px;
  opacity: .75;
  animation: xmas-snow-near 15s linear infinite;
}
.arena-bg::after {
  inset: -220px 0 0 -220px;
  background: url("/assets/season/christmas/snow-far.svg") 0 0 / 220px 220px;
  opacity: .7;
  animation: xmas-snow-far 20s linear infinite;
}

/* Cây thông đứng sau thẻ nổi bật */
.card-scene .card-halo {
  inset: -15% -6% 0;
  filter: none;
  background:
    url("/assets/season/christmas/tree.svg") center bottom / contain no-repeat,
    radial-gradient(ellipse at 50% 55%, rgba(255, 207, 122, .3), transparent 66%);
}
.card-scene .card-halo::before,
.card-scene .card-halo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/season/christmas/tree-lights-a.svg") center bottom / contain no-repeat;
  animation: xmas-twinkle 2.2s ease-in-out infinite alternate;
}
.card-scene .card-halo::after {
  background-image: url("/assets/season/christmas/tree-lights-b.svg");
  animation-delay: -2.2s;
}
.card-watermark { opacity: 0; }
.card-scene .feature-caption { background: rgba(60, 10, 18, .9); border-color: rgba(239, 203, 139, .45); }

.stock-mode-chip { background: rgba(14, 43, 31, .88); border-color: rgba(111, 165, 133, .55); color: #d5e9dc; }
.rank-strip .rank-chip,
.pool-rates .rank-chip { background: linear-gradient(165deg, rgba(17, 45, 34, .96), rgba(7, 24, 18, .94)); }

/* ---------- Lượt mở gần đây ---------- */
.shop-recent { background: linear-gradient(#0b2219, #07150f); border-top-color: var(--xmas-line); }
.recent-placeholder { border-color: #3a5d4b; color: #b9d0c2; }

/* ---------- Thanh quay ---------- */
.spin-dock {
  background: linear-gradient(90deg, rgba(9, 28, 20, .97), rgba(18, 48, 34, .97));
  border-top: 0;
}
.spin-dock::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 4px);
  height: 18px;
  background: url("/assets/season/christmas/drift.svg") 0 100% / 480px 18px repeat-x;
  pointer-events: none;
}
.dock-actions .summon-btn {
  background:
    url("/assets/season/christmas/snowcap.svg") 0 0 / 88px 11px repeat-x,
    linear-gradient(115deg, #bd2836, var(--xmas-berry-deep));
  color: #fff6ea;
  border-color: #e4808a;
}
.dock-actions .summon-btn.ten {
  background:
    url("/assets/season/christmas/snowcap.svg") 0 0 / 88px 11px repeat-x,
    linear-gradient(90deg, transparent 13%, #b4232f 13% 16.5%, transparent 16.5% 83.5%, #b4232f 83.5% 87%, transparent 87%),
    linear-gradient(115deg, #f8e0a8, #d9a951);
  color: #33190d;
  border-color: #fdeec8;
}
.dock-actions .summon-btn strong { position: relative; top: 2px; }

/* ---------- Nút và hộp thoại ---------- */
.button.secondary { background: #17362a; color: #dcebe1; border-color: #4d715e; }
.add-money { background: rgba(168, 31, 45, .35); border-color: rgba(239, 203, 139, .5); }
dialog { background: linear-gradient(150deg, #143528, #0a1d16); border-color: #40624f; }
dialog::backdrop { background: rgba(3, 14, 10, .86); }

/* ---------- Chuyển động ---------- */
@keyframes xmas-twinkle { from { opacity: 1; } to { opacity: .28; } }
@keyframes xmas-snow-near { to { transform: translate3d(320px, 320px, 0); } }
@keyframes xmas-snow-far { to { transform: translate3d(220px, 220px, 0); } }

/* Nút "Giảm chuyển động" sẵn có của trang */
.slow-mode .arena::after,
.slow-mode .arena-bg::after,
.slow-mode .convene::after,
.slow-mode .card-scene .card-halo::before,
.slow-mode .card-scene .card-halo::after { animation: none; }

/* ---------- Màn hình hẹp ---------- */
@media (max-width: 1100px) {
  .arena-top { padding-top: 34px; }
  .banner-menu { padding-top: 44px; }
  .convene::before, .convene::after { height: 42px; background-size: 280px 42px; }
}
@media (max-width: 600px) {
  .convene::before, .convene::after { height: 33px; background-size: 220px 33px; }
  .banner-menu { padding-top: 34px; border-bottom-color: var(--xmas-line); }
  .arena-top { padding-top: 12px; }
  .arena::before {
    background:
      linear-gradient(0deg, rgba(6, 18, 15, .9) 0%, rgba(6, 18, 15, .5) 14%, transparent 60%),
      linear-gradient(90deg, rgba(5, 18, 15, .86), rgba(5, 18, 15, .3));
  }
  .arena::after { opacity: .5; }
  .spin-dock::before { height: 12px; background-size: 320px 12px; }
}

/* ---------- Trang phụ: kéo các ô xanh navy về tông thông ---------- */
input, select, textarea { background-color: #07170f; }
.filter-tabs button, .auth-tabs button { background: #0d261b; border-color: #3c614d; color: #b7cfc1; }
.recent-pull { background: #0e2a1f; border-color: #315443; }

/* ==========================================================
   Trang "Danh sách thẻ"
   ========================================================== */
#cardpool {
  position: relative;
  isolation: isolate;
  background:
    url("/assets/season/christmas/flakes.svg") 50% 0 / 260px 260px,
    linear-gradient(180deg, #0a1b22, #081419 60%, #06100f);
}
#cardpool::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 600px;
  background:
    linear-gradient(180deg, rgba(5, 15, 21, .5) 0%, rgba(5, 15, 21, .4) 40%, rgba(5, 15, 21, .72) 62%, rgba(8, 21, 27, .6) 100%),
    url("/assets/season/christmas/forest.svg") 50% 64% / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
  pointer-events: none;
}
#cardpool .pool-page-heading { margin-top: 18px; }
#cardpool .pool-page-heading .eyebrow { color: var(--gold); }
#cardpool .pool-page-heading h1 { font-size: 36px; font-weight: 700; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
#openPoolBanner {
  min-height: 52px;
  padding: 14px 26px 11px;
  border-color: #e4808a;
  border-radius: 8px;
  background: url("/assets/season/christmas/snowcap.svg") 0 0 / 80px 9px repeat-x, linear-gradient(115deg, #bd2836, var(--xmas-berry-deep));
  color: #fff6ea;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}

/* Bố cục: hai hộp quà và dải tỷ lệ đứng cùng hàng */
@media (min-width: 1101px) {
  .public-pool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 22px; }
  .public-pool > * { grid-column: 1 / -1; min-width: 0; }
  .public-pool > .pool-stats { grid-column: 1; margin: 12px 0 0; }
  .public-pool > .pool-rates { grid-column: 2; margin: 12px 0 0; max-width: none; align-items: stretch; }
}
/* Khách không có bộ lọc: bỏ vạch kẻ trống */
#cardpool .pool-toolbar:not(:has(> :not([hidden]))) { display: none; }

#cardpool .pool-tools label { color: #dfe9e6; }
#cardpool .pool-tools input,
#cardpool .pool-tools select {
  min-height: 48px;
  border: 1px solid rgba(239, 203, 139, .34);
  border-radius: 8px;
  background-color: rgba(6, 17, 22, .86);
}
#cardpool .pool-tools input:focus-visible,
#cardpool .pool-tools select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Hai ô số liệu thành hộp quà thắt nơ */
#cardpool .pool-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
#cardpool .pool-stats > div {
  --box: linear-gradient(135deg, #b32634, #6f111c);
  position: relative;
  min-height: 112px;
  padding: 24px 92px 18px 22px;
  border: 1px solid rgba(255, 226, 170, .4);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent calc(100% - 58px), #e3b964 calc(100% - 58px) calc(100% - 38px), transparent calc(100% - 38px)),
    var(--box);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
}
#cardpool .pool-stats > div:nth-child(even) { --box: linear-gradient(135deg, #1c6044, #0c3526); }
#cardpool .pool-stats > div::after {
  content: "";
  position: absolute;
  top: -24px;
  right: 12px;
  width: 72px;
  height: 59px;
  background: url("/assets/season/christmas/bow.svg") center / contain no-repeat;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .35));
  pointer-events: none;
}
#cardpool .pool-stats small { color: #fbe9d3; letter-spacing: .4px; }
#cardpool .pool-stats strong { color: #fff; font-size: 36px; font-weight: 700; line-height: 1.15; }
#cardpool .pool-stats .mode-stat { font-size: 20px; }

/* Dải tỷ lệ: mỗi ô ánh lên màu độ hiếm của nó */
#cardpool .pool-rates .rank-chip {
  min-height: 92px;
  border-radius: 12px;
  border-color: color-mix(in srgb, var(--rank) 38%, transparent);
  background:
    radial-gradient(110% 80% at 50% 0%, color-mix(in srgb, var(--rank) 24%, transparent), transparent 72%),
    rgba(7, 18, 23, .9);
}
#cardpool .pool-rates .rank-chip::before { left: 18%; right: 18%; height: 3px; opacity: 1; }
#cardpool .pool-rates .rank-chip b { font-size: 14px; }
#cardpool .pool-rates .rank-chip span { font-size: 23px; }
#cardpool .pool-rates .rank-chip:hover { border-color: var(--rank); }
#cardpool .pool-rates .rank-chip.selected { border-color: var(--rank); box-shadow: 0 0 0 1px var(--rank), 0 0 22px color-mix(in srgb, var(--rank) 40%, transparent); }
#cardpool .pool-mechanism { color: #d2e0e0; margin: 18px 0 22px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* Phân trang */
#cardpool .admin-list-pagination .button {
  border-radius: 999px;
  padding-inline: 18px;
  border-color: rgba(239, 203, 139, .42);
  background: rgba(7, 18, 23, .86);
  color: #f6e3bf;
}
#cardpool .admin-list-pagination .button:not(:disabled):hover { background: #8c1823; border-color: var(--gold); color: #fff; }

/* Thẻ: khung đêm, viền theo độ hiếm, tuyết đọng phía trên */
#cardpool .public-pool-grid { gap: 30px 20px; padding-top: 14px; }
.pool-card {
  --rank: #efcb8b;
  border-color: color-mix(in srgb, var(--rank) 48%, #22363c);
  border-radius: 14px;
  background:
    radial-gradient(85% 46% at 50% 36%, color-mix(in srgb, var(--rank) 40%, transparent), transparent 76%),
    linear-gradient(180deg, #13272e, #0a171c);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .34);
}
.pool-card:has(> .mini-tag[style*="#ff6b6b"]) { --rank: #ff6b6b; }
.pool-card:has(> .mini-tag[style*="#ffeb3b"]) { --rank: #ffeb3b; }
.pool-card:has(> .mini-tag[style*="#b985ff"]) { --rank: #b985ff; }
.pool-card:has(> .mini-tag[style*="#5aa9ff"]) { --rank: #5aa9ff; }
.pool-card:has(> .mini-tag[style*="#aeb7c2"]) { --rank: #aeb7c2; }
.pool-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -5px;
  right: -5px;
  height: 22px;
  background: url("/assets/season/christmas/cardsnow.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
  pointer-events: none;
}
.pool-card:nth-child(even)::before { transform: scaleX(-1); }
.pool-card:nth-child(3n)::before { height: 18px; }
.pool-card:hover {
  border-color: var(--rank);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .42), 0 0 26px color-mix(in srgb, var(--rank) 30%, transparent);
}
.pool-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pool-card .mini-tag {
  top: 20px;
  left: 13px;
  padding: 3px 10px;
  border-color: color-mix(in srgb, var(--rank) 60%, transparent);
  border-radius: 999px;
  background: rgba(5, 13, 17, .88);
  letter-spacing: .4px;
}
.pool-card .pool-pin { top: 20px; border-radius: 999px; }
.pool-card img { margin-top: 38px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.pool-card strong { color: #fbf6ea; line-height: 1.4; margin-bottom: 10px; }
.pool-card small { color: #abc3c8; line-height: 1.5; }
.pool-card > small:last-child { margin: auto 0 0; padding-top: 10px; border-top: 1px solid rgba(239, 203, 139, .18); }

@media (max-width: 1100px) {
  #cardpool .pool-stats { margin-top: 34px; }
  #cardpool .pool-rates { max-width: none; }
}
@media (max-width: 600px) {
  body:not(.shop-open) main::before { height: 33px; margin-bottom: -33px; background-position: 50% -3px; background-size: 220px 33px; }
  #cardpool::before { height: 520px; }
  #cardpool .pool-page-heading h1 { font-size: 27px; }
  #cardpool .pool-stats > div { min-height: 92px; padding: 18px 12px 12px; background: var(--box); }
  #cardpool .pool-stats > div::after { top: -21px; right: 6px; width: 40px; height: 33px; }
  #cardpool .pool-stats strong { font-size: 28px; }
  #cardpool .pool-rates .rank-chip { min-height: 70px; }
  #cardpool .pool-rates .rank-chip b { font-size: 12px; }
  #cardpool .pool-rates .rank-chip span { font-size: 18px; }
  #cardpool .public-pool-grid { gap: 24px 12px; }
  .pool-card .mini-tag { top: 17px; left: 10px; padding: 2px 8px; }
  .pool-card img { margin-top: 34px; }
}

/* ==========================================================
   Màn mở thẻ
   ========================================================== */
/* Nút chính của luồng quay: đỏ phủ tuyết */
#confirmBuy,
#nextCard,
#toCollection {
  border-color: #e4808a;
  border-radius: 8px;
  background: url("/assets/season/christmas/snowcap.svg") 0 0 / 80px 9px repeat-x, linear-gradient(115deg, #bd2836, var(--xmas-berry-deep));
  color: #fff6ea;
  padding-top: 15px;
}
#allResults,
#backToBanner { border-radius: 8px; border-color: rgba(239, 203, 139, .5); background: rgba(7, 18, 23, .86); color: #f6e3bf; }

/* Hộp xác nhận */
#confirmPull { padding-top: 56px; border-color: rgba(239, 203, 139, .4); border-radius: 12px; }
#confirmPull::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: url("/assets/season/christmas/garland.svg") 50% -4px / 280px 42px repeat-x;
  pointer-events: none;
}
#confirmPull .confirm-buy {
  border: 1px solid rgba(255, 226, 170, .35);
  border-radius: 10px;
  background: url("/assets/season/christmas/wrap.svg") 0 0 / 60px 60px, linear-gradient(120deg, #a5202f, #6f111c);
}
#confirmPull .confirm-buy .eyebrow { color: #ffe2ae; }
#confirmPull .confirm-buy h3 { color: #fff; }
#confirmPull .confirm-buy p { color: #fbe2d6; }

/* Cảnh nền: rừng tuyết, tuyết rơi */
#summon { background: #061218; }
.summon-bg {
  overflow: hidden;
  opacity: 1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(5, 14, 20, .08), rgba(4, 11, 16, .6) 82%),
    linear-gradient(rgba(4, 12, 18, .12), rgba(4, 12, 18, .34)),
    url("/assets/season/christmas/forest.svg") 50% 60% / cover no-repeat;
}
@media (min-width: 901px) {
  /* Dời cảnh để ngôi nhà không nằm sau vòng nguyệt quế */
  .summon-bg { background-size: auto, auto, 150% auto; background-position: 0 0, 0 0, 100% 100%; }
}
.summon-bg::before,
.summon-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
  will-change: transform;
}
.summon-bg::before {
  inset: -220px 0 0 -220px;
  background: url("/assets/season/christmas/snow-far.svg") 0 0 / 220px 220px;
  opacity: .75;
  animation: xmas-snow-far 18s linear infinite;
}
.summon-bg::after {
  inset: -320px 0 0 -320px;
  background: url("/assets/season/christmas/snow-near.svg") 0 0 / 320px 320px;
  opacity: .7;
  animation: xmas-snow-near 13s linear infinite;
}
/* Lớp vệt sao của trang tô nền tối; chỉ lấy phần sáng của nó */
#warp { mix-blend-mode: screen; }
.slow-mode .summon-bg::before,
.slow-mode .summon-bg::after { animation: none; }
.summon-label { color: #d3e2e2; }
.skip-btn { border-color: rgba(239, 203, 139, .45); border-radius: 999px; background: rgba(7, 18, 23, .7); color: #f6e3bf; }

/* Vòng nguyệt quế đóng khung thẻ, vẫn tỏa màu độ hiếm */
.summon-center { inset: 66px 0 226px; }
.energy-ring {
  width: min(64vh, 600px);
  height: min(64vh, 600px);
  border: 0;
  background: url("/assets/season/christmas/wreath.svg") center / contain no-repeat;
  box-shadow: 0 0 90px color-mix(in srgb, var(--rarity) 34%, transparent), inset 0 0 90px color-mix(in srgb, var(--rarity) 22%, transparent);
  transform: none;
}
.energy-ring::after {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: url("/assets/season/christmas/wreath-lights.svg") center / contain no-repeat;
  animation: xmas-twinkle 1.9s ease-in-out infinite alternate;
}
.summon-aura {
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--rarity) 34%, transparent), rgba(255, 207, 122, .1) 34%, transparent 52%);
}
.summon-flash { background: radial-gradient(#fffdf4, #ffe9b8 12%, rgba(255, 207, 122, .35) 34%, transparent 70%); }

/* Mặt sau thẻ là gói quà */
.card-back {
  border-color: #f0cf8c;
  background:
    linear-gradient(90deg, transparent 43%, #f3d48c 43% 46%, #dba94e 46% 54%, #f3d48c 54% 57%, transparent 57%),
    linear-gradient(180deg, transparent 45%, #f3d48c 45% 47%, #dba94e 47% 53%, #f3d48c 53% 55%, transparent 55%),
    url("/assets/season/christmas/wrap.svg") 0 0 / 46px 46px,
    linear-gradient(140deg, #c32a3a, #8c1823 55%, #6a0f1a);
}
.card-back::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62%;
  aspect-ratio: 90 / 74;
  background: url("/assets/season/christmas/bow.svg") center / contain no-repeat;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4));
  transform: translate(-50%, -56%);
}
.card-back::before { inset: auto; border: 0; top: 50%; left: 50%; }
.card-back::after { content: none; }
.card-back .back-emblem { visibility: hidden; }

.new-label {
  right: -44px;
  padding: 4px 12px;
  border: 1px solid #ffd9a0;
  border-radius: 999px;
  background: #b4232f;
  color: #fff6ea;
  font-size: 15px;
  font-weight: 700;
}
.result-rarity { font-weight: 700; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.result-name { text-shadow: 0 2px 18px rgba(0, 0, 0, .75); }
.result-set { color: #d3e2e2; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.summon-ui:not(.warping)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px -25px -34px;
  background: linear-gradient(transparent, rgba(4, 11, 16, .86) 34%);
  pointer-events: none;
}

/* Kết quả ×10 */
.summary-view h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.summary-view p { color: #d3e2e2; }
.results-grid { padding: 12px 6px 6px; gap: 24px 16px; }
.result-tile {
  border-color: color-mix(in srgb, var(--tile-color) 62%, #22363c);
  border-radius: 12px;
  background:
    radial-gradient(90% 52% at 50% 42%, color-mix(in srgb, var(--tile-color) 38%, transparent), transparent 76%),
    linear-gradient(180deg, #13272e, #0a171c);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .42);
  color: #fbf6ea;
}
.result-tile::before,
.collection-item::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -9px;
  left: -5px;
  right: -5px;
  height: 20px;
  background: url("/assets/season/christmas/cardsnow.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
  pointer-events: none;
}
.result-tile:nth-child(even)::before,
.collection-item:nth-child(even)::before { transform: scaleX(-1); }
.result-tile .mini-tag {
  top: 14px;
  left: 8px;
  padding: 2px 8px;
  border-color: color-mix(in srgb, var(--tile-color) 60%, transparent);
  border-radius: 999px;
  background: rgba(5, 13, 17, .9);
  color: var(--tile-color);
  font-size: 10px;
  letter-spacing: .3px;
}
.result-tile img { margin-top: 24px; }
.result-tile small { color: #c3d6d8; }
.result-tile:hover { border-color: var(--tile-color); }
.result-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ==========================================================
   Trang "Bộ sưu tập"
   ========================================================== */
#collection {
  position: relative;
  isolation: isolate;
  background:
    url("/assets/season/christmas/flakes.svg") 50% 0 / 260px 260px,
    linear-gradient(180deg, #0a1b22, #081419 60%, #06100f);
}
#collection::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 520px;
  background:
    linear-gradient(180deg, rgba(5, 15, 21, .45) 0%, rgba(5, 15, 21, .4) 40%, rgba(8, 21, 27, .6) 100%),
    url("/assets/season/christmas/forest.svg") 50% 58% / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 58%, transparent);
  mask-image: linear-gradient(#000 58%, transparent);
  pointer-events: none;
}
#collection .page-heading { margin-top: 18px; }
#collection .page-heading h1 { font-weight: 700; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
#collection .page-heading p { color: #d8e5e3; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
#collectionStat {
  position: relative;
  flex-shrink: 0;
  padding: 14px 64px 14px 20px;
  border: 1px solid rgba(255, 226, 170, .45);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent calc(100% - 42px), #e3b964 calc(100% - 42px) calc(100% - 28px), transparent calc(100% - 28px)),
    linear-gradient(135deg, #b32634, #6f111c);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .38);
}
#collectionStat::after {
  content: "";
  position: absolute;
  top: -20px;
  right: 9px;
  width: 52px;
  height: 43px;
  background: url("/assets/season/christmas/bow.svg") center / contain no-repeat;
  pointer-events: none;
}
#collection .toolbar {
  margin-bottom: 34px;
  border: 1px solid rgba(239, 203, 139, .32);
  border-radius: 12px;
  background: rgba(6, 17, 22, .88);
}
#collection .toolbar .actions { display: flex; align-items: center; gap: 10px; }
#collection .toolbar .actions .button { min-height: 44px; margin: 0; }
#collection .toolbar span { color: #d3e2e0; }
#collection .toolbar select { border-color: rgba(239, 203, 139, .34); border-radius: 8px; }
#collection .toolbar .button { border-radius: 999px; padding-inline: 18px; }
#collection .toolbar .button.secondary { border-color: rgba(239, 203, 139, .42); background: rgba(7, 18, 23, .86); color: #f6e3bf; }
#collection .toolbar .button:not(.secondary) { border-color: #e4808a; background: linear-gradient(115deg, #bd2836, var(--xmas-berry-deep)); color: #fff6ea; }
#collection .toolbar .button.secondary:not(:disabled):hover { border-color: var(--gold); background: #8c1823; color: #fff; }

#collection .collection-grid { gap: 32px 20px; padding-top: 4px; }
.collection-item {
  border-color: rgba(239, 203, 139, .28);
  border-radius: 14px;
  background:
    radial-gradient(85% 48% at 50% 40%, rgba(239, 203, 139, .2), transparent 74%),
    linear-gradient(180deg, #13272e, #0a171c);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .34);
}
.collection-item:hover { border-color: var(--gold); box-shadow: 0 16px 32px rgba(0, 0, 0, .42), 0 0 24px rgba(239, 203, 139, .2); }
.collection-item.selected {
  border-color: #ff9aa4;
  background:
    radial-gradient(85% 48% at 50% 40%, rgba(255, 154, 164, .26), transparent 74%),
    linear-gradient(180deg, #3d1820, #16131a);
  box-shadow: 0 0 0 1px #ff9aa4, 0 14px 30px rgba(0, 0, 0, .42);
}
.collection-item .mini-tag { top: 20px; left: 13px; padding: 3px 10px; border-color: rgba(239, 203, 139, .5); border-radius: 999px; background: rgba(5, 13, 17, .9); color: #f6e3bf; font-size: 11px; letter-spacing: .4px; }
.collection-item img { margin-top: 24px; }
.collection-item label { color: #fbf6ea; }
.collection-item .card-set { color: #abc3c8; }
.collection-item input { accent-color: #c8293a; }

/* Trạng thái trống: hộp quà chờ mở */
#collection .empty { border-color: rgba(239, 203, 139, .28); border-radius: 14px; background: radial-gradient(rgba(60, 20, 28, .5), rgba(8, 20, 25, .9)); }
#collection .empty .empty-icon svg { display: none; }
#collection .empty .empty-icon { width: 108px; height: 89px; margin: 0 auto 20px; background: url("/assets/season/christmas/bow.svg") center / contain no-repeat; }

@media (max-width: 900px) {
  #collection .page-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
  #collection::before { height: 440px; }
  #collectionStat { display: inline-block; margin-top: 26px; }
  #collection .collection-grid { gap: 26px 12px; }
  #collection .toolbar .actions { flex-wrap: wrap; }
  #collection .toolbar .button { padding-inline: 12px; }
  .collection-item .mini-tag { top: 17px; left: 10px; padding: 2px 8px; }
  .summon-center { inset: 72px 0 232px; }
  .energy-ring { width: min(94vw, 46vh); height: min(94vw, 46vh); }
  .new-label { right: -26px; font-size: 13px; padding: 3px 9px; }
  .results-grid { gap: 22px 12px; }
  #confirmPull { padding-top: 50px; }
}

/* ---------- Màn hình thấp và điện thoại: màn mở thẻ, bộ sưu tập ---------- */
.summary-view { justify-content: safe center; }
.skip-btn { white-space: nowrap; }
@media (max-height: 760px) and (min-width: 601px) {
  .energy-ring { width: 57vh; height: 57vh; }
  .summary-view { inset: 72px 5vw 92px; }
  .summary-view h2 { font-size: 25px; margin: 0; }
  .summary-view p { margin-bottom: 8px; }
  .results-grid { gap: 18px 14px; padding: 10px 6px 4px; }
  .result-tile { padding: 8px 8px 7px; }
  .result-tile img { height: clamp(78px, 13.5vh, 110px); margin-top: 20px; }
  .results-grid.single .result-tile img { height: 36vh; }
  .result-tile .mini-tag { top: 11px; }
  .result-tile strong { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .summary-actions { bottom: 20px; }
}
@media (max-width: 600px) {
  .collection-item img, .result-tile img { margin-top: 32px; }
  #collection #selectAll { flex: 1 1 100%; }
  #collection .toolbar .button { white-space: nowrap; }
}

/* ==========================================================
   Phần chờ trước khi thẻ xuất hiện: hộp quà
   Nhịp theo hoạt cảnh sẵn có: 2,4 giây ở lượt đầu. Mọi thứ trễ 0,28 giây
   để các thẻ sau (chỉ chờ 0,2 giây) không bị nháy hộp quà.
   ========================================================== */
#summon:has(.summary-view[hidden]):has(.reveal-card:not(.arriving, .revealed)) #warp { opacity: .22; }

/* Máy quay tiến vào, rồi lùi ra khi thẻ hiện */
.summon-bg { transform-origin: 50% 62%; transition: transform 1.5s ease-out; }
#summon:has(.summary-view[hidden]):has(.reveal-card:not(.arriving, .revealed)) .summon-bg { animation: xmas-push 2.4s ease-in both; }

/* Thân hộp và nắp */
.summon-center { --g: min(38vh, 320px); }
.summon-center:has(> .reveal-card:not(.arriving, .revealed))::before,
.summon-center:has(> .reveal-card:not(.arriving, .revealed))::after {
  content: "";
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.summon-center:has(> .reveal-card:not(.arriving, .revealed))::before {
  z-index: 3;
  top: calc(50% - var(--g) * .21);
  width: var(--g);
  height: calc(var(--g) * .84375);
  background: url("/assets/season/christmas/gift-box.svg") center / 100% 100% no-repeat;
  transform-origin: 50% 92%;
  animation: xmas-box 2.12s linear .28s both;
}
.summon-center:has(> .reveal-card:not(.arriving, .revealed))::after {
  z-index: 4;
  top: calc(50% - var(--g) * .55);
  width: calc(var(--g) * 1.125);
  height: calc(var(--g) * .55);
  background: url("/assets/season/christmas/gift-lid.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
  transform-origin: 50% 200%;
  animation: xmas-lid 2.12s linear .28s both;
}

/* Tia sáng vàng sau hộp */
.summon-center:has(> .reveal-card:not(.arriving, .revealed)) .summon-aura {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 120vh;
  height: 120vh;
  margin: -60vh 0 0 -60vh;
  background:
    radial-gradient(circle closest-side, rgba(255, 226, 160, .62), rgba(255, 200, 110, .2) 34%, transparent 62%),
    repeating-conic-gradient(rgba(255, 226, 160, .26) 0 7deg, transparent 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 22%, transparent 84%);
  mask-image: radial-gradient(circle closest-side, #000 22%, transparent 84%);
  animation: xmas-rays 2.12s ease-in .28s both;
}

/* Vòng nguyệt quế hiện dần quanh hộp */
.summon-center:has(> .reveal-card:not(.arriving, .revealed)) .energy-ring {
  /* vàng trung tính: chưa lộ độ hiếm khi còn chờ */
  box-shadow: 0 0 90px rgba(255, 207, 122, .3), inset 0 0 90px rgba(255, 207, 122, .2);
  animation: xmas-wreath 2.12s cubic-bezier(.2, .7, .2, 1) .28s both;
}

/* Bụi sáng xoáy, tụ dần vào hộp */
#summon:has(.summary-view[hidden]):has(.reveal-card:not(.arriving, .revealed))::before,
#summon:has(.summary-view[hidden]):has(.reveal-card:not(.arriving, .revealed))::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(50% - 80px);
  left: 50%;
  width: 92vh;
  height: 92vh;
  margin: -46vh 0 0 -46vh;
  background: url("/assets/season/christmas/swirl.svg") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  animation: xmas-swirl 2.12s ease-in .28s both;
}
#summon:has(.summary-view[hidden]):has(.reveal-card:not(.arriving, .revealed))::after { animation-name: xmas-swirl-back; }

/* Nắp bật: pháo tuyết */
.summon-flash.flash::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96vh;
  height: 96vh;
  margin: -48vh 0 0 -48vh;
  background: url("/assets/season/christmas/burst.svg") center / contain no-repeat;
  animation: xmas-burst .9s cubic-bezier(.1, .7, .3, 1) both;
}

/* Chữ chờ và thanh kẹo chạy đúng thời gian chờ */
.summon-ui.warping .result-name { color: #ffe6b5; font-size: 27px; letter-spacing: 0; }
.summon-ui.warping .result-set { margin-top: 6px; }
.summon-ui.warping::after {
  content: "";
  display: block;
  width: min(280px, 64vw);
  height: 12px;
  margin: 18px auto 0;
  border: 2px solid rgba(255, 246, 234, .85);
  border-radius: 999px;
  background:
    repeating-linear-gradient(-45deg, #cf3341 0 10px, #fff6ea 10px 20px) 0 0 / 0% 100% no-repeat,
    rgba(7, 18, 23, .75);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
  opacity: 0;
  animation: xmas-candy 2.12s linear .28s both;
}

@keyframes xmas-push { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes xmas-box {
  0% { opacity: 0; transform: translate(-50%, -46vh) rotate(-5deg); }
  5% { opacity: 1; }
  15% { transform: translate(-50%, 0) scale(1.09, .88); }
  20% { transform: translate(-50%, -5%) scale(.96, 1.05); }
  26% { transform: translate(-50%, 0) scale(1.02, .98); }
  30%, 36% { transform: translate(-50%, 0); }
  39% { transform: translate(-50%, 0) rotate(-2.5deg); }
  43% { transform: translate(-50%, 0) rotate(2.5deg); }
  47%, 54% { transform: translate(-50%, 0); }
  57% { transform: translate(-50%, 0) rotate(-4deg); }
  61% { transform: translate(-50%, 0) rotate(4deg); }
  65% { transform: translate(-50%, 0) rotate(-3deg); }
  69%, 73% { transform: translate(-50%, 0); }
  76% { transform: translate(-50%, 0) rotate(-5deg) scale(1.02); }
  79% { transform: translate(-50%, 0) rotate(5deg) scale(1.03); }
  82% { transform: translate(-50%, 0) rotate(-5deg) scale(1.04); }
  85% { transform: translate(-50%, 0) rotate(4deg) scale(1.05); }
  89% { transform: translate(-50%, 2%) scale(1.1, .92); }
  100% { opacity: 1; transform: translate(-50%, -2%) scale(1.08, 1.12); }
}
@keyframes xmas-lid {
  0% { opacity: 0; transform: translate(-50%, -46vh) rotate(-5deg); }
  5% { opacity: 1; }
  15% { transform: translate(-50%, 11%) scale(1.07, .9); }
  20% { transform: translate(-50%, -20%) rotate(3deg); }
  26% { transform: translate(-50%, 2%); }
  30%, 36% { transform: translate(-50%, 0); }
  39% { transform: translate(-50%, -4%) rotate(-2.5deg); }
  43% { transform: translate(-50%, 0) rotate(2.5deg); }
  47%, 54% { transform: translate(-50%, 0); }
  57% { transform: translate(-50%, -10%) rotate(-4deg); }
  61% { transform: translate(-50%, -3%) rotate(4.5deg); }
  65% { transform: translate(-50%, -8%) rotate(-3deg); }
  69%, 73% { transform: translate(-50%, 0); }
  76% { transform: translate(-50%, -12%) rotate(-5deg); }
  79% { transform: translate(-50%, -6%) rotate(5deg); }
  82% { transform: translate(-50%, -14%) rotate(-5deg); }
  85% { transform: translate(-50%, -8%) rotate(4deg); }
  89% { opacity: 1; transform: translate(-50%, 8%) scale(1.06, .94); }
  97% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -150%) rotate(16deg); }
}
@keyframes xmas-rays {
  0%, 28% { opacity: 0; transform: rotate(0) scale(.4); }
  60% { opacity: .5; transform: rotate(16deg) scale(.8); }
  100% { opacity: 1; transform: rotate(42deg) scale(1.1); }
}
@keyframes xmas-wreath {
  0%, 22% { opacity: 0; transform: rotate(-70deg) scale(.72); }
  70%, 100% { opacity: 1; transform: none; }
}
@keyframes xmas-swirl {
  0%, 18% { opacity: 0; transform: rotate(0) scale(1.35); }
  50% { opacity: .85; }
  100% { opacity: 1; transform: rotate(230deg) scale(.5); }
}
@keyframes xmas-swirl-back {
  0%, 26% { opacity: 0; transform: rotate(40deg) scale(1.55); }
  60% { opacity: .55; }
  100% { opacity: .8; transform: rotate(250deg) scale(.66); }
}
@keyframes xmas-burst {
  from { opacity: 1; transform: scale(.12) rotate(0); }
  60% { opacity: 1; }
  to { opacity: 0; transform: scale(1.45) rotate(14deg); }
}
@keyframes xmas-candy {
  0% { opacity: 0; background-size: 0% 100%, auto; }
  12% { opacity: 1; }
  100% { opacity: 1; background-size: 100% 100%, auto; }
}

@media (max-width: 600px) {
  .summon-center { --g: min(58vw, 30vh); }
  .summon-ui.warping .result-name { font-size: 22px; }
}
/* Trang đã rút ngắn phần chờ khi giảm chuyển động: không diễn hộp quà */
.slow-mode .summon-center::before,
.slow-mode .summon-center::after,
.slow-mode #summon::before,
.slow-mode #summon::after,
.slow-mode .summon-ui.warping::after { display: none !important; }
.slow-mode #summon .summon-bg { animation: none; transition: none; }
/* Các thẻ sau chờ quá ngắn: thanh kẹo chỉ hiện khi còn chờ, vẫn giữ chỗ để chữ không nhảy */
#summon:not(:has(.reveal-card:not(.arriving, .revealed))) .summon-ui.warping::after { visibility: hidden; }

/* ##########################################################
   CHỈ SỬA CHỮ: màu, độ đậm, cỡ, giãn cách, viền tối mảnh.
   Không đổi nền, khung, khoảng cách hay bố cục.
   ########################################################## */
:root { --ink: #ffffff; --muted: #e3ece7; }

/* Chữ nằm trên tranh: viền tối gọn để tách khỏi nền */
.crumb, .banner-copy, .banner-links .subtle-btn, .menu-heading,
.page-heading, .pool-page-heading, .payment-history-head, .pool-mechanism, .pool-tools label, .admin-page-status,
.summon-label, .result-rarity, .result-name, .result-set, .summary-view h2, .summary-view p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .7);
}
.banner-copy .rank-chip, .banner-copy .banner-top-hits, .pool-page-heading .button, .page-heading .button, .payment-history-head .button, #collectionStat { text-shadow: none; }

/* ---------- Chung ---------- */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .4px; }
.tiny, .stat { color: #e3ece7; font-size: 14px; font-weight: 600; }
.button { font-size: 15px; font-weight: 700; }
.button.small { font-size: 14px; font-weight: 700; }
.button.secondary { color: #ffffff; }
.notice { color: #ffffff; font-size: 15px; font-weight: 600; }
input, select, textarea { color: #ffffff; font-size: 16px; font-weight: 600; }
input::placeholder, textarea::placeholder { color: #c3d2ca; opacity: 1; }
.toast { font-size: 15px; font-weight: 700; }

/* ---------- Thanh trên cùng ---------- */
.brand-wordmark { color: #ffffff; font-weight: 700; }
.brand-hyphen, .brand-tcg { color: #ffdc9c; }
.nav-btn { color: #ffffff; font-size: 13px; font-weight: 600; letter-spacing: -.1px; }
.nav-btn.active { color: #ffdc9c; font-weight: 600; }
.nav-count { color: #ffffff; font-size: 13px; font-weight: 700; }
.wallet small { color: #f1f6f3; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.wallet strong { color: #ffffff; font-size: 15px; font-weight: 700; }
.account-label { color: #ffffff; font-size: 12px; font-weight: 600; }
.account-label b { color: #ffdc9c; font-size: 12px; letter-spacing: 0; }
.account-tools .button { font-size: 13px; }
.login-gate span { color: #ffffff; font-size: 16px; font-weight: 600; }
.login-gate .button { font-size: 14px; }
.demo-strip { color: #ffffff; font-size: 14px; font-weight: 600; }
.demo-strip b { color: #ffdc9c; font-size: 13px; letter-spacing: 0; }
footer { color: #e3ece7; font-size: 13px; font-weight: 600; }
footer a, footer .subtle-btn { color: #ffdc9c; font-size: 13px; font-weight: 600; }

/* ---------- Trang chủ ---------- */
.menu-heading { color: #ffffff; font-size: 14px; font-weight: 700; letter-spacing: .4px; }
.banner-caption strong { color: #ffffff; font-size: 13px; font-weight: 700; letter-spacing: -.2px; }
.banner-thumb .banner-type { color: #1a0f00; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.banner-thumb .banner-number { color: #ffffff; font-size: 17px; font-weight: 700; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .8); }
.crumb { color: #ffffff; font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.crumb em { color: #ffdc9c; font-weight: 700; }
.banner-copy .eyebrow { color: #e9f9dc; font-size: 14px; font-weight: 700; letter-spacing: .4px; }
.banner-copy .round-label { color: #ffe9bf; font-size: 13px; font-weight: 700; }
.banner-copy h1 { color: #ffffff; font-weight: 700; letter-spacing: -.4px; text-shadow: 0 2px 3px rgba(0, 0, 0, .9), 0 0 18px rgba(0, 0, 0, .65); }
.banner-capacity { color: #ffffff; font-size: 16px; font-weight: 600; }
.banner-capacity strong { color: #e0f8cc; font-size: 27px; font-weight: 700; }
.rank-strip .rank-chip b, .pool-rates .rank-chip b { font-size: 14px; font-weight: 700; }
.rank-strip .rank-chip span { color: #ffffff; font-size: 21px; font-weight: 700; }
.stock-mode-chip { color: #ffffff; font-size: 14px; font-weight: 600; }
.stock-mode-chip .finite { color: #ffe9bf; }
.top-hit-label { color: #ffdc9c; font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.banner-top-hits button span { color: #ffffff; font-size: 12px; font-weight: 600; }
.banner-links .subtle-btn { color: #ffffff; font-size: 15px; font-weight: 600; }
.banner-links .subtle-btn:disabled { opacity: .72; }
.card-scene .feature-caption .feature-name { color: #ffffff; font-size: 17px; font-weight: 700; }
.dock-context strong { color: #ffffff; font-size: 19px; font-weight: 700; }
#dockStatus { color: #ffdc9c; font-size: 16px; font-weight: 700; }
.dock-actions .summon-btn strong { font-size: 20px; font-weight: 700; }
.dock-actions .summon-btn span { font-size: 15px; font-weight: 700; }
.dock-actions .summon-btn:disabled { opacity: .72; }
.shop-recent-head h2 { color: #ffffff; font-size: 20px; font-weight: 700; }
.shop-recent-head h2 span, .recent-demo-label { color: #e3ece7; font-size: 14px; font-weight: 600; }
.recent-placeholder { color: #ffffff; font-size: 15px; font-weight: 600; }
.filter-tabs button, .auth-tabs button { color: #ffffff; font-size: 14px; font-weight: 600; }
.filter-tabs button.active, .auth-tabs button.active { color: #ffdc9c; font-weight: 700; }

/* ---------- Các trang ---------- */
:is(#cardpool, #collection, #orders, #payments) h1 { color: #ffffff; font-weight: 700; letter-spacing: -.4px; text-shadow: 0 2px 3px rgba(0, 0, 0, .9), 0 0 18px rgba(0, 0, 0, .65); }
:is(#cardpool, #collection, #orders, #payments) .eyebrow { color: #ffdc9c; }
:is(.page-heading, .payment-history-head) p { color: #ffffff; font-size: 16px; font-weight: 600; }
#cardpool .pool-tools label { color: #ffffff; font-size: 16px; font-weight: 700; }
#cardpool .pool-stats small { color: #ffffff; font-size: 14px; font-weight: 700; letter-spacing: 0; }
#cardpool .pool-rates .rank-chip b { font-size: 15px; font-weight: 700; }
#cardpool .pool-rates .rank-chip span { color: #ffffff; font-size: 24px; font-weight: 700; }
#cardpool .pool-mechanism { color: #ffffff; font-size: 15px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .7); }
#cardpool .admin-list-pagination .button { color: #ffefcf; font-size: 14px; }
#cardpool .admin-page-status { color: #ffffff; font-size: 15px; font-weight: 600; }
#cardpool .subtle-btn { color: #ffffff; font-size: 15px; font-weight: 600; }
.pool-card .mini-tag, .collection-item .mini-tag, .result-tile .mini-tag { font-size: 13px; font-weight: 700; letter-spacing: 0; }
.pool-card strong { color: #ffffff; font-size: 16px; font-weight: 700; }
.pool-card small { color: #e3ece7; font-size: 14px; font-weight: 600; }
.pool-card-bottom { color: #ffffff; font-size: 14px; font-weight: 600; }
#collectionStat { font-size: 15px; font-weight: 700; }
#collection .toolbar span { color: #ffffff; font-size: 15px; font-weight: 600; }
#collection .toolbar select { font-size: 14px; }
#collection .toolbar .button { font-size: 14px; }
.collection-item label { color: #ffffff; font-size: 15px; }
.collection-item label strong { font-weight: 700; }
.collection-item .card-set { color: #e3ece7; font-size: 14px; font-weight: 600; }
.collection-item .card-status { color: #ffdc9c; font-size: 14px; font-weight: 700; }
.empty h2 { color: #ffffff; font-weight: 700; }
.empty p { color: #ffffff; font-size: 16px; font-weight: 600; }
.history-table th { color: #ffdc9c; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.history-table td { color: #ffffff; font-size: 15px; font-weight: 600; }

/* ---------- Hộp thoại ---------- */
dialog { color: #ffffff; }
.dialog-head h2 { color: #ffffff; font-weight: 700; }
.dialog-copy { color: #ffffff; font-size: 16px; font-weight: 600; }
dialog label { color: #ffffff; font-size: 15px; font-weight: 600; }
.confirm-line { color: #ffffff; font-size: 16px; font-weight: 600; }
.confirm-line strong { color: #ffdc9c; font-size: 18px; font-weight: 700; }
#confirmPull .confirm-buy .eyebrow { font-size: 13px !important; }
#confirmPull .confirm-buy h3 { color: #ffffff; font-weight: 700; }
#confirmPull .confirm-buy p { color: #ffffff; font-size: 15px; font-weight: 600; }
.odds-summary small, .detail-info small, .detail-info p { color: #ffffff; font-size: 14px; font-weight: 600; }
.detail-info .notice { font-size: 14px; }

/* ---------- Màn mở thẻ ---------- */
.summon-label { color: #ffffff; font-size: 14px; font-weight: 600; letter-spacing: .2px; }
.summon-label span { color: #ffdc9c; font-weight: 700; }
.skip-btn { color: #ffffff; font-size: 14px; font-weight: 700; }
.result-rarity { font-size: 15px; font-weight: 700; letter-spacing: .6px; }
.result-name { color: #ffffff; font-weight: 700; text-shadow: 0 2px 3px rgba(0, 0, 0, .95), 0 0 18px rgba(0, 0, 0, .8); }
.result-set { color: #ffffff; font-size: 15px; font-weight: 600; }
.summon-ui.warping .result-name { color: #ffefcf; }
.summon-ui.warping .result-set { color: #ffffff; }
.summary-view h2 { color: #ffffff; font-weight: 700; }
.summary-view p { color: #ffffff; font-size: 15px; font-weight: 600; }
.result-tile strong { color: #ffffff; font-size: 13px; font-weight: 700; }
.result-tile small { color: #e3ece7; font-size: 13px; font-weight: 600; }
#confirmBuy, #nextCard, #toCollection, #allResults, #backToBanner { font-size: 16px; font-weight: 700; }

/* ---------- Màn hẹp: giữ cỡ vừa ô, không để tràn ---------- */
@media (max-width: 1300px) {
  .rank-strip .rank-chip b { font-size: 13px; letter-spacing: -.2px; }
}
@media (max-width: 1180px) {
  .rank-strip .rank-chip b { font-size: 12px; letter-spacing: -.3px; }
  .rank-strip .rank-chip span { font-size: 19px; }
  .banner-caption strong { font-size: 13px; }
}
@media (max-width: 600px) {
  .rank-strip .rank-chip b { font-size: 13px; letter-spacing: 0; }
  .wallet strong { font-size: 15px; }
  .login-gate span { font-size: 15px; }
  .banner-caption strong { font-size: 12px; white-space: normal; }
  .banner-thumb .banner-type { font-size: 9px; }
  .banner-thumb .banner-number { font-size: 14px; }
  .banner-copy .eyebrow, #cardpool .pool-page-heading .eyebrow, .crumb { font-size: 13px; letter-spacing: .2px; }
  .banner-capacity { font-size: 15px; }
  .banner-capacity strong { font-size: 23px; }
  .stock-mode-chip { font-size: 13px; }
  .banner-links .subtle-btn { font-size: 14px; }
  .card-scene .feature-caption .feature-name { font-size: 15px; }
  .dock-actions .summon-btn strong { font-size: 18px; }
  .dock-actions .summon-btn span { font-size: 14px; }
  #cardpool .pool-stats small { font-size: 13px; }
  #cardpool .pool-rates .rank-chip b { font-size: 13px; }
  #cardpool .pool-rates .rank-chip span { font-size: 19px; }
  .pool-card strong, .collection-item label { font-size: 15px; }
  .pool-card small, .collection-item .card-set, .collection-item .card-status { font-size: 13px; }
  .history-table th, .history-table td { font-size: 13px; }
  .summon-label { font-size: 12px; letter-spacing: 0; }
  .skip-btn { font-size: 13px; }
  .result-set { font-size: 14px; }
  .summary-view h2 { font-size: 22px; }
}

/* Menu không đủ chỗ: xuống hàng riêng (trang vốn đã làm vậy từ 1100px) để chữ không bị cắt; thanh cuộn nếu có thì mảnh và tối */
.topnav { scrollbar-width: thin; scrollbar-color: #6f8f7e transparent; }
@media (min-width: 1101px) and (max-width: 1420px) { .topnav { order: 3; flex: 1 1 100%; width: 100%; } }
@media (min-width: 1421px) and (max-width: 1560px) { .topnav { gap: 13px; } }

/* Phần chung của 3 kiểu: bỏ bớt in đậm, chỉ nhấn vào tiêu đề, con số và nút. Không đụng nền. */
.crumb, .crumb span, .banner-capacity, .stock-mode-chip, .banner-links .subtle-btn,
.notice, .tiny, .stat, .demo-strip, footer, .login-gate span, .account-label,
.page-heading p, .payment-history-head p, #cardpool .pool-mechanism, #cardpool .admin-page-status,
.pool-card small, .collection-item .card-set, .history-table td, .empty p, .dialog-copy, dialog label,
.confirm-line, #confirmPull .confirm-buy p, .result-set, .summary-view p, .result-tile small, .wallet small,
.banner-top-hits button span, #collection .toolbar span { font-weight: 400; }
.crumb { font-size: 13px; letter-spacing: .6px; }
.banner-capacity strong { font-size: 34px; line-height: 1; letter-spacing: -.8px; }
.rank-strip .rank-chip b, #cardpool .pool-rates .rank-chip b { font-weight: 600; }
.rank-strip .rank-chip span { font-size: 22px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.pool-card strong, .collection-item label strong, .result-tile strong { font-weight: 600; line-height: 1.4; }
.pool-card small, .collection-item .card-set { font-size: 13px; line-height: 1.55; color: #dbe7e0; }
.nav-btn { font-weight: 400; color: #f1f6f3; }
.nav-btn.active { font-weight: 600; }
.wallet strong, .confirm-line strong, .dock-actions .summon-btn span { font-variant-numeric: tabular-nums; }
.dock-actions .summon-btn strong { letter-spacing: -.2px; }
.dock-actions .summon-btn span { font-weight: 600; }
.banner-copy h1, :is(#cardpool, #collection, #orders, #payments) h1, .result-name, .summary-view h2 { line-height: 1.16; }
@media (max-width: 600px) { .banner-capacity strong { font-size: 28px; } }

/* KIỂU B — Cổ tích: tiêu đề có chân, như bìa sách Giáng Sinh; nhãn nghiêng mềm.
   Bản xem thử dùng font có sẵn trên Windows; nếu chọn sẽ thay bằng font web cùng kiểu. */
:root { --display: "Palatino Linotype", Palatino, "Book Antiqua", Cambria, Georgia, serif; }
.banner-copy h1, :is(#cardpool, #collection, #orders, #payments) h1, .result-name, .summary-view h2, .dialog-head h2, .empty h2, .shop-recent-head h2 {
  color: #fff7e6;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.3px;
}
.banner-copy h1 { font-size: clamp(36px, 3.9vw, 61px); line-height: 1.1; }
:is(#cardpool, #collection, #orders, #payments) h1 { font-size: 44px; }
.eyebrow, .banner-copy .eyebrow, :is(#cardpool, #collection, #orders, #payments) .eyebrow { color: #ffe0a3; font-family: var(--display); font-size: 15px; font-style: italic; font-weight: 400; letter-spacing: .8px; }
.eyebrow::before { content: "✦"; width: auto; height: auto; background: none; font-size: 13px; font-style: normal; }
.crumb, .crumb em { font-family: var(--display); font-size: 14px; letter-spacing: .6px; }
.crumb em { color: #ffe0a3; font-style: italic; font-weight: 400; }
.menu-heading, .top-hit-label { color: #ffe0a3; font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .6px; }
.banner-capacity strong, .rank-strip .rank-chip span, #cardpool .pool-rates .rank-chip span, #cardpool .pool-stats strong { font-family: var(--display); font-weight: 700; }
.banner-capacity strong { color: #fff7e6; font-size: 38px; }
.rank-strip .rank-chip span { font-size: 24px; }
.card-scene .feature-caption .feature-name, .dock-context strong { color: #fff1d3; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.collection-item .card-status { color: #ffe0a3; font-weight: 600; }
@media (max-width: 600px) { .banner-copy h1 { font-size: 36px; } :is(#cardpool, #collection, #orders, #payments) h1 { font-size: 32px; } .card-scene .feature-caption .feature-name { font-size: 16px; } }
#confirmPull .confirm-buy h3, .detail-info h2, .section-head h2 { font-family: var(--display); font-weight: 700; letter-spacing: 0; }
.history-table th { font-family: var(--display); font-size: 16px; font-weight: 700; color: #ffe0a3; }
@media (max-width: 600px) { .banner-capacity strong { font-size: 30px; } .rank-strip .rank-chip span { font-size: 21px; } .history-table th { font-size: 14px; } }
