/* Scene 4 — No One Goes Hungry. Sam's Kitchen + the event wallet. */

.fd .scene-bg { opacity: .22; }
.fd .scene-scrim {
  background: radial-gradient(85% 65% at 82% 40%, rgba(228, 193, 105, .16) 0%, transparent 60%),
              linear-gradient(180deg, #100E09 0%, #0B0C0A 100%);
}

.fd-inner {
  display: grid;
  grid-template-columns: .92fr 1.18fr;
  gap: clamp(22px, 3.6vw, 70px);
  align-items: center;
}

.fd-left { max-width: 42ch; }

/* ------------------------------------------------------------- partner card */
.fd-partner { padding: clamp(12px, 1.2vw, 22px); }
.fd-partner-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 20px);
}
.fd-logo-frame {
  flex: 0 0 auto;
  width: clamp(56px, 5.6vw, 96px);
  aspect-ratio: 1;
  background: var(--paper);
  border-radius: var(--r);
  padding: 10%;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.fd-logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.fd-rep {
  margin-top: .7em;
  padding-top: .7em;
  border-top: 1px solid var(--line);
  font-size: clamp(13px, .9vw, 16px);
}
.fd-rep-name { font-weight: 700; color: var(--gold-hi); }
.fd-rep-role { color: var(--paper-faint); margin-left: .4em; }

.fd-callout { border-left: 2px solid rgba(228, 193, 105, .5); padding-left: .8em; }

/* --------------------------------------------------------------- the stage */
.fd-right { min-width: 0; }
.fd-stage { position: relative; min-height: clamp(300px, 44vh, 540px); }
.fd-panel { width: 100%; }

/* ------------------------------------------------------------------- hero */
.fd-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  max-height: 46vh;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  border: 1px solid var(--line-2);
}
.fd-hero-img { width: 100%; height: 100%; object-fit: cover; }
.fd-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 12, 10, .85) 100%);
}
.fd-hero-caption { position: absolute; left: clamp(14px, 1.4vw, 26px); bottom: clamp(14px, 1.4vw, 26px); }

/* -------------------------------------------------------------- order grid */
.fd-order-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(16px, 2vw, 34px);
  align-items: start;
}

.fd-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(110px, 10.5vw, 160px), 1fr));
  gap: clamp(9px, .9vw, 16px);
  margin-top: .85em;
}
/* while a dish is parading, everything else steps back so the food is the
   only thing on stage */
.fd.is-parading .fd-left,
.fd.is-parading .fd-menu-head {
  opacity: .28;
  transition: opacity .4s var(--t);
}
.fd.is-parading .fd-menu-grid { overflow: visible; }
.fd.is-parading .fd-dish {
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
  border-color: rgba(228, 193, 105, .45);
}

.fd-dish {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
  transition: transform .4s var(--t), border-color .4s var(--t), box-shadow .4s var(--t), background .4s var(--t);
}
.fd-dish-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fd-dish-name {
  padding: .55em .65em 0;
  font-size: clamp(13px, .82vw, 14px);
  font-weight: 650;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fd-dish-price { padding: .2em .65em .6em; font-size: clamp(13px, .74vw, 17px); color: var(--gold-hi); font-weight: 600; }
.fd-dish.is-picked {
  border-color: rgba(228, 193, 105, .65);
  background: rgba(228, 193, 105, .08);
  box-shadow: 0 0 0 2px rgba(228, 193, 105, .22), 0 16px 32px rgba(0, 0, 0, .4);
  transform: translateY(-4px);
}

.fd-ticket { min-width: 0; }
.fd-ticket-rows { min-height: 1.6em; }
.fd-ticket-rows .receipt-row { animation: fdRowIn .55s var(--t) both; }
@keyframes fdRowIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}
.fd-empty { font-size: clamp(13px, .88vw, 15px); color: var(--paper-faint); padding: .4em 0; }

/* ------------------------------------------------------------------- POS */
.fd-pos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 22px);
  text-align: center;
}
.fd-pos-strip,
.fd-pos-balance {
  width: 100%;
  max-width: clamp(270px, 25vw, 400px);
}
.fd-pos-strip { display: flex; flex-direction: column; gap: .28em; }
.fd-pos-name { font-size: clamp(15px, 1.3vw, 24px); font-weight: 750; }
.fd-pos-meta { font-size: clamp(13px, .85vw, 15px); color: var(--paper-faint); letter-spacing: .04em; }
.fd-pos-strip-balance {
  margin-top: .4em;
  padding-top: .4em;
  border-top: 1px dashed var(--line);
  font-size: clamp(13px, .88vw, 15px);
  color: var(--gold-hi);
}
.fd-pos-balance { text-align: center; }
.fd-pos-sub { margin-top: .3em; font-size: clamp(13px, .85vw, 15px); color: var(--paper-dim); }

/* --------------------------------------------------------- independence */
.fd-indep { max-width: 640px; margin: 0 auto; text-align: left; }
.fd-indep-flags { margin-bottom: .9em; }
.fd-rail-slot { margin-top: .3em; }

/* -------------------------------------------------------------- inquiry */
.fd-inquiry { max-width: 480px; margin: 0 auto; text-align: center; }
.fd-inquiry-sub { margin-top: .3em; font-size: clamp(13px, .85vw, 15px); color: var(--paper-faint); }
.fd-inquiry-hr { margin: 1em 0; }
.fd-inquiry-rows { text-align: left; }

/* ------------------------------------------------------------- combined */
.fd-combined { max-width: 620px; margin: 0 auto; }
.fd-combined-contributors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(10px, 1vw, 18px);
  margin: .9em 0;
}
.fd-contributor {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: clamp(10px, 1vw, 18px);
  text-align: center;
  display: grid;
  gap: .4em;
  justify-items: center;
}
.fd-contributor-name { font-weight: 700; font-size: clamp(13px, .95vw, 17px); }
.fd-contributor-amount { color: var(--gold-hi); font-size: clamp(15px, 1.15vw, 22px); font-weight: 800; }
.fd-note { font-size: clamp(13px, .8vw, 17px); color: var(--paper-faint); font-style: italic; margin-top: .7em; max-width: 56ch; }

/* -------------------------------------------------------------- success */
.fd-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.4vh, 18px);
  text-align: center;
}
.fd-success-check {
  width: clamp(60px, 6.4vw, 104px);
  height: clamp(60px, 6.4vw, 104px);
  border-radius: 50%;
  background: rgba(143, 168, 106, .15);
  border: 1px solid rgba(143, 168, 106, .55);
  display: grid;
  place-items: center;
  color: var(--green-hi);
}
.fd-success-summary { font-size: clamp(13px, .95vw, 17px); color: var(--paper-dim); }
.fd-success-total { color: var(--gold-hi); }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 1100px) {
  .fd-inner { grid-template-columns: 1fr; }
  .fd-order-grid { grid-template-columns: 1fr; }
  .fd-hero { max-height: 32vh; }
}
