.portal {
  max-width: 960px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 28px) 16px calc(env(safe-area-inset-bottom) + 40px);
}
.p-head h1 { margin: 0; font-size: clamp(36px, 8vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.p-head h1 span { font-size: 0.4em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.p-head p { margin: 10px 0 0; font-size: 18px; color: var(--muted); max-width: 36em; line-height: 1.4; }

.squad-panel {
  margin: 28px 0; padding: 16px; border-radius: 18px; background: #fff;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.squad-text { flex: 1 1 220px; min-width: 0; }
.squad-text h2 { margin: 0; font-size: 20px; font-weight: 800; }
.squad-text p { margin: 4px 0 0; color: var(--muted); }
.squad-thumbs { display: flex; }
.squad-thumbs img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; margin-left: -12px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.squad-thumbs img:first-child { margin-left: 0; }
.squad-thumbs .more {
  width: 48px; height: 48px; border-radius: 50%; margin-left: -12px; border: 3px solid #fff;
  background: var(--paper-2); display: grid; place-items: center; font-weight: 800; font-size: 14px;
}

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.game {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: #fff; color: inherit; text-decoration: none;
  box-shadow: 0 4px 0 var(--paper-2); transition: transform 0.15s, box-shadow 0.15s;
}
.game:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--paper-2); }
.game:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-width: 100%; }
.g-body { padding: 14px 16px 16px; }
.g-body h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.g-body p { margin: 6px 0 0; color: var(--muted); line-height: 1.4; }
.g-body .g-meta { font-size: 13px; font-weight: 700; color: var(--ink); }
.g-body .g-meta:empty { display: none; }
.acct-panel { margin-top: -12px; }
.p-head .p-links { margin-top: 8px; font-size: 16px; }
.p-links a, .howto-back a { color: var(--ink); font-weight: 700; }
.howto-back { margin: 0 0 12px; }
