/* Player feedback board. */
body #aux-window[data-kind=report]{position:fixed;right:12px;left:auto;display:flex;flex-direction:column;width:min(460px,calc(100vw - 24px));min-width:0;height:auto;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:hidden;color:#e9e6cb}
body #aux-window[data-kind=report]>.panel-heading{display:none}
body #aux-window[data-kind=report] #aux-body{padding:0;min-height:0;overflow:auto}
.report-native{color:#e9e6cb;font:14px/1.6 Tahoma,'Segoe UI',sans-serif;background:url('../../assets/ui/stone.png');border:5px solid transparent;border-image:url('../../assets/status-ui/panel-0-textless.png') 6 stretch;box-shadow:2px 4px 14px #0004;min-width:0}
.report-native *{box-sizing:border-box}
.report-native [hidden]{display:none!important}
.report-native button{font:inherit;cursor:pointer;color:inherit;border-radius:0}
.report-native button:focus-visible,.report-native textarea:focus-visible{outline:2px solid #fff0a8;outline-offset:-3px}
.report-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:2px ridge #d2c8a5;background:url('../../assets/status-ui/panel-0-textless.png') center -4px/100% 570px;min-height:53px}
.report-heading h2{margin:0;color:#f1f0d3;text-shadow:0 0 4px #e8e4b777;font:18px/1.5 Tahoma,sans-serif;letter-spacing:2px}
.report-heading button{width:30px;height:30px;padding:0;border:2px outset #b5b297;background:#484737;color:#eee8d0}
.report-inner{margin:10px;border:3px ridge #b8b495;background:linear-gradient(#202319e8,#202319e8),url('../../assets/ui/stone.png');padding:20px;min-width:0}
.report-label-line{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.report-label-line label{color:#e9e6cb;font-size:13px}
.report-label-line label span{color:#e9d590}
.report-counter{color:#babda5;font-size:11px}
.report-native textarea{width:100%;min-height:160px;padding:11px;color:#edeedc;background:#161b13;border:2px inset #9a967d;resize:vertical;font:14px/1.7 Tahoma,sans-serif;user-select:text;border-radius:0}
.report-native textarea::placeholder{color:#959b89}
.report-image-label{color:#e9e6cb;margin:22px 0 8px;font-size:13px}
.report-image-label span{color:#babda5;font-size:12px}
body .report-native .report-add{display:flex;align-items:center;gap:12px;width:100%;padding:14px 12px;border:2px ridge #88866c;background:#303727;color:#e5e6ca;text-align:left;box-shadow:none}
.report-add>span{display:block;font-size:13px}
.report-add>span:last-child{margin-left:auto;font-size:20px;color:#d8d4ad}
.report-add small{display:block;margin-top:3px;color:#babda5;font-size:11px}
.report-note{font-size:11px;color:#babda5;margin:7px 0 0}
.report-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px}
.report-actions button,.report-success button{min-width:95px;min-height:40px;padding:7px 16px;color:#f2eed4;text-shadow:1px 1px #303025;box-shadow:none}
.report-actions [data-cancel]{border:2px outset #8d8b75;background:#383e2e}
body .report-native .report-primary{border:3px outset #b4b099;background:linear-gradient(#77775e,#50513e)}
body .report-native .report-primary:active{border-style:inset}
.report-preview{border:2px inset #9a967d;background:#161b13}
.report-preview img{display:block;width:100%;max-height:210px;object-fit:contain}
.report-preview img:not([src]){display:none}
.report-preview>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;flex-wrap:wrap}
.report-file-info{font-size:11px;color:#babda5}
.report-preview button{padding:4px 9px;border:1px solid #8d8b75;background:#383e2e;color:#e9e6cb;font-size:12px}
.report-error{font-size:12px;color:#f4b9a2;margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.report-success{min-height:389px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.report-success>span{color:#d3dcb0;font:38px/1 Tahoma,sans-serif;margin-bottom:16px}
.report-success h3{font-size:18px;font-weight:400;color:#edeac9;margin:0 0 8px}
.report-success p{font-size:13px;color:#babda5;margin:0 0 25px}
@media(max-width:480px){.report-inner{margin:7px;padding:16px 12px}.report-actions{gap:8px}.report-actions button{flex:1;min-width:0;min-height:44px}.report-native textarea{font-size:16px}.report-heading button{width:40px;height:40px}.report-preview button{min-height:40px}}

body #aux-window[data-kind=report]{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);color:#e5eaf0;border-radius:14px;box-shadow:0 16px 60px #0006}
body .report-native{background:#151c27;color:#e5eaf0;border:1px solid #354052;border-image:none;border-radius:14px;box-shadow:none;font:14px/1.6 'Segoe UI',Tahoma,sans-serif}
body .report-heading{background:none;border-bottom:1px solid #303b4b;padding:14px 20px}
body .report-heading h2{color:#f0f4f9;text-shadow:none;letter-spacing:0;font:600 17px/1.5 'Segoe UI',Tahoma,sans-serif}
body .report-native button{background:#222d3c;border:1px solid #3b495d;border-radius:8px;color:#e5eaf0;box-shadow:none;text-shadow:none;min-height:36px;padding:6px 12px}
body .report-native button:disabled{opacity:.45;cursor:default}
body .report-native button:focus-visible,body .report-native :is(input,select,textarea):focus-visible{outline:2px solid #8baaff;outline-offset:2px}
body .report-native button:hover:not(:disabled){background:#31415a}
body .report-inner{border:0;background:none;padding:20px;margin:0}
.report-board-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.report-board h3,.report-form h3{margin:0;font-size:17px}
.report-board-intro p{margin:4px 0 0;color:#9caabe;font-size:12px}
body .report-native .report-primary{background:#8eafff;border:1px solid #8eafff;color:#101c34;font-weight:600;border-radius:8px;white-space:nowrap}
.report-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.report-filters label:first-child{grid-column:1/-1}
.report-filters label,.report-topic{display:flex;flex-direction:column;gap:5px;color:#aebbd0;font-size:12px}
body .report-native :is(input[type=search],select,textarea){width:100%;min-width:0;border:1px solid #3b495d;border-radius:8px;background:#101722;color:#e5eaf0;font:14px/1.6 'Segoe UI',Tahoma,sans-serif;padding:8px 10px;user-select:text}
.report-board-status{color:#aebbd0;font-size:12px;min-height:20px}
.report-list{display:grid;gap:12px}
.report-card{padding:16px;border:1px solid #303c4e;border-radius:10px;background:#1a2432;min-width:0}
.report-card-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;color:#aebbd0}
.report-card-meta strong{font-weight:500;color:#b7cbff;background:#293951;border-radius:5px;padding:2px 7px}
.report-card-message{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;color:#e5eaf0;user-select:text}
.report-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#9caabe;font-size:11px}
.report-card img{max-width:100%;max-height:220px;object-fit:contain;border-radius:8px;margin-bottom:10px}
body .report-like[aria-pressed=true]{border-color:#8eafff;color:#b7cbff;background:#293951}
.report-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;font-size:12px;color:#aebbd0}
.report-form{margin:0;border:0;padding:0}
.report-form [data-back]{margin-bottom:16px}
.report-topic{margin:12px 0}
.report-anonymous{display:flex;align-items:flex-start;gap:8px;color:#becadd;font-size:12px;margin:12px 0}
.report-anonymous input{margin-top:5px;accent-color:#8eafff}
.report-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
body .report-note,body .report-counter,body .report-file-info{color:#9caabe}
body .report-native .report-add,body .report-preview{border:1px dashed #475771;border-radius:8px;background:#1a2432;color:#becadd}
body .report-success{min-height:200px}
body .report-success :is(h3,p){color:#becadd}
body #report-button{font-size:22px;color:#b7cbff}
@media(max-width:600px){.report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.report-board-intro{align-items:flex-start;flex-direction:column}body .report-inner{padding:14px}body .report-native :is(input[type=search],select,textarea){font-size:16px}.report-card{padding:12px}}

/* Compact compose view keeps the full form visible on typical phone screens. */
body #aux-window[data-kind=report]:has(.report-native[data-view=compose]),body #aux-window[data-kind=report]:has(.report-native[data-view=success]){width:min(500px,calc(100vw - 24px))}
body .report-native[data-view=compose] .report-heading{gap:10px;padding:8px 12px;min-height:48px}
body .report-native[data-view=compose] .report-heading h2{flex:1;font-size:15px}
body .report-native .report-heading [data-back]{width:36px;min-width:36px;height:36px;padding:0;font-size:24px}
body .report-native[data-view=compose] .report-inner{padding:12px;margin:0}
.report-compose-options{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.report-compose-options .report-topic{margin:0;gap:3px}
.report-compose-options .report-anonymous{margin:0;min-height:40px;align-items:center;white-space:nowrap}
.report-compose-options .report-anonymous input{margin:0;width:16px;height:16px}
.report-privacy{color:#9caabe;font-size:11px;line-height:1.5;margin:7px 0 10px}
body .report-native[data-view=compose] textarea{display:block;min-height:80px;height:clamp(80px,17dvh,120px);resize:none;padding:8px 10px;line-height:1.5}
.report-native[data-view=compose] .report-label-line{margin-bottom:4px}
.report-native[data-view=compose] .report-image-label{display:none}
body .report-native[data-view=compose] .report-add{margin-top:10px;padding:8px 10px;gap:8px;min-height:42px}
.report-native[data-view=compose] .report-add small{display:inline;margin-left:7px;font-size:10px}
.report-native[data-view=compose] .report-note{font-size:10px;margin-top:4px;line-height:1.4}
.report-native[data-view=compose] .report-actions{margin-top:12px;gap:8px;flex-wrap:nowrap}
body .report-native[data-view=compose] .report-actions button{min-height:40px;padding:6px 12px}
.report-native[data-view=compose] .report-preview{display:flex;align-items:center;gap:8px;margin-top:10px;padding:6px}
.report-native[data-view=compose] .report-preview img{width:54px;height:44px;object-fit:cover;border-radius:4px}
.report-native[data-view=compose] .report-preview>div{flex:1;padding:0;gap:6px}
.report-native[data-view=compose] .report-error{margin:6px 0 0;font-size:11px}
@media(min-width:600px) and (max-height:600px){
 body #aux-window[data-kind=report]:has(.report-native[data-view=compose]){width:min(700px,calc(100vw - 24px))}
 .report-native[data-view=compose] .report-form{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px}
 .report-native[data-view=compose] .report-compose-options{grid-column:1;grid-row:1/3}
 .report-native[data-view=compose] .report-privacy{grid-column:1;grid-row:3;margin:0}
 .report-native[data-view=compose] .report-label-line{grid-column:2;grid-row:1}
 body .report-native[data-view=compose] textarea{grid-column:2;grid-row:2/6;height:100%;min-height:90px}
 body .report-native[data-view=compose] .report-add,.report-native[data-view=compose] .report-preview{grid-column:1;grid-row:4;margin-top:2px}
 .report-native[data-view=compose] .report-note{grid-column:1;grid-row:5}
 .report-native[data-view=compose] .report-error{grid-column:1/-1;grid-row:6}
 .report-native[data-view=compose] .report-actions{grid-column:1/-1;grid-row:7;margin-top:4px}
}
/* Feedback already has its own heading; avoid a second mobile frame. */
:root body.mobile-hud #aux-window[data-kind=report]>.mobile-window-heading{display:none}
:root body.mobile-hud #aux-window[data-kind=report] #aux-body{margin:0;max-width:none}
:root body.mobile-hud #aux-window[data-kind=report] .report-heading [data-close]{display:block}
:root body.mobile-hud #aux-window[data-kind=report] .report-inner{margin:0;padding:12px}
:root body.mobile-hud #aux-window[data-kind=report]:has(.report-native[data-view=compose]){--window-max:500px}
@media(min-width:600px) and (max-height:600px){
 :root body.mobile-hud #aux-window[data-kind=report]:has(.report-native[data-view=compose]){--window-max:700px}
}

/* List controls stay fixed; only the results own vertical scrolling. */
body #aux-window[data-kind=report]:has(.report-native[data-view=list]){width:min(640px,calc(100vw - 24px));height:min(520px,calc(100dvh - var(--game-window-top,12px) - 12px));overflow:hidden}
body #aux-window[data-kind=report]:has(.report-native[data-view=list]) #aux-body{display:flex;flex:1;min-height:0;overflow:hidden}
body .report-native[data-view=list]{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
body .report-native[data-view=list] .report-heading{flex:none;padding:4px 12px;min-height:48px}
body .report-native[data-view=list] .report-heading h2{font-size:15px}
body .report-native[data-view=list] .report-inner{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:10px 12px;margin:0}
.report-native[data-view=list] .report-board{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;flex:1;min-height:0;min-width:0}
.report-native[data-view=list] .report-board-intro{flex-direction:row;align-items:center;gap:8px;margin-bottom:8px}
.report-native[data-view=list] .report-board-intro h3{font-size:14px}
.report-native[data-view=list] .report-board-intro p{font-size:11px;margin-top:0}
.report-native[data-view=list] .report-filters{grid-template-columns:minmax(120px,1.4fr) repeat(4,minmax(0,1fr));gap:6px}
.report-native[data-view=list] .report-filters label:first-child{grid-column:auto}
.report-native[data-view=list] .report-filters label{gap:3px;font-size:11px}
body .report-native[data-view=list] .report-filters :is(input,select){padding:6px;min-height:36px;font-size:13px}
.report-native[data-view=list] .report-board-status{margin:5px 0;font-size:11px;min-height:18px}
.report-native[data-view=list] .report-list{min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;align-content:start;gap:7px;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#475771 transparent;scroll-padding:4px}
.report-native[data-view=list] .report-list:focus-visible{outline:2px solid #8baaff;outline-offset:-2px}
.report-native[data-view=list] .report-card{padding:10px;border-radius:8px}
.report-native[data-view=list] .report-card-message{font-size:13px;line-height:1.5;margin:6px 0}
.report-native[data-view=list] .report-card img{max-height:96px;margin-bottom:5px}
.report-native[data-view=list] .report-pagination{margin-top:8px;font-size:11px}
@media(max-width:600px){
 .report-native[data-view=list] .report-board-intro p{display:none}
 .report-native[data-view=list] .report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .report-native[data-view=list] .report-filters label:first-child{grid-column:1/-1}
 body .report-native[data-view=list] .report-filters :is(input,select){font-size:16px}
}
:root body.mobile-hud #aux-window[data-kind=report]:has(.report-native[data-view=list]){--window-max:640px;display:flex!important;height:min(520px,calc(var(--mobile-window-height,100dvh) - var(--mobile-top) - var(--mobile-bottom)))!important;overflow:hidden!important}
:root body.mobile-hud #aux-window[data-kind=report] .report-native[data-view=list] .report-inner{padding:10px 12px}
@media(max-width:600px){
 .report-native[data-view=list] .report-filters label:first-child{font-size:0;gap:0}
 :root body.mobile-hud #aux-window[data-kind=report] .report-native[data-view=list] .report-filters :is(input,select){min-height:40px;height:40px;padding:4px 6px}
}
.report-reference{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;font-size:11px;margin:6px 0}
.report-reference code{min-width:0;overflow-wrap:anywhere;user-select:all;font:11px/1.5 monospace;color:inherit}
.report-reference button{flex:none;min-height:32px;padding:4px 8px;font:inherit}
.report-reference small{flex-basis:100%;overflow-wrap:anywhere}
