
.no-coins-panel {
  align-items: stretch;
  text-align: center;
}

.no-coins-text {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.no-coins-links {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.no-coins-links .sheet-close {
  width: 100%;
  min-height: 44px;
  margin-top: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  box-shadow: none;
  color: color-mix(in srgb, var(--text) 75%, var(--muted));
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.no-coins-shop {
  min-height: 52px;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.04) 48%, transparent 52%),
    linear-gradient(180deg, var(--violet), var(--navy) 60%, var(--navy-deep));
  box-shadow: 0 0 0 1px var(--gold-deep), 0 3px 0 var(--navy-deep), 0 4px 8px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000;
}

.no-coins-shop:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 1px 0 var(--navy-deep);
}

.low-coins-art {
  display: none;
}

#no-coins[data-kind="short-bet"] .no-coins-panel {
  max-width: 340px;
  padding: 38px 20px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, var(--violet), var(--sheet-top) 58%, var(--sheet-base));
  box-shadow: inset 0 1px 0 rgba(255, 242, 175, 0.35), 0 0 0 2px var(--gold-deep), 0 12px 30px rgba(0, 0, 0, 0.6);
}

#no-coins[data-kind="short-bet"] .sheet-title {
  top: -22px;
  min-width: calc(100% - 30px);
  padding: 8px 28px;
  font-size: clamp(1.4rem, 6.7vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: 0.045em;
  background-image: var(--gold-bevel), linear-gradient(180deg, var(--lacquer-light), var(--violet) 50%, var(--red-dark));
}

#no-coins[data-kind="short-bet"] .sheet-content {
  align-items: center;
}

#no-coins[data-kind="short-bet"] .low-coins-art:not([hidden]) {
  display: block;
  width: 224px;
  height: 164px;
  max-width: 100%;
  margin: -10px auto 6px;
  background: url("../art/offers/coin-stacks.webp") -224px -44px / 672px 448px no-repeat;
  filter: drop-shadow(0 0 14px rgba(255, 212, 90, 0.4));
  pointer-events: none;
}

#no-coins[data-kind="short-bet"] .no-coins-text {
  max-width: 270px;
  margin: 0 0 20px;
}

#no-coins[data-kind="short-bet"] #refill {
  display: none;
}

#no-coins[data-kind="short-bet"] .no-coins-links {
  display: flex;
  justify-content: center;
}

#no-coins[data-kind="short-bet"] .no-coins-shop {
  width: min(100%, 216px);
  min-height: 58px;
  border: 3px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 46%),
    linear-gradient(180deg, var(--go-light), var(--go) 52%, var(--go-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 4px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--gold-deep), 0 4px 0 var(--go-dark);
  color: var(--text);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 var(--go-dark);
}

#no-coins[data-kind="short-bet"] .no-coins-shop:active {
  box-shadow: inset 0 -1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--gold-deep), 0 2px 0 var(--go-dark);
}

#no-coins[data-kind="short-bet"] .no-coins-decline {
  position: absolute;
  top: -23px;
  right: -10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--lacquer-light), var(--violet) 48%, var(--red-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px var(--gold-deep), 0 3px 0 var(--red-dark);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 var(--red-dark);
}


.streak-panel {
  align-items: center;
  text-align: center;
}

.streak-day {
  margin: 8px 0 6px;
  padding: 0 12px;
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background-image: var(--gold-bevel);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 14px rgba(255, 212, 90, 0.35));
}

.streak-meter {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 0 0 6px;
}

.streak-pip {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--sheet-base);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 90, 0.25);
}

.streak-pip.lit {
  background: var(--gold-bevel);
  box-shadow: inset 0 0 0 1px var(--gold-deep);
}

.streak-pip.break {
  box-shadow: inset 0 0 0 1px var(--ruby);
}

.streak-pip.break::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 9px;
  height: 18px;
  margin-left: -4.5px;
  background: var(--ruby);
  clip-path: polygon(45% 0, 100% 0, 62% 42%, 95% 42%, 12% 100%, 40% 56%, 5% 56%);
  transform: rotate(-20deg);
}

.streak-sheet.open .streak-pip.break::after {
  animation: streak-crack 300ms 240ms ease-out both;
}

@keyframes streak-crack {
  from { transform: rotate(-20deg) scale(0); }
  to { transform: rotate(-20deg) scale(1); }
}

.streak-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 2px 0 8px;
}

.streak-next .pearl {
  width: 32px;
  height: 32px;
  font-size: 32px;
}

.streak-next .pearl + .pearl {
  margin-left: -6px;
}

.streak-next-day {
  margin-left: 2px;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 #000;
}

.streak-note {
  max-width: 300px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.streak-restore {
  flex: none;
  font-size: 1.45rem;
}

.streak-panel .sheet-close,
.streak-panel .sheet-close:active {
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .streak-sheet.open .streak-pip.break::after {
    animation: none;
  }
}
