/* Persistent cards share their full desktop content on touch screens. */
.mobile-scroll-hint{display:none}
#db-material-popover.is-pinned{border-color:#c2a37f;box-shadow:0 14px 48px #35271d35}
#db-material-popover .db-popover-tools,#db-property-popover .db-popover-tools{position:sticky;top:-18px;z-index:3;display:flex;align-items:center;gap:10px;min-height:48px;margin:-18px -18px 14px;padding:8px 12px;border-bottom:1px solid #ddcbb5;border-radius:13px 13px 0 0;background:#fffaf3;color:#181512;white-space:normal}
#db-material-popover:has(.phantom-panel) .db-popover-tools{top:-20px;margin:-20px -20px 14px}
#db-material-popover:has(.relic-panel) .db-popover-tools{top:-22px;margin:-22px -22px 14px}
#db-material-popover .db-popover-tools>span,#db-property-popover .db-popover-tools>span{flex:1;font:600 14px/1.4 system-ui,sans-serif}
#db-material-popover .db-popover-tools>button,#db-property-popover .db-popover-tools>button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #cbb191;border-radius:12px;background:#f1e3cf;color:#17110d;font:400 29px/1 system-ui,sans-serif;touch-action:manipulation}
#db-material-popover .db-popover-tools>a{font:600 14px/1.4 system-ui,sans-serif;min-height:44px;display:inline-flex;align-items:center;padding:6px 10px;color:#24180f;border:1px solid #dac4a9;border-radius:9px;background:#fff;text-decoration:none}
#db-property-popover .db-property-body{white-space:pre-wrap;overflow-wrap:anywhere}
#db-material-popover .db-popover-tools :focus-visible,#db-property-popover .db-popover-tools :focus-visible{outline:3px solid #936948;outline-offset:2px}
@media(max-width:900px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:105px}
 body.site-theme{zoom:1!important}
 body.site-theme,body.site-theme.readable-site{--riftery-page-gutter:24px;--riftery-content-size:18px;font-size:17px}
 body.site-theme :is(main,.reader-paper,.article-content,.article-block,.article-tabs,[role=tabpanel],.build-reader-body,.game-permanent-section,#db-results,.catalogbar){min-width:0;box-sizing:border-box}
 body.site-theme :is(.reader-layout,.home-main,#sectionmain,#database-main){max-width:100%!important;box-sizing:border-box}
 body.site-theme input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),body.site-theme select,body.site-theme textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}
 body.site-theme :is(button,select,.db-back-catalog,.sxs-back,.reader-bottom a){touch-action:manipulation}
 body.site-theme>header .bar{display:flex!important;flex-wrap:wrap;gap:10px!important;padding:10px 0!important;min-height:64px!important;width:calc(100% - 24px)!important;box-sizing:border-box}
 body.site-theme.readable-site>header .bar .brand{font-size:25px}
 body.site-theme>header .bar .home-header-actions{margin-left:auto;max-width:100%;flex-wrap:wrap}
 body.site-theme>header .bar .nav{display:flex;width:auto;gap:8px;flex-wrap:wrap;order:initial}
 body.site-theme.readable-site>header .bar .nav a{font-size:15px;min-height:44px;height:44px;padding:0 12px!important}
 body.site-theme.reader-page .reader-layout{width:calc(100% - 20px)!important;padding:0!important;margin-top:16px}
 body.site-theme.reader-page :is(.reader-intro,.article-content){padding:20px 16px}
 body.site-theme.reader-page .reader-intro h1{font-size:28px;line-height:1.3;overflow-wrap:anywhere}
 body.site-theme.reader-page .reader-intro-copy>p{font-size:18px;line-height:1.7}
 body.site-theme.reader-page .reader-cover{height:clamp(170px,48vw,260px);object-fit:cover}
 body.site-theme.reader-page .article-tabs>[role=tabpanel]{padding:18px 12px}
 body.site-theme.reader-page .article-tabs>[role=tablist]{scroll-snap-type:x proximity;scrollbar-width:thin;touch-action:pan-x pan-y pinch-zoom}
 body.site-theme.reader-page .article-tabs>[role=tablist]>button{font-size:16px;min-height:48px;scroll-snap-align:start}
 body.site-theme.reader-page .article-content{font-size:18px;line-height:1.75}
 body.site-theme.reader-page .article-block :is(h2,h3,h4){overflow-wrap:anywhere}
 body.site-theme.reader-page .article-block h2{font-size:25px}
 body.site-theme.reader-page .article-block h3{font-size:22px}
 body.site-theme.reader-page .article-columns,.site-theme.reader-page .canvas-columns{grid-template-columns:minmax(0,1fr)!important;gap:18px}
 body.site-theme.reader-page :is(.article-table-wrap,.skill-table-scroll,.stats-configurable,.build-table-scroll){overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
 body.site-theme.reader-page .article-table{min-width:var(--table-min-width,480px);font-size:17px}
 body.site-theme.reader-page .article-table :is(th,td){padding:11px 12px;overflow-wrap:anywhere}
 body.site-theme.reader-page .configurable-stats{min-width:var(--stats-min-width,320px);width:100%}
 body.site-theme.reader-page .configurable-stats>div{grid-template-columns:var(--stats-tracks)!important}
 body.site-theme.reader-page .configurable-stats>div>*{min-width:0;overflow-wrap:anywhere}
 body.site-theme.reader-page .skill-build-frame{padding:6px;min-width:0}
 body.site-theme.reader-page .skill-build-frame .skill-build-table{min-width:calc(var(--skill-columns)*170px)}
 body.site-theme.reader-page .skill-build-frame .skill-build-table .skill-build-item{min-height:76px;padding:10px;gap:9px}
 body.site-theme.reader-page .skill-build-frame .skill-build-item>strong{font-size:17px}
 body.site-theme.reader-page .skill-full-description .db-display-field{font-size:17px!important;line-height:1.7}
 body.site-theme.reader-page .skill-full-description .db-display-field.is-muted{font-size:16px!important}
 body.site-theme.reader-page :is(.build-hero,.build-overview,.build-layout,.build-pros-cons){grid-template-columns:minmax(0,1fr)}
 body.site-theme.reader-page .build-hero-copy{padding:24px 18px}
 body.site-theme.reader-page .build-hero h1{font-size:32px}
 body.site-theme.reader-page .build-hero-art>img{max-width:100%;height:240px;object-fit:contain}
 body.site-theme .db-search-row{flex-wrap:wrap;gap:10px}
 body.site-theme .db-search-row>input{flex-basis:100%;width:100%}
 body.site-theme .db-search-row>.db-view-switch{margin-left:auto}
 body.site-theme .db-collection-navigation{flex-wrap:wrap}
 body.site-theme .db-collection-navigation select{width:100%;min-height:44px}
 body.site-theme :is(.db-page-heading,.db-catalog-heading){gap:14px;padding:18px 14px}
 body.site-theme .db-page-heading h1{font-size:27px;overflow-wrap:anywhere}
 body.site-theme .db-page-heading select{width:100%;min-height:44px}
 body.site-theme .db-browser-panel{padding:14px}
 body.site-theme .db-filter-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.site-theme .db-filter-options button{height:auto;min-height:46px;font-size:15px;padding:8px;line-height:1.4}
 body.site-theme .db-filter-options button>span{display:block;-webkit-line-clamp:unset;overflow:visible}
 body.site-theme .db-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.site-theme .db-items-list{grid-template-columns:minmax(0,1fr)}
 body.site-theme .db-record .db-item-copy>strong,body.site-theme .db-record>strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
 body.site-theme .db-record .db-item-description{font-size:16px;line-height:1.6}
 body.site-theme .db-record .db-item-card{min-height:158px}
 body.site-theme :is(.phantom-record,.relic-record){padding:14px 10px}
 body.site-theme .db-items-list :is(.phantom-record,.relic-record){flex-direction:row;text-align:left;gap:16px}
 body.site-theme .inline-db{cursor:pointer;-webkit-tap-highlight-color:#c9a47a44;touch-action:manipulation;scroll-margin-top:100px}
 #db-material-popover,#db-material-popover:has(.db-profile-tooltip),#db-material-popover:has(.character-compact-tip),#db-material-popover:has(.phantom-panel),#db-material-popover:has(.relic-panel){padding:18px;border-radius:16px;font:17px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif;color:#17130e;box-sizing:border-box;max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom}
 #db-material-popover .db-popover-tools,#db-material-popover:has(.phantom-panel) .db-popover-tools,#db-material-popover:has(.relic-panel) .db-popover-tools{top:-18px;margin:-18px -18px 16px}
 #db-material-popover :is(.db-tip-description,.db-profile-tip-description,.db-display-field,.db-tip-content>span,.db-profile-tip-stats,.phantom-panel,.relic-panel){font-size:17px!important;line-height:1.7!important}
 #db-material-popover :is(.db-tip-heading>strong,.db-profile-tip-header>strong){font-size:20px!important;line-height:1.4!important}
 #db-material-popover>strong{font-size:20px;color:#000}
 #db-material-popover :is(.db-tip-content>small,.db-display-field.is-muted,.relic-source>small,.relic-effect>small){font-size:15px!important;line-height:1.6!important}
 #db-material-popover :is(.db-tip-description,.db-profile-tip-description){display:block;max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset;line-clamp:unset}
 #db-material-popover .db-profile-tip-header{min-width:0}
 #db-material-popover .phantom-tabs>button{min-height:48px;font-size:16px}
 #db-material-popover .phantom-model{height:210px}
 #db-material-popover .phantom-model>img{max-height:210px!important}
 #db-material-popover .phantom-skills>button{min-height:80px;width:86px;font-size:14px;touch-action:manipulation}
 #db-material-popover .relic-members{grid-template-columns:repeat(2,minmax(0,1fr))}
 #db-material-popover .relic-members>button{min-width:0;min-height:54px;font-size:14px;overflow-wrap:anywhere}
 #db-material-popover .relic-stat{flex-wrap:wrap;padding:12px 10px;gap:8px}
 #db-material-popover .relic-stat>span{min-width:0;flex-basis:55%;overflow-wrap:anywhere}
 #db-property-popover{font:17px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif;color:#17130e;width:340px;padding:18px;overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
 #db-property-popover .db-popover-tools{top:-18px;margin:-18px -18px 12px}
 body.site-theme #db-item-dialog{width:calc(100% - 20px);max-width:560px;max-height:calc(100dvh - 24px);box-sizing:border-box;padding:18px;overflow:auto;overscroll-behavior:contain;font-size:17px}
 body.site-theme #db-item-dialog>.close{position:sticky;top:0;z-index:3;float:right;min-height:44px;min-width:44px;margin:0 0 8px 8px;background:#f1e3cf;border:1px solid #cbb191}
 body.site-theme .db-detail{font-size:17px;line-height:1.7;clear:both}
 body.site-theme .db-detail :is(.db-tip-description,.db-display-field){font-size:17px!important;line-height:1.7}
 body.site-theme footer{box-sizing:border-box;max-width:100%;flex-wrap:wrap;overflow-wrap:anywhere}
 body.site-theme footer nav{flex-wrap:wrap}
 .mobile-scroll-hint{display:flex;justify-content:space-between;gap:12px;align-items:center;font:500 13px/1.5 system-ui,sans-serif;color:#5a4837;padding:8px 4px}
 .mobile-scroll-hint[hidden]{display:none!important}
}
@media(max-width:480px){
 body.site-theme.readable-site>header .bar .brand{font-size:23px}
 body.site-theme.readable-site>header .bar .brand img{width:30px;height:30px;flex-basis:30px}
 body.site-theme>header .bar .home-header-actions{gap:6px}
 body.site-theme.readable-site>header .bar .nav a{padding:0 10px!important;font-size:14px}
 body.site-theme .home-header-actions .account{margin-left:0}
 body.site-theme.home-page #materials #feed{grid-template-columns:minmax(0,1fr)}
 body.site-theme.home-page #materials .material-filter-panel .filters{grid-template-columns:minmax(0,1fr)!important}
 body.site-theme.home-page #materials .material-filter-panel .filters>*{grid-column:1!important}
 body.site-theme.home-page .riftery-intro-description{font-size:18px}
 body.site-theme.home-page .lootbar-banner-copy{padding:20px;max-width:90%}
 body.site-theme.home-page .lootbar-banner-copy p{font-size:16px}
 body.site-theme .game-article-copy h4{font-size:18px}
}

@media(prefers-reduced-motion:reduce){#db-material-popover,#db-property-popover{scroll-behavior:auto}}
@media(max-width:900px){body.site-theme.reader-page .article-text .relic-icon{width:1.55em!important;height:1.55em!important;min-width:0!important;min-height:0!important;padding:1px!important;line-height:1;vertical-align:middle}body.site-theme.reader-page .article-text .relic-icon>img{width:76%!important;height:76%!important}}
@media(max-width:900px){
 body.site-theme.home-page :is(.home-section-title,.game-shelf-heading){flex-wrap:wrap;gap:12px;min-width:0}
 body.site-theme.home-page .home-section-title :is(h1,h2){min-width:0;font-size:25px;overflow-wrap:anywhere}
 body.site-theme.home-page .home-section-title>a{white-space:normal;font-size:15px;min-height:44px}
 body.site-theme.home-page .recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}
 body.site-theme.home-page .recommendation{grid-column:auto!important;min-width:0!important;width:100%;box-sizing:border-box;min-height:210px;aspect-ratio:auto}
 body.site-theme.home-page :is(.recommendation-0,.recommendation-1){grid-column:1/-1!important;min-height:250px}
 body.site-theme.home-page .recommendation .material-copy{min-width:0;max-width:100%;box-sizing:border-box}
 body.site-theme.home-page .game-shelf-title{min-width:0;max-width:100%}
 body.site-theme.home-page .game-shelf-title h3{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:480px){body.site-theme.home-page .recommendation-grid{grid-template-columns:minmax(0,1fr)!important}body.site-theme.home-page .recommendation{grid-column:1!important;min-height:210px}body.site-theme.home-page :is(.recommendation-0,.recommendation-1){grid-column:1!important;min-height:250px}body.site-theme.home-page .home-section-title :is(h1,h2){font-size:24px}}

@media(max-width:900px){body.site-theme.reader-page .configurable-stats>div>small{grid-column:auto!important;justify-self:stretch}}

@media(max-width:900px){body.site-theme.home-page .game-shelf-controls button{min-width:52px;min-height:60px}body.site-theme.home-page .game-shelf-controls button>span{width:44px;height:44px;opacity:1;transform:none}body.site-theme #home-pagination button,body.site-theme .db-pagination button{min-width:44px;min-height:44px}}
