﻿:root {
  --ink: #121212;
  --daily-red: #d90000;
  --daily-yellow: #ffff00;
  --daily-black: #050505;
  --daily-white: #ffffff;
  --daily-gray: #737373;
  --shell-pad-top: 0;
  --shell-pad-x: 0;
  --shell-pad-bottom: 0;
  --shell-gap: 0;
  --shell-bg: var(--daily-white);
  --tool-bg: var(--daily-red);
  --keyboard-offset: 0px;
  --keyboard-dock-height: 0px;
  --keyboard-back: var(--daily-red);
  --keyboard-key: #fff;
  --keyboard-key-text: #000;
  --keyboard-font: "Roboto Local", Arial, Helvetica, sans-serif;
  --keyboard-enter: var(--daily-yellow);
  --keyboard-enter-text: #000;
  --keyboard-backspace: #838383;
  --keyboard-backspace-text: #fff;
  --accent-reveal: #00d5ff;
  --uv-purple: #ff00ff;
  --snippet-button: #00b3d7;
  --diff-0: white;
  --diff-1: #00c0ff;
  --diff-2: #33c711;
  --diff-3: #ff6200;
  --diff-4: #d90000;
  --snippet-hit: #bf0000;
  --intro-reveal-duration: 200ms;
  --document-transform-duration: 200ms;
  --message-duration: 3000ms;
  --solve-burst-duration: 1500ms;
  --rank-roll-duration: 3000ms;
  --tool-badge-burst-duration: 420ms;
  --invalid-shake-duration: 280ms;
  --toast-fade-duration: 160ms;
  --snippet-burst-duration: 600ms;
  --uv-reveal-duration: 600ms;
  --portrait-frame-width: min(100vw, 64vh);
  --portrait-frame-width: min(100vw, 64dvh);
  --portrait-frame-height: 100vh;
  --portrait-frame-height: 100dvh;
}

@font-face {
  font-family: "Impact Local";
  src: url("./assets/impact.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Anton Local";
  src: url("./assets/Anton-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Local";
  src: url("./assets/Roboto-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Local";
  src: url("./assets/Roboto-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--shell-bg);
  color: var(--ink);
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-weight: 700;
  overflow: hidden;
  position: relative;
}

body.app-loading .app-frame {
  visibility: hidden;
}


button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.app-frame {
  position: relative;
  width: var(--portrait-frame-width);
  height: var(--portrait-frame-height);
  overflow: hidden;
  background: var(--shell-bg);
  touch-action: manipulation;
}

.orientation-block {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: #060608;
  color: #fff;
  text-align: center;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.orientation-block-panel {
  position: absolute;
  top: calc(var(--orientation-top, 0px) + (var(--orientation-height, 100vh) / 2));
  left: calc(var(--orientation-left, 0px) + (var(--orientation-width, 100vw) / 2));
  transform: translate(-50%, -50%);
  display: grid;
  gap: 10px;
  width: min(280px, calc(var(--orientation-width, 100vw) - 48px));
  max-width: calc(var(--orientation-width, 100vw) - 48px);
}

.orientation-block-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.orientation-block-copy {
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.public-shell {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 80px;
  opacity: 1;
  transition: opacity var(--intro-reveal-duration) ease;
  background: #fff;
  overflow: hidden;
}

.public-shell.revealing {
  opacity: 0;
  pointer-events: none;
}

.intro-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.intro-actions {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 80px;
  display: grid;
  width: 100%;
  padding: 0;
  align-content: center;
  gap: 18px;
  justify-items: center;
  z-index: 1;
}

.play-button {
  width: 50%;
  border: none;
  box-shadow: 5px 8px 0 black;
  background: var(--daily-red);
  color: #fff;
  font-family: "Anton Local", Anton, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.15;
  cursor: pointer;
  overflow: visible;
  transform: translateX(100%);
}

.play-button-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.025em;
  width: max-content;
  margin: 0 auto;
  padding: 0.18em 0.35em;
  overflow: visible;
  white-space: nowrap;
  transform: skew(12deg);
}

.play-button-letter,
.play-button-letter-glyph {
  display: block;
}

.play-button-letter {
  padding: 0.18em 0.35em;
  margin: -0.18em -0.35em;
  transform: translateX(110vw);
  overflow: visible;
}

.play-button-letter-glyph {
  padding: 0.18em 0.35em;
  margin: -0.18em -0.35em;
  overflow: visible;
  text-shadow: 3px 4px 0 #000;
}

.play-button.is-entering {
  animation: play-button-panel-in 300ms cubic-bezier(0.22, 0.8, 0.25, 1) forwards;
}

.play-button.is-entering .play-button-letter {
  animation: play-button-letter-in 300ms cubic-bezier(0.16, 0.9, 0.22, 1) calc(300ms + var(--play-letter-delay)) forwards;
}

.play-button.is-leaving {
  pointer-events: none;
  animation: play-button-panel-out 200ms cubic-bezier(0.65, 0, 0.84, 0.1) 300ms both;
}

.play-button.is-leaving .play-button-letter {
  transform: translateX(0);
  animation: none;
}

.play-button.is-leaving .play-button-letter-glyph {
  animation: play-button-letter-out 200ms cubic-bezier(0.65, 0, 0.84, 0.1) calc(var(--play-letter-delay)) forwards;
}

@keyframes play-button-panel-in {
  from { transform: translateX(100vw); }
  to { transform: translateX(0) skew(-12deg); }
}

@keyframes play-button-letter-in {
  from { transform: translateX(110vw); }
  to { transform: translateX(0); }
}

@keyframes play-button-letter-out {
  from { transform: translateX(0); }
  to { transform: translateX(-110vw); }
}

@keyframes play-button-panel-out {
  from { transform: translateX(0) skew(-12deg); }
  to { transform: translateX(-100vw); }
}

.share-button {
  width: auto;
  min-width: 0;
  min-height: 34px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  background: none;
}

.share-button-icon {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0);
}

.intro-share-button {
  min-height: 40px;
  height: 40px;
  padding: 0 20px;
  border: 2px solid #fff;
  border-radius: 18px;
  background: none;
  color: #fff;
  box-shadow: 1px 2px 5px grey;
}

.intro-share-button .share-button-icon {
  filter: brightness(1);
}

.intro-stamp {
  display: block;
  position: absolute;
  width: 100%;
  bottom: 10px;
  color: var(--daily-red);
  font-family: "Impact Local";
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  font-style: italic;
  text-shadow: 0 0 3px white, 0 0 4px white;
}

.app-streak {
  right: 0;
  bottom: 90px;
  left: 0;
  z-index: 103;
  pointer-events: none;
}

.app-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: var(--shell-pad-top) var(--shell-pad-x) var(--shell-pad-bottom);
  display: flex;
  flex-direction: column;
  gap: var(--shell-gap);
  overflow: visible;
}

@media (orientation: landscape) and (pointer: coarse) {
  .orientation-block {
    display: block;
  }
}

.app-shell[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.top-indicators {
  --game-drop-color: var(--daily-red);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  font-weight: 900;
  background: var(--daily-red);
  z-index: 2;
  box-shadow: 0 2px 0 black;
}

.game-top-drop {
  position: absolute;
  right: 12px;
  bottom: -40px;
  width: clamp(28px, 4.8vw, 42px);
  aspect-ratio: 50 / 79;
  height: auto;
  background: var(--game-drop-color);
  -webkit-mask: url("./assets/drop.png") center / contain no-repeat;
  mask: url("./assets/drop.png") center / contain no-repeat;
  z-index: 3;
  pointer-events: none;
}

.top-indicators.rank-level-5 {
  background: var(--daily-red);
}

.top-indicators.rank-level-4 {
  --game-drop-color: var(--diff-3);
  background: var(--diff-3);
}

.top-indicators.rank-level-3 {
  --game-drop-color: var(--diff-2);
  background: var(--diff-2);
}

.top-indicators.rank-level-2 {
  --game-drop-color: var(--diff-1);
  background: var(--diff-1);
}

.top-indicators.rank-level-1 {
  --game-drop-color: var(--daily-black);
  background: var(--daily-black);
}

.indicator {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 1px 2px;
  text-align: center;
}

.time-button {
  height: auto;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  text-align: right;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: "Anton Local", Arial, Helvetica, sans-serif;
}

.tool-time-button {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 3;
  transform: translateY(-50%);
  min-width: 0;
  touch-action: manipulation;
  opacity: 0.6;
}

.clearance-indicator {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  align-items: center;
  justify-content: end;
  margin-left: 0;
  font-family: "Anton Local";
  font-size: 2.6rem;
}

.clearance-value {
  display: block;
  position: relative;
  overflow: hidden;
  color: #fff !important;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
}

.clearance-indicator.diff-4 .clearance-value {
  color: var(--daily-yellow) !important;
}

.clearance-indicator.diff-0 .clearance-value {
  color: var(--daily-white) !important;
}

.clearance-value.is-rolling {
  display: grid;
  place-items: center;
  height: 1em;
}

.clearance-rank {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
}

.clearance-rank.rank-level-5 {
  color: var(--daily-yellow);
}

.clearance-rank.rank-level-1 {
  color: var(--daily-white);
}

.clearance-rank.rank-level-2,
.clearance-rank.rank-level-3,
.clearance-rank.rank-level-4 {
  color: var(--daily-white);
}

.clearance-rank-outgoing {
  animation: rank-roll-out var(--rank-roll-duration) cubic-bezier(0.22, 0.8, 0.25, 1) forwards;
}

.clearance-rank-incoming {
  animation: rank-roll-in var(--rank-roll-duration) cubic-bezier(0.22, 0.8, 0.25, 1) forwards;
}

.indicator.highlight {
  animation: indicator-highlight 0.45s ease;
}

.document-box {
  position: relative;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #fff;
  margin: 0;
  overflow: visible;
}

.doc-viewport {
  position: absolute;
  inset: 0;
  touch-action: none;
  user-select: none;
  overflow: visible;
  background: #fff;
}

.doc-viewport.layout-pending {
  opacity: 0;
  pointer-events: none;
}

.doc-sheet {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  width: 900px;
  height: 1600px;
  overflow: hidden;
  background: #fff;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.doc-body {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 14px 24px;
}

.doc-content {
  width: 100%;
  padding: 0;
  color: #000;
  background: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: pre-wrap;
}

.redacted-token {
  display: inline-block;
  white-space: nowrap;
}

.redacted-word {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  --letters: 4;
  z-index: 0;
}

.redacted-word.selected {
  z-index: 8;
}

.word-text {
  position: relative;
  z-index: 0;
  color: #000;
}

.redaction-bar {
  position: absolute;
  inset: -0.08em -0.16em;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.redaction-bar::before {
  content: "";
  position: absolute;
  inset: 0.14em -0.02em;
  background: #000;
  pointer-events: none;
}

.redaction-bar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-reveal);
}

.redacted-word.selected[data-difficulty="1"] .redaction-bar::before {
  outline: 5px solid var(--diff-1);
  outline-offset: 0;
}

.redacted-word.selected[data-difficulty="2"] .redaction-bar::before {
  outline: 5px solid var(--diff-2);
  outline-offset: 0;
}

.redacted-word.selected[data-difficulty="3"] .redaction-bar::before {
  outline: 5px solid var(--diff-3);
  outline-offset: 0;
}

.redacted-word.selected[data-difficulty="4"] .redaction-bar::before {
  outline: 5px solid var(--diff-4);
  outline-offset: 0;
}

.redacted-word.solved .redaction-bar,
.redacted-word.solved .uv-letter-layer,
.redacted-word.solved .uv-slot-layer {
  display: none;
}

.redacted-word.solved .word-text {
  font-weight: 700;
}

.redacted-word.solved[data-difficulty="1"] .word-text {
  color: var(--diff-1);
}

.redacted-word.solved[data-difficulty="2"] .word-text {
  color: var(--diff-2);
}

.redacted-word.solved[data-difficulty="3"] .word-text {
  color: var(--diff-3);
}

.redacted-word.solved[data-difficulty="4"] .word-text {
  color: var(--diff-4);
}

.redacted-word.solved-pop {
  animation: solved-pop 0.95s cubic-bezier(0.2, 0.86, 0.3, 1.2);
}

.solve-burst {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: none;
  overflow: visible;
  pointer-events: none;
}

.solve-burst.is-visible {
  display: block;
}

.solve-burst-panel {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  background: var(--accent-reveal);
  transform: translateX(100%);
}

.solve-burst-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.025em;
  padding: 0.1em 0.35em;
  color: var(--daily-white);
  font-family: "Anton Local", Anton, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.5rem, 13vw, 6rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  border-top: 3px solid white; border-bottom: 3px solid white;
  overflow: visible;
}

.solve-burst-letter,
.solve-burst-letter-glyph {
  display: block;
}

.solve-burst-letter {
  padding: 0.18em 0.35em;
  margin: -0.18em -0.35em;
  transform: translateX(110vw);
  overflow: visible;
}

.solve-burst-letter-glyph {
  padding: 0.18em 0.35em;
  margin: -0.18em -0.35em;
  color: white;
  text-shadow: 3px 4px 0 black;
  line-height: 1.15;
  overflow: visible;
}

.solve-burst.is-visible .solve-burst-panel {
  animation: solve-burst-panel var(--solve-burst-duration) cubic-bezier(0.22, 0.8, 0.25, 1) both;
}

.solve-burst.is-visible .solve-burst-letter {
  animation: solve-burst-letter-in 300ms cubic-bezier(0.16, 0.9, 0.22, 1) calc(180ms + var(--letter-delay)) forwards;
}

.solve-burst.is-visible .solve-burst-letter-glyph {
  animation: solve-burst-letter-out 200ms cubic-bezier(0.65, 0, 0.84, 0.1) calc(1000ms + var(--letter-delay)) forwards;
}

.solve-burst.is-win .solve-burst-panel {
  background: var(--daily-red);
}

.solve-burst.is-win .solve-burst-label,
.solve-burst.is-win .solve-burst-letter-glyph {
  color: var(--daily-yellow);
  text-shadow: 3px 4px 0 var(--daily-black);
}

@keyframes solve-burst-panel {
  0% { transform: translateX(100%); }
  20% { transform: translateX(0); }
  90% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes solve-burst-letter-in {
  from { transform: translateX(110vw); }
  to { transform: translateX(0); }
}

@keyframes solve-burst-letter-out {
  from { transform: translateX(0); }
  to { transform: translateX(-110vw); }
}

.level-drop-callout {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 17;
  display: none;
  padding: 8px 18px;
  border: 3px solid white;
  border-radius: 18px;
  background: var(--daily-red);
  color: #fff;
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 1);
  pointer-events: none;
}

.level-drop-callout::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 16px solid white;
}

.level-drop-callout::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 13px solid var(--daily-red);
}

.level-drop-callout.is-visible {
  display: block;
  animation: level-drop-callout var(--message-duration) ease forwards;
}

.solve-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  opacity: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  animation: solve-particle-burst 1.2s cubic-bezier(0.16, 0.84, 0.27, 1) forwards;
}

.uv-letter-layer,
.uv-slot-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
}

.snippet-burst-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(var(--letters), minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  pointer-events: none;
  overflow: visible;
}

.redacted-word.has-revealed-letters .uv-letter-layer {
  display: grid;
  grid-template-columns: repeat(var(--letters), minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  pointer-events: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: inherit;
}

.redacted-word.editing .uv-letter-layer {
  column-gap: 0.08em;
}

.uv-letter-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
  transition: color 180ms ease;
}

.uv-letter-cell.snippet-revealed {
  color: #fff;
}

.uv-letter-cell.snippet-revealed.snippet-recent {
  color: white;
  text-shadow: 0 0 2px var(--accent-reveal), 0 0 3px var(--accent-reveal), 0 0 6px var(--accent-reveal), 0 0 10px var(--accent-reveal), 0 0 15px var(--accent-reveal);
}

.uv-letter-cell.uv-revealed {
  color: white;
  text-shadow: 0 0 2px var(--uv-purple), 0 0 3px var(--uv-purple), 0 0 6px var(--uv-purple), 0 0 10px var(--uv-purple), 0 0 15px var(--uv-purple), 0 0 20px var(--uv-purple);
}

.uv-letter-cell.placeholder,
.uv-letter-cell.typed-entry {
  color: #8f8f8f;
}

.uv-letter-cell.uv-revealing {
  animation: uv-letter-reveal var(--uv-reveal-duration) linear forwards;
}

.uv-slot-layer {
  z-index: 3;
  grid-template-columns: repeat(var(--letters), minmax(0, 1fr));
}

.redacted-word.uv-selecting .uv-slot-layer {
  display: grid;
}

.redacted-word.uv-animating .uv-slot-layer {
  display: grid;
  pointer-events: none;
}

.uv-reveal-mark {
  --uv-reveal-offset-y: -0.3em;
  display: block;
  place-self: center;
  width: 1.9em;
  height: 1.9em;
  background: center / contain no-repeat url("./assets/uv.png");
  animation: uv-reveal-mark var(--uv-reveal-duration) ease forwards;
  pointer-events: none;
}
@keyframes uv-reveal-mark {
  0% { transform: translateY(var(--uv-reveal-offset-y)) scale(0); }
  70% { transform: translateY(var(--uv-reveal-offset-y)) scale(1); }
  100% { transform: translateY(var(--uv-reveal-offset-y)) scale(0); }
}
@keyframes uv-letter-reveal {
  0% { opacity: 0; }
  20% { opacity: 0; }
  21% { opacity: 1; }
  100% { opacity: 1; }
}

.snippet-burst {
  display: block;
  --snippet-burst-size: 1em;
  --snippet-burst-petal-size: 6px;
  --snippet-burst-color: var(--snippet-button);
  place-self: center;
  width: calc(var(--snippet-burst-size) * 2.6);
  height: calc(var(--snippet-burst-size) * 2.6);
  position: relative;
  pointer-events: none;
  overflow: visible;
  transform: translate(0.15em, 0.15em);
}

.snippet-burst.solve-word-burst {
  --snippet-burst-size: 1.15em;
  --snippet-burst-petal-size: 7px;
}

.snippet-burst-petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--snippet-burst-petal-size);
  height: var(--snippet-burst-petal-size);
  margin-left: calc(var(--snippet-burst-petal-size) * -0.5);
  margin-top: calc(var(--snippet-burst-petal-size) * -0.5);
  border-radius: 999px;
  background: var(--accent-reveal);
  opacity: 0;
  animation: snippet-burst-petal-flight var(--snippet-burst-duration) ease-out forwards;
  animation-delay: var(--snippet-burst-delay);
  pointer-events: none;
}

@keyframes snippet-burst-petal-flight {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--snippet-burst-angle)) translateY(0) scale(0.1);
  }
  90% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--snippet-burst-angle))
      translateY(calc(var(--snippet-burst-size) * -0.8)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--snippet-burst-angle))
      translateY(calc(var(--snippet-burst-size) * -1)) scale(0.5);
  }
}

.uv-slot {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f8f8f;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.uv-slot:active {
  color: #b5b5b5;
}

.uv-slot:disabled,
.uv-slot.disabled {
  opacity: 0;
  cursor: not-allowed;
}

.difficulty-pill {
  width: fit-content;
  border: 0;
  background: transparent;
  padding: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.difficulty-pill.diff-1 {
  color: var(--diff-1);
}

.difficulty-pill.diff-2 {
  color: var(--diff-2);
}

.difficulty-pill.diff-3 {
  color: var(--diff-3);
}

.difficulty-pill.diff-4 {
  color: var(--diff-4);
}

.difficulty-meta {
  color: #bfbfbf;
  margin-left: 1em;
}

.tool-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--tool-bg);
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  height: 80px;
  gap: 25px;
  box-shadow: 0 -2px 0 black;
  z-index: 20;
}

.review-back-button {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  touch-action: manipulation;
  pointer-events: auto;
  text-decoration: none;
  filter: none;
}

.review-back-icon {
  width: auto;
  height: 100%;
  display: block;
  filter: brightness(1);
  opacity: 0.6;
}

.tool-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  background: #3b135a;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 0;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 4;
  text-transform: uppercase;
  text-shadow: 0 0 2px var(--uv-purple), 0 0 3px var(--uv-purple), 0 0 6px var(--uv-purple), 0 0 10px var(--uv-purple), 0 0 15px var(--uv-purple), 0 0 20px var(--uv-purple);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.tool-hint.visible {
  opacity: 1;
}

.tool-hint.hidden {
  display: none;
}

.tool-tile {
  width: 76px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  position: relative;
  display: flex;
  justify-content: center;
  font-weight: 700;
  box-shadow: 3px 5px 0 var(--daily-black);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tool-tile.is-unavailable {
  border-color: rgb(255 255 255 / 35%);
  box-shadow: 3px 5px 0 rgb(5 5 5 / 35%);
}

.snippet-button {
  height: 100%; width: 100%; border: none; border-radius: 8px;
  background: var(--snippet-button);
  font-size: 1.6rem;
  color: white;
}

.uv-button {
  height: 100%; width: 100%; border: none; border-radius: 8px;
  background: #3b135a;
  font-size: 1.4rem;
  color: white;
  text-shadow: 0 0 2px var(--uv-purple), 0 0 3px var(--uv-purple), 0 0 6px var(--uv-purple), 0 0 10px var(--uv-purple), 0 0 15px var(--uv-purple), 0 0 20px var(--uv-purple);
}

.uv-button.armed {
  animation: none;
}

.snippet-button:disabled,
.snippet-button.disabled,
.uv-button:disabled,
.uv-button.used {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.45);
}

.tool-badge {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--daily-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
  text-shadow: none;
}

.tool-badge.reward-hit {
  animation: tool-badge-hit var(--tool-badge-burst-duration) cubic-bezier(0.22, 0.82, 0.34, 1.25);
}

.tool-badge-burst {
  position: absolute;
  top: 2px;
  right: -1px;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

.tool-badge-burst-petal {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  border-radius: 999px;
  background: #d1132d;
  opacity: 0;
  animation: tool-badge-burst-flight var(--tool-badge-burst-duration) ease-out forwards;
  transform: rotate(var(--tool-badge-burst-angle)) translateY(0) scale(0.1);
}

.tool-badge.empty {
  display: none;
}

.keyboard-hud {
  position: absolute;
  min-height: 58px;
  left: 0;
  right: 0;
  bottom: var(--keyboard-dock-height);
  padding: 8px 12px;
  background: #181818;
  display: grid;
  gap: 6px;
  border-top: 2px solid #fff;
  z-index: 31;
}

.keyboard-hud.hidden {
  display: none;
}

.keyboard-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.keyboard-hud-top.hidden {
  display: none;
}

.keyboard-hud.word-mode .keyboard-hud-label,
.keyboard-hud.word-mode .keyboard-hud-display {
  display: none;
}

.keyboard-hud.snippet-mode {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.keyboard-hud.snippet-mode .keyboard-hud-label {
  text-align: left;
}

.keyboard-hud-label {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  text-align: left;
  text-transform: none;
}

.keyboard-awards {
  display: flex;
  align-items: center;
  gap: 10px;
}

.keyboard-award {
  position: relative;
  min-width: 40px;
  min-height: 28px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #fff;
  box-shadow: none;
  font-weight: 900;
}

.keyboard-award.snippet {
  background: var(--snippet-button);
  color: white;
}

.keyboard-award.uv {
  background: #3b135a;
}

.keyboard-award.is-empty {
  opacity: 0.45;
  filter: saturate(0.35);
}

.keyboard-award-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #d1132d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

.keyboard-award-badge.empty {
  display: none;
}

.reward-flight-badge {
  position: fixed;
  left: 0;
  top: 0;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #d1132d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  z-index: 40;
  will-change: transform, opacity;
}

.keyboard-hud-display {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  display: flex;
  justify-content: center;
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.keyboard-hud.snippet-mode .keyboard-hud-display {
  width: 60px;
  min-width: 60px;
  justify-self: end;
  padding: 4px 0;
}

.keyboard-hud-display.invalid,
.redacted-word.invalid {
  animation: panel-shake var(--invalid-shake-duration) ease;
}

.keyboard-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
  padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 6px);
  background: var(--keyboard-back);
  box-shadow: none;
  touch-action: manipulation;
}

.keyboard-dock.hidden {
  display: none;
}

.keyboard-grid {
  display: grid;
  gap: 5px;
  touch-action: manipulation;
}

.keyboard-row {
  display: grid;
  gap: 4px;
  touch-action: manipulation;
}

.keyboard-key {
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--keyboard-key);
  color: var(--keyboard-key-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--keyboard-font);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow: inset 0 -5px 0 #9c9c9c;
  touch-action: manipulation;
}

.keyboard-key-label {
  display: block;
  line-height: 1;
  transform: translateY(-0.12em);
}

.keyboard-key:active {
  transform: translateY(1px);
}

.keyboard-key:disabled,
.keyboard-key.disabled {
  opacity: 0.33;
  cursor: not-allowed;
}

.keyboard-key:disabled:active,
.keyboard-key.disabled:active {
  transform: none;
}

.keyboard-key.special {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.keyboard-key.backspace {
  background: var(--keyboard-backspace);
  color: var(--keyboard-backspace-text);
  box-shadow: inset 0 -5px 0 #777;
}

.keyboard-key.backspace svg {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.keyboard-key.enter svg {
  width: 32px;
  height: 32px;
  display: block;
}

.keyboard-key.enter {
  background: var(--keyboard-enter);
  color: var(--keyboard-enter-text);
  box-shadow: inset 0 -5px 0 rgb(163, 163, 0);
}

.recharge-modal {
  position: absolute;
  inset: 0;
  z-index: 34;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.recharge-modal.hidden {
  display: none;
}

.recharge-panel {
  position: relative;
  width: min(100%, 360px);
  margin: 0;
  border: 5px solid var(--daily-black);
  border-radius: 10px;
  background: #fff;
  color: var(--daily-black);
  padding: 18px;
  display: grid;
  gap: 12px;
}

#rechargeMessage {
  white-space: pre-line;
  margin: 0;
  text-align: center;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.recharge-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.recharge-actions button {
  min-width: 100px;
  border: 4px solid var(--daily-black);
  border-radius: 8px;
  background: var(--daily-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 7px 10px;
  box-shadow: 0 4px 0 var(--daily-black);
  cursor: pointer;
}

.recharge-actions button.hidden {
  display: none;
}

.recharge-actions button:last-child {
  background: #fff;
  color: var(--daily-black);
}

.tutorial-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.18);
}

.tutorial-overlay.hidden {
  display: none;
}

.tutorial-overlay.pass-through {
  pointer-events: none;
}

.tutorial-panel {
  margin: 0;
  width: min(100%, 360px);
  padding: 18px;
  border: 5px solid var(--daily-black);
  border-radius: 10px;
  background: #fff;
  color: var(--daily-black);
  box-shadow: 0 8px 0 var(--daily-black);
  pointer-events: auto;
}

.tutorial-panel::before,
.tutorial-panel::after {
  display: none;
}

#tutorialMessage {
  white-space: pre-line;
  margin: 0;
  text-align: center;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.tutorial-focus {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tutorial-focus svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tutorial-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tutorial-arrow {
  position: absolute;
  width: 48px;
  pointer-events: none;
  animation: tutorial-arrow-bob 900ms ease-in-out infinite;
  transform: translateY(0);
}

.tutorial-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes tutorial-arrow-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(var(--tutorial-arrow-bob, 0px));
  }
}

.win-screen {
  position: relative;
  z-index: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--daily-black);
  padding: 0;
}

.win-panel {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  color: var(--daily-black);
}

.win-confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 102;
  pointer-events: none;
  overflow: hidden;
}

.win-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.win-confetti-canvas.active {
  opacity: 1;
}

.win-badge {
  width: 70%;
  margin: 0;
  border: 6px solid var(--daily-red);
  border-radius: 14px;
  background: white;
  overflow: hidden;
  margin: 12% 0 14% 0;
}

.win-badge-rank {
  height: 50px;
  background: var(--daily-red);
  color: var(--daily-white);
  font-family: "Anton Local", Impact, sans-serif;
  font-size: 2.4rem;
  font-style: italic; font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 2%;
}

.win-badge-rank-text {
  position: relative;
  z-index: 1;
  display: block;
  transform: translateX(-0.1em);
  text-shadow: 3px 4px 0 #000;
}

.win-badge-rank-export-wrap {
  position: relative;
  display: block;
  transform: translateX(-0.1em);
}

.win-badge-rank-shadow {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  color: #000;
  font: inherit;
  line-height: inherit;
  transform: translate(3px, 4px);
  pointer-events: none;
}

.win-badge-card {
  display: flex;
  flex-direction: column;
  font-family: "Anton Local";
  font-weight: 400;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 26px);
  background: #fff;
  text-align: center;
}

.win-badge-leak {
  color: var(--daily-black);
  margin-top: 5%;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.win-badge-stats {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 1.25fr) minmax(0, 1fr);
  align-items: center;
  color: var(--daily-gray);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 5%;
}

.win-badge-time {
  color: var(--daily-red);
  font-size: 3.4rem;
  font-weight: 400;
}

.win-badge-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.4rem;
  margin-top: 3%;
}

.win-badge-stat-best {
  align-items: center;
  text-align: center;
}

.win-badge-stat-avg {
  align-items: center;
  text-align: center;
}

.win-badge-stat-label {
  font-size: 0.72em;
}

.win-badge-stat-time {
  font-size: 0.9em;
}

.win-badge-stats.win-badge-stats-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 26px);
  margin-bottom: clamp(16px, 4vw, 26px);
  text-align: center;
}

.win-badge-stats-share .win-badge-time {
  line-height: 0.95;
}

.win-badge-share-date {
  color: var(--daily-black);
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  font-style: italic;
  line-height: 1;
  margin-top: 0;
}

.win-rank-list {
  width: 60%;
  display: grid;
  gap: 3%;
  font-family: "Impact Local";
  font-weight: 400;
}

.win-rank-entry {
  width: 100%;
}

.win-rank {
  padding: 3% 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  width: 100%;
  text-shadow: 1px 2px 0 black;
}

.win-rank-name {
  font-size: 1.2rem;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 5%;
  font-style: italic;
}

.win-rank-stat-share {
  font-size: 1.1rem;
  line-height: 1;
  margin-right: 5%;
}

.win-screen[data-level="5"] .win-badge {
  border-color: var(--daily-red);
}

.win-screen[data-level="5"] .win-badge-rank,
.win-rank.level-5 {
  background: var(--daily-red);
  color: var(--daily-yellow);
}

.win-screen[data-level="5"] .win-badge-time {
  color: var(--daily-red);
}

.win-screen[data-level="4"] .win-badge {
  border-color: var(--diff-3);
}

.win-screen[data-level="4"] .win-badge-rank,
.win-rank.level-4 {
  background: var(--diff-3);
  color: var(--daily-white);
}

.win-screen[data-level="4"] .win-badge-time {
  color: var(--diff-3);
}

.win-screen[data-level="3"] .win-badge {
  border-color: var(--diff-2);
}

.win-screen[data-level="3"] .win-badge-rank,
.win-rank.level-3 {
  background: var(--diff-2);
  color: var(--daily-white);
}

.win-screen[data-level="3"] .win-badge-time {
  color: var(--diff-2);
}

.win-screen[data-level="2"] .win-badge {
  border-color: var(--diff-1);
}

.win-screen[data-level="2"] .win-badge-rank,
.win-rank.level-2 {
  background: var(--diff-1);
  color: var(--daily-white);
}

.win-screen[data-level="2"] .win-badge-time {
  color: var(--diff-1);
}

.win-screen[data-level="1"] .win-badge {
  border-color: var(--daily-black);
}

.win-screen[data-level="1"] .win-badge-rank,
.win-rank.level-1 {
  background: var(--daily-black);
  color: var(--daily-white);
}

.win-screen[data-level="1"] .win-badge-time {
  color: var(--daily-black);
}

@media (max-height: 720px) {
  .win-panel {
    padding-top: 20px;
  }

  .win-rank-list {
    margin-top: 42px;
    gap: 12px;
  }

  .win-rank {
    min-height: 48px;
  }
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 45;
  border: 4px solid var(--daily-black);
  background: #fff;
  padding: 6px 10px;
  font-size: 0.9rem;
  color: var(--daily-black);
  font-weight: 900;
  text-align: center;
  white-space: pre-line;
  line-height: 1.15;
  opacity: 0;
  transition: opacity var(--toast-fade-duration) ease;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: 0 4px 0 var(--daily-black);
}

.toast.guess-feedback {
  bottom: calc(var(--keyboard-offset) + 14px);
  font-size: 1.08rem;
  font-weight: 800;
  border-width: 3px;
  padding: 8px 12px;
}

.toast.error {
  position: absolute;
  top: 35%;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  opacity: 1;
  transition: none;
  overflow: visible;
}

.toast-error-panel {
  position: relative;
  top: 0;
  width: 100%;
  background: var(--daily-black);
  transform: translateX(100%);
}

.toast-error-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.025em;
  padding: 0.1em 0.35em;
  color: var(--daily-red);
  font-family: "Anton Local", Anton, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.5rem, 13vw, 6rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  overflow: visible;
  text-align: center;
  white-space: nowrap;
  border-top: 3px solid white;
  border-bottom: 3px solid white;
}

.toast-error-letter,
.toast-error-letter-glyph {
  display: block;
}

.toast-error-letter {
  padding: 0.18em 0.35em;
  margin: -0.18em -0.35em;
  transform: translateX(110vw);
  overflow: visible;
}

.toast-error-letter-glyph {
  padding: 0.18em 0.35em;
  margin: -0.18em -0.35em;
  line-height: 1.15;
  overflow: visible;
  text-shadow: 3px 4px 0 #fff;
}

.toast.error.visible .toast-error-panel {
  animation: solve-burst-panel var(--solve-burst-duration) cubic-bezier(0.22, 0.8, 0.25, 1) both;
}

.toast.error.visible .toast-error-letter {
  animation: solve-burst-letter-in 300ms cubic-bezier(0.16, 0.9, 0.22, 1) calc(180ms + var(--error-letter-delay)) forwards;
}

.toast.error.visible .toast-error-letter-glyph {
  animation: solve-burst-letter-out 200ms cubic-bezier(0.65, 0, 0.84, 0.1) calc(1000ms + var(--error-letter-delay)) forwards;
}

.toast.entry-feedback {
  background: #c1121f;
  color: #fff;
  left: 50%;
  bottom: calc(var(--keyboard-offset) + 14px);
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid #7b7b7b;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 2px 3px #8c8c8c;
}

.toast.visible {
  opacity: 1;
}

.toast.hidden {
  display: none;
}

@keyframes indicator-highlight {
  0% {
    transform: scale(1);
    color: #fff;
  }

  40% {
    transform: scale(1.04);
    color: #8be8ff;
  }

  100% {
    transform: scale(1);
    color: #fff;
  }
}

@keyframes rank-roll-out {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-110%);
  }
}

@keyframes rank-roll-in {
  from {
    transform: translateY(110%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes panel-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}


@keyframes solved-pop {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }

  35% {
    filter: brightness(1.8);
    transform: scale(1.14);
  }

  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes solve-particle-burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2);
  }
}

@keyframes level-drop-callout {
  0% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.92);
  }

  14% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  72% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -6px) scale(0.96);
  }
}

@keyframes tool-badge-hit {
  0% {
    transform: scale(0.7);
    box-shadow: 0 0 0 rgba(209, 19, 45, 0);
  }

  55% {
    transform: scale(1.26);
    box-shadow: 0 0 0 8px rgba(209, 19, 45, 0.18);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  }
}

@keyframes tool-badge-burst-flight {
  0% {
    opacity: 1;
    transform: rotate(var(--tool-badge-burst-angle)) translateY(0) scale(0.1);
  }

  90% {
    opacity: 1;
    transform: rotate(var(--tool-badge-burst-angle)) translateY(-17px) scale(1);
  }

  100% {
    opacity: 0;
    transform: rotate(var(--tool-badge-burst-angle)) translateY(-22px) scale(0.55);
  }
}

@keyframes uv-armed {
  0%,
  100% {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(123, 68, 233, 0.26);
  }
}

/* Daily Leak-specific layout */
.daily-leak-masthead {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  z-index: 1;
  background: var(--daily-red);
  color: var(--daily-white);
  overflow: visible;
  border-bottom: 2px solid black;
}

.daily-leak-meta {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 12px;
  align-items: flex-end;
  color: #ffff00;
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  z-index: 3;
}

.daily-leak-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 94%;
  max-width: none;
  height: auto;
  object-fit: contain;
  margin: 3% 3% 2% 3%;
}

.daily-leak-tagline {
  position: relative;
  z-index: 2;
  margin-bottom: 2.5%;
  color: #ffff00;
  font-family: "Roboto Local", Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  font-style: italic;
  text-align: center;
}

.daily-leak-drop {
  position: absolute;
  right: 12px;
  bottom: -40px;
  width: clamp(28px, 4.8vw, 42px);
  aspect-ratio: 50 / 79;
  height: auto;
  background: var(--daily-red);
  -webkit-mask: url("./assets/drop.png") center / contain no-repeat;
  mask: url("./assets/drop.png") center / contain no-repeat;
  z-index: 4;
  pointer-events: none;
}

.public-document-backdrop {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 60px;
  right: 0;
  bottom: 80px;
  overflow: hidden;
  opacity: 0.7;
  filter: blur(4px);
  transform: none;
  transform-origin: top center;
  pointer-events: none;
}

.public-actions {
  position: relative;
  z-index: 2;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 80px;
  background: var(--daily-red);
  overflow: visible;
}

.public-shell.menu-open {
  z-index: 104;
}

.public-menu-button {
  position: absolute;
  right: 3%;
  top: 50%;
  height: 40px;
  padding: 0;
  border: 0;
  transform: translateY(-50%);
  background: transparent;
  cursor: pointer;
}

.public-menu-button.is-open {
  opacity: 0.55;
}

.public-menu-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.public-menu-panel {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  height: 0;
  padding-top: 0;
  overflow: hidden;
  background: var(--daily-red);
  box-shadow: 0 -2px 0 var(--daily-black);
  opacity: 0;
  pointer-events: none;
  transition: height 260ms ease, padding-top 260ms ease, opacity 160ms ease;
}

.public-menu-panel.is-open {
  height: 184px;
  padding-top: 6px;
  opacity: 1;
  pointer-events: auto;
}

.public-menu-panel.has-show-leak {
  grid-template-rows: repeat(5, 1fr);
}

.public-menu-panel.has-show-leak.is-open {
  height: 215px;
}

.public-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: 900 1.1rem/1 "Roboto Local", Arial, Helvetica, sans-serif;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.public-menu-item:disabled {
  color: rgb(255 255 255 / 50%);
}

.public-menu-contact {
  cursor: pointer;
}

.public-masthead {
  grid-row: 1;
  min-height: 0;
  z-index: 2;
  cursor: pointer;
}

.public-masthead .daily-leak-meta {
  position: absolute;
  top: 10%;
  right: 4%;
  margin: 0;
}

@media (max-height: 720px) {
  .daily-leak-logo {
    width: min(92%, 620px);
    margin-top: 4px;
  }

  .intro-actions {
    padding: 0;
  }

  .keyboard-key {
    min-height: 50px;
  }
}

/* Preserve the reference layout, then compress all shorter viewports smoothly. */
@media (max-height: 760px) {
  .daily-leak-logo {
    width: 94%;
    margin: clamp(8px, 1.8dvh, 14px) 3% clamp(4px, 0.8dvh, 8px);
  }

  .public-masthead .daily-leak-meta {
    top: clamp(8px, 1.8dvh, 14px);
  }

  .daily-leak-meta {
    gap: clamp(8px, 1.6dvh, 12px);
    font-size: clamp(0.74rem, 2dvh, 0.9rem);
  }

  .daily-leak-tagline {
    margin-bottom: clamp(6px, 1.4dvh, 10px);
    font-size: clamp(0.66rem, 1.8dvh, 0.8rem);
  }

  .win-screen {
    min-height: 0;
    overflow: hidden;
  }

  .win-panel {
    min-height: 0;
    padding-top: 0;
    justify-content: space-evenly;
  }

  .win-badge {
    flex: 0 0 auto;
    margin: clamp(6px, 1.4dvh, 18px) 0;
    border-width: clamp(4px, 0.8dvh, 6px);
    border-radius: clamp(10px, 2dvh, 14px);
  }

  .win-badge-rank {
    height: clamp(34px, 6.2dvh, 50px);
    font-size: clamp(1.65rem, 5.3dvh, 2.4rem);
  }

  .win-badge-card {
    gap: clamp(7px, 1.8dvh, 16px);
  }

  .win-badge-leak {
    margin-top: clamp(7px, 1.5dvh, 12px);
    font-size: clamp(0.9rem, 2.4dvh, 1.2rem);
  }

  .win-badge-stats {
    grid-template-columns: minmax(0, 1fr) minmax(86px, 1.25fr) minmax(0, 1fr);
    margin-bottom: clamp(7px, 1.5dvh, 12px);
  }

  .win-badge-time {
    font-size: clamp(2.35rem, 7dvh, 3.4rem);
  }

  .win-badge-stat {
    margin-top: clamp(0px, 0.5dvh, 3%);
    font-size: clamp(0.9rem, 2.7dvh, 1.4rem);
  }

  .win-rank-list {
    flex: 0 0 auto;
    gap: clamp(4px, 1dvh, 10px);
    margin: clamp(6px, 1.4dvh, 18px) 0;
  }

  .win-rank {
    min-height: 0;
    padding: clamp(4px, 1dvh, 10px) 0;
  }

  .win-rank-name {
    font-size: clamp(0.88rem, 2.2dvh, 1.2rem);
  }

  .win-rank-stat-share {
    font-size: clamp(0.84rem, 2.1dvh, 1.1rem);
  }
}
