@charset "UTF-8";

:root {
  --color-tone-1: #1a1a1b;
  --color-tone-2: #454747;
  --color-tone-3: #b1b3b4;
  --color-tone-4: #d3d6da;
  --color-tone-5: #edeff1;
  --color-tone-6: #f6f7f8;
  --color-tone-7: #fff;
  --green: #6fb05c;
  --yellow: #e9ba3a;
  --opacity-50: hsla(0, 0%, 100%, 0.5);
  --easing: cubic-bezier(0.19, 1, 0.22, 1);
  --orange: #f5793a;
  --blue: #509ce5;
  --font-size: 20px;
  --board-size: 450px;
  --tile-font-size: 2rem;
  --vertical-spacing: 0.7rem;
  --title-font: "Nunito", sans-serif;
  --title-font-weight: 700;
  --tile-font: var(--title-font);
  --tile-font-weight: var(--title-font-weight);
}

@font-face {
  font-display: block;
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  src: url(lato-v22-latin-ext_latin-regular.7cbce79e.eot);
  src: local(""),
    url(lato-v22-latin-ext_latin-regular.7cbce79e.eot#iefix) format("embedded-opentype"),
    url(lato-v22-latin-ext_latin-regular.b03f97ff.woff2) format("woff2"),
    url(lato-v22-latin-ext_latin-regular.dc49162e.woff) format("woff"),
    url(lato-v22-latin-ext_latin-regular.7af0de67.ttf) format("truetype"),
    url(lato-v22-latin-ext_latin-regular.d22ab101.svg#Lato) format("svg");
}

@font-face {
  font-display: block;
  font-family: Lato;
  font-style: italic;
  font-weight: 400;
  src: url(lato-v22-latin-ext_latin-italic.e8f271df.eot);
  src: local(""),
    url(lato-v22-latin-ext_latin-italic.e8f271df.eot#iefix) format("embedded-opentype"),
    url(lato-v22-latin-ext_latin-italic.23055fc8.woff2) format("woff2"),
    url(lato-v22-latin-ext_latin-italic.92bdc861.woff) format("woff"),
    url(lato-v22-latin-ext_latin-italic.050938ac.ttf) format("truetype"),
    url(lato-v22-latin-ext_latin-italic.8fcbf222.svg#Lato) format("svg");
}

@font-face {
  font-display: block;
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  src: url(lato-v22-latin-ext_latin-700.88c8b097.eot);
  src: local(""),
    url(lato-v22-latin-ext_latin-700.88c8b097.eot#iefix) format("embedded-opentype"),
    url(lato-v22-latin-ext_latin-700.423a2e25.woff2) format("woff2"),
    url(lato-v22-latin-ext_latin-700.b7de945e.woff) format("woff"),
    url(lato-v22-latin-ext_latin-700.64fe1735.ttf) format("truetype"),
    url(lato-v22-latin-ext_latin-700.c68fab10.svg#Lato) format("svg");
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400;
  src: url(nunito-v22-latin-regular.dabd829c.eot);
  src: local(""),
    url(nunito-v22-latin-regular.dabd829c.eot#iefix) format("embedded-opentype"),
    url(nunito-v22-latin-regular.16438a5a.woff2) format("woff2"),
    url(nunito-v22-latin-regular.614dad95.woff) format("woff"),
    url(nunito-v22-latin-regular.c87654ed.ttf) format("truetype"),
    url(nunito-v22-latin-regular.948626bb.svg#Nunito) format("svg");
}

@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 700;
  src: url(nunito-v22-latin-700.207de639.eot);
  src: local(""),
    url(nunito-v22-latin-700.207de639.eot#iefix) format("embedded-opentype"),
    url(nunito-v22-latin-700.2642b195.woff2) format("woff2"),
    url(nunito-v22-latin-700.324cebaa.woff) format("woff"),
    url(nunito-v22-latin-700.73d42436.ttf) format("truetype"),
    url(nunito-v22-latin-700.92c35de1.svg#Nunito) format("svg");
}

.modal {
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  left: 0;
  max-height: 100%;
  min-height: 100%;
  opacity: 0;
  overflow-y: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 0.3s var(--easing);
  width: 100%;
  z-index: 10;
}

.modal .modal__content {
  background-color: var(--color-tone-7);
  border-radius: 5px;
  margin: auto;
  margin: var(--vertical-spacing) auto;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.5rem 1rem;
  position: relative;
  transform: translateY(10%);
  transition: transform 0.3s var(--easing);
  width: 100%;
  width: 600px;
}

.modal .modal__content>* {
  margin: auto;
}

.modal .modal__content header {
  background: var(--color-tone-7);
  margin: -0.5rem -1rem 1rem;
  padding: 0;
  position: sticky;
  top: -0.5rem;
}

.modal .modal__content header button {
  align-items: center;
  display: flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.modal .modal__content header button svg {
  height: 1.5rem;
  width: 1.5rem;
}

.modal .modal__content h1 {
  flex-grow: 1;
  font-size: 1.4rem;
}

.modal .modal__content> :not(header) {
  margin: var(--vertical-spacing);
}

.modal .modal__content hr {
  border: solid var(--color-tone-4);
  border-width: 1px 0 0;
  margin: calc(var(--vertical-spacing) * 2);
  opacity: 1;
}

.modal .modal__content p {
  text-align: left;
}

.modal .modal__content .tile {
  font-size: 27px;
  height: 50px;
  margin: 2px;
  pointer-events: none;
  position: static;
  width: 50px;
}

.modal.modal--show {
  opacity: 1;
  pointer-events: all;
}

.modal.modal--show .modal__content {
  transform: translateY(0);
}

.modal.success .modal__content {
  border-radius: 0;
  height: auto;
  margin: 33vh auto auto;
  padding: 0 1rem;
  position: static;
  width: 100%;
}

.modal.success .modal__content h2 {
  font-size: 2rem;
}

.modal.settings .modal__content {
  border: 1px solid var(--color-tone-4);
  box-shadow: 1px 5px 14px rgba(0, 0, 0, 0.24), 0 1px 3px rgba(0, 0, 0, 0.32);
  margin: auto;
}

.modal.settings .modal__content .row {
  justify-content: space-between;
}

.modal.settings .modal__content p {
  text-align: center;
}

.modal.settings .modal__content p:not(.smalltext) {
  margin-bottom: 1.2rem;
  margin-top: -5px;
}

.modal.settings .warning,
.modal.settings.settings__timezone-disabled .smalltext {
  display: none;
}

.modal.settings.settings__timezone-disabled .warning {
  display: block;
  margin: 1rem 2rem;
}

.modal.settings.settings__timezone-disabled .settings__timezone-row {
  opacity: 0.3;
  pointer-events: none;
}

.modal.settings footer {
  border-bottom: none;
  color: var(--color-tone-3);
  font-size: 0.8rem;
  line-height: 1.2rem;
  margin: 1rem -1rem -0.5rem;
  padding: 0.8rem 1rem;
  text-align: center;
  width: auto;
}

.modal.help .modal__content {
  margin: 0 auto;
}

.modal.help .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.modal.game-article .modal__content {
  margin: 0 auto;
}

.modal.game-article article {
  margin: 0;
  padding: 0;
}

.modal.game-article article ul {
  margin: 1em 0;
}

.modal.game-article article li {
  margin-bottom: 0.5em;
}

.modal.game-article article li:last-child {
  margin-bottom: 0;
}

.modal.statistics .modal__content {
  margin-bottom: auto;
  margin-top: auto;
  max-height: 95vh;
  padding-bottom: 1rem;
}

.modal.statistics header {
  border-bottom: none;
  margin-bottom: calc(var(--vertical-spacing));
}

.modal.statistics .stat-row {
  margin: 0 -1rem;
  width: calc(100% + 2rem);
}

.modal.statistics .stat-row:first-of-type {
  border-top: 1px solid var(--color-tone-4);
}

.modal.statistics h3 {
  margin-top: calc(var(--vertical-spacing) * 2);
}

.modal.statistics .stats {
  margin-left: -1rem;
  margin-right: 1rem;
  width: calc(100% + 2rem);
}

.modal.statistics .stats__label:first-child {
  padding-left: 1rem;
  padding-right: 0.5rem;
  width: 4rem;
}

.modal.statistics .stats__label:nth-child(3) {
  padding-right: 1rem;
  width: 4rem;
}

.switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.switch input {
  height: 0;
  opacity: 0;
  width: 0;
}

.slider {
  background-color: var(--color-tone-4);
  border-radius: 6px;
  bottom: 0;
  cursor: pointer;
  left: 0;
  right: 0;
  top: 0;
}

.slider,
.slider:before {
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  background-color: #fff;
  border-radius: 5px;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  width: 26px;
}

input:checked+.slider {
  background-color: var(--green);
}

.switch--no-color .slider {
  background-color: var(--yellow);
}

.switch--no-color input:checked+.slider {
  background-color: var(--green);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--green);
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

* {
  transition: background-color 0.2s var(--easing), color 0.2s var(--easing);
}

button {
  align-items: center;
  background-color: var(--green);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-family: var(--tile-font);
  font-size: var(--font-size);
  font-weight: var(--tile-font-weight);
  letter-spacing: calc(var(--font-size) * 0.1);
  line-height: var(--font-size);
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.2s var(--easing);
}

button:active {
  transform: translateY(2px);
}

button:not(.icon-button) {
  height: 2.7rem;
  padding: 0 2rem;
}

button:not(.icon-button) svg {
  fill: #fff;
  margin-left: 0;
  margin-right: 0.3rem;
  opacity: 0.7;
  transform: translateX(-0.5rem);
}

.icon-button {
  background-color: var(--color-tone-6);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  height: 2.4rem;
  margin: 0 0.5rem;
  padding: 0.6rem;
  width: 2.4rem;
}

.icon-button svg {
  fill: var(--color-tone-1);
  height: 100%;
  width: 100%;
}

.button--showsolution {
  display: none;
}

.button--close {
  background: none;
  padding: 0.9rem;
}

.button--blank {
  background: none !important;
  pointer-events: none;
}

button img {
  height: 32px;
  margin: 0 0.5rem;
  object-fit: contain;
  width: 32px;
}

.tile {
  align-items: center;
  background-color: var(--color-tone-5);
  border-bottom: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12%;
  cursor: pointer;
  display: flex;
  font-family: var(--tile-font);
  font-size: var(--tile-font-size);
  font-weight: var(--tile-font-weight);
  height: var(--tile-size);
  justify-content: center;
  padding-top: 1%;
  position: absolute;
  transition: transform 0.3s var(--easing), background-color 1s var(--easing);
  width: var(--tile-size);
}

.tile--dragging {
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--easing), zoom 0.2s var(--easing);
  z-index: 1;
}

.tile--dropped {
  z-index: 1;
}

.gameover .space {
  opacity: 0;
}

.tile.blank {
  background-color: var(--color-tone-7);
  border: none;
}

.green {
  background-color: var(--green);
  color: #fff;
  cursor: default;
}

.yellow {
  background-color: var(--yellow);
  color: #fff;
}

.animate,
.animate--infinite {
  animation: rainbow 0.4s linear, bounce 0.6s linear;
}

.animate,
.animate--infinite,
.html--darkmode .animate,
.html--darkmode .animate--infinite {
  --red: #c95050;
  --blue: #5c85b0;
  --purple: #805cb0;
}

.animate--infinite {
  animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
  0% {
    background-color: #e00;
  }

  50% {
    background-color: #ffa7a7;
  }

  to {
    background-color: #e00;
  }
}

@keyframes bounce {
  0% {
    margin-top: 0;
  }

  30% {
    margin-top: -20px;
  }

  70% {
    margin-top: 6px;
  }

  90% {
    margin-top: -8px;
  }

  to {
    margin-top: 0;
  }
}

html {
  background-color: var(--color-tone-5);
  color: var(--color-tone-1);
  font-family: Lato, sans-serif;
  font-size: var(--font-size);
  overflow: hidden;
}

body,
html {
  height: 100%;
  overscroll-behavior: contain;
}

body {
  -webkit-tap-highlight-color: transparent;
  background-color: var(--color-tone-7);
  display: flex;
  flex-direction: column;
  left: 0;
  margin: auto;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  position: relative;
  right: 0;
  width: 700px;
}

.body--modalopen,
body:not(.gameover) {
  overflow: hidden;
}

hr {
  opacity: 0.3;
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

main {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: visible;
}

h1,
h3 {
  font-family: var(--title-font);
  font-weight: var(--title-font-weight);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

h1 {
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
  line-height: 1.8rem;
}

h2,
h3 {
  font-size: 1rem;
}

h2,
h3,
h4 {
  letter-spacing: 1px;
}

h4 {
  color: var(--color-tone-3);
  font-size: 0.8rem;
}

label {
  letter-spacing: 1px;
  text-transform: uppercase;
}

a,
a:hover,
a:visited {
  color: var(--green);
  text-decoration: none;
}

footer {
  background-color: var(--color-tone-6);
  border-bottom: 1px solid var(--color-tone-4);
  border-top: 1px solid var(--color-tone-4);
  color: var(--color-tone-3);
  font-size: 0.9rem;
  margin-top: calc(var(--vertical-spacing) * 2);
  padding: 1rem;
  text-align: center;
  width: 100%;
}

/* Social icons in game footer */
.social-icons-row {
  gap: 12px;
  /* increase horizontal spacing between icons */
}

.social-icons-row .social-icon {
  width: 40px;
  /* increased icon size */
  height: 40px;
  /* increased icon size */
}

.game footer {
  display: none;
}

.game.gameover footer {
  display: block;
}

.row {
  flex-direction: row;
}

.col,
.row {
  align-items: center;
  display: flex;
  justify-content: center;
}

.col {
  flex-direction: column;
}

.warning {
  font-weight: 700;
}

.space {
  border: 2px solid var(--color-tone-5);
  border-radius: 0.4rem;
  height: var(--tile-size);
  position: absolute;
  width: var(--tile-size);
}

.solution .tile {
  font-size: 27px;
  height: 50px;
  margin: 2px;
  pointer-events: none;
  position: static;
  width: 50px;
}

.archive,
.archive-main,
.deluxe,
.game-main,
.unlimited {
  bottom: 0;
  display: none;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: var(--header-height);
  transition: transform 0.5s var(--easing), opacity 0.5s var(--easing);
}

.body--loading .game-main {
  transform: translate(0);
  transition: none;
}

.game-main {
  transform: translate(200px);
}

.game-main .footer {
  display: none;
}

.archive,
.deluxe,
.unlimited {
  transform: translate(-200px);
}

.archive-main {
  transform: translate(200px);
}

body.unlimited--active {
  overflow: hidden;
}

body.unlimited--active .unlimited {
  display: flex;
  opacity: 1;
  pointer-events: all;
  transform: translate(0);
}

body.deluxe--active {
  overflow: hidden;
}

body.deluxe--active .deluxe {
  display: flex;
  opacity: 1;
  pointer-events: all;
  transform: translate(0);
}

body.archive--active {
  overflow: hidden;
}

body.archive--active .archive {
  display: flex;
  opacity: 1;
  pointer-events: all;
  transform: translate(0);
}

body.daily--active {
  overflow: hidden;
}

body.daily--active .game-main {
  display: flex;
  opacity: 1;
  pointer-events: all;
  transform: translate(0);
}

body.archive-main--active {
  overflow: hidden;
}

body.archive-main--active .archive-main {
  opacity: 1;
  pointer-events: all;
  transform: translate(0);
}

.top {
  flex-direction: column;
  flex-shrink: 0;
  height: 80vh;
  justify-content: center;
  transition: height 1s var(--easing);
}

.game-number,
.top {
  align-items: center;
  display: flex;
}

.game-number {
  color: var(--color-tone-3);
  flex-direction: row;
  font-family: var(--title-font);
  font-size: 0.9rem;
  height: 100px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  transition: height 0.5s var(--easing);
}

.board {
  flex-shrink: 0;
  height: var(--board-size);
  position: relative;
  width: var(--board-size);
}

.swaps {
  align-items: center;
  color: var(--color-tone-3);
  display: flex;
  flex-direction: row;
  font-family: var(--title-font);
  font-size: 1.2rem;
  font-weight: 400;
  height: 100px;
  letter-spacing: 2px;
  line-height: 1.2rem;
  max-width: var(--board-size);
  text-align: center;
  text-transform: uppercase;
  transition: margin-top 1s var(--easing);
}

.swaps__val {
  color: var(--color-tone-1);
  font-weight: 700;
  margin-right: 0.5rem;
  opacity: 1;
}

.nostars {
  font-size: 1.2rem;
  line-height: 1.2rem;
  margin-bottom: calc(var(--vertical-spacing) * 1);
  margin-top: calc(var(--vertical-spacing) * 0.5);
}

.smalltext {
  color: var(--color-tone-3);
  font-size: 0.8rem;
  line-height: 1.2rem;
  opacity: 0.8;
  text-align: center;
}

.stars {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  font-size: 2.5rem;
  height: 2.5rem;
  justify-content: center;
  letter-spacing: 0.5rem;
  line-height: 2.5rem;
}

.stars .star,
.stars img {
  height: 2.5rem;
  margin: 0 0.5rem;
  width: 2.5rem;
}

.stars .star {
  background-image: url(star.21fc9b3a.svg);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
}

.summary {
  align-items: center;
  border-bottom: 1px solid var(--color-tone-4);
  border-top: 1px solid var(--color-tone-4);
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  margin: calc(var(--vertical-spacing) * 1.5) 0;
  min-height: 4rem;
  padding-bottom: var(--vertical-spacing);
  width: 100%;
}

.summary .row {
  justify-content: space-evenly;
  margin-top: var(--vertical-spacing);
  max-width: 90vw;
  width: var(--board-size);
}

.summary .row button {
  margin: 0 0.5rem;
}

.success__timer {
  text-align: center;
}

.success__timer .success__timer-val {
  font-size: 1.5rem;
}

.note {
  border-bottom: 1px solid var(--color-tone-4);
  color: var(--color-tone-2);
  display: none;
  font-size: 0.9rem;
  line-height: 1.4rem;
  margin-bottom: calc(var(--vertical-spacing) * 2);
  margin-top: calc(var(--vertical-spacing) * -2);
  padding: calc(var(--vertical-spacing) * 2) 2rem;
  text-align: center;
  white-space: pre-wrap;
  width: 100%;
}

.definition {
  flex-shrink: 0;
  margin: 0 auto calc(var(--vertical-spacing) * 2) auto;
  max-width: 90vw;
  text-align: justify;
  width: var(--board-size);
}

.definition__word {
  font-size: 1.1rem;
  font-weight: 700;
}

.definition__type {
  font-style: italic;
  opacity: 0.5;
}

.definition__example {
  font-size: 0.9rem;
  font-style: italic;
  margin: 0.2rem 0;
}

.definition__origin {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.6;
}

.definition__fact {
  font-size: 0.9rem;
  font-weight: 700;
}

.showdefinitions .definitions,
.success .definitions {
  display: block;
}

.showdefinitions .definition,
.success .definition {
  opacity: 1;
}

.gameovermessage,
.successmessage {
  align-items: center;
  background-color: var(--color-tone-6);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 1.2rem;
  justify-content: center;
  text-align: center;
  transition: height 0.5s var(--easing);
  width: 100%;
}

.gameovermessage h2,
.successmessage h2 {
  font-family: var(--title-font);
  font-size: 1.4rem;
  font-weight: var(--title-font-weight);
}

.successmessage {
  display: none;
  height: 90px;
  margin-bottom: calc(var(--vertical-spacing) * 1.5);
  overflow: visible;
}

.successmessage h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
}

.successmessage p {
  font-size: 0.8rem;
  margin: 5px 0 0;
  text-transform: none;
}

.gameovermessage {
  background-color: var(--color-tone-2);
  color: var(--color-tone-7);
  display: none;
  height: 0;
  letter-spacing: 1px;
  line-height: 3rem;
  margin-bottom: calc(var(--vertical-spacing) * 1.5);
  overflow: hidden;
  text-transform: uppercase;
}

.solution {
  grid-gap: 0.1rem;
  flex-shrink: 0;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  margin-bottom: calc(var(--vertical-spacing) * 2);
  margin-top: var(--vertical-spacing);
}

.showsolution .button--showsolution,
.solution {
  display: none;
}

.showsolution .solution {
  display: grid;
}

.error {
  align-items: center;
  color: var(--color-tone-3);
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.definition,
.nostars,
.stars,
.summary {
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--easing);
}

.nostars {
  display: none;
  flex-shrink: 0;
}

.game {
  overflow: hidden;
}

.definitions,
.nostars,
.stars {
  display: none;
}

.archive-main.gameover,
.deluxe.gameover,
.gameover,
.unlimited.gameover {
  overflow-y: auto;
  padding-bottom: 2rem;
}

.archive-main.gameover .note,
.deluxe.gameover .note,
.gameover .note,
.unlimited.gameover .note {
  display: block;
}

.archive-main.gameover .top,
.deluxe.gameover .top,
.gameover .top,
.unlimited.gameover .top {
  height: calc(var(--board-size) + 130px);
}

.archive-main.gameover .game-number,
.deluxe.gameover .game-number,
.gameover .game-number,
.unlimited.gameover .game-number {
  height: 50px;
}

.archive-main.gameover .swaps,
.deluxe.gameover .swaps,
.gameover .swaps,
.unlimited.gameover .swaps {
  height: 80px;
}

.archive-main.gameover .nostars,
.deluxe.gameover .nostars,
.gameover .nostars,
.unlimited.gameover .nostars {
  opacity: 1;
}

.archive-main.gameover .summary,
.deluxe.gameover .summary,
.gameover .summary,
.unlimited.gameover .summary {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.archive-main.gameover .game-main .footer,
.deluxe.gameover .game-main .footer,
.gameover .game-main .footer,
.unlimited.gameover .game-main .footer {
  display: block;
}

.success .definition,
.success .stars {
  opacity: 1;
  pointer-events: all;
}

.success .solution {
  display: none;
}

.success .successmessage {
  display: flex;
}

.success .note {
  display: block;
}

.success .gameovermessage {
  display: none;
}

.gameover:not(.success) .board .tile {
  background-color: var(--color-tone-2);
  color: #fff;
  cursor: none;
  pointer-events: none;
}

.gameover:not(.success) .gameovermessage {
  display: block;
  height: 3rem;
}

.gameover:not(.success) .stars {
  display: none;
}

.gameover:not(.success) .nostars {
  display: block;
  opacity: 1;
}

.gameover:not(.success) .button--showsolution {
  display: block;
}

.switch-tab {
  background-color: var(--color-tone-6);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin: 0 4px 4px;
  padding: 8px 4px;
  text-align: center;
  width: 50%;
}

.switch-tab span:first-child {
  font-size: 0.7rem;
}

.switch-tab span:nth-child(2) {
  font-weight: 700;
}

.switch-tab span:nth-child(3) {
  font-size: 0.7rem;
}

.switch-tab__selected {
  background-color: var(--green);
  color: #fff;
}

.stat-row {
  border-bottom: 1px solid var(--color-tone-4);
  display: flex;
  flex-shrink: 0;
  font-size: 0.8rem;
  height: 2rem;
  letter-spacing: 1px;
  line-height: 2rem;
  margin: 0;
  text-transform: uppercase;
  width: 100%;
}

.stat-row__label {
  background-color: var(--color-tone-6);
  padding-right: 0.5rem;
  text-align: right;
  width: 50%;
}

.stat-row__val {
  font-weight: 700;
  padding-left: 0.5rem;
  width: 50%;
}

.stats__row {
  display: flex;
  padding: 5px 0;
}

.stats__row:nth-child(odd) {
  background-color: var(--color-tone-6);
}

.stats .stat-row.games-played {
  border-top: 1px solid var(--color-tone-4);
}

.stats__label {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  justify-content: center;
  line-height: 24px;
  text-align: center;
  width: 3rem;
}

.stats__label img {
  stroke: var(--color-tone-2);
  height: 16px;
  margin-left: 5px;
  width: 16px;
}

.stats__label:nth-child(3) {
  font-size: 0.75rem;
  justify-content: flex-end;
  line-height: 24px;
  opacity: 0.5;
  padding-right: 4px;
  text-align: right;
}

.stats__val {
  flex-grow: 1;
}

.stats__bar {
  background-color: var(--green);
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  line-height: 24px;
  min-width: 1rem;
  padding-right: 10px;
  text-align: right;
}

.stats__bar--empty {
  background-color: var(--color-tone-3);
  padding-right: 0;
  text-align: center;
}

.modal .modal__content .statistics__selector-row {
  margin-top: 0;
}

.archive {
  overflow-y: auto;
}

.archive .item.template {
  display: none;
}

.archive__items {
  width: 100%;
}

.archive .item {
  background-color: var(--color-tone-6);
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  height: 70px;
  margin: 0.4rem 1rem;
  padding-left: 1rem;
  width: calc(100% - 2rem);
}

.archive .item__icon {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  height: 80px;
  justify-content: center;
  width: 80px;
}

.archive .item__icon img {
  height: 48px;
  width: 48px;
}

.archive .item__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  line-height: 1.8rem;
  text-align: left;
}

.archive .item__date {
  font-size: 0.7rem;
  opacity: 0.7;
  text-align: left;
}

.archive .item__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  justify-content: center;
  position: relative;
  text-align: left;
}

.archive .item__stars {
  align-items: center;
  bottom: 0;
  color: var(--color-tone-3);
  display: flex;
  font-family: var(--title-font);
  font-weight: 400;
  letter-spacing: 2px;
  position: absolute;
  right: 1rem;
  text-transform: uppercase;
  top: 0;
}

.archive .item__stars img {
  height: 28px;
  margin: 2px;
  width: 28px;
}

.unlimited {
  display: flex;
  flex-direction: column;
}

.unlimited .top {
  height: 80vh;
  justify-content: center;
  transition: height 1s var(--easing);
}

.unlimited .summary,
.unlimited .top {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.unlimited .summary {
  border-bottom: 1px solid var(--color-tone-4);
  border-top: 1px solid var(--color-tone-4);
  margin: calc(var(--vertical-spacing) * 2) 0;
  min-height: 4rem;
  padding-bottom: var(--vertical-spacing);
  width: 100%;
}

.unlimited .summary .row {
  justify-content: space-evenly;
  margin-top: var(--vertical-spacing);
  max-width: 90vw;
  width: var(--board-size);
}

.unlimited h3 {
  line-height: 3rem;
}

.unlimited.playing .definition,
.unlimited.playing .nostars,
.unlimited.playing .stars,
.unlimited.playing .summary {
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--easing);
}

.unlimited.playing .nostars {
  display: none;
  flex-shrink: 0;
}

.unlimited.gameover {
  padding-bottom: 3rem;
}

.unlimited.gameover .swaps {
  margin-top: var(--vertical-spacing);
}

.unlimited.gameover .nostars,
.unlimited.gameover .summary {
  opacity: 1;
  pointer-events: all;
}

.unlimited.gameover footer {
  display: block;
}

.unlimited.gameover:not(.success) .board .tile {
  background-color: var(--color-tone-2);
  color: #fff;
  cursor: none;
  pointer-events: none;
}

.unlimited.gameover:not(.success) .gameovermessage {
  height: 3rem;
}

.unlimited.gameover:not(.success) .stars {
  display: none;
}

.unlimited.gameover:not(.success) .button--showsolution {
  display: block;
}

.unlimited.gameover:not(.success) .definition {
  opacity: 0;
}

.unlimited.gameover:not(.success) .definitions--show .definition,
.unlimited.success .definition,
.unlimited.success .stars {
  opacity: 1;
  pointer-events: all;
}

.unlimited.success .solution {
  display: none;
}

.deluxe .solution {
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  height: var(--board-size);
  width: var(--board-size);
}

.deluxe .solution .tile {
  height: var(--tile-size);
  width: var(--tile-size);
}

.deluxe .board {
  height: var(--deluxe-board-size);
  width: var(--deluxe-board-size);
}

.deluxe.gameover .top {
  height: calc(var(--deluxe-board-size) + 130px);
}

.deluxe {
  --deluxe-board-size: 450px;
}

@media (max-width: 620px) {
  .deluxe {
    --font-size: 18px;
    --deluxe-board-size: 90vw;
  }
}

@media (max-width: 380px) {
  .deluxe {
    --font-size: 16px;
    --deluxe-board-size: 90vw;
  }
}

@media (max-height: 480px) {
  .deluxe {
    --deluxe-board-size: 60vh;
    --tile-font-size: 6vh;
  }
}

.menu {
  align-items: left;
  background-color: var(--color-tone-6);
  bottom: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), 0 0 500px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  left: 0;
  max-width: 100%;
  position: absolute;
  top: 0;
  width: 350px;
  z-index: 100;
}

.menu h2 {
  font-size: 1.3rem;
  height: 70px;
  line-height: 70px;
}

.menu .menu__item {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 64px;
  justify-content: flex-start;
  width: 100%;
}

.menu .menu__item:hover {
  background-color: var(--color-tone-7);
}

.menu .menu__item .menu__item-icon {
  height: 64px;
  margin-right: 10px;
  width: 32px;
}

.menu .menu__item-label {
  font-family: var(--title-font);
  font-size: 0.9rem;
  font-weight: var(--title-font-weight);
  letter-spacing: 0.1rem;
  line-height: 1.8rem;
  text-transform: uppercase;
}

.menu {
  opacity: 0;
  pointer-events: none;
  transform: translate(-100%);
  transition: opacity 0.3s 0.1s var(--easing), transform 0.5s var(--easing);
}

body.menu--open .menu {
  opacity: 1;
  pointer-events: all;
  transform: translate(0);
  transition: opacity 0.3s var(--easing), transform 0.5s var(--easing);
}

:root {
  --header-height: 72px;
}

header {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  height: var(--header-height);
  justify-content: center;
  padding: 0 1vh;
}

.title {
  flex-grow: 1;
  font-family: var(--title-font);
  font-weight: var(--title-font-weight);
  letter-spacing: 0.1rem;
  margin: 0;
  text-transform: uppercase;
}

.title h1 {
  line-height: 1rem;
}

.title__archive,
.title__unlimited {
  color: var(--title-color);
  display: none;
  font-size: 0.7rem;
  font-weight: var(--title-font-weight);
  line-height: 0.7rem;
  text-align: center;
}

body.archive--active h1,
body.archive-main--active h1 {
  font-size: 1.5rem;
  line-height: 1.6rem;
}

body.archive--active .title__archive,
body.archive-main--active .title__archive {
  display: block;
}

body.unlimited--active h1 {
  font-size: 1.5rem;
  line-height: 1.6rem;
}

body.unlimited--active .title__unlimited {
  display: block;
}

body header .button--unlimited {
  display: none;
}

body header .button--daily,
body.daily--active header .button--help {
  display: block;
}

body.daily--active header .button--back {
  display: none;
}

body.deluxe--active header .button--back {
  display: block;
}

/* body.deluxe--active header .button--help {
  display: none;
} */

.tab {
  background-color: var(--color-tone-6);
  border: 1px solid var(--color-tone-4);
  border-radius: 99px;
  color: var(--color-tone-2);
  justify-content: center;
  margin: 0 0.4rem;
  max-height: 42px;
  max-width: calc(50vw - 0.8rem);
  width: 12rem;
}

.tab--active {
  background-color: var(--green);
  color: #fff;
}

@media (max-width: 490px) {
  :root {
    --font-size: 18px;
    --board-size: 80vw;
    --tile-font-size: 8vw;
  }

  header h1 {
    font-size: 1.6rem;
  }

  header .icon-button {
    margin: 2px;
  }

  button:not(.icon-button) {
    padding: 0 1rem;
  }

  button:not(.icon-button) svg {
    transform: translateX(-0.2rem);
  }

  .modal .modal__content {
    border-radius: 0;
  }
}

@media (max-width: 380px) {
  :root {
    --font-size: 16px;
    --board-size: 90vw;
    --header-height: 52px;
  }

  header {
    padding: 10px;
  }

  header h1 {
    font-size: 1.2rem;
  }

  .deluxe .top,
  .game-main .top {
    height: calc(var(--board-size) + 130px);
  }

  .deluxe .game-number,
  .game-main .game-number {
    height: 50px;
  }

  .deluxe .swaps,
  .game-main .swaps {
    height: 80px;
  }

  .deluxe.gameover .game-number,
  .game-main.gameover .game-number {
    height: 35px;
  }

  .deluxe.gameover .swaps,
  .game-main.gameover .swaps {
    height: 50px;
  }

  .deluxe.gameover .top,
  .game-main.gameover .top {
    height: calc(var(--board-size) + 85px);
  }

  .summary .row {
    max-width: 100%;
    width: 100%;
  }

  .definition {
    max-width: 90%;
    width: 90%;
  }

  .modal .modal__content {
    padding: 0.5rem 0;
  }

  .modal .modal__content header {
    margin: -0.5rem 0 0;
  }

  .modal.statistics .stat-row {
    margin: 0;
    width: 100%;
  }

  .modal.statistics .stats {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .note {
    padding: calc(var(--vertical-spacing) * 2) 1rem;
  }
}

@media (max-height: 480px) {
  :root {
    --board-size: 60vh;
    --tile-font-size: 6vh;
    --vertical-spacing: 0.5rem;
  }

  .game .top {
    height: auto;
  }

  .game:not(.gameover).top {
    height: calc(100vh - var(--header-height));
    justify-content: flex-start;
  }

  .game-number,
  .swaps {
    max-height: 30px;
  }

  .swaps {
    font-size: 1rem;
    max-width: 100%;
  }

  .tile {
    border-radius: 4px;
  }

  .definition {
    max-width: 90%;
    width: 90%;
  }

  .summary .row {
    max-width: 100%;
    width: 100%;
  }

  .game-number {
    margin: 0;
  }
}

html.canuckle {
  --green: #e00;
}

html.canuckle .game-number {
  text-transform: none;
  transition: opacity 0.8s;
}

html.canuckle .game-number img {
  height: 15px;
  width: 15px;
}

html.canuckle .body--highcontrast {
  --green: #e00;
}

html.canuckle .stars .star {
  background-image: url(maple.4bde2aba.svg);
}

html.canuckle .definition__fact:before {
  content: "🍁";
}

html.canuckle .footer--canuckle .kofi-link:first-child img {
  background-color: var(--green);
  border-radius: 6px;
}

html.canuckle .footer--canuckle .kofi-link img {
  max-width: 100%;
  width: 396px;
}

html.canuckle .game.gameover footer {
  display: none;
}

html.canuckle .game.gameover .footer--canuckle {
  display: block;
}

html.canuckle .game.gameover .footer--canuckle button {
  font-size: 12px;
  max-width: 100%;
}

html:not(.canuckle) .game.gameover footer.footer--canuckle {
  display: none;
}

html.canuckle.html--darkmode,
html.canuckle.html--darkmode .body--highcontrast {
  --green: #900;
}

html.canuckle:not(.html--darkmode) {
  background-color: #ac0000;
}

html.canuckle:not(.html--darkmode) .definition__fact {
  color: #833737;
}

.body--highcontrast {
  --yellow: var(--blue);
  --green: var(--orange);
}

.html--darkmode {
  --color-tone-7: #1a1a1b;
  --color-tone-6: #292b2b;
  --color-tone-5: #323434;
  --color-tone-4: #323434;
  --color-tone-3: #666;
  --color-tone-2: #f6f7f8;
  --color-tone-1: #f6f7f8;
  --green: #3a8b38;
  --yellow: #b59626;
}

.html--darkmode .gameover:not(.success) .board .tile {
  background: #000;
  color: var(--color-tone-2);
}

.html--darkmode .gameovermessage {
  background: #000;
  color: var(--color-tone-3);
}

.html--darkmode a,
.html--darkmode a:visited {
  color: #fff;
}

.html--darkmode .stats__bar {
  background-color: var(--color-tone-4);
}

.html--darkmode .stats__row:nth-child(odd) {
  background-color: transparent;
}

.html--darkmode .icon-button {
  background: #000;
}

.html--darkmode .button--close {
  background: none;
}

.kofi-link {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: var(--vertical-spacing);
  margin-top: var(--vertical-spacing);
}

.heart-icon {
  height: 54px;
  margin-left: 1rem;
  margin-right: 1rem;
  object-fit: contain;
  width: 44px;
}

/* Deluxe Waffle Instruction Modal Styles */

.modal.help .modal__content .grid3 {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
}

.modal.help .modal__content .grid5 {
  grid-template-columns: repeat(5, 1fr);
  display: grid;
}