/* In-phone Cantas — bottle-cap 5-a-side on a wooden board under floodlights */

.wondalife-phone-screen.is-app:has(.ct-app) {
  background: #06120c;
}
.wondalife-phone-screen.is-app:has(.ct-app) .wondalife-phone-status {
  color: #f5f7f4;
}
.wondalife-phone-screen.is-app:has(.ct-app) .wondalife-phone-signal::before {
  background: #f5f7f4;
  box-shadow: 4px 0 0 #f5f7f4, 8px -2px 0 #f5f7f4, 12px -4px 0 #f5f7f4;
}
.wondalife-phone-screen.is-app:has(.ct-app) .wondalife-phone-battery {
  border-color: #f5f7f4;
}
.wondalife-phone-screen.is-app:has(.ct-app) .wondalife-phone-battery::before,
.wondalife-phone-screen.is-app:has(.ct-app) .wondalife-phone-battery::after {
  background: #f5f7f4;
}
.wondalife-phone-screen.is-app:has(.ct-app) .wondalife-phone-homebar {
  background: rgba(245, 247, 244, 0.35);
}
.wondalife-phone-screen.is-app .wondalife-phone-body:has(.ct-app) {
  padding: 0 0 22px;
  overflow: hidden;
  height: 100%;
}

.ct-app {
  --gold: #f2c94c;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
  background:
    radial-gradient(60% 30% at 12% 0%, rgba(255, 250, 220, 0.12), transparent 70%),
    radial-gradient(60% 30% at 88% 0%, rgba(255, 250, 220, 0.12), transparent 70%),
    radial-gradient(120% 70% at 50% 0%, #12301f 0%, #0a1d13 55%, #06120c 100%);
  color: #f5f7f4;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  z-index: 4;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Header */
.ct-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
  flex-shrink: 0;
}
.ct-head__title {
  min-width: 0;
}
.ct-head h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.ct-head__icon {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  margin: -0.3em 0.05em 0 -0.1em;
  vertical-align: -0.36em;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.ct-head p {
  margin: 1px 0 0;
  font-size: 10.5px;
  color: rgba(245, 247, 244, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-head__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ct-x {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ct-hold {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  font: 600 10.5px/1 Poppins, "Segoe UI", sans-serif;
  color: #e8f0e9;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  touch-action: none;
}
.ct-hold span {
  position: relative;
}
.ct-hold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #c62f3d, #e5484d);
  transform: scaleX(0);
  transform-origin: left center;
}
.ct-hold.is-holding::before {
  animation: ct-hold 1.2s linear both;
  animation-delay: var(--hold-delay, 0ms);
}
@keyframes ct-hold {
  to { transform: scaleX(1); }
}
.ct-live {
  font-size: 10.5px;
  font-weight: 600;
  color: #ff8a8a;
}

/* Players */
.ct-players {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px 6px;
  flex-shrink: 0;
}
.ct-player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 11px 5px 5px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ct-player--right {
  flex-direction: row-reverse;
  padding: 5px 5px 5px 11px;
  text-align: right;
}
.ct-player.is-active {
  border-color: rgba(242, 201, 76, 0.85);
  background: rgba(242, 201, 76, 0.08);
  box-shadow: 0 0 14px rgba(242, 201, 76, 0.18);
}
.ct-player.is-winner {
  border-color: rgba(74, 222, 128, 0.8);
}
.ct-player__av {
  --pct: 0;
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.ct-player.is-active .ct-player__av {
  background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.14) 0);
}
.ct-player__av img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(180deg, #dfe9e3, #b8cbbf);
  border: 2px solid #0b1d13;
}
.ct-follow {
  position: absolute;
  top: 31px;
  left: 31px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 2px solid #0e2418;
  border-radius: 999px;
  background: #1fb36a;
  color: #fff;
  font: 700 11px/1 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ct-player--right .ct-follow {
  left: auto;
  right: 31px;
}
.ct-follow.is-on {
  background: #f2c94c;
  color: #1c1606;
  font-size: 9px;
}
.ct-player__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ct-player__name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.ct-player--right .ct-player__name {
  justify-content: flex-end;
}
.ct-player__name strong {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-strike {
  flex-shrink: 0;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.22);
  color: #ffb4b4;
  font: 700 9.5px/14px Poppins, "Segoe UI", sans-serif;
  font-style: normal;
}
.ct-player__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 14px;
  font-size: 10.5px;
  line-height: 1.2;
  color: rgba(245, 247, 244, 0.68);
  white-space: nowrap;
}
.ct-player--right .ct-player__meta {
  flex-direction: row-reverse;
}
.ct-men {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-kit {
  flex-shrink: 0;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--label) 0 52%, var(--metal) 56% 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}
.ct-card {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 8px;
  height: 11px;
  border-radius: 1.5px;
  font: 800 7px/1 Poppins, "Segoe UI", sans-serif;
  font-style: normal;
  color: #2b1d00;
  transform: rotate(8deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ct-card.is-yellow {
  background: #ffd400;
}
.ct-card.is-red {
  background: #ef2b2b;
  color: #fff;
}
.ct-flicks {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}
.ct-flicks i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
}
.ct-flicks i.is-used {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.ct-secs {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.ct-secs.is-low {
  color: #ff7a7a;
}
.ct-bubble {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  animation: ct-bubble 2.6s ease-out both;
  pointer-events: none;
}
@keyframes ct-bubble {
  0% { opacity: 0; transform: scale(0.3); }
  12% { opacity: 1; transform: scale(1.25); }
  20% { transform: scale(1); }
  82% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.85); }
}

/* Board */
.ct-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 24px 6px 4px;
}
.ct-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

/* TV scorebug */
.ct-bug {
  position: absolute;
  left: 10px;
  top: 2px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0.92), rgba(5, 10, 24, 0.92));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 14px rgba(0, 0, 0, 0.45);
  font: 700 10px/1 Poppins, "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.ct-bug__team {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.86);
}
.ct-bug b {
  min-width: 14px;
  padding: 2px 3px;
  border-radius: 4px;
  background: #fff;
  color: #0a1228;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ct-bug em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}
.ct-bug__min {
  margin-left: 2px;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  color: #7cf5a8;
  font-variant-numeric: tabular-nums;
}
.ct-bug__min small {
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.5);
}
.ct-bug__pens {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 4px;
}
.ct-bug__pens span {
  display: inline-flex;
  gap: 2px;
}
.ct-bug__pens i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.ct-bug__pens i.is-in {
  background: #4ade80;
}
.ct-bug__pens i.is-out {
  background: #ef4444;
}

/* Big calls on the board: GOAL!, CORNER!, YELLOW CARD… */
.ct-flash {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 24px);
  padding: 6px 20px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  color: #3b1d02;
  box-shadow: 0 0 0 3px #3b1d02, 0 0 0 5px #fde68a, 0 14px 30px rgba(0, 0, 0, 0.55);
  animation: ct-flash var(--ms, 1300ms) cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
  pointer-events: none;
  text-align: center;
}
.ct-flash b {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ct-flash small {
  max-width: 100%;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes ct-flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6) rotate(-14deg); }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(0.92) rotate(-6deg); }
  24% { transform: translate(-50%, -50%) scale(1.05) rotate(-6deg); }
  82% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9) rotate(-6deg); }
}
.ct-flash--goal {
  padding: 8px 26px 10px;
  background: linear-gradient(180deg, #fff7c2, #facc15 45%, #eab308);
  box-shadow: 0 0 0 3px #3b1d02, 0 0 0 5px #fff7c2, 0 0 40px rgba(250, 204, 21, 0.75), 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--goal b {
  font-size: 38px;
  animation: ct-goal-shake 0.5s ease-in-out 0.25s 3 both;
}
@keyframes ct-goal-shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-4deg) scale(1.06); }
  75% { transform: rotate(4deg) scale(1.06); }
}
.ct-flash--own {
  background: linear-gradient(180deg, #fed7aa, #f97316);
  color: #3b1202;
  box-shadow: 0 0 0 3px #3b1202, 0 0 0 5px #fed7aa, 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--bad {
  background: linear-gradient(180deg, #fecaca, #ef4444);
  color: #3b0606;
  box-shadow: 0 0 0 3px #3b0606, 0 0 0 5px #fecaca, 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--yellow {
  background: linear-gradient(180deg, #fff59d, #ffd400);
  color: #2b2200;
  box-shadow: 0 0 0 3px #2b2200, 0 0 0 5px #fff59d, 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--red {
  background: linear-gradient(180deg, #ff8a8a, #dc2626);
  color: #fff;
  box-shadow: 0 0 0 3px #450a0a, 0 0 0 5px #ff8a8a, 0 0 30px rgba(220, 38, 38, 0.6), 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--pen {
  background: linear-gradient(180deg, #f5d0fe, #c026d3);
  color: #fff;
  box-shadow: 0 0 0 3px #3b0a45, 0 0 0 5px #f5d0fe, 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--corner {
  background: linear-gradient(180deg, #d9f99d, #65a30d);
  color: #14280a;
  box-shadow: 0 0 0 3px #14280a, 0 0 0 5px #d9f99d, 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--free {
  background: linear-gradient(180deg, #a5f3fc, #0891b2);
  color: #042f3a;
  box-shadow: 0 0 0 3px #042f3a, 0 0 0 5px #a5f3fc, 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--gk,
.ct-flash--post,
.ct-flash--ht,
.ct-flash--ft,
.ct-flash--kick {
  background: linear-gradient(180deg, #f8fafc, #94a3b8);
  color: #0f172a;
  box-shadow: 0 0 0 3px #0f172a, 0 0 0 5px #f8fafc, 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--save,
.ct-flash--wall {
  background: linear-gradient(180deg, #bfdbfe, #3b82f6);
  color: #0a1d4a;
  box-shadow: 0 0 0 3px #0a1d4a, 0 0 0 5px #bfdbfe, 0 14px 30px rgba(0, 0, 0, 0.55);
}
.ct-flash--pass {
  top: 30%;
  padding: 3px 12px 4px;
  background: linear-gradient(180deg, #bbf7d0, #22c55e);
  color: #052e16;
  box-shadow: 0 0 0 2px #052e16, 0 8px 18px rgba(0, 0, 0, 0.45);
}
.ct-flash--pass b {
  font-size: 17px;
}

/* E DEY START… 3 2 1 KICK OFF! */
.ct-count {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15) 55%, transparent 75%);
  pointer-events: none;
}
.ct-count small {
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fde68a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.ct-count b {
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 3px #0a1d13;
  paint-order: stroke fill;
  text-shadow: 0 0 30px rgba(253, 230, 138, 0.8), 0 8px 20px rgba(0, 0, 0, 0.6);
  animation: ct-count 0.95s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.ct-count.is-go b {
  font-size: 44px;
  color: #fde047;
  animation-duration: 0.9s;
}
@keyframes ct-count {
  0% { opacity: 0; transform: scale(2.4); }
  30% { opacity: 1; transform: scale(0.9); }
  42% { transform: scale(1.04); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.2; transform: scale(0.8); }
}

/* Keeper dive picker */
.ct-dive {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 8;
  overflow: hidden;
  padding: 8px 10px 10px;
  border-radius: 18px;
  background: rgba(10, 22, 16, 0.92);
  border: 1px solid rgba(253, 186, 116, 0.5);
  box-shadow: 0 0 22px rgba(253, 186, 116, 0.25), 0 12px 26px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: ct-pop-in 0.2s ease-out both;
}
.ct-dive p {
  margin: 0 0 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fdba74;
}
.ct-dive__row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 6px;
}
.ct-dive__btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 700 12px/1 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ct-dive__btn.is-on {
  background: linear-gradient(180deg, #fdba74, #f97316);
  border-color: transparent;
  color: #2a1003;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
}
.ct-dive__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: #fdba74;
  transform-origin: left center;
  animation: ct-dive-bar var(--ms, 4000ms) linear both;
}
@keyframes ct-dive-bar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Info line under the board: who's on the ball, what to do */
.ct-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 6px;
  flex-shrink: 0;
}
.ct-info__line {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #e9efe9;
  font: 500 11.5px/1.25 Poppins, "Segoe UI", sans-serif;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.ct-info__line.is-you {
  background: rgba(242, 201, 76, 0.14);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.55);
  animation: ct-info-glow 1.6s ease-in-out infinite;
}
@keyframes ct-info-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.55), 0 0 0 rgba(242, 201, 76, 0); }
  50% { box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.9), 0 0 14px rgba(242, 201, 76, 0.45); }
}
.ct-info__line.is-warn {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  font-weight: 600;
}
.ct-info__line.is-good {
  background: rgba(31, 179, 106, 0.2);
  color: #c9f7dc;
}
.ct-info__line.is-bad {
  background: rgba(190, 40, 60, 0.32);
  color: #ffe2e2;
}
.ct-info__line b {
  font-weight: 700;
}
.ct-react {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 17px;
  cursor: pointer;
}
.ct-reacts {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 2px);
  z-index: 12;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #11291b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  animation: ct-pop-in 0.18s ease-out both;
}
.ct-reacts button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}
.ct-reacts button:hover {
  background: rgba(255, 255, 255, 0.1);
}
@keyframes ct-pop-in {
  from { opacity: 0; transform: translateY(4px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Aim wheel, rotate and power */
.ct-controls {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 2px 10px 2px;
}
.ct-aimrow,
.ct-shootrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ct-nudge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 700 20px/1 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
  touch-action: none;
}
.ct-nudge:active {
  background: rgba(255, 255, 255, 0.18);
}
.ct-wheel {
  --wheel: 0px;
  position: relative;
  flex: 1;
  min-width: 0;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #0b1a11 0%, rgba(11, 26, 17, 0) 22%, rgba(11, 26, 17, 0) 78%, #0b1a11 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 2px, rgba(255, 255, 255, 0.03) 2px 12px);
  background-position: 0 0, var(--wheel) 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 6px 10px rgba(0, 0, 0, 0.45);
  cursor: ew-resize;
  touch-action: none;
}
.ct-wheel__mark {
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: #f2c94c;
  box-shadow: 0 0 6px rgba(242, 201, 76, 0.7);
}
.ct-wheel__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(8, 20, 13, 0.85);
  color: rgba(245, 247, 244, 0.75);
  font: 500 10px/1.4 Poppins, "Segoe UI", sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.ct-rotate {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #c98a4a 0%, #8a4d20 55%, #5c3112 100%);
  color: #fff3d6;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45), inset 0 -2px 4px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(255, 220, 170, 0.25);
  cursor: pointer;
  transition: transform 0.42s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.ct-rotate:active {
  transform: rotate(90deg) scale(0.94);
}
.ct-power {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: grab;
  touch-action: none;
}
.ct-power__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #a3d33a 35%, #f2b51c 62%, #ef4444 100%);
  background-size: 290px 100%;
}
.ct-power__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 10px;
  font: 600 12.5px/1.2 Poppins, "Segoe UI", sans-serif;
  color: #f5f7f4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.ct-power.is-dragging .ct-power__text {
  font-size: 14px;
  font-weight: 700;
}
.ct-controls.is-off .ct-nudge,
.ct-controls.is-off .ct-wheel {
  opacity: 0.35;
}
.ct-controls.is-off .ct-power__text {
  color: rgba(245, 247, 244, 0.45);
}

/* Sheets */
.ct-sheet {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.45);
}
.ct-sheet__panel {
  width: 100%;
  max-height: 74%;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 30px;
  border-radius: 20px 20px 0 0;
  background: #0f2418;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: ct-sheet 0.22s ease-out both;
}
@keyframes ct-sheet {
  from { transform: translateY(40%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ct-sheet__panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ct-sheet__panel h2 {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-sheet__sub {
  margin: -2px 0 12px;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(245, 247, 244, 0.65);
}
.ct-rules {
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 247, 244, 0.25) transparent;
}
.ct-rules ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(245, 247, 244, 0.85);
}
.ct-rules b {
  color: #fff;
}
.ct-rules h3 {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 247, 244, 0.6);
}
.ct-howto {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(245, 247, 244, 0.85);
}
.ct-chat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ct-chat button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #f5f7f4;
  font: 600 12px/1.3 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ct-chat button:active {
  background: rgba(31, 179, 106, 0.3);
}

/* Result */
.ct-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.ct-modal__panel {
  width: min(100%, 300px);
  padding: 16px 16px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #16352a, #0b1d13);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: ct-pop-in 0.25s ease-out both;
}
.ct-modal__icon {
  display: block;
  width: 70px;
  height: 70px;
  margin: -4px auto 4px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
.ct-modal__panel.is-win .ct-modal__icon {
  animation: ct-cap-spin 0.8s cubic-bezier(0.3, 1.3, 0.5, 1) both;
}
@keyframes ct-cap-spin {
  from { transform: translateY(-40px) rotate(-540deg) scale(0.4); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ct-modal__panel h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
}
.ct-modal__panel > p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(245, 247, 244, 0.72);
}
.ct-modal__money {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
  font-weight: 600;
}
.ct-modal__money.is-loss {
  background: rgba(150, 50, 50, 0.35);
  color: #ffc9c9;
}
.ct-modal__money.is-win {
  background: rgba(31, 179, 106, 0.22);
  color: #9ff0c4;
}
.ct-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 600 12.5px/1.2 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ct-btn--go {
  margin-bottom: 8px;
  background: #1fb36a;
  font-size: 13.5px;
}
.ct-btn--soft {
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.1);
}
.ct-modal__follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(245, 247, 244, 0.75);
}
.ct-modal__follow span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-chip {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: #1fb36a;
  color: #fff;
  font: 600 12px/1.2 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.ct-chip.is-on {
  background: rgba(255, 255, 255, 0.12);
}
.ct-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ct-empty {
  padding: 24px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .ct-bubble,
  .ct-reacts,
  .ct-flash,
  .ct-flash b,
  .ct-count b,
  .ct-dive,
  .ct-info__line.is-you,
  .ct-sheet__panel,
  .ct-modal__panel,
  .ct-modal__panel.is-win .ct-modal__icon {
    animation: none !important;
  }
  .ct-flash {
    transform: translate(-50%, -50%) rotate(-6deg);
  }
}
