/* Each animated app screen's own pieces (website/scenes.ts). Shared pieces are in scenes.css. */
/* Search */
.s-field {
  display: flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.6em;
  padding: 0.5em 0.8em;
  border: 1px solid var(--fieldBorder);
  border-radius: 0.8em;
  background: var(--surface);
}

.s-glass {
  width: 0.8em;
  height: 0.8em;
  border: 0.15em solid var(--muted);
  border-radius: 50%;
}

.s-typed {
  white-space: nowrap;
}

.s-results {
  display: grid;
  gap: 0.5em;
  margin: 0.8em 0 0;
  padding: 0;
  list-style: none;
}

.s-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.5em 0.6em;
  border: 1px solid var(--line);
  border-radius: 0.9em;
  background: var(--paper);
}

.s-add {
  position: relative;
  flex-shrink: 0;
  padding: 0.4em 0.8em;
  border-radius: 1em;
  background: var(--pink);
  color: var(--accent);
  font-size: 0.8em;
  font-weight: 600;
}

/* Review */
.s-stars {
  display: flex;
  gap: 0.15em;
  color: var(--star);
  font-size: 1.7em;
  line-height: 1;
}

.s-star {
  display: inline-block;
}

.s-rating {
  margin-top: 0.3em !important;
  color: var(--accent);
  font-weight: 600;
}

.s-save {
  margin-top: 0.8em;
}

/* Memories */
.s-anniversary {
  position: relative;
  margin-top: 0.9em;
  padding: 0.9em;
  border-radius: 1.2em;
  background: var(--peach);
}

.s-kicker {
  margin-bottom: 0.6em !important;
  color: var(--accent);
  font-size: 0.85em;
  font-weight: 600;
}

.s-quote {
  margin-top: 0.7em !important;
  font-style: italic;
  font-size: 0.95em;
}

.s-heart {
  position: absolute;
  top: 0.6em;
  right: 0.9em;
  color: var(--recording);
  font-size: 1.2em;
}

/* 2. Reading: the note button and the saved quote */
.s-note-button {
  position: relative;
  margin-top: 0.9em;
}

.s-note {
  margin-top: 0.8em;
  padding: 0.8em 0.9em;
  border-left: 0.25em solid var(--apricot);
  border-radius: 0.6em;
  background: var(--paper);
}

.s-saved-quote .s-small {
  margin-top: 0.4em;
}

/* 3. Character map: names in bubbles, lines drawn between them, the kind of link on each line */
.s-map {
  position: relative;
  height: 19em;
  margin-top: 1.4em;
}

.s-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.s-map line {
  stroke: var(--fieldBorder);
  stroke-width: 2;
  stroke-dasharray: 100;
  vector-effect: non-scaling-stroke;
}

.s-node,
.s-link {
  position: absolute;
  /* "translate" (not "transform") centers them, so the fade-in and pop moves can use transform freely. */
  translate: -50% -50%;
  text-align: center;
}

.s-node {
  padding: 0.5em 0.8em;
  border: 2px solid var(--accent);
  border-radius: 1em;
  background: var(--surface);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  white-space: nowrap;
}

/* Elizabeth and Jane on top, Darcy and Bingley below them. */
.s-n1 {
  left: 24%;
  top: 20%;
}

.s-n2 {
  left: 24%;
  top: 80%;
}

.s-n3 {
  left: 76%;
  top: 20%;
}

.s-n4 {
  left: 76%;
  top: 80%;
}

/* Long labels wrap, and sit on the long lines or just outside the short ones, never on a name. */
.s-link {
  max-width: 7.5em;
  padding: 0.2em 0.5em;
  border-radius: 0.6em;
  background: var(--pink);
  color: var(--accent);
  font-size: 0.7em;
  font-weight: 600;
  line-height: 1.2;
}

.s-k1 {
  left: 24%;
  top: 50%;
}

.s-k2 {
  left: 50%;
  top: 7%;
}

.s-k3 {
  left: 76%;
  top: 50%;
}

.s-k4 {
  left: 50%;
  top: 93%;
}

/* 4. Review: rating characters */
.s-trait {
  margin-top: 0.5em;
}

.s-bar {
  display: block;
  height: 0.45em;
  margin-top: 0.3em;
  border-radius: 1em;
  background: var(--pink);
}

.s-bar-fill {
  display: block;
  height: 100%;
  border-radius: 1em;
  background: var(--star);
  transform-origin: left;
}

.s-b1 {
  width: 92%;
}

.s-b2 {
  width: 74%;
}
