@font-face {
  font-family: "Ringside Compressed";
  src: url(/fonts/Ringside-CompressedBold.ttf) format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Ringside Wide";
  src: url(/fonts/Ringside-WideSemiBold.ttf) format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Ringside Wide";
  src: url(/fonts/Ringside-WideMediumItalic.ttf) format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: block;
}
/* Canvas + HUD ported from the POC. The mosaic-stage container is sized by
   the page layout (sidebar + stage on /screen, card + stage on /me). The
   canvas fills the stage and the HUD elements absolutely-position relative
   to the stage, so nothing escapes into the cream chrome. */

.mosaic-stage {
  position: relative;
  overflow: hidden;
  /* Hard floor for short viewports (iPhone SE portrait). Without this the
     stage row can collapse to <100px when the cream card content fills the
     viewport, leaving the logo too small to read. The canvas is fully
     reactive to stage size (ResizeObserver -> onResize updates camera,
     renderer/composer/bloom, logo world width, dot/cloud density via
     canvasScaleFactor, drift amplitudes, and re-clamps in-flight heroes)
     so giving it a taller minimum just works. */
  min-height: 250px;
  background: radial-gradient(ellipse at center,
    #5a1012 0%,
    #3a0608 45%,
    #1a0303 85%,
    #0a0102 100%);
}

.mosaic-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.mosaic-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #3a0608 0%, #0a0102 100%);
  color: #f4e6d8;
  z-index: 100;
  transition: opacity 0.6s ease-out;
  letter-spacing: 2px;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

.mosaic-loading span {
  font-size: 16px;
  margin-bottom: 14px;
  text-transform: uppercase;
  opacity: 0.75;
}

.mosaic-progress-track {
  width: 280px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.mosaic-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff9080, #fff);
  transition: width 0.25s ease;
}

.mosaic-watermark {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.35;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 50;
  color: #f4e6d8;
}

.mosaic-tool-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: 1px solid rgba(244, 230, 216, 0.25);
  color: rgba(244, 230, 216, 0.55);
  font: 500 10px/1 -apple-system, "SF Mono", ui-monospace, monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 50;
  transition: color 0.15s, border-color 0.15s;
}

.mosaic-tool-btn--copy   { bottom: 36px; }
.mosaic-tool-btn--paste  { bottom: 60px; }
.mosaic-tool-btn--reset  { bottom: 84px; }

.mosaic-tool-btn:hover {
  color: rgba(255, 220, 200, 0.95);
  border-color: rgba(255, 220, 200, 0.55);
}

.mosaic-tool-btn.copied {
  color: rgba(180, 240, 180, 0.95);
  border-color: rgba(180, 240, 180, 0.55);
}

.mosaic-tool-btn.failed {
  color: rgba(255, 160, 160, 0.95);
  border-color: rgba(255, 160, 160, 0.55);
}

.mosaic-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mosaic-hud {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font: 500 10px/1.6 -apple-system, "SF Mono", ui-monospace, monospace;
  letter-spacing: 1.5px;
  color: rgba(244, 230, 216, 0.55);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 50;
}

.mosaic-hud .k { opacity: 0.55; margin-right: 6px; }
.mosaic-hud .v { color: rgba(255, 220, 200, 0.9); }
.mosaic-hud .disabled,
.mosaic-hud .disabled .k,
.mosaic-hud .disabled .v {
  color: rgba(244, 230, 216, 0.25);
  text-decoration: line-through;
}

.mosaic-speed-curve {
  position: absolute;
  bottom: 62px;
  left: 460px;
  font: 500 10px/1.6 -apple-system, "SF Mono", ui-monospace, monospace;
  letter-spacing: 1.5px;
  color: rgba(244, 230, 216, 0.55);
  text-transform: uppercase;
  z-index: 50;
}

.mosaic-speed-curve .ed-title { margin-bottom: 4px; }
.mosaic-speed-curve .ed-hint  { margin-top: 4px; opacity: 0.55; }

.mosaic-speed-curve svg {
  display: block;
  width: 160px;
  height: 160px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(244, 230, 216, 0.25);
  cursor: crosshair;
  overflow: visible;
}

.mosaic-speed-curve .ed-grid line {
  stroke: rgba(244, 230, 216, 0.08);
  stroke-width: 1;
}

.mosaic-speed-curve .ed-diag {
  stroke: rgba(244, 230, 216, 0.12);
  stroke-width: 1;
  stroke-dasharray: 2,3;
}

.mosaic-speed-curve .ed-curve {
  fill: none;
  stroke: rgba(255, 220, 200, 0.95);
  stroke-width: 1.5;
}

.mosaic-speed-curve .ed-handle {
  stroke: rgba(244, 230, 216, 0.35);
  stroke-width: 0.8;
  stroke-dasharray: 2,2;
  pointer-events: none;
}

.mosaic-speed-curve .ed-pt {
  fill: rgba(0, 0, 0, 0.5);
  stroke: rgba(255, 220, 200, 0.95);
  stroke-width: 1.25;
  cursor: grab;
}

.mosaic-speed-curve .ed-pt.selected {
  fill: rgba(255, 220, 200, 0.95);
}

.mosaic-speed-curve .ed-pt.dragging { cursor: grabbing; }

.mosaic-speed-curve .ed-hpt {
  fill: rgba(0, 0, 0, 0.6);
  stroke: rgba(255, 220, 200, 0.8);
  stroke-width: 1;
  cursor: grab;
}

.mosaic-speed-curve .ed-fixed {
  fill: none;
  stroke: rgba(244, 230, 216, 0.4);
  stroke-width: 1;
}

.mosaic-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 40px;
  box-sizing: border-box;
}

.mosaic-fallback__inner {
  max-width: 540px;
  text-align: left;
}

.mosaic-fallback__headline {
  font-family: "Ringside Compressed", "Arial Narrow", "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 22px;
  text-transform: uppercase;
  color: #f4e6d8;
}

.mosaic-fallback__body {
  font-family: "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 14px;
  color: rgba(244, 230, 216, 0.85);
}

.mosaic-fallback__list {
  font-family: "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
  padding-left: 22px;
  color: rgba(244, 230, 216, 0.85);
}

.mosaic-fallback__list li {
  margin-bottom: 10px;
}

.mosaic-fallback__list strong {
  color: #f4e6d8;
  font-weight: 700;
}

@media (max-width: 879px) {
  .mosaic-fallback {
    padding: 28px 24px;
  }
  .mosaic-fallback__headline {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .mosaic-fallback__body,
  .mosaic-fallback__list {
    font-size: 15px;
  }
}
body.profile-page {
  margin: 0;
  /* Cream so iOS Safari samples this for the bottom URL-pill background;
     the red canvas area is rendered by .mosaic-stage's own dark-red bg
     plus the WebGL clear color. */
  background: var(--lilly-cream);
  color: var(--lilly-ink);
  font-family: "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-areas: "stage" "card";
  /* Stage track has a 250px floor so the canvas stays legible on short
     viewports (iPhone SE portrait, dvh ~553px). Card track is allowed to
     shrink below its content (minmax(0, auto)) so the stage minimum wins
     when total content exceeds the viewport; .profile__card then scrolls
     internally via overflow-y: auto. */
  grid-template-rows: minmax(250px, 1fr) minmax(0, auto);
  grid-auto-rows: 0;
}

body.profile-page > .mosaic-stage  { grid-area: stage; }
body.profile-page > .profile__card { grid-area: card; }

.profile__card {
  background: var(--lilly-cream);
  color: var(--lilly-ink);
  /* Top padding can be tight on mobile because the cream-on-red transition
     between the canvas and the card is its own visual break. Bottom uses the
     ios safe-area inset so the card hugs the bottom of the viewport with no
     dead space above the url-bar pill. */
  padding: 20px 28px max(8px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 10;
  box-sizing: border-box;
  /* On short mobile viewports the stage track keeps its 250px minimum and
     the card track is forced to shrink below its content (see body.profile-page
     grid above). min-height: 0 lets the flex item collapse inside that
     shrunken track; overflow-y: auto exposes its content via internal scroll.
     On desktop (>=880px) the card has min-height: 100dvh in a 1fr row, so
     this is a no-op — overflow-y only renders a scrollbar when needed. */
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.profile__hello {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}

.profile__headline {
  font-family: "Ringside Compressed", "Arial Narrow", "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--lilly-red);
  font-size: 45px !important;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.profile__copy {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 18px;
}

.profile__cta {
  align-self: center;
  background: var(--lilly-red);
  color: #fff;
  border: 0;
  border-radius: 16px;
  padding: 18px 25px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 200ms ease, transform 100ms ease;
}

.profile__cta:hover { background: #b71f17; }
.profile__cta:active { transform: translateY(1px); }
.profile__cta:disabled {
  cursor: default;
  transform: none;
  opacity: 0.7;
}

.profile__cta--opted {
  background: #2a8a3a;
}
.profile__cta--opted:hover { background: #257a33; }

.profile__legal {
  font-size: 12px;
  color: #555;
  margin-top: 14px;
  margin-bottom: 0;
  text-align: center;
  /* Always one line. The card has 28px side padding for the rest of the
     content; pulling the legal -20px on each side leaves an 8px gutter to
     the screen edge while keeping the rest of the layout untouched. The
     max-lines stimulus controller (count=1) shrinks the font-size if the
     text still overflows. */
  white-space: nowrap;
  margin-left: -20px;
  margin-right: -20px;
}

@media (min-width: 880px) {
  body.profile-page {
    grid-template-areas: "card stage";
    grid-template-rows: 1fr;
    grid-template-columns: minmax(0, 460px) 1fr;
  }

  .profile__card {
    max-height: none;
    min-height: 100dvh;
    padding: 50px;
    justify-content: center;
    position: relative;
  }

  .profile__hello {
    font-size: 20px;
  }

  .profile__hello {
    font-size: 20px;
  }

  .profile__headline {
    font-size: 41px !important;
    padding: 2px 0 5px;
  }

  .profile__copy {
    font-size: 20px;
  }

  .profile__cta {
    padding: 14px 43px;
  }

  /* Pulled out of the flex flow so the rest of the content vertically
     centers without legal pulling it up. Pinned to the bottom of the card,
     where margin-top: auto used to land it. */
  .profile__legal {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 32px;
    margin: 0;
  }
}
:root {
  --lilly-red: #E1251B;
  --lilly-cream: #FFF0D8;
  --lilly-ink: #111;
}

body.screen-page {
  margin: 0;
  background: var(--lilly-red);
  color: var(--lilly-cream);
  font-family: "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-areas: "sidebar stage";
  grid-template-columns: 580px 1fr;
  grid-template-rows: 1fr;
  grid-auto-rows: 0;
}

body.screen-page > .mosaic-stage { grid-area: stage; }
body.screen-page > .screen__sidebar { grid-area: sidebar; }

/* Full-bleed variant: /full renders just the mosaic with no sidebar. */
body.screen-page--full {
  grid-template-areas: "stage";
  grid-template-columns: 1fr;
}

.screen__sidebar {
  background: var(--lilly-cream);
  color: var(--lilly-ink);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
  box-sizing: border-box;
  overflow: auto;
}

.screen__title {
  font-family: "Ringside Compressed", "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 100px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--lilly-red);
  margin: 0 0 48px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.screen__cta {
  font-family: "Ringside Wide", "Helvetica Neue", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 0 0 64px;
  color: var(--lilly-ink);
  text-transform: uppercase;
  text-align: center;
}

.screen__qr {
  background: #fff;
  padding: 16px;
  width: 360px;
  align-self: center;
}

.screen__qr img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobile: stack the canvas above and the cream sidebar below as a card,
   mirroring the profile page layout. The QR is hidden on phones since the
   user is on the device that would scan it. */
@media (max-width: 880px) {
  body.screen-page {
    grid-template-areas: "stage" "sidebar";
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .screen__sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    max-height: 35vh;
    max-height: 35dvh;
  }

  .screen__title {
    font-size: 36px;
    margin: 0;
    flex: 1 1 auto;
  }

  .screen__cta {
    font-size: 14px;
    margin: 0;
    flex: 0 0 auto;
    text-align: right;
  }

  .screen__qr {
    display: none;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
