/* GLOBAL PAGE STYLE */
body {
  background-color: #000;
  color: #e0e0ff;
  font-family: 'Press Start 2P', monospace;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  text-align: center;
}

/* GHOST PLACEHOLDER */
.ghost-letter {
  width: 40px;
  height: 40px;
  border: 2px dashed #4ad0ff55;
  border-radius: 6px;
  margin: 0 4px;
  opacity: 0.4;
  box-sizing: border-box;
  pointer-events: none;
}

/* SHARE CARD */
.share-card {
  width: 420px;
  padding: 30px;
  background: #000;
  border: 3px solid #ff2bd4;
  box-shadow: 0 0 20px #ff2bd4, 0 0 40px #ff2bd4;
  color: #ffbdf7;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  border-radius: 12px;
}

/* MAIN CONTAINER */
.container {
  max-width: 600px;
  width: 100%;
  background-color: #000;
  margin: 0 auto;
}

/* TITLE LETTER PNGS */
.title-letter {
  width: 128px;
  height: 128px;
  image-rendering: auto;
}

.title-letters {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 3px;
  margin-bottom: 20px;
}

/* SCRAMBLE + GUESS LETTER PNGS */
.scramble-letter,
.guess-letter {
  width: 56px;
  height: 56px;
  image-rendering: auto;
  margin: 0;
  opacity: 1;
}

/* NEON DIVIDER */
.divider {
  width: 100%;
  height: 3px;
  background: #4ad0ff;
  box-shadow: 0 0 12px #4ad0ff, 0 0 24px #4ad0ff;
  margin: 25px 0;
  border-radius: 2px;
}

/* SCRAMBLE BOX */
.scramble {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 24px;
  border: 3px solid #ff2bd4;
  box-shadow: 0 0 12px #ff2bd4, 0 0 24px #ff2bd4;
  background: #000;
  gap: 6px;
  border-radius: 10px;
  margin: 20px 0;
  position: relative;
  z-index: 2;
}

/* GUESS BOX */
.guess-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 3px solid #4ad0ff;
  box-shadow: 0 0 12px #4ad0ff, 0 0 24px #4ad0ff;
  background: #000;
  gap: 6px;
  border-radius: 10px;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

/* HEADINGS */
h1 {
  margin-bottom: 20px;
  color: #ffbdf7;
  text-shadow: 0 0 10px #ff2bd4;
}

/* ⭐ SUBTITLE + ROGUELIKE PANEL LAYOUT */
#subtitleRow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}



#subtitle {
  margin: 0 0 10px 0;
  text-align: center;
}




/* ⭐ ROGUELIKE PANEL */
#roguePanel {
  border: 3px solid #00ff9c;
  box-shadow: 0 0 12px #00ff9c, 0 0 24px #00ff9c;
  padding: 10px 14px;
  border-radius: 8px;

  display: inline-flex;          /* was: flex */
  flex-direction: column;
  align-items: center;

  background: #000;
  animation: roguePulse 2.4s ease-in-out infinite;

  width: auto;                   /* shrink to content */
  margin: 0 auto 20px auto;      /* center it under subtitle */
}





/* ⭐ PANEL TEXT */
.rogue-panel-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #00ff9c;
  text-shadow: 0 0 6px #00ff9c;
  margin: 0 0 6px 0;
}


/* TIMER */
#timer {
  font-size: 28px;
  margin-bottom: 20px;
  color: #4ad0ff;
  text-shadow: 0 0 8px #4ad0ff;
}

/* INPUT BOX */
input {
  width: 100%;
  padding: 14px;
  font-size: 20px;
  border-radius: 8px;
  border: 3px solid #4ad0ff;
  background: #000;
  color: #4ad0ff;
  text-align: center;
  box-shadow: 0 0 10px #4ad0ff, 0 0 20px #4ad0ff;
}

input:focus {
  outline: none;
  box-shadow: 0 0 16px #4ad0ff, 0 0 32px #4ad0ff;
}

/* NEON BUTTONS */
button {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  background: #000;
  color: #ffbdf7;
  border: 3px solid #ff2bd4;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #ff2bd4, 0 0 20px #ff2bd4;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin: 15px 0;
}

button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px #ff2bd4, 0 0 32px #ff2bd4;
}

button:active {
  transform: scale(0.95);
}

/* ⭐ ROGUELIKE BUTTON OVERRIDES */
.rogue-small-btn {
  width: auto !important;
  max-width: fit-content !important;
  height: auto !important;
  line-height: 1 !important;

  padding: 4px 8px !important;
  font-size: 10px !important;
  margin: 0 !important;

  background-color: #00ff9c !important;
  color: #003318 !important;

  border: 2px solid #00ff9c !important;
  border-radius: 4px !important;

  text-shadow: 0 0 6px #00ff9c !important;
  box-shadow: 0 0 10px #00ff9c !important;

  display: inline-block !important;
  vertical-align: middle;
}


.rogue-small-btn:hover {
  background-color: #00ffaa;
  box-shadow: 0 0 14px #00ffaa;
  transform: scale(1.05);
}


/* FEEDBACK TEXT */
#feedback {
  margin-top: 15px;
  font-size: 20px;
  height: 30px;
}

.correct {
  color: #00ff9c;
  text-shadow: 0 0 10px #00ff9c;
}

.wrong {
  color: #ff3b3b;
  text-shadow: 0 0 10px #ff3b3b;
}

/* HIDDEN CLASS */
.hidden {
  display: none;
}

/* ANIMATIONS */
.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

@keyframes shuffle-wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(-3deg); }
  75% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.shuffle-anim {
  animation: shuffle-wiggle 0.25s ease-in-out;
}

.help-text {
  font-size: 14px;
  color: #4ad0ff;
  opacity: 0.8;
  margin-top: -10px;
  margin-bottom: 20px;
  text-shadow: 0 0 6px #4ad0ff;
  font-family: 'Press Start 2P', monospace;
}

.lock-text {
  font-family: 'Press Start 2P', monospace;
  color: #4ad0ff;
  text-shadow:
    0 0 6px #4ad0ff,
    0 0 12px #4ad0ff,
    0 0 24px #4ad0ff;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 12px;
}

.lock-heading {
  font-family: 'Press Start 2P', monospace;
  color: #ff4ad8;
  text-shadow:
    0 0 6px #ff4ad8,
    0 0 12px #ff4ad8,
    0 0 24px #ff4ad8;
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.lock-countdown {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  color: #4ad0ff;
  text-shadow:
    0 0 6px #4ad0ff,
    0 0 12px #4ad0ff,
    0 0 24px #4ad0ff;
  margin-top: 10px;
  text-align: center;
}

.share-button {
  margin-top: 15px;
  padding: 10px 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #4ad0ff;
  background: transparent;
  border: 2px solid #4ad0ff;
  border-radius: 6px;
  cursor: pointer;
  text-shadow: 0 0 6px #4ad0ff;
  box-shadow: 0 0 12px #4ad0ff;
}

.share-button:hover {
  background: rgba(74, 208, 255, 0.1);
  box-shadow: 0 0 18px #4ad0ff;
}


/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
  .scramble-letter,
  .guess-letter {
    width: 36px;
    height: 36px;
  }

  .title-letter {
    width: 9vw;
    height: 9vw;
  }

  .title-letters {
    flex-wrap: wrap;
    justify-content: center;
  }
}
