/* Game surfaces. Self-contained palette so they render the same in the
   listener shell and the owner's dark shell. */

.game-card {
  --g-ink: #fff;
  --g-soft: rgba(255, 255, 255, .78);
  --g-face: rgba(255, 255, 255, .22);
  --g-face-2: rgba(255, 255, 255, .38);
}

.game-readout { text-align: center; margin-top: 16px; }
.game-readout .big {
  font-size: 46px;
  font-weight: 900;
  color: var(--g-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.game-readout .small { color: var(--g-soft); font-weight: 600; font-size: 14px; margin-top: 4px; }

.game-progress {
  display: flex;
  justify-content: space-between;
  color: var(--g-ink);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 12px;
}

/* -------------------------------------------------------------- mantra */

.mantra-line {
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  color: var(--g-ink);
  line-height: 1.35;
  padding: 18px 10px 22px;
  min-height: 96px;
}
.mantra-input {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  background: var(--g-face);
  color: var(--g-ink);
}
.mantra-input::placeholder { color: var(--g-soft); }
.mantra-input:focus { outline: none; background: var(--g-face-2); }

/* -------------------------------------------------------------- cascade */

.cascade-field {
  position: relative;
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: #050104;
  touch-action: manipulation;
}
.cascade-spiral {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;   /* taps must reach the words, not the backdrop */
}
.cs-word {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 17px;
  font-weight: 800;
  background: #fff;
  color: #b3305d;
  cursor: pointer;
  white-space: nowrap;
  /* A dark ring plus a hard shadow: the pills have to stay findable against a
     bright, fast, high-contrast backdrop, not a flat panel. */
  border: 2px solid rgba(28, 4, 16, .85);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 0 16px rgba(0, 0, 0, .6);
}
.cs-word.hit-good { transform: scale(1.35); opacity: 0; transition: all .2s; }

/* Owner-side editor lives in the dark shell. */
#main textarea { font-family: inherit; resize: vertical; }

/* -------------------------------------------------------------- video */

.video-el {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 14px;
  outline: none;
}
/* Marks a video tile apart from an audio one in the owner's grid. */
.video-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 5px;
}

/* --------------------------------------------------------------- tasks */

.bc-track.task { align-items: start; }
.bc-track.task .idx { font-size: 19px; }
.bc-track.task .note {
  margin-top: 5px;
  opacity: .85;
  white-space: pre-wrap;
}
.bc-track.task.is-done .t { text-decoration: line-through; opacity: .6; }
.bc-track .tick {
  border: none;
  background: rgba(255, 255, 255, .55);
  color: #7a1440;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.bc-track .tick:hover { background: #fff; }
body.listener.night .bc-track .tick { background: rgba(255, 255, 255, .18); color: var(--bc-ink); }

/* ------------------------------------------------------------ sigil icon */

.sigil {
  width: 40px;
  height: 40px;
  display: block;
  /* The spiral reads as a spiral even at 30px; the lettering does not, which
     is fine — it's a mark, not a label. */
  transition: transform .5s ease, opacity .2s;
  opacity: .92;
}
#theme-toggle { padding: 0; line-height: 0; }
#theme-toggle:hover .sigil { transform: rotate(180deg); opacity: 1; }
/* Night mode winds it the other way, so the toggle reads as two states. */
body.listener.night .sigil { transform: rotate(-180deg); opacity: .8; }
body.listener.night #theme-toggle:hover .sigil { transform: rotate(0deg); opacity: 1; }

/* --------------------------------------------------------------- contract */

.pdf-frame {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border: none;
  border-radius: 12px;
  background: #fff;
}
