/* Defuse - dark red gambling panel (storefront gambling tab) */
.gambleview {
  display: block;
  width: 100%;
  min-width: 0;
}
.gambleview[hidden] {
  display: none !important;
}
.gambleview.is-loading {
  opacity: 0.82;
  transition: opacity 0.12s ease;
}

.cf-placeholder .cf-intro {
  text-align: center;
  padding: 48px 20px 56px;
}
.cf-placeholder .cf-intro h1 {
  margin: 0 0 10px;
  font-family: Saira, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gold, #f2c14e);
}
.cf-placeholder .cf-intro p {
  margin: 0;
  color: var(--dim, #9a8a8e);
  font-size: 14px;
  line-height: 1.5;
  max-width: 420px;
  margin-inline: auto;
}
.cf-login-gate .cf-intro {
  text-align: center;
  padding: 54px 24px 58px;
}
.cf-login-gate .cf-intro p {
  max-width: 460px;
  margin: 0 auto;
}
.cf-login-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  text-decoration: none;
}

.cf-panel {
  --cf-red: #c41e3a;
  --cf-red-dim: rgba(196, 30, 58, 0.35);
  --cf-red-glow: rgba(196, 30, 58, 0.45);
  --cf-green: #66e39b;
  --cf-blue: #5b9fd4;
  --cf-yellow: #e8c547;
  max-width: 920px;
  margin: 0 auto;
}
.cf-intro {
  position: relative;
  box-sizing: border-box;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.12), rgba(14, 9, 11, 0.75));
  border: 1px solid rgba(242, 193, 78, 0.35);
  padding: 14px 22px;
  margin-bottom: 14px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.cf-intro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold, #f2c14e), #a67c1a);
  box-shadow: 0 0 14px rgba(242, 193, 78, 0.45);
}
.cf-intro h1 {
  font-family: 'Saira', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 4px;
  color: #fff4d0;
  text-shadow: 0 0 16px rgba(242, 193, 78, 0.35);
}
.cf-intro p {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.4;
}

.cf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.cf-game {
  background: linear-gradient(160deg, #120a0c, #0c0709);
  border: 1px solid var(--line);
  padding: 22px 24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
#coinflipPanel > .cf-layout > .cf-game {
  justify-self: center;
  width: 100%;
  zoom: .9;
}
.cf-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cf-balance-k,
.cf-stake-lbl {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faint);
}
.cf-balance-v {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.cf-balance-v small {
  font-size: 11px;
  color: var(--faint);
  font-weight: 600;
}

.cf-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.cf-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: #0c0709;
  border: 1px solid var(--line);
  color: var(--dim);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s, opacity 0.15s;
  font-family: 'Chakra Petch', sans-serif;
  position: relative;
  overflow: hidden;
}
.cf-side:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
.cf-side::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.cf-side-ct::before {
  background: linear-gradient(160deg, rgba(74, 144, 217, 0.18), rgba(20, 45, 80, 0.08));
}
.cf-side-t::before {
  background: linear-gradient(160deg, rgba(232, 197, 71, 0.16), rgba(120, 90, 20, 0.08));
}
.cf-side:hover:not(:disabled) {
  color: #f0f4fa;
  transform: translateY(-1px);
}
.cf-side-ct:hover:not(:disabled) { border-color: rgba(91, 159, 212, 0.55); }
.cf-side-t:hover:not(:disabled) { border-color: rgba(232, 197, 71, 0.45); }
.cf-side.is-sel::before { opacity: 1; }
.cf-side-ct.is-sel {
  border-color: var(--cf-blue);
  color: #d8ecff;
  box-shadow: 0 0 22px rgba(74, 144, 217, 0.35);
}
.cf-side-t.is-sel {
  border-color: var(--cf-yellow);
  color: #fff4c8;
  box-shadow: 0 0 22px rgba(232, 197, 71, 0.28);
}
.cf-side-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0;
}
.cf-side-ico .cf-team-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
}
.cf-side-lbl {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cf-team-mark {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 1;
}
.cf-team-ct .cf-team-mark { font-size: 13px; letter-spacing: 1px; }
.cf-team-ct {
  background: radial-gradient(circle at 32% 28%, #4a90d9 0%, #1e3a5f 42%, #0d1f33 100%);
  border: 2px solid var(--cf-blue);
  color: #e8f4ff;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.12), 0 0 16px rgba(74, 144, 217, 0.25);
}
.cf-team-t {
  background: radial-gradient(circle at 32% 28%, #e8c547 0%, #a67c1a 45%, #5c4510 100%);
  border: 2px solid #f2d564;
  color: #2a1f05;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.2), 0 0 16px rgba(232, 197, 71, 0.22);
}

.cf-defuse-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 245px;
  margin-bottom: 18px;
  padding: 20px 16px 16px;
  background:
    radial-gradient(circle at 50% 30%, rgba(196, 30, 58, .16), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.08));
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.cf-defuse-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(255,255,255,.025) 9px 10px);
  pointer-events: none;
  opacity: .5;
}
.cf-defuse-wrap[data-state="running"] {
  border-color: rgba(196, 30, 58, .45);
  box-shadow: inset 0 0 28px rgba(196, 30, 58, .12), 0 0 18px rgba(196, 30, 58, .12);
}
.cf-defuse-wrap[data-state="defused"] {
  border-color: rgba(102, 227, 155, .45);
  box-shadow: inset 0 0 28px rgba(102, 227, 155, .12), 0 0 18px rgba(102, 227, 155, .12);
}
.cf-defuse-wrap[data-state="exploded"] {
  border-color: rgba(255, 80, 80, .58);
  box-shadow: inset 0 0 36px rgba(196, 30, 58, .25), 0 0 30px rgba(196, 30, 58, .18);
}
.cf-bomb {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  min-height: 155px;
  display: grid;
  grid-template-columns: 82px 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  align-items: center;
}
.cf-bomb-body {
  grid-row: 1 / 3;
  width: 82px;
  height: 136px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 22% 72%, rgba(0,0,0,.28)),
    linear-gradient(180deg, #24282a, #101315);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.36), 0 14px 28px rgba(0,0,0,.32);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
}
.cf-bomb-led {
  display: block;
  border-radius: 5px;
  background: rgba(196, 30, 58, .28);
  box-shadow: inset 0 0 8px rgba(0,0,0,.34);
}
.cf-defuse-wrap[data-state="running"] .cf-bomb-led {
  animation: cf-bomb-blink .55s steps(2, end) infinite;
}
.cf-defuse-wrap[data-state="defused"] .cf-bomb-led {
  background: rgba(102, 227, 155, .7);
  box-shadow: 0 0 12px rgba(102, 227, 155, .35);
}
.cf-defuse-wrap[data-state="exploded"] .cf-bomb-led {
  background: rgba(255, 80, 80, .9);
  box-shadow: 0 0 16px rgba(255, 80, 80, .6);
}
@keyframes cf-bomb-blink {
  0%, 49% { background: rgba(196, 30, 58, .25); }
  50%, 100% { background: rgba(255, 60, 78, .85); box-shadow: 0 0 16px rgba(255, 60, 78, .55); }
}
.cf-bomb-panel {
  align-self: end;
  padding: 16px 18px;
  background: #080b0a;
  border: 1px solid rgba(102, 227, 155, .18);
  box-shadow: inset 0 0 22px rgba(102, 227, 155, .08);
}
.cf-bomb-label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(102, 227, 155, .65);
}
.cf-countdown {
  display: block;
  font-family: 'Chakra Petch', monospace;
  font-size: clamp(42px, 9vw, 64px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -2px;
  color: #8dffb9;
  text-shadow: 0 0 14px rgba(102, 227, 155, .38);
  font-variant-numeric: tabular-nums;
}
.cf-defuse-wrap[data-state="running"] .cf-countdown {
  color: #ff6d7b;
  text-shadow: 0 0 18px rgba(255, 60, 78, .48);
}
.cf-defuse-wrap[data-state="exploded"] .cf-countdown {
  color: #ff3448;
  text-shadow: 0 0 24px rgba(255, 52, 72, .7);
}
.cf-bomb-wires {
  grid-column: 2;
  display: grid;
  gap: 6px;
}
.cf-bomb-wires span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #d03545;
  box-shadow: 0 0 8px rgba(208, 53, 69, .28);
}
.cf-bomb-wires span:nth-child(2) {
  width: 88%;
  background: #3c89d0;
  box-shadow: 0 0 8px rgba(60, 137, 208, .24);
}
.cf-bomb-wires span:nth-child(3) {
  width: 76%;
  background: #e8c547;
  box-shadow: 0 0 8px rgba(232, 197, 71, .22);
}
.cf-defuse-status {
  position: relative;
  z-index: 1;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}
.cf-defuse-wrap[data-state="defused"] .cf-defuse-status { color: var(--cf-green); }
.cf-defuse-wrap[data-state="exploded"] .cf-defuse-status { color: #ff6d7b; }
.cf-defuse-wrap[data-state="exploded"] .cf-bomb {
  animation: cf-blast .26s ease-out 1;
}
@keyframes cf-blast {
  0% { transform: translate(0, 0) scale(1); filter: brightness(1); }
  34% { transform: translate(-5px, 3px) scale(1.025); filter: brightness(1.8); }
  66% { transform: translate(5px, -2px) scale(1.02); filter: brightness(1.35); }
  100% { transform: translate(0, 0) scale(1); filter: brightness(1); }
}

.cf-result {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.cf-result.is-win { color: var(--cf-green); }
.cf-result.is-loss { color: var(--cf-red); }
.cf-outcome-screen {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: min(86%, 360px);
  transform: translate(-50%, -50%);
  padding: 18px 20px 16px;
  border: 1px solid var(--cf-red);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 80, 64, .22), transparent 58%),
    rgba(18, 7, 9, .92);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .55), 0 0 28px rgba(196, 30, 58, .28);
  text-align: center;
  pointer-events: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  animation: cfOutcomeIn .45s cubic-bezier(.2, .9, .3, 1.25);
}
.cf-outcome-screen[hidden] {
  display: none !important;
}
.cf-outcome-screen strong {
  display: block;
  margin-bottom: 7px;
  font-family: 'Saira', sans-serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cf-outcome-screen span {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #f2c4c9;
}
.cf-outcome-screen.is-loss strong {
  color: #fff0ee;
  text-shadow: 0 0 18px var(--cf-red);
}
.cf-outcome-screen.is-win {
  border-color: var(--cf-green);
  background:
    radial-gradient(circle at 50% 0%, rgba(102, 227, 155, .18), transparent 58%),
    rgba(8, 20, 14, .92);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .55), 0 0 28px rgba(102, 227, 155, .22);
}
.cf-outcome-screen.is-win strong {
  color: #eafff0;
  text-shadow: 0 0 18px var(--cf-green);
}
@keyframes cfOutcomeIn {
  0% { opacity: 0; transform: translate(-50%, -46%) scale(.78); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.cf-stake-lbl {
  display: block;
  margin-bottom: 8px;
}
.cf-stake-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cf-bet-input {
  width: 120px;
  padding: 10px 12px;
  background: #0c0709;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.cf-bet-input:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.cf-bet-input:focus {
  outline: none;
  border-color: var(--cf-red);
}
.cf-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cf-quick-btn {
  padding: 8px 10px;
  background: #0c0709;
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}
.cf-quick-btn:hover {
  border-color: var(--cf-red-dim);
  color: #f0c4cc;
}
.cf-mute-btn {
  margin-left: auto;
  padding: 8px 10px;
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #0c0709;
  border: 1px solid rgba(102, 227, 155, .28);
  color: rgba(102, 227, 155, .9);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.cf-mute-btn i {
  line-height: 1;
  font-size: 12px;
}
.cf-mute-btn:hover {
  border-color: rgba(102, 227, 155, .5);
  color: #d8ffe5;
  box-shadow: 0 0 12px rgba(102, 227, 155, .16);
}
.cf-mute-btn.is-muted {
  border-color: var(--cf-red-dim);
  color: #f0c4cc;
}
.cf-fee-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--faint);
}
.cf-flip-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #8b1528, #5c0f1a);
  border: 1px solid var(--cf-red);
  color: #fff;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 0 20px var(--cf-red-glow);
}
.cf-flip-btn:hover:not(:disabled) {
  box-shadow: 0 0 28px var(--cf-red-glow);
}
.cf-flip-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.cf-login-note,
.cf-error {
  margin: 12px 0 0;
  font-size: 12px;
  text-align: center;
}
.cf-login-note { color: var(--dim); }
.cf-error { color: var(--cf-red); }

.cf-history {
  --cf-red: #c41e3a;
  --cf-green: #66e39b;
  background: #0c0709;
  border: 1px solid var(--line);
  padding: 16px 14px;
}
.cf-history h2 {
  margin: 0 0 12px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--faint);
}
.cf-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}
.cf-history-empty {
  font-size: 12px;
  color: var(--faint);
  padding: 8px 4px;
}
.cf-hist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 8px 10px;
  background: #120a0c;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}
.cf-hist-row.pos {
  border-color: rgba(102, 227, 155, .24);
  background: linear-gradient(90deg, rgba(102, 227, 155, .08), #120a0c 48%);
}
.cf-hist-row.neg {
  border-color: rgba(196, 30, 58, .28);
  background: linear-gradient(90deg, rgba(196, 30, 58, .1), #120a0c 48%);
}
.cf-hist-row .side {
  color: var(--dim);
}
.cf-hist-team.cf-hist-heads {
  color: #8ec5f0;
  font-weight: 700;
}
.cf-hist-team.cf-hist-tails {
  color: #e8c547;
  font-weight: 700;
}
.cf-hist-row .net {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cf-hist-row .net.pos { color: var(--cf-green, #66e39b); }
.cf-hist-row .net.neg { color: var(--cf-red, #c41e3a); }
.cf-hist-row .meta {
  grid-column: 1 / -1;
  font-size: 10px;
  color: var(--faint);
}

@media (max-width: 820px) {
  .cf-layout {
    grid-template-columns: 1fr;
  }
  .cf-history-list {
    max-height: 240px;
  }
}

@media (max-width: 560px) {
  .cf-bomb {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .cf-bomb-body {
    grid-row: auto;
    width: 116px;
    height: 68px;
  }
  .cf-bomb-wires {
    grid-column: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-defuse-wrap[data-state="running"] .cf-bomb-led,
  .cf-defuse-wrap[data-state="exploded"] .cf-bomb {
    animation: none;
  }
}

/* ===== C4 bomb art (from concept) ===== */
@keyframes cfLed {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: .25; }
}
@keyframes cfWireSway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@keyframes cfWireDrop {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(16px) rotate(24deg); opacity: .3; }
}
@keyframes cfCountPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}
@keyframes cfDigitVibrate {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
}
@keyframes cfShakeSm {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 2px); }
  40% { transform: translate(4px, -2px); }
  60% { transform: translate(-3px, -1px); }
  80% { transform: translate(2px, 2px); }
}
@keyframes cfShakeBig {
  0% { transform: translate(0, 0) rotate(0); }
  10% { transform: translate(-11px, 6px) rotate(-1deg); }
  20% { transform: translate(12px, -8px) rotate(1deg); }
  30% { transform: translate(-13px, -6px) rotate(-1.2deg); }
  45% { transform: translate(10px, 8px) rotate(.8deg); }
  60% { transform: translate(-8px, -5px) rotate(-.6deg); }
  75% { transform: translate(6px, 4px) rotate(.4deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

#gambleview .cf-defuse-wrap:has(.cf-c4) {
  min-height: 286px;
  justify-content: center;
}
#gambleview .cf-bomb:has(.cf-c4) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  grid-template-columns: unset;
  grid-template-rows: unset;
  gap: 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .55));
}
#gambleview .cf-c4 {
  position: relative;
  width: 190px;
  height: 214px;
  margin: 0 auto;
  flex: 0 0 auto;
}
#gambleview .cf-c4-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#gambleview .cf-c4-lcd {
  position: absolute;
  left: 54px;
  top: 26px;
  width: 82px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}
#gambleview .cf-c4 .cf-bomb-label {
  font-family: 'Chakra Petch', monospace;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #39d468;
  opacity: .85;
  line-height: 1;
  margin-bottom: 0;
}
#gambleview .cf-c4 .cf-countdown {
  font-family: 'Chakra Petch', monospace;
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  margin-top: 2px;
  color: #4dff7a;
  text-shadow: 0 0 8px rgba(60, 255, 120, .65);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
#gambleview .cf-defuse-wrap[data-state="running"] .cf-c4 .cf-countdown {
  animation: cfDigitVibrate .12s steps(2, end) infinite;
}
#gambleview .cf-c4-leds {
  position: absolute;
  left: 53px;
  top: 68px;
  display: flex;
  gap: 9px;
  z-index: 2;
}
#gambleview .cf-c4 .cf-bomb-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a0f0b;
  box-shadow: inset 0 0 2px #000;
}
#gambleview .cf-defuse-wrap[data-state="running"] .cf-c4 .cf-bomb-led {
  background: #ff2e3c;
  box-shadow: 0 0 8px #ff2e3c, 0 0 2px #fff inset;
  animation: cfLed 1s steps(1) infinite;
}
#gambleview .cf-c4 .cf-bomb-led:nth-child(2) { animation-delay: .12s; }
#gambleview .cf-c4 .cf-bomb-led:nth-child(3) { animation-delay: .24s; }
#gambleview .cf-c4 .cf-bomb-wires {
  position: absolute;
  left: 63px;
  top: 170px;
  display: flex;
  gap: 15px;
  height: 26px;
  z-index: 3;
  grid-column: auto;
  width: auto;
}
#gambleview .cf-c4 .cf-bomb-wires span {
  position: relative;
  width: 5px;
  height: 26px;
  border-radius: 3px;
  transform-origin: top center;
}
#gambleview .cf-c4 .cf-bomb-wires span:nth-child(1) {
  background: linear-gradient(#ff5b52, #a11);
  box-shadow: none;
}
#gambleview .cf-c4 .cf-bomb-wires span:nth-child(2) {
  width: 5px;
  background: linear-gradient(#5b9bff, #134a9e);
  box-shadow: none;
}
#gambleview .cf-c4 .cf-bomb-wires span:nth-child(3) {
  width: 5px;
  background: linear-gradient(#ffd24d, #a1791a);
  box-shadow: none;
}
#gambleview .cf-defuse-wrap[data-state="running"] .cf-c4 .cf-bomb-wires span {
  animation: cfWireSway 1.1s ease-in-out infinite;
}
#gambleview .cf-defuse-wrap[data-state="running"] .cf-c4 .cf-bomb-wires span:nth-child(2) { animation-delay: .15s; }
#gambleview .cf-defuse-wrap[data-state="running"] .cf-c4 .cf-bomb-wires span:nth-child(3) { animation-delay: .3s; }
#gambleview .cf-c4 .cf-bomb-wires span.cut {
  animation: none !important;
  height: 11px;
}
#gambleview .cf-c4 .cf-bomb-wires span.cut::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 15px;
  background: inherit;
  border-radius: 3px;
  transform-origin: top;
  animation: cfWireDrop .5s ease-in forwards;
}
#gambleview .cf-defuse-wrap[data-state="defused"] .cf-c4 .cf-countdown {
  color: #4dff7a;
  text-shadow: 0 0 12px rgba(60, 255, 120, .8);
}
#gambleview .cf-defuse-wrap[data-state="defused"] .cf-c4 .cf-bomb-led {
  background: #4dff7a;
  box-shadow: 0 0 10px rgba(60, 255, 120, .65);
  animation: none;
}
#gambleview .cf-defuse-wrap[data-state="exploded"] .cf-c4 .cf-bomb-led {
  background: #ff5442;
  box-shadow: 0 0 12px rgba(255, 60, 50, .75);
  animation: none;
}
#gambleview .cf-c4 .cf-countdown.urgent {
  color: #ff5442;
  text-shadow: 0 0 10px rgba(255, 60, 50, .8);
  animation: cfCountPulse .32s ease-in-out infinite, cfDigitVibrate .12s steps(2, end) infinite;
}
#gambleview .cf-defuse-wrap:not([data-state="running"]) .cf-c4 .cf-countdown.urgent {
  animation: none;
}
#gambleview .cf-ring {
  position: absolute;
  z-index: 1;
  width: 82%;
  height: 82%;
  max-width: 250px;
  max-height: 250px;
  opacity: 0;
  pointer-events: none;
}
#gambleview .cf-defuse-wrap[data-state="running"] .cf-ring,
#gambleview .cf-defuse-wrap[data-state="defused"] .cf-ring {
  opacity: .9;
}
#gambleview .cf-ring circle {
  fill: none;
  stroke-width: 3;
}
#gambleview .cf-ring .trk {
  stroke: rgba(255, 255, 255, .06);
}
#gambleview .cf-ring .prg {
  stroke-linecap: round;
  transition: stroke-dashoffset .1s linear;
}
#gambleview .cf-defuse-wrap[data-team="ct"] .cf-ring .prg {
  stroke: var(--cf-blue);
  filter: drop-shadow(0 0 6px var(--cf-blue));
}
#gambleview .cf-defuse-wrap[data-team="t"] .cf-ring .prg {
  stroke: var(--cf-yellow);
  filter: drop-shadow(0 0 6px var(--cf-yellow));
}
#gambleview .cf-c4 .cf-ring {
  width: 244px;
  height: 244px;
  max-width: none;
  max-height: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
}

#gambleview .cf-shake-sm {
  animation: cfShakeSm .4s ease;
}
#gambleview .cf-shake-big {
  animation: cfShakeBig .6s cubic-bezier(.36, .07, .19, .97);
}

@media (prefers-reduced-motion: reduce) {
  #gambleview .cf-defuse-wrap[data-state="running"] .cf-c4 .cf-countdown,
  #gambleview .cf-c4 .cf-countdown.urgent,
  #gambleview .cf-shake-sm,
  #gambleview .cf-shake-big {
    animation: none !important;
  }
}
