/* Share V2 — a piece of the Mr Bite app on the web. Every rule below is a
   translation of the app's own StyleSheet (file named next to it), with the
   app's tokens from design-system/tokens.ts. Not a separate web design. */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/Manrope_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
/* The app's icon font (Ionicons, MIT). */
@font-face {
  font-family: 'Ionicons';
  src: url('/fonts/Ionicons.ttf') format('truetype');
  font-display: block;
}

:root {
  --cream: #faf4e9;
  --cream2: #f6eddb;
  --green: #1e4b34;
  --green-dark: #123423;
  --green-bright: #5eba89;
  --orange: #f3861d;
  --ink: #26241f;
  --muted: #8b8272;
  --score-bite: #3e9c6e;
  --white: #ffffff;
  --on-green: rgba(255, 255, 255, 0.88);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.ion {
  font-family: 'Ionicons';
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  speak: never;
}

/* RestaurantProfileScreen content: paddingHorizontal 22, safe areas. */
.page {
  max-width: 430px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
}

/* ---------- ScoreCard (features/restaurant/ScoreCard.tsx) ---------- */

/* RestaurantProfileScreen: the thumbs-up mascot peeks in at the card's top
   right (.rp-top-mascot: right 2px of the screen, height 172, above the card). */
.stage {
  position: relative;
  padding-top: 18px;
}

.peek-mascot {
  position: absolute;
  top: 4px;
  right: -20px;
  height: 172px;
  width: auto;
  z-index: 3;
  pointer-events: none;
}

.score-card {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 14px 22px;
  color: var(--white);
}

/* The organic dark-green blob, BLEED 24 beyond the card box. */
.bubble {
  position: absolute;
  top: -24px;
  left: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  z-index: -1;
}

.name {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.name-first {
  color: var(--white);
}

.name-rest {
  color: var(--orange);
}

.verified {
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 7.5px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--white);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-green);
}

.meta-row .ion {
  font-size: 14px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 11px 0 12px;
}

.no-score {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 4px 0;
}

.score-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vdivider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.18);
}

.score-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overall-label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
}

.overall-row {
  display: flex;
  align-items: flex-start;
  margin-top: 4px;
}

.overall-score {
  display: block;
}

.sparkle {
  margin-top: 6px;
  margin-left: 2px;
  font-size: 14px;
  color: var(--white);
}

.based-on {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-green);
}

.ta-pill {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.ta-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-bright);
}

.ta-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-green);
}

/* ---------- ScoreRings (features/restaurant/ScoreRings.tsx) ---------- */

.rings {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ring-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ring {
  position: relative;
  width: 38px;
  height: 38px;
}

.ring svg {
  display: block;
}

.ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
}

.ring-label {
  font-size: 10.5px;
  font-weight: 700;
}

/* ---------- ScoreDigits (design-system/ScoreBadge.tsx): drawn dot ---------- */

.digits {
  display: inline-flex;
  align-items: flex-end;
  font-weight: 800;
}

.digits .dot {
  display: block;
  border-radius: 50%;
  background: currentColor;
}

.digits--ring {
  font-size: 10.5px;
  line-height: 12px;
  color: var(--white);
}

.digits--ring .dot {
  width: 2px;
  height: 2px;
  margin: 0 1px 3px;
}

.digits--ta,
.digits--badge-ta {
  font-size: 15px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.digits--badge-di {
  font-size: 15px;
  line-height: 17.25px;
  color: var(--score-bite);
}

.digits--badge-ta {
  line-height: 17.25px;
}

.digits--ta .dot,
.digits--badge-di .dot,
.digits--badge-ta .dot {
  width: 4px;
  height: 4px;
  margin: 0 2px 5px;
}

/* ---------- Tagline (RestaurantProfileScreen taglineWrap) ---------- */

.tagline {
  margin: 16px 0;
  text-align: center;
  font-family: 'Chalkboard SE', 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.tagline-dont {
  color: var(--green);
}

.tagline-watch {
  color: var(--orange);
}

/* ---------- Hero film frame (HeroBite + BiteThumbnailOverlay "hero") ---------- */

.film {
  position: relative;
  width: 100%;
  /* hero-reel.webp's own ratio 881/538, 22 % shorter (HERO_HEIGHT_SCALE). */
  aspect-ratio: 2.0996;
  margin: 2px 0 12px;
}

/* WINDOW_INSET.hero */
.film-window {
  position: absolute;
  left: 7.5%;
  top: 3.73%;
  right: 7.5%;
  bottom: 4.71%;
  overflow: hidden;
  background: var(--muted);
}

.still {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The filmstrip art over everything, stretched like the app's. */
.film-reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.badge {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge-tag {
  font-size: 10px;
  line-height: 11px;
  font-weight: 700;
  color: var(--white);
}

/* A review-only Bite: FeedCard's cream ENBART BETYG canvas with the mascot
   holding the score sign, inside the same frame. */
.film-window--cream {
  background: var(--cream2);
}

.enbart {
  position: absolute;
  top: 9%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Chalkboard SE', 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.enbart-a {
  color: var(--green-dark);
}

.enbart-b {
  color: var(--orange);
}

.sign-mascot {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  height: 70%;
  aspect-ratio: 400 / 600;
}

.sign-mascot img {
  height: 100%;
  width: 100%;
}

/* FeedCard mascotScoreWrap: centred on the sign at 15.98 % from the top. */
.sign-score {
  position: absolute;
  top: 15.98%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

/* ---------- Bite page ---------- */

/* The card comes first, as on the restaurant page (whose .stage adds 18px
   for the peeking mascot); the film frame keeps its own margins below. */
.score-card--bite {
  margin-top: 6px;
}

/* ---------- message pages (Finns inte längre / Kunde inte laddas) ---------- */

.page--message {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.message-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.message-text {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--on-green);
}

/* ---------- App button (design-system/Button.tsx geometry, Mr Bite orange) ---------- */

.cta {
  display: block;
  margin-top: 26px;
  padding: 13px 18px;
  border-radius: 17px;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  box-shadow: 0 6px 16px rgba(243, 134, 29, 0.25);
}

/* Download page: the text keeps clear of the peeking Mr Bite on the right. */
.score-card--downloads {
  padding-right: 128px;
}

/* Download page: two store buttons stack closer than a lone one. */
.cta + .cta {
  margin-top: 12px;
}

/* ---------- Closing under the Hero ---------- */

/* The Hero as a link: the frame keeps its own box and look. */
.film-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.closing {
  margin: 22px 0 4px;
  text-align: center;
}

/* Same two-tone voice as the tagline above, in the card's heavy Manrope. */
.closing-title {
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.closing-dont {
  color: var(--green-dark);
}

.closing-bite {
  color: var(--orange);
}

.closing-text {
  max-width: 300px;
  margin: 8px auto 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}

/* The big orange call to action at the very end of the page. */
.closing .cta {
  margin-top: 20px;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 800;
}

/* Wider screens: the same phone column, centred — it is a piece of the app. */
@media (min-width: 700px) {
  .page {
    padding-top: 56px;
  }
}
