h1.fungle-header__title,
.fungle-title-preview {
  --title-glow-a: rgba(86, 193, 40, 0.28);
  --title-glow-b: rgba(212, 240, 16, 0.55);
  --title-anim-scale: 1;
  animation: none;
  filter: drop-shadow(0 0 12px var(--title-glow-a));
  overflow: visible;
}
h1.fungle-header__title span,
.fungle-title-preview span {
  --i: 0;
  display: block;
  background-image: linear-gradient(90deg, var(--color-1), var(--color-2), var(--color-3), var(--color-5), var(--color-4), var(--color-2), var(--color-1));
  background-size: 220% 100%;
  background-position: 30% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: none;
  transform: none;
  filter: none;
  text-shadow: none;
  clip-path: none;
  transform-origin: 50% 70%;
  will-change: transform, filter, background-position;
}
h1.fungle-header__title span:nth-child(1),
.fungle-title-preview span:nth-child(1) {
  --i: 0;
}
h1.fungle-header__title span:nth-child(2),
.fungle-title-preview span:nth-child(2) {
  --i: 1;
}
h1.fungle-header__title span:nth-child(3),
.fungle-title-preview span:nth-child(3) {
  --i: 2;
}
h1.fungle-header__title span:nth-child(4),
.fungle-title-preview span:nth-child(4) {
  --i: 3;
}
h1.fungle-header__title span:nth-child(5),
.fungle-title-preview span:nth-child(5) {
  --i: 4;
}
h1.fungle-header__title span:nth-child(6),
.fungle-title-preview span:nth-child(6) {
  --i: 5;
}
h1.fungle-header__title[data-anim=off] span,
.fungle-title-preview[data-anim=off] span {
  background-image: linear-gradient(219deg, var(--color-1) 19%, transparent 19%, transparent 20%, var(--color-2) 20%, var(--color-2) 39%, transparent 39%, transparent 40%, var(--color-3) 40%, var(--color-3) 59%, transparent 59%, transparent 60%, var(--color-4) 60%, var(--color-4) 79%, transparent 79%, transparent 80%, var(--color-5) 80%);
  background-size: 100% 100%;
  background-position: 0 0;
  will-change: auto;
}
h1.fungle-header__title[data-anim=wave],
.fungle-title-preview[data-anim=wave] {
  animation: fungle-title-glow calc(3.6s * var(--title-anim-scale)) ease-in-out infinite;
}
h1.fungle-header__title[data-anim=wave] span,
.fungle-title-preview[data-anim=wave] span {
  animation: fungle-letter-scroll calc(4.8s * var(--title-anim-scale)) linear infinite;
  animation-delay: calc(var(--i) * -0.55s * var(--title-anim-scale));
  background-position: 0% 50%;
}
h1.fungle-header__title[data-anim=aurora],
.fungle-title-preview[data-anim=aurora] {
  animation: fungle-aurora-glow calc(7s * var(--title-anim-scale)) ease-in-out infinite;
}
h1.fungle-header__title[data-anim=aurora] span,
.fungle-title-preview[data-anim=aurora] span {
  background-image: linear-gradient(125deg, var(--color-1), #1ad4b0, var(--color-3), #d4f34a, var(--color-5), #6ef0d8, var(--color-2), #b8ff6a, var(--color-1));
  background-size: 360% 360%;
  animation: fungle-aurora-shift calc(8.5s * var(--title-anim-scale)) ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.85s * var(--title-anim-scale));
}
h1.fungle-header__title[data-anim=spores],
.fungle-title-preview[data-anim=spores] {
  animation: fungle-title-glow calc(4.2s * var(--title-anim-scale)) ease-in-out infinite;
}
h1.fungle-header__title[data-anim=spores] span,
.fungle-title-preview[data-anim=spores] span {
  animation: fungle-spore-float calc(2.6s * var(--title-anim-scale)) ease-in-out infinite, fungle-letter-scroll calc(7s * var(--title-anim-scale)) linear infinite;
  animation-delay: calc(var(--i) * 0.18s * var(--title-anim-scale)), calc(var(--i) * -0.5s * var(--title-anim-scale));
}
h1.fungle-header__title[data-anim=glitch],
.fungle-title-preview[data-anim=glitch] {
  animation: fungle-glitch-word calc(5.2s * var(--title-anim-scale)) steps(1, end) infinite;
}
h1.fungle-header__title[data-anim=glitch] span,
.fungle-title-preview[data-anim=glitch] span {
  background-image: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: var(--color-3);
  color: var(--color-3);
  animation: fungle-glitch-letter calc(2.9s * var(--title-anim-scale)) infinite;
  animation-delay: calc(var(--i) * 0.13s * var(--title-anim-scale));
  text-shadow: 2px 0 rgba(255, 45, 180, 0.85), -2px 0 rgba(0, 255, 230, 0.85), 0 0 14px var(--color-3);
}
h1.fungle-header__title[data-anim=firefly],
.fungle-title-preview[data-anim=firefly] {
  filter: drop-shadow(0 0 6px var(--title-glow-a));
}
h1.fungle-header__title[data-anim=firefly] span,
.fungle-title-preview[data-anim=firefly] span {
  animation: fungle-firefly calc(3.4s * var(--title-anim-scale)) ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.48s * var(--title-anim-scale));
}
h1.fungle-header__title[data-anim=ripple],
.fungle-title-preview[data-anim=ripple] {
  perspective: 560px;
  animation: fungle-title-glow calc(3.8s * var(--title-anim-scale)) ease-in-out infinite;
}
h1.fungle-header__title[data-anim=ripple] span,
.fungle-title-preview[data-anim=ripple] span {
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  animation: fungle-ripple calc(2.35s * var(--title-anim-scale)) ease-in-out infinite, fungle-letter-scroll calc(6.4s * var(--title-anim-scale)) linear infinite;
  animation-delay: calc(var(--i) * 0.11s * var(--title-anim-scale)), calc(var(--i) * -0.4s * var(--title-anim-scale));
}
h1.fungle-header__title[data-anim=storm],
.fungle-title-preview[data-anim=storm] {
  animation: fungle-storm-word calc(4.4s * var(--title-anim-scale)) ease-in-out infinite;
}
h1.fungle-header__title[data-anim=storm] span,
.fungle-title-preview[data-anim=storm] span {
  background-image: linear-gradient(90deg, var(--color-2), var(--color-5), #f7ffe8, var(--color-3), var(--color-1));
  background-size: 280% 100%;
  animation: fungle-storm-letter calc(3.2s * var(--title-anim-scale)) linear infinite, fungle-letter-scroll calc(5.2s * var(--title-anim-scale)) linear infinite;
  animation-delay: calc(var(--i) * 0.09s * var(--title-anim-scale)), calc(var(--i) * -0.35s * var(--title-anim-scale));
}
h1.fungle-header__title[data-anim=bloom],
.fungle-title-preview[data-anim=bloom] {
  animation: fungle-bloom-word calc(2.9s * var(--title-anim-scale)) ease-in-out infinite;
}
h1.fungle-header__title[data-anim=bloom] span,
.fungle-title-preview[data-anim=bloom] span {
  animation: fungle-bloom-letter calc(2.9s * var(--title-anim-scale)) ease-in-out infinite, fungle-letter-scroll calc(6s * var(--title-anim-scale)) linear infinite;
  animation-delay: calc(var(--i) * 0.07s * var(--title-anim-scale)), calc(var(--i) * -0.45s * var(--title-anim-scale));
}
h1.fungle-header__title[data-anim=prism],
.fungle-title-preview[data-anim=prism] {
  animation: fungle-prism-glow calc(3.2s * var(--title-anim-scale)) ease-in-out infinite;
}
h1.fungle-header__title[data-anim=prism] span,
.fungle-title-preview[data-anim=prism] span {
  background-image: linear-gradient(90deg, #ff3b7b, #ffb020, #e8ff3a, #3dff8a, #2ee6ff, #7a5cff, #ff3b7b);
  background-size: 420% 100%;
  animation: fungle-letter-scroll calc(3.4s * var(--title-anim-scale)) linear infinite;
  animation-delay: calc(var(--i) * -0.42s * var(--title-anim-scale));
  filter: saturate(1.35);
}
h1.fungle-header__title[data-anim=drip],
.fungle-title-preview[data-anim=drip] {
  animation: fungle-title-glow calc(3.4s * var(--title-anim-scale)) ease-in-out infinite;
}
h1.fungle-header__title[data-anim=drip] span,
.fungle-title-preview[data-anim=drip] span {
  transform-origin: 50% 0%;
  animation: fungle-drip calc(2.15s * var(--title-anim-scale)) ease-in-out infinite, fungle-letter-scroll calc(5.6s * var(--title-anim-scale)) linear infinite;
  animation-delay: calc(var(--i) * 0.15s * var(--title-anim-scale)), calc(var(--i) * -0.38s * var(--title-anim-scale));
}

@keyframes fungle-letter-scroll {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: -220% 50%;
  }
}
@keyframes fungle-title-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px var(--title-glow-a));
  }
  50% {
    filter: drop-shadow(0 0 22px var(--title-glow-b));
  }
}
@keyframes fungle-aurora-shift {
  0% {
    background-position: 0% 12%;
  }
  40% {
    background-position: 82% 68%;
  }
  70% {
    background-position: 28% 94%;
  }
  100% {
    background-position: 0% 12%;
  }
}
@keyframes fungle-aurora-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px var(--title-glow-a)) hue-rotate(0deg);
  }
  50% {
    filter: drop-shadow(0 0 26px var(--title-glow-b)) hue-rotate(18deg);
  }
}
@keyframes fungle-spore-float {
  0%, 100% {
    transform: translateY(0) rotate(-2deg) scale(1);
  }
  32% {
    transform: translateY(-14%) rotate(4deg) scale(1.08);
  }
  58% {
    transform: translateY(5%) rotate(-3deg) scale(0.96);
  }
  78% {
    transform: translateY(-6%) rotate(2deg) scale(1.03);
  }
}
@keyframes fungle-glitch-word {
  0%, 88%, 100% {
    transform: translate(0) skewX(0);
    filter: drop-shadow(0 0 10px var(--title-glow-a));
  }
  89% {
    transform: translate(-6px, 1px) skewX(-8deg);
    filter: drop-shadow(8px 0 #ff2bd6) drop-shadow(-8px 0 #00fff0);
  }
  91% {
    transform: translate(5px, -2px) skewX(6deg);
    filter: drop-shadow(-10px 0 #ff2bd6) drop-shadow(10px 0 #00fff0);
  }
  93% {
    transform: translate(0) skewX(0);
    filter: drop-shadow(0 0 10px var(--title-glow-a));
  }
}
@keyframes fungle-glitch-letter {
  0%, 84%, 100% {
    transform: translate(0);
    clip-path: inset(0);
    filter: none;
  }
  86% {
    transform: translate(-4px, 1px) skewX(-12deg);
    clip-path: inset(10% 0 52% 0);
    filter: brightness(1.6);
  }
  88% {
    transform: translate(5px, -2px) skewX(9deg);
    clip-path: inset(48% 0 8% 0);
  }
  90% {
    transform: translate(-2px, 3px);
    clip-path: inset(0 0 0 0);
  }
  92% {
    transform: translate(0);
    clip-path: inset(0);
  }
}
@keyframes fungle-firefly {
  0%, 100% {
    opacity: 0.38;
    transform: scale(0.94) translateY(2%);
    filter: brightness(0.7) drop-shadow(0 0 0 transparent);
  }
  14% {
    opacity: 1;
    transform: scale(1.14) translateY(-6%);
    filter: brightness(1.55) drop-shadow(0 0 18px var(--color-5));
  }
  28% {
    opacity: 0.42;
    transform: scale(0.96) translateY(0);
    filter: brightness(0.75) drop-shadow(0 0 0 transparent);
  }
  62% {
    opacity: 0.4;
    transform: scale(0.95);
    filter: brightness(0.72);
  }
  74% {
    opacity: 1;
    transform: scale(1.1) translateY(-4%);
    filter: brightness(1.4) drop-shadow(0 0 14px var(--color-3));
  }
  88% {
    opacity: 0.4;
    transform: scale(0.96);
    filter: brightness(0.74);
  }
}
@keyframes fungle-ripple {
  0%, 100% {
    transform: rotateX(0deg) translateY(0) scale(1);
  }
  28% {
    transform: rotateX(32deg) translateY(-10%) scale(1.07);
  }
  52% {
    transform: rotateX(-20deg) translateY(5%) scale(0.96);
  }
  76% {
    transform: rotateX(12deg) translateY(-3%) scale(1.03);
  }
}
@keyframes fungle-storm-word {
  0%, 100% {
    filter: drop-shadow(0 0 8px var(--title-glow-a));
  }
  7% {
    filter: drop-shadow(0 0 26px #f7ffe8) drop-shadow(0 0 10px var(--color-5));
  }
  9% {
    filter: drop-shadow(0 0 4px var(--title-glow-a)) brightness(0.7);
  }
  12% {
    filter: drop-shadow(0 0 22px #fff) brightness(1.4);
  }
  16% {
    filter: drop-shadow(0 0 8px var(--title-glow-a));
  }
  63% {
    filter: drop-shadow(0 0 8px var(--title-glow-a));
  }
  65% {
    filter: drop-shadow(0 0 24px var(--color-5)) brightness(1.5);
  }
  68% {
    filter: drop-shadow(0 0 8px var(--title-glow-a));
  }
}
@keyframes fungle-storm-letter {
  0%, 100% {
    transform: translate(0);
    filter: brightness(1);
  }
  8% {
    transform: translate(-2px, 1px);
    filter: brightness(2.1);
  }
  11% {
    transform: translate(2px, -1px);
    filter: brightness(0.55);
  }
  14% {
    transform: translate(0);
    filter: brightness(1.3);
  }
  18% {
    filter: brightness(1);
  }
  54% {
    filter: brightness(1);
  }
  56% {
    transform: translate(3px, 0);
    filter: brightness(1.9);
  }
  59% {
    transform: translate(0);
    filter: brightness(1);
  }
}
@keyframes fungle-bloom-word {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px var(--title-glow-a));
  }
  50% {
    transform: scale(1.055);
    filter: drop-shadow(0 0 28px var(--title-glow-b)) drop-shadow(0 0 46px var(--color-3));
  }
}
@keyframes fungle-bloom-letter {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.08) translateY(-4%);
  }
}
@keyframes fungle-prism-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px var(--title-glow-a)) hue-rotate(0deg);
  }
  50% {
    filter: drop-shadow(0 0 24px var(--title-glow-b)) hue-rotate(40deg);
  }
}
@keyframes fungle-drip {
  0%, 100% {
    transform: scaleY(1) translateY(0);
  }
  28% {
    transform: scaleY(1.24) translateY(7%);
  }
  44% {
    transform: scaleY(0.9) translateY(-3%);
  }
  62% {
    transform: scaleY(1.12) translateY(3%);
  }
  78% {
    transform: scaleY(0.97) translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  h1.fungle-header__title,
  .fungle-title-preview {
    animation: none !important;
    transform: none !important;
    filter: drop-shadow(0 0 12px var(--title-glow-a));
    perspective: none;
  }
  h1.fungle-header__title span,
  .fungle-title-preview span {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    clip-path: none !important;
    text-shadow: none;
    background-position: 30% 50%;
    will-change: auto;
  }
}
body.fungle-page {
  --fungle-correct: var(--green, #558300);
  --fungle-present: var(--highlight-accent, #fbc730);
  --fungle-absent: #3f3a33;
  --fungle-border: rgba(243, 234, 195, 0.28);
  --fungle-key: #4a463d;
  --fungle-tool-size: 52px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background-color: rgba(22, 20, 12, 0.9215686275);
}

body.fungle-page .chat-button,
body.fungle-page .chat-container {
  display: none !important;
}

body.fungle-page [hidden] {
  display: none !important;
}

body.fungle-page--super {
  --fungle-correct: #8a1f4a;
  --fungle-present: #e0a33a;
  --fungle-absent: #2a1824;
  --fungle-border: rgba(232, 180, 210, 0.34);
  --fungle-key: #3a2433;
  background-color: rgba(18, 8, 15, 0.9215686275);
}
body.fungle-page--super .fungle-header__eyebrow {
  color: #e85a9b;
}
body.fungle-page--super h1.fungle-header__title,
body.fungle-page--super .fungle-complete__title {
  --color-1: #3b0a28;
  --color-2: #7a1548;
  --color-3: #c41e6a;
  --color-4: #e85a9b;
  --color-5: #f3c4dd;
}
body.fungle-page--super h1.fungle-header__title {
  --title-glow-a: rgba(196, 30, 106, 0.32);
  --title-glow-b: rgba(232, 90, 155, 0.62);
}
body.fungle-page--super .fungle-hint-btn:hover:not(:disabled) {
  border-color: #e85a9b;
  color: #e85a9b;
}
body.fungle-page--super .letter-row .letter-box.filled {
  border-color: rgba(232, 180, 210, 0.55);
}
body.fungle-page--super .fungle-complete {
  background: rgba(18, 4, 12, 0.78);
}
body.fungle-page--super .fungle-complete__card {
  background: #1a0c14;
  border-color: rgba(232, 180, 210, 0.28);
}
body.fungle-page--super .fungle-complete__eyebrow {
  color: #e85a9b;
}
body.fungle-page--super .fungle-notification {
  background-color: #f3c4dd;
}

.fungle-notification {
  position: fixed;
  left: 50%;
  top: 12%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  background-color: var(--light-brown, #f3eac3);
  color: var(--dark-brown, #282723);
  font-weight: 700;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  padding: 8px 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}

.fungle-notification.fadeIn {
  animation: 0.5s linear forwards fadeIn;
}

.fungle-notification.fadeOut {
  animation: 0.5s linear forwards fadeOut;
}

.fungle-main {
  width: min(980px, 100% - 24px);
  margin: 0 auto;
  padding: 8px 0 48px;
  flex: 1;
}

.fungle-header {
  text-align: center;
  margin-bottom: 18px;
  animation: gm-rise 0.6s ease both;
}

.fungle-preview-banner {
  margin: 8px auto 0;
  max-width: 26rem;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #e85a9b;
}
.fungle-preview-banner a {
  color: #f3c4dd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fungle-header__eyebrow {
  font-family: "Lora", Georgia, serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--light-green, #8bc34a);
  margin: 0 0 6px;
}

h1.fungle-header__title,
.fungle-complete__title {
  --color-1: #0e4c36;
  --color-2: #1b8a6b;
  --color-3: #56c128;
  --color-4: #a3d913;
  --color-5: #d4f010;
  font-family: "mushroom2", "Exo", sans-serif;
  font-size: 15vw;
  font-weight: 900;
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
  margin: auto;
  text-transform: uppercase;
}

.fungle-complete__title {
  background: linear-gradient(219deg, var(--color-1) 19%, transparent 19%, transparent 20%, var(--color-2) 20%, var(--color-2) 39%, transparent 39%, transparent 40%, var(--color-3) 40%, var(--color-3) 59%, transparent 59%, transparent 60%, var(--color-4) 60%, var(--color-4) 79%, transparent 79%, transparent 80%, var(--color-5) 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

h1.fungle-header__title {
  display: flex;
  justify-content: center;
  line-height: 0.9;
}

.fungle-header__date {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  color: rgba(243, 234, 195, 0.7);
  margin: 6px 0 0;
}

.fungle-tools {
  display: none;
}

.fungle-tool {
  flex: 0 0 auto;
  width: var(--fungle-tool-size);
  height: var(--fungle-tool-size);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.fungle-tool img {
  display: block;
  width: 100%;
  height: 100%;
  filter: hue-rotate(45deg);
}
.fungle-tool:focus-visible {
  outline: 2px solid var(--fungle-present);
  outline-offset: 3px;
}

.fungle-sheet {
  display: contents;
}

.fungle-sheet-close {
  display: none;
}

.fungle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.fungle-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
}

.fungle-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  background: transparent;
  caret-color: transparent;
  font-size: 16px;
}

.fungle-unavailable {
  text-align: center;
  font-family: "Lora", Georgia, serif;
  color: rgba(243, 234, 195, 0.75);
  padding: 48px 12px;
}

.char-grid {
  --fungle-letters: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.letter-row {
  display: flex;
  gap: 6px;
}
.letter-row.shake {
  animation: 0.5s ease shakeRow;
}

.letter-row .letter-box {
  --fungle-box: min(
  	62px,
  	calc(
  		(min(560px, 92vw) - (var(--fungle-letters, 5) - 1) * 6px) /
  			var(--fungle-letters, 5)
  	)
  );
  height: var(--fungle-box);
  width: var(--fungle-box);
  border: 2px solid var(--fungle-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: max(1.05rem, var(--fungle-box) * 0.42);
  text-align: center;
  text-transform: uppercase;
  color: var(--light-brown, #f3eac3);
  background: transparent;
  transition: border-color 0.12s ease;
}
.letter-row .letter-box.filled {
  border-color: rgba(243, 234, 195, 0.55);
  animation: 0.08s ease popBox;
}
.letter-row .letter-box.flip {
  animation: 0.5s linear flipBox;
  animation-fill-mode: none;
}
.letter-row .letter-box.flip.absent, .letter-row .letter-box.absent {
  background-color: var(--fungle-absent);
  border-color: #2a2620;
  color: rgba(243, 234, 195, 0.7);
}
.letter-row .letter-box.flip.present, .letter-row .letter-box.present {
  background-color: var(--fungle-present);
  border-color: var(--fungle-present);
  color: var(--dark-brown, #282723);
}
.letter-row .letter-box.flip.correct, .letter-row .letter-box.correct {
  background-color: var(--fungle-correct);
  border-color: var(--fungle-correct);
  color: var(--light-brown, #f3eac3);
}
.letter-row .letter-box.bounce {
  animation: 0.45s ease bounceBox;
}

.keyboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(500px, 100%);
}

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

.keyboard .key-row .key-btn {
  text-align: center;
  height: 54px;
  background-color: var(--fungle-key);
  color: var(--light-brown, #f3eac3);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  user-select: none;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.2s ease;
}
.keyboard .key-row .key-btn:active {
  transform: scale(0.96);
}
.keyboard .key-row .key-btn.absent {
  background-color: var(--fungle-absent);
  border-color: var(--fungle-absent);
}
.keyboard .key-row .key-btn.present {
  background-color: var(--fungle-present);
  border-color: var(--fungle-present);
  color: var(--dark-brown, #282723);
}
.keyboard .key-row .key-btn.correct {
  background-color: var(--fungle-correct);
  border-color: var(--fungle-correct);
}

.keyboard .key-row .key-btn.one-and-half {
  flex: 1.5;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.06em;
}

.fungle-hints {
  width: min(500px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fungle-hint-btn {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  background: transparent;
  color: var(--light-brown, #f3eac3);
  border: 1px solid rgba(243, 234, 195, 0.28);
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.fungle-hint-btn:hover:not(:disabled) {
  border-color: var(--highlight-accent, #fbc730);
  color: var(--highlight-accent, #fbc730);
}
.fungle-hint-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.fungle-hint-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.fungle-hint-btn__count {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-green, #8bc34a);
}

.fungle-hints__pips {
  display: flex;
  gap: 8px;
}
.fungle-hints__pips i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(243, 234, 195, 0.35);
  background: transparent;
  display: block;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.fungle-hints__pips i.is-used {
  background: var(--highlight-accent, #fbc730);
  border-color: var(--highlight-accent, #fbc730);
  box-shadow: 0 0 10px rgba(251, 199, 48, 0.45);
}

.fungle-hint-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: "Lora", Georgia, serif;
  font-size: 0.9rem;
  color: rgba(243, 234, 195, 0.88);
}
.fungle-hint-list li {
  text-align: center;
  padding: 4px 0;
  animation: 0.35s ease gm-rise;
}
.fungle-hint-list a.fungle-journal-link {
  color: var(--highlight-accent, #fbc730);
}

.fungle-easy-btn {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  background: transparent;
  color: rgba(243, 234, 195, 0.72);
  border: 0;
  padding: 2px 0 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.92rem;
}
.fungle-easy-btn:hover {
  color: var(--light-brown, #f3eac3);
}

body.fungle-page--super .fungle-easy-btn {
  color: rgba(243, 196, 221, 0.82);
}
body.fungle-page--super .fungle-easy-btn:hover {
  color: #f3c4dd;
}

.fungle-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fungle-panel {
  border: 1px solid rgba(243, 234, 195, 0.14);
  background: rgba(18, 17, 15, 0.78);
  padding: 16px 16px 18px;
}

.fungle-panel__title {
  font-family: "mushroom2", "Lora", serif;
  font-size: 2rem;
  margin: 0 0 10px;
  font-weight: 900;
  color: var(--fungle-present);
  line-height: 1.1;
}

.fungle-help {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 0.92rem;
}
.fungle-help li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.fungle-help__note {
  font-family: "Lora", Georgia, serif;
  font-size: 0.88rem;
  color: rgba(243, 234, 195, 0.7);
  margin: 12px 0 0;
}

.swatch {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid rgba(243, 234, 195, 0.2);
}
.swatch--correct {
  background: var(--fungle-correct);
}
.swatch--present {
  background: var(--fungle-present);
}
.swatch--absent {
  background: var(--fungle-absent);
}

.fungle-me {
  font-family: "Lora", Georgia, serif;
  font-size: 0.9rem;
  color: var(--lighter-green, #cef591);
  margin: 0 0 8px;
  min-height: 1.2em;
}

.fungle-dist {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
}

.fungle-dist__row {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 6px;
  align-items: center;
  font-family: "Lora", Georgia, serif;
  font-size: 0.78rem;
}

.fungle-dist__bar {
  height: 10px;
  background: var(--fungle-correct);
  min-width: 8px;
  transform-origin: left center;
  animation: 0.5s ease distGrow;
}

.fungle-leaderboard,
.fungle-today {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 0.9rem;
}

.fungle-leaderboard li,
.fungle-today li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(243, 234, 195, 0.1);
}

.fungle-today-label {
  margin: 14px 0 6px;
  font-family: "Lora", Georgia, serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--highlight-accent, #fbc730);
}

.fungle-signin {
  display: inline-block;
  margin-top: 12px;
  color: var(--lighter-green, #cef591);
  font-family: "Lora", Georgia, serif;
  font-size: 0.88rem;
}

.fungle-complete {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 16px;
  animation: 0.28s ease fadeIn;
}
.fungle-complete:not([hidden]) {
  display: flex;
}

.fungle-complete__card {
  position: relative;
  width: min(420px, 100%);
  background: #16140f;
  border: 1px solid rgba(243, 234, 195, 0.2);
  padding: 28px 22px 22px;
  text-align: center;
  overflow: hidden;
  animation: 0.45s ease gm-rise;
}

.fungle-spores {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fungle-complete__eyebrow {
  font-family: "Lora", Georgia, serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--light-green, #8bc34a);
  margin: 0;
  position: relative;
}

.fungle-complete__title {
  font-family: "festivo", "Lora", serif;
  font-size: 3vw;
  margin: 8px 0 4px;
  position: relative;
  width: 100%;
}

.fungle-complete__word {
  font-family: "system-ui", "chanterelle", "Lora", serif;
  text-transform: uppercase;
  color: var(--highlight-accent, #fbc730);
  margin: 0 0 8px;
  position: relative;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 500;
}

.fungle-complete__body {
  font-family: "Lora", Georgia, serif;
  color: rgba(243, 234, 195, 0.78);
  margin: 0 0 16px;
  position: relative;
}
.fungle-complete__body a.fungle-journal-link {
  color: var(--highlight-accent, #fbc730);
}

.fungle-complete__grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}

.fungle-mini-row {
  display: flex;
  gap: 4px;
}

.fungle-mini-cell {
  width: 18px;
  height: 18px;
  background: var(--fungle-absent);
}
.fungle-mini-cell.correct {
  background: var(--fungle-correct);
}
.fungle-mini-cell.present {
  background: var(--fungle-present);
}

.fungle-complete__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  position: relative;
}

#fungleCompleteJournal {
  max-width: 100%;
  text-align: center;
  line-height: 1.3;
}

.fungle-btn {
  font-family: "Lora", Georgia, serif;
  background: var(--green, #558300);
  color: var(--light-brown, #f3eac3);
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fungle-btn--ghost {
  background: transparent;
  border: 1px solid rgba(243, 234, 195, 0.3);
}

@keyframes flipBox {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes popBox {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}
@keyframes shakeRow {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
@keyframes bounceBox {
  0%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(3px);
  }
}
@keyframes distGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (max-width: 860px) {
  body.fungle-page {
    --fungle-box: 44px;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
  }
  body.fungle-page footer {
    display: none;
  }
  .gm-top {
    padding: 6px 12px 0;
    min-height: 42px;
    flex-wrap: nowrap;
  }
  .gm-top .user-name {
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }
  .fungle-main {
    width: min(520px, 100% - 16px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    overflow: hidden;
  }
  .fungle-header {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
    margin-bottom: 2px;
  }
  .fungle-header__eyebrow {
    display: none;
  }
  .fungle-header__title {
    grid-column: 2;
    grid-row: 1;
    font-size: 7rem !important;
    line-height: 0.9;
  }
  .fungle-header__date {
    grid-column: 1/-1;
    grid-row: 2;
    margin-top: 0;
    font-size: 0.88rem;
  }
  .fungle-tools {
    display: contents;
  }
  #fungleHowOpen {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  #fungleBoardOpen {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .fungle-tool {
    --fungle-tool-size: 40px;
  }
  .fungle-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .fungle-play {
    flex: 1;
    min-height: 0;
    width: 100%;
    gap: 8px;
    justify-content: flex-end;
  }
  .fungle-unavailable {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .char-grid {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    gap: 4px;
    container-type: size;
  }
  .letter-row {
    gap: 4px;
  }
  .letter-row .letter-box {
    --fungle-fit: min(
    	68px,
    	calc((100cqi - 16px) / var(--fungle-letters, 5)),
    	calc((100cqb - 20px) / 6)
    );
    width: var(--fungle-fit, var(--fungle-box));
    height: var(--fungle-fit, var(--fungle-box));
    font-size: calc(var(--fungle-fit, var(--fungle-box)) * 0.5);
  }
  .fungle-hints {
    flex: 0 0 auto;
    gap: 6px;
    max-width: 100%;
  }
  .fungle-hint-list {
    max-height: 3.6em;
    overflow: auto;
  }
  .fungle-hint-btn {
    min-height: 44px;
    touch-action: manipulation;
  }
  .keyboard {
    flex: 0 0 auto;
    z-index: 4;
    width: 100%;
    gap: 6px;
    padding: 4px 0 8px;
  }
  .keyboard .key-row {
    gap: 4px;
  }
  .keyboard .key-row .key-btn {
    height: 48px;
    min-width: 0;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .keyboard .key-row .key-btn.one-and-half {
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .fungle-side {
    display: none;
  }
  .fungle-side.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 28;
    width: 100%;
    max-width: none;
    margin: 0;
    background: rgba(5, 5, 5, 0.72);
    align-items: flex-end;
    justify-content: center;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .fungle-side.is-open .fungle-sheet {
    display: flex;
    flex-direction: column;
    width: min(520px, 100%);
    max-height: min(78svh, 640px);
    overflow: auto;
    background: #16140f;
    border: 1px solid rgba(243, 234, 195, 0.2);
    padding: 12px 16px 18px;
  }
  .fungle-side.is-open .fungle-sheet-close {
    display: inline-flex;
    align-self: flex-end;
    min-height: 36px;
    margin: 0 0 4px;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    color: var(--light-brown, #f3eac3);
    font-family: "Lora", Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    cursor: pointer;
  }
  .fungle-side.is-open .fungle-panel {
    border: 0;
    background: transparent;
    padding: 0;
  }
  .fungle-side.is-open[data-sheet=how] .fungle-panel--board,
  .fungle-side.is-open[data-sheet=board] .fungle-panel:not(.fungle-panel--board) {
    display: none;
  }
  .fungle-notification {
    top: 64px;
    max-width: calc(100vw - 32px);
    text-align: center;
  }
  .fungle-complete {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
    align-items: flex-end;
  }
  .fungle-complete__card {
    max-height: calc(100svh - 24px);
    overflow: auto;
    padding: 22px 16px 16px;
  }
  .fungle-complete__title {
    font-size: 1.8rem;
  }
  .fungle-complete__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .fungle-btn {
    width: 100%;
    min-height: 44px;
  }
}
@media (max-width: 860px) and (max-height: 740px) {
  .fungle-header__date {
    display: none;
  }
  .fungle-header__title {
    font-size: 6.5rem;
  }
  .keyboard .key-row .key-btn {
    height: 42px;
  }
}
