
/* === CityCards shared page navigation === */

.cc-page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px 0;
}

.cc-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.cc-page-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
  filter: brightness(1.03);
}

.cc-page-btn-shop,
.cc-page-btn-matches {
  background: linear-gradient(135deg, #8159f7, #f45ca8);
}

.cc-page-btn-collection {
  background: linear-gradient(135deg, #2f80ff, #3fc6ff);
}

.cc-page-btn-arena {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.cc-page-actions-arena {
  margin-top: 12px;
  justify-content: flex-end;
}

/* === CityCards Shop === */

.cc-shop-wrap {
  max-width: 1480px;
  margin: 0 auto;
}

.cc-shop-intro {
  margin: 16px auto 20px auto;
  border-radius: 18px;
}

.cc-shop-note {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 800;
  color: #273244;
}

.cc-shop-hint {
  margin: 0;
  font-size: 16px;
  color: #47556c;
}

.cc-shop-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px 0;
}

.cc-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.10);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.cc-shop-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.14);
  filter: brightness(1.03);
}

.cc-shop-btn-pink,
.cc-shop-btn-current {
  background: linear-gradient(135deg, #8159f7, #f45ca8);
}

.cc-shop-btn-blue {
  background: linear-gradient(135deg, #2f80ff, #3fc6ff);
}

.cc-shop-btn-all {
  background: linear-gradient(135deg, #8159f7, #f45ca8);
}

.cc-shop-title {
  margin: 10px 0 18px 0;
  font-size: 28px;
  font-weight: 400;
  color: #1f2b3e;
}

.cc-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(620px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.cc-shop-card {
  display: flex;
  align-items: stretch;
  gap: 26px;
  padding: 22px 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.cc-card-visual {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-card-board {
  position: relative;
  width: 250px;
  height: 290px;
  border-radius: 22px;
}

.cc-card-image,
.cc-card-image-missing {
  position: absolute;
  top: 46px;
  left: 37px;
  width: 176px;
  height: 198px;
  border-radius: 16px;
  background: #f8f8f8;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.cc-card-image-missing {
  font-size: 13px;
  color: #7a8190;
}

.cc-dir {
  position: absolute;
  z-index: 2;
  min-width: 56px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ececec;
  color: #68748a;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.cc-dir strong {
  color: #4f5f7f;
  font-size: 16px;
  font-weight: 900;
  margin-left: 8px;
}

.cc-dir-n  { top: 0; left: 97px; }
.cc-dir-ne { top: 0; right: 2px; }
.cc-dir-e  { top: 128px; right: 0; }
.cc-dir-se { bottom: 8px; right: 2px; }
.cc-dir-s  { bottom: 8px; left: 97px; }
.cc-dir-sw { bottom: 8px; left: 2px; }
.cc-dir-w  { top: 128px; left: 0; }
.cc-dir-nw { top: 0; left: 2px; }

.cc-card-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cc-card-head h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #556b94;
}

.cc-card-desc {
  margin: 10px 0 18px 0;
  font-size: 16px;
  color: #58698a;
}

.cc-stats-large {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px 12px;
  margin-bottom: 22px;
}

.cc-stat-pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #68748a;
  font-size: 18px;
  font-weight: 800;
}

.cc-stat-pill strong {
  color: #4f5f7f;
  font-size: 17px;
  font-weight: 900;
}

.cc-buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cc-buy-form {
  margin: 0;
}

.cc-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 800;
}

.cc-price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4f7ff, #eef3ff);
  border: 1px solid #dfe6fb;
  color: #556b94;
  font-size: 18px;
  font-weight: 900;
}

.cc-buy-note,
.cc-no-buy,
.cc-empty {
  margin: 0;
  color: #6a7894;
  font-size: 14px;
}

@media (max-width: 1350px) {
  .cc-shop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cc-shop-card {
    flex-direction: column;
    padding: 18px;
  }

  .cc-card-visual {
    flex-basis: auto;
  }

  .cc-stats-large {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 560px) {
  .cc-shop-btn {
    width: 100%;
    min-height: 40px;
    font-size: 15px;
  }

  .cc-card-board {
    transform: scale(.92);
    transform-origin: top center;
  }

  .cc-card-visual {
    margin-bottom: -14px;
  }

  .cc-card-head h3 {
    font-size: 24px;
  }

  .cc-stats-large {
    grid-template-columns: 1fr 1fr;
  }
}


/* === CityCards Home / Lobby === */

.cc-home-wrap {
  max-width: 1480px;
  margin: 0 auto;
}

.cc-home-hero {
  margin: 18px auto 22px auto;
  padding: 26px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7f2fb 0%, #fff8fb 100%);
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.cc-home-hero-lobby {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cc-home-hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-home-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(129, 89, 247, .11);
  color: #7a4ef4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cc-home-hero h1 {
  margin: 0 0 8px 0;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 900;
  color: #556b94;
}

.cc-home-hero p {
  margin: 0;
  font-size: 18px;
  color: #5f6f88;
}

.cc-home-hero-badges {
  flex: 0 0 290px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cc-home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #5a6792;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.cc-home-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 22px 0;
}

.cc-home-btn,
.cc-home-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.cc-home-mini-btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.cc-home-btn:hover,
.cc-home-mini-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
  filter: brightness(1.03);
}

.cc-home-btn-shop,
.cc-home-btn-matches {
  background: linear-gradient(135deg, #8159f7, #f45ca8);
}

.cc-home-btn-collection {
  background: linear-gradient(135deg, #2f80ff, #3fc6ff);
}

.cc-home-btn-arena {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.cc-home-btn-decks {
  background: linear-gradient(135deg, #0f9d7a, #17b26a);
  color: #fff !important;
  opacity: 1;
}

.cc-home-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.cc-home-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.cc-home-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.cc-home-card-highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

.cc-home-card-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.cc-home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cc-home-card-head h2,
.cc-home-panel h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: #556b94;
}

.cc-home-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(244, 92, 168, .12);
  color: #cf4f8e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cc-home-icon {
  font-size: 24px;
  line-height: 1;
}

.cc-home-card-text {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #58698a;
}

.cc-home-list {
  margin: 0;
  padding-left: 20px;
  color: #42526c;
}

.cc-home-list li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.cc-home-list-tight li {
  margin-bottom: 8px;
}

.cc-home-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cc-home-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #eef3f8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.cc-home-empty strong {
  font-size: 16px;
  color: #3d4f6f;
}

.cc-home-empty span {
  font-size: 14px;
  color: #667791;
}

.cc-home-panel {
  margin: 0 0 24px 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: #eef3f8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.cc-home-panel-info p {
  margin: 0 0 14px 0;
  font-size: 17px;
  color: #42526c;
}

.cc-home-panel-info p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .cc-home-grid {
    grid-template-columns: 1fr;
  }

  .cc-home-subgrid {
    grid-template-columns: 1fr;
  }

  .cc-home-hero-lobby {
    flex-direction: column;
  }

  .cc-home-hero-badges {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .cc-home-hero {
    padding: 20px 18px;
  }

  .cc-home-hero h1 {
    font-size: 34px;
  }

  .cc-home-hero p {
    font-size: 16px;
  }

  .cc-home-btn,
  .cc-home-mini-btn {
    width: 100%;
    font-size: 18px;
  }

  .cc-home-card-head h2,
  .cc-home-panel h2 {
    font-size: 22px;
  }
}

/* === CityCards rarity badges === */
.cc-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.cc-rarity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.cc-rarity-common {
  background: #f1f3f7;
  color: #5f667a;
}
.cc-rarity-common .cc-rarity-dot {
  background: #aeb4c2;
}

.cc-rarity-rare {
  background: #eaf3ff;
  color: #2463c9;
}
.cc-rarity-rare .cc-rarity-dot {
  background: #3b82f6;
}

.cc-rarity-epic {
  background: #f3ebff;
  color: #7c3aed;
}
.cc-rarity-epic .cc-rarity-dot {
  background: #8b5cf6;
}

.cc-rarity-legendary {
  background: #fff3d6;
  color: #b77900;
}
.cc-rarity-legendary .cc-rarity-dot {
  background: #f4b400;
}

.cc-rarity-ultra {
  background: #ffe5eb;
  color: #c41d4a;
}
.cc-rarity-ultra .cc-rarity-dot {
  background: #ff3b6b;
}


@media (max-width: 700px) {
  .cc-page-btn {
    width: 100%;
    font-size: 16px;
  }
}


/* === CityCards lobby live blocks === */

.cc-home-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.cc-home-statbox {
  min-height: 86px;
  padding: 16px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 24px rgba(68, 83, 125, .08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cc-home-statbox strong {
  font-size: 32px;
  line-height: 1;
  color: #4f5fa2;
  font-weight: 900;
}

.cc-home-statbox span {
  margin-top: 6px;
  font-size: 13px;
  color: #66779a;
  font-weight: 800;
}

.cc-home-grid-lobby {
  grid-template-columns: 1.15fr .85fr .85fr;
}

.cc-home-card-wide {
  margin-top: 18px;
}

.cc-home-callout {
  margin: 18px 0 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f7ff;
  color: #58698a;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-home-callout strong {
  color: #4f5fa2;
  font-size: 15px;
  font-weight: 900;
}

.cc-lobby-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.cc-lobby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f5f7fb;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.cc-lobby-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-lobby-item-main strong {
  color: #435885;
  font-size: 18px;
  font-weight: 900;
}

.cc-lobby-item-main span {
  color: #687892;
  font-size: 14px;
}

.cc-lobby-item-side,
.cc-lobby-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-home-pill-status {
  background: linear-gradient(135deg, #f2e9ff, #ffe8f5);
  color: #8b4dd9;
}

.cc-lobby-item-match {
  align-items: flex-start;
}

.cc-lobby-vs {
  margin: 0 6px;
  font-size: 14px;
  color: #9a66ff;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .cc-home-grid-lobby {
    grid-template-columns: 1fr;
  }

  .cc-home-hero-stats {
    max-width: none;
  }
}

@media (max-width: 800px) {
  .cc-home-hero-stats {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .cc-lobby-item,
  .cc-lobby-item-match {
    flex-direction: column;
    align-items: flex-start;
  }
}


.cc-match-wrap {
  padding-bottom: 24px;
}

.cc-match-main-grid {
  align-items: stretch;
}

.cc-match-stats {
  max-width: 560px;
}

.cc-match-coinbox {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(243,246,255,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 24px rgba(87,111,175,.12);
  text-align: center;
}

.cc-match-coin-scene {
  perspective: 900px;
  display: flex;
  justify-content: center;
}

.cc-match-coin {
  position: relative;
  width: 110px;
  height: 110px;
  transform-style: preserve-3d;
  transition: transform .8s ease;
}

.cc-match-coin.is-flipping {
  animation: ccCoinFlip 2.2s ease-in-out forwards;
}

.cc-match-coin.is-finished {
  transform: rotateY(720deg) rotateX(8deg);
}

.cc-match-coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  backface-visibility: hidden;
  box-shadow: 0 16px 30px rgba(82,104,171,.22);
}

.cc-match-coin-face-front {
  background: linear-gradient(135deg, #3d9bff, #5e4dff);
}

.cc-match-coin-face-back {
  background: linear-gradient(135deg, #ff5bbd, #ff7a59);
  transform: rotateY(180deg);
}

.cc-match-coin-text,
.cc-match-coin-result {
  margin-top: 14px;
  color: #54698f;
  font-size: 15px;
  font-weight: 800;
}

.cc-match-coin-text {
  opacity: 0;
}

.cc-match-coin-text.is-active {
  opacity: 1;
}

.cc-match-coin-result {
  opacity: 0;
  transform: translateY(6px);
  transition: all .25s ease;
}

.cc-match-coin-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cc-match-meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px 16px;
  color: #5c6f94;
}

.cc-match-meta strong {
  color: #435885;
  margin-right: 6px;
}

.cc-match-subgrid {
  margin-top: 18px;
}

.cc-match-state-preview {
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: #f5f7fb;
  color: #405070;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes ccCoinFlip {
  0% { transform: rotateY(0deg) rotateX(0deg) scale(1); }
  40% { transform: rotateY(540deg) rotateX(12deg) scale(1.06); }
  70% { transform: rotateY(900deg) rotateX(-10deg) scale(1.02); }
  100% { transform: rotateY(1260deg) rotateX(0deg) scale(1); }
}

@media (max-width: 800px) {
  .cc-match-meta {
    grid-template-columns: 1fr;
  }
}

/* Match live */
.cc-match-live-root{display:flex;flex-direction:column;gap:16px;margin-top:12px;}
.cc-match-live-headline{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;}
.cc-match-live-badge,.cc-match-live-refresh{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.08);font-weight:700;}
.cc-match-hands{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.cc-match-hand-box{padding:14px;border-radius:18px;background:rgba(8,15,35,.45);border:1px solid rgba(255,255,255,.08);}
.cc-match-hand-box h3{margin:0 0 10px;font-size:16px;}
.cc-match-hand-list{display:flex;flex-wrap:wrap;gap:10px;min-height:56px;}
.cc-match-mini-card,.cc-match-hand-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:86px;min-height:90px;padding:10px;border-radius:14px;background:rgba(255,255,255,.06);text-align:center;}
.cc-match-mini-card img{width:54px;height:54px;object-fit:cover;border-radius:10px;}
.cc-match-mini-el{font-size:11px;opacity:.82;}
.cc-match-board{display:grid;grid-template-columns:repeat(4,minmax(80px,1fr));gap:12px;}
.cc-match-board-cell,.cc-match-board-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:118px;padding:10px;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);text-align:center;}
.cc-match-board-cell.is-blue{box-shadow:inset 0 0 0 2px rgba(70,150,255,.7);}
.cc-match-board-cell.is-red{box-shadow:inset 0 0 0 2px rgba(255,90,90,.7);}
.cc-match-board-cell img{width:62px;height:62px;object-fit:cover;border-radius:12px;margin-bottom:6px;}
.cc-match-board-cell strong{font-size:13px;line-height:1.2;}
.cc-match-board-cell span{font-size:11px;opacity:.8;}
.cc-match-board-empty{grid-column:1 / -1;}
@media (max-width: 900px){.cc-match-hands{grid-template-columns:1fr;}.cc-match-board{grid-template-columns:repeat(3,minmax(72px,1fr));}}


.cc-lobby-form {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.cc-lobby-form-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

.cc-lobby-field {
  display:flex;
  flex-direction:column;
  gap:8px;
  font-weight:700;
  color:#4f5f7f;
}

.cc-lobby-field select {
  width:100%;
  min-height:44px;
  border:1px solid rgba(79,95,127,.18);
  border-radius:14px;
  background:#fff;
  padding:0 12px;
  color:#334155;
  font-size:14px;
}

.cc-lobby-form-hint {
  margin:0;
  font-size:13px;
  color:#667085;
}

.cc-lobby-item-side {
  gap:8px;
}

@media (max-width: 700px) {
  .cc-lobby-form-grid {
    grid-template-columns: 1fr;
  }
}

.cc-home-callout-soft {
  background: rgba(255,255,255,.72);
}

.cc-lobby-inline-form {
  display:flex;
  align-items:flex-end;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.cc-lobby-field-inline {
  min-width:220px;
}

.cc-lobby-field-inline span {
  font-size:12px;
}

.cc-lobby-inline-note {
  display:inline-flex;
  align-items:center;
  font-size:12px;
  color:#6b7280;
  max-width:220px;
  text-align:right;
}


/* === CityCards decks manager === */
.cc-decks-wrap .cc-home-btn-decks { background: linear-gradient(135deg, #0f9d7a, #17b26a); }
.cc-decks-wrap .cc-home-grid-decks { align-items: start; }
.cc-decks-wrap .cc-lobby-form-grid-builder { grid-template-columns: 1fr; }
.cc-decks-wrap .cc-deck-toolbar { display:flex; gap:10px; flex-wrap:wrap; margin: 14px 0 18px; }
.cc-decks-wrap .cc-deck-selected-panel { border-radius: 18px; background: linear-gradient(180deg,#f7fbff,#eef6ff); border:1px solid #d6e6ff; padding:16px; }
.cc-decks-wrap .cc-selected-grid-builder { min-height: 160px; }
.cc-decks-wrap .cc-lobby-list-decks .cc-lobby-item { align-items:flex-start; }
.cc-decks-wrap .cc-deck-mini-cards { display:block; font-size:12px; color:#6d7890; line-height:1.5; }
.cc-decks-wrap .cc-owned-pick-deck.is-picked { outline: 3px solid rgba(47,128,255,.35); border-radius: 20px; }
.cc-decks-wrap .cc-selected-picked { cursor:pointer; }
.cc-decks-wrap .cc-selected-picked .cc-pick-card { box-shadow: 0 10px 22px rgba(0,0,0,.14); }
@media (max-width: 900px) {
  .cc-decks-wrap .cc-deck-toolbar { flex-direction: column; }
}


/* Deck manager compact cards */
.cc-decks-wrap .cc-owned-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:14px;
  align-items:start;
}

.cc-decks-wrap .cc-owned-pick,
.cc-decks-wrap .cc-owned-pick-deck,
.cc-decks-wrap .cc-selected-picked{
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
}

.cc-decks-wrap .cc-pick-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:278px;
  border-radius:20px;
  overflow:hidden;
  background:linear-gradient(180deg,#fcfdff 0%,#f4f8ff 100%);
  border:1px solid rgba(106,136,196,.18);
  box-shadow:0 10px 24px rgba(38,67,122,.10);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.cc-decks-wrap .cc-owned-pick:hover .cc-pick-card,
.cc-decks-wrap .cc-owned-pick-deck:hover .cc-pick-card,
.cc-decks-wrap .cc-selected-picked:hover .cc-pick-card{
  transform:translateY(-2px);
  box-shadow:0 16px 28px rgba(38,67,122,.14);
  border-color:rgba(106,136,196,.32);
}

.cc-decks-wrap .cc-pick-card__art{
  display:flex;
  align-items:center;
  justify-content:center;
  height:160px;
  padding:10px 10px 0;
}

.cc-decks-wrap .cc-pick-card__art img{
  width:100%;
  height:150px;
  object-fit:contain;
  border-radius:16px;
  background:#fff;
}


.cc-decks-wrap .cc-pick-stock{
  display:block;
  margin:8px 12px 0;
  text-align:center;
  font-size:11px;
  font-weight:800;
  color:#6b7fa8;
  line-height:1.35;
  min-height:30px;
}

.cc-decks-wrap .cc-owned-pick-deck.is-unavailable{
  cursor:not-allowed;
}

.cc-decks-wrap .cc-owned-pick-deck.is-unavailable .cc-pick-card{
  opacity:.48;
  filter:grayscale(.18);
  box-shadow:none;
}

.cc-decks-wrap .cc-owned-pick-deck.is-unavailable:hover .cc-pick-card{
  transform:none;
  border-color:rgba(106,136,196,.18);
  box-shadow:none;
}


.cc-decks-wrap .cc-pick-deck-lock{
  display:block;
  margin:6px 12px 0;
  text-align:center;
  font-size:11px;
  font-weight:800;
  color:#9a5b00;
  line-height:1.35;
  min-height:15px;
}

.cc-decks-wrap .cc-owned-pick-deck.is-unavailable .cc-pick-deck-lock{
  color:#8a4f00;
}

.cc-decks-wrap .cc-owned-pick-deck.is-unavailable .cc-pick-name{
  color:#6f7b95;
}
.cc-decks-wrap .cc-pick-name{
  display:block;
  margin:8px 12px 0;
  text-align:center;
  font-size:15px;
  font-weight:900;
  color:#40537f;
  line-height:1.2;
  min-height:36px;
}

.cc-decks-wrap .cc-pick-meta-top{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-wrap:wrap;
  margin:8px 10px 0;
}

.cc-decks-wrap .cc-pick-el,
.cc-decks-wrap .cc-pick-rarity,
.cc-decks-wrap .cc-pick-qty{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}

.cc-decks-wrap .cc-pick-el{background:#eaf3ff;color:#3f5f96;}
.cc-decks-wrap .cc-pick-qty{
  position:absolute;
  top:10px;
  right:10px;
  background:rgba(34,49,78,.86);
  color:#fff;
  z-index:3;
}

.cc-decks-wrap .cc-pick-rarity{background:#f4f0ff;color:#6f4bc1;}
.cc-decks-wrap .cc-pick-rarity-common{background:#eef2f7;color:#52627c;}
.cc-decks-wrap .cc-pick-rarity-rare{background:#e8f0ff;color:#3563d0;}
.cc-decks-wrap .cc-pick-rarity-epic{background:#f2eaff;color:#7e3fd1;}
.cc-decks-wrap .cc-pick-rarity-legendary{background:#fff2df;color:#c27710;}
.cc-decks-wrap .cc-pick-rarity-ultra{background:#ffe8f3;color:#d34185;}

.cc-decks-wrap .cc-pick-dir{
  position:absolute;
  z-index:2;
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#334155;
  font-size:12px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.14);
}

.cc-decks-wrap .cc-pick-dir strong{font-size:12px;font-weight:900;line-height:1;}
.cc-decks-wrap .cc-pick-dir-n{top:20px;left:50%;transform:translateX(-50%);}
.cc-decks-wrap .cc-pick-dir-ne{top:26px;right:12px;}
.cc-decks-wrap .cc-pick-dir-e{top:72px;right:6px;}
.cc-decks-wrap .cc-pick-dir-se{bottom:132px;right:12px;}
.cc-decks-wrap .cc-pick-dir-s{bottom:126px;left:50%;transform:translateX(-50%);}
.cc-decks-wrap .cc-pick-dir-sw{bottom:132px;left:12px;}
.cc-decks-wrap .cc-pick-dir-w{top:72px;left:6px;}
.cc-decks-wrap .cc-pick-dir-nw{top:26px;left:12px;}

.cc-decks-wrap .cc-selected-grid-builder{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:12px;
  min-height:160px;
}

.cc-decks-wrap .cc-selected-grid-builder:empty::before{
  content:"";
}

/* Sur la page des decks, le constructeur ne doit pas rester sticky,
   sinon il chevauche les blocs de droite quand un deck est incomplet. */
.cc-decks-wrap .cc-home-grid-decks .cc-home-card-highlight{position:relative;top:auto;}

/* Annule la règle lobby qui force le 3e bloc sur toute la largeur,
   car ici elle casse la mise en page quand l'alerte deck incomplet est visible. */
.cc-decks-wrap .cc-home-grid-decks > .cc-home-card:nth-child(3){grid-column:auto;}


.cc-decks-wrap .cc-lobby-list-decks .cc-lobby-item{
  border:1px solid rgba(106,136,196,.16);
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.8);
}

.cc-decks-wrap .cc-deck-mini-cards{
  display:block;
  margin-top:6px;
  font-size:12px;
  color:#6d7890;
  line-height:1.6;
}

.cc-decks-wrap .cc-owned-pick-deck.is-picked .cc-pick-card{
  outline:3px solid rgba(47,128,255,.35);
  outline-offset:-3px;
}

@media (max-width: 700px){
  .cc-decks-wrap .cc-owned-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .cc-decks-wrap .cc-pick-card{min-height:240px;border-radius:16px;}
  .cc-decks-wrap .cc-pick-card__art{height:132px;padding:8px 8px 0;}
  .cc-decks-wrap .cc-pick-card__art img{height:124px;}
  .cc-decks-wrap .cc-pick-name{font-size:13px;min-height:32px;margin:6px 8px 0;}
  .cc-decks-wrap .cc-pick-el,.cc-decks-wrap .cc-pick-rarity,.cc-decks-wrap .cc-pick-qty{font-size:10px;min-height:22px;padding:0 7px;}
  .cc-decks-wrap .cc-pick-dir{width:24px;height:24px;font-size:11px;}
  .cc-decks-wrap .cc-pick-dir strong{font-size:11px;}
  .cc-decks-wrap .cc-pick-dir-e,.cc-decks-wrap .cc-pick-dir-w{top:62px;}
  .cc-decks-wrap .cc-pick-dir-s{bottom:110px;}
  .cc-decks-wrap .cc-pick-dir-se,.cc-decks-wrap .cc-pick-dir-sw{bottom:118px;}
  .cc-decks-wrap .cc-selected-grid-builder{grid-template-columns:repeat(2,minmax(0,1fr));}
}


.cc-match-turn-banner{margin:6px 0 14px;padding:12px 14px;border-radius:14px;background:#eef3ff;color:#4d6193;font-weight:800;}
.cc-match-turn-banner.is-turn{background:linear-gradient(135deg,#dff3ff,#efe5ff);color:#5b3fd0;box-shadow:inset 0 0 0 2px rgba(116,91,255,.18);}
.cc-match-turn-banner.is-finished{background:linear-gradient(135deg,#ffeccf,#ffe0ef);color:#b24b4b;}
.cc-match-hand-list{display:flex;flex-wrap:wrap;gap:10px;min-height:104px;}
.cc-match-mini-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:96px;min-height:158px;padding:8px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);text-align:center;color:#e9efff;}
.cc-match-mini-card img{width:64px;height:64px;object-fit:cover;border-radius:10px;}
.cc-match-mini-card strong{font-size:12px;line-height:1.15;min-height:28px;display:flex;align-items:center;justify-content:center;}
.cc-match-playable-card{cursor:pointer;transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;}
.cc-match-playable-card:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(0,0,0,.18);border-color:rgba(123,141,255,.35);}
.cc-match-playable-card.is-selected{box-shadow:inset 0 0 0 2px rgba(93,108,255,.85),0 12px 24px rgba(58,86,255,.24);transform:translateY(-2px);}
.cc-match-mini-el{font-size:11px;opacity:.9;}
.cc-match-stats-grid{width:100%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-areas:"nw n ne" "w c e" "sw s se";gap:3px;margin-top:auto;}
.cc-match-stat{display:flex;align-items:center;justify-content:center;min-height:18px;font-size:11px;font-weight:900;border-radius:8px;background:rgba(255,255,255,.08);color:#dbe6ff;}
.cc-match-stat.is-zero{opacity:.15;}
.cc-match-stat-n{grid-area:n}.cc-match-stat-ne{grid-area:ne}.cc-match-stat-e{grid-area:e}.cc-match-stat-se{grid-area:se}.cc-match-stat-s{grid-area:s}.cc-match-stat-sw{grid-area:sw}.cc-match-stat-w{grid-area:w}.cc-match-stat-nw{grid-area:nw}
.cc-match-board{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;}
.cc-match-board-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:188px;padding:10px;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);text-align:center;color:#eef4ff;cursor:pointer;transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;}
.cc-match-board-cell:hover{transform:translateY(-2px);box-shadow:0 10px 18px rgba(0,0,0,.14)}
.cc-match-board-cell.is-empty{border-style:dashed;color:#acc0ef;}
.cc-match-board-cell.is-closed{cursor:not-allowed;opacity:.5;background:rgba(255,255,255,.03);}
.cc-match-board-cell.is-p1{box-shadow:inset 0 0 0 2px rgba(70,150,255,.72);}
.cc-match-board-cell.is-p2{box-shadow:inset 0 0 0 2px rgba(255,90,90,.72);}
.cc-match-board-cell img{width:82px;height:82px;object-fit:cover;border-radius:12px;margin-bottom:6px;}
.cc-match-board-cell strong{font-size:13px;line-height:1.2;margin-bottom:4px;}
.cc-match-board-cell span{font-size:11px;opacity:.82;}
.cc-match-board-closed{font-size:30px;font-weight:900;opacity:.6;margin:auto 0;}
.cc-match-board-empty{grid-column:1 / -1;display:flex;align-items:center;justify-content:center;min-height:130px;padding:10px;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);}
@media (max-width: 1100px){.cc-match-board{grid-template-columns:repeat(4,minmax(90px,1fr));}.cc-match-board-cell{min-height:160px;}.cc-match-board-cell img{width:62px;height:62px;}}
@media (max-width: 900px){.cc-match-hands{grid-template-columns:1fr;}.cc-match-board{grid-template-columns:repeat(3,minmax(78px,1fr));}.cc-match-mini-card{min-width:84px;min-height:144px;padding:6px;}}


.cc-match-strip {
  margin: 18px 0 16px;
  padding: 18px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(244,247,255,.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 12px 24px rgba(89,112,179,.12);
}

.cc-match-strip__vs {
  font-size: 28px;
  font-weight: 900;
  color: #c42028;
  margin-bottom: 10px;
}

.cc-match-strip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  color: #435885;
  font-weight: 800;
}

.cc-match-strip__status {
  margin: 12px 0 0;
}

.cc-match-launch-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 11, 32, .38);
  backdrop-filter: blur(2px);
  transition: opacity .28s ease, visibility .28s ease;
}

.cc-match-launch-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cc-match-launch-card {
  width: min(520px, 100%);
  padding: 22px 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(242,246,255,.98));
  box-shadow: 0 20px 42px rgba(20,35,88,.25);
  text-align: center;
}

.cc-match-launch-head {
  color: #cf2731;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
}

.cc-match-launch-card .cc-page-btn {
  min-width: 220px;
  margin-bottom: 14px;
}

.cc-match-launch-card .cc-match-coinbox {
  margin-top: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0 0;
}

@media (max-width: 900px) {
  .cc-match-strip__vs {
    font-size: 22px;
  }

  .cc-match-launch-head {
    font-size: 22px;
  }
}


/* Match live cleanup */
.cc-match-arena-wrap .cc-platform-row{align-items:flex-start;margin-top:6px;}
.cc-match-arena-wrap .cc-platform-col{justify-content:flex-start;min-height:auto;}
.cc-match-arena-wrap .cc-platform-col-player,.cc-match-arena-wrap .cc-platform-col-ai{padding-top:0;}
.cc-match-arena-wrap-embed{padding:0 !important;}
.cc-match-embed-status{margin:0 0 10px;text-align:center;}
.cc-match-arena-wrap-embed .cc-battle-stage{min-height:100vh;border-radius:0;box-shadow:none;}
.cc-match-arena-wrap-embed .cc-battle-log{margin-bottom:0;}
.cc-match-arena-wrap .cc-platform-col-board{padding-top:0;}
.cc-match-arena-wrap .cc-side-title-row{margin-bottom:8px;}
.cc-match-arena-wrap .cc-side-pill{margin-bottom:0;}
.cc-match-arena-wrap .cc-battle-log a{color:#fff;text-decoration:underline;}
.cc-match-arena-wrap .cc-battle-log .username-coloured{text-decoration:underline;}


/* === Lobby : 2 colonnes en haut + scrollbars === */
.cc-home-grid-lobby{
  display:grid;
  grid-template-columns:minmax(320px,.95fr) minmax(420px,1.05fr);
  gap:18px;
  align-items:start;
}

/* invitations envoyées passe dessous sur toute la largeur */
.cc-home-grid-lobby > .cc-home-card:nth-child(3){
  grid-column:1 / -1;
}

.cc-lobby-list-scroll{
  max-height:430px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:8px;
}

.cc-lobby-list-scroll-matches{
  max-height:520px;
}

.cc-lobby-list-scroll::-webkit-scrollbar{
  width:10px;
}

.cc-lobby-list-scroll::-webkit-scrollbar-track{
  background:rgba(89,104,146,.10);
  border-radius:999px;
}

.cc-lobby-list-scroll::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#c8d4ef,#9eb5ea);
  border-radius:999px;
}

.cc-lobby-list-scroll{
  scrollbar-width:thin;
  scrollbar-color:#9eb5ea rgba(89,104,146,.10);
}

.cc-lobby-list-scroll .cc-lobby-item-main{
  min-width:0;
}

.cc-lobby-list-scroll .cc-lobby-item-main strong,
.cc-lobby-list-scroll .cc-lobby-item-main span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cc-lobby-list-scroll .cc-lobby-item-main span{
  white-space:nowrap;
}

.cc-lobby-list-matches .cc-lobby-item{
  align-items:center;
}

@media (max-width:1200px){
  .cc-home-grid-lobby{
    grid-template-columns:1fr;
  }

  .cc-home-grid-lobby > .cc-home-card:nth-child(3){
    grid-column:auto;
  }
}

@media (max-width:800px){
  .cc-lobby-list-scroll,
  .cc-lobby-list-scroll-matches{
    max-height:360px;
  }
}


.cc-home-btn-lobby,
.cc-page-btn-home {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}


.cc-decks-wrap .cc-owned-pick-deck[disabled]{
  pointer-events:none;
}

.cc-decks-wrap .cc-owned-pick-deck.is-unavailable{
  opacity:1;
}

.cc-decks-wrap .cc-owned-pick-deck.is-unavailable .cc-pick-card{
  border:2px solid rgba(180, 125, 28, .45);
  background:linear-gradient(180deg, rgba(255,245,221,.95), rgba(233,236,245,.96));
}

.cc-decks-wrap .cc-owned-pick-deck.is-unavailable .cc-pick-stock{
  color:#8a4f00;
}

.cc-live-stack-card-hidden{pointer-events:none;}
.cc-live-card-hidden .cc-live-card__inner{background:linear-gradient(160deg,#1b2446,#0a1027);border:1px solid rgba(255,255,255,.12);}
.cc-live-card__back{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:900;color:rgba(255,255,255,.86);letter-spacing:.08em;text-shadow:0 6px 16px rgba(0,0,0,.35);}
.cc-live-hidden-note{display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px 10px;border-radius:12px;background:rgba(255,255,255,.05);color:#d8e6ff;font-size:12px;font-weight:700;text-align:center;}


/* =====================================================
   CityCards – adaptation au style du forum / fond phpBB
   Inspiré du système City Escape pour mieux suivre
   les styles sombres et clairs du forum.
   ===================================================== */
:root{
  --cc-surface: rgba(255,255,255,.88);
  --cc-surface-soft: rgba(245,248,255,.82);
  --cc-surface-strong: rgba(255,255,255,.94);
  --cc-border: rgba(17,24,39,.12);
  --cc-shadow: 0 18px 38px rgba(0,0,0,.16);
  --cc-text: inherit;
  --cc-heading: #f4f7ff;
  --cc-heading-shadow: 0 2px 12px rgba(0,0,0,.62);
  --cc-title-on-panel: #42526c;
  --cc-muted: rgba(248,250,255,.92);
  --cc-muted-shadow: 0 1px 8px rgba(0,0,0,.50);
  --cc-body: #4b5b76;
  --cc-soft-box: rgba(238,243,248,.90);
  --cc-soft-text: #3d4f6f;
  --cc-soft-subtext: #667791;
  --cc-field-bg: rgba(255,255,255,.92);
  --cc-field-border: rgba(148,163,184,.36);
  --cc-field-text: #243247;
  --cc-hero-kicker-bg: rgba(129,89,247,.16);
  --cc-hero-kicker-text: #7a4ef4;
  --cc-badge-bg: rgba(255,255,255,.90);
  --cc-badge-text: #5a6792;
  --cc-collection-slot: rgba(255,255,255,.88);
  --cc-collection-card: linear-gradient(180deg,#f5f7fb,#eef2f8);
}

body.dark{
  --cc-surface: rgba(10,16,28,.84);
  --cc-surface-soft: rgba(15,22,37,.80);
  --cc-surface-strong: rgba(12,20,34,.90);
  --cc-border: rgba(255,255,255,.10);
  --cc-shadow: 0 20px 42px rgba(0,0,0,.48);
  --cc-text: #edf3ff;
  --cc-heading: #ffffff;
  --cc-heading-shadow: 0 2px 12px rgba(0,0,0,.72);
  --cc-title-on-panel: #f3f7ff;
  --cc-muted: rgba(229,238,255,.92);
  --cc-muted-shadow: 0 1px 8px rgba(0,0,0,.55);
  --cc-body: #d9e6ff;
  --cc-soft-box: rgba(255,255,255,.06);
  --cc-soft-text: #edf3ff;
  --cc-soft-subtext: #b7c8e8;
  --cc-field-bg: rgba(255,255,255,.06);
  --cc-field-border: rgba(255,255,255,.12);
  --cc-field-text: #edf3ff;
  --cc-hero-kicker-bg: rgba(255,255,255,.08);
  --cc-hero-kicker-text: #f3dd7a;
  --cc-badge-bg: rgba(255,255,255,.08);
  --cc-badge-text: #edf3ff;
  --cc-collection-slot: rgba(255,255,255,.06);
  --cc-collection-card: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
}

@media (prefers-color-scheme: dark){
  body:not(.light):not(.dark){
    --cc-surface: rgba(10,16,28,.78);
    --cc-surface-soft: rgba(15,22,37,.74);
    --cc-surface-strong: rgba(12,20,34,.86);
    --cc-border: rgba(255,255,255,.10);
    --cc-shadow: 0 20px 42px rgba(0,0,0,.44);
    --cc-text: #edf3ff;
    --cc-heading: #ffffff;
    --cc-heading-shadow: 0 2px 12px rgba(0,0,0,.72);
    --cc-title-on-panel: #f3f7ff;
    --cc-muted: rgba(229,238,255,.92);
    --cc-muted-shadow: 0 1px 8px rgba(0,0,0,.55);
    --cc-body: #d9e6ff;
    --cc-soft-box: rgba(255,255,255,.06);
    --cc-soft-text: #edf3ff;
    --cc-soft-subtext: #b7c8e8;
    --cc-field-bg: rgba(255,255,255,.06);
    --cc-field-border: rgba(255,255,255,.12);
    --cc-field-text: #edf3ff;
    --cc-hero-kicker-bg: rgba(255,255,255,.08);
    --cc-hero-kicker-text: #f3dd7a;
    --cc-badge-bg: rgba(255,255,255,.08);
    --cc-badge-text: #edf3ff;
    --cc-collection-slot: rgba(255,255,255,.06);
    --cc-collection-card: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
  }
}

.cc-home-wrap,
.cc-shop-wrap,
.ccoll-wrap,
.cc-arena-wrap{
  color: var(--cc-text);
}

.cc-home-hero,
.cc-home-card,
.cc-home-card-highlight,
.cc-home-card-soft,
.cc-home-panel,
.cc-shop-intro,
.cc-shop-card,
.ccoll-hero,
.ccoll-panel,
.ccoll-slot,
.cc-decks-wrap .cc-deck-selected-panel{
  background: var(--cc-surface) !important;
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  backdrop-filter: blur(4px);
}

.cc-home-empty,
.cc-home-callout,
.cc-home-callout-soft,
.cc-lobby-item,
.cc-home-badge,
.cc-decks-wrap .cc-deck-mini-cards,
.cc-decks-wrap .cc-owned-pick-deck.is-unavailable .cc-pick-card{
  background: var(--cc-soft-box);
}

.cc-home-kicker{
  background: var(--cc-hero-kicker-bg);
  color: var(--cc-hero-kicker-text);
}

.cc-home-badge{
  color: var(--cc-badge-text);
  background: var(--cc-badge-bg);
}

.cc-home-hero h1,
.cc-arena-topbar h1,
.cc-shop-title,
.ccoll-title{
  color: var(--cc-heading) !important;
  text-shadow: var(--cc-heading-shadow);
}

.cc-home-hero p,
.cc-arena-topbar p,
.cc-arena-help,
.cc-arena-status,
.cc-shop-note,
.cc-shop-hint,
.cc-home-card-text,
.cc-home-panel-info p,
.ccoll-sub{
  color: var(--cc-muted) !important;
  text-shadow: var(--cc-muted-shadow);
}

.cc-home-card-head h2,
.cc-home-panel h2,
.cc-card-head h3,
.ccoll-card-name,
.ccoll-card-missing,
.ccoll-meta strong,
.cc-card-legend,
.cc-card-desc strong{
  color: var(--cc-title-on-panel) !important;
  text-shadow: none;
}

.cc-home-list,
.cc-home-empty strong,
.cc-home-panel-info p,
.cc-home-empty span,
.cc-card-desc,
.cc-shop-note,
.cc-shop-hint,
.ccoll-meta,
.ccoll-slot-no,
.ccoll-card-elements,
.cc-card-image-missing,
.cc-stat-pill,
.cc-dir,
.cc-home-pill{
  color: var(--cc-body);
}

.cc-home-empty,
.cc-home-panel,
.cc-card-image,
.cc-card-image-missing,
.cc-stat-pill,
.cc-dir,
.cc-arena-selection-count,
.cc-decks-wrap .cc-pick-el,
.cc-decks-wrap .cc-pick-rarity,
.cc-decks-wrap .cc-pick-qty,
.ccoll-slot-empty{
  background: var(--cc-soft-box) !important;
  border-color: var(--cc-border) !important;
}

.cc-lobby-field select,
.cc-lobby-field input,
.cc-arena-controls select{
  background: var(--cc-field-bg);
  color: var(--cc-field-text);
  border: 1px solid var(--cc-field-border);
}

.cc-page-actions,
.cc-home-actions,
.cc-page-actions-arena{
  position: relative;
  z-index: 2;
}

.cc-arena-topbar{
  padding: 18px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(7,12,22,.54), rgba(7,12,22,.32));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
}

.cc-page-btn,
.cc-home-btn,
.cc-home-mini-btn,
.cc-shop-btn{
  text-shadow: 0 1px 2px rgba(0,0,0,.30);
}

/* Collection : sortie du style inline pour suivre les thèmes */
.ccoll-wrap { margin: 0 0 22px 0; }
.ccoll-hero { margin: 10px 0 18px 0; padding: 22px 26px; border-radius: 18px; }
.ccoll-sub { font-size: 13px; }
.ccoll-panel { border-radius: 14px; padding: 10px; }
.ccoll-meta { margin: 0 0 10px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ccoll-sep { opacity: .65; padding: 0 6px; }
.ccoll-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.ccoll-slot { position: relative; min-height: 118px; border-radius: 14px; padding: 6px; background: var(--cc-collection-slot); }
.ccoll-slot-empty { background: var(--cc-soft-box); }
.ccoll-slot-no { font-size: 10px; font-weight: 800; margin-bottom: 4px; }
.ccoll-card-link { display: block; text-decoration: none; color: inherit; }
.ccoll-card { position: relative; border-radius: 12px; min-height: 100px; background: var(--cc-collection-card); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform .22s ease, box-shadow .22s ease, filter .22s ease; }
.ccoll-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccoll-card-hoverable:hover .ccoll-card { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 26px rgba(79,86,170,.22); filter: saturate(1.05); }
.ccoll-card-hoverable:hover .ccoll-card::after { content: ''; position: absolute; inset: 0; border: 2px solid rgba(132, 104, 255, .55); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.ccoll-card-hoverable:hover .ccoll-card-name { color: #8a63ff !important; }
.ccoll-card-num { font-size: 18px; font-weight: 900; color: rgba(154,169,197,.92); }
.ccoll-card-name { margin-top: 4px; font-size: 10px; text-align: center; min-height: 24px; line-height: 1.2; font-weight: 700; }
.ccoll-card-elements { margin: 3px 0 0 0; font-size: 11px; text-align: center; font-weight: 900; }
.ccoll-card-missing { margin-top: 6px; font-size: 11px; text-align: center; }
.ccoll-qty { position: absolute; right: 7px; top: 7px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: linear-gradient(135deg, #7d5df6, #ef5daa); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
@media (max-width: 1100px) { .ccoll-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 780px)  { .ccoll-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 580px)  { .ccoll-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* =====================================================
   CityCards – adaptation renforcée aux styles phpBB
   Base neutre proche prosilver : on évite les titres blancs
   sur panneaux clairs et on laisse le thème du forum respirer.
   ===================================================== */
:root,
body,
body.light,
body:not(.dark){
  --cc-surface: rgba(255,255,255,.92);
  --cc-surface-soft: rgba(249,250,252,.88);
  --cc-surface-strong: rgba(255,255,255,.96);
  --cc-border: rgba(60,72,88,.12);
  --cc-shadow: 0 14px 30px rgba(0,0,0,.10);
  --cc-text: inherit;
  --cc-heading: #35425b;
  --cc-heading-shadow: 0 1px 0 rgba(255,255,255,.45);
  --cc-title-on-panel: #34425c;
  --cc-muted: #5f6d84;
  --cc-muted-shadow: none;
  --cc-body: #47566f;
  --cc-soft-box: rgba(245,247,250,.92);
  --cc-soft-text: #394861;
  --cc-soft-subtext: #667791;
  --cc-field-bg: rgba(255,255,255,.94);
  --cc-field-border: rgba(124,138,158,.26);
  --cc-field-text: #263246;
  --cc-hero-kicker-bg: rgba(129,89,247,.11);
  --cc-hero-kicker-text: #7346f1;
  --cc-badge-bg: rgba(255,255,255,.96);
  --cc-badge-text: #55627d;
  --cc-collection-slot: rgba(250,251,253,.92);
  --cc-collection-card: linear-gradient(180deg,#f7f9fc,#eef2f7);
}

/* Styles sombres connus / génériques */
body.dark,
body[class*="dark"],
body[class*="black"],
body[class*="noir"],
body[class*="night"]{
  --cc-surface: rgba(15,20,31,.86);
  --cc-surface-soft: rgba(20,26,38,.80);
  --cc-surface-strong: rgba(18,24,36,.92);
  --cc-border: rgba(255,255,255,.10);
  --cc-shadow: 0 18px 36px rgba(0,0,0,.34);
  --cc-text: #e7eefc;
  --cc-heading: #f2f6ff;
  --cc-heading-shadow: 0 2px 10px rgba(0,0,0,.55);
  --cc-title-on-panel: #f2f6ff;
  --cc-muted: #d2ddf2;
  --cc-muted-shadow: none;
  --cc-body: #d7e2f7;
  --cc-soft-box: rgba(255,255,255,.06);
  --cc-soft-text: #eef4ff;
  --cc-soft-subtext: #b8c7e0;
  --cc-field-bg: rgba(255,255,255,.06);
  --cc-field-border: rgba(255,255,255,.14);
  --cc-field-text: #eef4ff;
  --cc-hero-kicker-bg: rgba(255,255,255,.08);
  --cc-hero-kicker-text: #f3dd7a;
  --cc-badge-bg: rgba(255,255,255,.08);
  --cc-badge-text: #eef4ff;
  --cc-collection-slot: rgba(255,255,255,.06);
  --cc-collection-card: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
}

/* On ne suit plus le thème OS, seulement le style du forum */
@media (prefers-color-scheme: dark){
  body:not(.dark):not([class*="dark"]):not([class*="black"]):not([class*="noir"]):not([class*="night"]){
    --cc-surface: rgba(255,255,255,.92);
    --cc-surface-soft: rgba(249,250,252,.88);
    --cc-surface-strong: rgba(255,255,255,.96);
    --cc-border: rgba(60,72,88,.12);
    --cc-shadow: 0 14px 30px rgba(0,0,0,.10);
    --cc-text: inherit;
    --cc-heading: #35425b;
    --cc-heading-shadow: 0 1px 0 rgba(255,255,255,.45);
    --cc-title-on-panel: #34425c;
    --cc-muted: #5f6d84;
    --cc-muted-shadow: none;
    --cc-body: #47566f;
    --cc-soft-box: rgba(245,247,250,.92);
    --cc-soft-text: #394861;
    --cc-soft-subtext: #667791;
    --cc-field-bg: rgba(255,255,255,.94);
    --cc-field-border: rgba(124,138,158,.26);
    --cc-field-text: #263246;
    --cc-hero-kicker-bg: rgba(129,89,247,.11);
    --cc-hero-kicker-text: #7346f1;
    --cc-badge-bg: rgba(255,255,255,.96);
    --cc-badge-text: #55627d;
    --cc-collection-slot: rgba(250,251,253,.92);
    --cc-collection-card: linear-gradient(180deg,#f7f9fc,#eef2f7);
  }
}

.cc-home-wrap,
.cc-shop-wrap,
.ccoll-wrap,
.cc-arena-wrap{
  color: var(--cc-text);
}

.cc-home-hero,
.cc-home-card,
.cc-home-card-highlight,
.cc-home-card-soft,
.cc-home-panel,
.cc-shop-intro,
.cc-shop-card,
.ccoll-hero,
.ccoll-panel,
.ccoll-slot,
.cc-decks-wrap .cc-deck-selected-panel,
.cc-arena-panel{
  background: var(--cc-surface) !important;
  border: 1px solid var(--cc-border);
  box-shadow: var(--cc-shadow);
  backdrop-filter: blur(3px);
}

.cc-home-hero h1,
.cc-arena-topbar h1,
.cc-shop-title,
.ccoll-title{
  color: var(--cc-heading) !important;
  text-shadow: var(--cc-heading-shadow);
}

.cc-home-hero p,
.cc-arena-topbar p,
.cc-arena-help,
.cc-arena-status,
.cc-shop-note,
.cc-shop-hint,
.cc-home-card-text,
.cc-home-panel-info p,
.ccoll-sub,
.cc-home-list,
.cc-home-list li,
.cc-lobby-form-hint,
.cc-home-empty span,
.cc-home-empty strong,
.cc-lobby-item-meta,
.cc-lobby-item-sub,
.cc-match-summary,
.cc-running-meta{
  color: var(--cc-muted) !important;
  text-shadow: none;
}

.cc-home-card-head h2,
.cc-home-panel h2,
.cc-card-head h3,
.ccoll-card-name,
.ccoll-card-missing,
.ccoll-meta strong,
.cc-card-legend,
.cc-card-desc strong,
.cc-home-card .responsive-show,
.cc-home-card .responsive-hide,
.cc-home-statbox strong,
.cc-home-statbox span,
.cc-lobby-field span,
.cc-running-item strong,
.cc-running-item b{
  color: var(--cc-title-on-panel) !important;
  text-shadow: none;
}

.cc-home-statbox,
.cc-home-badge,
.cc-home-empty,
.cc-home-callout,
.cc-home-callout-soft,
.cc-lobby-item,
.cc-decks-wrap .cc-deck-mini-cards,
.cc-decks-wrap .cc-owned-pick-deck.is-unavailable .cc-pick-card,
.cc-arena-selection-count,
.ccoll-slot-empty{
  background: var(--cc-soft-box) !important;
  border-color: var(--cc-border) !important;
}

.cc-home-hero,
.cc-home-card,
.cc-home-panel,
.cc-shop-card,
.cc-arena-panel,
.ccoll-panel,
.ccoll-slot{
  border-radius: 18px;
}

.cc-home-grid,
.cc-home-subgrid{
  gap: 16px;
}

.cc-home-statbox{
  background: var(--cc-badge-bg);
  color: var(--cc-badge-text);
  border: 1px solid var(--cc-border);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.cc-home-kicker,
.cc-home-pill{
  box-shadow: none;
}

.cc-home-actions,
.cc-page-actions,
.cc-page-actions-arena{
  margin-bottom: 18px;
}

.cc-lobby-field select,
.cc-lobby-field input,
.cc-arena-controls select,
.cc-home-card select,
.cc-home-card input,
.cc-home-card textarea,
.cc-home-panel select,
.cc-home-panel input,
.cc-home-panel textarea{
  background: var(--cc-field-bg) !important;
  color: var(--cc-field-text) !important;
  border: 1px solid var(--cc-field-border) !important;
  box-shadow: none;
}

.cc-lobby-field select:focus,
.cc-lobby-field input:focus,
.cc-arena-controls select:focus,
.cc-home-card select:focus,
.cc-home-card input:focus,
.cc-home-card textarea:focus,
.cc-home-panel select:focus,
.cc-home-panel input:focus,
.cc-home-panel textarea:focus{
  border-color: #7a5af8 !important;
  box-shadow: 0 0 0 3px rgba(122,90,248,.12) !important;
}

.cc-home-card a,
.cc-home-panel a,
.cc-shop-card a,
.ccoll-panel a{
  text-shadow: none;
}

.cc-home-card .error,
.cc-home-panel .error,
.cc-home-card .successbox,
.cc-home-panel .successbox,
.cc-home-card .notice,
.cc-home-panel .notice{
  border-radius: 12px;
}


/* =====================================================
   Ajustements forum phpBB v3
   - lisibilité des entêtes
   - boutique/collection sans débordement
   - ne touche pas arena.css
   ===================================================== */

.cc-home-hero,
.cc-arena-topbar,
.cc-shop-intro,
.ccoll-hero,
.ccoll-panel,
.cc-arena-panel,
.cc-home-card,
.cc-home-card-highlight,
.cc-home-card-soft,
.cc-shop-card,
.cc-decks-wrap .cc-deck-selected-panel{
  background: var(--cc-surface) !important;
  border: 1px solid var(--cc-border) !important;
}

.cc-home-hero h1,
.cc-arena-topbar h1,
.cc-shop-title,
.ccoll-title{
  color: var(--cc-heading) !important;
  text-shadow: none !important;
}

.cc-home-hero p,
.cc-arena-topbar p,
.cc-arena-help,
.cc-arena-status,
.cc-shop-note,
.cc-shop-hint,
.cc-home-card-text,
.cc-home-panel-info p,
.ccoll-sub,
.ccoll-meta,
.ccoll-card-elements,
.ccoll-slot-no,
.cc-home-list,
.cc-home-list li,
.cc-lobby-form-hint,
.cc-home-empty span,
.cc-home-empty strong,
.cc-lobby-item-main span,
.cc-running-item span,
.cc-running-meta{
  color: var(--cc-muted) !important;
  text-shadow: none !important;
}

.cc-home-card-head h2,
.cc-home-panel h2,
.cc-card-head h3,
.ccoll-card-name,
.ccoll-card-missing,
.ccoll-meta strong,
.cc-home-statbox strong,
.cc-home-statbox span,
.cc-lobby-item-main strong,
.cc-lobby-field span,
.cc-home-empty strong,
.cc-home-callout strong{
  color: var(--cc-title-on-panel) !important;
  text-shadow: none !important;
}

.cc-arena-topbar{
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--cc-surface) !important;
  box-shadow: var(--cc-shadow);
  backdrop-filter: none;
}

.cc-arena-topbar p{
  max-width: 900px;
}

/* Enlève l'effet gris autour des pseudos sur la plateforme sans toucher arena.css */
html body .cc-battle-stage .cc-battle-player-head strong,
html body .cc-battle-stage .cc-battle-player-sub,
html body .cc-battle-stage .cc-vs-badge,
html body .cc-battle-stage .cc-winner-badge{
  text-shadow: none !important;
  filter: none !important;
}

/* Boutons plus cohérents avec le style du forum */
.cc-page-btn,
.cc-home-btn,
.cc-home-mini-btn,
.cc-shop-btn{
  text-shadow: none !important;
}

/* Boutique : éviter les débordements sur styles étroits */
.cc-shop-grid{
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
}

.cc-shop-card{
  overflow: hidden;
  gap: 18px;
  align-items: flex-start;
}

.cc-card-visual{
  flex: 0 0 220px;
}

.cc-card-board{
  width: 210px;
  height: 244px;
  margin: 0 auto;
}

.cc-card-image,
.cc-card-image-missing{
  top: 38px;
  left: 31px;
  width: 148px;
  height: 166px;
  border-radius: 14px;
}

.cc-dir{
  min-width: 42px;
  height: 24px;
  padding: 0 7px;
  font-size: 10px;
  line-height: 1;
  gap: 4px;
  box-sizing: border-box;
}

.cc-dir strong{
  margin-left: 2px;
  font-size: 11px;
  line-height: 1;
}

.cc-dir-n  { top: 4px; left: 84px; }
.cc-dir-ne { top: 4px; right: 0; }
.cc-dir-e  { top: 110px; right: 0; }
.cc-dir-se { bottom: 6px; right: 0; }
.cc-dir-s  { bottom: 6px; left: 84px; }
.cc-dir-sw { bottom: 6px; left: 0; }
.cc-dir-w  { top: 110px; left: 0; }
.cc-dir-nw { top: 4px; left: 0; }

.cc-card-head{
  align-items: center;
}

.cc-card-head h3{
  font-size: 24px;
  line-height: 1.1;
}

.cc-card-desc{
  font-size: 15px;
  line-height: 1.45;
}

.cc-stats-large{
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px 10px;
}

.cc-stat-pill{
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.cc-stat-pill strong{
  font-size: 13px;
}

.cc-buy-btn{
  min-height: 40px;
  padding: 0 16px;
  font-size: 17px;
}

.cc-price-badge{
  min-height: 36px;
  padding: 0 14px;
  font-size: 15px;
}

/* Collection générale */
.ccoll-grid{
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.ccoll-slot{
  min-height: 128px;
}

@media (max-width: 1180px){
  .cc-shop-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px){
  .cc-shop-card{
    flex-direction: column;
    align-items: center;
  }

  .cc-card-visual{
    flex: 0 0 auto;
    width: 100%;
  }

  .cc-card-info{
    width: 100%;
  }

  .cc-stats-large{
    grid-template-columns: repeat(2, minmax(72px, 1fr));
  }
}

@media (max-width: 560px){
  .cc-shop-grid{
    grid-template-columns: 1fr;
  }

  .cc-shop-card{
    padding: 16px;
  }

  .cc-card-board{
    transform: scale(.92);
    transform-origin: top center;
  }
}


.cc-pack-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.cc-pack-card{border:1px solid rgba(0,0,0,.12);border-radius:14px;padding:14px;background:rgba(255,255,255,.78)}.cc-pack-card-chosen{box-shadow:0 0 0 2px rgba(46,134,222,.35) inset}.cc-pack-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}.cc-pack-price{font-weight:700}.cc-pack-revealed-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-top:12px}.cc-pack-reveal-item{border:1px solid rgba(0,0,0,.1);border-radius:10px;padding:8px;background:rgba(255,255,255,.9);display:flex;flex-direction:column;gap:6px}.cc-pack-reveal-item img{width:100%;max-height:160px;object-fit:contain}.cc-pack-owned-ok{font-size:.92em;opacity:.8}.cc-pack-tier-status{font-weight:700;margin-bottom:10px}

.cc-pack-carousel-actions { margin: 0 0 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cc-pack-carousel-note { font-size: .92em; opacity: .85; }
.cc-pack-picks { font-size: .9em; opacity: .85; margin-top: 6px; }
.cc-pack-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cc-pack-card-suggested { transform: translateY(-6px); box-shadow: 0 0 0 2px rgba(255,215,0,.55), 0 12px 24px rgba(0,0,0,.28); border-color: rgba(255,215,0,.75) !important; }

.cc-pack-reset-form { margin-top: 12px; display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.cc-pack-reset-note { font-size:.92em; opacity:.9; }


.cc-pack-carousel-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin: 0 0 14px; }
.cc-pack-carousel-note { opacity:.9; }
.cc-pack-carousel-timer { display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:28px; padding:0 10px; border-radius:999px; background:rgba(255,255,255,.08); font-weight:700; }
.cc-pack-tier-spinning .cc-pack-carousel-timer { animation: ccPackPulse 1s ease-in-out infinite; }
.cc-pack-card { transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, filter .18s ease; }
.cc-pack-card-roulette { transform: translateY(-8px) scale(1.02); box-shadow: 0 0 0 2px rgba(255,255,255,.24), 0 14px 28px rgba(0,0,0,.30); }
.cc-pack-card-suggested { box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 18px 36px rgba(0,0,0,.32); }
.cc-pack-card-final { animation: ccPackWinner .8s ease; }
@keyframes ccPackWinner {
  0% { transform: translateY(-8px) scale(1.02); }
  35% { transform: translateY(-16px) scale(1.05); }
  100% { transform: translateY(-6px) scale(1.02); }
}
@keyframes ccPackPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

