/* Roblox game image downloader (robloxservice.com/roblox-game-images/) */
.ex{padding-bottom:72px;}
.ex-head{padding:56px 0 28px;}
.ex-head h1{margin:12px 0 0; font:700 clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-display); letter-spacing:-.035em; color:var(--white);}
.ex-head p{margin:12px 0 0; color:var(--grey-mid); max-width:56ch;}

.ex-sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);}
.ex-form{display:flex; gap:10px; max-width:760px;}
.ex-form input{flex:1; min-width:0; height:48px; padding:0 16px; border:1px solid var(--line); border-radius:8px; background:var(--panel);
  color:var(--white); font:.95rem var(--font-body); outline:none; transition:border-color .15s ease;}
.ex-form input::placeholder{color:var(--grey-dim);}
.ex-form input:focus{border-color:var(--grey-mid);}
.ex-form button{height:48px; padding:0 22px; border:0; border-radius:8px; background:var(--white); color:var(--void); font:600 .92rem var(--font-body); cursor:pointer;}
.ex-form button:hover{background:var(--grey-light);}
.ex-form button[disabled]{opacity:.6; cursor:default;}
.ex-msg{margin:12px 0 0; font-size:.88rem; color:#f08a8a; min-height:1.3em;}
.ex-msg.busy{color:var(--grey-mid);}

.ex-result{margin-top:28px; animation:rsRise .4s var(--ease) both;}
.ex-result[hidden]{display:none;}
.ex-title{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding-bottom:20px; border-bottom:1px solid var(--line-soft);}
.ex-title h2{margin:0; font:700 1.6rem/1.2 var(--font-display); letter-spacing:-.025em; color:var(--white);}
.ex-title span{display:block; margin-top:6px; color:var(--grey-dim); font:.82rem var(--font-mono);}
.ex-text{color:var(--grey-light); font:500 .9rem var(--font-body); text-decoration:none; border-bottom:1px solid var(--line); white-space:nowrap;}
.ex-text:hover{color:var(--white); border-bottom-color:var(--grey-mid);}

.ex-block{padding:28px 0; border-bottom:1px solid var(--line-soft);}
.ex-block-head{display:flex; align-items:baseline; gap:12px; margin-bottom:16px;}
.ex-block-head h3{margin:0; font:600 1rem var(--font-body); color:var(--white);}
.ex-block-head span{font:.8rem var(--font-mono); color:var(--grey-dim);}
.ex-block-head .ex-btn{margin-left:auto;}

.ex-icon{display:flex; align-items:flex-end; gap:24px; flex-wrap:wrap;}
.ex-icon img{width:256px; height:256px; border-radius:12px; border:1px solid var(--line); background:var(--panel); object-fit:cover;}
.ex-icon-actions{display:flex; flex-direction:column; gap:8px;}

.ex-btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:9px 14px; border:1px solid var(--line); border-radius:8px;
  background:var(--panel); color:var(--grey-light); font:600 .84rem var(--font-body); text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:border-color .15s ease, color .15s ease, background .15s ease;}
.ex-btn:hover{border-color:var(--grey-mid); color:var(--white);}
.ex-btn.solid{background:var(--white); color:var(--void); border-color:var(--white);}
.ex-btn.solid:hover{background:var(--grey-light);}

.ex-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px;}
.ex-shot{margin:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--panel);}
.ex-shot img{display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#0e0e11;}
.ex-shot figcaption{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 12px;}
.ex-shot figcaption span{font:.76rem var(--font-mono); color:var(--grey-dim);}
.ex-shot .ex-btn{padding:7px 11px; font-size:.8rem;}
.ex-none{margin:0; color:var(--grey-dim); font-size:.9rem;}

@media (max-width:560px){
  .ex-form{flex-direction:column;}
  .ex-title{flex-direction:column; align-items:flex-start;}
  .ex-icon img{width:100%; height:auto; aspect-ratio:1/1; max-width:320px;}
  .ex-icon-actions{flex-direction:row; flex-wrap:wrap;}
  .ex-grid{grid-template-columns:1fr;}
}
.ex-btn[hidden]{display:none;}

/* phones: 16px text so iPhones don't zoom into the box, and full-size tap targets */
.ex-form input{font-size:16px;}
@media (max-width:560px){
  .ex-form input{flex:none; width:100%; height:52px;}
  .ex-form button{height:52px; width:100%;}
  .ex-btn{min-height:44px; padding:10px 14px;}
  .ex-shot .ex-btn{min-height:40px;}
  .ex-text{display:inline-block; padding:10px 0;}
  .ex-block-head{flex-wrap:wrap;}
}
