/* Home page: neutral SoToy! welcome on plush lavender felt, then the game catalog. */
body.home { min-height: 100vh; min-height: 100dvh; background: #DCC8F5 url('/assets/bg/stage-phone.webp') center top / cover no-repeat; background-attachment: fixed; }
.home .ptop { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; padding-top: max(14px, env(safe-area-inset-top)); }
.home .plogo { font-weight: 800; font-size: 32px; color: var(--ink); letter-spacing: -1px; }
.home .plogo .bang { display: inline-block; color: var(--brand); transform: rotate(12deg); }
.home .lang-switch { font-size: 15px; }
.home .lang-switch button { min-height: 44px; min-width: 52px; }

.home-main { max-width: 480px; margin: 0 auto; padding: 0 18px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }

.welcome { text-align: center; }
.hello-bubble { display: inline-block; position: relative; padding: 12px 24px; margin-top: 6px; }
.hello-bubble::after { content: ''; position: absolute; left: 50%; bottom: -16px; margin-left: -12px; border: 12px solid transparent; border-top: 16px solid var(--ink); border-bottom: 0; }
.hello-bubble h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; }
.hello-sub { margin: 22px 0 6px; font-size: 18px; font-weight: 600; line-height: 1.4; color: #3A2F55; }
.crew { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; margin-top: 8px; }
.crew-av { width: 62px; height: 62px; display: block; }
.crew-av:nth-child(odd) { transform: translateY(6px); }
.crew .avatar-img { width: 100%; height: 100%; }

.pick-title { margin: 0 0 12px; font-size: 26px; font-weight: 800; text-align: center; }
.games { display: grid; gap: 18px; }
.game-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; transform: rotate(-.5deg); }
.game-art { align-self: start; }
.game-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.1; }
.game-alt { display: block; font-size: 15px; font-style: italic; opacity: .75; margin-top: 2px; }
.game-desc { margin: 8px 0 10px; font-size: 16px; line-height: 1.4; }
.game-meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.game-meta li { border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; }
.more { margin: 12px 0 0; text-align: center; font-size: 15px; font-weight: 600; color: #4A3F66; }

.home .btn-big {
  display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  min-height: 56px; padding: 0 16px; border: 3px solid var(--ink); border-radius: 14px; background: var(--accent); color: var(--ink);
  font-weight: 800; font-size: 19px; box-shadow: 0 5px 0 var(--ink);
}
.home .btn-big:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }

.code-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; text-align: center; transform: rotate(.6deg); }
.code-q { font-size: 17px; font-weight: 800; }
.home .btn-join { background: var(--paper); }

@media (min-width: 900px) {
  body.home { background-image: url('/assets/bg/stage-tv.webp'); background-position: center; }
  .home .ptop { padding-left: 16vw; padding-right: 16vw; }
  .home-main { max-width: 900px; padding-top: 10px; gap: 30px; }
  .hello-bubble h1 { font-size: 52px; }
  .hello-sub { font-size: 22px; }
  .crew-av { width: 84px; height: 84px; }
  .game-card { grid-template-columns: 170px minmax(0, 1fr); padding: 22px 26px; }
  .game-title { font-size: 32px; }
  .game-desc { font-size: 18px; }
  .btn-play { max-width: 340px; }
  .code-card { flex-direction: row; justify-content: center; align-items: center; gap: 18px; max-width: 620px; justify-self: center; }
  .btn-join { min-width: 220px; }
}
@media (min-width: 1500px) { .home-main, .home .ptop { zoom: 1.35; } }
