/* OurTibia (10.10.2026): phones and tablets - loaded after style.css and extra.css.
   Grid columns may shrink below their content, wide tables scroll inside their own box
   (inc/mobile.js wraps them), old MyAAC form tables stack label above field. */
.content-col,.side-col{min-width:0}
.statusbar .ot-lang{width:auto;min-width:0;max-width:110px;flex:none}
.ot-tscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;margin:8px 0 18px}
.ot-tscroll>table{margin:0!important}
.content img,.content video,.content iframe{max-width:100%;height:auto}
.content pre,.content code{white-space:pre-wrap;word-break:break-word}

/* tablets */
@media (min-width:1061px) and (max-width:1240px){
 .topbar .wrap{gap:14px}
 .nav-item>a,.nav-discord{padding:10px 9px;font-size:13.5px;white-space:nowrap}
 .mainnav .btn-sm{padding:8px 12px;margin-left:4px;white-space:nowrap}
}
@media (max-width:1100px){
 .layout{gap:18px}
}
/* the menu becomes the burger menu below 1060 px (it did not fit on tablets) */
@media (max-width:1060px){
 .burger{display:block}
 .mainnav{position:absolute!important;inset:100% 0 auto 0!important;flex-direction:column;align-items:stretch;background:var(--panel);border-bottom:1px solid var(--line);padding:12px 16px;display:none;max-height:calc(100vh - 120px)!important;overflow:auto;box-shadow:0 18px 30px #0009}
 .nav-open .mainnav{display:flex}
 .drop{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 0 12px;background:none;min-width:0}
 .mainnav .btn-sm{margin:8px 0 0}
 .mainnav .nav-item>a{display:block;padding:10px 4px}
 .mainnav .drop a{display:block;padding:7px 4px}
}
@media (max-width:900px){
 .layout{grid-template-columns:minmax(0,1fr);padding-top:20px}
 .hero-grid{padding-top:28px;padding-bottom:48px!important;gap:20px}
 .feature-strip{margin-top:16px}
 .hero-stats{max-width:none}
 .topbar .wrap{min-height:64px}
 .brand img{height:44px}
 .foot-grid{gap:18px}
}

/* phones */
@media (max-width:600px){
 .statusbar .wrap{gap:6px 12px;padding-top:6px;padding-bottom:6px;min-height:0}
 .statusbar .spacer{flex:1 1 0}
 .panel{padding:16px 14px;border-radius:10px}
 .page-title{font-size:22px}
 .content h2{font-size:20px}.content h3{font-size:17px}
 .content table{font-size:13px}
 .content td,.content th{padding:7px 8px}
 .hero h1{font-size:34px}
 .hero p{font-size:15px}
 .hero .actions{display:flex;flex-wrap:wrap;gap:10px}
 .hero .actions .btn{flex:1 1 auto;justify-content:center;margin:0}
 .hero-stats b{font-size:19px}
 .foot-grid{grid-template-columns:1fr 1fr}
 .foot-bottom{flex-direction:column;align-items:flex-start}
 .notice{flex-direction:column;align-items:flex-start}
 /* fields fill the width instead of a fixed 220-300 px */
 .content input[type=text],.content input[type=password],.content input[type=email],.content input[type=number],.content select,.content textarea{width:100%!important;min-width:0!important;max-width:100%;box-sizing:border-box}
 /* MyAAC form tables (create account, account management, change password ...): label above the field */
 .content .TableContent,.content .TableContent>tbody,.content .TableContent>tbody>tr,.content .TableContent>tbody>tr>td{display:block;width:100%!important;box-sizing:border-box}
 .content .TableContent>tbody>tr>td.LabelV,.content .TableContent>tbody>tr>td.LabelH{padding-bottom:0;border-bottom:0}
 .content .TableContent>tbody>tr>td:empty{display:none}
 .content .TableContentContainer,.content .TableContentAndRightShadow,.content .InnerTableContainer{width:auto!important}
 .content .TableShadowContainerRightTop,.content .TableShadowContainer,.content .TableBottomShadow,.content .TableBottomLeftShadow,.content .TableBottomRightShadow{display:none!important}
 .content input[type=submit],.content input[type=button],.content button{max-width:100%}
 .content input[type=checkbox],.content input[type=radio]{width:auto!important;min-width:0!important;display:inline-block;vertical-align:middle;margin:0 6px 0 0}
 .f-hero{grid-template-columns:1fr!important;gap:12px!important}
 .f-hero>img,.f-hero>a>img{width:72px;height:auto}
 /* achievements: one card per achievement (name + points, then how to get it) */
 .ach-t thead{display:none}
 .ach-t,.ach-t tbody{display:block}
 .ach-t tr{display:grid;grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid var(--line);padding:6px 0}
 .ach-t td{border:0!important;padding:3px 4px!important;min-width:0!important}
 .ach-t td:first-child{grid-column:1;grid-row:1;font-weight:600}
 .ach-t td.p{grid-column:2;grid-row:1}
 .ach-t td:nth-child(2){grid-column:1/-1;grid-row:2;color:var(--muted)}
}
@media (max-width:380px){
 .foot-grid{grid-template-columns:1fr}
 .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:601px) and (max-width:1060px){
 .nav-open .mainnav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 18px;align-items:start}
}
