/* 4ゲーム共通の感想カード。色はサイト共通ヘッダー（site-header.css）に合わせる。 */
.lake-site-header .lake-feedback-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #eaf0df66;
  border-radius: 999px;
  background: transparent;
  color: #eaf0df;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
}
.lake-site-header .lake-feedback-open:hover {
  color: #f5d694;
  border-color: #f5d694;
}
.lake-site-header .lake-feedback-open:focus-visible {
  outline: 3px solid #f5d694;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .lake-site-header .lake-feedback-open {
    padding: 0 10px;
    font-size: 14px;
  }
}

dialog.lake-feedback {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fffdf7;
  color: #1d2b28;
  box-shadow: 0 24px 60px #0008;
  font-family: 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  line-height: 1.6;
  overflow: auto;
  z-index: 2147483000;
}
dialog.lake-feedback::backdrop {
  background: #0b1f1ccc;
}
.lake-feedback-form,
.lake-feedback-thanks {
  padding: 24px 24px 20px;
}
.lake-feedback h2 {
  margin: 2px 0 14px;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 22px;
  font-weight: 600;
  color: #173e38;
}
.lake-feedback-kicker {
  margin: 0;
  color: #5d7a6f;
  font-size: 13px;
}
.lake-feedback-stars,
.lake-feedback-difficulty {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.lake-feedback-stars legend,
.lake-feedback-difficulty legend {
  padding: 0;
  font-weight: 600;
}
.lake-feedback-required {
  color: #5d7a6f;
  font-weight: normal;
  font-size: 13px;
}
.lake-feedback-stars [role='radiogroup'] {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.lake-feedback-stars button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #cfc8b4;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.1s;
}
.lake-feedback-stars button.is-on {
  color: #e2a823;
}
.lake-feedback-stars button:hover {
  transform: scale(1.08);
}
.lake-feedback-stars button:focus-visible,
.lake-feedback button:focus-visible,
.lake-feedback input:focus-visible,
.lake-feedback textarea:focus-visible {
  outline: 3px solid #e2a823;
  outline-offset: 2px;
}
.lake-feedback-hint {
  min-height: 1.4em;
  margin: 0;
  color: #8a6a12;
  font-size: 14px;
}
.lake-feedback-difficulty > p {
  margin: 2px 0 8px;
  color: #5d7a6f;
  font-size: 13px;
}
.lake-feedback-difficulty-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
.lake-feedback-difficulty-options label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 72px;
  padding: 8px 2px;
  border: 1px solid #cfc8b4;
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}
.lake-feedback-difficulty-options input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: #173e38;
  cursor: pointer;
}
.lake-feedback-difficulty-options label:has(input:checked) {
  border-color: #173e38;
  background: #e7f0e9;
  font-weight: 600;
}
.lake-feedback-label {
  display: block;
  font-weight: 600;
}
.lake-feedback-label small {
  margin-left: 4px;
  color: #5d7a6f;
  font-weight: normal;
}
.lake-feedback textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #cfc8b4;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px; /* iOSで拡大されないように */
  resize: vertical;
}
.lake-feedback-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 0;
  color: #5d7a6f;
  font-size: 13px;
}
.lake-feedback-error {
  min-height: 1.4em;
  margin: 6px 0 0;
  color: #b23b30;
  font-size: 14px;
}
.lake-feedback-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.lake-feedback-buttons button,
.lake-feedback-close {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #cfc8b4;
  border-radius: 999px;
  background: #fff;
  color: #173e38;
  font: inherit;
  cursor: pointer;
}
.lake-feedback-send {
  flex: 1;
  border-color: #173e38 !important;
  background: #173e38 !important;
  color: #eaf0df !important;
  font-weight: 600 !important;
}
.lake-feedback-send:disabled {
  opacity: 0.6;
  cursor: wait;
}
.lake-feedback-thanks p {
  margin: 0 0 16px;
}
@media (max-height: 500px) {
  .lake-feedback-form,
  .lake-feedback-thanks {
    padding: 14px 18px;
  }
  .lake-feedback h2 {
    margin-bottom: 6px;
    font-size: 18px;
  }
  .lake-feedback textarea {
    min-height: 56px;
  }
}
