#tcg-card-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#tcg-card-modal.cm-visible {
  opacity: 1;
  pointer-events: auto;
}
#tcg-card-modal .cm-bg {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, 0.88);
  backdrop-filter: blur(28px) saturate(1.4);
}
#tcg-card-modal .cm-wrap {
  position: relative;
  z-index: 2;
  width: 92vw;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 45% 55%;
  border-radius: 24px;
  overflow: hidden;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#tcg-card-modal.cm-visible .cm-wrap {
  transform: translateY(0) scale(1);
}
.cm-left {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}
.cm-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 8s ease;
}
#tcg-card-modal.cm-visible .cm-left img {
  transform: scale(1.06);
}
.cm-left-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 60%, rgba(4, 4, 10, 0.95) 100%),
    linear-gradient(to top, rgba(4, 4, 10, 0.7) 0%, transparent 40%);
}
.cm-left-placeholder {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.15;
  background: linear-gradient(135deg, #0b0c15, #111220);
}
.cm-rarity-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.cm-right {
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  background: var(--surface, #111220);
  position: relative;
  overflow: hidden;
}
.cm-eyebrow {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.56rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.cm-name {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 2.8rem;
  line-height: 0.95;
  font-weight: 800;
  color: var(--text, #eeeef8);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.cm-desc {
  font-size: 0.72rem;
  color: var(--text2, #8b8fa8);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  border-left: 2px solid;
  padding-left: 0.9rem;
  opacity: 0.9;
}
.cm-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 1.75rem;
  flex: 1;
  justify-content: center;
}
.cm-stat {
  display: grid;
  grid-template-columns: 1.4rem 1fr 3rem;
  align-items: center;
  gap: .52rem;
  padding: .7rem 0;
}
.cm-stat-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cm-stat-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
  padding-left: 1.2rem; 
}
.cm-stat-label {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3, #3a3d5c);
}
.cm-stat-track {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.cm-stat-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cm-stat-val {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text, #eeeef8);
  min-width: 2.5rem;
  text-align: right;
}
.cm-actions {
  display: flex;
  gap: 10px;
}
.cm-actions .btn {
  flex: 1;
  font-size: 0.72rem;
  justify-content: center;
}
.cm-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  font-size: 1rem;
  transition: all 0.2s;
}
.cm-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: scale(1.1);
}
.tcg-card-locked {
  cursor: default;
  position: relative;
  overflow: hidden;
}
.tcg-card-locked .tcg-card-lock-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tcg-card-locked .tcg-card-lock-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tcg-card-lock-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s;
}
.tcg-card-locked:hover .tcg-card-lock-icon {
  color: rgba(255, 255, 255, 0.35);
}
.tcg-pack-card {
  position: relative;
  background: var(--surface, #111220);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}
.tcg-pack-card:hover {
  transform: translateY(-6px) scale(1.01);
}
.tcg-pack-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tcg-pack-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b0c15, #111220);
}
.tcg-pack-visual-glow {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background: radial-gradient(ellipse at 50% 60%, var(--pc, #8b5cf6) 0%, transparent 65%);
  filter: blur(28px);
}
.tcg-pack-visual-icon {
  position: relative;
  z-index: 2;
  animation: packFloat 3.5s ease-in-out infinite;
}
.tcg-pack-visual-icon img {
  width: 130px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px var(--pc, #8b5cf6)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
  border: none;
  background: none;
}
.tcg-pack-visual-icon.is-emoji {
  font-size: 4.5rem;
  filter: drop-shadow(0 0 20px var(--pc, #8b5cf6));
}
@keyframes packFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
.tcg-pack-visual-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: packShine 4s ease-in-out infinite;
}
@keyframes packShine {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}
.tcg-pack-body {
  padding: 1.5rem;
}
.tcg-pack-name {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text, #eeeef8);
  margin-bottom: 0.3rem;
}
.tcg-pack-desc {
  font-size: 0.8rem;
  color: var(--text2, #8b8fa8);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.tcg-pack-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.9rem;
}
.tcg-pack-count {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.58rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3, #3a3d5c);
}
.tcg-pack-cost {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.72rem;
  font-weight: 700;
}
.tcg-pack-rarities {
  display: flex;
  gap: 4px;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.tcg-rarity-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.48rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}
.tcg-rarity-pill b {
  margin-left: 3px;
  font-weight: 700;
}
.tcg-pity-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 0.9rem;
}
.tcg-pity-info {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.42rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
  cursor: default;
}
.tcg-pack-open-btn,
.tcg-pack-locked-btn,
.tcg-pack-cooldown-btn,
.tcg-pack-reward-btn {
  width: 100%;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tcg-pack-open-btn {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.tcg-pack-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}
.tcg-pack-reward-btn {
  margin-top: 8px;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--reward-color, #f59e0b) 55%, rgba(255,255,255,0.12));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--reward-color, #f59e0b) 38%, transparent), rgba(255,255,255,0.06)),
    rgba(255,255,255,0.045);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--reward-color, #f59e0b) 20%, transparent);
}
.tcg-pack-reward-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--reward-color, #f59e0b) 78%, #fff);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--reward-color, #f59e0b) 28%, transparent);
}
.tcg-pack-reward-btn:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}
.tcg-pack-locked-btn {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}
.tcg-pack-cooldown-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 0, 0.12);
  background: rgba(255, 255, 255, 0.025);
}
.tcg-pack-cooldown-bar-track {
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
}
.tcg-pack-cooldown-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 200, 0, 0.35), rgba(255, 200, 0, 0.65));
  transition: width 1s linear;
}
.tcg-pack-cooldown-btn {
  padding: 0.8rem 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 200, 0, 0.5);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tcg-pack-cooldown-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tcg-cooldown-timer {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 215, 70, 0.85);
}
.tcg-pack-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.52rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  padding: 2px 8px;
}
.tcg-reward-booster-panel {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}
.tcg-reward-booster-panel strong {
  display: block;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #f59e0b;
}
.tcg-reward-booster-kicker {
  display: block;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  margin-bottom: 3px;
}
.tcg-reward-booster-panel p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  line-height: 1.45;
}
.deck-builder {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.deck-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 600px) {
  .deck-collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .deck-collection-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.deck-card-pick {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  cursor: pointer;
  background: var(--surface2, #171829);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s;
  border: none;
}
.deck-card-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.deck-card-pick-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.2;
}
.deck-card-pick:hover {
  transform: translateY(-4px) scale(1.06);
  filter: brightness(1.1);
}
.deck-card-pick.in-deck {
  outline: 3px solid #8b5cf6;
  filter: brightness(1.05) drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}
.deck-card-pick-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
  padding: 0.4rem;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.44rem;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  transition: opacity 0.2s;
}
.deck-card-pick:hover .deck-card-pick-overlay {
  opacity: 1;
}
.deck-panel {
  background: var(--surface, #111220);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.deck-panel-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deck-panel-title {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.deck-panel-count {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.62rem;
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  padding: 3px 10px;
}
.deck-slots {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deck-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  min-height: 52px;
}
.deck-slot.filled {
  background: rgba(139, 92, 246, 0.06);
  border-style: solid;
  border-color: rgba(139, 92, 246, 0.2);
}
.deck-slot-thumb {
  width: 30px;
  height: 45px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface2, #171829);
}
.deck-slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deck-slot-info { flex: 1; min-width: 0; }
.deck-slot-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text, #eeeef8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deck-slot-rarity {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.44rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.deck-slot-remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.08);
  border: none;
  color: rgba(239, 68, 68, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.15s;
}
.deck-slot-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.deck-slot-empty {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.5rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  width: 100%;
  text-align: center;
}
.deck-actions {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 8px;
}
.deck-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.62rem;
}
.deck-team-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.deck-team-card-thumb {
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface2, #171829);
  position: relative;
}
.deck-team-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deck-team-card-thumb-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  padding: .35rem .3rem .2rem;
  font-size: .52rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.deck-ready-btn {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  width: 100%;
}
.deck-ready-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.55);
}
.deck-synergy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  margin-top: 4px;
}
.deck-panel-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.deck-fight-btn {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: #fff;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.deck-fight-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.55);
}
.deck-fight-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.deck-team-summary {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.deck-team-summary-title {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.52rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.deck-team-synergy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}
.deck-team-synergy strong {
  color: #a78bfa;
}
.deck-team-warning {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.52rem;
  color: rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  margin-top: 0.25rem;
}
.battle-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-height: min(360px, 70dvh);
  gap: 1rem;
  padding: 2.5rem 2rem;
}
.battle-intro-icon {
  font-size: 3.5rem;
}
.battle-intro-title {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 2.2rem;
  letter-spacing: 3px;
}
.battle-intro-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 380px;
  line-height: 1.6;
}
.battle-vs-area {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  flex: 1;
}
.battle-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.battle-side-label {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.52rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.battle-card-display {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: var(--surface2, #171829);
  position: relative;
}
.battle-card-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.battle-card-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text, #eeeef8);
  text-align: center;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.battle-vs-sep {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 2rem;
  color: #8b5cf6;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}
.battle-log {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.battle-log-entry {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}
.battle-log-entry.log-win  { color: #4ade80; }
.battle-log-entry.log-lose { color: #f87171; }
.battle-log-entry.log-info { color: rgba(255, 255, 255, 0.25); }
.battle-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.battle-actions .btn {
  font-size: 0.68rem;
  min-width: 120px;
  justify-content: center;
}
.battle-hp-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.battle-hp-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.5s ease;
}
.battle-hp-fill.low   { background: linear-gradient(90deg, #ef4444, #f87171); }
.battle-hp-fill.mid   { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.battle-result {
  text-align: center;
  padding: 2.5rem 2rem;
}
.battle-result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.battle-result-title {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 2.5rem;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}
.battle-result-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 1.5rem;
}
.battle-result-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.brs { text-align: center; }
.brs-val {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 1.6rem;
  color: #fff;
}
.brs-lbl {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.5rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}
.battle-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1.5rem;
}
.battle-turn-timer {
  display: block;
  min-height: 1em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,.55);
  text-align: right;
  margin-bottom: .4rem;
}
.battle-turn-timer.danger {
  color: #ef4444;
  animation: timerPulse .5s ease infinite;
}
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes collectionHoloMove {
  0%,100%  { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes legendaryGlow {
  0%,100% { box-shadow: 0 0 0 1px rgba(242,194,78,.18), 0 0 24px rgba(242,194,78,.22), 0 8px 20px rgba(0,0,0,.5); filter: hue-rotate(0deg) brightness(1.04); }
  50%      { box-shadow: 0 0 0 2px rgba(242,194,78,.55), 0 0 48px rgba(242,194,78,.45), 0 8px 20px rgba(0,0,0,.5); filter: hue-rotate(18deg) brightness(1.14); }
}
@keyframes winnerLanGlow {
  0%,100% { box-shadow: 0 0 0 1px rgba(74,222,128,.22), 0 0 20px rgba(74,222,128,.28), 0 6px 16px rgba(0,0,0,.5); filter: brightness(1.03); }
  50%      { box-shadow: 0 0 0 2px rgba(74,222,128,.65), 0 0 48px rgba(74,222,128,.55), 0 0 80px rgba(22,163,74,.25), 0 6px 16px rgba(0,0,0,.5); filter: brightness(1.12); }
}
.tcg-card-item.holo-legendary,
.deck-card-pick.holo-legendary {
  animation: legendaryGlow 2.6s ease-in-out infinite;
}
.tcg-card-item.holo-legendary::after,
.deck-card-pick.holo-legendary::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none; z-index: 4;
  background: linear-gradient(115deg, transparent 18%, rgba(242,194,78,.10) 32%, rgba(255,248,180,.30) 50%, rgba(242,194,78,.10) 68%, transparent 82%);
  background-size: 200% 200%;
  animation: collectionHoloMove 2.6s ease-in-out infinite;
  mix-blend-mode: screen;
}
.tcg-card-item.holo-winner_lan,
.deck-card-pick.holo-winner_lan {
  animation: winnerLanGlow 2.4s ease-in-out infinite;
  border-color: rgba(74,222,128,.40) !important;
}
.tcg-card-item.holo-winner_lan::after,
.deck-card-pick.holo-winner_lan::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none; z-index: 4;
  background: linear-gradient(115deg, transparent 20%, rgba(74,222,128,.10) 35%, rgba(187,247,208,.30) 50%, rgba(74,222,128,.15) 65%, transparent 80%);
  background-size: 220% 220%;
  animation: collectionHoloMove 2.4s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes mvpGlow {
  0%,100% {
    box-shadow:
      0 0 0 1px rgba(168,85,247,.22),
      0 0 18px rgba(168,85,247,.20),
      0 0 40px rgba(124,58,237,.08),
      0 8px 20px rgba(0,0,0,.55);
    filter: brightness(1.02);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(168,85,247,.60),
      0 0 36px rgba(168,85,247,.45),
      0 0 70px rgba(124,58,237,.22),
      0 8px 20px rgba(0,0,0,.55);
    filter: brightness(1.10);
  }
}
@keyframes mvpHoloShift {
  0%   { background-position: 0% 50%;   opacity: .85; }
  50%  { background-position: 100% 50%; opacity: 1;   }
  100% { background-position: 0% 50%;   opacity: .85; }
}
@keyframes mvpStarsFloat {
  0%,100% { transform: translateY(0px) rotate(0deg);   opacity: .7; }
  33%      { transform: translateY(-3px) rotate(5deg);  opacity: 1;  }
  66%      { transform: translateY(2px) rotate(-4deg);  opacity: .8; }
}
@keyframes mvpBadgePulse {
  0%,100% { box-shadow: 0 0 6px rgba(168,85,247,.4);  transform: scale(1);    }
  50%      { box-shadow: 0 0 18px rgba(168,85,247,.9); transform: scale(1.06); }
}
.tcg-card-item.holo-mvp,
.deck-card-pick.holo-mvp {
  animation: mvpGlow 2.2s ease-in-out infinite;
  border-color: rgba(168,85,247,.35) !important;
}
.tcg-card-item.holo-mvp::after,
.deck-card-pick.holo-mvp::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none; z-index: 4;
  background: linear-gradient(
    125deg,
    transparent 15%,
    rgba(168,85,247,.07) 28%,
    rgba(216,180,254,.22) 42%,
    rgba(168,85,247,.30) 50%,
    rgba(192,132,252,.16) 60%,
    rgba(124,58,237,.08) 72%,
    transparent 85%
  );
  background-size: 220% 220%;
  animation: mvpHoloShift 2.2s ease-in-out infinite;
  mix-blend-mode: screen;
}
.tcg-card-item.holo-mvp .tcg-mvp-crown,
.deck-card-pick.holo-mvp .tcg-mvp-crown {
  animation: mvpStarsFloat 3s ease-in-out infinite;
}
.tcg-mvp-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(126,34,206,.85), rgba(88,28,135,.85));
  border: 1px solid rgba(168,85,247,.55);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: .42rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f3e8ff;
  text-shadow: 0 0 8px rgba(168,85,247,.8);
  animation: mvpBadgePulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
.tcg-mvp-badge::before {
  content: '★';
  font-size: .54rem;
  color: #c084fc;
  filter: drop-shadow(0 0 4px rgba(168,85,247,1));
}
.tcg-card-item.rarity-mvp {
  border-color: rgba(168,85,247,.30);
}
.tcg-reveal-card.flipped.rarity-mvp {
  box-shadow: 0 0 32px rgba(168,85,247,.38), 0 10px 40px rgba(0,0,0,.6);
}
@keyframes winnerBadgePulse {
  0%,100% { box-shadow: 0 0 8px rgba(74,222,128,.5), 0 0 20px rgba(74,222,128,.25); transform: scale(1); }
  50%      { box-shadow: 0 0 18px rgba(74,222,128,1), 0 0 40px rgba(74,222,128,.5);  transform: scale(1.05); }
}
@keyframes winnerShine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.tcg-winner-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(21,128,61,.90), rgba(5,150,105,.90));
  border: 1px solid rgba(74,222,128,.65);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: .42rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #d1fae5;
  text-shadow: 0 0 10px rgba(74,222,128,.9);
  animation: winnerBadgePulse 2s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}
.tcg-winner-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: winnerShine 2.2s ease-in-out infinite;
  border-radius: inherit;
}
.tcg-card-item.rarity-winner_lan {
  border-color: rgba(74,222,128,.30);
}
.tcg-reveal-card.flipped.rarity-winner_lan {
  box-shadow: 0 0 32px rgba(74,222,128,.45), 0 10px 40px rgba(0,0,0,.6);
}

@keyframes legendaryBadgePulse {
  0%,100% { box-shadow: 0 0 8px rgba(242,194,78,.5), 0 0 20px rgba(242,194,78,.25); transform: scale(1); }
  50%      { box-shadow: 0 0 18px rgba(242,194,78,1), 0 0 40px rgba(242,194,78,.5);  transform: scale(1.05); }
}
@keyframes legendaryBadgeShine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.tcg-legendary-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(120,80,0,.92), rgba(184,134,11,.92));
  border: 1px solid rgba(242,194,78,.70);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: .42rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fef9c3;
  text-shadow: 0 0 10px rgba(242,194,78,.9);
  animation: legendaryBadgePulse 2.2s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}
.tcg-legendary-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: legendaryBadgeShine 2.4s ease-in-out infinite;
  border-radius: inherit;
}
@media (max-width: 760px) {
  .deck-builder {
    grid-template-columns: 1fr;
  }
  .deck-panel {
    position: static;
    top: auto;
  }
  .battle-screen {
    min-height: min(460px, 80dvh);
  }
}
@media (max-width: 760px) {
  #tcg-card-modal {
    padding: 0;
    align-items: flex-end;
  }
  #tcg-card-modal .cm-wrap {
    grid-template-columns: 1fr;
    border-radius: 24px 24px 0 0;
    max-height: 92dvh;
    overflow-y: auto;
  }
  .cm-left {
    min-height: 220px;
    max-height: 280px;
  }
  .cm-left img {
    object-position: center 20%;
  }
  .cm-left-overlay {
    background:
      linear-gradient(to top, rgba(4,4,10,.98) 0%, transparent 50%),
      linear-gradient(to right, transparent, transparent);
  }
  .cm-right {
    padding: 1.25rem 1.25rem 1.75rem;
  }
  .cm-name {
    font-size: 2rem;
  }
  .cm-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cm-close {
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,.5);
    border-color: rgba(255,255,255,.12);
  }
  .battle-screen {
    min-height: min(380px, 75dvh);
  }
  .battle-intro {
    min-height: min(280px, 60dvh);
    padding: 1.5rem 1rem;
  }
  .battle-intro-icon,
  .battle-result-icon {
    font-size: 2.6rem;
  }
  .battle-intro-title,
  .battle-result-title {
    font-size: 1.7rem;
    letter-spacing: 1px;
  }
  .battle-vs-area {
    padding: 1rem;
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .deck-team-summary-grid,
  .battle-result-grid {
    grid-template-columns: 1fr;
  }
  .tcg-pack-visual {
    height: 180px;
  }
  .tcg-pack-visual-icon img {
    width: 100px;
  }
  .tcg-pack-visual-icon.is-emoji {
    font-size: 3.5rem;
  }
  .deck-collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }
}
@media (pointer: coarse), (pointer: none) {
  .deck-card-pick:hover,
  .tcg-pack-card:hover {
    transform: none;
    filter: none;
  }
  .deck-card-pick-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.15) 100%);
  }
  .tcg-card-item:hover .tcg-card-overlay,
  .tcg-card-item .tcg-card-overlay {
    opacity: 1;
  }
}

[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] #tcg { background: var(--bg); }
[data-theme="light"] .tcg-pack-card { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .tcg-pack-body { background: var(--surface); }
[data-theme="light"] .tcg-pack-name { color: var(--text); }
[data-theme="light"] .tcg-pack-desc { color: var(--text2); }
[data-theme="light"] .tcg-pack-meta { color: var(--text2); }
[data-theme="light"] .tcg-pack-count { color: var(--text3); }
[data-theme="light"] .tcg-pack-visual-bg { background: linear-gradient(135deg, #ddddf5, #e8e8f8); }
[data-theme="light"] .tcg-reward-booster-panel { background: radial-gradient(circle at 12% 10%, rgba(245,158,11,.16), transparent 42%), rgba(0,0,0,.04); }
[data-theme="light"] .tcg-reward-booster-kicker { color: rgba(0,0,0,.45); }
[data-theme="light"] .tcg-reward-booster-panel p { color: rgba(0,0,0,.55); }
[data-theme="light"] .tcg-tabs { background: var(--bg2); border-color: var(--border); }
[data-theme="light"] .tcg-tab { color: var(--text2); }
[data-theme="light"] .tcg-tab:hover { color: var(--text); }
[data-theme="light"] .tcg-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
[data-theme="light"] .tcg-section-title { color: var(--text); }
[data-theme="light"] .tcg-section-sub { color: var(--text2); }
[data-theme="light"] .tcg-search { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="light"] .tcg-search::placeholder { color: var(--text3); }
[data-theme="light"] .tcg-filter { background: var(--surface); border-color: var(--border); color: var(--text); }
[data-theme="light"] .tcg-collection-grid .tcg-card-item { border-color: var(--border); }
[data-theme="light"] .deck-panel { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .deck-slot-thumb { background: var(--surface2); }
[data-theme="light"] .deck-team-card-thumb { background: var(--surface2); }
[data-theme="light"] .battle-log { background: rgba(0,0,0,.05); border-color: var(--border); }
html[data-theme="light"] .battle-log-entry { color: rgba(0,0,0,.55); }
html[data-theme="light"] .battle-log-entry.log-win { color: #16a34a; }
html[data-theme="light"] .battle-log-entry.log-lose { color: #dc2626; }
html[data-theme="light"] .battle-log-entry.log-info { color: rgba(0,0,0,.35); }
html[data-theme="light"] .battle-log { border-top-color: rgba(0,0,0,.08); }
[data-theme="light"] .tcg-pack-rarities .rarity-common { color: #64748b; }
[data-theme="light"] .bp-tier { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .shop-card-img-wrap { background: var(--surface2); }
[data-theme="light"] .cm-right { background: var(--surface); }
[data-theme="light"] #tcg-card-modal .cm-bg { background: rgba(180,180,200,.75); }
[data-theme="light"] .tcg-mobile-badge { background: var(--surface); color: var(--text); }
[data-theme="light"] .tcg-app-chrome { background: var(--bg); }

@media (max-width: 768px) {
  #cursor-ring,
  #cursor-dot,
  .cursor,
  .cursor-dot {
    display: none !important;
  }

  #tcg {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #tcg .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: .85rem !important;
  }

  .tcg-shell,
  .tcg-app-chrome,
  .tcg-pane-stage,
  .tcg-pane {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .tcg-app-chrome {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .tcg-mobile-head {
    display: flex !important;
    margin: 0 0 1rem !important;
  }

  .tcg-section-header {
    gap: .75rem !important;
    padding: 1rem 0 !important;
  }

  .tcg-section-title {
    font-size: clamp(1.65rem, 8vw, 2.35rem) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .tcg-section-sub {
    font-size: .58rem !important;
    letter-spacing: 2px !important;
  }

  .tcg-tabs {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
    transform: translateX(-50%) !important;
    z-index: 650 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: min(calc(100vw - 14px), 470px) !important;
    max-width: calc(100vw - 14px) !important;
    max-height: calc(100dvh - 18px) !important;
    padding: 6px !important;
    gap: 5px !important;
    margin: 0 !important;
    overflow: visible !important;
    border-radius: 18px !important;
    background: rgba(10, 11, 21, .97) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    box-shadow: 0 18px 52px rgba(0,0,0,.55) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
  }

  .tcg-tab {
    min-width: 0 !important;
    min-height: 50px !important;
    padding: .42rem .18rem !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: .2rem !important;
    border-radius: 13px !important;
    font-size: .47rem !important;
    line-height: 1 !important;
    letter-spacing: .45px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .tcg-tab-icon {
    font-size: 1.1rem !important;
    line-height: 1 !important;
  }

  .tcg-tab-label {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .ch {
    min-height: auto !important;
    padding: calc(4.8rem + env(safe-area-inset-top, 0px)) .85rem 1.15rem !important;
  }

  .ch-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .ch-eyebrow {
    max-width: 100% !important;
    letter-spacing: 1.7px !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  .ch-title {
    margin-bottom: 1rem !important;
  }

  .ch-title-inner.sans {
    font-size: clamp(2.25rem, 16vw, 4rem) !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .ch-title-inner.serif {
    font-size: clamp(2.75rem, 17vw, 4.65rem) !important;
    white-space: nowrap !important;
  }

  .ch-sub {
    font-size: .58rem !important;
    line-height: 1.6 !important;
    letter-spacing: 1.2px !important;
    margin-bottom: 1.3rem !important;
  }

  .ch-cta {
    width: 100% !important;
    gap: .75rem !important;
  }

  .ch-btn-reveal,
  .ch-btn-scroll {
    width: 100% !important;
    min-height: 54px !important;
    justify-content: center !important;
    padding: .9rem 1rem !important;
    letter-spacing: 1px !important;
    text-align: center !important;
  }

  .hero-collection-progress {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 1rem !important;
    border-radius: 12px !important;
  }

  .ch-stats {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    margin-top: 1rem !important;
    border: 1px solid var(--border, rgba(255,255,255,.08)) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .ch-stat {
    min-width: 0 !important;
    padding: .78rem .45rem !important;
    border: 0 !important;
    border-right: 1px solid var(--border2, rgba(255,255,255,.04)) !important;
    border-bottom: 1px solid var(--border2, rgba(255,255,255,.04)) !important;
    border-radius: 0 !important;
  }

  .ch-stat:nth-child(2n) {
    border-right: 0 !important;
  }

  .ch-stat:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }

  .ch-stat-val {
    font-size: 1.25rem !important;
  }

  .ch-stat-label {
    font-size: .42rem !important;
    letter-spacing: 1.3px !important;
  }

  .deck-builder {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .deck-builder > *,
  .deck-panel,
  #deck-collection-grid,
  .deck-collection-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .deck-panel {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    border-radius: 14px !important;
  }

  .deck-collection-grid,
  #deck-collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .deck-slots,
  #deck-slots {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .shop-header,
  .shop-header-right,
  .shop-timer-block {
    align-items: stretch !important;
    width: 100% !important;
  }

  .shop-coins-badge,
  .shop-refresh-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .shop-grid,
  .shop-items-grid {
    grid-template-columns: 1fr !important;
  }

  .shop-item-card {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: .75rem !important;
  }

  .shop-item-body {
    min-width: 0 !important;
  }

  .shop-item-right {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: .5rem !important;
  }

  .shop-item-stock {
    min-width: 0 !important;
  }

  .shop-item-buy-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .bp-shell {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .bp-hero {
    border-radius: 14px !important;
    margin-bottom: 1.2rem !important;
  }

  .bp-hero-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 1.25rem !important;
    gap: 1rem !important;
  }

  .bp-season-badge,
  .bp-season-countdown {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .bp-title {
    font-size: clamp(2.45rem, 14vw, 3.7rem) !important;
    letter-spacing: 0 !important;
  }

  .bp-title-pass {
    letter-spacing: 3px !important;
  }

  .bp-xp-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.15rem !important;
  }

  .bp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .bp-how {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .5rem !important;
    margin-bottom: 1.6rem !important;
  }

  .bp-section-header {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: .75rem !important;
  }

  .bp-section-header::after {
    display: none !important;
  }

  .bp-section-badge {
    width: 100% !important;
    justify-content: center !important;
  }

  .bp-rarity-header {
    gap: .4rem !important;
  }

  .bp-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .bp-tier {
    min-width: 0 !important;
  }
}

@media (max-width: 380px) {
  .tcg-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 5px !important;
  }

  .tcg-tab {
    min-height: 47px !important;
    font-size: .42rem !important;
  }

  .tcg-tab-icon {
    font-size: 1rem !important;
  }

  .bp-tiers {
    grid-template-columns: 1fr !important;
  }
}