/* PicoChest root Welcome (/) — Root Top plan B (Human-approved 2026-10-18). Loaded only by /, after styles.css and
   home.css: it reuses the Game Center Hero (hm-hero, Hero A) and adds the rt- rules here, so Home and every other
   page stay unchanged. Above: the Hero with the two language entrances. Below: a short "inside the chest" strip. */
.rt-main { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.rt-name { margin: 0; }

/* the Hero copy: one Japanese headline with its English line, then two equal language entrances */
.rt-hero h1 .rt-h1-en { display: block; margin-top: .3rem; font-size: .5em; font-weight: 750; line-height: 1.35; letter-spacing: 0; color: #5a4636; }
.rt-lede { max-width: 30rem; margin: .6rem 0 0; color: #5a4636; font-size: clamp(.95rem, 2.1vw, 1.05rem); line-height: 1.55; }
.rt-lede span { display: block; }
.rt-languages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 26rem; margin-top: 1rem; }
.rt-lang { min-height: 3.25rem; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; background: var(--hm-coral); color: #fff; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none; box-shadow: 0 6px 16px rgba(196, 71, 58, .25); }
.rt-lang:hover { background: var(--hm-coral-dark); }
.rt-lang:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* narrow phones (320–360): one entrance per row, so neither label breaks mid-word */
@media (max-width: 23.4rem) { .rt-languages { grid-template-columns: 1fr; } }
@media (min-width: 62rem) {
  .rt-hero h1 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
  .rt-lede { text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
}

/* inside the chest: what PicoChest holds, three short bilingual items (not links: the language entrances lead on) */
.rt-inside { margin-top: clamp(1.5rem, 4vw, 2.25rem); }
.rt-inside h2 { margin: 0 0 .8rem; font-size: clamp(1.2rem, 3.4vw, 1.45rem); letter-spacing: -.02em; color: #3a2a1f; }
.rt-inside h2 span + span { margin-left: .2rem; color: var(--muted); font-size: .7em; font-weight: 700; letter-spacing: 0; }
.rt-inside-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.rt-item { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: start; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--hm-shadow); }
.rt-item-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .75rem; background: var(--hm-peach); color: #6b4a2e; }
.rt-item-icon svg { width: 1.4rem; height: 1.4rem; }
.rt-item-tools { background: var(--soft); color: var(--accent-dark); }
.rt-item-free { background: #fff1c9; color: #8a5a10; }
.rt-item h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; color: #3a2a1f; }
.rt-item h3 span + span { margin-left: .15rem; color: var(--muted); font-size: .85em; font-weight: 700; }
.rt-item p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.rt-item p span { display: block; }
/* Japanese lines break between phrases where the browser can (never 「な／ど」) */
.rt-lede [lang="ja"], .rt-item [lang="ja"] { word-break: auto-phrase; }
@media (min-width: 46rem) { .rt-inside-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
