/* Crisscross, Storybook Critters: a mini crossword a day, and Webster the
   spider spinning her web as you fill it in. Sky blue, chunky rounded type,
   white cards with a soft drop, sunflower buttons: the same storybook as the
   other games, and its shared pieces (the header, sheets, stats and dark
   colors) are theirs. */

:root {
  color-scheme: light;
  --sky: #cfeaff;
  --ink: #2e2a3b;
  --on-sun: #2e2a3b; /* text on sunny buttons and wooden signs, dark in both themes */
  --ink-2: #3e3a52;
  --muted: #5b5670;
  --card: #ffffff;
  --card-edge: #9cc8ea;
  --track: #eaf4ff;
  --sun: #ffb938;
  --sun-edge: #d68a00;
  --coral: #ff6f61;
  --leaf: #7bc96f;
  --error: #b23a2e;
  --good: #2f7d3e;
  --link: #1f5f99;
  --display: Fredoka, Nunito, system-ui, sans-serif;
  font: 16px/1.5 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
/* Headings break evenly, and paragraphs don't end on one short word. */
h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

body {
  margin: 0;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sky);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: var(--link);
}

[hidden] {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

:focus-visible {
  outline: 3px solid rgba(31, 95, 153, 0.45);
  outline-offset: 3px;
}

.sheet h2:focus {
  outline: none;
}

/* Header */

.top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 14px 16px 6px;
}

.wordmark {
  text-align: center;
}

.wordmark h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.1;
}

.day-label {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--card-edge);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

/* Layout and shared pieces */

main {
  flex: 1;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 6px 16px 24px;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-edge);
}

.primary {
  min-height: 54px;
  padding: 12px 20px;
  border: 0;
  border-radius: 18px;
  background: var(--sun);
  box-shadow: 0 4px 0 var(--sun-edge);
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  color: var(--on-sun);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.primary:hover {
  filter: brightness(1.04);
}

.primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--sun-edge);
}

.secondary {
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
}

.link {
  align-self: center;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

.kicker {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.note {
  margin: -6px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.note.reading {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.feedback {
  min-height: 22px;
  margin: -6px 0 0;
  text-align: center;
  font-weight: 700;
  color: var(--error);
}

.feedback.ok {
  color: var(--good);
}

/* Start screen */

.hello {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.hello-webster {
  width: 112px;
  height: 112px;
  flex: none;
}

.bubble {
  position: relative;
  margin: 0 0 58px;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--card-edge);
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
}

.bubble::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: 12px;
  border: 8px solid transparent;
  border-left-color: var(--card);
}

.headline {
  margin: -6px 0 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.2;
}

#intro > p {
  margin: 0;
  text-align: center;
  color: var(--ink-2);
}

#intro > .fine {
  font-size: 13px;
}

.example {
  display: grid;
  gap: 8px;
}

.example p {
  margin: 0;
}

.example .example-answer {
  margin: -4px 0 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}

.example-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.example-row .muted {
  font-weight: 400;
}

/* Tiers */

.tier-list {
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-edge);
}

.tier {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 14px;
}

.tier svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.tier b {
  flex: 1;
  font-family: var(--display);
  font-weight: 600;
}

.tier span {
  color: var(--muted);
}

.tier.now {
  min-height: 42px;
  background: var(--sun);
  color: var(--on-sun);
}

.tier.now span {
  color: var(--ink);
  font-weight: 800;
}

/* Results */

.results-hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.hug-webster {
  width: 132px;
  height: 132px;
}

#results .kicker + .kicker {
  margin-top: -12px;
}

.tier-name {
  margin: -10px 0 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.1;
}

.total {
  margin: -8px 0 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}

.total .muted {
  font-family: Nunito, sans-serif;
  font-weight: 400;
}

#total-note {
  margin: -12px 0 0;
  text-align: center;
}

.summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 16px;
  list-style: none;
}

.summary li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
}

.s-question {
  font-size: 14px;
  font-weight: 700;
}

.s-detail {
  grid-column: 1;
  font-size: 13px;
  color: var(--muted);
}

.s-points {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-width: 44px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--track);
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
}

.s-points.great {
  background: var(--sun);
  color: var(--on-sun);
}

.next-in {
  margin: 0;
  text-align: center;
  color: var(--ink-2);
}

.next-in strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Dialogs */

.sheet {
  width: min(460px, calc(100% - 32px));
  padding: 20px;
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--card-edge);
}

.sheet::backdrop {
  background: rgba(46, 42, 59, 0.45);
}

.sheet h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-head h2 {
  margin: 0;
}

.sheet-webster {
  width: 64px;
  height: 64px;
  flex: none;
}

.sheet ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding-left: 20px;
}

.sheet .primary {
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat {
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--sky);
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 12px;
  color: var(--ink-2);
}

.foot {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 10px 16px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-2);
}

.foot p {
  text-wrap: balance;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* The header: help on the left, stats and settings on the right, the name centered */

.top {
  grid-template-columns: 1fr auto 1fr;
}

.top > .icon-button {
  justify-self: start;
}

.top-end {
  display: flex;
  gap: 6px;
  justify-self: end;
}

@media (max-width: 400px) {
  .top .icon-button {
    width: 38px;
    height: 38px;
  }

  .wordmark h1 {
    font-size: 23px;
  }
}

/* The settings sheet (settings.js) */

.setting {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.setting legend,
.toggle > span:first-of-type {
  padding: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 6px 8px;
  border-radius: 14px;
  background: var(--track);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.segmented input:checked + span {
  background: var(--sun);
  box-shadow: 0 3px 0 var(--sun-edge);
  color: var(--on-sun);
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  cursor: pointer;
}

.toggle input {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--sun-edge);
}

.toggle-note,
.setting-note {
  font-size: 13px;
  color: var(--muted);
}

.setting-note {
  margin: 0 0 14px;
}

/* Stats: your days by tier, and the last five weeks (stats-view.js) */

.stats-sub {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
}

.tier-bars {
  display: grid;
  gap: 6px;
}

.tier-bar {
  display: grid;
  grid-template-columns: minmax(0, 10em) 1fr 2em;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.tier-bar-label {
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tier-bar.now {
  color: var(--ink);
}

.tier-bar.now .tier-bar-label {
  font-weight: 800;
}

.tier-bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--track);
}

.tier-bar-fill {
  display: block;
  height: 100%;
  border-radius: 7px;
}

.tier-bar-count {
  font-weight: 800;
  text-align: right;
}

.calendar {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.cal-head,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-head span {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  color: var(--muted);
}

.cal-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--track);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.cal-day.played {
  background: var(--c);
  font-weight: 800;
  color: var(--on-sun);
}

.cal-day.deep {
  color: #fff;
}

.cal-day.today {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.cal-day.out {
  opacity: 0.35;
}

/* How everyone did today (everyone.js), under the results */

.everyone {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--track);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--ink-2);
}

/* Dark colors, chosen in Settings or by the device (settings.js sets data-theme).
   The art keeps its own colors; text on sunny buttons and wooden signs stays dark. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --sky: #141a2b;
  --ink: #f3f0fb;
  --ink-2: #d6d0e8;
  --muted: #a8a2c0;
  --card: #1f2638;
  --card-edge: #0a0e18;
  --track: #2b3449;
  --error: #ff8f80;
  --good: #7ed98b;
  --link: #93c8ff;
  --glass: rgba(31, 38, 56, 0.92);
  --glass-soft: rgba(31, 38, 56, 0.6);
}

/* Less motion, chosen in Settings (the device's own setting is handled above) */
:root[data-motion="less"] *,
:root[data-motion="less"] *::before,
:root[data-motion="less"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}



/* Crisscross's own colors: the grid's squares, the entry you're in, the silk */

:root {
  --block: #3e3a52; /* black squares */
  --word: #ffefc2; /* the entry the cursor is in */
  --silk: #a79fc4;
  --dew: #8fd3ff;
  --solved: #c4ecc9;
}

:root[data-theme="dark"] {
  --block: #0b0f19;
  --word: #4d4326;
  --silk: #8d86ad;
  --solved: #2c6b43;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Webster */

.hello-webster {
  width: 112px;
  height: 112px;
  flex: none;
  animation: webster-bob 3s ease-in-out infinite;
}

.sheet-webster {
  width: 64px;
  height: 64px;
  flex: none;
}

.wave-r,
.wave-l {
  transform-box: fill-box;
  animation: webster-wave 1.4s ease-in-out infinite;
}

.wave-r {
  transform-origin: 0% 100%;
}

.wave-l {
  transform-origin: 100% 100%;
  animation-name: webster-wave-l;
}

@keyframes webster-wave {
  50% {
    transform: rotate(-16deg);
  }
}

@keyframes webster-wave-l {
  50% {
    transform: rotate(16deg);
  }
}

@keyframes webster-bob {
  50% {
    transform: translateY(5px);
  }
}

.silk {
  fill: none;
  stroke: var(--silk);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dew {
  fill: var(--dew);
  stroke: #fff;
  stroke-width: 0.8;
}

/* The start screen's little example */

.example {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(5, 24px);
  gap: 3px;
}

.example-grid span {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--track);
  font: 600 14px var(--display);
}

.example-grid span.black,
.solved-grid span.black {
  background: var(--block);
  box-shadow: none;
}

.example-grid i,
.solved-grid i {
  position: absolute;
  top: 0;
  left: 2px;
  font: 800 7px/1.3 Nunito, sans-serif;
  font-style: normal;
  color: var(--muted);
}

.example-clues p {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.35;
}

.example-clues b {
  margin-right: 4px;
  font-family: var(--display);
  font-weight: 600;
}

@media (max-width: 400px) {
  .example {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Playing: the clock and the helps, the grid, the clue you're on, the keyboard */

.play-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clock-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-web {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 2px 0 var(--card-edge);
}

.clock {
  min-width: 64px;
  font: 700 23px var(--display);
  font-variant-numeric: tabular-nums;
}

.helpers {
  display: flex;
  gap: 6px;
}

.pill {
  min-height: 38px;
  padding: 4px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font: 600 15px var(--display);
  cursor: pointer;
}

.grid {
  display: grid;
  /* Every square the same size, whatever's typed in it. */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: 360px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 6px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-edge);
}

.cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  line-height: 1;
  border: 0;
  border-radius: 9px;
  background: var(--track);
  color: var(--ink);
  font: 600 clamp(22px, 7.5vw, 34px) var(--display);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cell.black {
  background: var(--block);
  cursor: default;
}

.cell.word {
  background: var(--word);
}

.cell.here {
  background: var(--sun);
  color: var(--on-sun);
}

.cell .num {
  position: absolute;
  top: 2px;
  left: 5px;
  font: 800 11px/1.2 Nunito, sans-serif;
  color: var(--muted);
}

.cell.here .num {
  color: var(--on-sun);
}

.cell.wrong .ch {
  color: var(--error);
}

/* A wrong letter, crossed out */
.cell.wrong::after {
  content: "";
  position: absolute;
  inset: 20% 14%;
  background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--error) calc(50% - 1.5px), var(--error) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  pointer-events: none;
}

/* A revealed letter, with a corner folded down */
.cell.revealed::before,
.solved-grid .revealed::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 11px solid var(--link);
  border-left: 11px solid transparent;
  border-top-right-radius: 8px;
}

.grid.solved .cell:not(.black) {
  background: var(--solved);
  color: var(--ink);
  animation: solved-pop 0.45s both;
  animation-delay: var(--d, 0ms);
}

@keyframes solved-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

/* One height for every clue: a long one gets smaller type instead (app.js), so the keyboard below never moves. */
.clue-bar {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: stretch;
  gap: 4px;
  height: 64px;
  padding: 4px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-edge);
}

.clue-step {
  border: 0;
  border-radius: 12px;
  background: var(--track);
  font: 700 26px/1 var(--display);
  color: var(--ink-2);
  cursor: pointer;
  touch-action: manipulation;
}

.clue-now {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  padding: 2px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.clue-line {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}

.clue-tag {
  display: inline-block;
  margin-right: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--on-sun);
  font: 700 0.75em/1.5 var(--display);
  vertical-align: 0.1em;
  white-space: nowrap;
}

.clue-text {
  font-weight: 800;
}

#feedback {
  min-height: 22px;
  margin: -6px 0 -4px;
  font-size: 15px;
}

.keyboard {
  display: grid;
  gap: 6px;
}

.key-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.key-row:nth-child(2) {
  padding: 0 4.5%;
}

.key {
  flex: 1 1 0;
  max-width: 46px;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--card-edge);
  font: 600 20px var(--display);
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.key:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--card-edge);
}

.key.wide {
  flex: 1.7 1 0;
  max-width: 76px;
  font-size: 22px;
}

/* With the keyboard on screen, everything a little closer, and the grid as big as fits above it: smaller on short phones. */
@media not all and (hover: hover) and (pointer: fine) and (min-width: 601px) {
  #play {
    gap: 10px;
  }

  .grid {
    width: clamp(220px, calc(100dvh - 420px), 360px);
  }

  .clue-bar {
    height: 60px;
  }

  .key {
    min-height: 46px;
  }
}

/* A real keyboard needs no keyboard on screen. */
@media (hover: hover) and (pointer: fine) and (min-width: 601px) {
  .keyboard {
    display: none;
  }
}

.clue-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.clue-lists h3 {
  margin: 0 0 6px;
  font: 600 18px var(--display);
}

.clue-lists ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clue {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}

.clue b {
  min-width: 1.1em;
  font-family: var(--display);
  font-weight: 600;
}

.clue.crossing {
  background: var(--word);
}

.clue.here {
  background: var(--sun);
  color: var(--on-sun);
}

.clue.done:not(.here) span {
  color: var(--muted);
}

/* On a phone, the clue under the grid and the keyboard are all there's room for. */
@media (max-width: 600px) {
  .clue-lists {
    display: none;
  }
}

/* Results */

.results-hero {
  display: flex;
  justify-content: center;
}

.results-art {
  width: 156px;
  height: 156px;
}

.solved-grid {
  display: grid;
  grid-template-columns: repeat(5, 36px);
  gap: 3px;
  justify-content: center;
  margin-top: 8px;
}

.solved-grid span {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 2px 0 var(--card-edge);
  font: 600 18px var(--display);
}

.tier-ladder {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

#tier-blurb {
  margin: 2px 0 0;
  text-align: center;
}

.tier-ladder > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 12px;
  color: var(--on-sun);
  font: 600 16px var(--display);
}

.tier-ladder > span > span {
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.tier-ladder > span.now {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

/* How to play and the questions people search for, folded into one small line at the bottom: there for search engines and the curious, out of everyone else's way. */

.about {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  color: var(--ink-2);
  font-size: 12px;
  text-align: center;
}

.about summary {
  width: fit-content;
  margin: 0 auto;
  padding: 4px 6px;
  cursor: pointer;
  text-decoration: underline;
  list-style: none;
}

.about summary::-webkit-details-marker {
  display: none;
}

.about[open] {
  padding-bottom: 6px;
  text-align: left;
}

.about[open] summary {
  margin-bottom: 4px;
}

.about h2 {
  margin: 8px 0 6px;
  font: 600 17px/1.25 var(--display);
  color: var(--ink);
}

.about h3 {
  margin: 12px 0 2px;
  font: 600 15px/1.3 var(--display);
  color: var(--ink);
}

.about p {
  margin: 0;
  font-size: 14px;
}
