/*____________________________________ SETTINGS ____________________________________*/

:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #666;
  --line: #dedede;
  --paper: #fafafa;

  --font-primary: "DM Sans", Arial, sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --font-signature: "DynaPuff", system-ui;
}

/*____________________________________ BASE ____________________________________*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  color: var(--ink);
  font: 16px var(--font-primary);

  background: var(--paper);
}

.game-page,
.admin-page {
  background-image: radial-gradient(#15151512 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

.game-page .header,
.admin-page .header {
  background: var(--paper);
}

.game-page .brand,
.admin-page .brand {
  letter-spacing: -1.7px;
}

.game-page #help,
.admin-page .editor-back {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  background: white;
}

.game-page #help:hover,
.admin-page .editor-back:hover {
  box-shadow: 2px 2px 0 var(--ink);
}

button {
  color: inherit;
  font: inherit;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

input {
  width: 100%;
  min-width: 0;
  padding: 10px 7px;

  font: inherit;
  font-size: 14px;

  border: 0;
  background: transparent;

  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #777;
  outline-offset: 4px;
}

button:disabled {
  opacity: 0.5;

  cursor: default;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;

    scroll-behavior: auto !important;
  }
}

/*____________________________________ UI ____________________________________*/

.quiet {
  padding: 10px;

  font-size: 14px;

  border: 0;
  background: transparent;
}

.quiet span {
  padding: 0 5px;
  margin-left: 12px;

  border: 1px solid #888;
  border-radius: 50%;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 600;
}

.divider {
  margin: 26px 0;

  border-bottom: 1px solid var(--line);
}

label {
  margin-bottom: 12px;

  display: block;

  font-weight: 600;
  font-size: 14px;
}

.primary {
  padding: 11px 15px;

  color: white;
  font-size: 14px;

  background: #151515;
  border: 1px solid #151515;
  border-radius: 5px;
  min-height: 44px;
  font-weight: 600;
  box-shadow: 2px 2px 0 #aaa;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.primary:not(:disabled):hover,
.input-row button:not(:disabled):hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #999;
}

.primary:not(:disabled):active,
.input-row button:not(:disabled):active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.notice {
  padding: 16px;

  line-height: 1.6;

  border: 1px solid var(--line);
  border-radius: 6px;
}

@media (max-width: 760px) {
  .quiet {
    font-size: 12px;
  }

  .quiet span {
    display: none;
  }
}

/*____________________________________ HEADER AND NAVIGATION ____________________________________*/

.header {
  height: 100px;
  padding: 0 6vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.topline {
  margin-top: 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topline nav {
  padding: 4px;

  display: flex;
  gap: 4px;

  background: white;
  border-radius: 7px;
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.tab {
  padding: 10px 24px;

  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;

  text-decoration: none;
  font-size: 14px;

  border: 0;
  background: transparent;
  border-radius: 3px;
  min-height: 42px;
  font-weight: 600;
  transition: background 140ms ease;

  svg {
    width: 16px;
    height: 16px;

    stroke: var(--ink);
  }
}

.tab.active {
  color: white;

  background: #151515;

  svg {
    stroke: white;
  }
}

.tab:not(.active):hover {
  background: #ededed;
}

.topline>.eyebrow {
  color: var(--muted);
  font-size: 11px;
}

.header>#help {
  margin-left: auto;
}

@media (max-width: 760px) {
  .header {
    padding: 0 20px;
    height: 78px;
  }

  .brand {
    font-size: 23px;
  }

  .topline {
    gap: 12px;
    flex-wrap: wrap;
  }

  .tab {
    padding: 10px 20px;
  }

  .topline>.eyebrow {
    text-align: right;
    line-height: 1.6;
    font-size: 10px;
  }
}

/*____________________________________ LAYOUT ____________________________________*/

main {
  max-width: 1280px;
  padding: 0 48px;
  margin: auto;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 1fr);
  gap: 24px;
  align-items: start;
}

.game {
  padding: 30px;

  border: 1px solid var(--ink);
  border-radius: 10px;
  background: white;
  box-shadow: 5px 5px 0 #d5d5d5;
}

.guess-panel {
  padding: 26px;

  border: 1px solid var(--ink);
  border-radius: 10px;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-heading>span:last-child {
  color: var(--ink);
  font-size: 12px;
  padding: 6px 9px;
  font-family: var(--font-mono);
  background: #f0f0f0;
  border-radius: 4px;
}

.lyric-progress {
  width: 100%;
  height: 7px;
  margin: 20px 0;
  display: block;
  appearance: none;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: #e7e7e7;
}

.lyric-progress::-webkit-progress-bar {
  background: #e7e7e7;
}

.lyric-progress::-webkit-progress-value {
  background: var(--ink);
}

.lyric-progress::-moz-progress-bar {
  background: var(--ink);
}

.game-page[data-game-state="won"] .game {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.layout>aside {
  min-width: 0;
  max-height: calc(100dvh - 32px);

  position: sticky;
  top: 16px;
  overflow-y: auto;

  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding: 0 6px 6px 0;
}

.layout>.game {
  min-width: 0;

  grid-column: 1;
  grid-row: 1;
}

@media (max-width: 760px) {
  main {
    padding: 0 20px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game,
  .guess-panel {
    padding: 22px;
  }

  .panel-heading {
    flex-wrap: wrap;
  }

  .panel-heading .eyebrow {
    font-size: 10px;
  }

  .layout>aside {
    max-height: none;

    position: static;
    overflow-y: visible;

    grid-column: 1;
  }

  .layout>.game {
    grid-row: 2;
  }

  .guess-panel .counter {
    margin-bottom: 18px;
  }

  .guess-panel .counter strong {
    font-size: 40px;
  }

  .guess-panel .history {
    max-height: 140px;
  }
}

/*____________________________________ TRACK METADATA ____________________________________*/

.song-title {
  margin: 32px 0 16px;
  min-height: 36px;

  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;

  font: 600 27px var(--font-display);
}

.artist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;

  font-size: 14px;
  color: var(--muted);
}

.artist .word {
  margin: 0;
}

.track-header {
  padding: 46px 0 42px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.track-identity {
  min-width: 0;

  flex: 1;
}

.track-header .song-title {
  margin: 0 0 20px;

  gap: 10px;

  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.track-header .artist {
  font-size: 18px;
  line-height: 1.8;
}

.track-metadata {
  max-width: 40%;
  padding: 18px 20px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;

  text-align: right;

  border: 1px dashed #aaa;
  border-radius: 8px;
  background: var(--paper);
}

.track-metadata>div {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 10px;

  overflow-wrap: anywhere;
}

.track-metadata .eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;

  font-size: 10px;
  line-height: 1.4;
}

.track-metadata>div>span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.track-metadata>div>span.hint-unlocked {
  color: var(--ink);
  font-weight: 700;
}

.track-emoji {
  margin-top: 24px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.track-emoji .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--ink);
  font-size: 10px;
}

.track-emoji #emoji.hint-unlocked {
  font-size: 24px;
  line-height: 1.2;
}


@media (max-width: 760px) {
  .song-title {
    font-size: 24px;
  }

  .track-header {
    padding: 28px 0;

    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .track-header .song-title {
    font-size: clamp(24px, 6vw, 36px);
    letter-spacing: normal;
  }

  .track-header .artist {
    font-size: 16px;
  }

  .track-metadata {
    width: 100%;
    max-width: 100%;
    padding: 16px;

    gap: 18px;

    text-align: left;
  }

  .track-metadata .eyebrow {
    justify-content: flex-start;
  }

  .track-header .word {
    max-width: 100%;
  }
}

/*____________________________________ PUZZLE WORDS ____________________________________*/

.word {
  box-sizing: border-box;

  display: inline-block;

  white-space: pre;
  font-family: var(--font-mono);
  text-align: center;
}

.masked {
  height: 1.05em;
  min-width: 12px;

  vertical-align: middle;

  color: transparent;

  background: #191919;
  border-radius: 3px;

  user-select: none;
}

.revealed {
  padding: 0 3px;
  min-width: 24px;

  background: #f0f0f0;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 #bcbcbc;
}

button.masked {
  padding: 0;
  height: 1.4em;
  min-width: 24px;
  min-height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  font: inherit;
  line-height: 1.2;
  font-family: var(--font-mono);
  letter-spacing: normal;

  border: 0;
  -webkit-appearance: none;
  appearance: none;

  cursor: pointer;
}

button.masked:hover {
  background: #444;
}

button.masked.show-count {
  color: #fff;
}

.punctuation {
  display: inline-block;
  flex-shrink: 0;

  white-space: pre;
  color: var(--ink);

  background: transparent;
}

.word.newly-revealed {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;

  background: #151515;
  outline: 2px solid #151515;
  outline-offset: 2px;
  box-shadow: none;
}

@media (forced-colors: active) {
  button.masked {
    border: 1px solid ButtonText;
    background: ButtonFace;
  }

  button.masked.show-count {
    color: ButtonText;
  }

  .word.newly-revealed {
    color: HighlightText;

    outline: 2px solid Highlight;
    background: Highlight;
  }
}

/*____________________________________ LYRICS ____________________________________*/

.lyrics {
  min-height: 230px;
  padding: 6px;

  overflow-x: auto;
  overflow-wrap: normal;

  font-size: 17px;
  line-height: 2.1;

  scrollbar-gutter: stable;
  overscroll-behavior-x: contain;
}

.lyric-line {
  width: max-content;
  min-width: 100%;
  height: 2.4em;
  min-height: 2.4em;

  display: flex;
  flex-wrap: nowrap;
  gap: 0 6px;
  align-items: center;

  white-space: pre;
}

.lyric-line .word {
  flex-shrink: 0;
}

.lyric-line .revealed {
  line-height: 1.4;
}

.empty-lyrics {
  min-height: 230px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  border: 1px dashed #ccc;
  border-radius: 4px;
  background: #fafafa;
}

.empty-lyrics strong {
  font: 500 24px var(--font-display);
}

.empty-lyrics p {
  max-width: 290px;
  margin-bottom: 0;

  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.lyrics-hint {
  margin: 0 0 18px;

  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 760px) {
  .lyrics {
    min-height: 150px;

    font-size: 16px;
  }

  .empty-lyrics {
    min-height: 150px;
  }
}

/*____________________________________ GUESS INPUT ____________________________________*/

.counter {
  margin-bottom: 28px;

  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #bbb;
}

.counter strong {
  font: 500 54px/1 var(--font-display);
  letter-spacing: -2px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.counter span {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink);
  padding: 5px 7px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  transform: rotate(-3deg);
}

.input-row {
  padding: 5px;

  display: flex;
  gap: 4px;

  border: 2px solid var(--ink);
  border-radius: 7px;
  background: #fafafa;
  transition: box-shadow 140ms ease;
}

.input-row:focus-within {
  box-shadow: 3px 3px 0 #b8b8b8;
}

.input-row input:focus-visible {
  outline-offset: -2px;
}

.input-row button {
  padding: 11px 15px;

  color: white;
  font-size: 14px;

  background: #151515;
  border: 1px solid #151515;
  border-radius: 4px;
  min-height: 44px;
  font-weight: 600;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.feedback {
  min-height: 36px;
  margin: 12px 0 24px;

  line-height: 1.5;
  color: #595959;
  font-size: 14px;
}

.side-note {
  margin: 20px 0;

  text-align: center;
  line-height: 1.7;
  color: #595959;
  font-size: 14px;
}

.give-up {
  margin: 0 0 0 auto;

  align-self: center;
  flex-shrink: 0;

  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  #guess {
    font-size: 16px;
  }
}

/*____________________________________ GUESS HISTORY ____________________________________*/

.history-heading {
  padding-top: 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-top: 1px solid var(--line);
}

.history-heading h2 {
  margin: 0;

  font-size: 14px;
}

.history-heading span {
  padding: 3px 7px;

  font-size: 12px;

  background: var(--ink);
  border-radius: 4px;
  min-width: 26px;
  text-align: center;
  font-family: var(--font-mono);
  color: white;
}

.history {
  padding: 0;
  max-height: 300px;
  margin: 15px 0 0;

  overflow: auto;

  list-style: none;
}

.history li {
  padding: 12px 0;

  display: flex;
  justify-content: space-between;
  gap: 12px;

  font-size: 14px;

  border-bottom: 1px solid #eee;
}

.history li small {
  flex-shrink: 0;

  color: #666;
  text-align: right;
}

.history .empty {
  padding: 26px 0;

  justify-content: center;

  text-align: center;
  line-height: 1.8;
  color: #595959;

  border: 0;
}

.history li>span {
  min-width: 0;

  overflow-wrap: anywhere;
}

/*____________________________________ RESULTS AND SHARING ____________________________________*/

#victory {
  padding: 12px 0 22px;

  border-top: 2px solid var(--ink);
}

#victory h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

#result {
  font-size: 14px;
}

#next-random {
  margin-top: 18px;
}

.platforms {
  margin-top: 18px;

  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  font-size: 14px;
}

.share-output {
  width: 100%;
  min-height: 90px;
  margin-top: 12px;
  padding: 12px;

  font: 14px monospace;
  font-size: 16px;
}

.platforms a {
  min-height: 44px;

  display: inline-flex;
  align-items: center;
}

#victory-heading:focus {
  outline: 2px solid #555;
  outline-offset: 4px;
}

.share-panel {
  margin-top: 16px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-status {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/*____________________________________ DIALOGS ____________________________________*/

dialog {
  padding: 38px;
  max-width: 500px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding-top: 64px;

  overflow-y: auto;

  border: 1px solid #ccc;
  border-radius: 8px;
}

dialog::backdrop {
  background: #0009;
}

dialog h2 {
  font: 500 32px var(--font-display);
  letter-spacing: -1px;
}

dialog p {
  line-height: 1.65;
  color: #555;
  font-size: 15px;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;

  font-size: 26px;
}

dialog .close {
  width: 48px;
  height: 48px;
  padding: 0;

  top: 8px;
  right: 8px;

  display: grid;
  place-items: center;

  line-height: 1;

  border-radius: 6px;
}

dialog .close:hover,
dialog .close:focus-visible {
  background: #eee;
}

@media (max-width: 760px) {
  dialog .close {
    width: 56px;
    height: 56px;

    font-size: 30px;
  }
}

/*____________________________________ FOOTER ____________________________________*/

footer {
  width: calc(100% - 96px);
  max-width: 1184px;
  margin: 54px auto 0;
  padding: 32px 24px 40px;

  justify-content: space-between;
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;

  color: #777;
  font-size: 12px;

  border-top: 1px solid var(--line);
}

.signature {
  display: inline-flex;
  align-items: center;

  font-family: var(--font-signature);
  font-size: 0.75rem;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-weight: 700;
  text-decoration: none;
}

.signature-logo {
  width: 2rem;
  height: 2rem;

  overflow: visible;

  flex: 0 0 auto;
}

.signature-logo-pupil {
  transform-box: fill-box;
  transform-origin: center;
}

.signature:focus-visible .signature-logo-pupil,
.signature:hover .signature-logo-pupil {
  transform: translateX(30px);
}

.signature-tagline {
  transform: scaleY(1.75) skewX(5deg);
}

footer .signature {
  min-height: 44px;

  justify-self: center;

  color: var(--ink);
}

footer .footer-credit {
  text-align: right;
  font-size: 12px;
  letter-spacing: normal;
  line-height: 1.6;
}

@media (min-width: 575px) {
  .signature {
    font-size: 1rem;
  }

  .signature-logo {
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 760px) {
  footer {
    width: calc(100% - 40px);
    margin: 30px auto 0;
    padding: 28px 16px 36px;

    grid-template-columns: 1fr;

    line-height: 1.6;
    text-align: center;
  }

  footer .footer-credit {
    text-align: center;
  }
}

/*____________________________________ CATALOGUE EDITOR ____________________________________*/

.editor {
  max-width: 1000px;
}

.editor-heading {
  padding: 46px 0 32px;
}

.editor-heading h1 {
  margin: 14px 0;

  font: 600 clamp(30px, 4vw, 48px)/1.15 var(--font-display);
  letter-spacing: -1.5px;
}

.editor-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.editor-note {
  margin: 22px 0;

  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.editor-panel {
  padding: 30px;

  border: 1px solid var(--ink);
  border-radius: 10px;
  background: white;
  box-shadow: 5px 5px 0 #d5d5d5;
}

.editor-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

#song-editor-title {
  margin: 0 0 24px;

  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
}

.editor-picker {
  min-width: 0;

  flex: 1;
}

.editor-or {
  min-height: 44px;

  display: flex;
  align-items: center;

  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.editor .fields {
  margin-bottom: 28px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.editor input,
.editor select,
.editor textarea {
  width: 100%;
  padding: 12px;

  display: block;

  color: var(--ink);
  font: inherit;
  font-size: 16px;

  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
}

.editor input {
  min-height: 48px;
}

.editor select {
  min-height: 48px;
  padding-right: 40px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23151515' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;

  appearance: none;
}

.editor textarea {
  min-height: 320px;

  resize: vertical;

  font-family: var(--font-mono);
  line-height: 1.7;
}

.editor input:focus-visible,
.editor select:focus-visible,
.editor textarea:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
  box-shadow: 3px 3px 0 #b8b8b8;
}

.editor-hint {
  margin: 6px 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.editor-actions {
  margin-top: 28px;
  padding-top: 24px;

  display: flex;
  align-items: center;
  gap: 20px;

  border-top: 1px dashed #aaa;
}

.editor-actions .primary {
  flex-shrink: 0;
}

.editor #status {
  margin: 0;

  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.editor-back {
  display: inline-flex;
  align-items: center;

  text-decoration: none;
}

@media (max-width: 760px) {
  .editor-heading {
    padding: 30px 0 24px;
  }

  .editor-panel {
    padding: 22px;

    box-shadow: 3px 3px 0 #aaa;
  }

  .editor-toolbar {
    flex-wrap: wrap;
  }

  .editor-picker {
    flex-basis: 100%;
  }

  .editor .fields {
    grid-template-columns: 1fr;
  }

  .editor textarea {
    min-height: 260px;
  }

  .editor-actions {
    flex-wrap: wrap;
  }
}

/*____________________________________ ACCESSIBILITY ____________________________________*/

[hidden] {
  display: none !important;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);

  white-space: nowrap;

  border: 0;
}

.skip-link {
  padding: 14px;

  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;

  color: white;

  background: #151515;

  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

@media (max-width: 760px) {

  .game,
  .guess-panel {
    box-shadow: 3px 3px 0 #aaa;
  }

  .counter {
    padding-bottom: 16px;
  }
}

@media (forced-colors: active) {
  .lyric-progress {
    border: 1px solid CanvasText;
  }
}

/* Automatic hints share the same marker in metadata and above the lyrics. */
.auto-hint-icon {
  display: inline-block;

  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  vertical-align: middle;
}

/*____________________________________ CATALOGUE LINKS ____________________________________*/

.catalogue-panel {
  margin-top: 32px;
}

.catalogue-panel h2 {
  margin: 0 0 12px;

  font-family: var(--font-display);
}

.catalogue-scroll {
  margin-top: 20px;

  overflow-x: auto;
}

.catalogue-table {
  width: 100%;

  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.catalogue-table th,
.catalogue-table td {
  padding: 14px 12px;

  vertical-align: top;

  border-bottom: 1px solid var(--line);
}

.catalogue-table th {
  background: var(--paper);
}

.catalogue-table td>a {
  display: block;

  overflow-wrap: anywhere;
}

.catalogue-scroll:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
}
