/* 首页：游戏 → 爸爸的信 → 你也做一个。只作用于 #scene-envelope.home */
body:has(#scene-envelope:not(.hidden)){background:#eaf0f7}
body:has(#scene-envelope:not(.hidden)) .ribbon,
body:has(#scene-envelope:not(.hidden)) .grain{display:none}
#scene-envelope.home{display:block;max-width:1080px;margin:0 auto}
.home h1,.home h2{font-family:var(--ui);font-weight:800;letter-spacing:.5px;margin:0}
.home p{line-height:1.8}
.home section,.home .hero,.home .letter-sec,.home .make-sec{scroll-margin-top:84px}

/* 1. 游戏：夜空底，三块各有自己的颜色 */
.home .hero{background:#14233b;color:#f5f8fc;border-radius:22px;padding:clamp(26px,5vw,52px);
  background-image:radial-gradient(#ffffff22 1px,transparent 1.5px);background-size:34px 34px}
.home .hero h1{font-size:clamp(32px,6vw,58px);line-height:1.2}
.home .hero-sub{margin:14px 0 28px;color:#b9c6da;font-size:clamp(15px,2vw,18px)}
.home .games-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.home .game-tile{display:flex;flex-direction:column;text-decoration:none;color:#fff;border-radius:16px;padding:18px;
  border:0;box-shadow:none;min-height:300px;transition:transform .15s}
.home .game-tile:hover{transform:translateY(-4px)}
.home .game-tile:focus-visible,.home .big-btn:focus-visible,.home .ghost-btn:focus-visible,.home .thumbs button:focus-visible{outline:3px solid #f4c24f;outline-offset:3px}
.home .gt-red{background:#d9363e}
.home .gt-green{background:#1d6b50}
.home .gt-gold{background:#f4c24f;color:#2a2210}
.home .gt-stage{display:flex;justify-content:space-around;align-items:flex-end;height:104px;margin-bottom:14px;
  background:#0000002b;border-radius:12px;padding:0 10px 10px;font-style:normal}
.home .gt-gold .gt-stage{background:#00000018}
.home .gt-stage i{font-style:normal;font-size:38px;line-height:1;animation:hop 1.5s ease-in-out infinite}
.home .gt-stage i:nth-child(2){animation-delay:.25s;font-size:46px}
.home .gt-stage i:nth-child(3){animation-delay:.5s}
@keyframes hop{50%{transform:translateY(-9px)}}
.home .game-tile b{font-family:var(--ui);font-size:22px;font-weight:800;color:inherit;letter-spacing:.5px;margin:0 0 6px}
.home .game-tile small{font-size:14.5px;line-height:1.7;color:inherit;opacity:.92;min-height:0;flex:1}
.home .game-tile em{align-self:flex-start;margin-top:14px;font-style:normal;font-weight:700;font-size:16px;
  background:#fff;color:#14233b;border-radius:999px;padding:9px 24px}

/* 2. 爸爸的信：浅色纸面，作为样例 */
.home .letter-sec{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(20px,4vw,48px);align-items:center;padding:clamp(34px,6vw,64px) clamp(4px,2vw,20px)}
.home .sec-text h2{font-size:clamp(24px,3.6vw,34px);line-height:1.3;margin-bottom:14px}
.home .sec-text p{margin:0 0 10px;color:#3b4658;max-width:34em}
.home .open-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.home .thumbs{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.home .thumbs button{padding:0;border:1px solid #cfd9e6;border-radius:12px;overflow:hidden;background:#fff;cursor:pointer;text-align:left}
.home .thumbs button:nth-child(odd){transform:rotate(-1.2deg)}
.home .thumbs button:nth-child(even){transform:rotate(1deg)}
.home .thumbs button:hover{transform:rotate(0) translateY(-3px);border-color:#d9363e}
.home .thumbs img{width:100%;height:150px;object-fit:cover}
.home .thumbs span{padding:8px 12px;font-size:13px;color:#3b4658}

/* 3. 你也做一个：红色整块，三步是真正的顺序 */
.home .make-sec{background:#d9363e;color:#fff;border-radius:22px;padding:clamp(28px,5vw,52px)}
.home .make-sec h2{font-size:clamp(26px,4.4vw,42px);line-height:1.25}
.home .make-sub{margin:12px 0 26px;font-size:clamp(15px,2vw,18px);max-width:34em}
.home .steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;counter-reset:s}
.home .steps li{counter-increment:s;background:#00000022;border-radius:14px;padding:16px 18px}
.home .steps li::before{content:counter(s);display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;color:#d9363e;font-weight:800;margin-bottom:8px}
.home .steps b{display:block;font-size:18px;margin-bottom:4px}
.home .steps span{font-size:14.5px;line-height:1.7;opacity:.95}
.home .make-sec .big-btn{background:#fff;color:#b3262e;box-shadow:none;font-weight:800;font-size:18px}
.home .make-sec .ghost-btn{background:transparent;color:#fff;border-color:#ffffff99}
.home .make-sec .ghost-btn:hover{background:#ffffff22;border-color:#fff}
.home .letter-sec .big-btn{background:#14233b;box-shadow:none}

@media(max-width:820px){
  .home .games-grid,.home .steps{grid-template-columns:1fr}
  .home .game-tile{min-height:0}
  .home .letter-sec{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.home .gt-stage i{animation:none}.home .game-tile,.home .thumbs button{transition:none}}
