@font-face {
  font-family: "Seans Sans";
  src: url("/assets/shared/fonts/ubuntu-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Seans Sans";
  src: url("/assets/shared/fonts/ubuntu-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Seans Sans";
  src: url("/assets/shared/fonts/ubuntu-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Seans Sans", Arial, sans-serif;
  color: #f2f1ee;
  background: #090909;
  --film-bg: #090909;
  --film-surface: #111;
  --film-surface-2: #161616;
  --film-ink: #f2f1ee;
  --film-muted: #aaa7a3;
  --film-faint: #696663;
  --film-rule: rgb(255 255 255 / 9%);
  --film-accent: #e84d3a;
  --film-accent-hover: #f35a45;
  --sim-overlay: rgb(0 0 0 / 80%);
}

body {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--film-bg);
}

.film-header {
  flex: 0 0 72px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.film-header-inner {
  display: flex;
  width: min(1180px, calc(100% - 64px));
  min-height: 72px;
  align-items: center;
  margin-inline: auto;
}

.film-brand {
  width: 110px;
  padding-left: 13px;
  border-left: 4px solid var(--film-accent);
  color: var(--film-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 26px;
}

.film-page {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 42px 32px 64px;
}

.film-state {
  max-width: 460px;
  margin: auto;
  color: var(--film-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.film-stage {
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
}

.film-ambient {
  position: fixed;
  z-index: -1;
  top: -15vh;
  left: -10vw;
  width: 120vw;
  height: 130vh;
  object-fit: cover;
  opacity: .52;
  filter: blur(94px) saturate(1.45) brightness(.72);
  transform: scale(1.08);
  pointer-events: none;
}

.film-invite {
  position: relative;
  display: grid;
  min-height: min(680px, calc(100dvh - 178px));
  overflow: hidden;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border: 1px solid var(--film-rule);
  border-radius: 14px;
  background: var(--film-surface);
  box-shadow:
    0 28px 56px -30px rgb(0 0 0 / 80%),
    0 0 0 1px rgb(255 255 255 / 2%);
}

.film-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--film-surface-2);
}

.film-backdrop::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 34%,
    rgb(13 13 14 / 24%) 50%,
    rgb(13 13 14 / 88%) 76%,
    #0d0d0e 100%
  );
  content: "";
}

.film-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.film-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  grid-column: 7 / -1;
  flex-direction: column;
  padding: 40px 42px 34px;
  border-left: 1px solid rgb(255 255 255 / 6%);
  background: rgb(13 13 14 / 84%);
}

/* deslop-ignore-next-line 10 -- one factual source label, not a repeated heading pattern */
.invite-kicker {
  margin: 0 0 14px;
  color: var(--film-faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.inviter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inviter-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 12%);
  /* deslop-ignore-next-line 19 -- a circular avatar is the intended image shape */
  border-radius: 50%;
  color: var(--film-ink);
  background: var(--film-surface-2);
  font-size: 14px;
  font-weight: 500;
}

.inviter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inviter-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  color: var(--film-muted);
  font-size: 13px;
  line-height: 1.2;
}

.inviter-person strong {
  overflow: hidden;
  color: var(--film-ink);
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inviter-username {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: var(--film-faint);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.film-intro {
  margin-block: auto;
  padding-block: 56px;
}

.film-copy h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--film-ink);
  font-size: clamp(50px, 4.6vw, 64px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .95;
  overflow-wrap: normal;
}

.film-meta {
  margin: 16px 0 0;
  color: var(--film-muted);
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.4;
}

.film-session {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--film-muted);
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.4;
}

.film-session .session-icon { font-size: 15px; line-height: 1; }

.film-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 0;
  color: var(--film-faint);
  font-size: 12px;
  line-height: 1;
}

.film-rating strong {
  color: var(--film-ink);
  font-size: 18px;
  font-weight: 500;
}

.rating-star {
  color: var(--film-accent);
  font-size: 15px;
}

.invite-actions {
  padding-top: 24px;
}

.accept-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 1px solid var(--film-accent);
  border-radius: 6px;
  color: #fff;
  background: var(--film-accent);
  font-weight: 500;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button-arrow {
  font-size: 21px;
  line-height: 1;
  transition: transform 180ms ease;
}

.accept-button:hover {
  transform: translateY(-1px);
  border-color: var(--film-accent-hover);
  background: var(--film-accent-hover);
  box-shadow: 0 8px 22px rgb(232 77 58 / 18%);
}

.accept-button:hover .button-arrow {
  transform: translateX(3px);
}

.accept-button:focus-visible {
  outline: 2px solid var(--film-ink);
  outline-offset: 3px;
}

.accept-button:disabled {
  cursor: default;
  transform: none;
  color: #c5c2bd;
  border-color: #343333;
  background: #242424;
  box-shadow: none;
}

.accept-note,
.accepted {
  margin: 10px 0 0;
  color: var(--film-faint);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.accepted {
  color: var(--film-muted);
}

.test-auth-backdrop {
  backdrop-filter: none;
}

.test-auth-card {
  box-shadow: 0 8px 24px rgb(0 0 0 / 28%);
}

@media (max-width: 900px) {
  .film-header {
    flex-basis: 64px;
  }

  .film-header-inner {
    width: calc(100% - 32px);
    min-height: 64px;
  }

  .film-page {
    align-items: flex-start;
    padding: 22px 16px 44px;
  }

  .film-ambient {
    top: -10vh;
    left: -35vw;
    width: 170vw;
    height: 125vh;
    opacity: .46;
    filter: blur(68px) saturate(1.4) brightness(.68);
  }

  .film-invite {
    display: block;
    min-height: 0;
    border-radius: 12px;
  }

  .film-backdrop {
    position: relative;
    aspect-ratio: 16 / 10;
  }

  .film-backdrop::after {
    background: linear-gradient(0deg, #111 0%, transparent 30%);
  }

  .film-copy {
    padding: 30px 28px 28px;
    border-top: 1px solid rgb(255 255 255 / 6%);
    border-left: 0;
    background: var(--film-surface);
  }

  .film-intro {
    padding-block: 48px;
  }

  .film-copy h1 {
    font-size: clamp(46px, 10vw, 62px);
  }

}

@media (max-width: 430px) {
  .film-brand {
    width: 104px;
    font-size: 15px;
  }

  .film-page {
    padding-inline: 12px;
  }

  .film-backdrop {
    aspect-ratio: 4 / 3;
  }

  .film-copy {
    padding: 25px 20px 22px;
  }

  .film-intro {
    padding-block: 42px;
  }

  .film-copy h1 {
    max-width: 8ch;
    font-size: clamp(42px, 13vw, 54px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .accept-button,
  .button-arrow {
    transition: none;
  }
}
