* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #0b3d91 0%, #1f6fb2 45%, #3aa0d8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.bg-art {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-art-img {
  position: absolute;
  user-select: none;
}

.bg-art-left {
  left: calc(50% - min(600px, 40vw) - 5px);
  bottom: 3px;
  width: clamp(260px, 25vw, 420px);
  opacity: 0.25;
  z-index: 2;
}

.bg-art-right {
  right: 15px;
  bottom: 40px;
  width: clamp(220px, 23vw, 360px);
  opacity: 0.95;
  z-index: 2;
}

.bg-art-bottom {
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  width: clamp(650px, 58vw, 950px);
  opacity: 0.18;
  z-index: 0;
}

@media (min-width: 601px) {
  .left-luffy {
    display: none;
  }

  .bg-art-cloud {
    right: 300px;
    bottom: 0px;
    width: clamp(300px, 40vw, 500px);
    opacity: 0.3;
    z-index: 2;
  }

  .bg-art-gear {
    right: 100px;
    top: 360px;
    width: clamp(300px, 40vw, 500px);
    opacity: 0.2;
    z-index: 2;
  }
}

h1 {
  font-family: "Pirata One", cursive;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  font-size: 60px;
  color: #ffd700;
  text-shadow:
    3px 3px 0 #b8860b,
    6px 6px 0 rgba(0, 0, 0, 0.35);
  letter-spacing: 2px;
}

#overlay {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.upperContainer {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 320px;
  margin: 20px auto 0;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -40px;
  gap: 12px;
}

.container .contents {
  float: none;
  width: 100%;
  max-width: 860px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 8px;
}

.upperContainer .word {
  position: absolute;
  left: 50%;
  top: 220px;
  transform: translateX(-50%);
  width: 700px;
  display: flex;
  justify-content: center;
  z-index: 5;
}
.upperContainer .word ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--letter-gap, 8px);
  width: 100%;
}
.upperContainer .word ul li {
  border-bottom: 6px solid #ab0d0d;
  width: var(--letter-size, 45px);
  height: calc(var(--letter-size, 45px) * 1.3);
  justify-content: center;
  text-align: center;
  font-size: var(--letter-font, 50px);
  line-height: calc(var(--letter-size, 45px) * 1.3);
  text-transform: uppercase;
  font-family: "Rowdies", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #ffd700;
}

.upperContainer .word ul li.guessed {
  border-bottom: none;
}

.upperContainer .word ul li.space {
  border-bottom: none;
  color: #ffd700;
  width: auto;
  min-width: 14px;
}

.container .keyboard {
  position: relative;
  overflow: hidden;

  width: min(660px, 92vw);
  max-width: 100%;

  margin-left: auto;
  margin-right: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  padding: 22px 16px;

  border-radius: 30px;

  background:
    linear-gradient(rgba(255, 215, 0, 0.88), rgba(255, 185, 66, 0.88)),
    transparent;

  border: 4px solid #7a4b29;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);

  z-index: 5;
}

.keyboard-row {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.keyboard button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 46px;
  font-family: "Pirata One", monospace;
  font-weight: 400;
  font-style: normal;
  height: clamp(42px, 5vw, 52px);
  font-size: clamp(16px, 2vw, 20px);
  text-transform: uppercase;
  background-color: #0b3d91;
  color: #ffd700;
  border: 3px solid #1a1a2e;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.keyboard button:hover {
  background-color: #e63946;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  color: #ffd700;
}

.keyboard button.choosed.incorrect {
  background-color: #e63946;
  cursor: not-allowed;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  color: #2a0000;
}
.keyboard button.choosed.correct {
  background-color: #2e9e44;
  cursor: not-allowed;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  color: #eaffea;
}

.keyboard-credit {
  position: absolute;
  bottom: 4px;
  right: 12px;
  font-family: "Pirata One", cursive;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 1px;
  color: #0b3d91;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 720px) {
  .keyboard-credit {
    display: none;
  }
}

.contents .incorrectGuess {
  font-family: "Rowdies", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 30px;
  margin-top: 20px;
  color: #fff3cd;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}
.header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.title-logo {
  height: clamp(44px, 6.5vw, 68px);
  width: auto;
}
.generate {
  position: absolute;
  right: 20px;
  top: 30px;
  z-index: 5;
}
.generate button {
  font-family: "Pirata One", sans-serif;
  font-weight: 500;
  align-items: center;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
  border: 4px solid #7a4b29;
  background-color: #e63946;
  color: #ffd700;
  border-radius: 20px;
  padding: 10px 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.generate button:hover {
  background-color: #ffd700;
  color: #7a4b29;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.generate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.generate-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#changeLevel {
  background-color: #0b3d91;
}

#changeLevel:hover {
  background-color: #1f6fb2;
}

.difficulty-badge {
  display: inline-block;
  font-family: "Pirata One", sans-serif;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  color: #fff3cd;
  background-color: #0b3d91;
  border: 2px solid #7a4b29;
}

.difficulty-badge.easy {
  background-color: #2e9e44;
}

.difficulty-badge.medium {
  background-color: #b8860b;
}

.difficulty-badge.hard {
  background-color: #e63946;
}

.difficulty-badge.everything {
  background-color: #1f6fb2;
}

.landing-page {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: fit-content;
  border: 4px solid #7a4b29;
  border-radius: 20px;
  padding: 30px;
  width: fit-content;
  max-width: 500px;
  margin: auto;
  font-family: "Pirata One", sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(180deg, rgba(255, 243, 205, 0.95), rgba(255, 243, 205, 0.95)),
    url("./onepiece-images/logo.png") center / contain no-repeat,
    #fff3cd;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 10;
  color: #7a4b29;
  text-align: center;
}

.landing-page h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #0b3d91;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.landing-info {
  margin-bottom: 20px;
  text-align: left;
}

.landing-info p {
  font-family: "Rowdies", sans-serif;
  font-size: 16px;
  margin-bottom: 10px;
  color: #7a4b29;
}

.landing-info i {
  color: #e63946;
  margin-right: 8px;
  width: 20px;
}

.landing-difficulties {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-diff {
  font-family: "Pirata One", sans-serif;
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 10px;
  color: #fff3cd;
}

.landing-diff.easy {
  background-color: #2e9e44;
}

.landing-diff.medium {
  background-color: #b8860b;
}

.landing-diff.hard {
  background-color: #e63946;
}

.landing-diff.everything {
  background-color: #1f6fb2;
}

.set-sail-btn {
  font-family: "Pirata One", sans-serif;
  font-size: 28px;
  padding: 16px 48px;
  border: 4px solid #7a4b29;
  border-radius: 20px;
  cursor: pointer;
  color: #ffd700;
  background: linear-gradient(135deg, #e63946, #c62b3a);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.set-sail-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  background: linear-gradient(135deg, #ffd700, #e63946);
  color: #7a4b29;
}

.difficulty-selector {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: fit-content;
  border: 4px solid #7a4b29;
  border-radius: 20px;
  padding: 30px;
  width: fit-content;
  margin: auto;
  font-family: "Pirata One", sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(180deg, rgba(255, 243, 205, 0.9), rgba(255, 243, 205, 0.9)),
    url("./onepiece-images/logo.png") center / contain no-repeat,
    #fff3cd;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 10;
  color: #7a4b29;
}

.difficulty-selector h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: #0b3d91;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

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

.difficulty-description {
  font-family: "Rowdies", sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #7a4b29;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background-color: rgba(255, 215, 0, 0.2);
  min-height: 20px;
  text-align: center;
  border: 2px solid rgba(122, 75, 41, 0.3);
  transition: background-color 0.3s ease;
}

.difficulty-description.easy {
  background-color: rgba(46, 158, 68, 0.2);
  border-color: rgba(46, 158, 68, 0.4);
}

.difficulty-description.medium {
  background-color: rgba(184, 134, 11, 0.2);
  border-color: rgba(184, 134, 11, 0.4);
}

.difficulty-description.hard {
  background-color: rgba(230, 57, 70, 0.2);
  border-color: rgba(230, 57, 70, 0.4);
}

.difficulty-description.everything {
  background-color: rgba(31, 111, 178, 0.2);
  border-color: rgba(31, 111, 178, 0.4);
}

.difficulty-btn {
  font-family: "Pirata One", sans-serif;
  font-size: 22px;
  padding: 14px 28px;
  border: 3px solid #7a4b29;
  border-radius: 12px;
  cursor: pointer;
  color: #fff3cd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 140px;
}

.difficulty-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.difficulty-btn.easy {
  background-color: #2e9e44;
}

.difficulty-btn.medium {
  background-color: #b8860b;
}

.difficulty-btn.hard {
  background-color: #e63946;
}

.difficulty-btn.everything {
  background-color: #1f6fb2;
}

.generate button.notClicked {
  box-shadow: 0 0 10px red;
  animation:
    movingLine 0.2s linear infinite,
    glowEffect 2s infinite;
}

@keyframes movingLine {
  0% {
    border-top: 5px solid black;
  }
  25% {
    border-right: 5px solid black;
  }
  50% {
    border-bottom: 5px solid black;
  }
  75% {
    border-left: 5px solid black;
  }
}

@keyframes glowEffect {
  0% {
    box-shadow: 0 0 15px red;
  }
  50% {
    box-shadow:
      0 0 25px red,
      0 0 35px red;
  }
  100% {
    box-shadow: 0 0 15px red;
  }
}

.contents .hint {
  font-family: "Rowdies", sans-serif;
  font-weight: 300;
  font-style: normal;
  margin-top: 20px;
  font-size: 25px;
  color: #fff3cd;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  /* display: inline; */
}

#guess {
  color: #ff4d5a;
}

.hangmanImage {
  position: absolute;
  left: -90px;
  top: 13px;
  width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hangmanImage {
  width: 270px;
  height: auto;
}

.notGenerated {
  display: none;
  justify-content: center;
  align-items: center;
  height: fit-content;
  border: 4px solid #7a4b29;
  border-radius: 20px;
  padding: 20px;
  width: fit-content;
  margin: auto;
  font-family: "Pirata One", sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff3cd;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 10;
  color: #7a4b29;
}

.blur-background {
  filter: blur(5px);
  transition:
    filter 0.7s ease,
    fade-out 0.7s ease;
}

.notGenerated.hidden {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0s 0.5s;
}

.answer {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: fit-content;
  border: 4px solid #7a4b29;
  border-radius: 20px;
  padding: 20px;
  width: fit-content;
  margin: auto;
  font-family: "Pirata One", sans-serif;
  position: absolute;
  top: 50%;
  font-size: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(180deg, rgba(255, 243, 205, 0.8), rgba(255, 243, 205, 0.8)),
    url("./onepiece-images/logo.png") center / contain no-repeat,
    #fff3cd;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 10;
  color: #7a4b29;
}

#incorrectAnswer {
  background:
    linear-gradient(180deg, rgba(255, 243, 205, 0.8), rgba(255, 243, 205, 0.8)),
    url("./onepiece-images/buggy.png") center / contain no-repeat,
    #fff3cd;
}

#answerW,
#answerL {
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 4px;
}

.playAgain {
  height: fit-content;
  width: fit-content;
  margin-top: 30px;
  padding: 10px;
  border: 3px solid #7a4b29;
  font-size: 20px;
  font-family: "Pirata One", sans-serif;
  cursor: pointer;
  background: linear-gradient(135deg, #e63946, #ffd700);
  color: #fff3cd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.contents .incorrectGuess,
.contents .hint {
  font-family: "Rowdies", sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-top: 20px;
  /* text-align: center; */
  position: relative;
  z-index: 5;
}

.playAgain:hover {
  transform: scale(1.1);
}
@media (max-width: 1262px) {
  h1 {
    font-size: 50px;
  }
  #hangmanImage {
    height: auto;
    width: 220px;
  }
  .upperContainer {
    height: 300px;
  }
  .hangmanImage {
    left: -30px;
    width: 260px;
  }
  .contents .hint {
    font-family: "Rowdies", sans-serif;
    font-weight: 300;
    font-size: 18px;
    margin-top: 20px;
    /* text-align: center; */
    position: relative;
    z-index: 5;
  }

  .upperContainer .word {
    top: 195px;
    width: min(640px, 88vw);
  }

  .upperContainer .word ul {
    padding: 0;
  }

  .container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    position: relative;
  }

  .contents {
    text-align: center;
    max-width: 90%;
    position: relative;
    z-index: 5;
  }
  .container .keyboard {
    width: min(660px, 92vw);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 12px;
    border-radius: 30px;
    background:
      linear-gradient(rgba(255, 215, 0, 0.88), rgba(255, 185, 66, 0.88)),
      transparent;
    border: 4px solid #7a4b29;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    z-index: 5;
  }

  .keyboard-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .keyboard button {
    flex: 1 1 0;
    min-width: 0;
    max-width: 46px;
    font-family: "Pirata One", monospace;
    font-weight: 400;
    font-style: normal;
    height: 44px;
    font-size: 16px;
    text-transform: uppercase;
    background-color: #0b3d91;
    color: #ffd700;
    border: 3px solid #1a1a2e;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 927px) {
  h1 {
    font-size: 30px;
  }
  .upperContainer {
    height: 290px;
  }
  .hangmanImage {
    left: -15px;
    width: 230px;
  }
  #hangmanImage {
    width: 190px;
  }
  .upperContainer .word {
    top: 185px;
    width: 90vw;
  }
  .contents .incorrectGuess {
    font-family: "Rowdies", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    margin-top: 20px;
  }

  .generate button {
    font-family: "Pirata One", sans-serif;
    font-weight: 400;
    align-items: center;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    border: 4px solid #7a4b29;
    background-color: #e63946;
    color: #ffd700;
    border-radius: 20px;
    padding: 10px 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  }

  .answer {
    text-align: center;
  }
}

@media (max-width: 820px) {
  .contents .hint {
    font-family: "Rowdies", sans-serif;
    font-weight: 300;
    font-size: 15px;
    margin-top: 20px;
    /* text-align: center; */
    position: relative;
    z-index: 5;
  }
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
    position: relative;
    min-height: 0;
  }

  .bg-art {
    position: fixed;
    inset: 0;
    overflow: visible;
  }

  .bg-art-cloud,
  .bg-art-gear {
    display: none;
  }

  #overlay {
    flex: 0 1 auto;
    padding: 12px 10px;
  }

  .bg-art-left {
    display: none;
  }

  .left-luffy {
    position: fixed;
    left: -180px;
    bottom: 100px;
    height: 85vh;
    width: auto;
    z-index: 0;
    opacity: 0.09;
    pointer-events: none;
  }

  .sunny {
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    width: 900px;
    opacity: 0.09;
    z-index: 0;
    filter: drop-shadow(0 0 20px black);
  }

  .header {
    margin-top: 8px;
    gap: 8px;
  }

  .title-logo {
    height: clamp(30px, 7vw, 44px);
  }

  h1 {
    font-size: clamp(22px, 7vw, 32px);
  }

  .generate {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0 0;
  }

  .generate button {
    font-size: 15px;
    padding: 8px 16px;
    border-width: 3px;
  }

  .upperContainer {
    margin-top: 12px;
    height: 250px;
  }

  .hangmanImage {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 180px;
  }

  #hangmanImage {
    width: clamp(110px, 36vw, 150px);
    height: auto;
  }

  .upperContainer .word {
    top: 155px;
    width: 94vw;
  }

  .upperContainer .word ul {
    gap: clamp(4px, 1.8vw, 8px);
    margin-bottom: 20px;
  }

  .upperContainer .word ul li {
    width: clamp(18px, 6vw, 45px);
    height: clamp(28px, 8vw, 60px);
    font-size: clamp(14px, 5.5vw, 50px);
    border-bottom-width: 4px;
  }

  .container {
    padding: 10px;
    gap: 8px;
    flex: 0 1 auto;
  }

  .container .contents {
    width: 100%;
    margin: 10px 0;
    text-align: center;
    justify-content: flex-start;
    flex: 0 1 auto;
  }

  .container .keyboard {
    width: min(660px, 94vw);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
    gap: 8px;
    padding: 14px 8px;
  }

  .keyboard-row {
    gap: 6px;
  }

  .keyboard button {
    flex: 1 1 0;
    min-width: 0;
    max-width: 42px;
    height: clamp(38px, 11vw, 48px);
    font-size: clamp(13px, 4vw, 17px);
    border-width: 2px;
    border-radius: 8px;
  }

  .contents .incorrectGuess {
    font-size: 20px;
    margin-top: 8px;
  }

  .contents .hint {
    font-size: clamp(13px, 4vw, 18px);
  }

  .answer,
  .notGenerated {
    width: 92vw;
    max-width: 420px;
    padding: 15px;
    font-size: 16px;
    text-align: center;
  }

  .playAgain {
    font-size: 18px;
    margin-top: 20px;
  }

  .landing-page {
    width: 92vw;
    max-width: 420px;
    padding: 20px;
  }

  .landing-page h2 {
    font-size: 28px;
  }

  .landing-info p {
    font-size: clamp(10px, 3vw, 14px);
    white-space: nowrap;
  }

  .landing-difficulties {
    gap: 6px;
  }

  .landing-diff {
    font-size: 14px;
    padding: 5px 10px;
  }

  .set-sail-btn {
    font-size: 22px;
    padding: 12px 36px;
  }

  .difficulty-selector {
    width: 92vw;
    max-width: 420px;
    padding: 20px;
  }

  .difficulty-selector h2 {
    font-size: 24px;
  }

  .difficulty-buttons {
    gap: 10px;
  }

  .difficulty-btn {
    font-size: 18px;
    padding: 10px 20px;
    min-width: 100px;
  }

  .difficulty-description {
    font-size: 13px;
    padding: 10px 14px;
  }

  .difficulty-badge {
    font-size: 13px;
    padding: 4px 8px;
  }

  .generate-row {
    gap: 4px;
  }

  .generate {
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .landing-info p {
    font-size: 10px;
  }

  .hangmanImage {
    width: 160px;
  }
  #hangmanImage {
    width: 120px;
  }
  .upperContainer .word {
    top: 190px;
  }
  .upperContainer .word ul li {
    width: clamp(15px, 5.5vw, 45px);
    height: clamp(24px, 7vw, 60px);
    font-size: clamp(12px, 5vw, 50px);
  }

  .keyboard-row {
    gap: 4px;
  }

  .keyboard button {
    flex: 1 1 0;
    min-width: 0;
    max-width: 36px;
    height: clamp(34px, 10vw, 44px);
    font-size: clamp(11px, 3.6vw, 15px);
  }
}

.upperContainer .word ul {
  gap: var(--letter-gap, 8px);
}
.upperContainer .word ul li {
  width: var(--letter-size, 45px);
  height: calc(var(--letter-size, 45px) * 1.3);
  font-size: var(--letter-font, 50px);
  line-height: calc(var(--letter-size, 45px) * 1.3);
  border-bottom-width: 6px;
}
.upperContainer .word ul li.space {
  width: auto;
  min-width: 14px;
  height: calc(var(--letter-size, 45px) * 1.3);
}

/* @media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    .upperContainer .word ul {
        gap: 5px;
    }
    .upperContainer .word ul li {
        min-width: 35px;
        height: 50px;
        font-size: 30px;
    }
    .keyboard button {
        width: 35px;
        height: 45px;
        font-size: 12px;
    }
    .contents {
        z-index: 10;
        background: white;
        padding: 10px;
        border-radius: 10px;
    }
} */

.momo-wrap {
  position: fixed;
  bottom: 20px;
  left: 40px;
  z-index: 1000;
  cursor: pointer;
}
.momo-img {
  width: 70px;
  height: 70px;
  animation: momoBump 1.2s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s;
}
.momo-wrap:hover .momo-img {
  transform: scale(1.15);
}
@keyframes momoBump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.momo-tooltip {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff3e0;
  color: #4e342e;
  font-family: "Rowdies", system-ui;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.momo-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff3e0;
}
.momo-wrap:hover .momo-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#smokeCanvas {
  position: absolute;
  bottom: 40px;
  left: -30px;
  width: 140px;
  height: 160px;
  pointer-events: none;
}
@media (max-width: 640px) {
  .momo-wrap {
    left: 12px;
    bottom: 12px;
  }
  .momo-img {
    width: 56px;
    height: 56px;
  }
  .momo-tooltip {
    bottom: 60px;
    font-size: 0.72rem;
    padding: 5px 10px;
  }
  #smokeCanvas {
    bottom: 30px;
    left: -34px;
    width: 112px;
    height: 128px;
  }
}

@media (max-width: 400px) {
  .momo-wrap {
    left: 8px;
    bottom: 8px;
  }
  .momo-img {
    width: 46px;
    height: 46px;
  }
  .momo-tooltip {
    bottom: 52px;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
  }
  #smokeCanvas {
    bottom: 24px;
    left: -36px;
    width: 96px;
    height: 108px;
  }
}
