@font-face { font-family: Manrope; src: url("/fonts/manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
:root {
  font-family: "Instrument Sans", Arial, sans-serif;
  color: #111014;
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button,
.button {
  border: 2px solid #111014;
  border-radius: 10px;
  padding: 11px 17px;
  background: white;
  color: #111014;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  box-shadow: 2px 2px 0 #111014;
  transform: translateY(-1px);
}
button:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #f3f5ff;
  color: #4b4d58;
  border-color: #858791;
}
button.primary,
.button.primary {
  background: #2b59ff;
  color: white;
  box-shadow: 3px 3px 0 #111014;
}
button.volt {
  background: #c8ff1f;
  box-shadow: 3px 3px 0 #111014;
}
button.small {
  padding: 7px 11px;
  font-size: 13px;
}
button.danger {
  color: #a71148;
}
a {
  color: #234bd9;
}
h1,
h2,
h3,
.brand {
  font-family: "Lilita One", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.05;
}
h1 {
  font-size: 48px;
  margin: 12px 0;
}
h2 {
  font-size: 28px;
  margin: 0 0 16px;
}
h3 {
  font-size: 22px;
  margin: 0 0 12px;
}
p {
  line-height: 1.5;
}
.muted {
  color: #565868;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 700;
  text-transform: uppercase;
}
.topbar {
  height: 80px;
  border-bottom: 2px solid #111014;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 16px;
}
.brand {
  font-size: 32px;
  letter-spacing: -1px;
  color: #2b59ff;
}
.brand span {
  color: #111014;
}
.pill {
  display: inline-block;
  border: 1px solid #111014;
  border-radius: 6px;
  padding: 5px 9px;
  background: #c8ff1f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.pink {
  background: #ff2d87;
  color: #111014;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 80px);
}
aside {
  padding: 28px 20px;
  border-right: 1px solid #dce0ee;
  background: #fafbff;
}
aside label {
  font-size: 12px;
  color: #565868;
}
aside select {
  margin: 10px 0 24px;
  width: 100%;
}
nav {
  display: grid;
  gap: 9px;
}
nav button {
  text-align: left;
  border-color: transparent;
  background: transparent;
  font-weight: 600;
}
nav button.active {
  background: #2b59ff;
  color: white;
  border-color: #111014;
  box-shadow: 3px 3px 0 #111014;
}
.aside-note {
  margin-top: 36px;
  font-size: 13px;
  color: #565868;
  line-height: 1.6;
}
main {
  padding: 36px;
  max-width: 1600px;
  width: 100%;
  min-width: 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.heading p {
  margin: 8px 0;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  padding: 24px;
  border: 1px solid #dce0ee;
  border-radius: 18px;
  background: #fff;
  margin-bottom: 20px;
}
.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: 24px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.stat {
  border: 2px solid #111014;
  border-radius: 16px;
  padding: 22px;
  background: #f3f5ff;
}
.stat strong {
  display: block;
  font-family: "Lilita One";
  font-size: 34px;
  margin-top: 12px;
}
.stat:first-child {
  background: #c8ff1f;
}
.banner {
  background: #f3f5ff;
  border-left: 5px solid #2b59ff;
  border-radius: 8px;
  padding: 16px 20px;
  line-height: 1.6;
}
.check {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e6e8ef;
}
.pass {
  color: #19603c;
}
.pending {
  color: #9e234e;
}
.field {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  display: block;
  margin-top: 7px;
  width: 100%;
}
input,
textarea,
select {
  min-height: 42px;
  border: 1px solid #a2a6b5;
  border-radius: 8px;
  background: white;
  padding: 9px;
  color: #111014;
  min-width: 0;
}
input[type="color"] {
  padding: 4px;
  width: 100%;
  height: 44px;
}
input[type="checkbox"] {
  min-height: auto;
  width: auto;
  display: inline;
  margin: 0 8px 0 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field.wide {
  grid-column: 1/-1;
}
.product-editor {
  border: 1px solid #dce0ee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.product-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.product-title h3 {
  margin: 0;
}
.store-preview {
  --game-bg: #ffffff;
  --game-surface: #fff;
  --game-primary: #2b59ff;
  --game-accent: #c8ff1f;
  --game-text: #111014;
  --game-button: #fff;
  --game-radius: 16px;
  --game-font: "Lilita One";
  background-color: var(--game-bg);
  background-image: var(--game-gradient, none);
  font-family: var(--game-font), sans-serif;
  color: var(--game-text);
  padding: 25px;
  border: 2px solid #111014;
  border-radius: 20px;
  overflow: hidden;
}
.store-preview h2,
.store-preview h3 {
  font-family: var(--game-font), sans-serif;
}
.store-preview h2 {
  font-size: 34px;
}
.preview-label {
  color: #565868;
  font-size: 12px;
  margin-bottom: 10px;
}
.pack {
  background: var(--game-surface);
  border: 2px solid var(--game-text);
  border-radius: var(--game-radius);
  padding: 18px;
  margin: 16px 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.pack h3 {
  font-size: 22px;
  margin-bottom: 7px;
}
.pack p {
  margin: 3px 0;
  font-size: 14px;
}
.pack button {
  background: var(--game-primary);
  color: var(--game-button);
  grid-column: 1/-1;
  border-radius: var(--game-radius);
}
.pack button:disabled {
  background: var(--game-surface);
  color: var(--game-text);
  border-style: dashed;
}
.pack .badge {
  display: inline-block;
  background: var(--game-accent);
  color: var(--game-button);
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 11px;
  margin-bottom: 6px;
  font-weight: 700;
}
.coin {
  height: 60px;
  width: 60px;
  background: #f5c642;
  border: 4px solid #8b5712;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #75420a;
  font-size: 30px;
  box-shadow: 3px 3px 0 #8b5712;
  font-family: Georgia;
}
.preview-pair {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 24px;
  align-items: start;
}
.phone {
  border: 7px solid #111014;
  border-radius: 35px;
  padding: 18px 12px;
  max-width: 320px;
  margin: auto;
}
.phone .pack {
  grid-template-columns: 1fr;
  text-align: center;
}
.phone .coin {
  margin: auto;
}
.phone h2 {
  font-size: 27px;
}
.phone .pack h3 {
  font-size: 20px;
}
.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #dce0ee;
}
.login {
  max-width: 480px;
  margin: 8vh auto;
  padding: 28px;
}
.login h1 {
  font-size: 44px;
}
.login .panel {
  border: 2px solid #111014;
  box-shadow: 6px 6px 0 #c8ff1f;
}
.public {
  max-width: 740px;
  margin: 30px auto;
  padding: 20px;
}
.receipt {
  background: #c8ff1f;
  border: 2px solid #111014;
  padding: 22px;
  border-radius: 12px;
  overflow-wrap: anywhere;
  margin: 20px 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid #e5e7ef;
  vertical-align: top;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
#notice:empty {
  display: none;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #111014;
  color: white;
  padding: 16px 22px;
  border-radius: 12px;
  max-width: calc(100% - 30px);
  z-index: 9;
  box-shadow: 4px 4px 0 #ff2d87;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
footer {
  margin-top: 18px;
  font-size: 12px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ff2d87;
  outline-offset: 3px;
}
@media (max-width: 1050px) {
  .split {
    grid-template-columns: 1fr;
  }
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  main {
    padding: 24px;
  }
  .preview-pair {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .topbar {
    padding: 0 16px;
    height: 68px;
  }
  .brand {
    font-size: 28px;
  }
  .topbar .muted {
    display: none;
  }
  .shell {
    display: block;
  }
  aside {
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid #dce0ee;
  }
  aside label,
  .aside-note {
    display: none;
  }
  aside select {
    margin: 0 0 12px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 6px;
    gap: 6px;
  }
  nav button {
    white-space: nowrap;
    font-size: 13px;
    padding: 9px 12px;
  }
  main {
    padding: 24px 16px;
  }
  .heading {
    display: block;
    margin-bottom: 24px;
  }
  .heading .actions {
    margin-top: 18px;
  }
  h1 {
    font-size: 38px;
  }
  .stat-grid {
    gap: 8px;
  }
  .stat {
    padding: 13px 10px;
    font-size: 12px;
  }
  .stat strong {
    font-size: 26px;
  }
  .panel {
    padding: 18px;
  }
  .split,
  .preview-pair {
    grid-template-columns: 1fr;
  }
  .fields {
    gap: 0 10px;
  }
  .product-editor {
    padding: 14px;
  }
  .product-title {
    align-items: start;
  }
  .version-row {
    align-items: start;
    flex-direction: column;
  }
  .store-preview {
    padding: 18px;
  }
  .login {
    margin: 3vh auto;
    padding: 20px;
  }
  .public {
    margin: 0 auto;
    padding: 16px;
  }
  .phone {
    width: 280px;
  }
  .pack {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .coin {
    width: 50px;
    height: 50px;
  }
  .actions button,
  .actions .button {
    font-size: 14px;
  }
}

@media (max-width: 650px) {
  .topbar { height: auto; min-height: 68px; flex-wrap: wrap; padding: 14px 16px; }
}

.coin-art { width: 100%; max-width: 150px; margin: auto; filter: drop-shadow(0 8px 12px #050a3c55); }
.coin-art svg { display: block; width: 100%; height: auto; }
.store-preview h2, .store-preview h3 { font-weight: 800; }

.import-panel { margin-bottom:24px; overflow-wrap:anywhere; }
.import-panel details { margin:20px 0; }
.import-swatches { display:flex; gap:8px; margin:16px 0; }
.import-swatches span { width:44px; height:44px; border:1px solid #888; border-radius:8px; }
#import-preview { margin:20px 0; }
#import-preview .split { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:800px) { #import-preview .split { grid-template-columns:1fr; } }

.test-payment { text-align:left; font-size:13px; margin:20px 0; }
.test-payment label { display:block; margin:10px 0; font-weight:600; }
.test-payment input,.test-payment select { display:block; width:100%; box-sizing:border-box; padding:12px; border:1px solid #8290ac; border-radius:9px; color:#17233d; background:#fff; font:inherit; }
.test-card-row,.test-wallets { display:flex; gap:12px; }
.test-card-row label { flex:1; min-width:0; }
.test-wallets { margin-top:12px; flex-wrap:wrap; }
.test-wallets button { flex:1; padding:12px; }
.test-card-help { font-size:12px; line-height:1.7; }
#test-challenge { border:2px solid #6c62e8; padding:16px; border-radius:12px; margin:12px 0; }
#test-challenge[hidden] { display:none; }
.test-checkout-dialog { max-width:480px; width:calc(100% - 40px); max-height:90vh; overflow:auto; border:0; border-radius:20px; padding:24px; }
.test-checkout-dialog::backdrop {background:#0c1738aa;}

/* Publisher surfaces share the homepage and builder identity. Store themes stay publisher-owned. */
.topbar:has(+ .shell){background:#0e1030;color:#fff;border-bottom:1px solid #ffffff25}
.topbar:has(+ .shell) .brand,.topbar:has(+ .shell) .brand span{color:#fff}
.topbar:has(+ .shell) .muted{color:#c9cdeb}
.shell aside{background:#0e1030;color:#fff;border-right:1px solid #292a47}
.shell aside label,.shell .aside-note{color:#c9cdeb}
.shell nav button{color:#e1e0ee;border-radius:8px}
.shell nav button:hover{background:#ffffff12;box-shadow:none}
.shell nav button.active{background:#c8ff1f;color:#111014;border:2px solid #111014;box-shadow:3px 3px 0 #ff2d87}
.shell main{background:#fff}
.shell .panel{border:2px solid #111014;border-radius:12px;box-shadow:4px 4px 0 #111014}
.shell .stat{background:#fff;border-radius:10px;box-shadow:3px 3px 0 #111014}
.shell .stat:first-child{background:#c8ff1f}
.shell .stat:nth-child(2){background:#fff0f6}
.shell .heading{border-bottom:1px solid #ded8e5;padding-bottom:24px}
.shell .heading .eyebrow{color:#77516c}
.shell button.primary:not(:disabled),.shell .button.primary,.login button.primary:not(:disabled){background:#c8ff1f;color:#111014;box-shadow:3px 3px 0 #ff2d87}
.shell a:not(.button){color:#9e164f}
.shell input:focus-visible,.shell select:focus-visible,.shell textarea:focus-visible,.login input:focus-visible{outline:3px solid #ff2d87;outline-offset:2px}
body:has(.login),body.invite-page{min-height:100vh;background:radial-gradient(ellipse at 80% 0%,#ff2d8720,transparent 55%),#0e1030;color:#fff}
.login .brand,.login>.muted{color:#dcdcec}.login h1{font-size:clamp(42px,5vw,64px)}
.login .panel{background:#fff;color:#111014;border:2px solid #111014;border-radius:12px;box-shadow:6px 6px 0 #ff2d87}
.invite-page main{background:#fff;color:#111014;border:2px solid #111014;border-radius:14px;box-shadow:6px 6px 0 #ff2d87}
.invite-page h1{font-size:42px}.invite-page form:not([hidden]){display:grid;gap:18px;margin-block:25px}.invite-page label{display:grid;gap:8px}.invite-page button{background:#c8ff1f;box-shadow:3px 3px 0 #111014}.invite-page a{color:#9e164f}
@media(max-width:700px){.shell aside{border-bottom:2px solid #111014}.shell .panel{box-shadow:3px 3px 0 #111014}.invite-page main{max-width:calc(100% - 32px)!important;margin:32px auto!important}.login h1{font-size:44px}}
.topbar:has(+ .shell) .pill{color:#111014}
.shell button.primary:disabled{background:#eeeaf0;color:#625b69;border-color:#a59bad;box-shadow:none}
.shell .banner{background:#fff4f8;border-left-color:#ff2d87}
body:has(.login),body.invite-page{display:flow-root}
.login h1{font-size:clamp(40px,4.5vw,52px)}
.login .pill{color:#111014}

.share-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.share-card>div{min-width:0}#store-url{overflow-wrap:anywhere}.share-card img{max-width:100%;height:auto}@media(max-width:600px){.share-card{flex-direction:column;align-items:flex-start}}

.asset-thumb,.store-logo{width:96px;height:96px;object-fit:contain}.product-image{width:100%;max-height:180px;object-fit:contain}.field input[type=file]{max-width:100%;width:100%}

.store-banner{display:grid;gap:10px;color:var(--game-text);margin:16px 0;text-decoration:none}.store-banner[hidden]{display:none}.store-banner img{width:100%;max-height:260px;object-fit:cover;border-radius:var(--game-radius)}

.test-methods{display:grid;gap:12px}.test-methods[hidden]{display:none}[dir=rtl] .store-preview{text-align:right}

.test-methods [hidden],.test-wallets[hidden]{display:none!important}

.store-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.section-packs [hidden]{display:none}.panel fieldset{min-width:0}.panel fieldset label{display:block;margin:8px 0}

.plain-copy{white-space:pre-wrap;overflow-wrap:anywhere}.store-pages details{padding:20px;border:2px solid currentColor;margin:12px 0}textarea{width:100%;max-width:100%;box-sizing:border-box;font:inherit}code{overflow-wrap:anywhere}

/* Account verification steps must stay hidden despite .field's grid layout. */
#account [hidden], #resend[hidden] { display: none !important; }
#account #notice { position: static; margin: 0; max-width: 100%; }
.login a { color: inherit; }
/* Generated hero art in the store */
.store-hero.has-art{position:relative;margin:0 0 18px}.store-hero.has-art::before{content:"";display:block;aspect-ratio:16/9;height:auto;margin:0 0 16px;border-radius:12px;background:var(--hero-art) center/cover no-repeat;border:3px solid var(--game-primary)}.store-hero.has-art .store-logo{display:block;position:relative;margin:-52px 0 0 16px;width:72px;height:72px;border-radius:18px;border:3px solid #fff;box-shadow:0 4px 0 rgba(0,0,0,.3);object-fit:cover}.store-hero.has-art h2{margin-top:12px}

.topbar .store-cta{background:#c8ff1f;color:#111014;border:2px solid #111014;border-radius:999px;box-shadow:3px 3px 0 #111014;padding:9px 16px;font-weight:800;font-size:14px;white-space:nowrap;text-decoration:none}
.topbar .store-cta:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 #111014}

/* Preview controls stay inert while showing the actual theme colours. */
.pack button[data-preview-button]:disabled {
  background: var(--game-primary);
  color: var(--game-button);
  border-style: dashed;
  opacity: 1;
}

/* Console entry states: recover from data failures without implying a sign-out. */
.workspace-status{min-height:100svh;display:flex;flex-direction:column;background:#fff;color:#111014;padding:28px 5vw}
.workspace-status-header{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dedce7;padding-bottom:24px}
.workspace-status-header>span{font-size:13px;color:#5c586d}
.workspace-status-card{width:min(100%,640px);margin:auto; padding:48px;border:2px solid #111014;border-radius:24px;box-shadow:7px 7px 0 #111014;background:#fff}
.workspace-status-card h1{font-family:'Lilita One',sans-serif;font-size:clamp(32px,5vw,48px);line-height:1.08;margin:18px 0}
.workspace-status-card h1:focus{outline:none}
.workspace-status-card p{font-size:18px;line-height:1.6;color:#5c586d;margin:0 0 28px}
.workspace-status-icon{display:grid;place-items:center;width:58px;height:58px;background:#c8ff1f;border:2px solid #111014;border-radius:16px;font-size:32px;box-shadow:3px 3px 0 #111014;margin-bottom:28px}
.workspace-status-card .eyebrow{color:#68506f}
.workspace-status-card .actions{flex-wrap:wrap;margin-bottom:20px}
.workspace-status-card small{display:block;color:#5c586d;line-height:1.5}
.workspace-status footer{text-align:center;color:#5c586d;font-size:11px;letter-spacing:.12em;padding-top:32px}
.workspace-loading-track{height:8px;background:#eeedf3;border-radius:8px;overflow:hidden}
.workspace-loading-track span{display:block;width:40%;height:100%;background:#8d54ff;animation:workspace-progress 1.6s ease-in-out infinite alternate}
@keyframes workspace-progress{to{transform:translateX(150%)}}
@media(prefers-reduced-motion:reduce){.workspace-loading-track span{animation:none}}
@media(max-width:600px){.workspace-status{padding:20px;gap:36px}.workspace-status-header{align-items:flex-start}.workspace-status-header>span{max-width:80px;text-align:right}.workspace-status-card{padding:28px 22px;box-shadow:4px 4px 0 #111014}.workspace-status-card p{font-size:16px}.workspace-status-card .actions{align-items:stretch}.workspace-status-card .actions button{flex:1}.workspace-status footer{padding-top:0}}

.session-expired{position:fixed;z-index:10000;bottom:24px;left:50%;transform:translateX(-50%);width:min(760px,calc(100% - 32px));display:flex;align-items:center;gap:24px;padding:20px 24px;background:#fff3d6;color:#111014;border:2px solid #111014;border-radius:16px;box-shadow:5px 5px 0 #111014}
.session-expired p{margin:6px 0 0;line-height:1.5}.session-expired a{color:#111014;font-weight:700;flex-shrink:0;text-underline-offset:4px}
@media(max-width:600px){.session-expired{bottom:16px;flex-direction:column;align-items:flex-start;gap:14px;padding:18px}}

/* Store data may not be available: keep recovery neutral and publisher-independent. */
.public-unavailable{min-height:100svh;display:grid;place-items:center;padding:28px;background:#f7f7fa;color:#20212b;color-scheme:light}
.public-unavailable section{width:min(100%,560px);padding:48px;border:1px solid #d9dae2;border-radius:24px;background:#fff;box-shadow:0 16px 60px #20212b0a}
.public-unavailable h1{font:700 clamp(28px,5vw,38px)/1.15 'Instrument Sans',Arial,sans-serif;letter-spacing:-.03em;margin:24px 0 16px}
.public-unavailable h1:focus{outline:none}.public-unavailable p{font-size:17px;line-height:1.65;color:#565965;margin:0 0 28px}
.public-unavailable-symbol{display:grid;place-items:center;width:56px;height:56px;border:1px solid #d9dae2;border-radius:50%;font-size:30px;background:#f7f7fa}
.public-unavailable button{background:#20212b;color:#fff;border:2px solid #20212b;border-radius:10px;padding:13px 24px;box-shadow:none;font-weight:700}
.public-unavailable button:focus-visible{outline:3px solid #626d91;outline-offset:4px}
.public-unavailable small{display:block;margin-top:32px;padding-top:20px;border-top:1px solid #e4e5eb;color:#656875;font-size:12px;overflow-wrap:anywhere}
@media(max-width:600px){.public-unavailable{padding:20px}.public-unavailable section{padding:30px 24px}.public-unavailable button{width:100%}}
