/* Tazvera dApps · desktop layout (width 900px and up). Colours and base rules come from dapps-mobile.css. */

/* Shared rules, same on every width: logo lifecycle, network picker, press and motion states */
.scr.tab-brw .tz-dapp-mark .tz-dapp-logo{position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);object-fit:contain;opacity:0;transition:opacity .2s ease;pointer-events:none;user-select:none;-webkit-user-drag:none}
.scr.tab-brw .tz-dapp-mark.has-logo .tz-dapp-logo{opacity:1}
.scr.tab-brw .tz-dapp-mark.has-logo .tz-dapp-fallback{display:none}
.scr.tab-brw .tz-chain-pop{position:absolute;top:50px;right:0;z-index:40;width:200px;padding:8px;border:1px solid var(--dz-border);border-radius:16px;background:var(--dz-surface);box-shadow:0 12px 28px rgba(0,0,0,.16)}
.scr.tab-brw .tz-chain-opt{display:flex;align-items:center;gap:10px;width:100%;height:40px;min-height:40px;padding:0 8px;border:0;border-radius:10px;background:transparent;color:var(--dz-text);cursor:pointer;text-align:left}
.scr.tab-brw .tz-quick-item{min-height:56px}
.scr.tab-brw .tz-quick-item:active,.scr.tab-brw .tz-dapp-tile:active,.scr.tab-brw .tz-open-inert:active{transform:scale(.97)}
.scr.tab-brw .tz-dapp-grid .tz-dapp-tile{animation:tz-tile-in .36s ease both;animation-delay:0ms}
.scr.tab-brw .tz-dapp-grid .tz-dapp-tile:nth-child(2){animation-delay:30ms}
.scr.tab-brw .tz-dapp-grid .tz-dapp-tile:nth-child(3){animation-delay:60ms}
.scr.tab-brw .tz-dapp-grid .tz-dapp-tile:nth-child(4){animation-delay:90ms}
@keyframes tz-tile-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
 .scr.tab-brw .tz-dapp-grid .tz-dapp-tile{animation:none!important;transform:none!important;opacity:1}
 .scr.tab-brw .tz-dapp-tile:hover,.scr.tab-brw .tz-quick-item:active,.scr.tab-brw .tz-open-inert:active,.scr.tab-brw .tz-dapp-tile:active{transform:none}
}

/* Desktop layout */
@media(min-width:900px){
 #app > .scr.tab-brw:has(.tz-dapps-shell){max-width:none!important}
 .scr.tab-brw .tz-dapps-shell{max-width:none;padding:22px 40px 56px;gap:16px}
 body:has(.scr.tab-brw){background-image:none!important}
 .scr.tab-brw .tz-dapps-header h1{font-size:28px}
 .scr.tab-brw .tz-dapps-search input{font-size:16px}
 .scr.tab-brw .tz-cat-row{flex-wrap:wrap;overflow:visible}
 .scr.tab-brw .tz-hero{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;margin:8px 0 22px}
 .scr.tab-brw .tz-hero>*{align-self:stretch}
 .scr.tab-brw .tz-dapp-feature{flex-direction:column;justify-content:space-between;min-height:250px;padding:28px}
 .scr.tab-brw .tz-dapp-feature-main{flex-direction:row;align-items:center;gap:22px}
 .scr.tab-brw .tz-hero-logo{width:120px;height:120px}
 .scr.tab-brw .tz-dapp-mark.hero{width:88px;height:88px;min-width:88px;font-size:30px}
 .scr.tab-brw .tz-dapp-feature-copy h3{font-size:28px}
 .scr.tab-brw .tz-hero-quick{padding:20px;align-content:start}
 .scr.tab-brw .tz-dapps-section-head h2{font-size:18px}
 .scr.tab-brw .tz-dapp-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
 .scr.tab-brw .tz-dapp-tile{height:100%}
 .scr.tab-brw .tz-tile-tags{margin-top:auto}
}
