/* RC10 launch surfaces. New integration styles stay under the p- namespace. */
.p-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
  grid-template-areas: "copy widget" "invites invites";
  align-items: center;
  gap: 1rem clamp(1rem, 3vw, 2.2rem);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.2rem) 0 1.1rem;
}
.p-home-copy { grid-area: copy; min-width: 0; }
.p-home-kicker { margin: 0 0 .45rem; color: var(--teal); font-size: .9rem; font-weight: 800; letter-spacing: .045em; }
.p-home-copy h1 { max-width: 13ch; margin: 0 0 .65rem; font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1.06; letter-spacing: -.055em; }
.p-home-lead { max-width: 36ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.5; }
.p-home-widget-wrap { grid-area: widget; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.p-home-widget-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .85rem .15rem; }
.p-home-widget-heading h2 { margin: 0; font-size: 1rem; line-height: 1.2; }
.p-play-time { display: inline-flex; min-height: 28px; align-items: center; padding: .18rem .55rem; border-radius: 999px; background: var(--soft); color: var(--teal); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.p-home-widget { display: block; width: 100%; max-width: 100%; height: 390px; border: 0; }
.p-home-invitations { grid-area: invites; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.p-home-invitation { display: grid; grid-template-columns: minmax(125px, 180px) minmax(0, 1fr); min-width: 0; min-height: 112px; max-height: 200px; align-items: center; gap: .8rem; overflow: hidden; padding: .65rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.p-home-invitation:hover { border-color: var(--teal); transform: translateY(-1px); }
.p-home-invitation:focus-visible,.p-play-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.p-home-invitation img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 11px; background: var(--soft); }
.p-home-invitation-copy { display: grid; gap: .3rem; min-width: 0; align-content: center; }
.p-home-invitation strong { font-size: clamp(.95rem, 1.5vw, 1.12rem); line-height: 1.2; }
.p-home-invitation small { display: block; overflow: hidden; color: var(--muted); font-size: .8rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.p-home-invitation-cta { display: inline-flex; min-height: 28px; align-items: center; gap: .3rem; color: var(--teal); font-size: .8rem; font-weight: 800; }
.p-play-hub { width: min(100% - 32px, 1020px); margin: 0 auto; padding: clamp(1.2rem, 4vw, 3rem) 0 3.5rem; }
.p-play-hub-intro { max-width: 660px; margin: 0 0 1.5rem; }
.p-play-hub-intro h1 { margin: 0 0 .5rem; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.p-play-hub-intro p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.p-play-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 1rem; }
.p-play-card { display: grid; grid-template-columns: minmax(100px, 38%) minmax(0, 1fr); min-width: 0; align-items: center; gap: .15rem; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.p-play-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.p-play-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 11px; background: var(--soft); }
.p-play-card-copy { display: flex; min-width: 0; flex-direction: column; gap: .35rem; padding: .8rem; }
.p-play-card-copy strong { font-size: 1.08rem; line-height: 1.2; }
.p-play-card-copy span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.p-play-card-badge { align-self: flex-start; margin-top: .15rem; padding: .2rem .6rem; border-radius: 999px; background: var(--soft); color: var(--teal) !important; font-size: .78rem !important; font-weight: 820; white-space: nowrap; }
.p-next-play,.p-play-cta { margin: 1.4rem 0 .5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.p-next-play h2,.p-play-cta h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.p-next-play ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.p-next-play a,.p-play-cta a { display: inline-flex; min-height: 44px; align-items: center; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 12px; color: var(--teal); font-weight: 760; text-underline-offset: 3px; }
.p-play-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.p-play-cta h2 { margin-bottom: .25rem; }
.p-play-cta p { margin: 0; color: var(--muted); }
.p-completion-frame { position: absolute; width: 0; height: 0; border: 0; opacity: 0; pointer-events: none; }

body.p-home-widget .site-head { display: none; }
body.p-home-widget .eyebrow { display: none; }
body.p-home-widget #intro { display: none; }
body.p-home-widget h1 { margin: .05rem 0 .35rem; font-size: 1rem; line-height: 1.25; }
body.p-home-widget .app-shell { width: calc(100% - 14px); padding: 0 0 8px; }
body.p-home-widget .timer-card { padding: .55rem; border-radius: 16px; }
body.p-home-widget .challenge-button { min-height: 44px; }
body.p-home-widget .best-toggle,body.p-home-widget .latency-note { display: none !important; }
body.p-home-widget .timing-panel { margin: .05rem 0 .35rem; padding: .15rem .2rem 0; }
body.p-home-widget .result-dial { width: min(100%, 170px); }
body.p-home-widget .dial-caption { min-height: 1em; margin: -.12rem 0 .25rem; font-size: .78rem; }
body.p-home-widget .main-button,body.p-home-widget .replay-button { min-height: 50px; }
body.p-home-widget .attempt-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); border: 0; }
body.p-home-widget .result-panel { margin-top: .4rem; padding: .6rem; }

@media (max-width: 780px) {
  .p-home-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "widget" "invites"; gap: .75rem; padding: .8rem 0 1.1rem; }
  .p-home-copy h1 { max-width: 18ch; margin-bottom: .35rem; font-size: clamp(2rem, 8vw, 2.8rem); }
  .p-home-lead { font-size: 1rem; }
  .p-home-widget-heading { padding: .5rem .7rem .1rem; }
  .p-home-widget { height: 380px; }
  .p-home-invitations { gap: .55rem; }
  .p-home-invitation { grid-template-columns: minmax(0, 1fr); align-content: start; gap: .45rem; min-height: 0; padding: .5rem; }
  .p-home-invitation img { max-width: 180px; aspect-ratio: 16 / 9; }
  .p-home-invitation strong { font-size: 1rem; }
  .p-home-invitation small { font-size: .78rem; }
  .p-play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .p-home-invitations { grid-template-columns: minmax(0, 1fr); }
  .p-home-invitation { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-content: center; min-height: 112px; max-height: none; gap: .55rem; }
  .p-home-invitation img { max-width: none; height: auto; }
  .p-home-invitation-copy { gap: .25rem; }
  .p-home-invitation small { overflow: visible; text-overflow: clip; white-space: normal; }
  .p-play-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .p-home-widget { height: 370px; }
  .p-home-invitation { font-size: .95rem; }
  .p-play-card { grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); }
  .p-play-card-copy { padding: .75rem; }
  .p-play-card-copy strong { font-size: 1.08rem; }
  .p-play-card-copy span { font-size: .88rem; }
  .p-play-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 359px) {
  .p-home-invitations { grid-template-columns: minmax(0, 1fr); }
  .p-home-invitation { grid-template-columns: minmax(72px, 40%) minmax(0, 1fr); gap: .55rem; }
  .p-home-invitation img { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .p-home-invitation:hover,.p-play-card:hover { transform: none; }
}
