:root {
  --cover: #16233f;
  --cover-deep: #101a30;
  --paper: #f1e4c8;
  --paper-shade: #e2d1ae;
  --card: #fffdf6;
  --ink: #17213c;
  --ink-soft: #6b6754;
  --red: #cf3a25;
  --red-strong: #b3301d; /* behind light text (buttons, badges) and for small red text on the paper: 5:1 */
  --gold: #d8a323;
  --green: #147a4d;
  --rule: #c9b78f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--cover);
  background-image: repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025) 0 2px,
      transparent 2px 7px
    ),
    radial-gradient(circle at 50% 0%, #1d2e52 0%, var(--cover-deep) 70%);
  min-height: 100vh;
}

.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  border-bottom: 3px solid var(--gold);
  background: var(--cover-deep);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}

.logo-mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
}

.logo-words strong {
  display: block;
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-words small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.tab {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 2px solid rgba(241, 228, 200, 0.35);
  background: transparent;
  color: rgba(241, 228, 200, 0.75);
  cursor: pointer;
}

.tab:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cover-deep);
}

.score {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 78px;
  text-align: right;
}

.page {
  max-width: 680px;
  margin: 26px auto 60px;
  padding: 26px 22px 34px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 33, 60, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  border: 1px solid var(--rule);
  box-shadow: 0 22px 0 -10px rgba(0, 0, 0, 0.25), 0 30px 60px rgba(0, 0, 0, 0.45);
}

.page-head {
  text-align: center;
  border-bottom: 3px double var(--rule);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.page-head h1,
.page-head .page-title {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 34px;
  margin: 0;
}

.page-sub {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.slots {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
}

.slot {
  flex: 1 1 0;
  min-width: 0;
  max-width: 106px;
  height: 58px;
  border: 2px dashed var(--rule);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px 3px;
  font-size: 11px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.35);
  position: relative;
}

.slot em {
  font-style: normal;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 20px;
  opacity: 0.55; /* faint like an empty box, still readable (3.5:1) */
}

.slot--current {
  border-style: solid;
  border-color: var(--red);
  box-shadow: inset 0 0 0 3px rgba(207, 58, 37, 0.15);
}

.slot--solved,
.slot--failed {
  border: 2px solid var(--ink);
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transform: rotate(-1.5deg);
  box-shadow: 2px 3px 0 rgba(23, 33, 60, 0.5);
}

.slot--solved {
  background: linear-gradient(118deg, #ffe9a8 0%, #fff8e2 26%, #f6d97a 45%, #fffdf6 62%, #ffe9a8 100%);
}

.slot--failed {
  background: repeating-linear-gradient(
    45deg,
    #ded2b8 0 6px,
    #d3c5a6 6px 12px
  );
  color: rgba(23, 33, 60, 0.5);
  text-decoration: line-through;
}

.slot--training {
  flex: 0 0 auto;
  max-width: none;
  min-width: 140px;
  border-style: solid;
  border-color: var(--ink);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--card);
}

.sticker,
.summary-recap {
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 22px;
  position: relative;
  box-shadow: 6px 7px 0 rgba(23, 33, 60, 0.85);
}

.sticker::after,
.summary-recap::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(23, 33, 60, 0.25);
  pointer-events: none;
}

.sticker-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--red-strong);
  padding: 5px 11px;
  transform: rotate(-1deg);
}

.serial {
  white-space: nowrap;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.chrono {
  text-align: center;
  margin: 0 0 14px;
  line-height: 1;
}

.chrono-bug {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: 'Anton', Impact, sans-serif;
  text-transform: uppercase;
}

.chrono-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.chrono-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.is-running .chrono-label::before {
  animation: chrono-pulse 1s steps(2, jump-none) infinite;
}

.is-stopped .chrono-label::before {
  background: var(--ink);
}

.chrono-time {
  min-width: 3.2em;
  padding: 6px 12px 5px;
  background: var(--ink);
  color: var(--paper);
  font-size: 24px;
  letter-spacing: 0.08em;
  text-align: center;
}

@keyframes chrono-pulse {
  from { opacity: 1; }
  to { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .is-running .chrono-label::before {
    animation: none;
  }
}

.start {
  text-align: center;
}

.start-kicker,
.start-note {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.start-text {
  max-width: 34em;
  margin: 10px auto 20px;
  font-size: 15px;
  line-height: 1.5;
}

.start-go {
  font-size: 22px;
  padding: 14px 30px;
}

.start-note {
  margin-top: 16px;
}

.record {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: 0.005em;
  margin: 0 0 20px;
}

.guesses {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 7px;
}

.guess-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #fdf3d4;
  border-left: 4px solid var(--rule);
}

.guess-name {
  font-weight: 700;
  font-size: 14px;
  margin-right: auto;
  padding-right: 6px;
}

.chip {
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  white-space: nowrap;
}

.chip--exact {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.chip--close {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.chip--wrong {
  background: var(--card);
  border-color: var(--rule);
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  .guess-name {
    flex-basis: 100%;
    margin-right: 0;
  }
}

.guess {
  display: flex;
  gap: 8px;
}

.combo {
  position: relative;
  flex: 1;
}

#guess {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 2px solid var(--ink);
  background: #fffdf6;
  color: var(--ink);
}

#guess::placeholder {
  color: rgba(23, 33, 60, 0.4);
}

#guess:focus {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(216, 163, 35, 0.4);
}

.suggestions {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: 2px solid var(--ink);
  z-index: 10;
  max-height: 258px;
  overflow-y: auto;
  box-shadow: 5px 6px 0 rgba(23, 33, 60, 0.75);
}

.suggestion {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(23, 33, 60, 0.12);
  font-weight: 600;
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion small {
  color: var(--ink-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.suggestion:hover,
.suggestion.is-active {
  background: var(--gold);
}

.primary {
  font: inherit;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  background: var(--red-strong);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.primary:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.ghost {
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 2px solid rgba(23, 33, 60, 0.3);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.lives {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.feedback {
  margin: 18px 0 0;
  font-size: 16px;
  font-weight: 600;
  min-height: 22px;
}

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

.feedback--bad {
  color: var(--red);
}

.feedback--warn {
  color: #9a6b00;
}

.next {
  margin-top: 14px;
}

.recap {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 0;
}

.recap li {
  font-size: 14px;
  line-height: 1.45;
  padding: 11px 2px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
}

.recap li:last-child {
  border-bottom: 1px solid var(--rule);
}

.recap .mark {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 17px;
  line-height: 1.3;
}

.recap .mark--ok {
  color: var(--green);
}

.recap .mark--ko {
  color: var(--red);
}

.recap strong {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stats {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 16px 0 0;
}

@media (max-width: 560px) {
  .masthead {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
  }

  .logo-words small {
    display: none;
  }

  .tabs {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .tab {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
  }

  .score {
    margin-left: auto;
  }

  .page {
    margin: 12px auto 40px;
    padding: 20px 14px 26px;
  }

  .page-head h1 {
    font-size: 27px;
  }

  .record {
    font-size: 22px;
  }

  .slots {
    gap: 6px;
  }

  .slot {
    height: 52px;
    font-size: 10px;
  }

  .guess {
    flex-direction: column;
  }

  .row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .lives {
    flex: 1 1 100%;
    letter-spacing: 0.06em;
  }
}

.langs {
  display: flex;
  border: 2px solid rgba(241, 228, 200, 0.35);
}

.lang {
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: rgba(241, 228, 200, 0.7);
  cursor: pointer;
}

.lang:hover {
  color: var(--paper);
}

.lang.is-active {
  background: var(--paper);
  color: var(--cover-deep);
}

.help-button {
  font: inherit;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 15px;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(241, 228, 200, 0.35);
  background: transparent;
  color: rgba(241, 228, 200, 0.75);
  cursor: pointer;
  line-height: 1;
}

.help-button:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, 0.82);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 40;
  overflow-y: auto;
}

.overlay[hidden] {
  display: none;
}

.rules-card {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 7px 8px 0 var(--gold);
  padding: 26px 24px;
  max-width: 480px;
  width: 100%;
}

.rules-card h2 {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
  border-bottom: 3px double var(--rule);
  padding-bottom: 12px;
}

.rules-list {
  list-style: none;
  counter-reset: rule;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.rules-list li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.rules-list li::before {
  content: counter(rule);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 19px;
  color: var(--paper);
  background: var(--red);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: rotate(-3deg);
}

.rules-list strong {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rules-card .primary {
  width: 100%;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.masthead :focus-visible {
  outline-color: var(--paper);
}

.sticker.is-good {
  border-color: var(--green);
  box-shadow: 6px 7px 0 var(--green);
  animation: verdict 0.3s ease-out;
}

.sticker.is-bad {
  border-color: var(--red);
  box-shadow: 6px 7px 0 var(--red);
  animation: verdict 0.3s ease-out;
}

@keyframes verdict {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

.feedback {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.verdict-mark {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.feedback--good .verdict-mark,
.feedback--bad .verdict-mark {
  color: var(--paper);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  transform: rotate(-3deg);
}

.feedback--good .verdict-mark {
  background: var(--green);
}

.feedback--bad .verdict-mark {
  background: var(--red);
}

.feedback .next {
  flex: 1 1 100%;
}

@media (prefers-reduced-motion: reduce) {
  .sticker.is-good,
  .sticker.is-bad {
    animation: none;
  }
}

@media (max-width: 560px) {
  .slot {
    flex: 0 0 calc(33.333% - 4px);
    max-width: none;
    height: 54px;
    font-size: 11px;
  }

  .slot--training {
    flex: 0 0 auto;
  }
}

.help-button--wide {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-card {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 7px 8px 0 var(--gold);
  padding: 26px 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.stats-card h2 {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
  border-bottom: 3px double var(--rule);
  padding-bottom: 12px;
}

.stats-card h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 22px 0 10px;
}

.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.figure strong {
  display: block;
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}

.figure span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.bars li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bars .note {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 15px;
  width: 14px;
  flex: none;
}

.bars .bar {
  background: var(--rule);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  text-align: right;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bars .bar--last {
  background: var(--gold);
}

.history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
}

.time-mini {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.stats-best-time {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.grid-mini {
  letter-spacing: 2px;
  font-size: 13px;
}

.stats-empty,
.stats-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 18px 0 0;
}

.stats-card .primary {
  width: 100%;
  margin-top: 20px;
}

.legend {
  margin: -10px 0 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.rule-demo {
  display: block;
  margin: 10px 0 8px;
}

.rule-demo .guess-row {
  border-left-color: var(--gold);
}

.rule-read {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}

.rule-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.rule-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.key-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--rule);
}

.key-dot--exact { background: var(--green); border-color: var(--green); }
.key-dot--close { background: var(--gold); border-color: var(--gold); }
.key-dot--wrong { background: var(--card); }

.gate-intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

#gate-form {
  display: grid;
  gap: 10px;
}

#gate-key {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
}

.gate-error {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}

#gate-cancel {
  margin-top: 10px;
  width: 100%;
}

.flag {
  margin-left: auto;
  white-space: nowrap;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 2px 0 2px 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flag:hover {
  color: var(--red);
}

#report-form {
  display: grid;
  gap: 6px;
}

.report-quote {
  margin: 0 0 12px;
  padding: 9px 11px;
  background: #fdf3d4;
  border-left: 4px solid var(--gold);
  font-size: 13px;
  line-height: 1.5;
}

.report-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

#report-subject,
#report-message,
#report-email {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 15px;
  padding: 9px 11px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
}

#report-message {
  resize: vertical;
}

#report-submit {
  margin-top: 12px;
}

.report-done {
  margin: 0;
  padding: 12px;
  background: #e8f3ec;
  border-left: 4px solid var(--green);
  font-weight: 700;
}

#report-close {
  margin-top: 10px;
  width: 100%;
}

.site-foot {
  padding: 26px 16px 40px;
  text-align: center;
}

.foot-link {
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-shade);
  cursor: pointer;
  padding: 6px 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot-link:hover {
  color: var(--gold);
}

.ad-slot:empty {
  display: none;
}

.ad-slot {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  min-height: 100px;
}

.ad-label {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
}

.legal {
  margin-bottom: 60px;
}

.legal a {
  color: var(--gold);
}

.legal .legal-part {
  margin-top: 40px;
}

.legal-langs,
.legal-date,
.legal-back {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper-shade);
}

.legal-langs {
  margin-top: 24px;
}

.page-title {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 34px;
  margin: 0;
}

.about {
  max-width: 660px;
  margin: 34px auto 0;
  padding: 0 20px;
  color: var(--paper-shade);
}

.about h1 {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 22px;
  color: var(--paper);
  margin: 0 0 12px;
}

.about h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 24px 0 8px;
}

.about p,
.about li {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.about ul {
  margin: 0;
  padding-left: 18px;
}

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 14px 20px;
  background: var(--cover-deep);
  border-top: 3px solid var(--gold);
}

.consent-text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper);
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.consent-actions button {
  flex: 1 1 auto;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .consent-actions {
    width: 100%;
  }
}

.consent-actions .ghost,
.consent-actions .primary {
  min-width: 118px;
  padding: 10px 18px;
  font-size: 14px;
}

.consent-actions .ghost {
  color: var(--paper);
  border: 2px solid var(--paper);
  background: none;
}

.consent-actions .ghost:hover {
  background: var(--paper);
  color: var(--cover-deep);
}

.consent[hidden],
.foot-link[hidden],
.legend[hidden],
.report-quote[hidden],
#report-form[hidden],
.report-done[hidden],
.about-inner[hidden] {
  display: none;
}

.album-count {
  margin: 0 0 14px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.album-hint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
}

.card {
  width: 100%;
  height: 100%;
  font: inherit;
  color: var(--ink);
  text-align: left;
  min-height: 62px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, #f7e6a8 0%, #fff8dc 45%, #e3c96a 100%);
  box-shadow: 2px 2px 0 var(--ink);
}

button.card {
  cursor: pointer;
}

button.card[aria-pressed='true'] {
  outline: 3px solid var(--red);
  outline-offset: 1px;
}

.cards li {
  list-style: none;
}

.album-fact {
  min-height: 2.9em;
  margin: 0 0 10px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
  background: #fff6d6;
  border-left: 3px solid var(--gold);
}


.card-name {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
}

.card-meta {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card--gap {
  align-items: center;
  border: 2px dashed var(--rule);
  background: none;
  box-shadow: none;
  color: var(--rule);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 22px;
}

/* Accueil : les jeux présentés comme les vignettes d'une page d'album */

.home-langs {
  margin-left: auto;
}

.page-sub::first-letter {
  text-transform: uppercase;
}

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.game {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 18px 20px;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 6px 7px 0 rgba(23, 33, 60, 0.85);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(23, 33, 60, 0.25);
  pointer-events: none;
}

.game:hover {
  transform: translate(-2px, -3px) rotate(-0.4deg);
  box-shadow: 9px 11px 0 rgba(23, 33, 60, 0.85);
}

.game .sticker-top {
  margin-bottom: 14px;
}

.badge--gold {
  background: var(--gold);
  color: var(--cover-deep);
  transform: rotate(1deg);
}

.game-art {
  display: grid;
  place-items: center;
  height: 118px;
  margin-bottom: 14px;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.game-art--who {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 7px), var(--cover);
}

.game-art--who span {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 84px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--red);
}

.game-art--path {
  align-content: center;
  gap: 7px;
  padding: 0 16px;
  background: var(--paper);
}

.game-art--path i {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.game-art--path b {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.game-art--path em {
  flex: 1;
  height: 9px;
  background: var(--ink);
  opacity: 0.18;
}

.game-art--path i:nth-child(2) em { max-width: 70%; }
.game-art--path i:nth-child(3) em { max-width: 85%; }
.game-art--path i:nth-child(4) em { max-width: 55%; background: var(--red); opacity: 0.7; }

.game-name {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.game-pitch {
  margin: 6px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
}

.game-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.game-status.is-done {
  color: var(--green);
}

.game-go {
  align-self: flex-start;
}

/* Phone: one sticker a row, as the player prefers. The drawing keeps the proportions it has on a
   computer (16:9) instead of a fixed height: full width and 76 px high, it was squashed flat. */
@media (max-width: 560px) {
  .games {
    gap: 16px;
  }

  .game-art {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 200px;
    margin-bottom: 12px;
  }

  .game-art--who span {
    font-size: 88px;
  }

  .game-name {
    font-size: 26px;
  }
}

.games {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.games .game-name {
  font-size: 25px;
}

.game-art--xi {
  display: grid;
  place-items: stretch;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 14px;
  background: repeating-linear-gradient(180deg, #1f7a4a 0 20px, #1b6e42 20px 40px);
}

.game-art--xi i {
  display: block;
  border: 2px dashed rgba(255, 255, 255, 0.65);
}

.game-art--xi i:nth-child(1) { grid-column: 2 / 4; grid-row: 1; margin: 0 22%; }
.game-art--xi i:nth-child(n + 2):nth-child(-n + 4) { grid-row: 2; }
.game-art--xi i:nth-child(n + 5):nth-child(-n + 8) { grid-row: 3; }
.game-art--xi i:nth-child(n + 9) { display: none; }
.game-art--xi i:nth-child(1) { background: linear-gradient(135deg, #f7e6a8, #e3c96a); border: 2px solid var(--ink); }

/* Quatre jeux : deux vignettes par ligne sur ordinateur */
.games {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.game-art--scorers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 3px 10px;
  place-items: stretch;
  padding: 8px 12px;
  background: var(--cover-deep);
}

.game-art--scorers b {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 0 10px;
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color: var(--gold);
  border: 2px solid rgba(216, 163, 35, 0.5);
}

.game-art--scorers i {
  font-style: normal;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
  color: var(--paper);
  border-right: 3px solid var(--gold);
  padding-right: 6px;
  grid-column: 1;
}

.game-art--scorers i.is-away {
  grid-column: 2;
  text-align: left;
  border-right: 0;
  border-left: 3px solid var(--red);
  padding: 0 0 0 6px;
}

.game-art--scorers i:nth-of-type(4) { grid-row: 2; }
.game-art--scorers i:nth-of-type(5) { grid-row: 3; }
.game-art--scorers i:nth-of-type(6) { grid-row: 4; }

/* ————————————————————————————————————————————————
   Navigation et mise en page communes à toutes les pages
   ———————————————————————————————————————————————— */

:root {
  --page-width: 760px;
}

@media (min-width: 1280px) {
  :root {
    --page-width: 920px;
  }
}

.masthead {
  gap: 16px 24px;
}

.games-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.games-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  padding: 9px 14px;
  color: rgba(241, 228, 200, 0.75);
  border: 2px solid transparent;
}

.games-nav a:hover {
  color: var(--paper);
  border-color: rgba(241, 228, 200, 0.35);
}

.games-nav a.is-active {
  color: var(--cover-deep);
  background: var(--gold);
  border-color: var(--gold);
}

/* la barre de chaque jeu : les modes à gauche, les outils à droite, alignés sur la page */
.gamebar {
  max-width: var(--page-width);
  margin: 18px auto 0;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gamebar .tabs {
  margin-left: 0;
}

.gamebar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.gamebar .score {
  min-width: 0;
  margin-right: 6px;
}

.gamebar .score:empty {
  display: none;
}

.page {
  max-width: var(--page-width);
}

.gamebar + .page {
  margin-top: 12px;
}

.about {
  max-width: var(--page-width);
}

/* l'accueil prend toute la largeur utile : trois vignettes par ligne sur grand écran (six jeux) */
.page.home {
  max-width: min(1180px, calc(100% - 40px));
}

@media (min-width: 1100px) {
  .page.home .games {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .masthead {
    flex-wrap: wrap;
    padding: 12px 14px 10px;
  }

  .games-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -14px;
    padding: 0 14px;
  }

  .games-nav a {
    padding: 7px 10px;
    font-size: 11px;
  }

  .langs {
    margin-left: auto;
  }

  .gamebar {
    margin: 12px 14px 0;
  }

  .page.home {
    max-width: none;
  }
}

/* Navigation : tablette et petit portable, puis téléphone (les six jeux toujours visibles, sur deux rangées) */
@media (max-width: 1000px) {
  .masthead .logo-words small {
    display: none;
  }

  .games-nav a {
    padding: 8px 10px;
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .games-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .games-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 4px;
    font-size: 10px;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    border-color: rgba(241, 228, 200, 0.2);
  }
}

/* La barre de jeu garde son ordre sur téléphone : les modes d'abord, les outils ensuite */
.gamebar .tabs {
  order: 0;
  width: auto;
  flex: 0 1 auto;
}

@media (max-width: 560px) {
  .gamebar .tabs {
    flex: 1 1 auto;
  }
}

.nowrap {
  white-space: nowrap;
}

/* Consentement : une fenêtre au milieu de l'écran, impossible à manquer.
   « Refuser » et « Accepter » ont exactement la même taille et le même style (exigence de la CNIL). */
.consent {
  top: 50%;
  bottom: auto;
  left: 50%;
  right: auto;
  width: min(460px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 26px 24px 22px;
  background: var(--cover-deep);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 100vmax rgba(10, 16, 30, 0.72), 8px 9px 0 rgba(0, 0, 0, 0.35);
  z-index: 60;
}

.consent-text {
  flex: none;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.consent-actions {
  width: 100%;
  gap: 12px;
}

.consent-actions .ghost,
.consent-actions .primary {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 10px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cover-deep);
  background: var(--paper);
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  transform: none;
}

.consent-actions .ghost:hover,
.consent-actions .primary:hover {
  color: var(--cover-deep);
  background: var(--gold);
  border-color: var(--gold);
}

/* Quand un jeu ne se charge pas : la cause, quoi faire, et les autres jeux en attendant */
.failure {
  padding: 26px 12px 18px;
  text-align: center;
}

.failure-title {
  margin: 0 0 8px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--red);
}

.failure-text {
  max-width: 460px;
  margin: 0 auto 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.failure-others {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.failure-others a {
  color: var(--ink);
  font-weight: 700;
}

/* Previous days of Le Onze and Les Buteurs (src/archive.js): a column of the album's index. */
.archive {
  margin-top: 28px;
}

.archive h2 {
  margin: 0 0 10px;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.archive-back {
  margin: 0 0 10px;
  font-size: 14px;
}

.archive-back a {
  color: var(--red-strong);
  font-weight: 700;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.archive-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.archive-list a:hover,
.archive-list a:focus-visible {
  border-color: var(--ink);
}

.archive-list .is-current a {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(23, 33, 60, 0.6);
}

.archive-number {
  font-weight: 700;
  font-size: 14px;
}

.archive-date {
  grid-column: 1;
  font-size: 12px;
  color: var(--ink-soft);
}

.archive-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.archive-status.is-done {
  color: var(--green);
  font-weight: 700;
}

/* A link dressed as the main button ("Play today's career"). */
a.primary {
  display: inline-block;
  text-decoration: none;
}

/* Qui suis-je ?: "See the career path" under the answer, towards Le Parcours. */
.career-link {
  flex: 1 1 100%;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

/* Home: the streak shared by the four games, a strip of the album's paper. */
.home-streak {
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px dashed var(--rule);
  background: rgba(255, 253, 246, 0.6);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
}

.home-streak.is-alive {
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(23, 33, 60, 0.6);
}

/* The end-of-game card shared by the four games (src/end-card.js). */
.end-card {
  position: relative;
  margin-bottom: 22px;
  padding: 16px 18px 18px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 6px 7px 0 rgba(23, 33, 60, 0.85);
  text-align: center;
  animation: end-appear 0.4s ease-out;
}

.end-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(23, 33, 60, 0.25);
  pointer-events: none;
}

/* It spans the page: it slides in without growing, so it never overflows. */
@keyframes end-appear {
  from { transform: translateY(8px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .end-card {
    animation: none;
  }
}

.end-card .sticker-top {
  text-align: left;
}

.end-verdict {
  margin: 10px 0 0;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 40px;
  line-height: 1.05;
  text-transform: uppercase;
}

.end-card.is-won .end-verdict {
  color: var(--green);
}

.end-card.is-lost .end-verdict {
  color: var(--red-strong);
}

.end-score {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.end-grid {
  margin: 10px 0 0;
  font-size: 20px;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
}

.end-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
}

a.ghost {
  display: inline-block;
  text-decoration: none;
}

.end-streak {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.end-streak.is-alive {
  color: var(--ink);
}

.end-next {
  margin: 12px 0 0;
}

.end-next h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.end-next ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 6px;
}

.end-next a {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 8px 4px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.end-next a:hover,
.end-next a:focus-visible {
  border-color: var(--ink);
}

.end-next strong {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.end-next span {
  font-size: 11px;
  color: var(--ink-soft);
}

.end-next .is-done span {
  color: var(--green);
  font-weight: 700;
}

.end-next .is-todo {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.end-countdown {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.end-countdown b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.end-countdown a {
  position: relative;
  z-index: 1;
  color: var(--red-strong);
  font-weight: 700;
}

@media (max-width: 420px) {
  .end-next ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .end-verdict {
    font-size: 32px;
  }

  .end-next strong {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .games-nav a {
    font-size: 10px;
    letter-spacing: 0.03em;
  }
}

/* Home: La Grille's card, a small album grid: club bands in their colours (never a crest),
   stylised flags, stickers already stuck and the box being filled. */
.game-art--grid {
  display: grid;
  grid-template-columns: 0.75fr repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
  padding: 8px 10px;
  place-items: stretch;
  background: var(--paper);
}

.game-art--grid > * {
  justify-self: stretch;
  align-self: stretch;
  min-width: 0;
}

.game-art--grid .club,
.game-art--grid .nation {
  position: relative;
  display: grid;
  place-items: end center;
  padding-bottom: 2px;
  border: 1.5px solid var(--ink);
  overflow: hidden;
}

.game-art--grid .club span {
  padding: 0 4px;
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
}

.game-art--grid .club--real { background: var(--card); box-shadow: inset 0 0 0 2px var(--gold); }
.game-art--grid .club--juve { background: repeating-linear-gradient(90deg, #111 0 5px, #fff 5px 10px); }
.game-art--grid .club--inter { background: repeating-linear-gradient(90deg, #0b3d91 0 5px, #111 5px 10px); }
.game-art--grid .nation--bra { background: #009c3b; }
.game-art--grid .nation--bra::before {
  content: '';
  position: absolute;
  inset: 22% 18%;
  background: #ffdf00;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.game-art--grid .nation--fra { background: linear-gradient(90deg, #0055a4 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); }

.game-art--grid em {
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 9px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px dashed var(--rule);
  background: rgba(255, 255, 255, 0.4);
}

.game-art--grid em.is-found {
  border: 1.5px solid var(--ink);
  background: linear-gradient(118deg, #ffe9a8 0%, #fff8e2 26%, #f6d97a 45%, #fffdf6 62%, #ffe9a8 100%);
  box-shadow: 1.5px 2px 0 rgba(23, 33, 60, 0.55);
  transform: rotate(-2deg);
}

.game-art--grid em.is-found:nth-of-type(even) {
  transform: rotate(2deg);
}

.game-art--grid em.is-picked {
  font-size: 18px;
  border: 1.5px solid var(--ink);
  background: #fff6d6;
  box-shadow: 1.5px 2px 0 var(--ink);
}

/* Home: Le Lien's card, a chain of stickers joined by the team they shared. */
.game-art--link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 10px;
  background: var(--paper);
}

.game-art--link b {
  flex: 0 1 auto;
  min-width: 0;
  padding: 6px 7px;
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  background: linear-gradient(118deg, #ffe9a8 0%, #fff8e2 26%, #f6d97a 45%, #fffdf6 62%, #ffe9a8 100%);
  box-shadow: 1.5px 2px 0 rgba(23, 33, 60, 0.55);
}

.game-art--link b:first-child {
  color: var(--paper);
  background: var(--cover);
}

.game-art--link b.is-goal {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.4);
  border-style: dashed;
  box-shadow: none;
}

.game-art--link i {
  position: relative;
  flex: 1 1 26px;
  max-width: 54px;
  height: 3px;
  background: var(--ink);
}

.game-art--link i span {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-strong);
  white-space: nowrap;
}

.game-art--link i.is-open {
  background: repeating-linear-gradient(90deg, var(--rule) 0 5px, transparent 5px 9px);
}

.game-art--link i.is-open span {
  color: var(--ink-soft);
  font-family: 'Anton', Impact, sans-serif;
  font-size: 12px;
}
