/* ------------------------------
   PAGE / TYPOGRAPHY
------------------------------ */
* {
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #121212;
}

h2 {
  font-size: 20px;
  margin-bottom: 6px;
  font-weight: 600;
}

h3 {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 18px;
  color: #444;
}

/* ------------------------------
   NYT CONNECTIONS GRID
------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;

  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}


/* shrink tiles on small phones */
@media (max-width: 400px) {
  .word {
    padding: 12px 6px;
    font-size: 12px;
  }
}

/* ------------------------------
   TILE STYLING (NYT-LIKE)
------------------------------ */
.word {
  background: #EEEDE3;
  border-radius: 8px;
  padding: 14px 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0.4px;
  text-transform: uppercase;

  cursor: pointer;
  user-select: none;

  border: 1px solid #E1E0D6;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);

  overflow: hidden;

  white-space: nowrap;   /* prevent wrapping */
}



/* Hover */
.word:hover {
  background: #DFDED2;
}

/* Pressed (NYT feel) */
.word:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* ------------------------------
   BOTTOM SLIDE PANEL
------------------------------ */
.panel {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  height: 60vh;
  background: white;
  border-top: 1px solid #ccc;
  box-shadow: 0 -6px 16px rgba(0,0,0,0.15);

  animation: slideUp 0.25s ease-out;
  flex-direction: column;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ------------------------------
   PANEL HEADER
------------------------------ */
.panel-header {
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
  background: #fff;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  font-size: 18px;
  margin: 0;
}

.panel-header button {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #444;
}

/* ------------------------------
   SCROLLABLE CONTENT
------------------------------ */
.panel-content {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  text-align: left;
}

/* ------------------------------
   DICTIONARY FORMATTING
------------------------------ */
.meaning-block {
  margin-bottom: 16px;
}

.part-of-speech {
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: capitalize;
}

.definition-list {
  margin: 0;
  padding-left: 22px;
  list-style-type: disc;
}

.definition-list li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.syn-block {
  margin: 4px 0 10px 4px;
  font-size: 13px;
  color: #333;
}

.syn-block strong {
  font-weight: 600;
}
















