/* Rejection City · Café (Corner Cup) screen. Loaded by templates/playground/rejection_city/page.html.
   Phone 390 x 844 from Figma page "1 · Café"; --px is one Figma pixel (see ../rejection-city.css). */
.rc-device--phone .rc-screen.rc-cafe {
  gap: calc(14 * var(--px));
  padding: calc(22 * var(--px));
  color: #1b1b1f;
  font-size: calc(16 * var(--px));
}
.rc-cafe > * { display: flex; flex-direction: column; }
.rc-cafe__status { flex-direction: row; justify-content: space-between; align-items: flex-start; font-size: calc(13 * var(--px)); font-weight: 600; }
.rc-cafe__status span + span { font-size: calc(12 * var(--px)); font-weight: 500; }
.rc-cafe__brand { font-size: calc(20 * var(--px)); font-weight: 700; }
.rc-cafe__order { gap: calc(4 * var(--px)); padding: calc(16 * var(--px)); border-radius: calc(12 * var(--px)); background: #f4f4f6; }
.rc-cafe__order-label { font-size: calc(12 * var(--px)); font-weight: 500; color: #6b6b70; }
.rc-cafe__order-items { font-size: calc(16 * var(--px)); font-weight: 600; }
.rc-cafe__order-total { font-size: calc(15 * var(--px)); color: #3c3c43; }

/* Flaw 1: error code box becomes a plain headline under a warning icon */
.rc-cafe .rc-cafe__error-box {
  display: block;
  box-sizing: border-box;
  padding: calc(16 * var(--px));
  border: 1px solid #e5484d;
  border-radius: calc(12 * var(--px));
  background: #fdecec;
}
.rc-cafe__error-text { font-size: calc(18 * var(--px)); font-weight: 700; color: #b42318; }
.rc-cafe .rc-flaw__fixed.rc-cafe__declined { gap: calc(14 * var(--px)); }
.rc-cafe__icon {
  display: grid;
  place-items: center;
  width: calc(52 * var(--px));
  height: calc(52 * var(--px));
  border-radius: 50%;
  background: #fff4e5;
  color: #b54708;
  font-size: calc(24 * var(--px));
  font-weight: 700;
}
.rc-cafe__headline { font-size: calc(24 * var(--px)); font-weight: 700; line-height: 1.25; }

/* Flaw 2: "Please try again." becomes the reassurance */
.rc-cafe .rc-cafe__retry { display: block; font-size: calc(16 * var(--px)); color: #b42318; }
.rc-cafe__reassure { font-size: calc(16 * var(--px)); color: #3c3c43; }

/* Flaw 3: dead-end OK becomes two clear next steps; sits at the bottom of the phone */
.rc-cafe .rc-flaw--dead-end { margin-top: auto; }
.rc-cafe .rc-cafe__dead-end { display: flex; flex-direction: column; gap: calc(14 * var(--px)); }
.rc-cafe .rc-flaw__fixed.rc-cafe__next { gap: calc(14 * var(--px)); }
.rc-cafe__ok, .rc-cafe__primary, .rc-cafe__secondary {
  display: block;
  box-sizing: border-box;
  padding: calc(15 * var(--px)) calc(20 * var(--px));
  border-radius: calc(12 * var(--px));
  font-size: calc(16 * var(--px));
  font-weight: 600;
  text-align: center;
}
.rc-cafe__ok { background: #b42318; color: #fff; }
.rc-cafe__caption { display: block; font-size: calc(13 * var(--px)); color: #6b6b70; }
.rc-cafe__primary { background: #2f5d50; color: #fff; }
.rc-cafe__secondary { border: 1px solid #d0d0d6; color: #1b1b1f; }
.rc-cafe__link { display: block; font-size: calc(15 * var(--px)); font-weight: 600; color: #2f5d50; text-align: center; }

/* Contest line (Figma step 4): appears with the last fix */
.rc-cafe__contest { display: none; font-size: calc(16 * var(--px)); color: #3c3c43; }
.rc-cafe.is-fixed-dead-end .rc-cafe__contest { display: block; }
.rc-screen--play.rc-cafe.is-fixed-dead-end .rc-cafe__contest { animation: rc-fix-in 450ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .rc-cafe.is-fixed-dead-end .rc-cafe__contest { animation: none; } }
