/**
 * תוצאות צ'אנס באתר – accent לפי צבע סוג המשחק (קטגוריה בתפריט), ברירת מחדל כמו ספורט
 */
body.page-hub-chance {
  --chance-accent: var(--accent-sport, #f5c518);
}

.chance-variant-page {
  --chance-accent: var(--accent-sport, #f5c518);
  width: 100%;
  min-width: 0;
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
}

.chance-variant-page button,
.chance-variant-page input,
.chance-variant-page select,
.chance-variant-page textarea {
  font-family: inherit;
}

/* «הטופס שלי» – כמו hub ספורט: פס accent ב־inline-start (ב־RTL = ימין) + כרטיס לפי --chance-accent */
body.page-hub-chance .index-home-hub--chance .index-my-form-block.index-home-card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--chance-accent) 10%, rgba(255, 255, 255, 0.06)),
    color-mix(in srgb, var(--chance-accent) 4%, rgba(255, 255, 255, 0.03))
  );
  border: 1px solid color-mix(in srgb, var(--chance-accent) 22%, rgba(255, 255, 255, 0.1));
  border-inline-start: 3px solid color-mix(in srgb, var(--chance-accent) 55%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: none;
}

body.page-hub-chance .index-home-hub--chance .index-my-form-head.index-my-form-title-bar {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--chance-accent) 18%, rgba(0, 0, 0, 0.35)),
    color-mix(in srgb, var(--chance-accent) 8%, rgba(0, 0, 0, 0.14))
  );
  border: 1px solid color-mix(in srgb, var(--chance-accent) 16%, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
}

body.page-hub-chance .index-home-hub--chance .index-my-form-title .index-my-form-balance-value {
  color: color-mix(in srgb, var(--chance-accent) 35%, #fff);
}

body.page-hub-chance .index-home-hub--chance .index-my-form-empty-icon {
  color: color-mix(in srgb, var(--chance-accent) 45%, transparent);
}

/* שלב אישור ב־«הטופס שלי» לפני POST (כמו הימור ספורט) */
body.page-hub-chance .index-my-form-content--has-bet .index-my-form-slip {
  --accent-sport: var(--chance-accent, #f5c518);
}

/* רוחב עמודת צד + תוכן פנימי — מניעת גלישה מעבר לכרטיס (flex min-width) */
body.page-hub-chance .index-desktop-cols .index-col--form {
  min-width: 0;
}

body.page-hub-chance .index-home-hub--chance .index-my-form-block.index-home-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* עמודת צ'אנס + שכבת התחברות: ממלא את התיבה הקבועה; גבהים מוגדרים ב־style.css על העטיפה */
body.page-hub-chance .football-betting-hub-wrap:has(.site-betting-login-wall) > .chance-variant-page {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

body.page-hub-chance .index-home-hub--chance #index-my-form-content.index-my-form-desc,
body.page-hub-chance .index-home-hub--chance .index-my-form-desc {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.page-hub-chance .index-my-form-content--has-bet .index-my-form-slip.chance-staging-slip {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

body.page-hub-chance .chance-staging-slip .slip-bets,
body.page-hub-chance .chance-staging-slip .slip-fixture.chance-staging-fixture,
body.page-hub-chance .chance-staging-slip .slip-fixture-lines {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.page-hub-chance .chance-staging-slip .slip-line.chance-staging-line {
  max-width: 100%;
  min-width: 0;
  align-items: flex-start;
}

/* שורת טופס בתור: מרכוז אנכי של כפתור X מול התוכן */
body.page-hub-chance .chance-staging-slip .slip-line.chance-queue-ticket-line {
  align-items: center;
}

body.page-hub-chance .chance-staging-slip .slip-line-info {
  width: 0;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

/* מפתח/ערך בעמודה צרה — שתי עמודות עם minmax(0) */
body.page-hub-chance .chance-staging-slip .slip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 4px 10px;
  align-items: start;
}

body.page-hub-chance .chance-staging-slip .slip-row-key {
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0.01em;
}

body.page-hub-chance .chance-staging-slip .slip-row-val {
  min-width: 0;
  text-align: end;
}

@media (max-width: 320px) {
  body.page-hub-chance .chance-staging-slip .slip-row {
    grid-template-columns: 1fr;
  }
}

body.page-hub-chance .chance-staging-slip .slip-summary {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.page-hub-chance .chance-staging-slip .slip-summary-row {
  flex-wrap: wrap;
  gap: 4px 8px;
}

body.page-hub-chance .chance-staging-slip .slip-summary-label {
  flex: 0 1 auto;
  min-width: 0;
}

body.page-hub-chance .chance-staging-slip .slip-summary-val {
  flex: 1 1 auto;
  min-width: 0;
  text-align: end;
}

body.page-hub-chance .chance-staging-slip .slip-actions {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.page-hub-chance .chance-staging-slip .slip-btn {
  min-width: 0;
}

body.page-hub-chance .chance-staging-slip .slip-btn--submit {
  flex: 1 1 55%;
  min-width: 6.5em;
}

body.page-hub-chance .chance-staging-slip .slip-btn--clear {
  flex: 1 1 40%;
  min-width: 5em;
}

/* כפתורי תור צ'אנס — צבע לפי --chance-accent, בלי צהוב ספורט גלובלי ב־hover */
body.page-hub-chance .chance-staging-slip .chance-queue-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

body.page-hub-chance .chance-staging-slip .chance-queue-actions .slip-btn {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}

body.page-hub-chance .chance-staging-slip .chance-queue-actions .chance-queue-btn--submit {
  flex: none;
  min-width: 0;
  color: #121212;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--chance-accent, #e8b923) 88%, #1a1408),
    color-mix(in srgb, var(--chance-accent, #c9a010) 72%, #0a0a0a)
  );
  box-shadow: 0 3px 14px color-mix(in srgb, var(--chance-accent, #c9a010) 22%, transparent);
}

body.page-hub-chance .chance-staging-slip .chance-queue-actions .chance-queue-btn--submit:hover:not(:disabled) {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--chance-accent, #f0cc4a) 78%, #fff),
    color-mix(in srgb, var(--chance-accent, #e8b923) 68%, #2a2210)
  );
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px color-mix(in srgb, var(--chance-accent, #c9a010) 32%, transparent);
}

body.page-hub-chance .chance-staging-slip .chance-queue-actions .chance-queue-btn--submit:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.98);
}

body.page-hub-chance .chance-staging-slip .chance-queue-actions .chance-queue-btn--submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.2);
  box-shadow: none;
}

body.page-hub-chance .chance-staging-slip .chance-queue-actions .chance-queue-btn--clear {
  flex: none;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.page-hub-chance .chance-staging-slip .chance-queue-actions .chance-queue-btn--clear:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.chance-queue-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
  box-sizing: border-box;
  padding-inline: 2px;
  gap: 0;
}

.chance-queue-bets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  max-height: min(42vh, 340px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-inline-end: 4px;
  margin-inline-end: -2px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--chance-accent, #c9a010) 45%, transparent) rgba(255, 255, 255, 0.06);
}

.chance-queue-bets::-webkit-scrollbar {
  width: 6px;
}

.chance-queue-bets::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.chance-queue-bets::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--chance-accent, #c9a010) 50%, rgba(255, 255, 255, 0.15));
  border-radius: 4px;
}

@media (min-width: 900px) {
  .chance-queue-bets {
    max-height: min(48vh, 420px);
  }
}

.chance-queue-item {
  margin: 0;
}

.chance-queue-ticket-summary {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.chance-queue-totals {
  margin-top: 12px;
  padding-block: 12px;
  padding-inline: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}

.chance-queue-totals-head {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding-block: 0 10px;
  margin-block-end: 8px;
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
}

.chance-queue-total-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  padding-block: 6px;
  border-block-end: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  line-height: 1.4;
  min-width: 0;
}

.chance-queue-total-row:last-child {
  border-block-end: none;
  padding-block-end: 2px;
}

.chance-queue-total-label {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  text-align: start;
  min-width: 0;
}

.chance-queue-total-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.95);
  text-align: end;
  justify-self: stretch;
  min-width: 0;
}

@media (max-width: 320px) {
  .chance-queue-total-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .chance-queue-total-label,
  .chance-queue-total-val {
    text-align: center;
    justify-self: center;
  }
}

/* סיכום פר־טופס בתור — אותה לוגיקת עמודות כמו סיכום כללי */
body.page-hub-chance .chance-queue-ticket-summary.slip-summary .slip-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  column-gap: 12px;
  justify-content: initial;
}

body.page-hub-chance .chance-queue-ticket-summary.slip-summary .slip-summary-label {
  text-align: start;
  min-width: 0;
}

body.page-hub-chance .chance-queue-ticket-summary.slip-summary .slip-summary-val {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

body.page-hub-chance .chance-queue-ticket-summary.slip-summary .slip-summary-val--accent {
  color: color-mix(in srgb, var(--chance-accent, #f5c518) 82%, #fff);
}

.chance-queue-actions {
  margin-top: 0;
}

.chance-staging-cards-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  box-sizing: border-box;
}

.chance-staging-line .slip-line-info {
  gap: clamp(3px, 0.8vw, 5px);
}

.chance-staging-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 3px;
  margin: 0;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.chance-staging-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.chance-staging-col--muted {
  opacity: 0.42;
}

.chance-staging-col-label {
  font-size: clamp(0.58rem, 0.5rem + 0.28vw, 0.66rem);
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.chance-staging-col-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 5px;
  width: 100%;
  min-height: 56px;
}

.chance-staging-mini {
  flex: 0 1 auto;
  width: 100%;
  max-width: 34px;
  min-width: 26px;
  min-height: 46px;
  padding: 4px 2px 5px;
  border-radius: 6px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  background: linear-gradient(165deg, #fefefe 0%, #e8e8e8 100%);
  border: 1px solid rgba(30, 30, 30, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.chance-staging-mini--red {
  color: #b91c1c;
}

.chance-staging-mini--black {
  color: #171717;
}

.chance-staging-mini--empty {
  background: rgba(255, 255, 255, 0.06);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.chance-staging-mini__idx {
  font-size: clamp(12px, 2.9vw, 14px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.chance-staging-mini__suit {
  font-size: clamp(14px, 3.4vw, 17px);
  line-height: 1;
  font-weight: 700;
}

.chance-staging-mini--empty .chance-staging-mini__idx {
  font-size: clamp(13px, 3.1vw, 15px);
  margin-top: 12px;
}

@media (max-width: 360px) {
  .chance-staging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * מובייל בדף טופס צ'אנס: «הטופס שלי» כמו בספורט – רק כשיש טפסים בתור (מחלקה index-my-form-block--has-slip ב־chance-index-form.js).
 * דסקטופ: אין display:none על הבלוק (style.css רק עד 768px) – העמודה תמיד גלויה.
 * דף תוצאות (בלי chance-index-form.js): מציגים את העמודה גם בלי תור.
 */
@media (max-width: 768px) {
  body.page-hub-chance.page-chance-results-view .index-my-form-block:not(.index-my-form-block--has-slip) {
    display: block !important;
  }
}

/* בלי padding-top כפול – הריווח העליון מגיע מ־.main .container (אחיד לכל ה-hub ב־style.css) */
.chance-results-page {
  padding: 0 0 var(--space-y);
}

.chance-results-page .chance-variant-page__desc {
  margin-bottom: var(--space-y-xs);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
}

.chance-results-toolbar {
  --cr-control-h: 34px;
  --cr-control-radius: 9px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.26) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 4px 16px rgba(0, 0, 0, 0.14);
}

.chance-results-toolbar__subtitle {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.35;
}

.chance-results-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 8px;
}

.chance-results-filter {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.chance-results-filter__label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chance-results-filter__input {
  box-sizing: border-box;
  height: var(--cr-control-h);
  min-height: var(--cr-control-h);
  padding: 0 10px;
  border-radius: var(--cr-control-radius);
  border: 1px solid color-mix(in srgb, var(--chance-accent) 14%, rgba(255, 255, 255, 0.1));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.28) 100%);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  min-width: 0;
  color-scheme: dark;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.chance-results-filter__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.chance-results-filter select.chance-results-filter__input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-inline: 10px 2rem;
  line-height: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px;
}

html[dir='rtl'] .chance-results-filter select.chance-results-filter__input {
  background-position: left 9px center;
  padding-inline: 2rem 10px;
}

html[dir='ltr'] .chance-results-filter select.chance-results-filter__input {
  background-position: right 9px center;
  padding-inline: 10px 2rem;
}

.chance-results-filter select.chance-results-filter__input option {
  background: #1a1a1e;
  color: #f4f4f5;
  font-weight: 600;
}

.chance-results-filter input[type='date'].chance-results-filter__input {
  min-width: 7.75rem;
}

.chance-results-filter:has(select.chance-results-filter__input) {
  min-width: 5.5rem;
}

.chance-results-filter__input:hover {
  border-color: color-mix(in srgb, var(--chance-accent) 28%, rgba(255, 255, 255, 0.14));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(0, 0, 0, 0.32) 100%);
}

.chance-results-filter__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--chance-accent) 55%, rgba(255, 255, 255, 0.2));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--chance-accent) 35%, transparent),
    0 4px 14px color-mix(in srgb, var(--chance-accent) 12%, transparent);
}

.chance-results-filter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--cr-control-h);
  min-height: var(--cr-control-h);
  padding: 0 14px;
  border-radius: var(--cr-control-radius);
  border: none;
  font-size: 0.8125rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #141414;
  background: linear-gradient(145deg, var(--chance-accent) 0%, color-mix(in srgb, var(--chance-accent) 72%, #fff) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 3px 10px color-mix(in srgb, var(--chance-accent) 22%, transparent);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.chance-results-filter__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 5px 14px color-mix(in srgb, var(--chance-accent) 28%, transparent);
}

.chance-results-filter__btn:active {
  transform: translateY(0);
}

.chance-results-filter__btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.chance-results-filter__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: color-mix(in srgb, var(--chance-accent) 25%, rgba(255, 255, 255, 0.2));
  filter: none;
  box-shadow: none;
}

.chance-results-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 6px;
  margin-top: 14px;
  padding-top: 4px;
}

.chance-results-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.chance-results-page-link:hover {
  background: color-mix(in srgb, var(--chance-accent) 16%, rgba(255, 255, 255, 0.08));
  border-color: color-mix(in srgb, var(--chance-accent) 28%, rgba(255, 255, 255, 0.12));
}

.chance-results-page-link.is-active {
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--chance-accent), color-mix(in srgb, var(--chance-accent) 75%, #fff));
  border-color: transparent;
  cursor: default;
}

.chance-results-page-link.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.chance-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.chance-result-card {
  border: 1px solid color-mix(in srgb, var(--chance-accent) 22%, rgba(255, 255, 255, 0.1));
  border-inline-start: 3px solid color-mix(in srgb, var(--chance-accent) 55%, transparent);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--chance-accent) 10%, rgba(255, 255, 255, 0.06)),
    color-mix(in srgb, var(--chance-accent) 4%, rgba(255, 255, 255, 0.03))
  );
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.chance-result-card--latest {
  border-inline-start-color: color-mix(in srgb, var(--chance-accent) 78%, transparent);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px color-mix(in srgb, var(--chance-accent) 14%, rgba(255, 255, 255, 0.08));
}

.chance-result-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--chance-accent) 12%, rgba(255, 255, 255, 0.1));
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--chance-accent) 14%, rgba(0, 0, 0, 0.32)),
    color-mix(in srgb, var(--chance-accent) 6%, rgba(0, 0, 0, 0.12))
  );
}

.chance-result-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 800;
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--chance-accent), color-mix(in srgb, var(--chance-accent) 75%, #fff));
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.chance-result-card__meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.chance-result-card__verify {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-inline-start: auto;
}

.chance-result-card__body {
  padding: 18px 20px 20px;
}

.chance-result-cards-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: center;
  direction: ltr;
}

.chance-pc {
  width: 68px;
  height: 98px;
  border-radius: 7px;
  border: 1px solid rgba(30, 30, 30, 0.16);
  background: linear-gradient(165deg, #fefefe 0%, #ececec 55%, #e4e4e4 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chance-result-card:hover .chance-pc {
  transform: translateY(-2px);
}

.chance-pc--red {
  color: #b91c1c;
}

.chance-pc--black {
  color: #171717;
}

/* עטיפה לפינות בלבד – בלי מסגרת פנימית */
.chance-pc__inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.chance-pc__corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-weight: 800;
}

.chance-pc__corner--tl {
  top: 2px;
  left: 2px;
}

.chance-pc__corner--br {
  bottom: 2px;
  right: 2px;
  transform: rotate(180deg);
}

.chance-pc__idx {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.chance-pc__suit {
  font-size: 17px;
  margin-top: 2px;
  line-height: 1;
}

.chance-results-empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  max-width: 420px;
  margin: 0 auto;
}

.chance-results-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: color-mix(in srgb, var(--chance-accent) 45%, transparent);
}

.chance-results-empty__icon svg {
  width: 100%;
  height: 100%;
}

.chance-results-empty__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 8px;
}

.chance-results-empty__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}

.chance-results-footnote {
  margin-top: var(--space-y);
  padding-top: var(--space-y-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.55;
  text-align: center;
}

/* וריאנט צ'אנס שאינו תוצאות – בלוק placeholder ללא אייקון */
.chance-variant-placeholder {
  margin-top: 0;
  padding: 28px 22px;
  border-radius: 14px;
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--chance-accent) 10%, rgba(255, 255, 255, 0.06)),
    color-mix(in srgb, var(--chance-accent) 4%, rgba(255, 255, 255, 0.03))
  );
  border: 1px solid color-mix(in srgb, var(--chance-accent) 22%, rgba(255, 255, 255, 0.1));
  border-inline-start: 3px solid color-mix(in srgb, var(--chance-accent) 55%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.chance-variant-placeholder__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.chance-variant-placeholder__example {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.6;
}

/* «ההגרלה הבאה» – מעל «הטופס שלי» (דסקטופ); במובייל ראשון בעמודה (order 0 מול index-my-form-block order 1) */
.chance-next-draw-sidebar {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 14px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--chance-accent, #d4af37) 24%, rgba(255, 255, 255, 0.1));
  border-inline-start: 3px solid color-mix(in srgb, var(--chance-accent, #d4af37) 70%, transparent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 26px rgba(0, 0, 0, 0.22);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--chance-accent, #d4af37) 14%, rgba(255, 255, 255, 0.07)) 0%,
    rgba(0, 0, 0, 0.32) 100%
  );
}

@media (max-width: 768px) {
  body.page-hub-chance .index-desktop-cols > .chance-next-draw-sidebar {
    order: 0;
    width: 100%;
    align-self: stretch;
  }
}

.chance-next-draw-sidebar__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.chance-next-draw-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.25;
}

.chance-next-draw-sidebar__title-icon {
  flex-shrink: 0;
  width: 1.35em;
  height: 1.35em;
  color: color-mix(in srgb, var(--chance-accent, #d4af37) 88%, #fff);
}

.chance-next-draw-sidebar__meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}

.chance-next-draw-sidebar__panel {
  position: relative;
  padding: 12px 10px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chance-next-draw-sidebar__bg-icon {
  position: absolute;
  inset-inline-end: -6px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  opacity: 0.07;
  color: var(--chance-accent, #d4af37);
  pointer-events: none;
}

.chance-next-draw-sidebar__bg-icon svg {
  width: 100%;
  height: 100%;
}

.chance-next-draw-sidebar__intro {
  margin: 0 0 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.chance-next-draw-sidebar__blocks {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.chance-next-draw-sidebar__block {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 10px 6px 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--chance-accent, #d4af37) 12%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--chance-accent, #d4af37) 18%, rgba(255, 255, 255, 0.08));
}

.chance-next-draw-sidebar__num {
  display: block;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--chance-accent, #d4af37) 35%, #fff);
  line-height: 1.1;
  margin-bottom: 4px;
}

.chance-next-draw-sidebar__label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.chance-next-draw-sidebar__footer {
  margin: 12px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
  text-align: center;
  position: relative;
  z-index: 1;
}
