/* Better Deal (deal) */
.g-deal { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; padding-bottom: 16px; }

.g-deal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g-deal-count, .g-deal-combo { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; }
.g-deal-combo { transition: transform .15s ease; }
.g-deal-combo.is-hot { background: var(--accent); color: var(--accent-ink); }
.g-deal-timer .timer { margin: 18px 0 4px; }

.g-deal-q {
  margin: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--ink);
}

.g-deal-shelf { padding: 14px 10px 18px; border-bottom-width: 6px; }
.g-deal-offers { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 10px; }

.g-deal-tag {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px;
  min-height: 168px; padding: 26px 8px 12px; border-radius: var(--radius); border: 2px solid var(--card-border);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .14s ease, border-color .15s ease, box-shadow .15s ease, background-color .2s ease, opacity .2s ease;
}
.g-deal-tag:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.g-deal-tag:active { transform: scale(.97); }
.g-deal-tag:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.g-deal-hole {
  position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--board); border: 1.5px solid var(--line);
}
.g-deal-badge {
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.25; padding: 3px 8px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); max-width: 100%;
}
.g-deal-badge--plain { background: var(--surface); color: var(--ink-3); border: 1px solid var(--line); font-weight: 700; }
.g-deal-price {
  font-family: var(--font-mono); font-weight: 800; font-size: clamp(22px, 7vw, 30px); line-height: 1.15; margin: 4px 0 2px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.g-deal-line { font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.g-deal-key {
  margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}
.g-deal-in { animation: g-deal-in .32s cubic-bezier(.2,.8,.2,1.3) both; }
@keyframes g-deal-in { from { transform: translateY(-14px) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }

.g-deal-tag.is-done { cursor: default; pointer-events: none; opacity: .55; }
.g-deal-tag.is-right { opacity: 1; border-color: var(--ok); background: var(--ok-soft); box-shadow: 0 0 0 4px var(--ok-soft), var(--shadow); }
.g-deal-tag.is-wrong { opacity: 1; border-color: var(--bad); background: var(--bad-soft); }
.g-deal-tag.is-right .g-deal-key, .g-deal-tag.is-wrong .g-deal-key { font-size: 18px; font-weight: 800; }
.g-deal-tag.is-right .g-deal-key { color: var(--ok); }
.g-deal-tag.is-wrong .g-deal-key { color: var(--bad); }

.g-deal-foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.g-deal-cart {
  align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 8px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--ok);
}
.g-deal-cart-ico { font-size: 26px; line-height: 1; }
.g-deal-bump { animation: g-deal-bump .4s cubic-bezier(.2,.8,.2,1.6); }
@keyframes g-deal-bump { 0% { transform: scale(1); } 40% { transform: scale(1.15) rotate(-4deg); } 100% { transform: scale(1); } }
.g-deal-coin { position: absolute; z-index: 5; font-size: 20px; line-height: 1; pointer-events: none; }

.g-deal-why {
  margin: 0; min-height: 44px; text-align: center; font-size: 14px; line-height: 1.4; color: var(--ink-2); padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}
.g-deal-why--good { color: var(--ok); }
.g-deal-why--bad { color: var(--bad); font-weight: 600; }
.g-deal-next { align-self: center; min-height: 44px; }

/* Receipt */
.g-deal-end { display: flex; flex-direction: column; gap: 14px; }
.g-deal-receipt {
  position: relative; background: var(--card); color: var(--ink); border: 1.5px solid var(--card-border); border-bottom: 3px dotted var(--line);
  box-shadow: var(--shadow); padding: 16px 16px 22px; font-family: var(--font-mono); font-size: 13.5px;
  animation: g-deal-print .5s ease-out both; transform-origin: top center;
}
@keyframes g-deal-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.g-deal-rhead { text-align: center; font-weight: 800; letter-spacing: .08em; padding-bottom: 10px; border-bottom: 2px dashed var(--line); margin-bottom: 8px; }
.g-deal-rhead span { font-weight: 500; letter-spacing: .02em; color: var(--ink-3); font-size: 12px; }
.g-deal-rrow { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: baseline; padding: 3px 0; animation: g-deal-row .22s ease-out both; }
@keyframes g-deal-row { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.g-deal-rmark { font-weight: 800; }
.g-deal-rrow.is-ok .g-deal-rmark { color: var(--ok); }
.g-deal-rrow.is-bad .g-deal-rmark { color: var(--bad); }
.g-deal-rrow.is-bad .g-deal-rname { color: var(--ink-3); }
.g-deal-rname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-body); }
.g-deal-ramt { font-variant-numeric: tabular-nums; }
.g-deal-rtotal { margin-top: 8px; padding-top: 8px; border-top: 2px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
.g-deal-rsum { display: flex; justify-content: space-between; }
.g-deal-rsave {
  margin-top: 8px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ok);
  background: var(--ok-soft); border-radius: 10px; padding: 8px;
}

@media (min-width: 560px) {
  .g-deal-q { font-size: 20px; }
  .g-deal-tag { min-height: 190px; }
  .g-deal-offers { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-deal-receipt { animation: none; }
}
