body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

main {
  width: 100%;
  max-width: 1200px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 3px;
  margin: 3px;
  box-sizing: border-box;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: center;
  color: #222;
}

section h2, section p {
  text-align: center;
  margin: 8px auto;
  color: #555;
}

/* ===================
   Loader + Puzzle Core Styles
=================== */
#loader {
  text-align: center;
  color: #007bff;
  font-size: 1.2rem;
  margin: 120px auto;
  padding: 20px 24px;
  font-family: "Segoe UI", sans-serif;
  animation: fadeInOut 1.2s ease-in-out infinite;
  letter-spacing: 0.5px;
  width: fit-content;
  background: rgba(0, 123, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spin {
  display: inline-block;
  animation: rotate 1s linear infinite;
  margin-right: 8px;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#quoteContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px -3px;
}

.tile {
  width: 40px;
  height: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  background: #e8f0fe;
  border-radius: 6px;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.05);
}

.tile .cipher {
  font-size: 0.9rem;
  color: #888;
}

.tile input {
  width: 100%;
  text-align: center;
  font-size: 1.3rem;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  text-transform: uppercase;
}

#lettersLeft {
  text-align: center;
  font-size: 1rem;
  color: #444;
  margin-bottom: 12px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 20px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  background: #007bff;
  color: #fff;
  transition: background 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:hover {
  background: #0056b3;
}

#status, #author {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-top: 10px;
}

.keyboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 6px;
  background: #e8f0fe;
  padding: 12px;
  border-radius: 12px;
  margin-top: 20px;
}

.keyboard button {
  padding: 12px 0;
  font-size: 1.1rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
}

/* ===================
   New Informational Sections
=================== */
main section {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

main section h2 {
  font-size: 1.4rem;
  color: #007bff;
  margin-bottom: 12px;
}

main section p,
main section li,
main section dd {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 10px;
}

main section ul,
main section ol {
  padding-left: 20px;
}

main section li {
  margin-bottom: 8px;
}

main section ol li::marker {
  font-weight: bold;
  color: #007bff;
}

#faq dl {
  margin: 0;
}

#faq dt {
  font-weight: 600;
  margin-top: 16px;
  color: #0056b3;
}

#faq dd {
  margin: 4px 0 12px 0;
  padding-left: 12px;
  border-left: 3px solid #007bff;
}

#more-puzzles a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

#more-puzzles a:hover {
  text-decoration: underline;
}

#stats p strong {
  color: #28a745;
  font-weight: 700;
}

/* ===================
   Responsive Tweaks
=================== */
@media (max-width: 600px) {
  main {
    margin: 3px;
    padding: 3px;
  }

  h1 {
    font-size: 1.5rem;
  }

  main section {
    padding: 16px;
    margin: 16px 0;
  }

  main section h2 {
    font-size: 1.2rem;
  }

  main section p,
  main section li,
  main section dd {
    font-size: 0.95rem;
  }

  button {
    padding: 8px 14px;
    font-size: 0.95rem;
  }
}

#onlineCounter {
      position: fixed;
      bottom: 15px;
      left: 15px;
      background: #1e1e1e;
      color: #fff;
      padding: 10px 15px;
      border-radius: 10px;
      /*font-family: Arial, sans-serif;*/
      font-size: 14px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
      z-index: 1000;
    }
