/* Double Check — the game's own styles.
   Sits on top of the site's stylesheet and uses its tokens: white paper, black ink,
   one blue. In the game the blue has a meaning of its own: it is the assistant's voice.
   Everything the player says and does is black. */

.dc { --dc-gap: clamp(1.5rem, 3vw, 2.75rem); padding-block: clamp(1.5rem, 4vw, 3.5rem) 0; }
.dc [hidden] { display: none !important; }
.dc h1:focus, .dc h2:focus { outline: none; }

.dc-kicker { font: 400 var(--t-sm)/1.4 var(--sans); color: var(--graphite); margin: 0 0 1rem; }
.dc-title {
  font: 400 var(--t-h1)/0.98 var(--serif);
  letter-spacing: -0.022em;
  margin: 0;
  max-width: 13em;
  text-wrap: balance;
}
.dc-lede { font-size: var(--t-lg); line-height: 1.4; max-width: 31em; margin: 1.5rem 0 0; }
.dc-small { font: 400 var(--t-sm)/1.5 var(--sans); color: var(--graphite); margin: 0.9rem 0 0; }
.dc-h { font: 500 var(--t-h3)/1.2 var(--serif); margin: 0 0 0.9rem; }

.dc .btn { font-size: 1rem; padding: 0.95em 1.25em; }
.dc .btn:hover { background-color: #0f1b2d; }
.dc .btn:disabled { opacity: 0.55; cursor: default; }
.dc .dc-btn-plain { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dc .dc-btn-plain:hover { background: var(--ink); color: var(--paper); }
.dc-link {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em;
}
.dc-link:hover { color: var(--blue); }
.dc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.25rem; }

/* the assistant's mark: the same small blue square the home page uses for its notes */
.dc-fn {
  display: inline-block;
  min-width: 1.35em;
  padding: 0.14em 0.42em 0.12em;
  font: 700 0.75rem/1 var(--sans);
  text-align: center;
  background: var(--blue);
  color: #fff;
  border-radius: 2px;
  flex: none;
}
.dc-fn.is-off, .is-muted > .dc-fn { background: none; color: var(--graphite); box-shadow: inset 0 0 0 1px var(--line); }

.dc-key {
  display: none;
  min-width: 1.5em; padding: 0.2em 0.35em;
  font: 600 0.6875rem/1 var(--sans); text-align: center;
  color: var(--graphite); box-shadow: inset 0 0 0 1px var(--line); border-radius: 2px;
}
@media (hover: hover) and (pointer: fine) { .dc-key { display: inline-block; } }

/* ---------------------------------------------------------------- start */

.dc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  column-gap: var(--dc-gap);
  align-items: start;
}
.dc-intro > * { grid-column: 1; }
.dc-intro > .dc-side { grid-column: 2; grid-row: 1 / span 8; align-self: start; }

.dc-switch { display: inline-flex; justify-self: start; margin-top: 1.6rem; box-shadow: inset 0 0 0 1px var(--ink); border-radius: 2px; }
.dc-switch-btn { font: 600 var(--t-sm)/1 var(--sans); padding: 0.7em 1.1em; background: none; border: 0; color: var(--ink); cursor: pointer; }
.dc-switch-btn.is-on { background: var(--ink); color: var(--paper); }

.dc-go { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); max-width: 38rem; }
.dc-go p { margin: 0; }
.dc-go p + p { margin-top: 0.6rem; }
.dc-research, .dc-notice { font: 400 var(--t-sm)/1.5 var(--sans); }
.dc-go-h { font: 500 var(--t-h3)/1.2 var(--serif); }
.dc-challenge { font: 500 var(--t-lg)/1.3 var(--serif); color: var(--blue); margin-bottom: 0.8rem !important; }
.dc-error { font: 600 var(--t-sm)/1.4 var(--sans); color: var(--blue); margin-top: 0.9rem !important; }
.dc-go .dc-small { margin-top: 0.9rem; }

.dc-rules { list-style: none; margin: 1.5rem 0 0; padding: 0; font: 400 var(--t-sm)/1.45 var(--sans); }
.dc-rules li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.dc-rules li:last-child { border-bottom: 1px solid var(--line); }

/* one headline as the game shows it, standing in the margin of the first screen */
.dc-specimen { border: 1px solid var(--ink); padding: 1.1rem 1.15rem 0.4rem; }
.dc-specimen .dc-dateline { margin-bottom: 0.55rem; }
.dc-specimen .dc-headline { font-size: 1.5rem; line-height: 1.12; margin: 0; }
.dc-specimen .dc-note { margin-top: 0.8rem; }
.dc-specimen .dc-options { margin-top: 1rem; grid-template-columns: minmax(0, 1fr); }
.dc-specimen .dc-opt { padding-block: 0.6rem; cursor: default; }
.dc-specimen .dc-opt:last-child { border-bottom: 0; }
.dc-specimen .dc-opt:hover { background: none; }
.dc-specimen .dc-opt { min-height: 0; }
.dc-specimen .dc-opt-label { font-size: 1.0625rem; }
.dc-specimen .dc-note { font-size: 1.0625rem; }
.dc-side .dc-rules { margin-top: 1.75rem; }
.dc-specimen-cap { font: 400 var(--t-xs)/1.45 var(--sans); color: var(--graphite); margin: 0.6rem 0 0; }

/* ---------------------------------------------------------------- a round */

html.dc-playing .site-header, html.dc-playing .site-footer, html.dc-playing .skip-link { display: none; }
html.dc-playing .dc { padding-top: 0; }

.dc-bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: 3.25rem;
  border-bottom: 1px solid var(--ink);
  font: 400 var(--t-sm)/1 var(--sans);
}
.dc-bar-name { font: 500 1.25rem/1 var(--serif); margin-right: auto; }
.dc-count { color: var(--graphite); font-variant-numeric: tabular-nums; }
.dc-score { font-variant-numeric: tabular-nums; }
.dc-score b { font-weight: 700; }
.dc-quit { font: inherit; color: var(--graphite); background: none; border: 0; padding: 0.6rem 0 0.6rem 0.5rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.dc-quit:hover { color: var(--ink); }

.dc-ticks, .dc-grid { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.dc-tick, .dc-sq { width: 0.7rem; height: 0.7rem; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.dc-tick.is-gap, .dc-sq.is-gap, .dc-grid .is-gap { margin-left: 0.55rem; }
.dc-tick.is-now { box-shadow: inset 0 0 0 2px var(--ink); }
.dc-tick.is-ok, .dc-sq.is-ok { background: var(--ink); box-shadow: none; }
.dc-tick.is-no, .dc-sq.is-no { box-shadow: inset 0 0 0 2px var(--ink); }
.dc-tick.is-ok.is-aw, .dc-sq.is-ok.is-aw { background: var(--blue); }
.dc-tick.is-no.is-aw, .dc-sq.is-no.is-aw { box-shadow: inset 0 0 0 2px var(--blue); }

.dc-meter { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.9rem; }
.dc-meter-track { flex: 1; height: 0.375rem; background: var(--fog); }
.dc-meter-track span { display: block; height: 100%; width: 100%; background: var(--ink); }
.dc-meter b { font: 700 var(--t-sm)/1 var(--sans); min-width: 2.4em; text-align: right; font-variant-numeric: tabular-nums; }
.is-done .dc-meter-track span { background: var(--graphite); }

.dc-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: var(--dc-gap);
  padding-block: clamp(1.5rem, 7vh, 5rem) 3rem;
  align-items: start;
}
.dc-desk { border-left: 1px solid var(--line); padding-left: var(--dc-gap); }

.dc-dateline { font: 400 var(--t-sm)/1.4 var(--sans); color: var(--graphite); margin: 0 0 1.1rem; min-height: 1.4em; }
.dc-slot { display: inline-block; min-width: 9rem; border-bottom: 1px solid var(--ink); vertical-align: baseline; height: 1.1em; }
.dc-slot.is-full { min-width: 0; height: auto; border: 0; color: var(--ink); animation: dc-print 0.32s ease-out both; }
.dc-slot.is-full strong { font-weight: 700; }
@keyframes dc-print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.dc-headline {
  font: 400 clamp(1.75rem, 0.9rem + 3.7vw, 4.25rem)/1.04 var(--serif);
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 17em;
  text-wrap: balance;
}
.dc-headline .dc-fn { vertical-align: top; margin: 0.5em 0 0 0.3em; font-size: max(0.24em, 0.75rem); }

.dc-note { display: flex; align-items: baseline; gap: 0.6rem; font: 400 1.1875rem/1.4 var(--sans); margin: 1.9rem 0 0; color: var(--blue); }
.dc-note strong { font-weight: 700; }
.dc-note.is-muted { color: var(--graphite); }

.dc-check { margin-top: 1.6rem; min-height: 3rem; }
.dc-check-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 600 var(--t-sm)/1 var(--sans);
  padding: 0.85em 1em; background: var(--paper); color: var(--ink);
  border: 0; box-shadow: inset 0 0 0 1px var(--ink); border-radius: 2px; cursor: pointer;
}
.dc-check-btn small { font: 400 var(--t-xs)/1 var(--sans); color: var(--graphite); }
.dc-check-btn:hover { background: var(--ink); color: var(--paper); }
.dc-check-btn:hover small, .dc-check-btn:hover .dc-key { color: var(--paper); }
.dc-check-btn:disabled { opacity: 0.45; cursor: default; background: var(--paper); color: var(--ink); }
.dc-check-gone { font: 400 var(--t-sm)/1.4 var(--sans); color: var(--graphite); margin: 0; }
.dc-summary { margin: 0; padding-left: 1rem; border-left: 2px solid var(--ink); max-width: 32em; font-size: 1.1875rem; line-height: 1.45; }
.dc-summary-h { display: block; font: 600 var(--t-xs)/1.4 var(--sans); color: var(--graphite); margin-bottom: 0.2rem; }

.dc-q { font: 600 1.0625rem/1.3 var(--sans); margin: 0 0 0.8rem; }
.dc-options { display: grid; grid-template-columns: minmax(0, 1fr); }
.dc-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 0.75rem;
  width: 100%; min-height: 4.1rem; padding: 0.6rem 0.75rem;
  text-align: left; font: 400 1rem/1.25 var(--sans); color: var(--ink);
  background: var(--paper); border: 0; border-top: 1px solid var(--line); border-radius: 0; cursor: pointer;
}
.dc-opt:last-child { border-bottom: 1px solid var(--line); }
.dc-opt-label { grid-column: 2; font-weight: 600; font-size: 1.1875rem; justify-self: start; }
.dc-opt-sub { grid-column: 2; font-size: var(--t-sm); color: var(--graphite); }
.dc-opt .dc-key { grid-row: 1 / span 2; }
.dc-opt-mark { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 0.4rem; }
.dc-opt:not(:disabled):hover { background: var(--tint); }
.dc-opt:disabled { cursor: default; color: var(--ink); }
.dc-opt.is-suggested .dc-opt-label { background-image: linear-gradient(transparent 58%, var(--mark) 58%); }
.dc-opt.is-mine { box-shadow: inset 3px 0 0 var(--ink); }
.dc-tag { font: 600 var(--t-xs)/1 var(--sans); color: var(--graphite); white-space: nowrap; }
.is-done .dc-opt { color: var(--graphite); }
.is-done .dc-opt .dc-opt-label { font-weight: 400; }
.is-done .dc-opt.is-truth { background: var(--ink); color: var(--paper); border-top-color: var(--ink); }
.is-done .dc-opt.is-truth .dc-opt-label { font-weight: 700; background-image: none; }
.is-done .dc-opt.is-truth .dc-opt-sub, .is-done .dc-opt.is-truth .dc-tag { color: #d8dee8; }
.is-done .dc-opt.is-truth .dc-key { color: #d8dee8; box-shadow: inset 0 0 0 1px #6b7080; }
.is-done .dc-opt.is-missed .dc-opt-label { text-decoration: line-through; color: var(--ink); font-weight: 600; }

.dc-advice { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.dc-advice .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.dc-advice .btn .dc-key { color: inherit; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.7; }

.dc-reveal { margin-top: 1.4rem; }
.dc-reveal p { margin: 0; }
.dc-verdict { font: 500 var(--t-h2)/1 var(--serif); letter-spacing: -0.018em; }
.dc-why { margin-top: 0.5rem !important; font-size: 1.125rem; }
.dc-aside { margin-top: 0.45rem !important; font: 600 var(--t-sm)/1.4 var(--sans); color: var(--blue); }
.dc-story-link { margin-top: 0.45rem !important; font: 400 var(--t-sm)/1.4 var(--sans); }
.dc-reveal .dc-next { margin-top: 1.2rem; }

.dc-card { max-width: 36rem; padding-block: clamp(3rem, 16vh, 9rem) 4rem; }
.dc-card-h { font: 400 var(--t-h2)/1.02 var(--serif); letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
.dc-card-p { font-size: var(--t-lg); line-height: 1.4; margin: 1.1rem 0 1.8rem; }

/* ---------------------------------------------------------------- result */

.dc-scoreline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.9rem 2.5rem; margin-top: 2.2rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.dc-big { margin: 0; font: 400 var(--t-sm)/1 var(--sans); }
.dc-big b { font: 400 clamp(2.5rem, 2rem + 2vw, 3.75rem)/1 var(--serif); letter-spacing: -0.02em; margin-right: 0.15em; }
.dc-scoreline .dc-grid { gap: 0.3rem; align-self: center; }
.dc-scoreline .dc-sq { width: 1.35rem; height: 1.35rem; }
.dc-scoreline .dc-sq.is-gap { margin-left: 0.9rem; }

.dc-cardview img { display: block; width: 100%; max-width: 34rem; height: auto; margin: 1rem 0 0.5rem; border: 1px solid var(--line); }
.dc-cardview .dc-small { margin: 0; }
.dc-sharetext { margin: 1rem 0 0; padding: 0.9rem 1rem; background: var(--fog); font: 400 var(--t-sm)/1.55 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 34rem; }

.dc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--dc-gap); align-items: start; margin-top: 0.5rem; }
.dc-today, .dc-survey, .dc-review { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.dc-kept { margin-top: 1.25rem; }
.dc-kept .dc-small { margin-top: 0.4rem; }
.dc-review { max-width: 52rem; }
.dc-today p { margin: 0 0 0.5rem; }
.dc-kept-row { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) 4.5rem; align-items: center; column-gap: 1rem; padding: 0.55rem 0; font: 400 var(--t-sm)/1.3 var(--sans); }
.dc-kept-track { display: block; height: 0.8rem; background: var(--fog); }
.dc-kept-track span { display: block; height: 100%; background: var(--ink); }
.dc-kept-row.is-blue .dc-kept-track span { background: var(--blue); }
.dc-kept-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.dc-q-label { font: 600 var(--t-sm)/1.4 var(--sans); margin: 1rem 0 0.5rem; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dc-chip { font: 400 var(--t-sm)/1 var(--sans); padding: 0.7em 0.9em; background: var(--paper); color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--ink); border-radius: 2px; cursor: pointer; }
.dc-chip:not(:disabled):hover { background: var(--tint); }
.dc-chip[aria-pressed="true"], .dc-chip[aria-pressed="true"]:not(:disabled):hover { background: var(--ink); color: var(--paper); }
.dc-chip:disabled { cursor: default; }
.dc-chip:disabled:not([aria-pressed="true"]) { opacity: 0.45; }

.dc-review-list { list-style: none; margin: 0; padding: 0; }
.dc-review-list li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); column-gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.dc-review-list li.is-gap { border-top: 1px solid var(--ink); }
.dc-review-list .dc-sq { margin-top: 0.42em; }
.dc-review-t { font-size: 1.125rem; line-height: 1.3; }
.dc-review-s { grid-column: 2; font: 400 var(--t-sm)/1.4 var(--sans); color: var(--graphite); margin-top: 0.15rem; }
.dc-foot { margin-top: 2rem; font: 400 var(--t-sm)/1.4 var(--sans); gap: 0.5rem 1.75rem; }

/* ---------------------------------------------------------------- the game's colours
   White like the site. Blue is the assistant, as on the first screen. Green is a right
   answer and red a wrong one, the same squares the shared result uses. */

.dc { --dc-yes: #0b7a43; --dc-no: #c5221f; --dc-yes-soft: #e3f4ea; --dc-no-soft: #fbe9e7; padding-bottom: clamp(3rem, 7vw, 5rem); }
.dc-specimen { border: 0; background: var(--fog); border-radius: 10px; padding: 1.3rem 1.3rem 0.6rem; }
.dc-specimen .dc-opt { background: none; border-radius: 0; border-top: 1px solid var(--line); margin-bottom: 0; transform: none !important; }
.dc-sharetext, .dc-cardview img { border-radius: 8px; }

/* a round */
.dc-score b { display: inline-block; font-size: 1.125rem; }
.dc-streak { font: 700 var(--t-xs)/1 var(--sans); color: #fff; background: var(--dc-yes); padding: 0.45em 0.7em; border-radius: 999px; white-space: nowrap; animation: dc-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.dc-meter-track { height: 0.5rem; border-radius: 999px; overflow: hidden; }
.dc-meter-track span { border-radius: 999px; }
.is-done.is-right .dc-meter-track span { background: var(--dc-yes); }
.is-done.is-right .dc-meter b { color: var(--dc-yes); }
.is-done.is-wrong .dc-meter b { color: var(--dc-no); }
.is-done .dc-meter b { animation: dc-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.dc-desk { border-left: 0; }
.dc-opt { border: 0; border-radius: 10px; background: var(--fog); margin-bottom: 0.5rem; min-height: 3.9rem; transition: transform 0.12s ease-out, background-color 0.12s; }
.dc-opt:last-child { border-bottom: 0; }
.dc-opt:not(:disabled):hover { background: var(--tint); transform: translateX(4px); }
.dc-opt:not(:disabled):active { transform: scale(0.98); }
.dc-opt.is-mine { box-shadow: inset 0 0 0 2px var(--ink); }
.is-done .dc-opt { background: none; }
.is-done .dc-opt.is-truth { background: var(--dc-yes); color: #fff; animation: dc-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.is-done .dc-opt.is-truth .dc-opt-sub, .is-done .dc-opt.is-truth .dc-tag, .is-done .dc-opt.is-truth .dc-key { color: #fff; }
.is-done .dc-opt.is-truth .dc-key { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.is-done .dc-opt.is-missed { background: var(--dc-no-soft); box-shadow: inset 0 0 0 2px var(--dc-no); }
.is-done .dc-opt.is-missed .dc-opt-label { color: var(--dc-no); }
.is-right .dc-verdict { color: var(--dc-yes); }
.is-wrong .dc-verdict { color: var(--dc-no); }
.dc-verdict { animation: dc-rise 0.4s ease-out both; }
.dc-round:not(.is-done) .dc-headline { animation: dc-rise 0.45s ease-out both; }
.dc-round:not(.is-done) .dc-options .dc-opt { animation: dc-rise 0.4s ease-out both; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(2) { animation-delay: 0.04s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(3) { animation-delay: 0.08s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(4) { animation-delay: 0.12s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(5) { animation-delay: 0.16s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(6) { animation-delay: 0.2s; }
@keyframes dc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dc-pop { 0% { transform: scale(0.82); } 100% { transform: scale(1); } }

/* squares: green is right, a red outline is wrong, blue where the assistant was wrong */
.dc-tick, .dc-sq { border-radius: 2px; }
.dc-tick.is-ok, .dc-sq.is-ok { background: var(--dc-yes); }
.dc-tick.is-no, .dc-sq.is-no { box-shadow: inset 0 0 0 2px var(--dc-no); }
.dc-tick.is-ok.is-aw, .dc-sq.is-ok.is-aw { background: var(--blue); }
.dc-tick.is-no.is-aw, .dc-sq.is-no.is-aw { box-shadow: inset 0 0 0 2px var(--blue); }
.dc-scoreline .dc-sq { animation: dc-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.dc-scoreline .dc-sq:nth-child(n+2) { animation-delay: 0.05s; } .dc-scoreline .dc-sq:nth-child(n+3) { animation-delay: 0.1s; }
.dc-scoreline .dc-sq:nth-child(n+4) { animation-delay: 0.15s; } .dc-scoreline .dc-sq:nth-child(n+5) { animation-delay: 0.2s; }
.dc-scoreline .dc-sq:nth-child(n+6) { animation-delay: 0.25s; } .dc-scoreline .dc-sq:nth-child(n+7) { animation-delay: 0.3s; }
.dc-scoreline .dc-sq:nth-child(n+8) { animation-delay: 0.35s; } .dc-scoreline .dc-sq:nth-child(n+9) { animation-delay: 0.4s; }
.dc-scoreline .dc-sq:nth-child(n+10) { animation-delay: 0.45s; } .dc-scoreline .dc-sq:nth-child(n+11) { animation-delay: 0.5s; }
.dc-scoreline .dc-sq:nth-child(n+12) { animation-delay: 0.55s; }
.dc-big b { font-size: clamp(3rem, 2.2rem + 3.4vw, 5rem); font-variant-numeric: tabular-nums; }
.dc-kept-track { border-radius: 999px; overflow: hidden; }

.dc-days { font: 400 1.0625rem/1.35 var(--sans); margin: 1.25rem 0 0; }
.dc-days b { display: inline-block; min-width: 1.9em; padding: 0.25em 0.5em; margin-right: 0.35em; text-align: center; font-weight: 800; color: #fff; background: var(--ink); border-radius: 999px; }
.dc-days + .dc-pct { margin-top: 0.5rem; }
.dc-install { max-width: 30rem; }
.dc-pct { font: 600 1.0625rem/1.35 var(--sans); color: var(--dc-yes); margin: 1.25rem 0 0; }
.dc-pct:empty { display: none; }
.dc-wait { margin: 0; }
.dc-retry { margin-top: 0.8rem; }
.dc-tut .dc-stage { padding-top: clamp(1.25rem, 5vh, 3.5rem); }
.dc-tut-h { margin-bottom: 0.4rem; }
.dc-tut-p { margin: 0 0 1.6rem; max-width: 30em; }
.dc-tut .dc-headline { font-size: clamp(1.625rem, 1rem + 2.6vw, 3rem); }
.dc-tut-out { font: 600 1.0625rem/1.4 var(--sans); margin: 1rem 0 0; }
.dc-tut-out:empty { display: none; }
.dc-tut-after .btn { margin-top: 0.9rem; }

/* the board */
.dc-board { background: var(--fog); border-radius: 10px; padding: 1.2rem 1.25rem 1.3rem; }
.dc-board .dc-h { margin-bottom: 0.7rem; }
.dc-board-mini { margin-top: 1.75rem; }
.dc-board-cta { font: 600 1.0625rem/1.3 var(--sans); margin: 0; }
.dc-board-join { margin-bottom: 0.9rem; }
.dc-board-join .btn { margin-top: 0.8rem; }
.dc-names { margin-top: 0.8rem; }
.dc-names .dc-chip { font-weight: 600; padding: 0.8em 1em; }
.dc-board-tabs { margin-bottom: 0.7rem; }
.dc-board-tabs .dc-chip { padding: 0.55em 0.85em; font-size: var(--t-xs); font-weight: 600; }
.dc-board-list { list-style: none; margin: 0; padding: 0; font: 400 1rem/1.3 var(--sans); }
.dc-board-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; align-items: center; column-gap: 0.5rem; padding: 0.5rem 0.6rem; border-radius: 6px; }
.dc-board-list li:nth-child(odd) { background: var(--paper); }
.dc-board-list li.is-me { background: var(--dc-yes); color: #fff; font-weight: 700; }
.dc-board-list li.is-me .dc-tag, .dc-board-list li.is-me .dc-board-rank { color: #fff; }
.dc-board-list li.is-cut { margin-top: 0.5rem; }
.dc-board-rank { color: var(--graphite); font-variant-numeric: tabular-nums; }
.dc-board-list li:nth-child(1):not(.is-cut):not(.is-me) .dc-board-rank { color: var(--ink); font-weight: 700; }
.dc-board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-board-list b { font-variant-numeric: tabular-nums; }
.dc-board-league { margin-top: 1rem; font: 400 var(--t-sm)/1.4 var(--sans); }
.dc-board .dc-sharetext { background: var(--paper); }
.dc-league-link { margin-top: 0.5rem; }
.dc-board + .dc-kept { margin-top: 2.25rem; }

/* ---------------------------------------------------------------- looks
   The page chooses one with data-look on the game's element: "game" (the default), "night",
   or none for the plain look of the site. Colours keep their meaning in all of them:
   blue is the assistant, green is right, red is wrong. */

/* game: the site's white, black and blue, built like a board game: thick outlines,
   pieces that stand up from the table and go down when pressed */
.dc[data-look="game"] { --dc-table: #eef2f8; background: var(--dc-table); box-shadow: 0 0 0 100vmax var(--dc-table); clip-path: inset(0 -100vmax); }
html.dc-playing:has(.dc[data-look="game"]), html.dc-playing:has(.dc[data-look="game"]) body { background: #eef2f8; }
[data-look="game"] .btn, [data-look="game"] .dc-opt, [data-look="game"] .dc-check-btn, [data-look="game"] .dc-chip, [data-look="game"] .dc-switch {
  border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); border-radius: 12px;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background-color 0.12s;
}
[data-look="game"] .btn { font-weight: 700; padding: 0.95em 1.4em; }
[data-look="game"] .btn:hover { background: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
[data-look="game"] .dc-btn-plain { background: #fff; }
[data-look="game"] .dc-btn-plain:hover { background: var(--tint); color: var(--ink); }
[data-look="game"] .btn:active, [data-look="game"] .dc-opt:not(:disabled):active, [data-look="game"] .dc-check-btn:active, [data-look="game"] .dc-chip:not(:disabled):active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
[data-look="game"] .dc-opt { background: #fff; margin-bottom: 0.8rem; min-height: 4rem; }
[data-look="game"] .dc-opt:not(:disabled):hover { background: var(--tint); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
[data-look="game"] .dc-opt.is-mine { background: var(--tint); box-shadow: 0 4px 0 var(--ink); }
[data-look="game"] .is-done .dc-opt { background: transparent; border-color: var(--line); box-shadow: none; transform: none; }
[data-look="game"] .is-done .dc-opt.is-truth { background: var(--dc-yes); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
[data-look="game"] .is-done .dc-opt.is-missed { background: var(--dc-no-soft); border-color: var(--dc-no); box-shadow: none; }
[data-look="game"] .dc-switch { overflow: hidden; background: #fff; }
[data-look="game"] .dc-switch-btn { border-radius: 0; }
[data-look="game"] .dc-chip { border-radius: 999px; box-shadow: 0 3px 0 var(--ink); background: #fff; }
[data-look="game"] .dc-chip[aria-pressed="true"] { background: var(--ink); color: #fff; transform: translateY(3px); box-shadow: none; }
[data-look="game"] .dc-check-btn { background: #fff; border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
[data-look="game"] .dc-specimen, [data-look="game"] .dc-board, [data-look="game"] .dc-sharetext { background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); }
[data-look="game"] .dc-specimen .dc-opt, [data-look="game"] .dc-tut .dc-opt:disabled:not(.is-truth):not(.is-missed) { border: 0; border-top: 1px solid var(--line); box-shadow: none; border-radius: 0; margin-bottom: 0; }
[data-look="game"] .dc-specimen .dc-opt { background: none; min-height: 0; }
[data-look="game"] .dc-board .dc-sharetext { box-shadow: none; border-width: 1px; }
[data-look="game"] .dc-board-list li:nth-child(odd) { background: var(--dc-table); }
[data-look="game"] .dc-board-list li.is-me { background: var(--dc-yes); }
[data-look="game"] .dc-cardview img { border: 2px solid var(--ink); border-radius: 14px; }
[data-look="game"] .dc-bar { border-bottom: 2px solid var(--ink); min-height: 3.75rem; }
[data-look="game"] .dc-score { background: var(--ink); color: #fff; padding: 0.5em 0.85em; border-radius: 999px; }
[data-look="game"] .dc-tick { width: 0.85rem; height: 0.85rem; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
[data-look="game"] .dc-tick.is-now { background: var(--ink); }
[data-look="game"] .dc-tick.is-ok { background: var(--dc-yes); } [data-look="game"] .dc-tick.is-no { background: var(--dc-no); }
[data-look="game"] .dc-tick.is-ok.is-aw, [data-look="game"] .dc-tick.is-no.is-aw { box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 2px var(--blue); }
[data-look="game"] .dc-meter-track { height: 0.9rem; border: 2px solid var(--ink); background: #fff; }
[data-look="game"] .dc-meter-track span { border-radius: 0; }
[data-look="game"] .dc-meter b { font-size: 1.125rem; }
[data-look="game"] .dc-scoreline .dc-sq { width: 1.6rem; height: 1.6rem; border-radius: 5px; }
[data-look="game"] .dc-sq.is-no { background: var(--dc-no-soft); }
[data-look="game"] .dc-note { background: #fff; border: 2px solid var(--blue); border-radius: 12px; padding: 0.7rem 0.9rem; display: inline-flex; }
[data-look="game"] .dc-note.is-muted { border-color: var(--line); }
[data-look="game"] .dc-specimen .dc-note { border: 0; padding: 0; background: none; }
[data-look="game"] .dc-verdict { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; }
[data-look="game"] .dc-streak { border: 2px solid var(--ink); }
@media (max-width: 36rem) {
  [data-look="game"] .dc-tick { width: 0.6rem; height: 0.6rem; border-radius: 3px; }
  [data-look="game"] .dc-opt { margin-bottom: 0.75rem; }
  [data-look="game"] .dc-scoreline .dc-sq { width: 1.2rem; height: 1.2rem; border-radius: 4px; }
  [data-look="game"] .dc-scoreline .dc-grid { flex-wrap: wrap; }
}

/* night: the same game after dark */
.dc[data-look="night"] {
  --paper: #0f1220; --ink: #ffffff; --graphite: #aeb4cc; --line: rgba(255, 255, 255, 0.22); --fog: rgba(255, 255, 255, 0.08);
  --blue: #8ec1f5; --tint: rgba(255, 255, 255, 0.14); --mark: rgba(142, 193, 245, 0.45); --accent: #ffffff; --on-accent: #0f1220;
  --dc-yes: #35c77a; --dc-no: #ff7468; --dc-yes-soft: rgba(53, 199, 122, 0.16); --dc-no-soft: rgba(255, 116, 104, 0.16);
  color: var(--ink); background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax);
}
html.dc-playing:has(.dc[data-look="night"]), html.dc-playing:has(.dc[data-look="night"]) body { background: #0f1220; }
[data-look="night"] a { color: inherit; }
[data-look="night"] :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[data-look="night"] .dc-fn, [data-look="night"] .dc-streak { color: #0f1220; }
[data-look="night"] .dc-fn.is-off, [data-look="night"] .is-muted > .dc-fn { color: var(--graphite); }
[data-look="night"] .btn:hover { background-color: var(--blue); color: #0f1220; }
[data-look="night"] .dc-btn-plain:hover { background: var(--ink); color: var(--paper); }
[data-look="night"] .is-done .dc-opt.is-truth, [data-look="night"] .is-done .dc-opt.is-truth .dc-opt-sub, [data-look="night"] .is-done .dc-opt.is-truth .dc-tag,
[data-look="night"] .is-done .dc-opt.is-truth .dc-key, [data-look="night"] .dc-board-list li.is-me, [data-look="night"] .dc-board-list li.is-me .dc-tag,
[data-look="night"] .dc-board-list li.is-me .dc-board-rank { color: #06210f; }
[data-look="night"] .dc-board-list li:nth-child(odd):not(.is-me) { background: rgba(255, 255, 255, 0.05); }
[data-look="night"] .dc-board .dc-sharetext { background: rgba(255, 255, 255, 0.06); }

/* ---------------------------------------------------------------- below the game */

.dc-about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.1fr); column-gap: var(--dc-gap);
  margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: 1.5rem; border-top: 1px solid var(--ink);
}
.dc-about h2 { font: 400 var(--t-h3)/1.15 var(--serif); margin: 0; }
.dc-about-body p { margin: 0 0 0.9rem; max-width: 36em; }
.dc-about-body p.dc-small { margin-top: 0; }
.dc-links { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 1px solid var(--line); font: 400 var(--t-sm)/1.4 var(--sans); align-self: start; }
.dc-links li + li { margin-top: 0.9rem; }
.dc-links .dc-src { display: block; color: var(--graphite); }
.dc-data { margin-top: 3rem; }
.dc-data .dc-about-body { grid-column: 2 / span 2; font: 400 var(--t-sm)/1.55 var(--sans); }
.dc-data .dc-about-body p { max-width: 44em; }

.dc-loading { padding-bottom: 4rem; }
.no-js .dc-loading .dc-lede { display: none; }
.dc noscript p { font-size: var(--t-lg); max-width: 31em; padding-bottom: 4rem; }

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 56rem) {
  .dc-intro { grid-template-columns: minmax(0, 1fr); }
  .dc-intro > .dc-side { grid-column: 1; grid-row: auto; margin-top: 2.5rem; max-width: 30rem; }
  .dc-stage { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; padding-block: 1.4rem 2rem; }
  .dc-desk { border-left: 0; padding-left: 0; }
  .dc-options { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.6rem; }
  .dc-opt { min-height: 3.75rem; margin-bottom: 0.6rem; }
  .dc-opt:not(:disabled):hover { transform: none; }
  .dc-opt-label { font-size: 1.0625rem; }
  .dc-opt-sub { font-size: var(--t-xs); }
  .dc-opt:last-child { border-bottom: 0; }
  .dc-key { display: none !important; }
  .dc-chip, .dc-switch-btn { min-height: 2.75rem; }
  .dc-quit { padding: 0.8rem 0.2rem 0.8rem 0.7rem; }
  .dc-link { padding-block: 0.45rem; }
  .dc-options .dc-tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dc-opt { position: relative; }
  .is-done .dc-opt.is-truth { box-shadow: none; }
  .dc-specimen .dc-opt { box-shadow: none; }
  .dc-note { margin-top: 1.1rem; }
  .dc-check { margin-top: 1.1rem; }
  .dc-about { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
  .dc-cols { display: flex; flex-direction: column; }
  .dc-col { display: contents; }
  .dc-cols .dc-actions { order: 1; } .dc-cols .dc-sharetext { order: 2; } .dc-cols .dc-cardview { order: 3; }
  .dc-cols .dc-board { order: 4; margin-top: 2rem; } .dc-cols .dc-kept { order: 5; } .dc-cols .dc-today { order: 6; } .dc-cols .dc-survey { order: 7; }
  .dc-kept { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
  .dc-links { padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
  .dc-data .dc-about-body { grid-column: 1; }
}

@media (max-width: 36rem) {
  .dc-bar { gap: 0.3rem 0.7rem; min-height: 3rem; flex-wrap: wrap; padding-block: 0.3rem; }
  .dc-streak { order: 9; margin-left: auto; }
  .dc-quit { padding-block: 0.3rem; }
  .dc-bar-name { display: none; }
  .dc-ticks { margin-right: auto; gap: 0.2rem; }
  .dc-tick { width: 0.55rem; height: 0.55rem; }
  .dc-tick.is-gap { margin-left: 0.4rem; }
  .dc-count { display: none; }
  .dc-headline { font-size: clamp(1.625rem, 1rem + 3.4vw, 2.1rem); line-height: 1.1; }
  .dc-dateline { margin-bottom: 0.8rem; }
  .dc-opt { padding-inline: 0.7rem; column-gap: 0.4rem; }
  .dc-opt-label { font-size: 1rem; }
  .dc .dc-actions .btn { width: 100%; text-align: center; }
  .dc-kept-row { grid-template-columns: minmax(0, 1fr) 4.5rem; row-gap: 0.3rem; }
  .dc-kept-label { grid-column: 1; }
  .dc-kept-val { grid-column: 2; grid-row: 1; }
  .dc-kept-track { grid-column: 1 / -1; }
  .dc-scoreline .dc-sq { width: 1.1rem; height: 1.1rem; }
  .dc-advice .btn { flex: 1 1 100%; justify-content: center; }
  .dc-reveal .dc-next { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dc *, .dc *::before, .dc *::after { animation: none !important; transition: none !important; }
}

@media print {
  .dc[data-look] { background: none; box-shadow: none; clip-path: none; }
  .dc-actions, .dc-survey, .dc-quit, .dc-sharetext, .dc-cardview { display: none !important; }
}

/* Rush: a clock on every headline */
.dc-rush { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1rem; font: 400 0.9375rem/1.4 var(--dc-sans, inherit); cursor: pointer; max-width: 30rem; }
.dc-rush input { width: 1.15rem; height: 1.15rem; margin: 0.12rem 0 0; flex: none; accent-color: var(--dc-blue, #1d4f8f); }
.dc-rush-tag { font-weight: 700; font-size: 0.75rem; padding: 0.2em 0.55em; border: 2px solid currentColor; border-radius: 999px; }
.dc-clock { flex: none; min-width: 2.4rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0.2em 0.3em; border: 2px solid currentColor; border-radius: 6px; }
.dc-clock:empty { display: none; }
.dc-clock.is-low { color: var(--dc-no, #c5221f); }

/* First screen: long texts and extra ways to play stay closed until asked for */
.dc-more { margin-top: 1.1rem; }
.dc-fold > summary { cursor: pointer; }
.dc-more { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.dc-more-h { font: 600 0.9375rem/1.3 var(--sans); margin: 0; }
.dc-more > *:not(.dc-more-h) { margin-top: 0.7rem; }
.dc-about.is-fold { display: block; margin-top: 2.5rem; padding-top: 1.1rem; }
.dc-about.is-fold + .dc-about.is-fold { margin-top: 0; border-top-color: var(--line); }
.dc-fold-h { font: 400 var(--t-h3)/1.15 var(--serif); }
.dc-fold-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr); column-gap: var(--dc-gap); margin-top: 1.25rem; }
.dc-data.is-fold .dc-about-body { grid-column: 1 / -1; }
@media (max-width: 55rem) { .dc-fold-in { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; } }

/* The screen for a room */
.dc-class-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem var(--dc-gap); margin-top: 2rem; align-items: start; }
.dc-class-link { font-size: clamp(1rem, 2.2vw, 1.6rem); line-height: 1.3; word-break: break-all; white-space: pre-wrap; }
.dc-class-foot { margin-top: 2.5rem; }
@media (max-width: 55rem) { .dc-class-cols { grid-template-columns: minmax(0, 1fr); } }

/* Bots on the board: in their place, marked, never ranked */
.dc-board-list li.is-bot { color: var(--graphite); font-style: italic; }
.dc-board-list li.is-bot b { font-weight: 500; }
.dc-bot-tag { font: 700 0.6875rem/1 var(--sans); font-style: normal; padding: 0.25em 0.45em; border: 1.5px solid currentColor; border-radius: 4px; justify-self: start; }
.dc-board-list li.dc-bot-note { display: block; font: 400 var(--t-xs)/1.4 var(--sans); color: var(--graphite); border: 0; padding-top: 0.6rem; }

/* The game's mark: two check marks, the second one in doubt, on the assistant's blue */
.dc-mark { display: inline-block; width: 1.5em; height: 1.5em; border-radius: 0.34em; vertical-align: -0.38em; margin-right: 0.45em; background: #1d4f8f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='5'%3E%3Cpath stroke='%23fff' d='M9 25l7 7 13-15'/%3E%3Cpath stroke='%23fff' stroke-opacity='.55' d='M24 31l2 2 13-15'/%3E%3C/svg%3E") center / 100% no-repeat; }
.dc-logo { display: flex; align-items: center; margin: 0 0 1.4rem; }
.dc-logo .dc-mark { font-size: 1.6rem; vertical-align: 0; }
.dc-wordmark { font: 800 1.6rem/1 var(--sans); letter-spacing: -0.02em; }
.dc-bar-name { display: inline-flex; align-items: center; }
.dc-bar-name .dc-mark { font-size: 0.95rem; }

/* The end of a game: what next comes first, and the board before the sharing */
.dc-end { margin: 1.5rem 0 0.5rem; }
.dc-board-on { font: 600 1rem/1.4 var(--sans); color: var(--dc-yes, #0b7a43); margin: 0 0 0.75rem; }
.dc-board-on .dc-link { font-weight: 400; }
@media (max-width: 56rem) { .dc-cols .dc-board { order: 0; margin-top: 1rem; margin-bottom: 1.5rem; } }

/* Sound switch in the top bar; the note beside "More ways to play" */
.dc-sound { font: 700 1rem/1 var(--sans); width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid currentColor; background: none; color: inherit; cursor: pointer; padding: 0; position: relative; }
.dc-sound[aria-pressed="false"] { opacity: 0.55; }
.dc-sound[aria-pressed="false"]::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; border-top: 2px solid currentColor; transform: rotate(-45deg); }
.dc-more-on { margin-left: 0.6rem; font: 700 0.75rem/1 var(--sans); padding: 0.2em 0.55em; border: 2px solid currentColor; border-radius: 999px; }

/* The assistant's face */
.dc-robot { flex: none; display: inline-block; width: 2.9rem; height: 2.9rem; align-self: center; transition: transform 0.25s ease-out; }
.dc-robot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dc-robot .rb-head, .dc-robot .rb-ear { fill: var(--blue, #1d4f8f); }
.dc-robot .rb-ant { stroke: var(--blue, #1d4f8f); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.dc-robot .rb-bulb { fill: var(--blue, #1d4f8f); }
.dc-robot .rb-eye { fill: #fff; }
.dc-robot .rb-pupil { fill: #0d1b33; }
.dc-robot .rb-shut path, .dc-robot .rb-m { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dc-robot .rb-shut, .dc-robot .rb-m { display: none; }
.dc-robot.is-idle .rb-m-idle, .dc-robot.is-wait .rb-m-off, .dc-robot.is-right .rb-m-right, .dc-robot.is-wrong .rb-m-wrong, .dc-robot.is-off .rb-m-off { display: block; }
.dc-robot.is-off .rb-open { display: none; } .dc-robot.is-off .rb-shut { display: block; }
.dc-robot.is-off .rb-head, .dc-robot.is-off .rb-ear, .dc-robot.is-off .rb-bulb { fill: #9a9da6; } .dc-robot.is-off .rb-ant { stroke: #9a9da6; }
.dc-robot.is-right .rb-bulb { fill: var(--dc-yes, #0b7a43); }
.dc-robot.is-wrong .rb-bulb { fill: var(--dc-no, #c5221f); }
.dc-robot.is-wrong { transform: rotate(-9deg); }
.dc-robot.is-wrong .rb-pupil { transform: translateY(1.6px); }
.dc-robot.is-right { animation: rb-hop 0.45s ease-out; }
.dc-robot.is-idle .rb-open, .dc-robot.is-wait .rb-open { transform-origin: 24px 23px; animation: rb-blink 4.2s infinite; }
.dc-robot.is-wait .rb-pupil { animation: rb-look 1.6s ease-in-out infinite; }
.dc-note:has(.dc-robot) { align-items: center; gap: 0.8rem; }
@keyframes rb-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
@keyframes rb-look { 0%, 100% { transform: translateX(-1.4px); } 50% { transform: translateX(1.4px); } }
@keyframes rb-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-0.45rem); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .dc-robot, .dc-robot * { animation: none !important; transition: none; } }

/* ---------------------------------------------------------------- game feel
   Decoration only. The rule further up switches all of it off under "reduce motion". */
.dc-round:not(.is-done) .dc-headline { animation: dc-deal 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
.dc-round:not(.is-done) .dc-note { animation: dc-rise 0.4s 0.12s ease-out both; }
.dc-round:not(.is-done) .dc-options .dc-opt { animation: dc-popin 0.38s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(1) { animation-delay: 0.16s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(2) { animation-delay: 0.21s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(3) { animation-delay: 0.26s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(4) { animation-delay: 0.31s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(5) { animation-delay: 0.36s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(6) { animation-delay: 0.41s; }
.dc-round:not(.is-done) .dc-options .dc-opt:nth-child(n+7) { animation-delay: 0.46s; }
.dc-opt { transition: transform 0.12s ease-out; }
.dc-round:not(.is-done) .dc-opt:not([disabled]):hover { transform: translateY(-2px); }
.dc-round:not(.is-done) .dc-opt:not([disabled]):active { transform: translateY(2px) scale(0.985); }
.dc-tick.is-now { animation: dc-beat 1.1s ease-in-out infinite; }
.dc-tick.is-fresh { animation: dc-pop2 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.dc-meter.is-hot .dc-meter-track span { background: var(--dc-no, #c5221f); }
.dc-meter.is-hot b { color: var(--dc-no, #c5221f); animation: dc-beat 0.6s ease-in-out infinite; }
.dc-round.is-shake .dc-desk { animation: dc-shake 0.42s ease-in-out both; }
.dc.is-flash::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: var(--dc-no, #c5221f); animation: dc-flash 0.45s ease-out both; z-index: 60; }
.dc-score.is-bump { animation: dc-bump 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.dc-combo { display: inline-block; margin-left: 0.7rem; font: 800 0.8125rem/1 var(--sans); color: #fff; background: var(--dc-yes, #0b7a43); padding: 0.45em 0.7em; border-radius: 999px; vertical-align: middle; animation: dc-pop2 0.5s 0.15s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.is-done .dc-opt.is-missed { animation: dc-shake 0.42s ease-in-out both; }
.dc-burst { position: fixed; width: 0; height: 0; pointer-events: none; z-index: 70; }
.dc-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: dc-confetti 0.95s cubic-bezier(0.15, 0.7, 0.3, 1) both; }
.dc-fly { position: fixed; z-index: 70; pointer-events: none; font: 800 1.5rem/1 var(--sans); font-variant-numeric: tabular-nums; transition: transform 0.6s cubic-bezier(0.5, -0.2, 0.3, 1), opacity 0.6s ease-in; }
.dc-fly.is-good { color: var(--dc-yes, #0b7a43); } .dc-fly.is-bad { color: var(--dc-no, #c5221f); }
@keyframes dc-deal { from { opacity: 0; transform: translateX(28px) rotate(1.4deg); } to { opacity: 1; transform: none; } }
.dc-round { overflow-x: clip; }
@keyframes dc-popin { from { opacity: 0; transform: scale(0.86) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dc-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }
@keyframes dc-pop2 { 0% { transform: scale(0.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes dc-shake { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-9px); } 36% { transform: translateX(8px); } 54% { transform: translateX(-6px); } 72% { transform: translateX(4px); } 90% { transform: translateX(-2px); } }
@keyframes dc-flash { 0% { opacity: 0.16; } 100% { opacity: 0; } }
@keyframes dc-bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes dc-confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 70px)) rotate(var(--rot)); } }

/* The timer as a burning fuse: green, amber, red, with a spark at its tip */
.dc-meter-track { position: relative; overflow: visible; }
.dc-meter-track span { position: relative; transition: background-color 0.4s; }
.dc-meter.is-cool .dc-meter-track span { background: var(--dc-yes, #0b7a43); }
.dc-meter.is-warm .dc-meter-track span { background: #e08a00; }
.dc-meter.is-hot .dc-meter-track span { background: var(--dc-no, #c5221f); }
.dc-meter.is-cool .dc-meter-track span::after, .dc-meter.is-warm .dc-meter-track span::after, .dc-meter.is-hot .dc-meter-track span::after {
  content: ""; position: absolute; right: -0.45rem; top: 50%; width: 0.95rem; height: 0.95rem; margin-top: -0.475rem; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, #ffd34d 23% 55%, rgba(255, 140, 0, 0) 72%);
  box-shadow: 0 0 0.5rem 0.15rem rgba(255, 170, 0, 0.75); animation: dc-spark 0.28s steps(2) infinite; }
.dc-meter.is-hot .dc-meter-track span::after { width: 1.3rem; height: 1.3rem; margin-top: -0.65rem; right: -0.6rem; box-shadow: 0 0 0.9rem 0.3rem rgba(255, 90, 0, 0.85); animation-duration: 0.16s; }
.dc-meter.is-warm b { color: #b36b00; }
.dc-meter.is-hot { animation: dc-jitter 0.22s linear infinite; }
.dc-meter.is-hot b { font-size: 1.35rem; }
.dc-meter b { display: inline-block; transition: font-size 0.2s; }
.dc-meter b.is-tick { animation: dc-ticknum 0.22s ease-out; }
.dc-meter.is-out .dc-meter-track span { background: var(--graphite); }
.dc-round.is-hot::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 55; box-shadow: inset 0 0 0 0 rgba(197, 34, 31, 0); animation: dc-edge 0.9s ease-in-out infinite; }
.dc-round.is-hot .dc-headline { animation: dc-breathe 0.9s ease-in-out infinite; transform-origin: left center; }
/* the robot gets nervous with it */
.dc-robot .rb-m-tense, .dc-robot .rb-sweat { display: none; }
.dc-robot.is-nervous .rb-m-tense { display: block; }
.dc-robot.is-nervous .rb-sweat { display: block; fill: #7fc4ff; animation: rb-drip 0.9s ease-in infinite; }
.dc-robot.is-nervous { animation: rb-tremble 0.14s linear infinite; }
.dc-robot.is-nervous .rb-pupil { animation: rb-look 0.35s ease-in-out infinite; }
/* Rush: the last five seconds, large */
.dc-bigcount { position: fixed; left: 50%; top: 38%; z-index: 58; pointer-events: none; font: 800 clamp(7rem, 34vw, 13rem)/1 var(--sans); color: var(--dc-no, #c5221f); opacity: 0; transform: translate(-50%, -50%); font-variant-numeric: tabular-nums; }
.dc-bigcount.is-go { animation: dc-bigcount 0.95s ease-out both; }
@keyframes dc-spark { 0% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(1.35) rotate(40deg); opacity: 0.75; } }
@keyframes dc-jitter { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.5px, 1px); } 50% { transform: translate(1.5px, -1px); } 75% { transform: translate(-1px, -1px); } }
@keyframes dc-ticknum { 0% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes dc-edge { 0%, 100% { box-shadow: inset 0 0 0 0 rgba(197, 34, 31, 0); } 50% { box-shadow: inset 0 0 2.2rem 0.5rem rgba(197, 34, 31, 0.38); } }
@keyframes dc-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
@keyframes rb-tremble { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-1px, 0.5px); } 66% { transform: translate(1px, -0.5px); } }
@keyframes rb-drip { 0% { transform: translateY(-2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }
@keyframes dc-bigcount { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); } 18% { opacity: 0.34; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); } }

/* ------------------------------------------------------------ the robot, whole
   On the first screen it walks up and down a line; a tap makes it jump and say something.
   On the last screen it dances, sways or hangs its head. */
.dc-bot { display: inline-block; width: 3.6rem; height: 4.7rem; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dc-bot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dc-bot .rf-body, .dc-bot .rb-head, .dc-bot .rb-ear, .dc-bot .rb-bulb, .dc-bot .rf-legL rect, .dc-bot .rf-legR rect, .dc-bot .rf-armL rect, .dc-bot .rf-armR rect { fill: var(--blue, #1d4f8f); }
.dc-bot .rb-ant { stroke: var(--blue, #1d4f8f); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.dc-bot .rb-eye, .dc-bot .rf-panel { fill: #fff; } .dc-bot .rb-pupil { fill: #0d1b33; }
.dc-bot .rf-mouth { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.dc-bot .rf-tick { fill: none; stroke: var(--blue, #1d4f8f); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dc-walker { position: relative; height: 8.4rem; margin-top: 1.6rem; border-bottom: 2px solid var(--ink); overflow: hidden; }
.dc-bot-move { position: absolute; bottom: -2px; left: 0; display: block; animation: dc-walk 16s linear infinite; }
.dc-bot-turn { display: block; animation: dc-turn 16s steps(1) infinite; }
.dc-walker .rf-legL { transform-origin: 25px 60px; animation: rf-step 0.5s ease-in-out infinite; }
.dc-walker .rf-legR { transform-origin: 39px 60px; animation: rf-step 0.5s ease-in-out infinite reverse; }
.dc-walker .rf-armL { transform-origin: 10px 44px; animation: rf-swing 0.5s ease-in-out infinite reverse; }
.dc-walker .rf-armR { transform-origin: 53px 44px; animation: rf-swing 0.5s ease-in-out infinite; }
.dc-walker .rf-head { transform-origin: 32px 38px; animation: rf-bob 0.5s ease-in-out infinite; }
.dc-walker .dc-bot svg { animation: rf-bounce 0.25s ease-in-out infinite alternate; }
.dc-walker:hover .dc-bot-move, .dc-walker:hover .dc-bot-turn { animation-play-state: paused; }
.dc-walker:hover .rf-legL, .dc-walker:hover .rf-legR, .dc-walker:hover .rf-armL, .dc-walker:hover .dc-bot svg { animation-play-state: paused; }
.dc-walker:hover .rf-armR { animation: rf-wave 0.5s ease-in-out infinite; }
.dc-bot.is-jump { animation: rf-jump 0.55s cubic-bezier(0.3, 1.5, 0.5, 1); }
.dc-say { position: absolute; top: 0; left: 0; max-width: 100%; font: 600 0.875rem/1.3 var(--sans); background: var(--ink); color: var(--paper, #fff); padding: 0.5em 0.8em; border-radius: 0.8em; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.dc-say.is-on { opacity: 1; transform: none; }
.dc-bot-end { float: right; width: 4.6rem; height: 6rem; margin: 0 0 0.5rem 1rem; cursor: default; }
.dc-bot-end.is-dance svg { animation: rf-dance 0.6s ease-in-out infinite; transform-origin: 50% 90%; }
.dc-bot-end.is-dance .rf-armL { transform-origin: 10px 44px; animation: rf-up 0.6s ease-in-out infinite; }
.dc-bot-end.is-dance .rf-armR { transform-origin: 53px 44px; animation: rf-up 0.6s ease-in-out infinite reverse; }
.dc-bot-end.is-dance .rf-mouth { d: path("M24 30q8 8 16 0"); }
.dc-bot-end.is-sway svg { animation: rf-sway 1.8s ease-in-out infinite; transform-origin: 50% 95%; }
.dc-bot-end.is-sad .rf-head { transform-origin: 32px 38px; transform: rotate(9deg) translateY(2px); }
.dc-bot-end.is-sad .rf-mouth { d: path("M26 34q6 -4 12 0"); }
.dc-bot-end.is-sad .rb-bulb { fill: #9a9da6; }
/* the small face in a round fidgets while it waits, and spins when tapped */
.dc-note .dc-robot { cursor: pointer; }
.dc-robot.do-boing .rb-ant, .dc-robot.do-boing .rb-bulb { transform-origin: 24px 9px; animation: rb-boing 0.7s ease-out; }
.dc-robot.do-nod { animation: rb-nod 0.8s ease-in-out; }
.dc-robot.do-peek .rb-pupil { animation: rb-peek 1.1s ease-in-out; }
.dc-robot.do-spin { animation: rb-spin 0.6s cubic-bezier(0.3, 1.3, 0.5, 1); }
@keyframes dc-walk { 0% { left: 0; } 47% { left: calc(100% - 3.6rem); } 50% { left: calc(100% - 3.6rem); } 97% { left: 0; } 100% { left: 0; } }
@keyframes dc-turn { 0% { transform: scaleX(1); } 48.5% { transform: scaleX(-1); } 98.5% { transform: scaleX(1); } }
@keyframes rf-step { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
@keyframes rf-swing { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }
@keyframes rf-bob { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes rf-bounce { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes rf-wave { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-115deg); } }
@keyframes rf-jump { 0% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(0) scale(1.1, 0.85); } 55% { transform: translateY(-1.7rem) scale(0.95, 1.08) rotate(-8deg); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes rf-dance { 0%, 100% { transform: rotate(-9deg) translateY(0); } 25% { transform: rotate(0) translateY(-5px); } 50% { transform: rotate(9deg) translateY(0); } 75% { transform: rotate(0) translateY(-5px); } }
@keyframes rf-up { 0%, 100% { transform: rotate(-160deg); } 50% { transform: rotate(-110deg); } }
@keyframes rf-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes rb-boing { 0% { transform: scaleY(1); } 25% { transform: scaleY(1.9) rotate(-14deg); } 50% { transform: scaleY(0.8) rotate(10deg); } 75% { transform: scaleY(1.3) rotate(-5deg); } 100% { transform: scaleY(1); } }
@keyframes rb-nod { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } }
@keyframes rb-peek { 0%, 100% { transform: translateX(0); } 25%, 45% { transform: translateX(-2px); } 60%, 85% { transform: translateX(2px); } }
@keyframes rb-spin { from { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.2); } to { transform: rotate(360deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .dc-bot-move { left: 0; } }

/* the story's picture, shown with the solution */
.dc-pic { display: block; width: 100%; max-width: 22rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin: 0.7rem 0 0.2rem; background: rgba(15, 27, 45, 0.08); }

/* the result screen, calmer: the two questions sit right under the score, the list of rounds folds away */
.dc-survey--top { position: relative; margin: 1.25rem 0 1.5rem; padding: 1.1rem 1.2rem 1.2rem; background: #fff7e6; border: 1px solid #f2b441; border-left: 5px solid #f2b441; border-radius: 0 10px 10px 0; }
.dc-survey--top .dc-h { margin-top: 0.2rem; }
.dc-survey-tag { display: inline-block; font: 600 0.75rem/1.6 inherit; background: #0f1b2d; color: #fff; border-radius: 999px; padding: 0 0.6rem; }
.dc-review-fold > summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; }
.dc-review-fold[open] > summary { margin-bottom: 0.4rem; }

/* the games to choose from: what you guess and in which language, said on the button */
.dc-pick { margin: 1.6rem 0 0.5rem; font: 600 var(--t-sm)/1.4 var(--sans); }
.dc-switch.dc-switch--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.6rem; margin-top: 0; box-shadow: none; background: none; overflow: visible; justify-self: stretch; max-width: 46rem; }
[data-look="game"] .dc-switch.dc-switch--cards { background: none; box-shadow: none; border: 0; overflow: visible; }
.dc-switch--cards .dc-switch-btn, [data-look="game"] .dc-switch--cards .dc-switch-btn { display: grid; gap: 0.3rem; text-align: left; padding: 0.8rem 1rem; background: #fff; border: 2px solid var(--ink); border-radius: 12px; line-height: 1.3; }
.dc-switch--cards .dc-switch-btn b { font: 700 1.05rem/1.2 var(--sans); }
.dc-switch--cards .dc-switch-btn span { font: 400 var(--t-xs)/1.35 var(--sans); opacity: 0.8; }
.dc-switch--cards .dc-switch-btn.is-on { background: var(--ink); color: #fff; }
.dc-board-right { font: 400 var(--t-xs)/1.4 var(--sans); opacity: 0.75; white-space: nowrap; margin-left: auto; padding: 0 0.7rem; }
.dc-board-list li > b { grid-column: 4; }
.dc-board-list li > .dc-board-right { grid-column: 3; padding: 0 0.6rem 0 0.4rem; margin: 0; }
.dc-board-list li.dc-bot-note { display: block; }

/* while today's edition is fetched: twelve squares, one per headline, light up in turn */
.dc-load-row { display: flex; gap: 0.45rem; margin-top: 1.4rem; }
.dc-load-row i { width: 1.6rem; height: 1.6rem; border-radius: 4px; background: var(--line, #d8dee8); animation: dc-load 1.8s ease-in-out infinite; }
.dc-load-row i:nth-child(9), .dc-load-row i:nth-child(10), .dc-load-row i:nth-child(11), .dc-load-row i:nth-child(12) { margin-left: 0; }
.dc-load-row i:nth-child(9) { margin-left: 0.7rem; }
.dc-load-row i:nth-child(1) { animation-delay: 0.00s; }
.dc-load-row i:nth-child(2) { animation-delay: 0.12s; }
.dc-load-row i:nth-child(3) { animation-delay: 0.24s; }
.dc-load-row i:nth-child(4) { animation-delay: 0.36s; }
.dc-load-row i:nth-child(5) { animation-delay: 0.48s; }
.dc-load-row i:nth-child(6) { animation-delay: 0.60s; }
.dc-load-row i:nth-child(7) { animation-delay: 0.72s; }
.dc-load-row i:nth-child(8) { animation-delay: 0.84s; }
.dc-load-row i:nth-child(9) { animation-delay: 0.96s; }
.dc-load-row i:nth-child(10) { animation-delay: 1.08s; }
.dc-load-row i:nth-child(11) { animation-delay: 1.20s; }
.dc-load-row i:nth-child(12) { animation-delay: 1.32s; }
@keyframes dc-load { 0%, 60%, 100% { background: var(--line, #d8dee8); transform: none; } 25% { background: var(--dc-yes, #0b7a43); transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .dc-load-row i { animation: none; } }
/* yesterday's best, under a board with few players today */
.dc-board-yday { margin: 0.9rem 0 0; padding: 0.8rem 0.95rem 0.85rem; background: var(--dc-yes-soft, #e3f4ea); border-radius: 10px; }
.dc-board-yday-h { margin: 0 0 0.35rem; font: 700 0.8125rem/1.3 var(--sans, Arial, sans-serif); color: #0b5a33; }
.dc-board-yday ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.dc-board-yday li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: baseline; gap: 0.5rem; font-size: 0.95rem; }
.dc-board-yday b { font-variant-numeric: tabular-nums; }
