.game-card-shell {
  position: relative;
  display: flex;
  min-width: 0;
}

.game-card-shell > .gcard {
  width: 100%;
  height: 100%;
}

.game-feedback-vote,
.game-feedback-button {
  border: 1px solid rgba(255, 45, 120, 0.32);
  background: rgba(255, 255, 255, 0.92);
  color: #d6336c;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.game-feedback-vote:hover,
.game-feedback-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(214, 51, 108, 0.18);
  background: #fff;
}

.game-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
}

.game-feedback-open {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 80;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.game-feedback-button {
  min-width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  font: 800 28px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 12px 28px rgba(21, 23, 28, 0.18);
}

.game-feedback-modal[hidden] {
  display: none !important;
}

.game-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 0, 15, 0.54);
}

.game-feedback-dialog {
  width: min(440px, 100%);
  border: 1px solid rgba(21, 23, 28, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #15171c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  padding: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.game-feedback-dialog h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.game-feedback-dialog p {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.45;
}

.game-feedback-dialog label {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
}

.game-feedback-dialog input,
.game-feedback-dialog textarea {
  width: 100%;
  border: 1px solid rgba(21, 23, 28, 0.16);
  border-radius: 6px;
  padding: 10px 11px;
  color: #15171c;
  background: #f8fafc;
  font: 500 0.95rem/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.game-feedback-dialog .game-feedback-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.game-feedback-dialog .game-feedback-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: #d6336c;
}

.game-feedback-dialog textarea {
  min-height: 108px;
  resize: vertical;
}

.game-feedback-dialog input:focus,
.game-feedback-dialog textarea:focus {
  outline: 2px solid rgba(46, 92, 255, 0.22);
  border-color: rgba(46, 92, 255, 0.55);
}

.game-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.game-feedback-actions button {
  border-radius: 6px;
  border: 1px solid rgba(21, 23, 28, 0.12);
  padding: 9px 13px;
  cursor: pointer;
  font: 800 0.78rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.game-feedback-actions .primary {
  border-color: transparent;
  background: #15171c;
  color: #fff;
}

.game-feedback-status {
  min-height: 1.2em;
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.86rem;
}

.game-feedback-status.error {
  color: #c2255c;
}

.game-feedback-status.good {
  color: #2f9e44;
}

@media (max-width: 640px) {
  .game-feedback-open {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .game-feedback-actions {
    flex-direction: column-reverse;
  }

  .game-feedback-actions button {
    width: 100%;
  }
}
