/* PiXiEED home — play a little, then make something of your own. */
.home-play main { background: var(--pixieed-bg, #f7f8f6); }

/* ---- a playground with controls beside the drawing surface ---- */
.hp-hero { padding: 1.8rem 0 0; }
.hp-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.hp-kicker { flex: 0 0 100%; margin: 0; color: var(--pixieed-accent, #e75445); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.home-play .hp-intro h1 { margin: 0; color: var(--pixieed-ink, #1b2025); font-size: clamp(1.75rem, 3.2vw, 2.7rem); font-weight: 900; line-height: 1.3; letter-spacing: .02em; }
.hp-intro-copy { margin: 0; color: var(--pixieed-muted, #5f6972); font-size: .9rem; }
.hp-play-shell { position: relative; border: 1px solid #25313c; border-radius: 1.4rem; background: #0f1822; box-shadow: 0 16px 44px rgba(20,32,44,.12); }
.hp-stage { position: relative; height: clamp(25rem, 48svh, 35rem); overflow: hidden; border-radius: 1.35rem 1.35rem 0 0; background: #0f1822; isolation: isolate; }
.hp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; touch-action: pan-y; cursor: crosshair; }
.hp-stage.is-drawing-mode canvas { touch-action: none; }
.hp-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.25)); z-index: 1; }
.hp-demo-badge { position: absolute; top: .9rem; left: 1rem; z-index: 2; color: #a6b4c2; font-size: .75rem; letter-spacing: .05em; pointer-events: none; }
.hp-hero-copy { position: absolute; bottom: .8rem; left: 0; right: 0; z-index: 2; display: grid; justify-items: center; padding: 0 .75rem; text-align: center; pointer-events: none; }
.hp-hint { margin: 0; padding: .5rem .8rem; border-radius: 999px; background: rgba(255,255,255,.08); color: #d8e0e7; font-size: .75rem; transition: opacity .3s; }
.hp-hint.is-used { opacity: 0; }
.hp-controls { position: relative; z-index: 5; padding: .55rem .7rem; border-top: 1px solid #25313c; }
.hp-tools { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.hp-control { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: .45rem; min-width: 44px; min-height: 44px; padding: 0 .8rem; border: 1px solid #394551; border-radius: .7rem; background: #1c2732; color: #edf1f4; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
.hp-control svg { flex: none; width: 20px; height: 20px; }
.hp-control[aria-pressed="true"], .hp-control[aria-expanded="true"] { border-color: #ffd35a; color: #ffd35a; background: #303028; }
.hp-control:hover { border-color: #8997a5; }
.hp-control:disabled { opacity: .38; cursor: default; }
.hp-undo { padding: 0; width: 44px; }
.hp-current-color { width: 20px; height: 20px; border: 2px solid #fff6; border-radius: .35rem; background: var(--c, #e75445); }
.hp-palette-chevron { font-size: 16px; }
.hp-control[aria-expanded="true"] .hp-palette-chevron { rotate: 180deg; }
.hp-wave { opacity: 0; }
.hp-control[aria-pressed="true"] .hp-wave { opacity: 1; }
.hp-tools :is(button,a):focus-visible, .hp-palette button:focus-visible { outline: 3px solid #ffd35a; outline-offset: 2px; }
.hp-palette { position: absolute; right: .7rem; bottom: calc(100% + .4rem); width: min(24rem, calc(100% - 1.4rem)); box-sizing: border-box; padding: .9rem; border: 1px solid #586879; border-radius: 1rem; background: #17232f; color: #edf1f4; box-shadow: 0 16px 40px #0005; }
.hp-palette[hidden] { display: none; }
.hp-palette p { margin: 0 0 .55rem; font-size: 12px; color: #bfccd8; }
.hp-colors { display: grid; grid-template-columns: repeat(7, 44px); gap: .2rem; justify-content: center; }
.hp-colors button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: .7rem; background: transparent; cursor: pointer; }
.hp-colors button::before { content: ""; display: block; width: 28px; height: 28px; border: 2px solid #ffffff47; border-radius: .45rem; background: var(--c); box-sizing: border-box; }
.hp-colors button[aria-checked="true"] { background: #ffffff21; border-color: #ffffff52; }
.hp-colors button[aria-checked="true"]::before { border-color: #fff; }
.hp-palette-clear { display: block; min-height: 44px; margin: .65rem auto 0; padding: 0 .7rem; border: 0; background: transparent; color: #c8d3de; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hp-hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding: .65rem 0; }
.hp-hero-foot p { margin: 0; color: var(--pixieed-muted); font-size: 12px; }
.hp-clear-dialog { max-width: min(24rem, calc(100% - 3rem)); padding: 1.5rem; border: 1px solid var(--pixieed-line); border-radius: 1.2rem; background: var(--pixieed-surface,#fff); color: var(--pixieed-ink); }
.hp-clear-dialog::backdrop { background: #0f182299; }
.home-play .hp-clear-dialog h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.hp-clear-dialog p { margin: 0 0 1rem; color: var(--pixieed-muted); font-size: .9rem; line-height: 1.6; }
.hp-clear-dialog > div { display: flex; justify-content: flex-end; gap: .5rem; }
.hp-clear-dialog button { min-height: 44px; padding: 0 1rem; border: 1px solid var(--pixieed-line); border-radius: .7rem; background: var(--pixieed-bg); color: var(--pixieed-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.hp-clear-dialog #hpClearConfirm { border-color: var(--pixieed-accent); background: var(--pixieed-accent); color: #fff; }
.hp-clear-dialog button:focus-visible { outline: 3px solid var(--pixieed-accent); outline-offset: 3px; }
.hp-gyro-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* These are previews of the real tools, with large linked surfaces. */
.hp-creation-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.hp-toy.hp-entry-card { display: grid; grid-template-columns: 7rem minmax(0,1fr); align-items: center; gap: 1rem; min-width: 0; padding: .85rem; border: 1px solid var(--pixieed-line); border-radius: 1rem; background: var(--pixieed-surface); color: var(--pixieed-ink); opacity: 1; transform: none; }
.hp-entry-card > canvas, .hp-entry-card .hp-view { width: 7rem; height: 7rem; aspect-ratio: 1; margin: 0; border-radius: .65rem; background: var(--tone); image-rendering: pixelated; }
.hp-entry-card .hp-view canvas { width: 100% !important; height: 100% !important; }
.hp-entry-content { display: grid; gap: .35rem; min-width: 0; }
.hp-entry-product { color: var(--pixieed-muted); font-size: 12px; }
.hp-entry-action { font-size: 1.05rem; font-weight: 900; }
.hp-entry-card .hp-toy-line { padding: 0; font-size: 12px; line-height: 1.5; }
.hp-entry-cta { color: var(--pixieed-accent); font-size: 14px; font-weight: 800; }
.hp-entry-card:focus-visible { outline: 3px solid var(--pixieed-accent); outline-offset: 3px; }
.hp-discovery-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin-bottom: 1rem; }
.hp-discovery-heading h3 { margin: 0; font-size: 1.35rem; font-weight: 900; }
.hp-discovery-heading > span { color: var(--pixieed-muted); font-size: 12px; }
@media (max-width: 720px) {
  .hp-hero { padding-top: 1.1rem; }
  .hp-intro { gap: .2rem; margin-bottom: .7rem; }
  .home-play .hp-intro h1 { font-size: clamp(1.4rem, 7vw, 1.75rem); }
  .hp-intro-copy { flex: 0 0 100%; font-size: 12px; }
  .hp-stage { height: clamp(13rem, min(48svh, calc(100svh - 20rem)), 27rem); border-radius: 1rem 1rem 0 0; }
  .hp-play-shell { border-radius: 1.05rem; }
  .hp-controls { padding: .5rem .35rem; }
  .hp-tools { gap: .25rem; }
  .hp-control { padding: 0 .5rem; gap: .35rem; }
  .hp-action { flex-direction: column; gap: .15rem; padding: .25rem 0; width: 44px; font-size: 12px; }
  .hp-action svg { width: 18px; height: 18px; }
  .hp-undo { padding: 0; }
  .hp-colors { grid-template-columns: repeat(4,44px); }
  .hp-hero-foot { justify-content: flex-start; padding-top: .6rem; gap: .2rem; }
  .hp-hero-foot p { flex: 0 0 100%; line-height: 1.6; }
  .hp-creation-links { grid-template-columns: minmax(0,1fr); gap: .65rem; margin-bottom: 2rem; }
  .hp-toy.hp-entry-card { grid-template-columns: 6rem minmax(0,1fr); padding: .65rem; gap: .75rem; }
  .hp-entry-card > canvas, .hp-entry-card .hp-view { width: 6rem; height: 6rem; }
  .hp-entry-action { font-size: .95rem; }
  .hp-entry-cta { font-size: 12px; }
}
@media (max-width: 360px) {
  .hp-controls { padding-inline: .25rem; }
  .hp-tools { gap: .15rem; }
  .hp-control { padding-inline: .35rem; }
  .hp-action, .hp-undo { padding-inline: 0; }
  .hp-palette-chevron { display: none; }
  .hp-toy.hp-entry-card { grid-template-columns: 4.5rem minmax(0,1fr); }
  .hp-entry-card > canvas, .hp-entry-card .hp-view { width: 4.5rem; height: 4.5rem; }
}

/* ---- toys ---- */
.hp-section { padding: 3rem 0 1rem; }
.home-play .hp-heading { margin: 0 0 1.1rem; font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 900; letter-spacing: .02em; }
.hp-toys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (min-width: 720px) { .hp-toys { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } }
.hp-toy { position: relative; display: grid; gap: .15rem; padding: .55rem .55rem .8rem; border-radius: 1.2rem; background: var(--pixieed-surface, #fff); color: var(--pixieed-ink, #1b2025); text-decoration: none; box-shadow: 0 1px 0 var(--pixieed-line), 0 12px 30px rgba(27,32,37,.06); transition: transform .25s var(--pixieed-ease), box-shadow .25s; outline-offset: 3px;
  opacity: 0; transform: translateY(14px); }
.hp-toy.is-in { opacity: 1; transform: none; transition: opacity .5s var(--pixieed-ease), transform .5s var(--pixieed-ease), box-shadow .25s; }
.hp-toy:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--pixieed-line), 0 18px 40px rgba(27,32,37,.12); }
.hp-view { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-bottom: .45rem; background: var(--tone); overflow: hidden; }
.hp-view canvas { display: block; flex: none; image-rendering: pixelated; touch-action: manipulation; }
.home-play .hp-toy-name { margin: 0; padding: 0 .3rem; font-size: .92rem; font-weight: 900; line-height: 1.25; }
.hp-toy-line { margin: 0; padding: 0 .3rem; color: var(--pixieed-muted); font-size: .76rem; font-weight: 600; }
.hp-chip { position: static; justify-self: end; align-self: end; margin: .3rem .3rem 0 0; padding: .22rem .55rem; border-radius: 999px; background: #ffd35a; color: #15171b; font-size: .66rem; font-weight: 900; letter-spacing: .04em; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.hp-chip.is-open { background: #fff; color: var(--pixieed-accent, #e75445); }
.hp-chip.is-open::after { content: " →"; }
@media (prefers-reduced-motion: reduce) { .hp-tools button, .hp-tools button::before { transition: none !important; animation: none !important; } .hp-hint { animation: none; } .hp-toy { opacity: 1; transform: none; } }
html[data-pixieed-motion="reduced"] .hp-toy { opacity: 1; transform: none; transition: none; animation: none; }

/* Home-only discovery gallery: two large destinations, three quick plays, one output tool. */
body[data-page="home"] .hp-section { padding: 2rem 0 1.5rem; }
body[data-page="home"] .hp-heading { margin-bottom: .25rem; }
body[data-page="home"] .hp-section-lede { margin: 0 0 1.1rem; color: var(--pixieed-muted, #5f6972); font-size: .82rem; }
body[data-page="home"] .hp-activity-grid { display: grid; gap: .9rem; }
body[data-page="home"] .hp-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
body[data-page="home"] .hp-toy.hp-feature-card { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(38%, 1fr); grid-template-rows: auto 1fr auto; align-items: center; gap: .35rem .9rem; min-width: 0; min-height: 15rem; padding: 1rem; overflow: hidden; border: 1px solid var(--pixieed-line, #e2e5e7); border-radius: 1.25rem; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--tone) 12%, #fff)); }
body[data-page="home"] .hp-feature-card .hp-view { grid-column: 2; grid-row: 1 / -1; width: 100%; height: 100%; min-height: 12.5rem; aspect-ratio: auto; margin: 0; border-radius: .95rem; }
body[data-page="home"] .hp-feature-card .hp-view canvas { max-width: 100%; max-height: 100%; }
body[data-page="home"] .hp-feature-card .hp-toy-name { grid-column: 1; align-self: end; padding: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); }
body[data-page="home"] .hp-feature-card .hp-toy-line { grid-column: 1; align-self: start; padding: 0; color: var(--pixieed-ink, #1b2025); font-size: .84rem; line-height: 1.5; }
body[data-page="home"] .hp-feature-card .hp-chip { grid-column: 1; justify-self: start; margin: .25rem 0 0; }
body[data-page="home"] .hp-compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
body[data-page="home"] .hp-toy.hp-compact-card { box-sizing: border-box; min-width: 0; padding: .45rem .5rem .55rem; border: 1px solid var(--pixieed-line, #e2e5e7); border-radius: 1rem; }
body[data-page="home"] .hp-activity-grid .hp-toy > canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--tone); image-rendering: pixelated; }
body[data-page="home"] .hp-feature-card > canvas { grid-column: 2; grid-row: 1 / -1; align-self: stretch; width: 100%; height: 100%; min-height: 12.5rem; }
body[data-page="home"] .hp-compact-card .hp-view { margin-bottom: .3rem; border-radius: .75rem; }
body[data-page="home"] .hp-compact-card .hp-toy-name { padding: 0 .15rem; font-size: .85rem; }
body[data-page="home"] .hp-compact-card .hp-toy-line { padding: 0 .15rem; font-size: 12px; line-height: 1.4; }
body[data-page="home"] .hp-compact-card .hp-chip { margin: .25rem .15rem 0 0; }
body[data-page="home"] .hp-output-card { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: .9rem; min-width: 0; padding: .8rem 1rem; border: 1px solid #d9e6dc; border-radius: 1rem; background: linear-gradient(110deg, #f2f7f1, #fff 70%); color: var(--pixieed-ink, #1b2025); text-decoration: none; box-shadow: 0 1px 0 var(--pixieed-line, #e2e5e7); }
body[data-page="home"] .hp-output-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27,32,37,.1); }
body[data-page="home"] .hp-output-card:focus-visible { outline: 3px solid var(--pixieed-accent, #e75445); outline-offset: 3px; }
body[data-page="home"] .hp-output-visual { position: relative; display: grid; width: 4rem; height: 3.6rem; place-items: center; border: 1px solid #d9e6dc; border-radius: .8rem; background: #fff; }
body[data-page="home"] .hp-output-visual img { width: 2rem; height: 2rem; image-rendering: pixelated; opacity: .82; }
body[data-page="home"] .hp-output-visual > span { position: absolute; right: .25rem; bottom: .05rem; display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border: 2px solid #f2f7f1; border-radius: .5rem; background: #e6f0e5; color: #347457; font-size: 1rem; font-weight: 900; }
body[data-page="home"] .hp-output-copy { display: grid; gap: .12rem; min-width: 0; }
body[data-page="home"] .hp-output-copy strong { font-size: .95rem; }
body[data-page="home"] .hp-output-copy > span { color: #347457; font-size: .82rem; font-weight: 800; }
body[data-page="home"] .hp-output-copy small { color: var(--pixieed-muted, #5f6972); font-size: .7rem; }
body[data-page="home"] .hp-output-cta { color: #347457; font-size: .78rem; font-weight: 900; white-space: nowrap; }
body[data-page="home"] .hp-output-cta span { font-size: 1rem; }
/* Keep every real destination visible when JS or ad scripts are unavailable. */
body[data-page="home"] .hp-toy { opacity: 1; transform: none; }
.hp-score { position: absolute; top: 1rem; right: 1rem; z-index: 3; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 211, 90, .95); color: #15171b; font: 900 .95rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px rgba(0,0,0,.35); pointer-events: none; }
.hp-score[hidden] { display: none; }
.hp-score.is-pop { animation: hp-pop .35s var(--pixieed-ease); }
@keyframes hp-pop { 40% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .hp-score.is-pop { animation: none; } }

body[data-page="home"] .hp-go { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; padding: 1rem 0 1.25rem; color: var(--pixieed-muted, #5f6972); font-size: .76rem; }
body[data-page="home"] .hp-discovery-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--pixieed-ink, #1b2025); font-size: .82rem; font-weight: 900; text-decoration: none; text-underline-offset: 3px; }
body[data-page="home"] .hp-discovery-link:hover { text-decoration: underline; }
body[data-page="home"] .hp-discovery-link:focus-visible { outline: 3px solid var(--pixieed-accent, #e75445); outline-offset: 2px; }
body[data-page="home"] .hp-discovery-link span { color: var(--pixieed-accent, #e75445); font-size: 1rem; }
body[data-page="home"] .hp-discovery-copy { color: var(--pixieed-muted, #5f6972); font-size: .72rem; }
@media (max-width: 720px) {
  body[data-page="home"] .hp-section { padding-top: 1.4rem; }
  body[data-page="home"] .hp-feature-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  body[data-page="home"] .hp-toy.hp-feature-card { min-height: 11rem; grid-template-columns: minmax(0, 1fr) minmax(38%, 1fr); gap: .25rem .7rem; padding: .7rem; border-radius: 1rem; }
  body[data-page="home"] .hp-feature-card .hp-view { min-height: 9rem; border-radius: .75rem; }
  body[data-page="home"] .hp-feature-card > canvas { min-height: 9rem; }
  body[data-page="home"] .hp-feature-card .hp-toy-name { font-size: 1rem; }
  body[data-page="home"] .hp-feature-card .hp-toy-line { font-size: .76rem; }
  body[data-page="home"] .hp-compact-grid { grid-template-columns: minmax(0,1fr); gap: .45rem; }
  body[data-page="home"] .hp-toy.hp-compact-card { display: grid; grid-template-columns: 5.5rem minmax(0,1fr); grid-template-rows: auto auto 1fr; column-gap: .8rem; padding: .6rem; border-radius: .8rem; }
  body[data-page="home"] .hp-compact-card .hp-view { grid-column: 1; grid-row: 1 / -1; width: 5.5rem; height: 5.5rem; margin: 0; }
  body[data-page="home"] .hp-compact-card > canvas { grid-column: 1; grid-row: 1 / -1; width: 5.5rem; height: 5.5rem; }
  body[data-page="home"] .hp-compact-card :is(.hp-toy-name,.hp-toy-line,.hp-chip) { grid-column: 2; }
  body[data-page="home"] .hp-compact-card .hp-view { margin-bottom: .22rem; border-radius: .6rem; }
  body[data-page="home"] .hp-compact-card .hp-toy-name { padding: 0 .08rem; font-size: 14px; }
  body[data-page="home"] .hp-compact-card .hp-toy-line { padding: 0 .08rem; font-size: 12px; }
  body[data-page="home"] .hp-compact-card .hp-chip { margin: .2rem .08rem 0 0; padding: .17rem .4rem; font-size: 12px; }
  body[data-page="home"] .hp-output-card { grid-template-columns: 3.5rem minmax(0, 1fr); gap: .55rem; padding: .65rem; }
  body[data-page="home"] .hp-output-visual { width: 3.2rem; height: 3rem; }
  body[data-page="home"] .hp-output-copy strong { font-size: .86rem; }
  body[data-page="home"] .hp-output-copy > span { font-size: .75rem; }
  body[data-page="home"] .hp-output-copy small { font-size: .65rem; }
  body[data-page="home"] .hp-output-cta { grid-column: 2; justify-self: start; font-size: .7rem; }
}
@media (max-width: 360px) {
  body[data-page="home"] .hp-compact-card .hp-toy-name { font-size: 14px; }
  body[data-page="home"] .hp-compact-card .hp-toy-line { font-size: 12px; }
  body[data-page="home"] .hp-compact-card .hp-chip { font-size: 12px; }
  body[data-page="home"] .hp-output-copy small { max-width: 21ch; }
}
.hp-invite:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hp-stage canvas:focus-visible { outline: 3px solid #ffd35a; outline-offset: -3px; }

/* ---- a nudge toward the tool that matches the play ---- */
.hp-invite { position: absolute; top: 3.25rem; left: 1rem; z-index: 4; display: flex; align-items: center; gap: .6rem; max-width: calc(100% - 7rem); min-height: 44px; box-sizing: border-box; padding: .4rem .9rem .4rem .4rem; border-radius: 1rem; background: #fff; color: #15171b; font-size: .88rem; font-weight: 900; line-height: 1.3; text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,.25), 0 14px 34px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(-120%); transition: opacity .35s, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.hp-invite.is-in { opacity: 1; transform: none; }
.hp-invite[hidden] { display: none; }
.hp-invite-icon { position: static !important; flex: none; width: 2.6rem !important; height: 2.6rem !important; padding: .3rem; box-sizing: border-box; border-radius: .6rem; background: #fff1c9; image-rendering: pixelated; }
.hp-invite-go { flex: none; color: var(--pixieed-accent, #e75445); animation: hp-nudge 1s ease-in-out infinite; }
@keyframes hp-nudge { 50% { transform: translateX(3px); } }

/* ---- "もうすぐ": smaller, after the ones that open ---- */
.home-play .hp-subheading { margin: 1.8rem 0 .7rem; color: var(--pixieed-muted); font-size: .9rem; font-weight: 900; letter-spacing: .08em; }
.hp-toys--soon { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 720px) { .hp-toys--soon { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; } }
.hp-toys--soon .hp-toy { padding: .4rem .4rem .6rem; border-radius: 1rem; }
.hp-toys--soon .hp-view { margin-bottom: .3rem; border-radius: 0; }
.home-play .hp-toys--soon .hp-toy-name { font-size: .78rem; }
.hp-toys--soon .hp-toy-line { display: none; }
.hp-toys--soon .hp-chip { font-size: 12px; padding: .16rem .42rem; }
.hp-toy.is-called { animation: hp-called 1.2s var(--pixieed-ease) 2; }
@keyframes hp-called { 30% { box-shadow: 0 0 0 4px #ffd35a, 0 18px 40px rgba(27,32,37,.18); transform: translateY(-4px); } }

/* ---- works that people posted, drifting by ---- */
.hp-feed { margin-top: 1rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hp-feed[hidden] { display: none; }
.hp-feed-track { display: flex; gap: .7rem; width: max-content; animation: hp-drift calc(var(--n, 8) * 3.5s) linear infinite; }
.hp-feed:hover .hp-feed-track, .hp-feed:focus-within .hp-feed-track, .hp-feed:active .hp-feed-track { animation-play-state: paused; }
.hp-feed-item { flex: none; display: block; width: 6.5rem; aspect-ratio: 1; border-radius: .8rem; overflow: hidden; background: #0f1822; box-shadow: 0 1px 0 var(--pixieed-line), 0 10px 24px rgba(27,32,37,.1); transition: transform .2s var(--pixieed-ease); }
.hp-feed-item:hover { transform: translateY(-3px) rotate(-1.5deg); }
.hp-feed-item img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
@keyframes hp-drift { to { transform: translateX(calc(-50% - .35rem)); } }
@media (prefers-reduced-motion: reduce) { .hp-feed-track { animation: none; } .hp-feed { overflow-x: auto; } .hp-invite, .hp-invite-go, .hp-toy.is-called { animation: none; transition: none; } }

html[data-pixieed-motion="reduced"] .hp-tools button,
html[data-pixieed-motion="reduced"] .hp-tools button::before { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) { .hp-control, .hp-hint, .hp-toy, .hp-invite { transition: none !important; animation: none !important; } }
html[data-pixieed-motion="reduced"] :is(.hp-control,.hp-hint) { transition: none; animation: none; }

@media (max-height: 520px) { .hp-stage { height: clamp(10rem, 42svh, 16rem); } }
