/* News reader only. The game's overlay/drag/focus system keeps its existing controls. */
#ov-noticias [hidden],#news-lightbox[hidden],#gm-news-badge[hidden]{display:none!important}
#ov-noticias>.news-card{box-sizing:border-box;width:min(1080px,calc(100vw - 40px));height:min(780px,calc(100dvh - 100px));max-height:calc(100dvh - 100px);display:flex;flex-direction:column;overflow:hidden}
#ov-noticias>.news-card>h3{flex:none}
#ov-noticias>.news-card>.close{position:absolute;top:8px;right:8px;float:none;margin:0;z-index:5;flex:none}
#ov-noticias .news-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin:0 0 12px;font-size:13px}
#ov-noticias .news-toolbar p{margin:0;color:inherit;opacity:.9;text-shadow:none}
#ov-noticias .news-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;min-height:0;flex:1}
#ov-noticias .news-list,#ov-noticias .news-detail{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable;box-sizing:border-box}
#ov-noticias .news-list{display:flex;flex-direction:column;gap:9px;padding:3px 5px 3px 2px}
#ov-noticias button.news-entry{box-sizing:border-box;flex:none;width:100%;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:13px;background:#efe1bf;border:2px solid #b39461;border-image:none;border-radius:6px;box-shadow:0 2px #2c211e33;color:#4b361f!important;text-shadow:none;white-space:normal;line-height:1.35;min-height:0}
#ov-noticias button.news-entry:hover{background:#fff0cb;filter:none}
#ov-noticias button.news-entry[aria-pressed=true]{background:#e0e8c9;border-color:#66843b;box-shadow:inset 4px 0 #66843b;color:#314b1f!important}
#ov-noticias .news-entry-date{font-size:11px;font-weight:500;color:#786546}
#ov-noticias .news-entry-title{font-size:16px;overflow-wrap:anywhere;color:#4b361f}
#ov-noticias .news-entry[aria-pressed=true] .news-entry-title{color:#314b1f}
#ov-noticias .news-entry-new{padding:2px 7px;border-radius:4px;font-size:11px;color:#fff4d5;background:#617c38}
#ov-noticias .news-detail{background:#fff3d5;border:2px solid #b89a63;border-radius:7px;color:#44321e;padding:20px 22px;line-height:1.65;text-shadow:none;user-select:text;cursor:auto}
#ov-noticias .news-date{font-size:12px;font-weight:600;color:#806443}
#ov-noticias h2.news-title{font-family:Georgia,serif;font-size:28px;line-height:1.2;color:#55351c;text-shadow:none;margin:5px 0 18px;overflow-wrap:anywhere}
#ov-noticias .news-figure{margin:0 0 20px}
#ov-noticias button.news-image-button{display:block;position:relative;width:100%;padding:0;overflow:hidden;border:2px solid #a27c49;border-image:none;border-radius:5px;background:#183527;color:#fff0d1;box-shadow:none}
#ov-noticias .news-image-button img{display:block;width:100%;height:auto;max-height:370px;object-fit:contain;image-rendering:auto}
#ov-noticias .news-image-hint{position:absolute;right:7px;bottom:7px;font-size:11px;padding:3px 7px;background:#1d3329e8;border:1px solid #c0aa6a;border-radius:3px;color:#fff0d1;text-shadow:none}
#ov-noticias .news-content{font-size:15px;overflow-wrap:anywhere}
#ov-noticias .news-content p{margin:0 0 14px}
#ov-noticias .news-content h4{font-size:18px;color:#65431f;margin:20px 0 10px;line-height:1.3}
#ov-noticias .news-content ul,#ov-noticias .news-content ol{margin:0 0 15px;padding-left:24px}
#ov-noticias .news-content li{margin-bottom:7px}
#ov-noticias .news-content code{font-family:ui-monospace,Consolas,monospace;font-size:.93em;background:#e8dbb8;padding:1px 4px;border-radius:3px}
#ov-noticias .news-content hr{border:0;border-top:1px solid #bca276;margin:19px 0}
#ov-noticias .news-content a,#ov-noticias .news-discord{color:#416b2b;font-weight:700;text-decoration:underline;text-underline-offset:3px}
#ov-noticias .news-discord{display:inline-block;font-size:13px;margin-top:8px}
#ov-noticias .news-empty{padding:28px 0;font-size:15px;margin:0}
#ov-noticias .news-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;flex:none;font-size:13px;padding:9px 12px;margin:0 0 12px;border:1px solid #c2a168;border-radius:5px;background:#f5e6c4;color:#4e391d;text-shadow:none}
#ov-noticias .news-status[data-error=true],#ov-noticias .news-image-error{background:#f6e4cb;color:#803c25;border-color:#bb8152}
#ov-noticias .news-image-error{padding:12px;border:1px solid #bb8152;border-radius:4px;font-size:13px}
#ov-noticias button.news-small-button,#news-lightbox button{padding:6px 10px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.4;border:1px solid #a98650;border-image:none;border-radius:5px;background:#f0deb2;color:#4c3519!important;min-height:32px;box-shadow:none;text-shadow:none}
#ov-noticias button.news-small-button:disabled{color:#65573f!important;background:#ded2b3!important;opacity:1}
#ov-noticias .news-toolbar button{flex:none}
#ov-noticias button:focus-visible,#ov-noticias a:focus-visible,#news-lightbox button:focus-visible{outline:3px solid #7b923b;outline-offset:2px}
#news-lightbox{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:12px;pointer-events:auto;background:#0d1c17ed}
#news-lightbox>.news-lightbox-card{position:relative;left:auto;top:auto;transform:none;display:flex;flex-direction:column;width:min(1640px,100%);height:auto;max-height:calc(100dvh - 24px);padding:12px;border:3px solid #b9965a;border-image:none;border-radius:8px;background:#233b2c;color:#fff1cf;box-shadow:0 12px 50px #0009;image-rendering:auto}
#news-lightbox .news-image-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;margin-bottom:10px}
#news-lightbox .news-image-tools span{font-size:13px}
#news-lightbox .news-image-scroll{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}
#news-lightbox img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 110px);object-fit:contain;margin:auto;image-rendering:auto}
#news-lightbox.news-original img{width:1600px;max-width:none;max-height:none}
@media(min-width:900px){
 .visual-v2 #ov-noticias>.news-card{width:min(1120px,calc(100vw - 48px));height:min(790px,calc(100dvh - 100px));overflow:hidden}
}
@media(max-width:760px){
 #ov-noticias>.news-card{width:calc(100vw - 16px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:10px}
 #ov-noticias .news-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:10px}
 #ov-noticias .news-list{flex-direction:row;max-height:130px;padding:2px 2px 6px;overflow-x:auto;scrollbar-gutter:auto}
 #ov-noticias button.news-entry{width:210px;padding:9px;gap:4px}
 #ov-noticias .news-entry-title{font-size:14px}
 #ov-noticias .news-entry-date{font-size:10px}
 #ov-noticias .news-toolbar{font-size:12px;margin-bottom:8px}
 #ov-noticias .news-detail{padding:14px}
 #ov-noticias h2.news-title{font-size:23px}
 #ov-noticias .news-content{font-size:14px}
 #news-lightbox .news-image-tools span{display:none}
}
