/* Betcha Jalapeño animated app preview — standalone component styles.
   Reusable anywhere <betcha-app-preview> is dropped in; no dependency on
   landing.css or the rest of the page. */

betcha-app-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.bap-frame {
  width: min(100%, 344px);
  background: var(--invert, #14100E);
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 44px 90px rgba(27, 23, 20, .26);
  position: relative;
}

.bap-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 28px;
  background: #000;
  border-radius: 18px;
  z-index: 60;
}

.bap-screen {
  background: var(--paper, #FBF8F2);
  border-radius: 37px;
  overflow: hidden;
  height: 648px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bap-statusbar {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 26px 6px;
}

.bap-clock {
  font-family: var(--font-display, 'Bricolage Grotesque');
  font-weight: 700;
  font-size: 14px;
}

.bap-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.bap-balance i {
  font-size: 13px;
  line-height: 1;
  color: var(--red, #E24A2E);
}

.bap-scene {
  flex: 1;
  overflow: hidden;
  padding: 6px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: bapPop .42s cubic-bezier(.2,.8,.2,1) both;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bap-scene::-webkit-scrollbar {
  display: none;
}

.bap-scene-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 2px;
}

.bap-scene-head i {
  font-size: 19px;
  line-height: 1;
  color: var(--red, #E24A2E);
}

.bap-scene-title {
  font-family: var(--font-display, 'Bricolage Grotesque');
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}

.bap-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Scene 1: compose */

.bap-card {
  background: #fff;
  border: 1.5px solid var(--line, #ECE6DB);
  border-radius: 20px;
  padding: 16px;
  min-height: 104px;
}

.bap-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  color: var(--ink4, #B5ADA2);
}

.bap-bet-text {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 8px;
}

.bap-caret {
  display: inline-block;
  width: 2px;
  height: 17px;
  background: var(--red, #E24A2E);
  vertical-align: -3px;
  margin-left: 1px;
  animation: bapCaret 1s steps(1) infinite;
}

.bap-stake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid var(--line, #ECE6DB);
  border-radius: 20px;
  padding: 14px 16px;
}

.bap-stake-amount {
  font-family: var(--font-display, 'Bricolage Grotesque');
  font-weight: 800;
  font-size: 24px;
  margin-top: 2px;
}

.bap-steppers {
  display: flex;
  gap: 7px;
}

.bap-stepper {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.bap-stepper.minus {
  background: var(--fill, #F6F2EA);
  color: var(--ink2, #6b635b);
}

.bap-stepper.plus {
  background: var(--ink, #1B1714);
  color: #fff;
}

.bap-opponent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--line, #ECE6DB);
  border-radius: 20px;
  padding: 12px 14px;
}

.bap-initial-tile {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gold-soft, #FFF3D6);
  color: var(--gold-ink, #B07C00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Bricolage Grotesque');
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.bap-opponent-info {
  flex: 1;
  min-width: 0;
}

.bap-opponent-name {
  font-size: 14px;
  font-weight: 800;
}

.bap-opponent-sub {
  font-size: 12px;
  color: var(--ink3, #8A817A);
}

.bap-opponent-row > i {
  font-size: 20px;
  line-height: 1;
  color: var(--green, #1B9C58);
}

/* Scene 2: sent */

.bap-dark-card {
  background: var(--invert, #14100E);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(27, 23, 20, .2);
  animation: bapSlide .5s cubic-bezier(.2,.8,.2,1) both;
}

.bap-dark-card-cover {
  height: 96px;
  background: linear-gradient(135deg, #E24A2E, #B07C00);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bap-tile-pair {
  display: flex;
}

.bap-tile-pair .bap-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Bricolage Grotesque');
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .18);
}

.bap-tile-pair .bap-avatar + .bap-avatar {
  margin-left: -14px;
}

.bap-avatar.m {
  background: var(--green-soft, #E4F3E9);
  color: var(--green-deep, #12703E);
}

.bap-avatar.j {
  background: var(--gold-soft, #FFF3D6);
  color: var(--gold-ink, #B07C00);
}

.bap-dark-card-body {
  padding: 15px 18px 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bap-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--gold, #E7A017);
}

.bap-dark-bet-text {
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
}

.bap-dark-meta {
  font-size: 12px;
  color: var(--invert-ink2, #C9BFB2);
}

.bap-feed {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bap-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line, #ECE6DB);
  border-radius: 18px;
  padding: 12px 14px;
  animation: bapSlide .45s cubic-bezier(.2,.8,.2,1) both;
}

.bap-feed-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.bap-feed-icon.green {
  background: var(--green-soft, #E4F3E9);
  color: var(--green-deep, #12703E);
}

.bap-feed-icon.fill {
  background: var(--fill, #F6F2EA);
  color: var(--ink2, #6b635b);
}

.bap-feed-title {
  font-size: 13.5px;
  font-weight: 800;
}

.bap-feed-sub {
  font-size: 12px;
  color: var(--ink3, #8A817A);
}

/* Scene 3: settle */

.bap-settle-card {
  background: #fff;
  border: 1.5px solid var(--line, #ECE6DB);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bap-settle-bet {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink, #1B1714);
}

.bap-divider {
  height: 1px;
  background: var(--fill2, #F0EAE0);
}

.bap-who-won {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink4, #B5ADA2);
}

.bap-option-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bap-option {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 16px;
  padding: 12px 14px;
}

.bap-option.selected {
  border: 2px solid var(--green, #1B9C58);
  background: var(--green-soft, #E4F3E9);
  animation: bapPulse 1.6s ease-in-out infinite;
}

.bap-option.unselected {
  border: 1.5px solid var(--line, #ECE6DB);
}

.bap-option-label {
  flex: 1;
  font-size: 14.5px;
  font-weight: 800;
}

.bap-option.unselected .bap-option-label {
  color: var(--ink2, #6b635b);
}

.bap-option > i {
  font-size: 21px;
  line-height: 1;
  color: var(--green, #1B9C58);
}

.bap-judge-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-soft, #E1EAFB);
  border-radius: 18px;
  padding: 12px 14px;
}

.bap-judge-note i {
  font-size: 19px;
  line-height: 1;
  color: var(--blue, #3B72E2);
  flex-shrink: 0;
}

.bap-judge-note span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--blue-ink, #2F5AB5);
  font-weight: 600;
}

/* Scene 4: win */

.bap-win {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 4px 30px;
  text-align: center;
}

.bap-win-tile {
  width: 104px;
  height: 104px;
  border-radius: 34px;
  background: var(--green, #1B9C58);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  box-shadow: 0 18px 40px rgba(27, 156, 88, .34);
  animation: bapBurst .6s cubic-bezier(.2,.9,.2,1) both;
}

.bap-win-title {
  font-family: var(--font-display, 'Bricolage Grotesque');
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.bap-win-amount {
  font-family: var(--font-display, 'Bricolage Grotesque');
  font-weight: 800;
  font-size: 22px;
  color: var(--green, #1B9C58);
}

.bap-win-summary {
  font-size: 14.5px;
  color: var(--ink2, #6b635b);
  line-height: 1.5;
  max-width: 250px;
}

/* Footer / CTA / progress */

.bap-footer {
  flex-shrink: 0;
  padding: 10px 16px 20px;
  background: var(--paper, #FBF8F2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bap-cta {
  height: 52px;
  border-radius: 17px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16.5px;
}

.bap-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bap-dot {
  height: 5px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width .3s ease, background .3s ease;
}

.bap-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink3, #8A817A);
  font-weight: 600;
}

.bap-caption i {
  font-size: 15px;
  line-height: 1;
  color: var(--ink4, #B5ADA2);
}

@keyframes bapPop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@keyframes bapSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes bapBurst {
  0% { opacity: 0; transform: scale(.6); }
  55% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes bapCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes bapPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .bap-scene,
  .bap-dark-card,
  .bap-feed-row,
  .bap-win-tile,
  .bap-caret,
  .bap-option.selected {
    animation: none !important;
  }
}
