/* Shared legacy-page layout corrections. No page-level clipping of content. */
#left,#right,#right .box{min-width:0}
#left .box_podobne{max-width:100%}
.game-meta{width:100%;min-width:0;margin:12px 0}
.game-meta table,.game-navigation{width:100%;table-layout:fixed}
.message-list,.message-detail{width:100%;table-layout:fixed;border-color:var(--line)}
.message-list td,.message-detail td{overflow-wrap:anywhere;border-color:var(--line)}
.message-list tr[bgcolor]{background:var(--panel-light);color:var(--text)}
.game-navigation td{overflow-wrap:anywhere}
.sidebar-rating{display:inline-flex;gap:5px;align-items:center;font-size:12px;color:var(--muted)}
.sidebar-rating>span{color:var(--accent);font-size:18px}
.profile-photo-page center{padding:16px}.profile-photo-page img{max-width:100%;height:auto}
.game-placeholder{object-fit:contain;background:#203832;border-radius:10px}
.mouseWheelDiv,.similar-videos{max-width:100%;min-width:0}
.mouseWheelDiv{overflow-x:auto;overscroll-behavior-inline:contain}
.similar-videos{max-width:100%!important}
#left table.list{width:100%;table-layout:fixed}
#left table.list td{overflow-wrap:anywhere}
#left form{max-width:100%;min-width:0}
#left form textarea{width:100%;max-width:100%;resize:vertical}
.profile-layout{width:100%;table-layout:fixed}.profile-layout td{vertical-align:top;overflow-wrap:anywhere}
.profile-layout img{max-width:min(100%,180px);height:auto}
.fullscreen-game{width:min(1200px,calc(100% - 32px));margin:24px auto}
.fullscreen-game h1{font-size:clamp(22px,4vw,36px);overflow-wrap:anywhere}
.fullscreen-game .player-frame{width:100%;aspect-ratio:590/450;max-height:80dvh;margin:20px auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.player-frame embed,.player-frame ruffle-embed,.player-frame ruffle-object,.player-frame ruffle-player{display:block;width:100%!important;height:100%!important;max-width:100%}
.pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}
@media(max-width:850px){
  #right{grid-template-columns:repeat(2,minmax(0,1fr))}
  .game-navigation td{width:auto!important}
}
@media(max-width:600px){
  #left .box_podobne{padding:18px}
  #left form table,#left form tbody,#left form tr,#left form td{display:block;width:100%!important;max-width:100%;min-width:0}
  #left form td{padding:5px 0;overflow-wrap:anywhere}
  #left form input:not([type=hidden]):not([type=radio]):not([type=checkbox]),#left form select{width:100%;min-width:0;min-height:44px;font-size:16px}
  #left form textarea{font-size:16px}
  #left form input[type=radio],#left form input[type=checkbox]{width:auto;min-height:20px;min-width:20px;vertical-align:middle}
  .profile-layout,.profile-layout>tbody,.profile-layout>tbody>tr,.profile-layout>tbody>tr>td{display:block!important;width:100%!important;overflow:visible!important}
  .profile-layout>tbody>tr>td{margin-bottom:18px}
  .message-detail,.message-detail>tbody,.message-detail>tbody>tr,.message-detail>tbody>tr>td{display:block!important;width:100%!important}
  .message-detail img{width:72px;max-width:100%;height:auto}
  .game-navigation,.game-navigation>tbody,.game-navigation>tbody>tr{display:block}
  .game-navigation>tbody>tr{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}
  .game-navigation td{display:block;flex:1 1 40%;padding:8px 0}
  .game-navigation td:nth-child(2){order:3;flex-basis:100%}
  #right{grid-template-columns:minmax(0,1fr)}
}
