@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2C3E50;
  background-color: #F8F9FA;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 16px;
}

a {
  color: #B71C1C;
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover {
  color: rgb(138.7677725118, 21.2322274882, 21.2322274882);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  transition: all 150ms ease;
}
button:focus {
  outline: 2px solid #FFC107;
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

.btn {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  transition: all 150ms ease;
  border: 2px solid transparent;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: #B71C1C;
  color: white;
}
.btn-primary:hover {
  background-color: rgb(138.7677725118, 21.2322274882, 21.2322274882);
}

.btn-secondary {
  background-color: #2E7D32;
  color: white;
}
.btn-secondary:hover {
  background-color: rgb(32.2807017544, 87.7192982456, 35.0877192982);
}

.btn-reset {
  padding: 8px 16px;
  background-color: white;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-size: 14px;
}
.btn-reset:hover {
  background-color: rgb(242.25, 242.25, 242.25);
}

.password-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.password-form {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 400px;
  width: 100%;
}
.password-form p {
  margin-bottom: 16px;
  color: #546E7A;
}
.password-form input[type=password] {
  width: 100%;
  padding: 8px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 16px;
}
.password-form input[type=password]:focus {
  outline: none;
  border-color: #B71C1C;
}
.password-form .btn {
  width: 100%;
}

.password-error {
  color: #F44336;
  font-weight: 500;
}

.game-page {
  background-color: #1a1a1a;
  min-height: 100vh;
}

.game-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}
@media (max-width: 768px) {
  .game-container {
    padding: 0;
    padding-bottom: 16px;
  }
}

.game-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 32px 16px;
  background: linear-gradient(135deg, #B71C1C 0%, rgb(138.7677725118, 21.2322274882, 21.2322274882) 100%);
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  gap: 4px;
  min-height: 100px;
  border-radius: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
@media (min-width: 769px) {
  .game-header {
    border-radius: 8px;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 24px 32px 16px;
    margin-bottom: 24px;
    min-height: 120px;
  }
}
.game-header h1 {
  font-family: "Berkshire Swash", cursive;
  font-size: 2rem;
  font-weight: 400;
  color: white;
  margin: 0;
  line-height: 1.2;
}
@media (min-width: 769px) {
  .game-header h1 {
    font-size: 3rem;
  }
}
.game-header .puzzle-title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
@media (min-width: 769px) {
  .game-header .puzzle-title {
    font-size: 1.4rem;
  }
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 150ms ease;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
}
.header-icon i {
  color: white;
}
.header-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}
.header-icon:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}
@media (min-width: 769px) {
  .header-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

.header-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.header-icon-left:hover {
  transform: translateY(-50%) scale(1.1);
}

.header-icons-right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.game-main {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 1024px) {
  .game-main {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .game-main {
    padding: 0 16px;
    gap: 8px;
  }
}

.game-area {
  flex-shrink: 0;
}

.clues-sidebar {
  flex-shrink: 0;
  width: 400px;
}
@media (max-width: 1024px) {
  .clues-sidebar {
    width: 100%;
    max-width: 600px;
  }
}

.crossword-grid {
  display: grid;
  grid-template-columns: repeat(14, 40px);
  grid-template-rows: repeat(14, 40px);
  gap: 1px;
  background-color: #1A5D25;
  border: 2px solid #1A5D25;
  position: relative;
  margin: 0 auto;
  user-select: none;
  max-width: 100%;
}
@media (max-width: 768px) {
  .crossword-grid {
    grid-template-columns: repeat(14, minmax(0, 1fr));
    grid-template-rows: repeat(14, minmax(0, 1fr));
    width: calc(100vw - 32px);
    max-width: 450px;
    aspect-ratio: 1;
  }
}

.grid-cell {
  background-color: #FFFFFF;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #2C3E50;
}
@media (max-width: 768px) {
  .grid-cell {
    font-size: 16px;
  }
}
.grid-cell.highlighted {
  background-color: rgb(202.3461538462, 230.0961538462, 252.1538461538);
}

.grid-cell-shade1 {
  background-color: #0D3D14;
}

.grid-cell-shade2 {
  background-color: #114518;
}

.grid-cell-shade3 {
  background-color: #154D1C;
}

.tile-group {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  transition: transform 300ms ease;
}
.tile-group.group-hover {
  transform: scale(1.01);
}
.tile-group.dragging {
  opacity: 0.9;
  z-index: 100;
  cursor: grabbing;
  transform: scale(1.05) rotate(-1deg);
  transition: transform 150ms ease-out;
}
.tile-group.dragging.locked {
  transform: scale(1.03) rotate(-1deg);
}
.tile-group.snapping {
  transition: left 300ms cubic-bezier(0.34, 1.56, 0.64, 1), top 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tile-group.locked {
  cursor: grab;
}
.tile-group.rotating {
  transition: transform 150ms cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.tile-letter {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #2C3E50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: all 150ms ease;
}
@media (max-width: 768px) {
  .tile-letter {
    font-size: 14px;
  }
}
.tile-letter.edge-top {
  border-top-color: #666666;
}
.tile-letter.edge-right {
  border-right-color: #666666;
}
.tile-letter.edge-bottom {
  border-bottom-color: #666666;
}
.tile-letter.edge-left {
  border-left-color: #666666;
}
.tile-letter.solved .letter-text {
  color: #2E7D32;
  font-weight: 700;
}
.tile-group.group-hover .tile-letter {
  border-color: rgb(129.7692307692, 195.7692307692, 248.2307692308);
}
.tile-group.rotating .tile-letter .letter-text {
  display: inline-block;
  transform: rotate(-90deg);
  transition: transform 150ms cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.tile-group.wrong-orientation {
  animation: pulse 500ms ease-in-out 2;
}
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(33, 150, 243, 0);
  }
  50% {
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.8);
  }
}

.tile-group.success {
  animation: lock-in 500ms ease-out;
}
@keyframes lock-in {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.tile-ghost {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}

.ghost-letter {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  pointer-events: none;
}

.group-highlight-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}

.group-highlight-cell {
  position: absolute;
  pointer-events: none;
  background-color: rgba(33, 150, 243, 0.2);
  border: 2px solid rgba(33, 150, 243, 0.8);
  box-sizing: border-box;
  box-shadow: inset 0 0 10px rgba(33, 150, 243, 0.3), 0 0 15px rgba(33, 150, 243, 0.4);
  animation: highlight-pulse 2s ease-in-out infinite;
}

@keyframes highlight-pulse {
  0%, 100% {
    background-color: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.8);
    box-shadow: inset 0 0 10px rgba(33, 150, 243, 0.3), 0 0 15px rgba(33, 150, 243, 0.4);
  }
  50% {
    background-color: rgba(33, 150, 243, 0.3);
    border-color: rgb(33, 150, 243);
    box-shadow: inset 0 0 15px rgba(33, 150, 243, 0.5), 0 0 25px rgba(33, 150, 243, 0.6);
  }
}
.clues-sidebar {
  padding: 24px;
  overflow-y: auto;
  max-height: 600px;
}
@media (max-width: 1024px) {
  .clues-sidebar {
    max-height: none;
    padding: 16px;
  }
}
@media (max-width: 768px) {
  .clues-sidebar {
    padding: 8px 0;
  }
}

.clues-section {
  margin-bottom: 16px;
}
.clues-section:last-child {
  margin-bottom: 0;
}
.clues-section h3 {
  font-weight: 600;
  color: #FF6B6B;
  margin-bottom: 8px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (min-width: 769px) {
  .clues-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }
}

.clues-list {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (min-width: 769px) {
  .clues-list {
    gap: 4px;
  }
}

.clue-item {
  padding: 0;
  border-radius: 4px;
  transition: background-color 150ms ease;
}
.clue-item::marker {
  color: #66BB6A;
}
@media (min-width: 769px) {
  .clue-item {
    padding: 0;
  }
}
.clue-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.clue-item.completed {
  list-style: none;
  position: relative;
}
.clue-item.completed::before {
  content: "✓";
  position: absolute;
  left: -24px;
  color: #66BB6A;
  font-weight: bold;
}
.clue-item.completed .clue-text {
  color: #66BB6A;
}
.clue-item.completed .clue-length {
  color: #66BB6A;
}

.clue-text {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  color: #E0E0E0;
  font-size: 20px;
}

.clue-length {
  color: #999;
  font-size: 14px;
}

body:not(.game-page) {
  min-height: 100vh;
  min-height: 100lvh;
}
body:not(.game-page)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100lvh;
  height: 100vh;
  min-height: calc(100vh + 100px);
  background-image: url("../assets/background.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: white;
  font-size: 1rem;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: snowfall linear infinite;
  opacity: 0.8;
}
.snowflake::after {
  content: "❄";
}

@keyframes snowfall {
  0% {
    transform: translateY(-20px) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}
.snowflake:nth-child(1) {
  left: 28%;
  font-size: 1rem;
  opacity: 0.6;
  animation-duration: 15s;
  animation-delay: -15s;
}

.snowflake:nth-child(2) {
  left: 47%;
  font-size: 1.3rem;
  opacity: 0.9;
  animation-duration: 20s;
  animation-delay: -12s;
}

.snowflake:nth-child(3) {
  left: 12%;
  font-size: 0.7rem;
  opacity: 1;
  animation-duration: 13s;
  animation-delay: -15s;
}

.snowflake:nth-child(4) {
  left: 40%;
  font-size: 1.1rem;
  opacity: 0.5;
  animation-duration: 9s;
  animation-delay: -4s;
}

.snowflake:nth-child(5) {
  left: 94%;
  font-size: 1.2rem;
  opacity: 0.9;
  animation-duration: 13s;
  animation-delay: -4s;
}

.snowflake:nth-child(6) {
  left: 28%;
  font-size: 1.4rem;
  opacity: 0.7;
  animation-duration: 15s;
  animation-delay: -4s;
}

.snowflake:nth-child(7) {
  left: 34%;
  font-size: 1.3rem;
  opacity: 0.9;
  animation-duration: 17s;
  animation-delay: -7s;
}

.snowflake:nth-child(8) {
  left: 45%;
  font-size: 1.4rem;
  opacity: 0.5;
  animation-duration: 19s;
  animation-delay: -8s;
}

.snowflake:nth-child(9) {
  left: 65%;
  font-size: 1.1rem;
  opacity: 0.9;
  animation-duration: 15s;
  animation-delay: -15s;
}

.snowflake:nth-child(10) {
  left: 61%;
  font-size: 0.6rem;
  opacity: 0.5;
  animation-duration: 18s;
  animation-delay: -8s;
}

.snowflake:nth-child(11) {
  left: 67%;
  font-size: 1.4rem;
  opacity: 0.8;
  animation-duration: 17s;
  animation-delay: -15s;
}

.snowflake:nth-child(12) {
  left: 1%;
  font-size: 1.4rem;
  opacity: 0.8;
  animation-duration: 15s;
  animation-delay: -7s;
}

.snowflake:nth-child(13) {
  left: 77%;
  font-size: 1.5rem;
  opacity: 1;
  animation-duration: 12s;
  animation-delay: -8s;
}

.snowflake:nth-child(14) {
  left: 39%;
  font-size: 1.1rem;
  opacity: 0.6;
  animation-duration: 13s;
  animation-delay: -4s;
}

.snowflake:nth-child(15) {
  left: 15%;
  font-size: 1.2rem;
  opacity: 0.7;
  animation-duration: 15s;
  animation-delay: -3s;
}

.snowflake:nth-child(16) {
  left: 75%;
  font-size: 1.1rem;
  opacity: 0.5;
  animation-duration: 11s;
  animation-delay: -4s;
}

.snowflake:nth-child(17) {
  left: 22%;
  font-size: 1.5rem;
  opacity: 1;
  animation-duration: 19s;
  animation-delay: -8s;
}

.snowflake:nth-child(18) {
  left: 54%;
  font-size: 1.3rem;
  opacity: 1;
  animation-duration: 13s;
  animation-delay: -13s;
}

.snowflake:nth-child(19) {
  left: 15%;
  font-size: 1.5rem;
  opacity: 0.5;
  animation-duration: 16s;
  animation-delay: -5s;
}

.snowflake:nth-child(20) {
  left: 58%;
  font-size: 0.8rem;
  opacity: 0.8;
  animation-duration: 18s;
  animation-delay: -13s;
}

.snowflake:nth-child(21) {
  left: 40%;
  font-size: 1.4rem;
  opacity: 1;
  animation-duration: 19s;
  animation-delay: -11s;
}

.snowflake:nth-child(22) {
  left: 71%;
  font-size: 1.5rem;
  opacity: 0.7;
  animation-duration: 9s;
  animation-delay: -4s;
}

.snowflake:nth-child(23) {
  left: 33%;
  font-size: 1.5rem;
  opacity: 0.6;
  animation-duration: 10s;
  animation-delay: -9s;
}

.snowflake:nth-child(24) {
  left: 19%;
  font-size: 0.7rem;
  opacity: 1;
  animation-duration: 19s;
  animation-delay: -3s;
}

.snowflake:nth-child(25) {
  left: 38%;
  font-size: 0.9rem;
  opacity: 0.8;
  animation-duration: 15s;
  animation-delay: -3s;
}

.snowflake:nth-child(26) {
  left: 79%;
  font-size: 1.1rem;
  opacity: 0.6;
  animation-duration: 17s;
  animation-delay: -8s;
}

.snowflake:nth-child(27) {
  left: 21%;
  font-size: 1rem;
  opacity: 0.5;
  animation-duration: 10s;
  animation-delay: -2s;
}

.snowflake:nth-child(28) {
  left: 61%;
  font-size: 0.8rem;
  opacity: 0.7;
  animation-duration: 13s;
  animation-delay: -4s;
}

.snowflake:nth-child(29) {
  left: 67%;
  font-size: 1.3rem;
  opacity: 0.9;
  animation-duration: 9s;
  animation-delay: -11s;
}

.snowflake:nth-child(30) {
  left: 37%;
  font-size: 1rem;
  opacity: 1;
  animation-duration: 19s;
  animation-delay: -5s;
}

.header {
  text-align: center;
  padding: 32px 16px;
  background: linear-gradient(135deg, #B71C1C 0%, rgb(138.7677725118, 21.2322274882, 21.2322274882) 100%);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 32px;
  border-radius: 8px;
}
.header h1 {
  font-family: "Berkshire Swash", cursive;
  font-weight: 400;
  font-size: 24px;
}
@media (min-width: 769px) {
  .header h1 {
    font-size: 32px;
  }
}

.calendar-container {
  max-width: 900px;
  margin: 0 auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

.calendar-day {
  aspect-ratio: 1;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 300ms ease;
  padding: 8px;
  text-decoration: none;
  color: #2C3E50;
}
.calendar-day:hover:not(.locked) {
  transform: translateY(-4px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.95);
}
.calendar-day.locked {
  cursor: not-allowed;
  background-color: rgba(180, 180, 180, 0.6);
}
.calendar-day.locked:hover {
  transform: none;
  background-color: rgba(180, 180, 180, 0.6);
}
.calendar-day.completed {
  background-color: rgba(232, 245, 233, 0.9);
  border: 2px solid #2E7D32;
}
.calendar-day.available {
  border: 2px solid #FFC107;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 215, 0, 0.3) 100%);
}

.day-number {
  position: absolute;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(183, 28, 28, 0.25);
  z-index: 0;
  line-height: 1;
}
.calendar-day.completed .day-number {
  color: rgba(46, 125, 50, 0.25);
}
.calendar-day.locked .day-number {
  color: rgba(100, 100, 100, 0.2);
}
@media (max-width: 768px) {
  .day-number {
    font-size: 3.5rem;
  }
}
@media (max-width: 480px) {
  .day-number {
    font-size: 3rem;
  }
}

.day-title {
  font-family: "Berkshire Swash", cursive;
  font-size: 14px;
  color: #2C3E50;
  text-align: center;
  line-height: 1.3;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  z-index: 1;
  position: relative;
}
.calendar-day.completed .day-title {
  color: #2E7D32;
}
.calendar-day.locked .day-title {
  color: #666;
}
@media (max-width: 768px) {
  .day-title {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .day-title {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
}

.day-status {
  font-size: 14px;
  margin-top: 4px;
  text-align: center;
}

.day-time {
  font-size: 12px;
  color: #546E7A;
  margin-top: 4px;
}

.lock-icon {
  font-size: 24px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fade-in 300ms ease-out;
}
.modal.hidden {
  display: none;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: slide-down 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes slide-down {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-content h2 {
  color: #2E7D32;
  margin-bottom: 16px;
  font-size: 28px;
}
.modal-content .completion-time {
  font-size: 18px;
  color: #546E7A;
  margin-bottom: 24px;
}
.modal-content .completion-time #final-time {
  font-weight: 700;
  color: #FFC107;
}

.modal-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
.confetti-particle {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 1010;
  animation: confetti-fall 3s ease-in forwards;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #FFC107;
  border-radius: 50%;
  animation: sparkle 800ms ease-out;
  pointer-events: none;
}

@keyframes highlight-spread {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.word-highlight {
  position: absolute;
  height: 100%;
  background-color: rgba(46, 125, 50, 0.2);
  top: 0;
  left: 0;
  animation: highlight-spread 500ms ease-out forwards;
  pointer-events: none;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
.shake {
  animation: shake 300ms ease-out;
}

@keyframes wrong-letter-tilt {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}
.tile-letter.wrong-letter {
  color: rgb(185.5, 139.125, 0) !important;
  transition: none !important;
}
.tile-letter.wrong-letter .letter-text {
  display: inline-block;
  animation: wrong-letter-tilt 200ms ease-in-out 3 forwards !important;
}

@keyframes wave-glow {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
.celebration-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.4) 0%, transparent 70%);
  pointer-events: none;
  animation: wave-glow 500ms ease-out;
}

/*# sourceMappingURL=main.css.map */
