/* Minecraft Pixel Art Maker (Claude Main, 13 Oct 2026): the Structure Viewer family (drifting grid floor, dark stage,
   purple accent) and the same centred cards with pill buttons as the Structure Viewer / My Skyblock downloads. */
.pa-page { margin: 0; color: #e4e4e7; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.pa, .pa *, .pa-scrim, .pa-scrim * { box-sizing: border-box; }
.pa svg, .pa-scrim svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa { width: min(1320px, 100%); margin: 0 auto; padding: 0 16px 80px; }
.pa [hidden] { display: none !important; }

/* ---------- buttons ---------- */
.pa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.04); color: #fff; font: 700 14px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, transform .15s; }
.pa-btn:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.pa-btn:active { transform: scale(.98); }
.pa-btn.go { border-color: #fff; background: #fff; color: #0b0b10; box-shadow: 0 12px 30px -14px rgba(255,255,255,.5); }

/* ---------- start: the drifting grid floor behind a see-through drop card ---------- */
.pa-start { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; gap: 30px; min-height: calc(100dvh - 64px); margin: 0 -16px; padding: 48px 16px 64px; overflow: hidden; perspective: 700px; background: radial-gradient(90% 70% at 50% 30%, #151a29 0%, #0b0c12 72%); }
.pa-floor { position: absolute; z-index: -1; left: -120%; right: -120%; top: -300%; bottom: -10%;
  background-image: linear-gradient(rgba(199,219,255,.42) 2px, transparent 2px), linear-gradient(90deg, rgba(199,219,255,.42) 2px, transparent 2px),
    linear-gradient(rgba(199,219,255,.14) 2px, transparent 2px), linear-gradient(90deg, rgba(199,219,255,.14) 2px, transparent 2px);
  background-size: 256px 256px, 256px 256px, 32px 32px, 32px 32px; transform: rotateX(74deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 92%); mask-image: linear-gradient(to bottom, transparent 55%, #000 92%); animation: paDrift 18s linear infinite; }
@keyframes paDrift { to { background-position: 0 256px, 0 256px, 0 32px, 0 32px; } }
.pa-start::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(45% 35% at 50% 45%, rgba(139,92,246,.14), transparent 70%); }
.pa-hero { display: grid; justify-items: center; gap: 12px; text-align: center; }
.pa-kick { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid rgba(167,139,250,.35); border-radius: 999px; background: rgba(167,139,250,.08); color: #c4b5fd; font: 700 11.5px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.pa-kick i { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 10px #a78bfa; }
.pa-hero h1 { margin: 0; color: #fff; font: 900 clamp(2.4rem, 6vw, 3.6rem)/1.02 Outfit, Inter, sans-serif; letter-spacing: -.02em; }
.pa-hero p { max-width: 520px; margin: 0; color: #a1a1aa; font-size: 16px; line-height: 1.55; }
.pa-drop { display: grid; justify-items: center; gap: 12px; width: min(520px, 100%); padding: 34px 26px 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 26px; background: linear-gradient(180deg, rgba(22,23,32,.86), rgba(6,6,10,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px -20px rgba(0,0,0,.8); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.pa-drop:hover { border-color: rgba(167,139,250,.4); }
.pa-drop.drag { border-color: rgba(167,139,250,.7); background: rgba(139,92,246,.12); transform: scale(1.01); }
.pa-dropic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(167,139,250,.1); box-shadow: inset 0 0 0 1px rgba(167,139,250,.3); color: #c4b5fd; }
.pa-dropic svg { width: 28px; height: 28px; stroke-width: 1.8; }
.pa-drop > b { color: #fff; font: 800 21px Outfit, Inter, sans-serif; }
.pa-drop > p { max-width: 380px; margin: 0; color: #a1a1aa; font-size: 14px; line-height: 1.55; }
.pa-drop > p strong { color: #e4e4e7; }
.pa-drop .pa-btn { margin-top: 6px; }
.pa-drop small { color: #71717a; font-size: 12px; }

/* ---------- the maker ---------- */
.pa-app { padding-top: 22px; animation: paIn .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes paIn { from { opacity: 0; transform: translateY(8px); } }
.pa-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pa-title { display: grid; gap: 3px; min-width: 0; }
.pa-title b { overflow: hidden; color: #fff; font: 800 24px Outfit, Inter, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.pa-title span { color: #8a8d9b; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pa-topacts { display: flex; gap: 8px; flex: none; }
.pa-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }

/* stage: the picture on the Structure Viewer's dark backdrop with a faint block grid */
.pa-stage { position: relative; display: grid; place-items: center; min-height: 520px; height: calc(100dvh - 200px); max-height: 860px; padding: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 22px;
  background: linear-gradient(rgba(199,219,255,.05) 1px, transparent 1px) 0 0/24px 24px, linear-gradient(90deg, rgba(199,219,255,.05) 1px, transparent 1px) 0 0/24px 24px, radial-gradient(120% 90% at 50% 0%, #161a26 0%, #0a0b10 55%, #06060a 100%); }
.pa-stage canvas { display: block; max-width: 100%; max-height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); animation: paIn .6s ease both; }
.pa-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(6,6,10,.6); color: #e4e4e7; font: 700 14px Inter, system-ui, sans-serif; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .35s; }
.pa-busy.off { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.pa-tip { position: absolute; z-index: 3; margin: 0; padding: 6px 11px; border-radius: 9px; background: rgba(10,10,15,.92); box-shadow: 0 10px 24px rgba(0,0,0,.5); color: #fff; font: 700 12.5px Inter, sans-serif; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.pa-zoom { position: absolute; left: 50%; bottom: 14px; display: flex; gap: 2px; padding: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(10,10,15,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateX(-50%); }
.pa-zoom button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: #a1a1aa; font: 700 12.5px Inter, sans-serif; cursor: pointer; }
.pa-zoom button[aria-pressed="true"] { background: #fff; color: #0b0b10; }

/* side panel: open sections with hairlines */
.pa-side { display: grid; gap: 0; padding: 4px 4px 0; }
.pa-sec { padding: 18px 2px; border-top: 1px solid rgba(255,255,255,.07); }
.pa-sec:first-child { border-top: 0; padding-top: 4px; }
.pa-sec h2 { margin: 0 0 12px; color: #8a8d9b; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pa-sech { display: flex; align-items: baseline; justify-content: space-between; }
.pa-sech span { color: #71717a; font-size: 12px; font-weight: 600; }
.pa-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pa-size { display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 8px 4px 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.03); color: #e4e4e7; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.pa-size:hover { border-color: rgba(255,255,255,.22); }
.pa-size[aria-pressed="true"] { border-color: rgba(167,139,250,.7); background: rgba(167,139,250,.1); box-shadow: 0 8px 22px -12px rgba(139,92,246,.9); }
.pa-sprev { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 9px; background: rgba(0,0,0,.25); overflow: hidden; }
.pa-sprev canvas { max-width: 86%; max-height: 86%; image-rendering: pixelated; }
.pa-sload { position: absolute; width: 18px; height: 18px; border: 2px solid rgba(167,139,250,.25); border-top-color: #a78bfa; border-radius: 50%; animation: paSpin .7s linear infinite; }
@keyframes paSpin { to { transform: rotate(360deg); } }
.pa-size b { font: 800 15px Outfit, Inter, sans-serif; }
.pa-size small { max-width: 100%; overflow: hidden; color: #71717a; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.pa-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pa-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.03); color: #d4d4d8; font: 700 13.5px Inter, sans-serif; cursor: pointer; transition: background .2s, border-color .2s; }
.pa-seg button[aria-pressed="true"] { border-color: #fff; background: #fff; color: #0b0b10; }
.pa-hint { margin: 10px 2px 0; color: #8a8d9b; font-size: 12.5px; line-height: 1.5; }
.pa-sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; cursor: pointer; }
.pa-sw + .pa-sw { margin-top: 6px; }
.pa-sw > span { display: grid; gap: 3px; }
.pa-sw b { color: #fff; font-size: 14.5px; }
.pa-sw small { color: #8a8d9b; font-size: 12.5px; line-height: 1.45; }
.pa-sw input { position: absolute; opacity: 0; pointer-events: none; }
.pa-sw i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.12); transition: background .25s; }
.pa-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.pa-sw input:checked + i { background: #8b5cf6; }
.pa-sw input:checked + i::after { transform: translateX(18px); }
.pa-sw input:focus-visible + i { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.pa-mats { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pa-mats li { display: flex; align-items: center; gap: 11px; padding: 6px 4px; }
.pa-mats img { width: 30px; height: 30px; flex: none; image-rendering: pixelated; }
.pa-mats span { display: grid; flex: 1; gap: 1px; min-width: 0; }
.pa-mats b { overflow: hidden; color: #f4f4f5; font-size: 13.5px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.pa-mats small { color: #71717a; font-size: 11.5px; }
.pa-mats em { color: #fff; font: 800 15px Outfit, Inter, sans-serif; font-style: normal; font-variant-numeric: tabular-nums; }
.pa-mats .pa-more { justify-content: center; color: #8a8d9b; font-size: 12.5px; }
.pa-link { margin-top: 8px; padding: 4px 0; border: 0; background: none; color: #c4b5fd; font: 700 13px Inter, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- How it picks the blocks ---------- */
.pa-how { width: min(860px, 100%); margin: 70px auto 0; }
.pa-how h2 { margin: 0 0 20px; color: #fff; font: 800 24px Outfit, Inter, sans-serif; text-align: center; }
.pa-how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: s; }
.pa-how li { display: grid; justify-items: center; gap: 6px; text-align: center; }
.pa-how li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 4px; border-radius: 50%; background: rgba(167,139,250,.14); color: #ddd6fe; font: 800 13px Inter, sans-serif; }
.pa-how li b { color: #f4f4f5; font-size: 15px; }
.pa-how li span { color: #a1a1aa; font-size: 13.5px; line-height: 1.55; }
.pa-faq { border-top: 1px solid rgba(255,255,255,.07); }
.pa-faq:last-of-type { border-bottom: 1px solid rgba(255,255,255,.07); }
.pa-faq summary { position: relative; padding: 15px 30px 15px 2px; color: #e4e4e7; font-size: 14.5px; font-weight: 650; list-style: none; cursor: pointer; }
.pa-faq summary::-webkit-details-marker { display: none; }
.pa-faq summary::after { content: ""; position: absolute; right: 8px; top: 20px; width: 7px; height: 7px; border-right: 2px solid #71717a; border-bottom: 2px solid #71717a; transform: rotate(45deg); transition: transform .2s; }
.pa-faq[open] summary::after { transform: rotate(-135deg); top: 23px; }
.pa-faq p { margin: 0 0 16px; color: #a1a1aa; font-size: 14px; line-height: 1.6; }

/* ---------- export cards (the same look as the Structure Viewer / My Skyblock download windows) ---------- */
.pa-scrim { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 16px; background: rgba(3,3,6,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.pa-scrim[hidden] { display: none; }
.pa-scrim.on { opacity: 1; }
.pa-card { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 30px 24px 24px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: #0d0d13; box-shadow: 0 30px 80px rgba(0,0,0,.6); color: #e4e4e7; font-family: Inter, system-ui, sans-serif; transform: translateY(10px) scale(.98); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.pa-scrim.on .pa-card { transform: none; }
.pa-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.05); color: #a1a1aa; cursor: pointer; }
.pa-x:hover { background: rgba(255,255,255,.1); color: #fff; }
.pa-cbody { display: grid; justify-items: center; gap: 9px; text-align: center; }
.pa-cbody > b { color: #fff; font: 800 20px/1.25 Outfit, Inter, sans-serif; overflow-wrap: anywhere; }
.pa-cbody > p { margin: 0; color: #a1a1aa; font-size: 14px; line-height: 1.5; }
.pa-cic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 4px; border-radius: 50%; background: rgba(167,139,250,.1); box-shadow: inset 0 0 0 1px rgba(167,139,250,.3); color: #c4b5fd; }
.pa-cic svg { width: 24px; height: 24px; stroke-width: 2.2; }
.pa-cic.ok { background: rgba(34,197,94,.12); box-shadow: inset 0 0 0 1px rgba(34,197,94,.45), 0 0 26px -6px rgba(34,197,94,.5); color: #4ade80; }
.pa-cic.ok svg { stroke-width: 2.6; }
.pa-pick { display: grid; gap: 10px; width: 100%; margin-top: 14px; }
.pa-pick button, .pa-pick a { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.04); color: #fff; font: 700 15px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.pa-pick button:hover, .pa-pick a:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.pa-pick button:active, .pa-pick a:active { transform: scale(.98); }
.pa-pick .go { border-color: #fff; background: #fff; color: #0b0b10; }
.pa-pick svg { width: 19px; height: 19px; stroke-width: 2.2; }
.pa-pick small { color: #8a8d9b; font-size: 12.5px; line-height: 1.45; }
.pa-new { padding: 2px 8px; border-radius: 999px; background: rgba(0,255,157,.14); color: #00ff9d; font: 800 9.5px "JetBrains Mono", ui-monospace, monospace; font-style: normal; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 0 12px -2px rgba(0,255,157,.5); }
/* the Nexus head loader, as on Background Remover */
.nx-load { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 4px; }
.nx-load::before, .nx-load::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; border-radius: 50%; }
.nx-load::before { border-top-color: #22d3ee; border-right-color: rgba(34,211,238,.25); animation: paSpin 1.1s linear infinite; box-shadow: 0 0 24px rgba(34,211,238,.18); }
.nx-load::after { inset: 10px; border-bottom-color: #a78bfa; border-left-color: rgba(167,139,250,.25); animation: paSpin 1.7s linear infinite reverse; }
.nx-load img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(139,92,246,.6)); animation: paPulse 1.6s ease-in-out infinite; }
@keyframes paPulse { 50% { transform: scale(.92); } }

.pa-toast { position: fixed; left: 50%; bottom: 26px; z-index: 2147483000; max-width: calc(100% - 32px); margin: 0; padding: 11px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #111118; color: #f4f4f5; font: 600 14px Inter, sans-serif; box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; transform: translate(-50%, 12px); transition: opacity .3s, transform .3s; pointer-events: none; }
.pa-toast.on { opacity: 1; transform: translate(-50%, 0); }
.pa-toast.bad { border-color: rgba(239,68,68,.5); color: #fecaca; }

/* ---------- phones and small screens ---------- */
@media (max-width: 980px) {
  .pa-body { grid-template-columns: minmax(0, 1fr); }
  .pa-stage { height: auto; min-height: 0; aspect-ratio: 1; max-height: 70dvh; padding: 18px; }
}
@media (max-width: 640px) {
  .pa-start { min-height: calc(100dvh - 64px); gap: 24px; padding-top: 32px; }
  .pa-drop { padding: 28px 20px 24px; }
  .pa-top { flex-direction: column; align-items: stretch; gap: 12px; }
  .pa-title { text-align: center; }
  .pa-title b { font-size: 21px; }
  .pa-topacts { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .pa-topacts .pa-btn { padding: 0 10px; height: 46px; font-size: 13px; }
  .pa-topacts .pa-btn svg { display: none; }
  .pa-stage { border-radius: 18px; }
  .pa-sizes { gap: 6px; }
  .pa-size { padding: 6px 3px 7px; border-radius: 12px; }
  .pa-size small { font-size: 9px; }
  .pa-seg button span { font-size: 12.5px; }
  .pa-how ol { grid-template-columns: 1fr; }
  .pa-scrim { place-items: end center; padding: 0; }
  .pa-card { width: 100%; border: 0; border-radius: 24px 24px 0 0; padding: 30px 18px calc(24px + env(safe-area-inset-bottom)); transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) { .pa *, .pa-scrim * { animation: none !important; transition: none !important; } }
