.ccg-demo-page {
  background: #06172b;
}

.ccg-demo-header {
  margin-bottom: 26px;
}

.ccg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #dbe9ff;
  font-weight: 600;
}

.ccg-back-link:hover {
  color: #f5c952;
}

.ccg-page-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
}

.ccg-page-desc {
  margin: 10px 0 0;
  color: #9cb2cf;
  max-width: 720px;
}

.ccg-demo-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.ccg-board {
  position: relative;
  padding: 1px;
  border-radius: 28px;
  background: linear-gradient(130deg, #6ca3cb 0%, #e3bc3f 100%);
}

.ccg-frame {
  border-radius: 27px;
  padding: 28px;
  background: linear-gradient(170deg, #1b2c43 0%, #112038 100%);
}

.ccg-coin-stage {
  display: flex;
  justify-content: center;
  padding: 8px 0 18px;
}

.ccg-coin {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #f2c957;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 36px rgba(242, 201, 87, 0.25);
  background: radial-gradient(circle at 30% 30%, #ffd66e 0%, #e3bc3f 52%, #976d0a 100%);
  overflow: hidden;
}

.ccg-coin::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.ccg-coin__side {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #101b2f;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ccg-coin[data-coin-face="heads"] .ccg-coin__side--heads {
  opacity: 1;
}

.ccg-coin[data-coin-face="tails"] .ccg-coin__side--tails {
  opacity: 1;
}

.ccg-coin.is-flipping {
  animation: ccgCoinFlip 0.75s ease-in-out;
}

@keyframes ccgCoinFlip {
  0% {
    transform: rotateY(0deg) scale(1);
  }
  50% {
    transform: rotateY(540deg) scale(0.85);
  }
  100% {
    transform: rotateY(1080deg) scale(1);
  }
}

.ccg-coin.is-win {
  box-shadow: 0 0 0 3px rgba(57, 214, 129, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.ccg-coin.is-loss {
  box-shadow: 0 0 0 3px rgba(255, 95, 95, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.ccg-wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 18px;
}

.ccg-wheel-wrap {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.ccg-wheel-pointer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  width: 4px;
  height: 44%;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbe8b3 0%, #f2c957 100%);
  z-index: 6;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.42));
}

.ccg-wheel-pointer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #f2c957;
}

.ccg-wheel-pointer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #f2c957;
  background: radial-gradient(circle at 35% 30%, #fdf3d0 0%, #f2c957 100%);
}

.ccg-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid #f2c957;
  overflow: hidden;
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.48),
    inset 0 0 0 3px rgba(255, 255, 255, 0.2);
  transform: rotate(0deg);
  transition: transform 4.2s cubic-bezier(0.12, 0.86, 0.2, 1);
}

.ccg-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 0%, transparent 52%, rgba(0, 0, 0, 0.34) 100%);
  pointer-events: none;
  z-index: 2;
}

.ccg-wheel__labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ccg-wheel__slice-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-size: clamp(0.62rem, 1.2vw, 0.84rem);
  white-space: nowrap;
}

.ccg-wheel__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(242, 201, 87, 0.72);
  box-shadow: inset 0 0 16px rgba(242, 201, 87, 0.2);
  background: radial-gradient(circle at 35% 30%, #213f61 0%, #122a46 100%);
  color: #eef6ff;
  font-size: clamp(0.88rem, 1.8vw, 1.1rem);
  font-weight: 800;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  z-index: 4;
}

.ccg-wheel.is-spinning {
  filter: saturate(1.08) brightness(1.04);
}

.ccg-keno-stage {
  border-radius: 16px;
  border: 1px solid rgba(133, 170, 206, 0.34);
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.96) 0%, rgba(8, 20, 36, 0.96) 100%);
  padding: 14px;
  margin-bottom: 14px;
}

.ccg-keno-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.ccg-keno-number {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(242, 201, 87, 0.78);
  background: rgba(10, 24, 40, 0.78);
  color: #f3ca5b;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ccg-keno-number:hover {
  transform: translateY(-1px);
  border-color: rgba(246, 215, 122, 0.95);
}

.ccg-keno-number.is-selected {
  background: linear-gradient(150deg, #f1ce59 0%, #dbb239 100%);
  color: #0f2038;
  border-color: rgba(246, 215, 122, 0.96);
}

.ccg-keno-number.is-drawn {
  border-color: rgba(108, 182, 255, 0.86);
  color: #8bc6ff;
  background: rgba(12, 31, 52, 0.9);
}

.ccg-keno-number.is-hit {
  border-color: rgba(112, 239, 174, 0.9);
  color: #0e243d;
  background: linear-gradient(150deg, #66de9f 0%, #2ec27f 100%);
}

.ccg-keno-number.is-miss {
  border-color: rgba(246, 166, 96, 0.72);
}

.ccg-keno-tools {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ccg-keno-tool {
  min-height: 44px;
  min-width: 152px;
  padding: 8px 18px;
}

.ccg-keno-meta {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(242, 201, 87, 0.42);
  background: rgba(8, 20, 36, 0.72);
  color: #bdd0e8;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
}

.ccg-option-list--keno li {
  font-size: 0.93rem;
}

.ccg-keno-help-title {
  margin: 0 0 8px;
  color: #f6fbff;
  font-size: 1.05rem;
  font-weight: 800;
}

.ccg-keno-help-desc {
  margin: 0 0 12px;
  color: #adc3de;
  line-height: 1.45;
  font-size: 0.92rem;
}

.ccg-choice-buttons--keno {
  display: none;
}

.ccg-cardfind-stage {
  border-radius: 16px;
  border: 1px solid rgba(133, 170, 206, 0.34);
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.96) 0%, rgba(8, 20, 36, 0.96) 100%);
  padding: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 12px;
}

.ccg-cardfind-target {
  border-radius: 10px;
  border: 1px dashed rgba(242, 201, 87, 0.42);
  background: rgba(8, 20, 36, 0.72);
  padding: 10px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.ccg-cardfind-target p {
  margin: 0;
  color: #c3d5eb;
  font-size: 0.92rem;
}

.ccg-cardfind-target-card {
  width: 108px;
}

.ccg-cardfind-target-card .ccg-card {
  width: 100%;
}

.ccg-cardfind-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ccg-cardfind-slot {
  border: 1px solid rgba(133, 170, 206, 0.32);
  border-radius: 10px;
  background: rgba(10, 24, 40, 0.72);
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ccg-cardfind-slot:hover {
  transform: translateY(-1px);
}

.ccg-cardfind-slot .ccg-card {
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
}

.ccg-cardfind-slot.is-selected {
  border-color: rgba(244, 203, 91, 0.85);
  box-shadow: 0 0 0 2px rgba(244, 203, 91, 0.2);
}

.ccg-cardfind-slot.is-win {
  border-color: rgba(112, 239, 174, 0.9);
  box-shadow: 0 0 0 2px rgba(112, 239, 174, 0.2);
}

.ccg-cardfind-slot.is-loss {
  opacity: 0.72;
}

.ccg-cardfind-deck.is-shuffling .ccg-cardfind-slot {
  animation: ccgCardFindShuffle 0.22s ease-in-out infinite alternate;
}

@keyframes ccgCardFindShuffle {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-4px);
  }
}

.ccg-choice-buttons--cardfind {
  display: none;
}

.ccg-pool-stage {
  border-radius: 16px;
  border: 1px solid rgba(133, 170, 206, 0.34);
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.96) 0%, rgba(8, 20, 36, 0.96) 100%);
  padding: 14px;
  margin-bottom: 14px;
}

.ccg-pool-arena {
  position: relative;
  min-height: 460px;
  border-radius: 12px;
  border: 1px solid rgba(111, 145, 189, 0.35);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(13, 35, 53, 0.88), rgba(9, 25, 40, 0.9));
  background-size: cover;
  background-position: center;
}

.ccg-pool-arena.is-drawing {
  filter: saturate(1.08);
}

.ccg-pool-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 10px;
  border: 1px solid rgba(242, 201, 87, 0.45);
  background: rgba(8, 20, 34, 0.75);
  color: #bdd0e8;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ccg-pool-label strong {
  color: #f3ce67;
}

.ccg-pool-ball {
  position: absolute;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(6, 12, 20, 0.7);
  background: radial-gradient(circle at 30% 30%, #f7fbff 0%, #bacce3 100%);
  background-size: cover;
  background-position: center;
  color: #0f233a;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.ccg-pool-ball.is-winner {
  box-shadow: 0 0 0 3px rgba(112, 239, 174, 0.26), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.ccg-choice-buttons--pool {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ccg-choice-buttons--pool .ccg-choice-btn {
  min-height: 82px;
  padding: 10px;
}

.ccg-pool-choice-ball {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(242, 201, 87, 0.38);
  background: radial-gradient(circle at 30% 30%, #f7fbff 0%, #bacce3 100%);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #0f233a;
  font-weight: 800;
}

.ccg-slot-stage {
  border-radius: 16px;
  border: 1px solid rgba(133, 170, 206, 0.34);
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.96) 0%, rgba(8, 20, 36, 0.96) 100%);
  padding: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 12px;
}

.ccg-slot-reels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ccg-slot-reel {
  min-height: 112px;
  border-radius: 10px;
  border: 1px solid rgba(125, 161, 205, 0.35);
  background: linear-gradient(180deg, rgba(3, 8, 18, 0.98) 0%, rgba(11, 20, 51, 0.96) 44%, rgba(3, 8, 18, 0.98) 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 18px rgba(80, 64, 255, 0.24);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ccg-slot-reel__digit {
  font-size: clamp(2.1rem, 4.8vw, 3.1rem);
  line-height: 1;
  font-weight: 800;
  color: #edf4ff;
  text-shadow: 0 0 12px rgba(110, 95, 255, 0.42);
}

.ccg-slot-reel.is-spinning .ccg-slot-reel__digit {
  animation: ccgSlotTick 0.09s linear infinite;
}

.ccg-slot-reel.is-hit {
  border-color: rgba(112, 239, 174, 0.82);
  box-shadow: 0 0 0 2px rgba(112, 239, 174, 0.2), inset 0 0 18px rgba(112, 239, 174, 0.16);
  transform: translateY(-1px);
}

.ccg-slot-combos {
  border-radius: 12px;
  border: 1px dashed rgba(242, 201, 87, 0.42);
  background: rgba(8, 20, 36, 0.75);
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  color: #bdd0e8;
  font-size: 0.94rem;
}

.ccg-slot-combos strong {
  color: #f3ce67;
}

.ccg-choice-buttons--slot {
  display: none;
}

@keyframes ccgSlotTick {
  0% {
    opacity: 0.65;
    transform: translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: translateY(3px);
  }
}

.ccg-dice-stage {
  border-radius: 16px;
  border: 1px solid rgba(133, 170, 206, 0.34);
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.96) 0%, rgba(8, 20, 36, 0.96) 100%);
  padding: 16px;
  margin-bottom: 14px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.ccg-dice-cube {
  width: min(100%, 200px);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid rgba(124, 161, 206, 0.38);
  background: radial-gradient(circle at 30% 24%, rgba(56, 115, 177, 0.32), rgba(9, 22, 40, 0.98));
  box-shadow: inset 0 0 22px rgba(81, 98, 255, 0.2), 0 16px 32px rgba(0, 0, 0, 0.34);
  padding: 14px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ccg-dice-cube img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

.ccg-dice-stage.is-rolling .ccg-dice-cube {
  animation: ccgDiceShake 0.28s ease-in-out infinite;
}

.ccg-dice-stage.is-hit .ccg-dice-cube {
  border-color: rgba(112, 239, 174, 0.88);
  box-shadow: 0 0 0 3px rgba(112, 239, 174, 0.2), inset 0 0 22px rgba(112, 239, 174, 0.2), 0 16px 32px rgba(0, 0, 0, 0.36);
}

.ccg-dice-stage__meta {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed rgba(242, 201, 87, 0.42);
  background: rgba(8, 20, 36, 0.72);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #bdd0e8;
  font-size: 0.94rem;
}

.ccg-dice-stage__meta strong {
  color: #f6fbff;
  font-size: 1.04rem;
  letter-spacing: 0.02em;
}

.ccg-choice-buttons--dice {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@keyframes ccgDiceShake {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  25% {
    transform: rotate(4deg) translate(2px, -1px);
  }
  50% {
    transform: rotate(-4deg) translate(-2px, 1px);
  }
  75% {
    transform: rotate(3deg) translate(1px, 2px);
  }
  100% {
    transform: rotate(0deg) translate(0, 0);
  }
}

.ccg-color-stage {
  border-radius: 16px;
  border: 1px solid rgba(133, 170, 206, 0.34);
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.95) 0%, rgba(9, 21, 36, 0.95) 100%);
  padding: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 12px;
}

.ccg-color-stage__pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ccg-color-pill {
  --pill-rgb: 47, 140, 255;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 64px;
  padding: 10px 8px;
  background: linear-gradient(165deg, rgba(9, 20, 36, 0.95) 0%, rgba(7, 15, 27, 0.95) 100%);
  color: #edf5ff;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.ccg-color-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 58%);
  pointer-events: none;
}

.ccg-color-pill > span {
  position: relative;
  z-index: 1;
}

.ccg-color-pill--red {
  --pill-rgb: 215, 76, 76;
}

.ccg-color-pill--green {
  --pill-rgb: 45, 183, 120;
}

.ccg-color-pill--violet {
  --pill-rgb: 141, 100, 255;
}

.ccg-color-pill--black {
  --pill-rgb: 24, 35, 51;
}

.ccg-color-pill--blue {
  --pill-rgb: 53, 125, 241;
}

.ccg-color-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
}

.ccg-color-pill.is-selected,
.ccg-color-pill.is-active {
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(var(--pill-rgb), 0.34);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 58%),
    linear-gradient(165deg, rgba(var(--pill-rgb), 0.46) 0%, rgba(var(--pill-rgb), 0.24) 100%);
}

.ccg-color-stage__result {
  border-radius: 12px;
  border: 1px dashed rgba(242, 201, 87, 0.44);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(9, 22, 37, 0.72);
  color: #b5c8df;
}

.ccg-color-stage__result strong {
  color: #f3ce67;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.ccg-color-stage__result strong[data-color-value="red"] {
  color: #ff8f8f;
}

.ccg-color-stage__result strong[data-color-value="green"] {
  color: #7ff0b7;
}

.ccg-color-stage__result strong[data-color-value="violet"] {
  color: #c0a2ff;
}

.ccg-andar-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.ccg-andar-card-lane {
  border-radius: 16px;
  border: 1px solid rgba(133, 170, 206, 0.34);
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.95) 0%, rgba(8, 20, 36, 0.95) 100%);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.ccg-andar-card-lane__title {
  margin: 0 0 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #f0f7ff;
  font-weight: 700;
}

.ccg-andar-card-lane__title span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 201, 87, 0.62);
  background: radial-gradient(circle at 30% 30%, #ffd86a 0%, #e0b233 55%, #a67c10 100%);
  color: #102039;
  font-size: 1rem;
}

.ccg-andar-card-lane__title small {
  font-size: 0.92rem;
  color: #b9cde6;
}

.ccg-andar-card-lane__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 154px;
  align-content: start;
}

.ccg-andar-center {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(242, 201, 87, 0.42);
  background: linear-gradient(165deg, rgba(11, 26, 44, 0.82), rgba(8, 19, 34, 0.82));
  padding: 12px;
}

.ccg-andar-center__label {
  margin: 0;
  color: #a9bfdc;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.ccg-andar-joker-card {
  width: min(100%, 120px);
  margin: 0 auto;
}

.ccg-andar-card {
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.ccg-andar-card--dealt {
  opacity: 0;
  transform: translateY(-10px) scale(0.94);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ccg-andar-card--dealt.is-entered {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ccg-andar-card-lane.is-selected {
  border-color: rgba(244, 203, 91, 0.75);
  box-shadow: 0 0 0 2px rgba(244, 203, 91, 0.22), inset 0 0 22px rgba(244, 203, 91, 0.08);
}

.ccg-andar-card-lane.is-dealing {
  filter: brightness(1.12);
}

.ccg-andar-card-lane.is-win {
  border-color: rgba(109, 242, 169, 0.72);
  box-shadow: 0 0 0 2px rgba(109, 242, 169, 0.22), inset 0 0 20px rgba(109, 242, 169, 0.08);
}

.ccg-andar-card-lane.is-loss {
  opacity: 0.76;
}

.ccg-choice-buttons--andar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ccg-choice-buttons--andar .ccg-choice-btn {
  min-height: 58px;
}

.ccg-choice-buttons--color {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ccg-choice-buttons--color .ccg-choice-btn[data-choice="red"] {
  border-color: rgba(215, 76, 76, 0.55);
}

.ccg-choice-buttons--color .ccg-choice-btn[data-choice="green"] {
  border-color: rgba(45, 183, 120, 0.55);
}

.ccg-choice-buttons--color .ccg-choice-btn[data-choice="violet"] {
  border-color: rgba(141, 100, 255, 0.58);
}

.ccg-coin-hint {
  margin: 0 0 16px;
  color: #9eb6d5;
  text-align: center;
}

.ccg-play-form {
  display: grid;
  gap: 14px;
}

.ccg-choice-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ccg-choice-btn {
  border: 1px solid rgba(225, 186, 70, 0.55);
  background: #112035;
  color: #e6f0ff;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.ccg-choice-btn:hover {
  border-color: #f4cb5b;
  transform: translateY(-1px);
}

.ccg-choice-btn.is-active {
  color: #0f1e34;
  background: linear-gradient(135deg, #f4cb5b 0%, #d8aa2d 100%);
  border-color: #f6d77a;
  box-shadow: 0 10px 22px rgba(230, 191, 74, 0.3);
}

.ccg-choice-buttons--dynamic .ccg-choice-btn {
  display: grid;
  gap: 2px;
}

.ccg-choice-buttons--dynamic {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.ccg-choice-btn__label {
  line-height: 1.1;
}

.ccg-choice-btn__meta {
  display: block;
  color: inherit;
  opacity: 0.85;
  font-size: 0.78rem;
  line-height: 1;
}

.ccg-field label {
  display: block;
  margin-bottom: 7px;
  color: #d7e6fd;
  font-weight: 600;
}

.ccg-field .form--control {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(139, 176, 212, 0.35);
  background: #0b1a2e;
  color: #f6fbff;
  padding: 11px 14px;
}

.ccg-field .form--control:focus {
  border-color: #f5cd62;
  box-shadow: 0 0 0 3px rgba(245, 205, 98, 0.14);
}

.ccg-play-button {
  width: 100%;
  min-height: 54px;
  font-size: 1.1rem;
}

.ccg-play-button.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.ccg-result {
  margin: 0;
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(7, 19, 34, 0.9);
  border: 1px solid rgba(104, 140, 175, 0.4);
  color: #c6d8f0;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.ccg-result[data-state="pending"] {
  color: #f5d477;
  border-color: rgba(245, 212, 119, 0.4);
}

.ccg-result[data-state="success"] {
  color: #6df2a9;
  border-color: rgba(109, 242, 169, 0.38);
}

.ccg-result[data-state="error"] {
  color: #ff9f9f;
  border-color: rgba(255, 159, 159, 0.34);
}

.ccg-sidebar {
  display: grid;
  gap: 16px;
}

.ccg-stat-card {
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(133, 170, 206, 0.38);
  background: linear-gradient(170deg, rgba(19, 33, 53, 0.95) 0%, rgba(13, 24, 40, 0.95) 100%);
}

.ccg-stat-card h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.1rem;
}

.ccg-stat-card p {
  margin: 6px 0;
  color: #abc0da;
}

.ccg-stat-card strong,
.ccg-stat-card [data-casino-balance] {
  color: #f4ca59;
  font-weight: 700;
}

.ccg-art-placeholder {
  min-height: 150px;
  border: 2px dashed rgba(246, 204, 89, 0.55);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  color: #dbe9ff;
  background: linear-gradient(145deg, rgba(15, 33, 54, 0.9), rgba(10, 24, 40, 0.9));
}

.ccg-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ccg-option-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 10px;
  border: 1px solid rgba(133, 170, 206, 0.28);
  background: rgba(9, 22, 37, 0.6);
  padding: 8px 10px;
  color: #d5e5fa;
}

.ccg-option-list strong {
  color: #f4ca59;
}

.ccg-poker-stage {
  display: grid;
  gap: 14px;
  margin-bottom: 10px;
}

.ccg-poker-hand {
  border: 1px solid rgba(133, 170, 206, 0.3);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(12, 28, 46, 0.96) 0%, rgba(9, 21, 36, 0.96) 100%);
  padding: 12px;
}

.ccg-poker-hand__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ccg-poker-hand__meta h4 {
  margin: 0;
  color: #f7fbff;
  font-size: 1rem;
}

.ccg-poker-hand__meta span {
  color: #9bb3d0;
  font-size: 0.92rem;
  text-align: right;
}

.ccg-poker-divider {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ccg-poker-divider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(225, 186, 70, 0.45);
  color: #f5cf65;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(11, 27, 45, 0.8);
}

.ccg-poker-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ccg-card {
  aspect-ratio: 2.5 / 3.5;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(160deg, #f9fcff 0%, #e6eef9 100%);
  color: #112038;
  display: grid;
  place-items: center;
  padding: 6px 4px;
  position: relative;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.ccg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ccg-card--image,
.ccg-card--back {
  padding: 0;
  background: #0d1e34;
}

.ccg-card:hover {
  transform: translateY(-2px);
}

.ccg-card__rank {
  position: absolute;
  top: 6px;
  left: 7px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}

.ccg-card__suit {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
}

.ccg-card.is-red {
  color: #cf3b3b;
}

.ccg-card--back {
  border-color: rgba(225, 186, 70, 0.42);
  background: linear-gradient(155deg, #1e3c63 0%, #112742 100%);
  color: #f7d778;
}

.ccg-card__back-mark {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ccg-option-list--poker li {
  font-size: 0.92rem;
  padding: 7px 9px;
}

.ccg-blackjack-stage {
  display: grid;
  gap: 14px;
  margin-bottom: 10px;
}

.ccg-blackjack-stage.has-theme-art {
  border: 1px solid rgba(133, 170, 206, 0.28);
  border-radius: 14px;
  padding: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ccg-blackjack-hand {
  border: 1px solid rgba(133, 170, 206, 0.3);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(11, 40, 26, 0.96) 0%, rgba(8, 28, 20, 0.96) 100%);
  padding: 12px;
}

.ccg-blackjack-hand__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ccg-blackjack-hand__meta h4 {
  margin: 0;
  color: #f7fbff;
  font-size: 1rem;
}

.ccg-blackjack-hand__meta span {
  color: #d2e3f5;
  font-size: 0.92rem;
  text-align: right;
}

.ccg-blackjack-divider {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ccg-blackjack-divider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(225, 186, 70, 0.45);
  color: #f5cf65;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(11, 27, 45, 0.8);
}

.ccg-blackjack-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 8px;
}

.ccg-bj-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 21, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.22);
}

.ccg-bj-card img {
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  object-fit: cover;
  display: block;
}

.ccg-blackjack-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ccg-blackjack-actions .ccg-play-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.ccg-option-list--blackjack li {
  font-size: 0.92rem;
  padding: 8px 9px;
}

.ccg-open-asset-note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #9eb6d5;
  line-height: 1.45;
}

.ccg-open-asset-note a {
  color: #f3ca5b;
  text-decoration: underline;
  word-break: break-word;
}

.ccg-under-dev {
  border-radius: 24px;
  border: 1px solid rgba(133, 170, 206, 0.38);
  background: linear-gradient(170deg, rgba(19, 33, 53, 0.95) 0%, rgba(13, 24, 40, 0.95) 100%);
  padding: 28px;
}

.ccg-under-dev h2 {
  color: #ffffff;
  margin: 0 0 10px;
}

.ccg-under-dev p {
  color: #abc0da;
  margin: 0 0 16px;
}

@media (max-width: 991px) {
  .ccg-demo-layout {
    grid-template-columns: 1fr;
  }

  .ccg-cardfind-target-card {
    width: 96px;
  }

  .ccg-keno-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .ccg-pool-arena {
    min-height: 360px;
  }

  .ccg-choice-buttons--pool {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ccg-slot-reels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ccg-choice-buttons--dice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ccg-andar-stage {
    grid-template-columns: 1fr;
  }

  .ccg-andar-center {
    order: -1;
  }
}

@media (max-width: 575px) {
  .ccg-frame {
    padding: 18px;
  }

  .ccg-choice-buttons {
    grid-template-columns: 1fr;
  }

  .ccg-coin {
    width: 168px;
    height: 168px;
  }

  .ccg-wheel {
    width: min(100%, 320px);
    height: min(100%, 320px);
  }

  .ccg-wheel__text {
    width: 86px;
    height: 86px;
    font-size: 0.8rem;
  }

  .ccg-wheel__slice-label {
    font-size: 0.62rem;
  }

  .ccg-poker-cards {
    gap: 6px;
  }

  .ccg-card__rank {
    font-size: 0.76rem;
  }

  .ccg-card__suit {
    font-size: 1rem;
  }

  .ccg-poker-hand__meta span {
    font-size: 0.82rem;
  }

  .ccg-blackjack-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .ccg-blackjack-actions {
    grid-template-columns: 1fr;
  }

  .ccg-blackjack-hand__meta span {
    font-size: 0.82rem;
  }

  .ccg-keno-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .ccg-keno-number {
    min-height: 36px;
    font-size: 0.92rem;
  }

  .ccg-keno-tools {
    flex-wrap: wrap;
  }

  .ccg-keno-tool {
    min-width: 132px;
    width: 100%;
  }

  .ccg-keno-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ccg-cardfind-deck {
    gap: 6px;
  }

  .ccg-cardfind-slot {
    padding: 6px;
  }

  .ccg-cardfind-target-card {
    width: 84px;
  }

  .ccg-pool-arena {
    min-height: 300px;
  }

  .ccg-pool-ball {
    width: 44px;
    height: 44px;
  }

  .ccg-choice-buttons--pool {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ccg-pool-choice-ball {
    width: 46px;
    height: 46px;
  }

  .ccg-slot-reel {
    min-height: 92px;
  }

  .ccg-dice-cube {
    width: min(100%, 150px);
    padding: 10px;
  }

  .ccg-dice-stage__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ccg-choice-buttons--dice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ccg-color-stage__pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccg-choice-buttons--color {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccg-andar-card-lane__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 124px;
  }

  .ccg-andar-joker-card {
    width: min(100%, 92px);
  }
}
