/* ===================================================================
   pepe.fail — playable game chrome
   Loaded after styles.css / glass.css / anim.css
   =================================================================== */

/* `hidden` has to actually hide: .btn and .bj-actions both set a display
   value, and any display beats the attribute's default. */
[hidden] { display: none !important; }

/* --- Balance shown next to the bet label --- */
.field__label [data-balance]::before {
  content: "⌾ ";
  color: var(--gold);
}

/* --- Round result under the payout row --- */
.bet__result {
  min-height: 20px;
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800; letter-spacing: -0.02em;
  text-align: center;
  opacity: 0;
  transition: opacity var(--dur-base, 260ms) var(--ease-soft, ease);
}
.bet__result.is-win  { color: var(--green); opacity: 1; }
.bet__result.is-lose { color: var(--red); opacity: 1; }

/* --- Bet shortcuts --- */
.input-wrap .mini { font-size: 11px; }

/* =========================== DICE =========================== */
.dice-result.is-win  { color: var(--green); }
.dice-result.is-lose { color: var(--red); }

.slider { position: relative; }
.slider__fill {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 8px; border-radius: 999px;
  background: var(--grad-gold);
  pointer-events: none;
}
.slider__knob { transition: left 120ms linear; }

.history { display: flex; gap: 6px; flex-wrap: wrap; }
.history b {
  padding: 4px 9px; border-radius: 6px;
  background: var(--bg-800); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--text-mute);
}
.history b.win { color: var(--green); border-color: rgba(74, 222, 128, .3); }

/* =========================== LIMBO =========================== */
.limbo-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; min-height: 320px;
}
.limbo-val {
  font-family: var(--font-display);
  font-size: 68px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--text);
}
.limbo-val.is-win  { color: var(--green); }
.limbo-val.is-lose { color: var(--red); }
.limbo-sub { color: var(--text-mute); font-size: 13px; font-weight: 600; }

/* =========================== PLINKO =========================== */
.plinko { position: relative; }
.ball {
  position: absolute; top: 0; left: 0;
  width: 13px; height: 13px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 12px rgba(255, 200, 40, .6);
  opacity: 0;
  transition: transform 95ms linear, opacity 140ms ease;
  pointer-events: none;
  z-index: 3;
}
.mult.is-hit {
  transform: translateY(3px);
  filter: brightness(1.5);
}

/* =========================== CRASH =========================== */
.crash-mult.is-win  { color: var(--green); }
.crash-mult.is-lose { color: var(--red); }

/* =========================== WHEEL =========================== */
.wheel-area { position: relative; display: grid; place-items: center; }
.wheel-svg { transform-origin: 50% 50%; }
.wheel-ptr {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  z-index: 2;
}

/* =========================== BLACKJACK =========================== */
.bj-table {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 26px 20px;
  min-height: 360px;
  border-radius: 14px;
  background: radial-gradient(120% 90% at 50% 0%, #16203a 0%, var(--panel) 62%);
  border: 1px solid var(--line);
}
.bj-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bj-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute);
}
.bj-label b {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 22px; padding: 0 7px; margin-left: 7px;
  border-radius: 6px;
  background: var(--bg-900); border: 1px solid var(--line-2);
  color: var(--gold);
  font-size: 12px; letter-spacing: 0;
}

.bj-hand { display: flex; min-height: 96px; }
.bj-hand .bj-card:not(:first-child) { margin-left: -22px; }

.bj-card {
  position: relative;
  width: 68px; height: 96px; flex: none;
  border-radius: 8px;
  background: #f4f1ea;
  color: #14181f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  animation: bj-deal 180ms var(--ease-out, ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes bj-deal {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.bj-card--red { color: var(--red); }

.bj-card__c {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  font-size: 13px; font-weight: 800;
}
.bj-card__c i { font-style: normal; font-size: 11px; }
.bj-card__c--tl { top: 6px; left: 6px; }
.bj-card__c--br { bottom: 6px; right: 6px; transform: rotate(180deg); }
.bj-card__mid {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 30px;
}

.bj-card--back {
  background:
    repeating-linear-gradient(45deg, rgba(255, 210, 30, .16) 0 4px, transparent 4px 8px),
    linear-gradient(160deg, #1c2233, #0b0e15);
  border: 1px solid rgba(255, 210, 30, .35);
}

.bj-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bj-actions .btn { height: 40px; padding: 0 20px; }

.bj-msg {
  min-height: 22px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
}
.bj-msg.is-win  { color: var(--green); }
.bj-msg.is-lose { color: var(--red); }
.bj-msg.is-push { color: var(--text-dim); }

/* =========================== BALANCE CHIP =========================== */
.bal-chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 6px 0 12px;
  border-radius: 10px;
  background: var(--bg-800);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
  transition:
    border-color var(--dur-base, 260ms) var(--ease-soft, ease),
    background-color var(--dur-base, 260ms) var(--ease-soft, ease);
}
.bal-chip:hover { border-color: rgba(255, 210, 30, .45); background: var(--hover); }
/* the minted coin rather than a line icon — it is the site's own currency */
.bal-chip__coin {
  width: 26px; height: 26px;
  flex: none;
  object-fit: contain;
  /* the artwork carries its own glow, so it needs no ring behind it */
  margin: -4px -2px -4px -4px;
}
.bal-chip__plus {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--grad-gold);
  color: #201800;
}
.bal-chip__plus svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .bal-chip__v { display: none; }
  .bal-chip { padding: 0 6px 0 6px; }
}

/* =========================== WALLET PANEL =========================== */
.wp-tabs {
  display: flex; gap: 8px;
  margin-bottom: 18px;
}
.wp-tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-weight: 700; font-size: 13.5px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.wp-tab svg { width: 16px; height: 16px; }
.wp-tab:hover { color: var(--text); }
.wp-tab.is-on {
  background: var(--grad-gold); color: #201800;
  border-color: transparent;
}

.wp-lead { color: var(--text-dim); font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }

.wp-block { margin-bottom: 18px; }
.wp-block h4 {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 9px;
}

.wp-addr {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 13px;
  border-radius: 10px;
  background: var(--bg-900);
  border: 1px solid var(--line-2);
}
.wp-addr code {
  flex: 1; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wp-addr .btn { flex: none; height: 34px; padding: 0 15px; }

.wp-warn {
  display: flex; gap: 9px; align-items: flex-start;
  margin-top: 10px; padding: 11px 12px;
  border-radius: 9px;
  background: rgba(255, 122, 0, .07);
  border: 1px solid rgba(255, 122, 0, .22);
  color: var(--orange-hi);
  font-size: 12.5px; line-height: 1.6;
}
.wp-warn svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.wp-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--bg-800);
  border: 1px solid var(--line);
}
.wp-row + .wp-row { margin-top: 7px; }
.wp-row__ico { display: grid; place-items: center; width: 20px; height: 20px; color: var(--gold); flex: none; }
.wp-row__ico svg { width: 100%; height: 100%; }
.wp-row__n {
  display: flex; flex-direction: column; line-height: 1.3;
  font-size: 13.5px; font-weight: 700;
}
.wp-row__n i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--text-mute); }
.wp-row__tag {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(74, 222, 128, .1);
  color: var(--green);
}
.wp-row.is-off { opacity: .6; }
.wp-row.is-off .wp-row__ico { color: var(--text-mute); }
.wp-row.is-off .wp-row__tag { background: rgba(255, 255, 255, .06); color: var(--text-mute); }

.wp-bal {
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-900);
  border: 1px solid var(--line-2);
}
.wp-bal span { display: grid; place-items: center; width: 20px; height: 20px; color: var(--gold); }
.wp-bal span svg { width: 100%; height: 100%; }
.wp-bal b { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }

.wp-input {
  width: 100%; height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--bg-900);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  outline: none;
  transition: border-color .18s ease;
}
.wp-input:focus { border-color: var(--gold); }
.wp-input.is-bad { border-color: var(--red); }
.wp-err { color: var(--red); font-size: 12px; margin-top: 7px; min-height: 16px; }

.wp-amt { display: flex; gap: 9px; }
.wp-amt .btn { flex: none; height: 42px; }

.wp-note {
  color: var(--text-mute);
  font-size: 12px; line-height: 1.65;
  padding-top: 4px;
}

/* Live deposit watcher line */
.wp-watch {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-800);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px; font-weight: 600;
}
.wp-watch__dot {
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 200, 40, .7);
  animation: wp-watch-pulse 1.6s ease-in-out infinite;
}
@keyframes wp-watch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-watch__dot { animation: none; }
}

/* =========================== SEARCH =========================== */
.sr-field {
  position: relative;
  margin-bottom: 14px;
}
.sr-field__ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 18px; height: 18px;
  color: var(--text-mute);
  pointer-events: none;
  transition: color var(--dur-base, 260ms) var(--ease-soft, ease);
}
.sr-field__ico svg { width: 100%; height: 100%; }
.sr-field:focus-within .sr-field__ico { color: var(--gold); }

.sr-input {
  width: 100%; height: 46px;
  padding: 0 14px 0 42px;
  border-radius: 11px;
  background: var(--bg-900);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--dur-base, 260ms) var(--ease-soft, ease),
              box-shadow var(--dur-base, 260ms) var(--ease-soft, ease);
}
.sr-input::placeholder { color: var(--text-mute); }
.sr-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 210, 30, .1);
}

.sr-list { display: flex; flex-direction: column; gap: 6px; }

.sr-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: var(--bg-800);
  /* the index drives the stagger, and it is rewritten as rows filter */
  transition:
    background-color var(--dur-base, 260ms) var(--ease-soft, ease),
    border-color var(--dur-base, 260ms) var(--ease-soft, ease),
    transform var(--dur-base, 260ms) var(--ease-soft, ease),
    opacity 180ms var(--ease-soft, ease),
    margin 220ms var(--ease-soft, ease),
    max-height 220ms var(--ease-soft, ease);
  max-height: 70px;
  overflow: hidden;
}
.sr-row:hover {
  background: var(--hover);
  border-color: rgba(255, 210, 30, .3);
  transform: translateX(3px);
}

/* filtered out: collapses instead of vanishing, so the list settles */
.sr-row.is-out {
  opacity: 0;
  max-height: 0;
  margin-top: -6px;
  padding-top: 0; padding-bottom: 0;
  pointer-events: none;
  transform: translateX(-8px);
}

.sr-row__art {
  width: 40px; height: 40px; flex: none;
  border-radius: 8px;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--bg-900);
}
.sr-row__art img { width: 100%; height: 100%; object-fit: cover; }
.sr-row__ico { display: grid; place-items: center; width: 20px; height: 20px; color: var(--gold); }
.sr-row__ico svg { width: 100%; height: 100%; }

.sr-row__txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.sr-row__txt b { font-size: 13.5px; font-weight: 700; }
.sr-row__txt i { font-style: normal; font-size: 11.5px; color: var(--text-mute); }

.sr-row__go {
  margin-left: auto;
  display: grid; place-items: center;
  width: 16px; height: 16px;
  color: var(--text-mute);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-base, 260ms) var(--ease-soft, ease),
              transform var(--dur-base, 260ms) var(--ease-soft, ease);
}
.sr-row__go svg { width: 100%; height: 100%; }
.sr-row:hover .sr-row__go { opacity: 1; transform: none; color: var(--gold); }

.sr-none {
  padding: 22px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13.5px;
}

/* =========================== REFERRALS =========================== */
.rf-block { margin-bottom: 18px; }
.rf-block h4 {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 9px;
}

.rf-copy {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 9px 9px 13px;
  border-radius: 10px;
  background: var(--bg-900);
  border: 1px solid var(--line-2);
}
.rf-copy code {
  flex: 1; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rf-copy .btn { flex: none; height: 34px; padding: 0 15px; }

.rf-code { margin-top: 8px; color: var(--text-mute); font-size: 12px; }
.rf-code b {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em;
}

.rf-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 18px;
}
.rf-stat {
  padding: 12px 10px;
  border-radius: 10px;
  background: var(--bg-800);
  border: 1px solid var(--line);
  text-align: center;
}
.rf-stat span {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.rf-stat b {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--gold);
}

.rf-steps { list-style: none; counter-reset: rf; }
.rf-steps li {
  position: relative;
  counter-increment: rf;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 13.5px; line-height: 1.65;
}
.rf-steps li::before {
  content: counter(rf);
  position: absolute; left: 0; top: 1px;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #201800;
  font-size: 11px; font-weight: 800;
}
.rf-steps b { color: var(--gold); }
.rf-note { color: var(--text-mute); font-size: 12.5px; line-height: 1.65; margin-top: 4px; }

/* =========================== EMPTY STATES =========================== */
.row-empty {
  padding: 26px 22px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-mute);
  font-size: 13.5px; line-height: 1.7;
  text-align: center;
}
.row-empty a { color: var(--gold); }
.row-empty a:hover { text-decoration: underline; }
.row-empty--page { padding: 44px 22px; font-size: 14.5px; }

.game-row--empty { display: block; }
.grid--empty { display: block; }

@media (max-width: 560px) {
  .bj-card { width: 56px; height: 80px; }
  .bj-card__mid { font-size: 24px; }
  .limbo-val { font-size: 48px; }
}
