.web-home { min-height:100dvh; height:auto; }
.home { width:min(980px,100%); margin:0 auto; padding:24px 22px 18px; display:flex; flex-direction:column; gap:18px; }
.home-header { display:flex; align-items:center; gap:24px; }
.home-logo { font-size:clamp(70px,12vw,120px); color:var(--yellow); -webkit-text-stroke:2px var(--ink); text-shadow:5px 5px var(--ink); transform:rotate(-4deg); line-height:1; }
.home-header p { flex:1; font-size:20px; margin:0; }
.home-art { position:relative; height:clamp(210px,29vw,320px); overflow:hidden; border:var(--b); box-shadow:var(--shadow); background:#a6d2ef; }
.home-art img { width:100%; height:100%; object-fit:cover; object-position:50% 35%; }
.home-art .caption { position:absolute; bottom:16px; right:14px; transform:rotate(-2deg); }
.home-actions { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.home-card { padding:18px; display:flex; flex-direction:column; gap:10px; }
.home-card h2 { font-size:30px; }
.home-card p { margin:0 0 6px; }
.home-card .btn { margin-top:auto; }
.join-row { display:flex; gap:10px; margin-top:8px; }
#code { text-transform:uppercase; letter-spacing:.12em; width:100%; min-width:0; font-size:24px; font-weight:700; }
.home-help { margin:0; text-align:center; }
.home-tools { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
.home-credits { font-size:13px; text-align:center; color:var(--muted); line-height:1.4; }
[hidden] { display:none !important; }
.room-tag { font:18px 'Bangers'; letter-spacing:.07em; padding:3px 6px; background:var(--yellow); border:2px solid var(--ink); white-space:nowrap; }
.home-link { color:inherit; text-decoration:none; }
.share-url { width:100%; min-width:0; user-select:text; }
.share-code { font:36px 'Bangers'; letter-spacing:.12em; padding:6px 0; }
body.web-table #app { height:100dvh; grid-template-rows:auto minmax(0,1fr) auto; grid-template-columns:300px minmax(0,1fr); }
body.web-table header { flex-wrap:wrap; gap:8px; }
body.web-table a.logo { color:var(--yellow); }
body.web-table #pbar { order:3; flex-basis:100%; }
body.web-table #conn { margin-left:auto; }
body.web-table #objs { grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr)); }
body.web-player #top .room-tag { margin-right:8px; }
body.web-player #off a { display:inline-block; margin-top:16px; color:var(--ink); }
@media(max-width:650px) {
  .home { padding:18px 14px; gap:16px; }
  .home-header { gap:14px; flex-wrap:wrap; }
  .home-header p { font-size:17px; }
  .home-header .tag { margin-left:auto; }
  .home-actions { grid-template-columns:1fr; }
  .home-card { padding:14px; }
  .home-art .caption { right:8px; bottom:10px; left:8px; font-size:16px; text-align:center; }
  body.web-table { overflow:auto; }
  body.web-table #app { display:flex; height:auto; min-height:100dvh; flex-direction:column; padding:8px; }
  body.web-table #guide { overflow:visible; }
  body.web-table #board { min-height:420px; flex:1; }
  body.web-table #pbar .phasebar { flex-wrap:wrap; }
}
