/* AUREA Coin Chicken — page styles (premium pass, 2026-12-01).
   The arena is the hero: a glass stage on deep navy with a gold ->
   violet neon frame, coins drifting through the sky layer, a coin
   pile and the crowned chick whose glow and scale grow with the
   server pot (10 pt -> 100 pt), a shimmering growth bar, and a
   45-second countdown bar that turns red as time runs out. Winning
   fires a coin burst and a big count-up number. All figures come
   from the server; this file is presentation only. */

/* --- hero + play card ------------------------------------------- */
.rw-hero h1 {
  background: linear-gradient(92deg, #FFF3B0 0%, #FFD700 45%, #B18CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, .22));
}
#cardChicken {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(138, 43, 226, .28),
    0 0 30px rgba(138, 43, 226, .20),
    0 0 18px rgba(255, 215, 0, .10),
    0 18px 44px rgba(0, 0, 0, .5),
    inset 0 0 30px rgba(138, 43, 226, .05);
}
#cardChicken::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .055) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: ckSheen 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
#cardChicken > * { position: relative; z-index: 1; }
@keyframes ckSheen {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -130% 0; }
}

/* --- versus bar --------------------------------------------------- */
.ck-versus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 4px;
}
.ck-side {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 12px 7px 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(rgba(20, 24, 40, .92), rgba(20, 24, 40, .92)) padding-box,
    linear-gradient(120deg, rgba(255, 215, 0, .65), rgba(138, 43, 226, .35)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 14px rgba(0, 0, 0, .3);
}
.ck-side.ck-opp {
  justify-content: flex-end;
  text-align: right;
  padding: 7px 8px 7px 12px;
  background:
    linear-gradient(rgba(20, 24, 40, .92), rgba(20, 24, 40, .92)) padding-box,
    linear-gradient(240deg, rgba(177, 140, 255, .65), rgba(138, 43, 226, .35)) border-box;
}
.ck-ava {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 215, 0, .7);
  box-shadow: 0 0 12px rgba(255, 215, 0, .35);
  background: #0A0F1E;
}
.ck-ava-opp {
  object-fit: contain;
  padding: 4px;
  border-color: rgba(177, 140, 255, .7);
  box-shadow: 0 0 12px rgba(138, 43, 226, .4);
}
.ck-name {
  font-weight: 800;
  font-size: .98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-vs {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .1em;
  color: #0A0F1E;
  background: radial-gradient(circle at 34% 30%, #FFF3B0, #FFD700 58%, #E8A90C);
  border: 1px solid rgba(255, 243, 176, .8);
  box-shadow: 0 0 18px rgba(255, 215, 0, .5), 0 6px 16px rgba(0, 0, 0, .45), inset 0 -3px 7px rgba(146, 96, 0, .45);
  text-shadow: none;
}
.ck-cpu-badge {
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #B18CFF, #8A2BE2);
  color: #fff;
  box-shadow: 0 0 10px rgba(138, 43, 226, .5);
}

/* --- stage -------------------------------------------------------- */
.ck-stage {
  position: relative;
  margin: 12px auto 4px;
  padding: 18px 12px 10px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 215, 0, .45);
  background:
    radial-gradient(ellipse 90% 42% at 50% -6%, rgba(138, 43, 226, .34), transparent 70%),
    radial-gradient(ellipse 72% 52% at 50% 108%, rgba(255, 215, 0, .13), transparent 70%),
    linear-gradient(180deg, #131A30 0%, #0C1226 55%, #0A0F1E 100%);
  box-shadow:
    0 0 0 1px rgba(138, 43, 226, .30),
    0 0 30px rgba(138, 43, 226, .16),
    0 16px 40px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 0 44px rgba(0, 0, 0, .4);
  overflow: hidden;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.ck-stage.hot {
  border-color: rgba(255, 215, 0, .75);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, .35),
    0 0 38px rgba(255, 215, 0, .30),
    0 16px 40px rgba(0, 0, 0, .5),
    inset 0 0 40px rgba(255, 215, 0, .08);
}
.ck-stage.max {
  border-color: rgba(255, 140, 60, .9);
  box-shadow:
    0 0 0 1px rgba(255, 140, 60, .4),
    0 0 48px rgba(255, 140, 0, .45),
    0 16px 40px rgba(0, 0, 0, .5),
    inset 0 0 46px rgba(255, 140, 0, .13);
}
.ck-stage.won {
  border-color: rgba(120, 255, 170, .8);
  box-shadow:
    0 0 0 1px rgba(120, 255, 170, .35),
    0 0 52px rgba(255, 215, 0, .5),
    0 16px 40px rgba(0, 0, 0, .5),
    inset 0 0 46px rgba(255, 215, 0, .14);
}
.ck-stage.lost .ck-coins { filter: grayscale(.65) brightness(.72); }
.ck-stage.lost .ck-pot { filter: grayscale(.5) brightness(.8); }

/* drifting coins in the stage sky (CSS only, lightweight) */
.ck-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ck-sky-c {
  position: absolute;
  top: -46px;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, .35));
  animation: ckSkyFall linear infinite;
}
.ck-sky-1 { left: 6%;  width: 22px; height: 22px; animation-duration: 11s; animation-delay: -2s; }
.ck-sky-2 { left: 22%; width: 15px; height: 15px; animation-duration: 14s; animation-delay: -8s; }
.ck-sky-3 { left: 44%; width: 27px; height: 27px; animation-duration: 12s; animation-delay: -5s; }
.ck-sky-4 { left: 63%; width: 16px; height: 16px; animation-duration: 15s; animation-delay: -11s; }
.ck-sky-5 { left: 79%; width: 24px; height: 24px; animation-duration: 10.5s; animation-delay: -4s; }
.ck-sky-6 { left: 91%; width: 14px; height: 14px; animation-duration: 13.5s; animation-delay: -9s; }
@keyframes ckSkyFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  8% { opacity: .5; }
  88% { opacity: .5; }
  100% { transform: translateY(340px) rotate(300deg); opacity: 0; }
}

/* warm halo behind the pile, swelling with the pot */
.ck-halo {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 300px;
  height: 190px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, .30), rgba(255, 215, 0, .08) 55%, transparent 72%);
  opacity: .55;
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
  z-index: 0;
}
.ck-stage.hot .ck-halo { opacity: .85; transform: translateX(-50%) scale(1.12); }
.ck-stage.max .ck-halo {
  opacity: 1;
  transform: translateX(-50%) scale(1.25);
  background: radial-gradient(ellipse at center, rgba(255, 160, 40, .42), rgba(255, 140, 0, .12) 55%, transparent 72%);
}
.ck-stage.won .ck-halo { opacity: 1; transform: translateX(-50%) scale(1.3); }

.ck-coins {
  position: relative;
  height: 104px;
  margin-bottom: 2px;
  z-index: 2;
  transition: filter .4s ease;
}
.ck-coin {
  position: absolute;
  left: 50%;
  width: clamp(62px, 19vw, 84px);
  height: clamp(62px, 19vw, 84px);
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(255, 215, 0, .25));
  transition: transform .45s ease;
}
.ck-coin-1 { transform: translateX(-90%) translateY(20px) scale(.82); }
.ck-coin-2 { transform: translateX(-50%) translateY(4px); z-index: 2; }
.ck-coin-3 { transform: translateX(-10%) translateY(20px) scale(.82); }
.ck-stage.hot .ck-coin-1 { transform: translateX(-94%) translateY(13px) scale(.95); }
.ck-stage.hot .ck-coin-2 { transform: translateX(-50%) translateY(-3px) scale(1.12); }
.ck-stage.hot .ck-coin-3 { transform: translateX(-6%) translateY(13px) scale(.95); }
.ck-stage.max .ck-coin-1 { transform: translateX(-98%) translateY(8px) scale(1.05); }
.ck-stage.max .ck-coin-2 { transform: translateX(-50%) translateY(-7px) scale(1.24); }
.ck-stage.max .ck-coin-3 { transform: translateX(-2%) translateY(8px) scale(1.05); }
.ck-chick {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: clamp(60px, 17.5vw, 80px);
  height: clamp(60px, 17.5vw, 80px);
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, .65);
  box-shadow: 0 0 18px rgba(255, 215, 0, .35), 0 8px 18px rgba(0, 0, 0, .5);
  background: #0A0F1E;
  z-index: 3;
  transition: transform .3s ease;
}
.ck-stage.hot .ck-chick { animation: ckBob 1.1s ease-in-out infinite alternate; }
.ck-stage.max .ck-chick { animation: ckHop .5s ease infinite alternate; }
.ck-stage.grabbing .ck-chick {
  animation: none;
  transform: translateX(-18px) scale(1.1) rotate(-4deg);
}
.ck-stage.won .ck-chick { animation: ckHop .42s ease infinite alternate; }
@keyframes ckBob {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}
@keyframes ckHop {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* win celebration: coin burst + happy chick */
.ck-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.ck-burst-coin {
  position: absolute;
  left: 50%;
  top: 36%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, .55));
  animation: ckBurstFly .95s cubic-bezier(.17, .67, .35, 1) forwards;
}
@keyframes ckBurstFly {
  0% { transform: translate(-50%, -50%) scale(.5) rotate(0deg); opacity: 1; }
  55% { opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 90px))) rotate(var(--rot, 160deg)) scale(1);
    opacity: 0;
  }
}
.ck-happy {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(56%, 225px);
  border-radius: 20px;
  border: 2px solid rgba(255, 215, 0, .8);
  box-shadow: 0 0 46px rgba(255, 215, 0, .5), 0 18px 42px rgba(0, 0, 0, .62);
  z-index: 7;
  animation: ckHappyPop .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes ckHappyPop {
  0% { transform: translate(-50%, -50%) scale(.55); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.ck-pot {
  position: relative;
  z-index: 2;
  font-size: clamp(3rem, 13vw, 4.3rem);
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFF3B0 0%, #FFD700 55%, #E8A90C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, .35));
  transition: filter .4s ease;
}
.ck-pot small {
  font-size: 1.15rem;
  -webkit-text-fill-color: #E8C766;
  color: #E8C766;
}
.ck-pot.pop { animation: ckPop .28s ease; }
@keyframes ckPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.ck-potbar, .ck-timerbar {
  position: relative;
  z-index: 2;
  height: 12px;
  margin: 12px 6px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.ck-potbar-fill {
  position: relative;
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8A2BE2, #FFD700);
  box-shadow: 0 0 14px rgba(255, 215, 0, .6);
  transition: width .3s linear;
  overflow: hidden;
}
.ck-potbar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%);
  background-size: 220% 100%;
  animation: ckShimmer 1.7s linear infinite;
}
@keyframes ckShimmer {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}
.ck-timerbar { height: 8px; margin-top: 8px; }
.ck-timerbar-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2FBF71, #7CFC9A);
  box-shadow: 0 0 10px rgba(60, 220, 130, .35);
  transition: width .3s linear;
}
.ck-timerbar-fill.low {
  background: linear-gradient(90deg, #E23B3B, #FF8A5C);
  box-shadow: 0 0 14px rgba(255, 90, 60, .7);
  animation: ckTimerBlink .5s ease-in-out infinite alternate;
}
@keyframes ckTimerBlink {
  from { filter: brightness(1); }
  to { filter: brightness(1.35); }
}
.ck-timeleft {
  position: relative;
  z-index: 2;
  min-height: 1.3em;
  margin-top: 6px;
  font-size: .95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #A7ACC2;
}
.ck-timeleft.low { color: #FF9A7A; text-shadow: 0 0 12px rgba(255, 110, 70, .55); }

/* --- result big number -------------------------------------------- */
.ck-resultbig {
  margin: 12px 0 0;
  text-align: center;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ck-resultbig span {
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  background: linear-gradient(180deg, #FFF3B0 0%, #FFD700 55%, #E8A90C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 215, 0, .45));
}
.ck-resultbig small { font-size: 1.1rem; color: #E8C766; font-weight: 700; }
.ck-resultbig.show { animation: ckResultPop .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes ckResultPop {
  0% { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ck-status {
  min-height: 1.5em;
  margin: 12px 0 2px;
  text-align: center;
  font-weight: 700;
  font-size: 1.02rem;
}
/* --- buttons -------------------------------------------------------- */
.ck-btn { display: block; width: 100%; margin-top: 8px; }
#cardChicken .btn-primary.ck-btn {
  border: none;
  color: #231800;
  background: linear-gradient(92deg, #FFE873 0%, #FFD700 38%, #FF9E3D 72%, #8A2BE2 135%);
  box-shadow: 0 0 24px rgba(255, 190, 0, .35), 0 0 18px rgba(138, 43, 226, .25), 0 10px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
#cardChicken .btn-primary.ck-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 0 34px rgba(255, 190, 0, .5), 0 0 24px rgba(138, 43, 226, .35), 0 12px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}
#cardChicken .btn-primary.ck-btn:active:not(:disabled) { transform: scale(.98); }
#cardChicken .btn-primary.ck-btn:disabled { opacity: .5; box-shadow: none; }
#cardChicken .btn-primary.ck-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .35) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: ckSheen 3.8s ease-in-out infinite;
  pointer-events: none;
}
#cardChicken .btn-primary.ck-btn:disabled::after { animation: none; }
#cardChicken .btn-ghost.ck-btn { transition: border-color .2s ease, box-shadow .2s ease, transform .12s ease; }
#cardChicken .btn-ghost.ck-btn:hover:not(:disabled) {
  border-color: rgba(255, 215, 0, .55);
  box-shadow: 0 0 16px rgba(255, 215, 0, .18);
}
#cardChicken .btn-ghost.ck-btn:active:not(:disabled) { transform: scale(.98); }

.ck-grab {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 19px 20px;
  border: 1px solid rgba(255, 243, 176, .75);
  border-radius: 16px;
  font-family: Manrope, sans-serif;
  font-size: clamp(1.4rem, 6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: .07em;
  color: #231800;
  background: linear-gradient(180deg, #FFEC8A 0%, #FFD700 48%, #FF9E3D 100%);
  box-shadow: 0 0 30px rgba(255, 190, 0, .55), 0 10px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -4px 10px rgba(146, 96, 0, .35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: ckGrabPulse .9s ease-in-out infinite alternate;
}
.ck-grab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .4) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: ckSheen 2.6s ease-in-out infinite;
  pointer-events: none;
}
.ck-grab:active { transform: scale(.97); }
.ck-grab:disabled { opacity: .55; animation: none; }
@keyframes ckGrabPulse {
  from { box-shadow: 0 0 18px rgba(255, 190, 0, .4), 0 10px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -4px 10px rgba(146, 96, 0, .35); }
  to { box-shadow: 0 0 42px rgba(255, 190, 0, .8), 0 10px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -4px 10px rgba(146, 96, 0, .35); }
}
/* --- pot growth table + how it works ------------------------------- */
.ck-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 18px;
}
.ck-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-weight: 700;
  color: #A7ACC2;
  font-variant-numeric: tabular-nums;
}
.ck-table tr { transition: background .2s ease; }
.ck-table tr:hover { background: rgba(255, 255, 255, .03); }
.ck-table td:last-child { text-align: right; }
.ck-tval { color: #FFD700; font-weight: 800; font-size: 1.04rem; }
.ck-table tr:last-child .ck-tval { color: #FFE873; text-shadow: 0 0 12px rgba(255, 215, 0, .5); }
.ck-tbar {
  display: inline-block;
  vertical-align: middle;
  width: 74px;
  height: 7px;
  margin-left: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.ck-tbar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8A2BE2, #FFD700);
  box-shadow: 0 0 9px rgba(255, 215, 0, .55);
}

.ck-how {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ckstep;
}
.ck-how li {
  position: relative;
  margin-bottom: 8px;
  padding: 10px 12px 10px 47px;
  line-height: 1.55;
  color: #C9CDDD;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.ck-how li::before {
  counter-increment: ckstep;
  content: counter(ckstep);
  position: absolute;
  left: 11px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .85rem;
  color: #231800;
  background: linear-gradient(135deg, #FFE873, #FFB800);
  box-shadow: 0 0 12px rgba(255, 190, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* --- profile stats: bigger numbers ---------------------------------- */
#pgProfile .rw-stat .v { font-size: 1.62rem; }
#pgProfile .rw-stats .rw-stat:first-child .v {
  background: linear-gradient(180deg, #FFF3B0, #FFD700 60%, #E8A90C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
#pgProfile .rw-stats .rw-stat:first-child .v small { -webkit-text-fill-color: #A7ACC2; }

/* --- Earnings band (patch #117) ----------------------------------
   Inside the profile card, under the point-balance stats: total /
   today / month net with an earned/used sub-line, plus
   peak-balance and biggest-win chips. Rendered only once
   rewards_earnings() answers — while patch #117 is unapplied the
   RPC 404s and the band simply never appears. */
.ck-earn { margin-top: 14px; }
.ck-earn-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ck-earn-col {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 9px;
  border-radius: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(10, 13, 26, .88), rgba(10, 13, 26, .88)) padding-box,
    linear-gradient(150deg, rgba(255, 215, 0, .5), rgba(138, 43, 226, .45)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 4px 12px rgba(0, 0, 0, .3);
}
.ck-earn-k { color: #8B90A5; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.ck-earn-net { font-size: 1.28rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ck-earn-net.pos { color: #FFD700; text-shadow: 0 0 14px rgba(255, 215, 0, .35); }
.ck-earn-net.neg { color: #FF7A6B; }
.ck-earn-sub { color: #8B90A5; font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ck-earn-recs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.ck-earn-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, .45);
  background: rgba(255, 215, 0, .07);
  color: #FFE873;
  font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.ck-earn-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3B0, #E8A90C);
  box-shadow: 0 0 8px rgba(255, 215, 0, .6);
  flex: 0 0 auto;
}

/* --- mobile: the whole stage fits an iPhone-width screen ------------ */
@media (max-width: 560px) {
  .ck-versus { gap: 6px; }
  .ck-side { padding: 6px 9px 6px 7px; gap: 7px; border-radius: 12px; }
  .ck-side.ck-opp { padding: 6px 7px 6px 9px; }
  .ck-ava { width: 32px; height: 32px; }
  .ck-name { font-size: .88rem; }
  .ck-vs { width: 38px; height: 38px; font-size: .7rem; }
  .ck-stage { padding: 14px 8px 8px; border-radius: 18px; }
  .ck-coins { height: 96px; }
  .ck-tbar { width: 50px; margin-left: 8px; }
  .ck-how li { padding-left: 43px; }
  .ck-earn-cols { gap: 6px; }
  .ck-earn-net { font-size: 1.08rem; }
  .ck-earn-sub { font-size: .64rem; }
  #pgProfile .rw-stat .v { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-grab, .ck-stage.max .ck-chick, .ck-stage.hot .ck-chick,
  .ck-stage.won .ck-chick, .ck-sky-c, .ck-happy, .ck-resultbig.show,
  .ck-potbar-fill::after, .ck-timerbar-fill.low,
  #cardChicken::before, #cardChicken .btn-primary.ck-btn::after,
  .ck-grab::after { animation: none; }
  .ck-coin, .ck-potbar-fill, .ck-timerbar-fill, .ck-halo,
  .ck-stage, .ck-chick, .ck-coins { transition: none; }
  .ck-burst-coin { display: none; }
}

/* --- points tiers (patch #119; the only entry path since the
       gacha-ticket entry was hidden on 2026-12-01) -------------------- */
.ck-tiers { display: flex; gap: 8px; margin: 8px 0 2px; }
.ck-tier {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, .35);
  background: rgba(255, 215, 0, .05);
  color: #D8C98A;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: box-shadow .2s ease, filter .2s ease, transform .12s ease;
}
.ck-tier.on {
  color: #231800;
  background: linear-gradient(92deg, #FFE873, #FFD700);
  border-color: rgba(255, 243, 176, .8);
  box-shadow: 0 0 14px rgba(255, 190, 0, .4);
}
.ck-tier:active:not(:disabled) { transform: scale(.97); }
.ck-tier:disabled { opacity: .38; cursor: default; box-shadow: none; }
.ck-points-rule {
  margin: 8px 2px 2px;
  font-size: .86rem;
  line-height: 1.55;
  color: #A7ACC2;
  text-align: center;
}
.ck-points-meta {
  margin: 2px;
  font-size: .84rem;
  font-weight: 700;
  color: #D8C98A;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ck-points-meta:empty { display: none; }
.ck-winnow {
  margin: 6px auto 2px;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 800;
  color: #FFE873;
  text-shadow: 0 0 12px rgba(255, 215, 0, .45);
  font-variant-numeric: tabular-nums;
}
.ck-winnow:empty { display: none; }

/* --- Match history (patch #123): the caller's settled rounds,
   newest first — result, opponent + mode, the seconds the round
   took to be decided, payout and time. --- */
.ck-history { display: flex; flex-direction: column; gap: 6px; }
.ck-hist-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid #39415F; border-radius: 10px;
  font-size: .86rem; font-variant-numeric: tabular-nums;
}
.ck-hist-res { font-weight: 800; min-width: 3.2em; }
.ck-hist-res.win { color: #FFE873; }
.ck-hist-res.split { color: #6EE7A0; }
.ck-hist-res.lose { color: #8B90A5; }
.ck-hist-main { flex: 1 1 auto; color: #A7ACC2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-hist-sec { color: #F5C542; font-weight: 700; white-space: nowrap; }
.ck-hist-pay { font-weight: 800; white-space: nowrap; }
.ck-hist-pay.win { color: #FFE873; }
.ck-hist-pay.split { color: #6EE7A0; }
.ck-hist-pay.lose { color: #8B90A5; }
.ck-hist-when { color: #8B90A5; font-size: .78rem; white-space: nowrap; }
.ck-hist-empty { color: #8B90A5; font-size: .88rem; }
@media (max-width: 520px) {
  .ck-hist-when { display: none; }
}
