/* Native modal top layer isolates all gameplay controls, including co-op menus. */
#feedback-panel:not([open]) { display:none; }
#feedback-panel { position:fixed; inset:0; display:grid; place-items:center; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:12px; box-sizing:border-box; border:0; background:transparent; color:#eee8d9; }
#feedback-panel::backdrop { background:#12201de8; }
.feedback-card { display:flex; flex-direction:column; gap:16px; width:min(100%,620px); max-height:calc(100dvh - 24px); overflow:auto; box-sizing:border-box; padding:24px; border:2px solid #a8b9a7; background:#24332e; box-shadow:8px 8px #0c1719; text-align:left; }
.feedback-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.feedback-heading h2 { margin:0; font-size:26px; line-height:1.3; }
#feedback-panel button { min-height:42px; font:inherit; cursor:pointer; }
#feedback-panel button:disabled { cursor:default; opacity:.55; }
.feedback-heading button { flex-shrink:0; padding:6px 12px; border:1px solid #a8b9a7; background:transparent; color:#eee8d9; }
/* T-055: ゲームに戻る sits beside 閉じる on the right and is the stronger of the two. */
.feedback-heading #feedback-resume { margin-left:auto; margin-right:-8px; border-color:#e7cf8f; background:#e7cf8f; color:#20261f; font-weight:700; }
.feedback-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.feedback-tabs button { padding:8px; border:1px solid #7c9180; background:#192821; color:#c9d1c2; }
.feedback-tabs button[aria-selected="true"] { border-color:#f0e8d3; background:#f0e8d3; color:#24332e; font-weight:bold; }
#feedback-form { display:grid; gap:10px; margin:0; }
#feedback-body { display:grid; gap:8px; }
#feedback-body label { font-size:16px; font-weight:bold; }
#feedback-text { box-sizing:border-box; width:100%; min-height:96px; height:min(28vh,210px); resize:vertical; padding:12px; border:2px solid #a8b9a7; border-radius:0; outline-offset:3px; background:#f0e8d3; color:#1c2b25; font:16px/1.65 sans-serif; }
.feedback-count { margin:0; text-align:right; color:#c0cbbc; font:14px monospace; }
.feedback-privacy { margin:0; color:#c5cdbf; font-size:13px; line-height:1.6; }
#feedback-coop { margin:0; padding:10px 12px; border-left:3px solid #e8b68c; background:#3f3b2d; color:#f5d6b0; font-size:14px; line-height:1.5; }
#feedback-status { min-height:1.5em; margin:0; color:#e7d59d; font-size:15px; line-height:1.5; }
#feedback-send { justify-self:end; min-width:144px; padding:10px 24px; border:1px solid #d4dfbd; background:#d4dfbd; color:#1e3025; font-weight:bold; }
#feedback-panel :focus-visible { outline:3px solid #f1d38f; outline-offset:3px; }
@media(max-height:540px) { .feedback-card { gap:10px; padding:16px; } .feedback-heading h2 { font-size:22px; } #feedback-text { height:96px; } }
@media(max-width:480px) { #feedback-panel { padding:8px; } .feedback-card { max-height:calc(100dvh - 16px); padding:16px; } }
