.game-account-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(18, 60, 46, .22);
  border-radius: 7px;
  padding: 7px 10px;
  color: #123c2e;
  background: #f7faf7;
  box-shadow: 0 7px 18px rgba(18, 60, 46, .08);
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.game-account-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.game-account-link:hover,
.game-account-link:focus-visible {
  color: #fff;
  background: #174f3d;
  box-shadow: 0 10px 23px rgba(18, 60, 46, .18);
  outline: none;
  transform: translateY(-2px);
}

.game-account-link:active { transform: translateY(1px) scale(.98); }

.wallet.has-annual-pass {
  min-width: 118px;
  background: #f7edbd;
  border-color: rgba(151, 116, 17, .25);
}

.wallet.has-annual-pass .leaf-icon {
  background: #d4aa2e;
  box-shadow: inset -4px -2px rgba(99, 69, 0, .12), 0 2px 7px rgba(185, 139, 17, .2);
}

.wallet.has-annual-pass #leafCount { color: #6e5615; letter-spacing: 0; }
.wallet.has-annual-pass #leafLabel { color: #7d692e; }

.question-report-modal {
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background: rgba(11, 39, 31, .68);
  backdrop-filter: blur(10px);
}

.question-report-panel {
  width: min(500px, 100%);
  max-height: min(720px, calc(100dvh - 36px));
  overflow: auto;
  border: 1px solid rgba(18, 60, 46, .12);
  border-top: 5px solid #c85e49;
  border-radius: 8px;
  padding: 25px 26px 22px;
  background: #fbfcf8;
  box-shadow: 0 28px 76px rgba(5, 29, 22, .34);
  color: #123c2e;
}

.question-report-close {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(18, 60, 46, .1);
  border-radius: 50%;
  background: #e8f0eb;
  color: #174f3d;
  font-size: 22px;
}

.question-report-kicker {
  margin-bottom: 7px;
  color: #b94f3c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.question-report-panel h2 {
  max-width: calc(100% - 42px);
  margin: 0 0 11px;
  font-size: clamp(22px, 5vw, 29px);
  line-height: 1.18;
  letter-spacing: 0;
}

.question-report-panel #questionReportCopy {
  white-space: pre-line;
  margin: 0 0 17px;
  border-left: 3px solid #8daf9f;
  border-radius: 0 6px 6px 0;
  padding: 11px 13px;
  color: #48655b;
  background: #edf3ef;
  font-size: 13px;
  line-height: 1.5;
}

.question-report-panel label { margin-bottom: 7px; font-size: 13px; }

.question-report-panel textarea {
  min-height: 104px;
  border: 1px solid rgba(18, 60, 46, .14);
  border-radius: 7px;
  padding: 12px 13px;
  background: #f2f6f3;
  color: #123c2e;
  font-size: 14px;
}

.question-report-actions { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 9px; margin-top: 16px; }
.question-report-actions button { min-height: 44px; border-radius: 7px; font-size: 14px; }
.question-report-cancel { color: #315c4f; background: #e5eee8; }
.question-report-submit { color: #fff; background: #174f3d; box-shadow: 0 8px 18px rgba(23, 79, 61, .16); }
.question-report-cancel:hover, .question-report-cancel:focus-visible { background: #d8e6de; outline: none; }
.question-report-submit:hover, .question-report-submit:focus-visible { background: #0e3f31; outline: none; }
.question-report-status { margin-bottom: 0; color: #49675c; font-size: 12px; }

@media (min-width: 721px) {
  body:not(.needs-entry) .topbar-tools {
    grid-template-columns: auto auto auto minmax(230px, 292px) auto !important;
  }
  body:not(.needs-entry) .game-account-link {
    grid-column: 5;
    grid-row: 1;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  body:not(.needs-entry) .topbar-tools {
    grid-template-columns: 44px 52px 52px minmax(190px, 1fr) 40px !important;
  }
  body:not(.needs-entry) .game-account-link {
    width: 40px;
    min-width: 40px;
    padding-inline: 0;
  }
  body:not(.needs-entry) .game-account-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (max-width: 700px) {
  .question-report-panel { padding: 21px 16px 16px; }
  .question-report-panel h2 { font-size: 22px; }
  .question-report-panel #questionReportCopy { max-height: 104px; overflow: auto; }
  .question-report-actions { grid-template-columns: 1fr 1.15fr; }
}

@media (max-width: 640px) and (orientation: portrait) {
  body:not(.needs-entry) .topbar {
    grid-template-columns: 34px 66px 42px 42px minmax(108px, 1fr) 34px !important;
    grid-template-rows: 48px !important;
    gap: 3px !important;
  }
  body:not(.needs-entry) .topbar-tools { gap: 3px; }
  body:not(.needs-entry) .topbar-bgm-toggle { width: 66px; min-width: 66px; grid-template-columns: 1fr 25px; }
  body:not(.needs-entry) .hungry-notes-link,
  body:not(.needs-entry) .canopy-inbox-button { width: 42px !important; min-width: 42px !important; max-width: 42px !important; }
  body:not(.needs-entry) #hungryNotesTopLabel,
  body:not(.needs-entry) .canopy-inbox-button span { width: 40px !important; max-width: 40px !important; }
  body:not(.needs-entry) .game-account-link {
    grid-column: 6;
    grid-row: 1;
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 7px;
    box-shadow: none;
  }
  body:not(.needs-entry) .game-account-link svg { width: 18px; height: 18px; }
  body:not(.needs-entry) .game-account-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  body:not(.needs-entry) .wallet { min-width: 102px; }
  body:not(.needs-entry) .wallet.has-annual-pass { min-width: 92px; }
  body:not(.needs-entry) .wallet.has-annual-pass #leafLabel { display: none; }
}

@media (max-width: 390px) and (orientation: portrait) {
  body:not(.needs-entry) .topbar { grid-template-columns: 34px 64px 40px 40px minmax(104px, 1fr) 32px !important; gap: 2px !important; }
  body:not(.needs-entry) .topbar-tools { gap: 2px; }
  body:not(.needs-entry) .topbar-bgm-toggle { width: 64px; min-width: 64px; }
  body:not(.needs-entry) .hungry-notes-link,
  body:not(.needs-entry) .canopy-inbox-button { width: 40px !important; min-width: 40px !important; max-width: 40px !important; }
  body:not(.needs-entry) #hungryNotesTopLabel,
  body:not(.needs-entry) .canopy-inbox-button span { width: 38px !important; max-width: 38px !important; }
  body:not(.needs-entry) .wallet { min-width: 94px; padding-inline: 5px; }
  body:not(.needs-entry) .wallet.has-annual-pass { min-width: 84px; }
  body:not(.needs-entry) .game-account-link { width: 32px; min-width: 32px; min-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .game-account-link { transition: none; }
  .game-account-link:hover, .game-account-link:focus-visible, .game-account-link:active { transform: none; }
}
