.cell.previous-play .tile {
  position: relative;
  z-index: 1;
}

.cell.previous-play-correct .tile {
  box-shadow: 0 0 0 2px #54df8a, 0 0 14px 4px #27c96b99, var(--tile-shadow, 0 2px 4px #0005);
}

.cell.previous-play-miss .tile {
  box-shadow: 0 0 0 2px #ff6b72, 0 0 14px 4px #e8424d99, var(--tile-shadow, 0 2px 4px #0005);
}

.report-issue-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b9cbe0;
  padding: 8px 10px;
  font: inherit;
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.turn-report-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.definition-result-points {
  margin-top: 8px;
  color: #dfffea;
  font-weight: 800;
  letter-spacing: .02em;
}
.definition-result-points.hidden { display: none; }

.content-report-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: #06111dcc;
  backdrop-filter: blur(6px);
}

.content-report-modal.hidden { display: none; }

.content-report-card {
  width: min(100%, 460px);
  max-height: min(720px, 100%);
  overflow: auto;
  border: 1px solid #42617c;
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(160deg, #162b40, #0a1929);
  box-shadow: 0 22px 70px #0009;
}

.content-report-card h2 { margin: 0 0 6px; }
.content-report-card > p { margin: 0 0 14px; color: #b9cbe0; }
.content-report-card fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.content-report-card fieldset label { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; border: 1px solid #324e69; border-radius: 10px; background: #102237; text-align: left; }
.content-report-card input[type="radio"] { justify-self: center; align-self: center; margin: 0; }
.content-report-card fieldset label > span { min-width: 0; }
.content-report-note { display: flex; justify-content: space-between; margin-bottom: 6px; color: #d6e4f2; }
.content-report-note span { color: #91abc2; font-size: .78rem; }
.content-report-card textarea { box-sizing: border-box; width: 100%; resize: vertical; min-height: 88px; }
#contentReportStatus { min-height: 1.35em; color: #ff8c91; }
#contentReportStatus.good { color: #6ee69b; }
.content-report-actions { display: flex; justify-content: flex-end; gap: 10px; }

body.friend-move-validating #submitMove { cursor: wait; opacity: .78; }
body.friend-move-validating .cell .tile.pending { filter: saturate(.92); }

.doug-confirmation {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #42617c;
  border-radius: 14px;
  background: #102237;
  text-align: center;
}
.doug-confirmation h3 { margin: 0 0 4px; }
.doug-confirmation p { margin: 0 0 14px; color: #b9cbe0; }
.doug-confirmation-actions { display: flex; justify-content: center; gap: 10px; }
[data-doug-difficulty].selected { outline: 2px solid #78b9ff; outline-offset: 2px; }

@media (max-width: 430px) {
  body.mobile-game-fit .controls-panel {
    margin-bottom: max(3px, env(safe-area-inset-bottom));
    transform: none;
  }
  .controls-actions .action-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #shuffleRack { min-width: 0; }
  .definition-result-actions { flex-wrap: wrap; }
  .content-report-card { padding: 16px; border-radius: 15px; }
  .content-report-actions > button { flex: 1; }
}
