@font-face {
  src: url('/fonts/Abel-Regular.ttf');
  font-family: 'Abel';
}

@font-face {
  src: url('/fonts/NovaFlat-Regular.ttf');
  font-family: 'ClueFont';
}

@font-face {
  src: url('/fonts/Bungee-Regular.ttf');
  font-family: 'Theme';
}

:root {
  --hueTheme: 215;
  --hueCreating: 215;
  --hueGuessing: 140;
  --hueReviewing: 355;
  --hueSolved: 175;
  --hueLink: 140;
  --statusBarHSL: var(--hueTheme), 100%, 3%;
  --appBackgroundLightestHSL: var(--hueTheme), 80%, 70%;
  --appBackgroundLighterHSL: var(--hueTheme), 50%, 41%;
  --appBackgroundHSL: var(--hueTheme), 55%, 20%;
  --appBackgroundDarkHSL: var(--hueTheme), 100%, 8%;
  --appBackgroundDarkestHSL: var(--hueTheme), 100%, 3%;
  --appForegroundHSL: var(--hueTheme), 100%, 100%;
  --appForegroundDiminishedHSL: var(--hueTheme), 0%, 65%;
  --linkColorLightHSL: var(--hueLink), 79%, 55%;
  --linkColorDarkHSL: var(--hueLink), 69%, 45%;
  --messageColorHSL: 34, 100%, 70%;
  --tipColorHSL: 34, 100%, 70%;
  --highlightColorHSL: 50, 100%, 70%;
  --alertHSL: 0, 100%, 45%;
  --alertTextHSL: 0, 100%, 65%;
  --trayBackgroundHSL: var(--hueGuessing), 100%, 50%;
  --trayCreatingBackgroundHSL: var(--hueCreating), 100%, 50%;
  --trayGuessingBackgroundHSL: var(--hueGuessing), 100%, 40%;
  --trayReviewingBackgroundHSL: var(--hueReviewing), 100%, 54%;
  --traySolvedBackgroundHSL: var(--hueSolved), 100%, 48%;
  --simpleCardBackgroundHSL: 0, 0%, 0%;
  --simpleCardForegroundHSL: 0, 100%, 100%;
  --statBackground: hsla(var(--appBackgroundLighterHSL), 0.25);
  --statBorder: hsla(var(--appBackgroundLighterHSL), 0.7);
  --transitionEase: ease-in-out;
  --longTransition: 400ms;
  --mediumTransition: 250ms;
  --shortTransition: 150ms;
  --cardSize: 180px;
  --wordHeight: 30px;
  --wordScale: 1;
  --wordAlignment: end;
  --footerHeight: 80px;
  --defaultGap: 20px;
  --borderRadius: 5px;
  --tinyIconSize: 13px;
  --tiniestIconSize: 12px;
  --extraSmallIconSize: 16px;
  --smallIconSize: 24px;
  --mediumIconSize: 32px;
  --largeIconSize: 48px;
  --giantIconSize: 64px;
  --massiveIconSize: 128px;
  --cardDropShadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  --trayDropShadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  --statShadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  --wordFont: 'Abel', 'Segoe UI', 'Helvetica Neue';
  --textureSource: radial-gradient(circle at center 400px, hsla(var(--appBackgroundHSL), 0.7) 1%, hsla(var(--appBackgroundHSL), 0.7) 40%, hsla(var(--appBackgroundDarkestHSL), 1) 80%);
  --textureSourceAlt: radial-gradient(circle at center 400px, hsla(var(--appBackgroundHSL), 0.7) 1%, hsla(var(--appBackgroundHSL), 0.7) 40%, hsla(var(--appBackgroundDarkestHSL), 1) 80%);
  --texture2: var(--textureSource);
  --textureHueSource: linear-gradient(hsla(var(--appBackgroundHSL), 0), hsla(var(--appBackgroundHSL), 0));
  --textureHue: radial-gradient(circle, hsla(var(--appBackgroundHSL), 0) 0%, hsla(var(--appBackgroundHSL), 0) 100%);
  --textureSize: cover;
  --textureBlendMode: normal;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  padding: 0px 0px;
  touch-action: manipulation;
  margin: 0px 0px;
  background-color: hsl(var(--statusBarHSL));
  color: hsl(var(--appForegroundHSL));
  font-family: var(--wordFont);
}

body {
  font-size: 1.3em;
  line-height: 1.3em;
}

main {
  background-color: hsl(var(--statusBarHSL));
  background-image: linear-gradient(hsla(var(--appBackgroundDarkestHSL), 1), hsla(var(--appBackgroundDarkestHSL), 0) 50%), var(--textureHue), var(--texture2);
  background-position: center center;
  background-size: cover, cover, var(--textureSize);
  background-repeat: no-repeat, no-repeat, repeat;
  width: 100%;
  height: 100%;
  overflow: visible;
  line-height: 160%;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: default;
}

app {
  display: flex;
  position: fixed;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--defaultGap);
  transition: var(--mediumTransition) ease-in-out background-color;
  width: 100%;
  height: 100%;
  min-height: 620px;
  overflow: hidden;
}

preload {
  display: block;
  position: fixed;
  opacity: 0;
  width: 0px;
  height: 0px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

splash {
  display: flex;
  position: fixed;
  top: 0px;
  left: 0px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--defaultGap);
  z-index: 1000;
  transition: var(--longTransition) ease-out all;
  background-image: linear-gradient(hsla(var(--appBackgroundDarkestHSL), 1), hsla(var(--appBackgroundDarkestHSL), 1) 6px, hsla(var(--appBackgroundDarkestHSL), 0) 50%), var(--textureHue), var(--texture2);
  background-position: center center;
  background-size: cover, cover, var(--textureSize);
  background-repeat: no-repeat, no-repeat, repeat;
  background-color: hsl(var(--appBackgroundDarkestHSL));
  width: 100%;
  height: 100%;
  pointer-events: all;
}

splash.hide {
  opacity: 0;
  pointer-events: none;
}

splash h2 {
  margin: 0 0 var(--defaultGap) 0;
  padding: 0px;
}

p {
  user-select: none;
  -webkit-user-select: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: calc(3 * var(--defaultGap)) 0 calc(2 * var(--defaultGap));
  font-weight: normal;
  font-family: 'Theme';
  user-select: none;
  text-align: center;
  -webkit-user-select: none;
}

h3 {
  transition: var(--mediumTransition) ease-in-out color;
  margin: 0;
  width: 100%;
  /* border-bottom: 1px solid hsla(var(--appBackgroundLightestHSL), 0.5);
  padding-bottom: calc(var(--defaultGap) / 2); */
  color: hsl(var(--appBackgroundLightestHSL));
  font-family: var(--wordFont);
  /* text-align: left; */
  text-transform: uppercase;
}

input {
  transition: var(--mediumTransition) ease-in-out color;
}

a,
a:hover,
a:focus,
a:visited,
a:active {
  color: hsl(var(--linkColorLightHSL));
  user-select: none;
  text-align: center;
  text-decoration: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

a.padded {
  border-radius: var(--borderRadius);
  padding: 8px 16px;
  width: calc(90% - 32px);
}

a.inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

section h3 {
  margin: calc(2 * var(--defaultGap)) 0 calc(.5 * var(--defaultGap));
}

button {
  transition-property: color, background-color, opacity, border-color;
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: var(--borderRadius);
  background: none;
  padding: calc(0.75 * var(--defaultGap)) var(--defaultGap);
  color: hsl(var(--linkColorLightHSL));
  font-family: 'Theme';
  -webkit-tap-highlight-color: transparent;
  transition: var(--mediumTransition) ease-in-out;
  user-select: none;
  -webkit-user-select: none;
}

button.resume.small {
  color: hsl(var(--linkColorLightHSL));
  font-family: var(--wordFont);
}

.resumeBackground {
  background-color: hsl(var(--linkColorLightHSL));
}

button badge {
  display: flex;
  justify-content: center;
  align-items: center;
  scale: 0;
  opacity: 0;
  transition: var(--mediumTransition) ease-in-out all;
  margin-left: 0px;
  border-radius: 50%;
  background: hsl(var(--alertHSL));
  width: 0px;
  height: 0px;
  overflow: hidden;
  color: hsl(var(--appForegroundHSL));
  font-weight: 800;
  font-size: 0.7em;
}

button badge.show {
  scale: 1;
  opacity: 1;
  margin-left: calc(0.5 * var(--defaultGap));
  width: 24px;
  height: 24px;
}

button.secondary {
  color: hsl(var(--appBackgroundLighterHSL));
}

button.inline {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: calc(var(--defaultGap) / 4);
}

button.small {
  display: flex;
  opacity: 1;
  cursor: pointer;
  background: none;
  padding: var(--defaultGap);
  width: auto;
  color: hsla(var(--appForegroundDiminishedHSL), 1);
  font-family: 'Abel', 'Segoe UI', 'Helvetica Neue';
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.wallpaper button.small.highlightText,
button.small.highlightText {
  color: hsl(var(--messageColorHSL));
}

beta {
  display: inline-block;
  margin-right: 4px;
  color: hsl(var(--alertTextHSL));
}

beta a,
beta a:visited,
beta a:focus {
  color: hsl(var(--alertTextHSL));
  text-decoration: underline;
}

beta::before {
  content: '';
}

introheader {
  display: block;
  margin-bottom: 0;
}

presents {
  display: block;
  opacity: .5;
  /* padding-bottom: calc(0.5 * var(--defaultGap)); */
  font-size: .7em;
  text-align: center;
}

gamename {
  display: block;
  font-size: 2em;
  line-height: 1em;
  font-family: 'Theme';
  text-align: center;
}

header {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 1em;
  color: hsl(var(--appForegroundDiminishedHSL));
  user-select: none;
  white-space: nowrap;
  -webkit-user-select: none;
  cursor: default;
}

header icon {
  /* cursor: pointer; */
  pointer-events: all;
}

notification header icon.logo {
  cursor: default;
  pointer-events: none;
}

notification header flogo {
  background-size: contain;
  width: calc(2 * var(--massiveIconSize));
  height: var(--massiveIconSize);
}

notification h2 {
  margin: 0px;
}

header icon.check {
  background: hsl(var(--linkColorLightHSL));
}

header span {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  padding-top: 1px;
}

header span:first-of-type {
  justify-content: end;
}

update {
  display: flex;
  justify-content: center;
  width: calc(100%);
  height: 0px;
  overflow: visible;
}

header h1 {
  margin: 0px;
  width: 0px;
  height: 0px;
  overflow: hidden;
  color: hsla(var(--appForegroundHSL), 1);
}

modal header {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--defaultGap);
}

icon {
  display: block;
  mask-size: calc(0.75 * var(--smallIconSize)) calc(0.75 * var(--smallIconSize));
  background-color: hsl(var(--appBackgroundLightestHSL));
  width: var(--smallIconSize);
  height: var(--smallIconSize);
  -webkit-mask-size: calc(0.75 * var(--smallIconSize)) calc(0.75 * var(--smallIconSize));
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}

icon.tiny {
  mask-size: calc(1 * var(--tinyIconSize)) calc(1 * var(--tinyIconSize));
  width: var(--tinyIconSize);
  height: var(--tinyIconSize);
  -webkit-mask-size: calc(1 * var(--tinyIconSize)) calc(1 * var(--tinyIconSize));
}

icon.extrasmall {
  mask-size: calc(1 * var(--extraSmallIconSize)) calc(1 * var(--extraSmallIconSize));
  width: var(--extraSmallIconSize);
  height: var(--extraSmallIconSize);
  -webkit-mask-size: calc(1 * var(--extraSmallIconSize)) calc(1 * var(--extraSmallIconSize));
}

icon.medium {
  mask-size: calc(0.75 * var(--mediumIconSize)) calc(0.75 * var(--mediumIconSize));
  width: var(--mediumIconSize);
  height: var(--mediumIconSize);
  -webkit-mask-size: calc(0.75 * var(--mediumIconSize)) calc(0.75 * var(--mediumIconSize));
}

icon.large {
  mask-size: calc(0.75 * var(--largeIconSize)) calc(0.75 * var(--largeIconSize));
  width: var(--largeIconSize);
  height: var(--largeIconSize);
  -webkit-mask-size: calc(0.75 * var(--largeIconSize)) calc(0.75 * var(--largeIconSize));
}

icon.giant,
icon.logo.giant {
  mask-size: var(--giantIconSize) var(--giantIconSize);
  width: var(--giantIconSize);
  height: var(--giantIconSize);
  -webkit-mask-size: var(--giantIconSize) var(--giantIconSize);
}

icon.empty {
  background: none;
}

icon.emoji {
  margin: 0;
  background-color: none;
  padding: 0;
  width: auto;
  height: auto;
  line-height: inherit;
}

icon.logo {
  mask-size: var(--largeIconSize) var(--largeIconSize);
  background-color: hsl(var(--appForegroundHSL));
  width: var(--largeIconSize);
  height: var(--largeIconSize);
  -webkit-mask-size: var(--largeIconSize) var(--largeIconSize);
  mask-image: url(/images/logo-facets.svg);
  -webkit-mask-image: url(/images/logo-facets.svg);
}

icon.share {
  mask-image: url(/images/icon-share.svg);
  -webkit-mask-image: url(/images/icon-share.svg);
}

icon.eye {
  mask-image: url(/images/icon-eye.svg);
  -webkit-mask-image: url(/images/icon-eye.svg);
}

icon.chevronleft {
  mask-image: url(/images/icon-chevron-left.svg);
  -webkit-mask-image: url(/images/icon-chevron-left.svg);
}

icon.chevronright {
  mask-image: url(/images/icon-chevron-right.svg);
  -webkit-mask-image: url(/images/icon-chevron-right.svg);
}

icon.alert {
  mask-image: url(/images/icon-alert.svg);
  -webkit-mask-image: url(/images/icon-alert.svg);
}

icon.download {
  mask-image: url(/images/icon-download.svg);
  -webkit-mask-image: url(/images/icon-download.svg);
}

icon.bmc {
  mask-image: url(/images/icon-bmc.svg);
  -webkit-mask-image: url(/images/icon-bmc.svg);
}

icon.like {
  mask-image: url(/images/icon-like.svg);
  -webkit-mask-image: url(/images/icon-like.svg);
}

icon.meeples {
  mask-image: url(/images/icon-meeples.svg);
  -webkit-mask-image: url(/images/icon-meeples.svg);
}

icon.credits {
  mask-image: url(/images/icon-credits.svg);
  -webkit-mask-image: url(/images/icon-credits.svg);
}

icon.discord {
  mask-image: url(/images/logo-discord.svg);
  -webkit-mask-image: url(/images/logo-discord.svg);
}

icon.feedback {
  mask-image: url(/images/icon-feedback.svg);
  -webkit-mask-image: url(/images/icon-feedback.svg);
}

icon.globe {
  mask-image: url(/images/icon-globe.svg);
  -webkit-mask-image: url(/images/icon-globe.svg);
}

icon.gradcap {
  mask-image: url(/images/icon-gradcap.svg);
  -webkit-mask-image: url(/images/icon-gradcap.svg);
}

icon.anon {
  mask-image: url(/images/icon-anon.svg);
  -webkit-mask-image: url(/images/icon-anon.svg);
}

icon.edit {
  mask-image: url(/images/icon-edit.svg);
  -webkit-mask-image: url(/images/icon-edit.svg);
}

small {
  user-select: none;
  -webkit-user-select: none;
}

message small {
  color: hsl(var(--linkColorLightHSL));
  line-height: 100%;
}

message small.messageShare {
  display: inline-block;
  margin-top: -18px;
  padding: 0 0 var(--defaultGap);
}

message icon.share {
  display: inline-block;
  mask-size: calc(0.75 * var(--extraSmallIconSize)) calc(0.75 * var(--extraSmallIconSize));
  background-color: hsl(var(--linkColorLightHSL));
  padding: 0;
  width: var(--extraSmallIconSize);
  height: var(--extraSmallIconSize);
  overflow: visible;
  -webkit-mask-size: calc(0.75 * var(--extraSmallIconSize)) calc(0.75 * var(--extraSmallIconSize));
}

icon.info {
  mask-image: url(/images/icon-info.svg);
  -webkit-mask-image: url(/images/icon-info.svg);
}

icon.info.small {
  mask-size: var(--tiniestIconSize) var(--tiniestIconSize);
  background-color: hsl(0, 100%, 100%);
  padding-bottom: 5px;
  padding-left: 4px;
  width: var(--tiniestIconSize);
  height: var(--tiniestIconSize);
  -webkit-mask-size: var(--tiniestIconSize) var(--tiniestIconSize);
}

icon.spinner {
  position: absolute;
  opacity: 0;
  mask-image: url(/images/icon-spinner.svg);
  animation: spin 1s steps(10, start) infinite;
  transition-delay: 0ms;
  -webkit-mask-image: url(/images/icon-spinner.svg);
  -webkit-animation: spin 1s steps(10, start) infinite;
  transition: var(--mediumTransition) linear opacity;
  background-color: hsl(var(--appBackgroundLightestHSL));
}

icon.spinner.show {
  opacity: 1;
  transition-delay: 0ms;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.blink {
  animation: 700ms ease-in-out 0s 0.5 blink;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes blink {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.disabled.pointoutparent {
  opacity: 1;
}

hint.pointout,
rotators.pointoutparent button icon,
button#shareButton.pointout,
spot.pointout,
spot.pointadjacent,
hints hint.pointoutparent {
  animation: 400ms ease-in-out 0s 0.3 blink;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.multicolor.creating hints hint input.pointout,
.multicolor.creating hints hint input.pointout::placeholder {
  margin-top: -2px;
  padding-bottom: 66px;
  color: hsl(var(--tipColorHSL));
  font-size: 1.13em;
}

word.pointout {
  animation: 400ms ease-in-out 0s 0.3 blink;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  color: hsl(var(--tipColorHSL));
}

tray spot.pointout,
tray spot.pointadjacent {
  outline: 1px solid hsl(var(--tipColorHSL));
  background: hsla(var(--appBackgroundDarkestHSL), 0.2);
}

button#shareButton.pointout span {
  opacity: 1;
}

tray spot.pointout rotators button icon {
  animation: 400ms ease-in-out 0s 0.3 blink;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  background: hsl(var(--linkColorLightHSL));
}

parking spot.pointout {
  animation: pointout 2s var(--transitionEase) 0s infinite;
}

.mobile parking spot.pointout:nth-of-type(1) {
  animation-delay: 0s;
}

.mobile parking spot.pointout:nth-of-type(2) {
  animation-delay: 0.5s;
}

.mobile parking spot.pointout:nth-of-type(3) {
  animation-delay: 1s;
}

.mobile parking spot.pointout:nth-of-type(4) {
  animation-delay: 1.5s;
}

@keyframes pointout {
  5% {
    transform: rotate(3deg);
  }

  10% {
    transform: translateY(-3px) rotate(0deg);
  }

  15% {
    transform: rotate(-3deg);
  }

  20% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(3deg);
  }

  30% {
    transform: translateY(-3px) rotate(0deg);
  }

  35% {
    transform: rotate(-3deg);
  }

  40%,
  100% {
    transform: rotate(0deg);
  }
}

@-webkit-keyframes pointout {
  5% {
    transform: rotate(3deg);
  }

  10% {
    transform: translateY(-3px) rotate(0deg);
  }

  15% {
    transform: rotate(-3deg);
  }

  20% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(3deg);
  }

  30% {
    transform: translateY(-3px) rotate(0deg);
  }

  35% {
    transform: rotate(-3deg);
  }

  40%,
  100% {
    transform: rotate(0deg);
  }
}

icon.add {
  mask-image: url(/images/icon-add.svg);
  -webkit-mask-image: url(/images/icon-add.svg);
}

icon.inprogress {
  mask-image: url(/images/icon-in-progress.svg);
  -webkit-mask-image: url(/images/icon-in-progress.svg);
}

icon.profile {
  mask-image: url(/images/icon-profile.svg);
  -webkit-mask-image: url(/images/icon-profile.svg);
}

icon.recycle {
  mask-image: url(/images/icon-recycle.svg);
  -webkit-mask-image: url(/images/icon-recycle.svg);
}

icon.check {
  mask-image: url(/images/icon-check.svg);
  -webkit-mask-image: url(/images/icon-check.svg);
}

icon.play {
  mask-image: url(/images/icon-play.svg);
  -webkit-mask-image: url(/images/icon-play.svg);
}

icon.continue {
  mask-image: url(/images/icon-continue.svg);
  -webkit-mask-image: url(/images/icon-continue.svg);
}

icon.nope {
  mask-image: url(/images/icon-x.svg);
  -webkit-mask-image: url(/images/icon-x.svg);
}

icon.quit {
  mask-image: url(/images/icon-quit.svg);
  -webkit-mask-image: url(/images/icon-quit.svg);
}

icon.rotate {
  mask-image: url(/images/icon-rotatearrow.svg);
  -webkit-mask-image: url(/images/icon-rotatearrow.svg);
}

icon.expand {
  mask-image: url(/images/icon-expand.svg);
  -webkit-mask-image: url(/images/icon-expand.svg);
}

icon.contract {
  mask-image: url(/images/icon-contract.svg);
  -webkit-mask-image: url(/images/icon-contract.svg);
}

icon.settings {
  mask-image: url(/images/icon-settings.svg);
  -webkit-mask-image: url(/images/icon-settings.svg);
}

hintcard {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
  margin-bottom: var(--defaultGap);
  border: none;
  width: 100%;
  pointer-events: none;
  font-size: 90%;
}

hintcard card {
  border: none;
  background: none;
  color: hsl(var(--appForegroundHSL));
}

header h1 {
  cursor: default;
  font-weight: normal;
  font-size: 280%;
  line-height: 84%;
  font-family: 'Theme';
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

icon.logo {
  mask-image: url(/images/logo-facets.svg);
  -webkit-mask-image: url(/images/logo-facets.svg);
  margin-bottom: var(--defaultGap);
}

p.greeting {
  display: flex;
  flex-direction: column;
  align-content: end;
  justify-content: center;
  align-items: center;
  justify-items: center;
  margin: 0;
  padding: 0;
  color: hsl(var(--appForegroundDiminishedHSL));
  font-size: 110%;
  line-height: 140%;
}

p.greeting small {
  color: hsl(var(--appForegroundDiminishedHSL));
}

subtitle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(0.25 * var(--defaultGap));
  padding-bottom: var(--defaultGap);
  width: 100%;
  color: hsla(var(--linkColorDarkHSL), 1);
}

button.small {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition-property: background-color, border-color, opacity;
  cursor: pointer;
  border-radius: calc(1 * var(--borderRadius));
  padding: calc(0.75 * var(--defaultGap)) calc(1 * var(--defaultGap));
  max-width: calc(2 * var(--cardSize));
  color: hsl(var(--appForegroundHSL));
  line-height: 140%;
  letter-spacing: 0px;
  text-transform: unset;
  -webkit-tap-highlight-color: transparent;
  transition: var(--mediumTransition) ease-in-out;
}

button.small.isolated {
  position: absolute;
  box-shadow: none;
  border: none;
  padding: 30px;
  width: auto;
}

button.small.main {
  padding-top: calc(0.75 * var(--defaultGap));
  padding-bottom: calc(0.7 * var(--defaultGap));
  color: hsl(var(--linkColorLightHSL));
  font-family: 'Theme';
}

button.small.strong {
  color: hsl(var(--appForegroundHSL));
}

button.small.disabled {
  opacity: 0.4;
}

button.small.strong.disabled {
  opacity: 0.4;
  background-color: hsl(var(--appBackgroundHSL));
  color: hsl(var(--appForegroundHSL));
}

notification button.inline,
notification button.small {
  backdrop-filter: blur(4px);
  border: 1px solid hsla(var(--appBackgroundHSL), 1);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, 0));
  background-color: hsla(var(--appBackgroundDarkHSL), 0.5);
  width: 90%;
}

notification button.notext {
  max-width: 70px;
}

leftright {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: calc(0.5 * var(--defaultGap));
  width: 100%;
}

modal section leftright a,
modal section leftright a {
  backdrop-filter: blur(4px);
  border: 1px solid hsla(var(--appBackgroundHSL), 1);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, 0));
  background-color: hsla(var(--appBackgroundDarkHSL), 0.5);
  width: 90%;
  color: hsl(var(--linkColorLightHSL));
}

notification.meta row {
  width: 100%;
}

notification button.small.isolated {
  box-shadow: none;
  background: none;
  background-image: none;
  background-color: none;
}

notification {
  display: flex;
  position: fixed;
  top: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(2 * var(--defaultGap));
  opacity: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
  transition: var(--mediumTransition) ease-in-out opacity;
  background: hsla(var(--appBackgroundDarkestHSL), 0.4);
  padding: var(--defaultGap);
  width: calc(100% - 2 * var(--defaultGap));
  height: calc(100% - 2 * var(--defaultGap));
  pointer-events: none;
}

notification header {
  flex: unset;
  flex-direction: column;
  gap: 0px;
}

notification header h2 {
  margin: 0;
  padding: 0;
  color: hsl(var(--appForegroundDiminishedHSL));
}

notification subtitles {
  flex-basis: auto;
}

notification message {
  flex-basis: auto;
}

notification h2,
notification p {
  margin: 10px 0 0 0;
  padding: 0;
  color: hsl(var(--appForegroundHSL));
  line-height: 1.4em;
  text-align: center;
}

notification p {
  margin: 0;
}

notification.meta {
  justify-content: center;
  gap: calc(0.75 * var(--defaultGap));
  transform: translateY(100vh);
  z-index: 300;
  transition: 400ms cubic-bezier(0.4, 0, 0.6, 1) transform, opacity;
  background-image: linear-gradient(hsla(var(--appBackgroundDarkestHSL), 1), hsla(var(--appBackgroundDarkestHSL), 1) 6px, hsla(var(--appBackgroundDarkestHSL), 0) 50%), var(--textureHue), var(--texture2);
  background-position: center center;
  background-size: cover, cover, var(--textureSize);
  background-repeat: no-repeat, no-repeat, repeat;
  background-color: hsl(var(--appBackgroundDarkestHSL));
  overflow: auto;
  poienter-events: none;
  opacity: 1;
}

notification.meta.show {
  transform: translateY(0px);
  opacity: 1;
  transition: 400ms cubic-bezier(0.165, 0.84, 0.44, 1) transform, opacity;
  pointer-events: all;
}

notification.meta p {
  color: hsl(var(--messageColorHSL));
}

notification.meta row {
  gap: calc(0.25 * var(--defaultGap));
  border: none;
  background: none;
  padding: 0;
  max-width: calc(2 * var(--cardSize));
}

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

splash message,
notification message {
  gap: calc(0.25 * var(--defaultGap));
  margin: var(--defaultGap);
  border: 1px solid hsl(var(--messageColorHSL));
  border-radius: var(--borderRadius);
  background: black;
  padding: calc(1.5 * var(--defaultGap)) var(--defaultGap);
  width: calc(100% - 2 * var(--defaultGap));
  max-width: calc(2.5 * var(--cardSize));
  pointer-events: none;
  color: hsl(var(--appForegroundHSL));
  font-size: 1.1em;
  line-height: 1.5em;
}

splash message small {
  color: hsl(var(--messageColorHSL));
}

pointer {
  display: flex;
  position: absolute;
  flex-direction: column;
  justify-content: space-between;
  align-items: left;
  z-index: 199;
  transition: var(--mediumTransition) ease-in-out;
  transition-property: left, top;
  margin-right: var(--defaultGap);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  background: hsl(var(--tipColorHSL));
  width: 100%;
  max-width: calc(2 * var(--cardSize) + 0.5 * var(--defaultGap));
  min-height: 100px;
  color: hsl(var(--appBackgroundDarkestHSL));
  font-size: 14px;
  font-family: Arial, sans-serif;
  white-space: nowrap;
}

pointer p {
  mix-blend-mode: luminosity;
  padding: calc(0.5 * var(--defaultGap)) calc(0.75 * var(--defaultGap)) 0;
  width: calc(100% - 2 * 0.75 * var(--defaultGap));
  font-size: 16px;
  font-family: var(--wordFont);
  text-align: left;
  text-wrap: wrap;
}

pointer p.controls {
  display: flex;
  justify-content: space-between;
  padding: 0 calc(0.75 * var(--defaultGap));
  font-size: 13px;
  text-align: right;
}

pointer p.controls button {
  display: inline-block;
  border-radius: 0px;
  padding: calc(0.5 * var(--defaultGap)) 0;
  width: auto;
  /* font-style: italic; */
  font-family: var(--wordFont);
  text-align: left;
  white-space: nowrap;
  ;
}

pointer p.controls button,
pointer p.controls button:hover,
pointer p.controls button:focus,
pointer p.controls button:visited,
pointer p.controls button:active {
  mix-blend-mode: luminosity;
  color: hsl(0, 20%, 40%);
}

pointer p.controls button.right {
  text-align: right;
  text-transform: uppercase;
}

pointer p.controls button:hover {
  color: hsl(0, 10%, 30%);
}

pointer p.controls seekers {
  display: flex;
  justify-content: end;
  gap: calc(0.5 * var(--defaultGap));
  width: 100%;
}

pointer p.controls seekers a {
  width: auto;
}

arrow {
  position: absolute;
  transform: translate(-10px, 2px);
  transform-origin: 50% 50%;
  rotate: 180deg;
  z-index: 199;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transition: var(--mediumTransition) ease-in-out;
  transition-property: margin, rotate, opacity, left, transform, top;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  background: hsl(var(--tipColorHSL));
  width: 18px;
  height: 12px;
}

arrow::before {
  display: none;
  position: absolute;
  transform: translate(2px, 4px);
  z-index: -1;
  clip-path: inherit;
  background: hsl(var(--appBackgroundHSL));
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  content: '';
}

arrow.top {
  transform: translate(10px, -14px);
  rotate: 0deg;
}

pointer.hidden,
arrow.hidden,
a.hidden {
  opacity: 0;
  pointer-events: none;
}

notification message.highlighted {
  box-shadow: 0px 0px 4px hsl(var(--messageColorHSL)), inset 0px 0px 4px hsl(var(--highlightColorHSL)), 0px 0px 15px hsl(var(--messageColorHSL)), inset 0px 0px 20px hsl(var(--messageColorHSL));
  border-color: hsl(var(--highlightColorHSL));
}

notification message name {
  display: flex;
  justify-content: center;
}

notification message name icon {
  margin: 0 4px 0 16px;
}

notification message subtitle {
  display: block;
  padding-bottom: 0;
  color: hsl(var(--appForegroundDiminishedHSL));
  font-size: 0.8em;
  text-transform: capitalize;
}

message {
  display: flex;
  flex-direction: column;
  border-color: hsl(var(--messageColorHSL));
  width: 100%;
  user-select: none;
  text-align: center;
  text-shadow: 0px -1px 2px black;
  -webkit-user-select: none;
}

message span {
  display: none;
}

.solved .show message {
  pointer-events: all;
}

.solved message span {
  display: inline;
}

h2+h3:first-of-type {
  margin-top: 0px;
  padding-top: 0px;
}

p {
  margin: 0;
  width: 100%;
  line-height: 140%;
}

.blueText {
  color: hsl(var(--hueCreating), 100%, 68%);
}

.greenText {
  color: hsl(var(--hueGuessing), 80%, 50%);
}

.alertText {
  color: hsl(var(--alertHSL));
}

.highlightText {
  color: hsl(var(--messageColorHSL));
}

.highlightBackground {
  background-color: hsl(var(--messageColorHSL));
}

.alertbackground {
  background-color: hsl(var(--alertHSL));
}

cta {
  display: inline-block;
  color: hsl(var(--linkColorLightHSL));
  font-family: 'Theme';
}

.redText {
  color: hsl(var(--hueReviewing), 100%, 60%);
}

redirecting,
authcta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

redirecting p,
authcta p,
notification.meta redirecting p,
notification.meta authcta p {
  max-width: calc(2.5 * var(--cardSize));
  color: hsl(var(--appForegroundHSL));
  line-height: 150%;
}

modal message {
  margin-top: calc(1 * var(--defaultGap));
  margin-bottom: calc(0.5 * var(--defaultGap));
  padding-top: var(--defaultGap);
  padding-bottom: calc(0.5 * var(--defaultGap));
}

modal section message {
  margin-top: 0;
  color: hsl(var(--messageColorHSL));
}

modal section message greeting {
  color: hsl(var(--appForegroundHSL));
  font-size: 0.8em;
}

modal credit {
  text-align: center;
}

message.clickable {
  cursor: pointer;
}

wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;
  gap: var(--defaultGap);
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 1124px;
}

wrapper:first-of-type {
  justify-content: space-between;
  align-items: center;
  gap: calc(2.5 * var(--defaultGap));
  padding: calc(0.5 * var(--defaultGap)) calc(0.5 var(--cardSize)) 0;
  max-width: calc(1124px - 7 * var(--defaultGap));
  min-height: unset;
}

wrapper:first-of-type controls {
  flex: 1;
  justify-content: start;
  padding: 0;
}

wrapper:first-of-type controls button.small {
  backdrop-filter: blur(4px);
  transition: none;
  border: 1px solid hsla(var(--appBackgroundHSL), 1);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, 0));
  background-color: hsla(var(--appBackgroundDarkHSL), 0.5);
  padding: calc(0.5 * var(--defaultGap)) calc(1 * var(--defaultGap));
  height: unset;
  font-size: 90%;
}

wrapper:first-of-type controls button {
  padding: 0;
  height: 100%;
}

wrapper:first-of-type controls:last-of-type {
  justify-content: end;
}

wrapper.main {
  justify-content: center;
  align-items: center;
  padding: var(--defaultGap);
  width: calc(100% - 2 * var(--defaultGap));
}

.portrait wrapper.main {
  height: calc(100% - var(--cardSize));
}

app.portrait {
  justify-content: space-between;
  align-items: center;
  padding: 30px;
}

wrapper.columns {
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

wrapper.mobile {
  transform-origin: center bottom;
  padding-bottom: calc(2 * var(--defaultGap));
  -webkit-transform-origin: center bottom;
}

wrapper message {
  padding: 8px var(--defaultGap) 0px;
  height: calc(2 * var(--defaultGap));
}

.portrait wrapper.mobile.extra {
  scale: 0.85;
  max-height: calc(0.85 * var(--cardSize) + var(--defaultGap));
}

[v-cloak] {
  opacity: 0;
  transition: 0ms ease-out opacity;
}

.clockwise {
  transform: scaleX(-1);
}

.anticlockwise {
  display: block;
}

parking .anticlockwise,
cards .anticlockwise {
  display: flex;
}

rotators,
tray,
hints {
  display: flex;
  justify-content: center;
  gap: var(--defaultGap);
}

tray {
  border-radius: calc(2 * var(--borderRadius));
  min-width: calc(3 * var(--cardSize));
  min-height: calc(3 * var(--cardSize));
}

tray diamond {
  position: absolute;
  z-index: -1;
  mask-repeat: no-repeat;
  background-image: url(/images/diamond.svg);
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
}

diamond.back {
  opacity: 0.8;
  mask-image: url(/images/diamond-back.svg);
  -webkit-mask-image: url(/images/diamond-back.svg);
  mask-size: cover;
  -webkit-mask-size: cover;
  background: hsl(var(--trayGuessingBackgroundHSL));
}

.multicolor.creating diamond.back {
  background: hsl(var(--trayCreatingBackgroundHSL));
}

.multicolor.guessing diamond.back {
  background: hsl(var(--trayGuessingBackgroundHSL));
}

.multicolor.reviewing diamond.back,
.multicolor.solved.guessing.reviewing.unaided diamond.back {
  background: hsl(var(--trayReviewingBackgroundHSL));
}

.multicolor.solved.guessing diamond.back {
  background: hsla(var(--traySolvedBackgroundHSL));
}

tray.rotating {
  transition: var(--longTransition) ease-in-out;
  transition-property: transform, rotate;
}

flogo {
  display: none;
}

controls {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--mediumTransition) ease-in-out;
  transition-property: background-color, border-color;
  padding: 0;
  height: 100%;
}

modal controls {
  position: fixed;
  bottom: 0px;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-top: 1px solid hsla(var(--appBackgroundHSL), 1);
  background-color: hsla(var(--appBackgroundDarkHSL), 0.7);
  padding: 0;
  width: 100%;
  height: var(--footerHeight);
  -webkit-backdrop-filter: blur(10px);
  gap: calc(0.5 * var(--defaultGap));
  padding-bottom: calc(0.5 * env(safe-area-inset-bottom));
}

modal callout,
modal select {
  border: 1px solid hsla(var(--appBackgroundLighterHSL), 0.5);
}

modal controls button {
  width: unset;
  font-size: 100%;
}

modal controls button.small {
  width: unset;
}

wrapper controls {
  justify-content: center;
}

wrapper controls button {
  background: none;
  height: 100%;
  font-size: 145%;
}

rotators {
  position: absolute;
  justify-content: space-between;
  z-index: 100;
  padding: 0;
  width: calc(var(--cardSize) * 2 + (calc(var(--defaultGap) * 10)));
  pointer-events: none;
}

wrapper>rotators {
  transform: translateY(calc(-1.35 * var(--cardSize)));
}

rotators button {
  justify-content: center;
  align-items: center;
  transition: var(--mediumTransition) ease-in-out;
  transition-property: opacity, color;
  background: none;
  padding: calc(1.25 * var(--defaultGap));
  pointer-events: all;
  font-size: 200%;
  line-height: 100%;
}

rotators button icon {
  mask-size: var(--mediumIconSize) var(--mediumIconSize);
  background-color: hsl(var(--messageColorHSL));
  padding-top: 12px;
  width: var(--mediumIconSize);
  height: var(--mediumIconSize);
  -webkit-mask-size: var(--mediumIconSize) var(--mediumIconSize);
}

spot rotators button {
  display: flex;
  justify-content: end;
  align-items: start;
  width: calc(0.3 * var(--cardSize));
  height: calc(0.3 * var(--cardSize));
}

spot rotators button icon {
  mask-size: var(--extraSmallIconSize) var(--extraSmallIconSize);
  width: var(--extraSmallIconSize);
  height: var(--extraSmallIconSize);
  -webkit-mask-size: var(--extraSmallIconSize) var(--extraSmallIconSize);
  background: hsla(var(--appBackgroundDarkestHSL), 0.2);
}

parking spot rotators button icon {
  scale: var(--scale);
  background: hsla(var(--appForegroundHSL), 0.2);
}

cards spot:hover rotators button icon,
parking spot:hover rotators button icon {
  background: hsl(var(--linkColorLightHSL));
}

rotators button:hover {
  color: white;
}

spot rotators button:first-of-type {
  padding-left: 5px;
}

spot rotators {
  position: absolute;
  opacity: 1;
  z-index: 100;
  margin-top: 0px;
  padding: 0px 0px 0px;
  width: var(--cardSize);
  pointer-events: none;
}

spot.empty rotators,
spot.empty:hover rotators,
.guessing spot.empty:hover rotators {
  display: none;
  opacity: 0;
}

.guessing spot:hover rotators,
.guessing spot.selected rotators {
  opacity: 1;
}

spot rotators:last-of-type {
  transform: translateY(calc(0.3 * var(--cardSize)));
  scale: -1;
}

spot rotators button,
spot.empty rotators button:hover {
  opacity: 0;
  transition: var(--mediumTransition) ease-in-out;
  transition-property: opacity, color;
  padding: 0px 6px;
  pointer-events: none;
  color: hsl(var(--linkColorDarkHSL));
  font-size: 100%;
}

.guessing spot rotators button,
.guessing spot.empty rotators button:hover {
  opacity: 1;
  pointer-events: all;
}

spot rotators button:hover {
  color: black;
}

parking {
  display: flex;
  flex-direction: column;
  gap: var(--defaultGap);
  padding: var(--defaultGap);
}

.portrait parking {
  display: none;
}

.portrait wrapper.mobile {
  display: flex;
  transform: unset;
}

.portrait wrapper.mobile button.scroller {
  display: none;
  position: absolute;
  left: 0;
  align-items: center;
  transform: translateY(calc(-0.13 * var(--cardSize)));
  z-index: 100;
  margin-top: 0;
  border-radius: 0px;
  background: none;
  padding: 0;
  padding-top: 0;
  padding-bottom: 0;
  width: 40px;
  height: calc(var(--scale) * var(--cardSize));
}

.portrait wrapper.mobile button.scroller icon {
  background: hsl(var(--messageColorHSL));
}

.portrait wrapper.mobile button.scroller:last-of-type {
  right: 0;
  left: unset;
  justify-content: end;
}

wrapper.mobile {
  pointer-events: none;
}

wrapper.mobile parking,
wrapper.mobile button {
  display: flex;
  width: 100%;
  pointer-events: all;
}

.mobile parking {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.portrait .mobile parking spot rotators {
  display: none;
}

.portrait .mobile parking spot rotators button {
  width: calc(0.2 * var(--cardSize));
  height: calc(0.2 * var(--cardSize));
}

cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--defaultGap);
  transform: translateY(60px);
  padding: var(--defaultGap);
  width: calc(var(--cardSize) * 2 + var(--defaultGap));
  height: calc(var(--cardSize) * 2 + var(--defaultGap));
}

cards.disabled {
  opacity: 1;
}

spot {
  display: block;
  outline: 1px dotted transparent;
  width: var(--cardSize);
  height: var(--cardSize);
  pointer-events: none;
}

.guessing spot {
  pointer-events: all;
}

.guessing modal spot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.guessing modal spot.disabled {
  pointer-events: none;
}

parking spot {
  opacity: 1;
  outline: 1px solid hsla(var(--hueGuessing), 100%, 70%, 0.7);
  background: hsla(var(--appBackgroundDarkestHSL), 0.8);
}

parking spot.empty {
  opacity: 0.5;
}

.multicolor.creating parking spot {
  opacity: 1;
  outline: 1px solid hsla(var(--hueCreating), 100%, 70%, 0.7);
}

.multicolor.guessing parking spot {
  opacity: 1;
  outline: 1px solid hsla(var(--hueGuessing), 100%, 70%, 0.7);
}

.multicolor.guessing.reviewing parking spot {
  opacity: 1;
  outline: 1px solid hsla(var(--hueReviewing), 100%, 70%, 0.7);
}

.multicolor.guessing.solved parking spot {
  opacity: 1;
  outline: 1px solid hsla(var(--hueSolved), 100%, 70%, 0.7);
}

.multicolor.creating parking spot.empty,
.multicolor.guessing parking spot.empty,
.multicolor.guessing.solved parking spot.empty {
  opacity: 0.5;
}

.multicolor.guessing.reviewing parking spot.empty {
  opacity: 1;
}

spot.empty card {
  cursor: default;
  background: transparent;
}

parking spot.empty {
  outline-style: dashed;
}

.guessing parking spot.empty {
  outline-style: dashed;
}

.reviewing.guessing parking spot.empty {
  outline-style: dashed;
}

card {
  display: block;
  z-index: 100;
  background: transparent;
  background-size: 100% 100%;
  width: var(--cardSize);
  height: var(--cardSize);
  color: hsl(var(--hueGuessing), 100%, 90%);
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  touch-action: none;
}

cards card,
.multicolor.guessing cards card,
.reviewing cards card {
  background: none;
  color: hsl(var(--hueGuessing), 100%, 86%);
}

.multicolor.creating card {
  color: hsl(var(--hueCreating), 100%, 86%);
}

.multicolor.guessing card {
  color: hsl(var(--hueGuessing), 94%, 90%);
}

.multicolor.guessing.reviewing card,
.multicolor.solved.guessing.reviewing.unaided card {
  color: hsl(var(--hueReviewing), 94%, 90%);
}

.multicolor.solved.guessing card {
  color: hsl(var(--hueSolved), 94%, 90%);
}

ghost {
  display: block;
  position: fixed;
  transform-origin: 50% 50%;
  z-index: 200;
  width: var(--cardSize);
  height: var(--cardSize);
  -webkit-transform-origin: 50% 50%;
  top: calc(-0.5 * var(--cardSize));
  left: calc(-0.5 * var(--cardSize));
  pointer-events: none;
}

ghost card,
ghost card.empty,
.guessing ghost card.empty,
.reviewing ghost card.empty {
  opacity: 0;
  transition: 0ms ease-in 0ms opacity;
  border: 1px solid hsla(var(--hueGuessing), 100%, 70%, 0.7);
  background: hsla(var(--appBackgroundDarkestHSL), 0.8);
  pointer-events: none;
}

.multicolor.creating ghost card {
  border: 1px solid hsla(var(--hueCreating), 100%, 70%, 0.7);
}

.multicolor.guessing ghost card {
  border: 1px solid hsla(var(--hueGuessing), 100%, 70%, 0.7);
}

.multicolor.guessing.solved ghost card {
  border: 1px solid hsla(var(--hueSolved), 100%, 70%, 0.7);
}

.multicolor.reviewing ghost card {
  border: 1px solid hsla(var(--hueReviewing), 100%, 70%, 0.7);
}

ghost card.show {
  opacity: 0.9;
  transition: 0ms ease-in 150ms opacity;
}

card.rotating {
  transition: var(--mediumTransition) ease-in-out all;
}

.multicolor.guessing cards spot.wrong card,
.guessing cards spot.wrong card {
  background-image: url(/images/icon-quit.svg);
  background-position: center center;
  background-size: 30px;
  background-repeat: no-repeat;
}

.unaided.multicolor.guessing cards spot.wrong card,
.unaided.guessing cards spot.wrong card {
  background: none;
}

hints {
  position: absolute;
  transform: translateY(60px);
  z-index: -1;
  width: 100%;
  height: 100%;
  font-size: 130%;
}

hints hint {
  display: block;
  position: absolute;
  perspective: var(--cardSize);
  background-size: 256px 256px;
  padding: calc(var(--defaultGap) / 4) calc(var(--defaultGap) / 4) calc(var(--defaultGap));
  width: calc(1.75 * var(--cardSize));
  height: var(--wordHeight);
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}

modal input,
hints hint input {
  outline: none;
  border: none;
  background: none;
  padding: 0;
  width: 100%;
  color: hsl(var(--hueGuessing), 100%, 70%);
  line-height: 120%;
  font-family: 'ClueFont';
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

modal select option {
  color: unset;
}

modal input.large {
  font-size: 120%;
}

modal categories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  --backgroundCoverOn: hsla(var(--appBackgroundHSL), 1);
  --backgroundCover: hsla(var(--appBackgroundDarkHSL), 1);
  gap: calc(0.5 * var(--defaultGap));
}

modal categories category {
  display: block;
  flex: 1;
  cursor: pointer;
  padding: calc(0.5 * var(--defaultGap));
  color: hsla(var(--appForegroundHSL), 0.7);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--borderRadius);
  background: var(--backgroundCover);
  max-width: 26%;
  user-select: none;
  text-shadow: 0px 0px 4px hsl(var(--appBackgroundDarkestHSL));
  text-wrap: nowrap;
  -webkit-user-select: none;
  backdrop-filter: blur(4px);
  border: 1px solid hsla(var(--appBackgroundHSL), 1);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, 0));
  background-color: hsla(var(--appBackgroundDarkHSL), 0.5);
}

modal categories category.on {
  border: 1px solid hsla(var(--appForegroundHSL), 1);
  background: var(--backgroundCoverOn);
  color: hsla(var(--appForegroundHSL), 1);
}

conditional {
  display: block;
  width: 100%;
}

gamelinks {
  display: block;
  counter-reset: recent-game-counter;
  width: 100%;
}

gamelinks dot {
  position: absolute;
  transform: translateX(-14px);
  color: hsl(var(--alertHSL));
}

gamelinks gamelink {
  display: flex;
  flex-direction: column;
  gap: calc(0.33 * var(--defaultGap));
  padding: calc(0.66 * var(--defaultGap)) 0;
  -webkit-tap-highlight-color: transparent;
}

.boxed {
  flex: 1;
  align-items: center;
  backdrop-filter: blur(4px);
  border: 1px solid hsla(var(--traySolvedBackgroundHSL), 0.4);
  border-radius: var(--borderRadius);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, 0));
  background-color: hsla(var(--traySolvedBackgroundHSL), 0.15);
  padding: calc(0.75 * var(--defaultGap)) calc(0.5 * var(--defaultGap));
  color: hsl(var(--appForegroundHSL));
  text-align: center;
}

.boxed.highlighted {
  box-shadow: 0px 0px 4px hsl(var(--traySolvedBackgroundHSL)), inset 0px 0px 4px hsl(var(--traySolvedBackgroundHSL)), 0px 0px 15px hsl(var(--traySolvedBackgroundHSL));
  border-color: hsl(var(--traySolvedBackgroundHSL));
}

.boxed.highlighted.quit {
  box-shadow: 0px 0px 4px hsl(var(--trayReviewingBackgroundHSL)), inset 0px 0px 4px hsl(var(--trayReviewingBackgroundHSL)), 0px 0px 15px hsl(var(--trayReviewingBackgroundHSL));
  border-color: hsl(var(--trayReviewingBackgroundHSL));
  background-color: hsla(var(--trayReviewingBackgroundHSL), 0.2);
}

stats stat.boxed value {
  color: hsl(var(--appForegroundHSL));
}

stats stat.boxed small {
  color: hsl(var(--traySolvedBackgroundHSL));
}

stats {
  display: flex;
  justify-content: space-around;
  gap: calc(0.5 * var(--defaultGap));
  margin-bottom: calc(1 * var(--defaultGap));
  border-radius: var(--borderRadius);
  padding: 10px calc(0.5 * var(--defaultGap)) 6px;
  width: 100%;
  overflow: hidden;
  color: hsl(var(--messageColorHSL));
  font-size: 24px;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

stats stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}

stats stat small {
  display: block;
  margin-bottom: 0px;
  padding: 0;
  max-width: 100%;
  color: hsla(var(--messageColorHSL), 1);
  white-space: nowrap;
}

stats stat value {
  font-weight: bold;
  font-size: 1.25em;
  line-height: 1em;
  text-align: center;
}

stats stat value {
  color: hsl(var(--appForegroundHSL));
}

gamelinks gamelink stats,
message stats {
  justify-content: space-around;
  gap: calc(1.5 * var(--defaultGap));
  backdrop-filter: blur(4px);
  margin-bottom: calc(0.5 * var(--defaultGap));
  border: 1px solid hsla(var(--appBackgroundHSL), 1);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, 0));
  background-color: hsla(var(--appBackgroundDarkHSL), 0.5);
  max-width: calc(100% - var(--defaultGap));
  overflow: auto;
  color: hsl(var(--appBackgroundLightestHSL));
  font-size: 16px;
}

message stats {
  justify-content: space-between;
  margin: 0px;
  max-width: calc(100% - var(--defaultGap));
}

message stats stat value,
message stats stat small {
  color: hsla(var(--appBackgroundLightestHSL));
}

message small.statlabel {
  margin-top: var(--defaultGap);
  margin-bottom: calc(0.5 * var(--defaultGap));
  color: hsla(var(--appBackgroundLightestHSL));
  font-size: 14px;
}

.portrait message stats {
  gap: var(--defaultGap);
}

stats::-webkit-scrollbar {
  display: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: auto;
}

gamelinks gamelink stats stat {
  align-items: start;
  gap: 2px;
  text-align: left;
}

gamelinks gamelink stats stat value {
  color: hsl(var(--appBackgroundLightestHSL));
  text-align: left;
}

gamelinks gamelink stats stat small {
  color: hsl(var(--appBackgroundLightestHSL));
}

small.statlabel {
  display: block;
  gap: 5px;
  margin-bottom: 2px;
  max-width: 100%;
  color: hsla(var(--messageColorHSL), 1);
  font-size: 0.8em;
  text-align: center;
}

small.statlabel icon {
  background: hsla(var(--appBackgroundLightestHSL), 1);
}

gamelinks gamelink small.statlabel {
  color: hsla(var(--appBackgroundLightestHSL), 1);
}

gamelinks gamelink stats stat small {
  color: hsla(var(--appBackgroundLightestHSL), 0.8);
}

gamelinks p {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
  font-size: 1.2em;
  text-align: left;
}

gamelinks clues {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(0.25 * var(--defaultGap));
  mask-image: linear-gradient(90deg, red 0px, red calc(100% - 40px), transparent calc(100% - 5px));
}

gamelinks p a,
gamelinks p a:hover,
gamelinks p a:active,
gamelinks p a:focus,
gamelinks p a:visited {
  flex: 1;
  overflow: hidden;
  color: hsl(var(--linkColorLightHSL));
  text-align: left;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}

gamelinks gamelink p a small {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(0.25 * var(--defaultGap));
}

gamelinks gamelink.done p a small {
  color: hsl(var(--appForegroundDiminishedHSL));
}

gamelinks gamelink.done p a {
  color: hsl(var(--appForegroundDiminishedHSL));
}

gamelinks p button.inline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  z-index: 100;
  transition: none;
  padding: 0 0 0 20px;
  width: calc(3 * var(--defaultGap) - 5px);
  height: calc(2.5 * var(--defaultGap) - 5px);
  color: hsl(var(--appForegroundDiminishedHSL));
  font-size: 0.5em;
  font-family: 'Abel', 'Segoe UI', 'Helvetica Neue';
  text-transform: uppercase;
  white-space: nowrap;
}

gamelinks p button.inline icon {
  opacity: 1;
  transition: none;
  background-color: hsla(var(--appForegroundDiminishedHSL), 1);
}

gamelinks p button.inline icon.play {
  opacity: 1;
  background-color: hsla(var(--appForegroundDiminishedHSL), 1);
}

gamelinks gamelink:hover p button.inline icon {
  opacity: 1;
  background-color: hsla(var(--appForegroundHSL), 1);
}

gamelinks gamelink.done p button.inline icon {
  opacity: 1;
  transition: var(--shortTransition) ease-in-out background-color;
  background-color: hsl(var(--linkColorLightHSL));
}

gamelinks gamelink.done p button.inline icon.alertbackground {
  background-color: hsl(var(--alertHSL));
}

gamelinks gamelink:hover p button.inline {
  color: hsl(var(--appForegroundHSL));
}

gamelinks gamelink:hover p button.inline icon {
  opacity: 1;
}

modal gamelinks small {
  margin-bottom: 2px;
  text-align: left;
}

modal gamelinks a small {
  font-size: 0.8em;
}

modal small,
modal legal {
  display: block;
  transition: var(--mediumTransition) ease-in-out;
  transition-property: opacity, color, background-color;
  margin-bottom: calc(0.5 * var(--defaultGap));
  width: 100%;
  max-width: calc(100% - 2 * var(--defaultGap));
  color: hsl(var(--appForegroundDiminishedHSL));
  font-size: .6em;
  line-height: 120%;
  font-family: 'Abel', 'Segoe UI', 'Helvetica Neue';
}

modal instructions {
  margin-top: var(--defaultGap);
  width: 100%;
  max-width: calc(100% - 2 * var(--defaultGap));
  color: hsl(var(--appForegroundDiminishedHSL));
  line-height: 150%;
}

modal legal {
  position: absolute;
  bottom: calc(var(--footerHeight) + (2 * var(--defaultGap)));
  width: 80%;
  max-width: calc(2.5 * var(--cardSize));
  line-height: 150%;
  text-align: center;
}

modal section h3 small {
  padding-top: calc(0.25 * var(--defaultGap));
  max-width: unset;
}

hints hint input {
  transform: rotateX(24deg) rotateY(0deg);
  transform-style: preserve-3d;
  font-size: 120%;
  text-shadow: 0px -1px 1px hsla(var(--appBackgroundDarkestHSL), 0.6);
}

.multicolor.creating hints hint input {
  color: hsla(var(--hueCreating), 100%, 70%, 1);
}

hints hint input::placeholder {
  color: hsla(var(--hueGuessing), 70%, 48%, 1);
  user-select: none;
  -webkit-user-select: none;
}

.multicolor.creating hints hint input::placeholder {
  color: hsla(var(--hueCreating), 70%, 48%, 1);
}

.multicolor.guessing hints hint input::placeholder {
  color: hsla(var(--hueGuessing), 70%, 48%, 1);
}

.multicolor.reviewing hints hint input::placeholder {
  color: hsla(var(--hueReviewing), 70%, 48%, 1);
}

.multicolor.solved.guessing hints hint input::placeholder {
  color: hsla(var(--hueSolved), 70%, 48%, 1);
}

modal input {
  color: hsl(var(--appForegroundHSL));
  font-size: 110%;
  font-family: 'Abel', 'Segoe UI', 'Helvetica Neue';
  text-align: left;
}

hints hint input.readonly {
  opacity: 1;
  color: hsl(var(--hueGuessing), 100%, 70%);
}

.multicolor.creating hints hint input.readonly {
  opacity: 1;
  color: hsl(var(--hueCreating), 100%, 70%);
}

.multicolor.guessing hints hint input.readonly {
  opacity: 1;
  color: hsl(var(--hueGuessing), 94%, 80%);
}

.multicolor.guessing.reviewing hints hint input.readonly,
.multicolor.guessing.solved.reviewing.unaided hints hint input.readonly {
  color: hsl(var(--hueReviewing), 94%, 80%);
}

.multicolor.guessing.solved hints hint input.readonly {
  color: hsl(var(--hueSolved), 94%, 80%);
}

hints hint:nth-child(1) {
  transform: translate(0px, calc(-1.825 * var(--wordHeight)));
  rotate: 0deg;
}

hints hint:nth-child(2) {
  transform: translate(calc(var(--cardSize) + (var(--defaultGap) / 8)), calc(-1 * var(--cardSize) + calc(var(--wordHeight) * -1.9)));
  rotate: 90deg;
}

hints hint:nth-child(3) {
  transform: translate(calc(-1 * var(--cardSize) - var(--defaultGap) / 8), calc(-1 * var(--cardSize) + calc(var(--wordHeight) * -1.9)));
  rotate: -90deg;
}

hints hint:nth-child(4) {
  transform: translate(0px, calc(var(--cardSize) * -2.33));
  rotate: 180deg;
}

card.empty {
  background: transparent;
}

card menu {
  display: block;
  position: absolute;
  padding: 0;
  width: calc(0.5 * var(--cardSize));
  height: calc(0.5 * var(--cardSize));
}

words {
  display: block;
}

word {
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: baseline;
  padding-top: 2px;
  width: var(--cardSize);
  height: calc(var(--cardSize) - 2px);
  overflow: visible;
  font-size: calc(var(--wordScale) * 90%);
  line-height: 100%;
  font-family: var(--wordFont);
  user-select: none;
  text-align: center;
  -webkit-user-select: none;
}

parking word {
  padding-top: 8px;
  height: calc(var(--cardSize) - 8px);
}

cards word {
  text-transform: capitalize;
}

word:nth-child(1) {
  rotate: 0deg;
}

word:nth-child(2) {
  rotate: 90deg;
}

word:nth-child(3) {
  rotate: 180deg;
}

word:nth-child(4) {
  rotate: -90deg;
}

modal {
  display: flex;
  position: absolute;
  top: 0;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: var(--defaultGap);
  transform: translateY(100vh);
  opacity: 1;
  z-index: 500;
  transition: 400ms cubic-bezier(0.4, 0, 0.6, 1) transform, opacity;
  background-image: linear-gradient(hsla(var(--appBackgroundDarkestHSL), 1), hsla(var(--appBackgroundDarkestHSL), 1) 6px, hsla(var(--appBackgroundDarkestHSL), 0) 50%), var(--textureHue), var(--texture2);
  background-position: center center;
  background-size: cover, cover, var(--textureSize);
  background-repeat: no-repeat, no-repeat, repeat;
  background-color: hsl(var(--appBackgroundDarkestHSL));
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  pointer-events: none;
}

modal.show {
  transform: translateY(0px);
  transition: 400ms cubic-bezier(0.165, 0.84, 0.44, 1) transform, opacity;
  pointer-events: all;
}

modal.centered {
  gap: calc(4 * var(--defaultGap));
  background-image: var(--textureSourceAlt);
  font-size: 130%;
}

modal.centered section,
modal.centered confirmation {
  justify-content: center;
  gap: calc(2 * var(--defaultGap));
  margin-bottom: var(--cardSize);
}

modal.disabled {
  opacity: 0;
}

modal section,
modal confirmation {
  display: flex;
  position: fixed;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: calc(1 * var(--defaultGap));
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}

modal section {
  gap: calc(0.5 * var(--defaultGap));
  padding: 0 calc(100% - (100% - 600px) / 2);
  width: 600px;
}

modal hider {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(0.5 * var(--defaultGap));
}

modal section footerspace {
  display: block;
  min-height: calc(var(--footerHeight) + (4 * var(--defaultGap)) + env(safe-area-inset-bottom));
}

modal img {
  margin: var(--defaultGap) 0;
  width: 100%;
  max-width: calc(2.5 * var(--cardSize));
  user-select: none;
  -webkit-user-select: none;
}

callout,
select {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--mediumTransition) ease-in-out all;
  background: hsla(var(--appBackgroundHSL), 1);
  padding: calc(0.5 * var(--defaultGap)) var(--defaultGap);
  width: 100%;
  max-width: calc(2 * var(--cardSize) + (4 * var(--defaultGap)));
  text-align: center;
}

select {
  outline: none;
  border: none;
  background: hsla(var(--appBackgroundHSL), 1);
  color: hsl(var(--appForegroundHSL));
  font-family: 'Abel', 'Segoe UI', 'Helvetica Neue';
  -webkit-tap-highlight-color: transparent;
  appearance: unset;
  border-radius: var(--borderRadius);
  -webkit-appearance: unset;
}

section input {
  font-size: inherit;
  font-family: 'Abel', 'Segoe UI', 'Helvetica Neue';
}

row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: calc(0.5 * var(--defaultGap));
  backdrop-filter: blur(4px);
  transition: var(--mediumTransition) ease-in-out border-color, background-color;
  transition-property: background-color, border-color;
  margin: 0px;
  border: 1px solid hsla(var(--appBackgroundHSL), 1);
  border-radius: var(--borderRadius);
  background: hsla(var(--appBackgroundHSL), 0.4);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .015) 40%, rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, 0));
  background-color: hsla(var(--appBackgroundDarkHSL), 0.5);
  padding: 5px 0px;
  width: calc(100%);
}

row message,
row callout,
row p {
  border-radius: var(--borderRadius);
  width: calc(1 * var(--cardSize));
  text-align: left;
}

row p {
  flex: 1;
}

row callout,
row select {
  flex: 2;
  margin: 0 5px 0 0;
  border-radius: var(--borderRadius) calc(0.5 * var(--borderRadius)) calc(0.5 * var(--borderRadius)) var(--borderRadius);
  padding: calc(0.3 * var(--defaultGap)) calc(0.5 * var(--defaultGap));
  width: unset;
}

row callout input {
  text-align: left;
}

row p {
  padding-left: var(--defaultGap);
}

modal cards {
  transition: 0 linear all;
  transition-delay: 150ms;
  background: none;
  height: auto;
  pointer-events: all;
}

.guessing.reviewing modal cards,
.guessing modal cards,
modal cards {
  background: none;
}

modal.disabled cards {
  pointer-events: none;
}

modal cards card {
  background: hsla(255, 100%, 100%, 0.2);
}

modal cards card.intray {
  opacity: 0.5;
}

modal::-webkit-scrollbar,
section::-webkit-scrollbar {
  display: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: auto;
}

.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.mobile {
  display: none;
}

.portrait wrapper.mobile {
  display: flex;
  gap: 0px;
}

version {
  display: flex;
  gap: var(--defaultGap);
  padding-top: var(--defaultGap);
  color: hsl(var(--appForegroundHSL));
  font-size: 12px;
  text-align: center;
}

notification.meta version {
  display: block;
  position: absolute;
  top: 0px;
  color: hsla(var(--appBackgroundLighterHSL), .8);
  width: calc(100% - (2 * var(--defaultGap)));
  padding: var(--defaultGap);
  text-align: left;
}

.focuser {
  display: none;
}

app.dragging,
.dragging tray,
.dragging card,
.dragging spot,
.dragging rotators button,
.dragging input,
.dragging words,
.dragging word,
.dragging rotators,
.dragging spot.empty card {
  cursor: grabbing;
}

hues {
  display: flex;
  justify-content: space-evenly;
  gap: calc(.25 * var(--defaultGap));
  padding: 4px 0;
  width: 100%;
}

hue {
  display: block;
  transition: var(--mediumTransition) ease-in-out;
  cursor: pointer;
  border: 1px solid hsla(var(--appBackgroundDarkestHSL), 1);
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

hue.selected {
  border-color: hsl(var(--appForegroundHSL));
}

@media screen and (max-height: 844px) {
  app.portrait {
    align-items: start;
  }

  controls {
    padding-top: 0;
    padding-bottom: 0;
  }

  wrapper controls button {
    height: 100%;
  }

  wrapper.mobile.extra,
  .portrait wrapper.mobile.extra {
    scale: 0.6;
  }

  wrapper message {
    padding: 0px var(--defaultGap) var(--defaultGap);
    height: calc(1 * var(--defaultGap) + 6px);
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
  }

  .portrait wrapper.mobile parking {
    transform-origin: center center;
    -webkit-transform-origin: center center;
  }
}

@media screen and (max-height: 719px) {
  .portrait wrapper.mobile parking {
    transform-origin: center center;
    -webkit-transform-origin: center center;
  }
}

@media screen and (max-width: 768px) {
  .mobile parking {
    transform-origin: 50% 50%;
    scale: .85;
  }

  p.greeting {
    font-size: 130%;
  }
}

@media screen and (max-width: 678px) {
  :root {
    --tiniestIconSize: 11px;
  }

  html {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body {
    /* background-image: linear-gradient(hsla(var(--appBackgroundDarkestHSL), 1), hsla(var(--appBackgroundDarkestHSL), 0) 200px), var(--textureHue), var(--texture2); */
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 90%;
  }

  app {
    justify-content: start;
    align-items: start;
    gap: 0px;
  }

  app.portrait {
    padding: 0px;
  }

  wrapper:first-of-type {
    justify-content: space-between;
    align-items: start;
    gap: 0px;
    padding: calc(0.5 * var(--defaultGap)) 0px;
  }

  wrapper:first-of-type controls button.small {
    border: none;
    background: none;
    padding: 6px calc(1 * var(--defaultGap));
    font-size: 120%;
  }

  wrapper:first-of-type controls button {
    padding: 6px calc(1 * var(--defaultGap));
    min-width: 70px;
  }

  section h3 {
    margin: var(--defaultGap) 0 calc(.5 * var(--defaultGap));
  }

  header {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  header icon {
    display: block;
    scale: 0.8;
  }

  splash message {
    max-width: calc(2 * var(--cardSize) - 3 * var(--defaultGap));
  }

  wrapper controls {
    padding: 0 calc(1 * var(--defaultGap));
  }

  wrapper controls button {
    padding: 0px var(--defaultGap);
    font-size: 125%;
  }

  wrapper.main {
    padding: 0;
    max-height: 400px;
    overflow: visible;
    font-size: 1.3em;
  }

  wrapper.main>rotators {
    scale: 0.7;
    padding: 0px;
    min-width: 540px;
    max-width: 145%;
  }

  .portrait wrapper.mobile parking spot {
    outline-width: 2px;
  }

  .portrait wrapper.mobile {
    bottom: 0px;
    padding: 0px;
  }

  wrapper message {
    padding-top: var(--defaultGap);
    padding-bottom: 0px;
  }

  icon.info.small {
    padding-bottom: 2px;
  }

  select {
    font-size: 110%;
  }

  tray {
    scale: 0.7;
  }

  ghost card,
  ghost card.empty,
  .guessing ghost card.empty,
  .reviewing ghost card.empty {
    scale: 0.7;
  }

  words word {
    font-size: calc(var(--wordScale) * 100%);
  }

  parking words word {
    padding-top: 10px;
    height: calc(var(--cardSize) - 10px);
    font-size: calc(var(--wordScale) * 140%);
  }

  cards words word {
    align-items: start;
    font-size: calc(var(--wordScale) * 100%);
  }

  p {
    padding: 0;
    width: 100%;
    font-size: 110%;
  }

  checkbox {
    font-size: 110%;
  }

  button.update {
    font-size: 100%;
  }

  modal {
    flex-direction: column;
    justify-content: start;
    align-items: center;
    margin-bottom: 60px;
    font-size: 16px;
  }

  confirmation {
    max-width: 90%;
  }

  modal section,
  section section {
    padding: 0 var(--defaultGap);
    width: calc(100% - var(--defaultGap));
  }

  modal small {
    padding: 0px;
    width: 100%;
    font-size: .7em;
  }

  modal legal {
    bottom: calc(var(--footerHeight) + (1 * var(--defaultGap)));
  }

  controls {
    padding: 0;
  }

  modal controls button {
    padding: calc(0.5 * var(--defaultGap));
    width: calc(0.7 * var(--cardSize));
    font-size: 140%;
  }

  gamelinks p button.inline {
    width: calc(3 * var(--defaultGap) - 10px);
    height: calc(2 * var(--defaultGap));
  }

  subtitle {
    font-size: 130%;
  }

  notification message {
    gap: calc(0.5 * var(--defaultGap));
    font-size: 1.3em;
  }

  callout {
    margin: 0 var(--defaultGap);
    width: calc(100% - (2 * var(--defaultGap)));
    max-width: unset;
    font-size: 110%;
  }

  modal section {
    gap: calc(0.5 * var(--defaultGap));
    padding: 0 7%;
    width: 86%;
    height: 100%;
  }

  parking,
  .portrait parking,
  parking spot,
  .portrait parking spot {
    display: none;
    padding: 0px;
  }

  wrapper.mobile parking,
  .portrait wrapper.mobile parking {
    display: flex;
    scale: 0.45;
  }

  wrapper.mobile.extra,
  .portrait wrapper.mobile.extra {
    scale: 0.825;
  }

  wrapper.mobile parking,
  .portrait wrapper.mobile.parking {
    display: flex;
    width: 100%;
  }

  wrapper.mobile parking spot,
  .portrait wrapper.mobile.parking spot {
    display: block;
  }

  .focuser {
    display: flex;
  }
}

@media screen and (max-width: 375px) {
  pointer {
    max-width: calc(100% - 4 * var(--defaultGap));
  }
}

@media screen and (max-height: 670px) {
  wrapper.subtitle {
    display: none;
  }

  wrapper controls {
    padding-bottom: 0px;
  }

  wrapper.mobile parking,
  .portrait wrapper.mobile parking {
    display: flex;
    transform-origin: center center;
    scale: 0.45;
    -webkit-transform-origin: center center;
  }

  wrapper.mobile.extra,
  .portrait wrapper.mobile.extra {
    transform-origin: center center;
    scale: 0.825;
    -webkit-transform-origin: center center;
  }
}

@media screen and (max-height: 620px) {
  app {
    gap: 0px;
  }

  h2 {
    margin-bottom: var(--defaultGap);
  }

  gamelink {
    gap: 2px;
    margin: 4px 0px;
  }

  modal section {
    gap: 2px;
  }

  modal stats,
  gamelinks gamelink stats,
  stats.boxed {
    margin-top: 0px;
    margin-bottom: 4px;
    border: none;
    padding: 4px calc(0.5 * var(--defaultGap)) 2px;
  }

  .boxed {
    gap: 1px;
    margin-top: 4px;
    border: none;
    padding: 4px;
  }

  wrapper:first-of-type {
    padding-bottom: 0px;
  }

  header icon {
    scale: 0.6;
  }

  app.portrait {
    justify-content: start;
  }

  .portrait wrapper.mobile {
    position: absolute;
  }

  .portrait wrapper.mobile parking {
    transform-origin: center bottom;
    -webkit-transform-origin: center bottom;
    margin-bottom: var(--defaultGap);
  }
}