/* End-of-run UI has its own scroll regions. The document remains game-locked. */
#feedback,#player-entry {color:#eff0e5;background:#102232;border:1px solid #617b84;box-shadow:0 0 90px #0009;font-family:'Roboto Mono',monospace;overscroll-behavior:contain}
#feedback::backdrop,#player-entry::backdrop {background:#04101ee8}
#player-entry {width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 24px);padding:28px;border-top:4px solid #ffd536}
#player-entry h2 {font-family:'Russo One',sans-serif;font-size:30px;margin:18px 0}
#player-entry label {display:block;font-size:13px;margin-bottom:8px}
#player-entry input {width:100%;min-width:0;font:20px 'Roboto Mono',monospace;padding:14px;background:#06131f;color:#fff;border:1px solid #8a9fa4;border-radius:0}
#player-entry p {font-size:12px;color:#b6c8cb;line-height:1.5}
#player-entry [role=status]:empty {display:none}
#player-entry button {width:100%;min-height:50px;background:#ffd633;color:#102232;border:0;font:bold 16px 'Roboto Mono',monospace;padding:14px;cursor:pointer}
#feedback {box-sizing:border-box;position:fixed;inset:0;margin:auto;width:100%;height:100%;max-width:none;max-height:none;padding:0;border:0;border-top:3px solid #ffda38;border-radius:0;overflow:hidden}
#feedback .results-layout {height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0}
#feedback .results-left,#feedback .results-right {min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:clamp(14px,2.5vw,42px);scrollbar-color:#5c7a89 #102232;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
#feedback .results-left {grid-column:1;border-right:1px solid #486272;background:#102331}
#feedback .results-right {grid-column:2;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(ellipse at top right,#25576155,transparent 75%),#0b1c2b}
#feedback .result-section-heading {display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
#feedback h2 {font:clamp(16px,1.6vw,24px) 'Russo One',sans-serif;margin:0 0 12px;color:#f0eee3}
#feedback .result-section-heading span {font-size:10px;letter-spacing:1px;color:#a3b5b9}
#feedback #ranking-list {padding:0;margin:0;list-style:none;border-top:1px solid #506772}
#feedback #ranking-list li {display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px;border-bottom:1px solid #304858;font-size:13px;min-height:34px}
#feedback #ranking-list li span:nth-child(2) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#feedback #ranking-list li span:last-child {color:#ffe179;font-weight:bold}
#feedback #ranking-list li.is-you {background:#ffe16a18;box-shadow:inset 3px 0 #ffdc3b}
#feedback #ranking-list li.ranking-empty {display:block;color:#a4bcc5;font-size:12px}
#feedback #ranking-status {font-size:11px;line-height:1.5;margin:8px 0;color:#a9c9ce}
#feedback #ranking-retry {background:transparent;border:1px solid #80aaa8;color:#a7efe8;padding:8px;font:12px 'Roboto Mono',monospace;cursor:pointer}
#feedback .result-ratings {margin-top:18px}
#feedback #feedback-body {display:grid;gap:8px;min-height:0}
#feedback fieldset {position:relative;min-width:0;margin:0;padding:0 0 8px;border:0;border-bottom:1px solid #304858}
#feedback legend {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#feedback .feedback-question-title {display:block;font-size:13px;line-height:1.4;color:#f2f0e6}
#feedback fieldset p {font-size:10px;line-height:1.4;margin:4px 0 7px;color:#b2c7cd}
#feedback .feedback-choices {display:flex;gap:8px;margin:0}
#feedback .feedback-choices button {flex:1;min-width:0;min-height:44px;padding:8px 4px;background:#193749;border:1px solid #627c85;color:#eaece3;font:13px 'Roboto Mono',monospace;cursor:pointer;border-radius:3px}
#feedback .feedback-choices button[aria-pressed=true] {background:#ffda38;border-color:#ffec95;color:#102232}
#feedback .results-right .eyebrow {font-size:11px;color:#76ddd5}
#feedback .results-right h1 {font:clamp(25px,4.1vw,68px)/1.1 'Russo One',sans-serif;margin:16px 0 10px;letter-spacing:-.02em}
#feedback .results-right h1 em {font-style:normal;color:#ffda38}
#feedback #result-player {margin:6px 0 12px;font-size:18px;overflow-wrap:anywhere}
#feedback #result-total {font:clamp(32px,4.5vw,72px)/1 'Russo One',sans-serif;color:#ffda38}
#feedback .result-unit {font-size:10px;letter-spacing:2px;color:#a8c1ca;margin:8px 0 18px}
#feedback .result-breakdown {margin:0;font-size:12px}
#feedback .result-breakdown div {display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #3e5663}
#feedback .result-breakdown dd {margin:0;text-align:right;white-space:nowrap;color:#c4ead8}
#feedback #result-encounters {font-size:11px;color:#b4cad2;margin:15px 0}
#feedback .result-actions {display:grid;gap:12px;margin-top:10px}
#feedback .result-actions>* {display:flex;align-items:center;justify-content:center;text-align:center;width:100%;min-height:50px;padding:14px 10px;background:#ffda38;border:2px solid #ffec93;color:#132432;font:bold clamp(11px,1.1vw,16px) 'Roboto Mono',monospace;text-decoration:none;box-shadow:none;cursor:pointer}
#feedback .result-actions button {background:#183442;border-color:#597884;color:#e8ede5}
#feedback .result-comment {grid-column:1/-1;grid-row:2;padding:14px clamp(14px,2.5vw,42px);border-top:1px solid #526b75;background:#0a1927}
#feedback .feedback-completion {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin:-6px 0 6px}
#feedback #feedback-progress {font-size:12px;line-height:1.4;margin:0;color:#ffe179}
#feedback #feedback-jump {flex:none;min-height:32px;padding:6px 10px;border:1px solid #597884;background:#183442;color:#eff0e5;font:12px 'Roboto Mono',monospace;cursor:pointer}
#feedback #feedback-jump[hidden] {display:none}
#feedback .result-comment label {font-size:11px;letter-spacing:1px;display:block;margin-bottom:8px;color:#83e1d8}
#feedback .result-comment-row {display:flex;align-items:stretch;gap:12px}
#feedback #feedback-comment {flex:1;width:auto;min-width:0;min-height:50px;max-height:100px;resize:vertical;background:#142b3a;border:1px solid #7894a0;color:#f2f2e5;padding:10px;font:16px/1.3 'Roboto Mono',monospace;margin:0}
#feedback #feedback-send {width:190px;max-width:32%;padding:10px;background:#ffda38;color:#142331;border:0;font:bold 13px 'Roboto Mono',monospace;cursor:pointer}
#feedback button:disabled {opacity:.6;cursor:default}
#feedback .result-comment small {display:block;font-size:9px;line-height:1.4;color:#91a8b2;margin-top:6px}
#feedback #feedback-status {font-size:11px;line-height:1.4;margin:5px 0 0;color:#b3efdc}
#feedback #feedback-status:empty {display:none}
html.game-focused .machine #player-entry input,html.game-focused .machine #feedback textarea {user-select:text!important;-webkit-user-select:text!important;caret-color:#ffda38!important;cursor:text!important;touch-action:auto!important;-webkit-touch-callout:default!important}
#feedback button:focus-visible,#feedback a:focus-visible,#player-entry input:focus-visible {outline:3px solid #a4fff0;outline-offset:2px}
@media(min-width:1100px) and (min-height:551px){
 #feedback .results-left {padding:22px clamp(22px,2.5vw,42px)}
 #feedback .feedback-question-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:center;min-height:62px}
 #feedback .feedback-question-title {font-size:12px}
 #feedback fieldset p {margin:5px 0 0}
 #feedback .feedback-choices {gap:6px}
 #feedback #ranking-list {max-height:136px}
}
@media(max-height:550px) and (orientation:landscape){
 #feedback .results-left,#feedback .results-right {padding:12px 18px}
 #feedback .results-right {justify-content:flex-start}
 #feedback .results-right h1 {font-size:25px;margin:7px 0}
 #feedback #result-player {font-size:13px;margin:2px 0 8px}
 #feedback #result-total {font-size:32px}
 #feedback .result-unit {margin:4px 0 6px;font-size:9px}
 #feedback .result-breakdown {font-size:11px}
 #feedback .result-breakdown div {padding:5px 0}
 #feedback #result-encounters {margin:8px 0;font-size:10px}
 #feedback .result-actions {margin-top:6px;gap:8px}
 #feedback .result-actions>* {min-height:44px;padding:10px;font-size:11px}
 #feedback .result-comment {padding:8px 18px}
 #feedback .feedback-completion {min-height:28px;margin:-3px 0 4px}
 #feedback #feedback-progress {font-size:10px}
 #feedback #feedback-jump {font-size:10px;min-height:28px;padding:5px 8px}
 #feedback .result-comment label {margin-bottom:4px;font-size:10px}
 #feedback #feedback-comment {min-height:42px;height:42px;resize:none}
 #feedback .result-comment small {font-size:8px}
 #player-entry {padding:16px 24px}#player-entry h2 {font-size:24px;margin:10px 0}#player-entry input {padding:10px}
}
@media(max-width:580px) and (orientation:portrait){
 #feedback .results-layout {display:flex;flex-direction:column;overflow:auto}
 #feedback .results-right {order:0;overflow:visible;flex:none}
 #feedback .results-left {order:1;overflow:visible;flex:none;border-right:0}
 #feedback .result-comment {order:2;flex:none}
}
#feedback #ranking-list {max-height:210px;overflow:auto;overscroll-behavior:contain}
@media(max-height:550px) and (orientation:landscape){
 #feedback .results-right {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto 1fr;align-content:start;align-items:start;gap:7px 12px;padding:12px 18px}
 #feedback .results-right .eyebrow,#feedback .result-unit,#feedback #result-encounters {display:none}
 #feedback .results-right h1 {grid-column:1/-1;font-size:20px;line-height:1.2;margin:0}
 #feedback .results-right h1 br {display:none}
 #feedback .results-right h1 em:before {content:' '}
 #feedback #result-player {grid-column:1;font-size:13px;margin:0;align-self:center}
 #feedback #result-total {grid-column:2;font-size:27px;text-align:right;white-space:nowrap}
 #feedback .result-breakdown {grid-column:1/-1;width:100%;font-size:11px}
 #feedback .result-breakdown div {padding:5px 0}
 #feedback .result-actions {grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;align-self:end;position:sticky;bottom:0;background:#0b1c2b;padding-top:4px}
 #feedback .result-actions>* {font-size:10px;min-height:48px;height:100%;padding:7px}
 #feedback #ranking-list {max-height:135px}
 #feedback .result-ratings:before {content:'5 ОЦЕНОК · ЛИСТАЙ НИЖЕ ↓';display:block;font-size:9px;color:#96cacb;margin-bottom:7px}
}
