html { --dune-h: 0px; }
.pg-plugins .sec { padding: clamp(84px, 11vh, 140px) 0; }

.phero { padding: 150px 0 24px; }
.phero .copy { margin: 0 auto; text-align: center; }
.phero h1 { max-width: 14em; font-size: clamp(2.5rem, 6.2vw, 4.6rem); margin-left: auto; margin-right: auto; }
.phero .lede { max-width: 58ch; margin-left: auto; margin-right: auto; }
.phero .cta { justify-content: center; }

.pile { position: relative; height: 560px; max-width: 1080px; margin: 48px auto 0; }
.pcard { position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z); display: block; padding: 8px 8px 5px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); transform: rotate(var(--r)); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .06); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.pcard img, .pcard video { display: block; width: 100%; border-radius: 5px; background: var(--term-bg); }
.pcard video { aspect-ratio: 4 / 3; object-fit: cover; }
.pcard span { display: block; padding: 7px 2px 3px; font: 12px var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard:hover { transform: rotate(0) translateY(-6px); z-index: 20; box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .06); }
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } }

.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.way h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.way .lede { margin: 0 0 22px; font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: none; }
.way .cap-punch { margin-top: 16px; }
.way .cap-punch .btn { margin: 0; }

.mock-modal { font-family: var(--font-app); background: var(--app-panel-bg); color: var(--app-text-hi); border: 1px solid var(--app-toast-border); border-radius: 12px; box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .35); overflow: hidden; }
.mm-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.mm-title { font-size: 17px; font-weight: 600; }
.mm-sub { color: var(--app-subtle); font-size: 13px; }
.mm-x { margin-left: auto; color: var(--app-subtle); font-size: 16px; }
.mm-tabs { display: flex; gap: 4px; padding: 6px 12px 0; border-bottom: 1px solid var(--app-toast-border); }
.mm-tab { padding: 6px 10px 8px; font-size: 13px; color: var(--app-subtle); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mm-tab.is-selected { color: var(--app-text-hi); border-color: var(--app-caret); }
.mm-code { margin: 0; padding: 14px 16px 16px; font: 12.5px/1.6 var(--font-mono); color: var(--app-text-hi); background: var(--app-input-bg); overflow: auto; tab-size: 2; }
.mm-code code { font: inherit; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; }
.mm-code .k { color: var(--app-caret); }
.mm-code .s { color: var(--accent); }
.mm-code .c { color: var(--app-muted); }
.mm-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px; font-size: 12.5px; color: var(--app-subtle); border-top: 1px solid var(--app-toast-border); }
.mm-btn { margin-left: auto; padding: 5px 12px; border-radius: 6px; background: var(--app-primary); color: var(--app-primary-fg); font-weight: 700; font-size: 12.5px; }

.groups { display: grid; gap: 46px; max-width: 980px; margin: 0 auto; }
.group h3 { margin: 0 0 16px; font: 500 14px var(--font-mono); color: var(--muted); }
.groups .ptiles { gap: 18px 28px; }
.themes-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; align-content: start; }
.theme { display: flex; align-items: center; gap: 10px; min-width: 0; appearance: none; border: 0; background: none; padding: 7px 10px; margin: 0; border-radius: 8px; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: background .15s; }
.theme:hover, .theme:focus-visible { background: var(--panel); outline: none; }
.theme[aria-pressed="true"] { background: var(--panel); box-shadow: inset 0 0 0 1px var(--border); }
.theme-preview { min-width: 0; }
#theme-app, #theme-app * { transition: background-color .3s, color .3s, border-color .3s; }
.tp-note { margin: 10px 0 0; font: 12px var(--font-mono); color: var(--muted); }
.theme .tn { min-width: 0; }
.theme b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.theme small { display: block; font-size: 12px; color: var(--muted); }
.sw { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.sw i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.sw i:nth-child(1) { background: var(--a); }
.sw i:nth-child(2) { background: var(--b); }
.sw i:nth-child(3) { background: var(--c); }
.sw i:nth-child(4) { background: var(--d); }
.sw i:nth-child(5) { background: var(--e); }
.themes-more { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.sec-links.center { justify-content: center; }
.sec-head .lede a { border-bottom: 1px solid var(--border); }
.sec-head .lede a:hover { border-color: var(--ink); }

.sdk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
.sdk-tile { display: block; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel); color: inherit; transition: border-color .2s; }
.sdk-tile video, .sdk-tile img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--term-bg); }
.sdk-tile b { display: block; padding: 9px 12px 0; font-size: 14px; font-weight: 600; }
.sdk-tile span { display: block; padding: 2px 12px 10px; font-size: 12.5px; color: var(--muted); }
.sdk-tile:hover { border-color: var(--ink); }

.pcta .cta { justify-content: center; }

@media (max-width: 960px) {
  .pile { height: auto; display: flex; gap: 18px; overflow-x: auto; padding: 18px 28px 26px; margin: 24px -28px 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pile::-webkit-scrollbar { display: none; }
  .pcard { position: static; flex: 0 0 250px; width: auto; transform: rotate(calc(var(--r) * .5)); scroll-snap-align: center; }
  .ways { grid-template-columns: minmax(0, 1fr); gap: 60px; }
  .themes-wrap { grid-template-columns: 1fr; }
  .theme-preview { order: -1; }
}
@media (max-width: 760px) {
  .pile { margin: 24px -20px 0; padding: 18px 20px 26px; }
  .phero { padding-top: 120px; }
  .sdk-grid { grid-template-columns: 1fr 1fr; }
  .groups .ptiles { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
}
@media (max-width: 480px) {
  .sdk-grid { grid-template-columns: 1fr; }
  .groups .ptiles { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .mm-code { font-size: 11px; padding: 12px; } }

.hero-fan { --cw: clamp(140px, 16vw, 212px); position: relative; display: flex; justify-content: center; align-items: flex-start; max-width: 1240px; height: calc(var(--cw) * .625 + 130px); margin: 40px auto 0; padding-top: 48px; }
.fan-card { flex: 0 0 var(--cw); width: var(--cw); aspect-ratio: 16 / 10; margin-left: calc(var(--cw) * -.5); position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--term-bg); border: 1px solid var(--border); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .06); transform-origin: center bottom; transform: translateY(var(--ty, 0)) rotate(var(--r, 0deg)); transition: transform .45s cubic-bezier(.25, .46, .45, .94), box-shadow .3s; }
.fan-card:first-child { margin-left: 0; }
.fan-card img, .fan-card video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fan-card:hover, .fan-card:focus-visible { z-index: 10; box-shadow: 0 28px 60px -20px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .06); outline: none; }
.hero-fan.dealing .fan-card { transform: translateX(var(--dx, 0px)) translateY(36px) rotate(0deg) scale(.9); opacity: 0; transition: none; animation: fan-show 0s 2s forwards; }
.hero-fan.dealt .fan-card { transition: transform .85s cubic-bezier(.2, .75, .25, 1) calc(var(--i, 0) * 70ms), opacity .45s ease calc(var(--i, 0) * 70ms), box-shadow .3s; }
@keyframes fan-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fan-card { transition: none; } .hero-fan.dealing .fan-card { animation: none; opacity: 1; transform: translateY(var(--ty, 0)) rotate(var(--r, 0deg)); } }

.ptiles.kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 28px; }
.kinds-note { margin: 40px auto 0; max-width: 46ch; text-align: center; }

.small-start { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; max-width: 980px; margin: 0 auto 48px; }
.small-start h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.small-start p { margin: 0 0 10px; color: var(--muted); }
.small-start p b { color: var(--ink); font-weight: 600; }
.small-start .ss-more a { border-bottom: 1px solid var(--border); }
.small-start .ss-more a:hover { border-color: var(--ink); }

@media (max-width: 960px) {
  .ptiles.kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .small-start { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .hero-fan { height: auto; max-width: none; display: flex; justify-content: flex-start; gap: 16px; overflow-x: auto; margin: 24px -20px 0; padding: 22px 20px 30px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hero-fan::-webkit-scrollbar { display: none; }
  .fan-card, .fan-card:first-child { flex: 0 0 250px; width: 250px; margin: 0; transform: rotate(calc(var(--r, 0deg) * .2)); scroll-snap-align: center; }
  .hero-fan.dealing .fan-card { transform: rotate(calc(var(--r, 0deg) * .2)); opacity: 1; animation: none; }
}
@media (max-width: 480px) { .ptiles.kinds { grid-template-columns: minmax(0, 1fr); } }

.pg-plugins .tailor { padding-bottom: 0; }
.tailor .sec-head { margin-bottom: 0; }
.tailor h2 { max-width: 16ch; }
.pg-plugins .tailor { padding-top: clamp(64px, 9vh, 112px); }
.stance { max-width: 36rem; margin: 0 auto; }
.stance p { margin: 0 0 18px; font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.62; color: var(--ink); }
.stance p:last-child { margin-bottom: 0; }

.small-start .ss-more a + a { margin-left: 14px; }
.small-start .ss-more { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.small-start .ss-more a { white-space: nowrap; }
.small-start .ss-more a + a { margin-left: 0; }
.sdk-clip { margin: 0; min-width: 0; }
.sdk-clip video { display: block; width: 100%; aspect-ratio: 638 / 360; border: 1px solid var(--border); border-radius: 10px; background: var(--term-bg); }
.sdk-clip figcaption { margin-top: 10px; font: 12px/1.5 var(--font-mono); color: var(--muted); }

.examples { max-width: 980px; margin: 80px auto 0; }
.ex-head { margin: 0 0 20px; text-align: center; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ex-tile { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ex-tile b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.ex-tile span { margin: 6px 0 16px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.ex-tile video { display: block; width: 100%; margin-top: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; border: 1px solid var(--border); border-radius: 8px; background: var(--term-bg); }
.ex-tile:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .35); }
.ex-more { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.ex-more a { border-bottom: 1px solid var(--border); }
.ex-more a:hover { color: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .ex-tile { transition: none; } .ex-tile:hover { transform: none; } }

.alpha { max-width: 980px; margin: 0 auto; }
.alpha-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.acard { display: flex; flex-direction: column; min-width: 0; height: 124px; margin: 0; padding: 14px 16px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); transition: opacity .25s ease, transform .25s ease; }
.acard b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.acard p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.acard small { display: flex; align-items: center; gap: 8px; margin-top: auto; font: 11.5px var(--font-mono); color: var(--muted); }
.acard .sw i { width: 10px; height: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); }
[data-theme="crt"] .acard, [data-theme="phosphor"] .acard { height: 144px; }
.acard.out { opacity: 0; transform: translateY(6px); }
.alpha-foot { display: flex; justify-content: flex-end; min-height: 26px; margin-top: 8px; }
.alpha-pause { appearance: none; border: 0; background: none; margin: 0; padding: 3px 4px; font: 12px var(--font-mono); color: var(--muted); cursor: pointer; }
.alpha-pause:hover, .alpha-pause:focus-visible { color: var(--ink); }
.alpha ~ .kinds-note { margin-top: 28px; }

@media (max-width: 960px) {
  .alpha-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex-grid { gap: 18px; }
}
@media (max-width: 760px) {
  .alpha-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .acard:nth-child(n+9) { display: none; }
  .acard { padding: 12px 13px 11px; }
  .ex-grid { grid-template-columns: minmax(0, 1fr); }
  .ex-tile { padding: 16px; }
  .examples { margin-top: 64px; }
}
@media (max-width: 480px) {
  .alpha-grid { grid-template-columns: minmax(0, 1fr); }
  .acard:nth-child(n+6) { display: none; }
  .acard, [data-theme="crt"] .acard, [data-theme="phosphor"] .acard { height: 104px; }
}

.wall { max-width: 980px; margin: 0 auto; border-radius: 14px; }
.wall-view { display: flex; align-items: flex-start; gap: 14px; height: 540px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.wall.run .wall-view { -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.wall-col { flex: 1 1 0; min-width: 0; list-style: none; margin: 0; padding: 0; }
.wall.run .wall-col { animation: wall-up 80s linear infinite; will-change: transform; }
.wall.run:not(.live) .wall-col { animation-play-state: paused; }
@keyframes wall-up { to { transform: translateY(-50%); } }
.wi { margin: 0 0 14px; padding: 14px 16px 15px; border-radius: 12px; background: var(--panel); }
.wi b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.wi .sw i { width: 10px; height: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); }
.wi p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.wi small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font: 11.5px/1.3 var(--font-mono); color: var(--ink); }
.wall-note { margin: 14px 0 0; text-align: center; font: 12px var(--font-mono); color: var(--muted); }
.wall ~ .kinds-note { margin-top: 32px; max-width: 62ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 960px) {
  .wall-col:nth-child(n+4) { display: none; }
}
@media (max-width: 760px) {
  .wall-col:nth-child(n+3) { display: none; }
  .wall-view { height: 480px; gap: 10px; }
  .wi { margin-bottom: 10px; padding: 12px 13px 13px; }
  .wi b { font-size: 14px; }
  .wi p { font-size: 12.5px; }
  .wi small { font-size: 11px; }
}

.ss-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.ss-flip .ss-copy { order: 2; }
.add-start { margin-top: 96px; margin-bottom: 0; }
.ask-start { margin-bottom: 72px; }
.small-start code { font-size: .86em; }
.mm-body { display: flex; flex-direction: column; gap: 7px; padding: 10px 16px 18px; }
.mm-label { font-size: 13px; font-weight: 600; }
.mm-input { display: flex; justify-content: flex-end; align-items: center; padding: 8px 10px; border: 1px solid var(--app-toast-border); border-radius: 6px; background: var(--app-input-bg);
  font: 13px/1.4 var(--font-app); color: var(--app-text-hi); white-space: nowrap; overflow: hidden; }
.mm-input span { flex: 0 0 auto; }
.mm-caret { flex: 0 0 auto; width: 1.5px; height: 1.15em; margin-left: 1px; background: var(--app-caret); }
.mm-help { font-size: 12.5px; line-height: 1.45; color: var(--app-subtle); }
.mm-install .mm-foot { justify-content: flex-end; }
.mm-install .mm-btn { margin-left: 0; }
.mm-btn.mm-quiet { background: none; color: var(--app-text-hi); font-weight: 500; }
@media (max-width: 960px) {
  .ss-flip { grid-template-columns: minmax(0, 1fr); }
  .ss-flip .ss-copy { order: 0; }
  .add-start { margin-top: 72px; }
}

#make .sec-head { margin-bottom: 104px; }
#make .small-start { max-width: 1040px; gap: 80px; margin-bottom: 160px; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
#make .small-start.ss-flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
#make .small-start.sdk-start { margin-bottom: 0; }
#make .small-start h3 { margin-bottom: 16px; font-size: clamp(1.5rem, 2.3vw, 1.85rem); letter-spacing: -.02em; line-height: 1.15; }
#make .small-start p { max-width: 42ch; line-height: 1.62; }
#make .small-start p + p { margin-top: 14px; }
#make .small-start .ss-more { margin-top: 22px; }
#make .examples { margin-top: 176px; }
@media (max-width: 960px) {
  #make .sec-head { margin-bottom: 64px; }
  #make .small-start, #make .small-start.ss-flip { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 104px; }
  #make .small-start p { max-width: 60ch; }
  #make .examples { margin-top: 112px; }
}
#make .sec-head .cta { justify-content: center; margin-top: 30px; }
