@font-face {
  font-family: 'Air';
  src: url(/fonts/PPAirSans-Variable.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  src: url(/fonts/AtkinsonHyperlegibleMono-latin.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #2e3440;
  --card: #3b4252;
  --raised: #434c5e;
  --line: #4c566a;
  --fg: #e5e9f0;
  --muted: #aeb6c4;
  --dim: #8a96ad;
  --navoff: #9aa5b8;
  --accent: #88c0d0;
  --gold: #ebcb8b;
  --ko: #d08770;
  --ok: #a3be8c;
  --blue: #81a1c1;
  --purple: #b48ead;
  --teal: #8fbcbb;
  --ink: #2e3440;
  --sans: 'Air', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Atkinson Hyperlegible Mono', ui-monospace, 'SF Mono', monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#app {
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) {
  #app {
    border-inline: 1px solid var(--card);
  }
}
#main {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.view {
  padding: 16px max(16px, env(safe-area-inset-right)) 24px
    max(16px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

#nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 72px;
  flex-shrink: 0;
  border-top: 1px solid var(--raised);
  padding-inline: max(8px, env(safe-area-inset-left))
    max(8px, env(safe-area-inset-right));
  padding-bottom: env(safe-area-inset-bottom);
}
#nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 48px;
  color: var(--navoff);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
#nav a[aria-current='page'] {
  color: var(--accent);
}
#nav .plus[aria-current='page'] {
  color: var(--ink);
  box-shadow:
    0 0 0 5px var(--bg),
    0 0 0 7px var(--gold);
}
#nav .plus {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 28px;
  margin-top: -22px;
  box-shadow: 0 0 0 5px var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  .view {
    animation: fade-in 0.2s ease-out;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn.danger {
  border-color: var(--ko);
  color: var(--ko);
}
.btn.small {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
input[type='text'] {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.row {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--raised);
}
a.row::after {
  content: '\203a';
  margin-left: auto;
  padding-left: 12px;
  color: var(--accent);
  font-size: 22px;
}
a.event-row > :first-child {
  flex: 1;
}
.err {
  color: var(--ko);
}
.ok {
  color: var(--ok);
}
.qr {
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

input[type='date'],
input[type='number'] {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--ok);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}
.pill.closed {
  border-color: var(--gold);
  color: var(--gold);
}
.pill.off {
  border-color: var(--line);
  color: var(--dim);
  text-decoration: line-through;
}
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.people li,
.invite span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: cover;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.av0 {
  background: #88c0d0;
}
.av1 {
  background: #ebcb8b;
}
.av2 {
  background: #a3be8c;
}
.av3 {
  background: #d08770;
}
.av4 {
  background: #b48ead;
}
.av5 {
  background: #81a1c1;
}
.event-row {
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.invite select {
  width: auto;
  min-width: 120px;
}
fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  min-height: 32px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-block: 4px;
}
input[type='checkbox'],
input[type='radio'] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 0;
}
[hidden] {
  display: none !important;
}
.title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
details > summary {
  display: flex;
  align-items: center;
  gap: 4px;
}
details > summary::after {
  content: '\25be';
  margin-left: auto;
  color: var(--accent);
}
details[open] > summary::after {
  content: '\25b4';
}
details[open] > summary {
  margin-bottom: 8px;
}
details > :not(summary) + :not(summary) {
  margin-top: 10px;
}
.qblock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.member {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card.preview {
  border: 1px solid var(--ok);
}
.pager {
  align-items: center;
  justify-content: space-between;
}
.off {
  color: var(--dim);
}
a.plain {
  color: inherit;
  text-decoration: none;
}
a.more {
  color: var(--accent);
  font-size: 13px;
}
.plain-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fi {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: -4px;
  margin-right: 6px;
}
.fc-gold {
  color: var(--gold);
}
.fc-blue {
  color: var(--blue);
}
.fc-purple {
  color: var(--purple);
}
.fc-teal {
  color: var(--teal);
}
.fc-orange {
  color: var(--ko);
}
.fc-green {
  color: var(--ok);
}
.pill.gold {
  border-color: var(--gold);
  color: var(--gold);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chip input + span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
}
.chip.sq input + span {
  border-radius: 10px;
}
.chip input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
}
.chip.ko input:checked + span {
  border-color: var(--ko);
  color: var(--ko);
}
.chip.win input:checked + span {
  border-color: var(--gold);
  color: var(--gold);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.chip .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.pcard {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pcard.out .member {
  opacity: 0.6;
}
.pcard.winner,
.side.winner {
  box-shadow: inset 0 0 0 1px var(--gold);
}
.pc-h {
  display: flex;
  align-items: center;
  gap: 10px;
}
.grow {
  flex: 1;
}
.pts {
  color: var(--ok);
  font-size: 18px;
}
.deck {
  display: flex;
  align-items: center;
  gap: 8px;
}
.deck label {
  flex-shrink: 0;
}
.deck input,
.deck select {
  max-width: 220px;
}

.game {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--raised);
}
.game-h {
  display: flex;
  align-items: center;
  gap: 6px;
}
.side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 6px 8px;
  border-radius: 8px;
}
.sp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sp .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.rule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 6px 8px;
}
.rule:not(form) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rule .rule-n {
  grid-column: 1 / -1;
}
.rule-f {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rule input {
  padding: 0 8px;
}
.rule-n {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 4px;
  min-width: 110px;
}

textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  resize: vertical;
}
input[type='datetime-local'] {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.q-h {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.q-h .fi {
  margin-top: 2px;
}
.card.locked {
  background: none;
  border: 1px dashed var(--line);
}
.pill.off-line {
  border-color: var(--line);
  color: var(--dim);
}
.btn.day.done {
  border-color: var(--ok);
  color: var(--ok);
}
.btn:disabled {
  background: transparent;
  border-style: dashed;
  color: var(--navoff);
  cursor: default;
}
.btn.day.done:disabled {
  border-style: solid;
  border-color: var(--ok);
  color: var(--ok);
}

/* Leaderboard */
.seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.seg a {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.seg a[aria-current='true'] {
  background: var(--accent);
  color: var(--ink);
}
.board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--raised);
}
.brow.me {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.brow.champ {
  box-shadow: inset 0 0 0 2px var(--gold);
}
.brow .rank {
  width: 1.6em;
  text-align: center;
  color: var(--muted);
}
.brow:first-child .rank {
  color: var(--gold);
}
.brow .name {
  display: block;
  font-weight: 600;
}
.brow .grow .lead {
  display: block;
}
.brow .total {
  font-size: 20px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.delta {
  color: var(--ok);
  font-family: var(--mono);
  font-weight: 600;
  opacity: 0;
}
.card.champ {
  border: 2px solid var(--gold);
}
.struck {
  text-decoration: line-through;
  color: var(--dim);
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.pthumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--raised);
}
.pthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pthumb.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.pthumb.ph.bad {
  color: var(--ko);
}
.pfull {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--raised);
}
.file {
  width: 100%;
  color: var(--muted);
  font: inherit;
}

.mem {
  gap: 8px;
}
.mhead {
  margin: 0;
}
.mtext {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.mquote {
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  font-size: 17px;
  line-height: 1.4;
}
.mwho {
  margin: 0;
  color: var(--gold);
}
.mphoto {
  max-width: 240px;
}
.rx {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rxb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.rxb[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--accent);
}
.rxb .n {
  font-size: 13px;
  min-width: 0.5em;
}

/* Programm + Einkaufsliste */
input[type='time'] {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.acts,
.shops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.act {
  display: flex;
  gap: 12px;
}
.act-t {
  flex: 0 0 4.5rem;
  padding-top: 2px;
}
.act-b,
.shop-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.act-b p,
.shop-b p {
  margin: 0;
  overflow-wrap: anywhere;
}
.shop {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop form {
  margin: 0;
}
.shop-f {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
}
.shop-btn {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.shop-box {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--ok);
}
.shop-btn[aria-pressed='true'] .shop-box {
  border-color: var(--ok);
}
.shop-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-wrap: anywhere;
}
.shop-add {
  display: flex;
  gap: 8px;
}
.shop-add input {
  flex: 1;
  min-width: 0;
}
.shop-add .shop-amt {
  flex: 0 0 30%;
}
.shop-add .btn {
  flex: 0 0 48px;
  padding: 0;
}

.dart {
  width: 40px;
  height: 29px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.dart.lg {
  width: 100%;
  height: auto;
  aspect-ratio: 626 / 457;
  border-radius: 8px;
}
.dm {
  display: block;
}
.dpair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.drow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drow .dart {
  width: 56px;
  height: 41px;
}
.drow small {
  display: block;
}

.brow .name a,
.drow a.grow {
  color: inherit;
  text-decoration: none;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tile .num {
  font-size: 22px;
}
.plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Achievements */
.badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.badge .emoji {
  font-size: 28px;
  line-height: 1.1;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.badge .grow {
  display: flex;
  flex-direction: column;
}
.badge .name {
  font-weight: 600;
}

/* TV mode: 1920x1080 landscape, sized in em from the viewport width. */
.tv-page {
  font-size: calc(100vw / 80);
  overflow: hidden;
}
.tv-page #app {
  max-width: none;
  border: 0;
}
.tv-page #main {
  overflow: hidden;
}
.tv {
  height: 100vh;
  padding: 1.6em 2.4em;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
#tv-root {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tv-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}
.tv-screen[hidden] {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .tv-screen:not([hidden]) {
    animation: tvfade 0.6s ease-out;
  }
  @keyframes tvfade {
    from {
      opacity: 0;
    }
  }
}
.tv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.tv-head h1,
.tv-empty h1 {
  margin: 0;
  font-size: 3em;
  line-height: 1.1;
}
.tv-eyebrow {
  margin: 0;
  font-size: 1.1em;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tv-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1.4em;
  font-weight: 600;
  color: var(--ok);
}
.tv-live .dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--ok);
}
.tv-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.4em;
}
.tv-side {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  min-width: 0;
  min-height: 0;
}
.tv-card {
  background: var(--card);
  border-radius: 0.6em;
  padding: 1em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  min-height: 0;
  overflow: hidden;
}
.tv-running {
  box-shadow: inset 0 0 0 2px var(--ok);
}
.tv-label {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tv-sub {
  color: var(--muted);
  font-size: 1.1em;
}
.tv-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.tv-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.3em 0;
  border-bottom: 1px solid var(--raised);
}
.tv-row .avatar,
.tv-game .avatar {
  width: 2em;
  height: 2em;
  font-size: 0.8em;
}
.tv-rank {
  width: 1.4em;
  font-size: 1.5em;
  color: var(--gold);
}
.tv-name {
  flex: 1;
  min-width: 0;
  font-size: 1.6em;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tv-name .pill {
  font-size: 0.5em;
  vertical-align: middle;
}
.tv-pts {
  font-size: 1.9em;
  min-width: 2.2em;
  text-align: right;
}
.tv-game {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.tv-game .fi {
  width: 1.6em;
  height: 1.6em;
}
.tv-grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.tv-gtitle {
  font-size: 1.3em;
  font-weight: 600;
}
.tv-avs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
}
.tv-avs .out {
  opacity: 0.4;
}
.tv-feat {
  flex: 1;
}
.tv-photo {
  max-height: 12em;
  max-width: 100%;
  object-fit: contain;
  align-self: flex-start;
  border-radius: 0.4em;
}
.tv-quote {
  margin: 0;
  font-size: 1.7em;
  line-height: 1.3;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.tv-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 2.4em;
  font-size: 1.3em;
  color: var(--muted);
}
.tv-foot strong {
  color: var(--fg);
}
.tv-quests {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: min-content;
  gap: 1.2em;
  align-content: start;
}
.tv-quest {
  gap: 0.3em;
}
.tv-quest.locked {
  opacity: 0.7;
}
.tv-qtitle {
  font-size: 1.7em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.tv-qpts {
  font-size: 2em;
  color: var(--gold);
}
.tv-empty,
.tv-pair {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6em;
}
.tv-code {
  margin: 0;
  font-size: 9em;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.tv-hint {
  margin: 0;
  font-size: 1.8em;
  color: var(--muted);
}
.tv-full {
  position: fixed;
  right: 1em;
  bottom: 1em;
  font: inherit;
  font-size: 0.9em;
  padding: 0.4em 0.9em;
  border-radius: 0.4em;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--fg);
  opacity: 0.35;
}
.tv-full:focus {
  opacity: 1;
}
