.sfft-cosmos {
  --ink: #f7f1e4;
  --bg: #070414;
  --panel: #140c28;
  --gold: #f0c35a;
  --line: #5c3d8a;
  --muted: #c9b8e6;
  box-sizing: border-box;
  max-width: 68rem;
  margin: 1rem auto;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  line-height: 1.45;
}
.sfft-cosmos *,
.sfft-cosmos *::before,
.sfft-cosmos *::after { box-sizing: border-box; }
.sfft-titlecard { position: relative; background: #000; }
.sfft-painting { display: block; width: 100%; height: auto; }
.sfft-hit {
  position: absolute;
  top: 86%;
  height: 12%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sfft-hit-begin { left: 5%; width: 30%; }
.sfft-hit-lang { left: 36%; width: 24%; }
.sfft-hit-med { left: 62%; width: 30%; }
.sfft-hit:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.sfft-resume {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  font: inherit;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--gold);
  padding: 0.25rem 0.8rem;
  cursor: pointer;
}
.sfft-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}
.sfft-veil-box {
  width: min(100%, 42rem);
  max-height: 100%;
  overflow: auto;
  padding: 1rem;
  background: rgba(7, 4, 20, 0.92);
  border: 1px solid var(--gold);
}
.sfft-veil-head, .sfft-actions, .sfft-slots, .sfft-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
}
.sfft-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); justify-content: stretch; }
.sfft-center { text-align: center; }
.sfft-om { margin: 0; color: var(--gold); font-size: 2.4rem; }
.sfft-play { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 1rem; padding: 1rem; }
.sfft-kicker { margin: 0; color: var(--gold); font-variant: small-caps; letter-spacing: 0.06em; }
.sfft-title { margin: 0.2rem 0 0.6rem; font-size: 1.7rem; line-height: 1.1; color: var(--gold); }
.sfft-copy, .sfft-note, .sfft-stat, .sfft-line, .sfft-gunas { margin: 0.35rem 0; }
.sfft-gunas { color: var(--gold); }
.sfft-note, .sfft-system { color: var(--muted); }
.sfft-line.sfft-title { color: var(--gold); font-size: 1.25rem; }
.sfft-player { color: var(--gold); }
.sfft-lang, .sfft-cmd, .sfft-send, .sfft-mini {
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 2.6rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  text-align: start;
}
.sfft-lang.is-on, .sfft-send { background: var(--gold); color: #140c28; border-color: var(--gold); }
.sfft-vista { width: 100%; height: auto; max-height: 26vh; display: block; background: #070414; border: 1px solid var(--line); }
.sfft-log { max-height: 28rem; overflow: auto; padding-right: 0.3rem; }
.sfft-form { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.sfft-input {
  flex: 1;
  min-width: 0;
  min-height: 2.6rem;
  font: inherit;
  color: var(--ink);
  background: #070414;
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
}
.sfft-side { border-top: 1px solid var(--line); padding-top: 0.6rem; }
.sfft-item { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin: 0.35rem 0; }
.sfft-mini { min-height: 2.2rem; }
@media (max-width: 760px) {
  .sfft-play { grid-template-columns: 1fr; }
  .sfft-log { max-height: 22rem; }
}
