/* Grade 8 Modding */

:root {
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-2: #222;
  --border: #2b2b2b;
  --border-2: #3a3a3a;
  --text: #e4e4e4;
  --muted: #9a9a9a;
  --dim: #6d6d6d;
  --orange: #ec6420;
  --orange-hover: #f47a3a;
  --green: #6dbb6f;
  --red: #e5534b;
  --radius: 6px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
code {
  font-family: Consolas, ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 24px;
}
h3 {
  font-size: 17px;
}
p {
  margin: 0 0 14px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 760px;
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 15px/1 var(--font);
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: #2a2a2a;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}
.btn-danger {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn-danger:hover {
  background: var(--red);
  color: #fff;
}
.btn-sm {
  font-size: 14px;
  padding: 8px 14px;
}
.btn-block {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--orange);
  cursor: pointer;
}
.linkish:hover {
  text-decoration: underline;
}
.linkish.small {
  font-size: 13px;
  color: var(--muted);
}
.linkish.small:hover {
  color: var(--red);
}
.linkish.danger,
.danger {
  color: var(--red);
}

/* Header */

.site-head {
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.head-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-bolt {
  width: 34px;
  height: 34px;
}
.brand-word {
  width: 132px;
  height: auto;
}
.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
}
.nav a:hover,
.nav a[aria-current] {
  color: #fff;
  text-decoration: none;
}
.nav a[aria-current] {
  background: var(--surface-2);
}
.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
}
.cart-link:hover {
  text-decoration: none;
  border-color: #555;
}
.cart-count {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
}

/* Home: featured screenshot */

.hero {
  position: relative;
  height: min(64vh, 560px);
  min-height: 360px;
  background: #000;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.45) 40%, rgba(10, 10, 10, 0) 70%);
}
.hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  max-width: 720px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.hero p {
  color: #d6d6d6;
  font-size: 18px;
  max-width: 560px;
  margin: 10px 0 20px;
}

/* Home: no screenshots yet */

.intro {
  border-bottom: 1px solid var(--border);
  background: #0d0d0d;
}
.intro-row {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.intro-logo {
  width: 300px;
  height: auto;
  flex-shrink: 0;
}
.intro h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 12px;
}
.intro p {
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 22px;
}

.cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
}
.cat-links a {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}
.cat-links a:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  text-decoration: none;
}
.cat-links span {
  color: var(--dim);
  margin-left: 3px;
}

/* Sections */

.sec {
  padding-top: 48px;
}
.sec-sm {
  padding-top: 40px;
}
.sec-top {
  padding-top: 32px;
}
#main {
  padding-bottom: 72px;
  min-height: 60vh;
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.sec-head a {
  font-size: 15px;
  font-weight: 500;
}
.page-head {
  margin-bottom: 24px;
}
.page-head h1,
.page-title {
  margin-bottom: 8px;
}
.lead {
  font-size: 17px;
  margin-bottom: 24px;
}
.empty {
  color: var(--muted);
  background: var(--surface);
  border-radius: 8px;
  padding: 40px 24px;
  text-align: center;
}
.empty p {
  margin-bottom: 16px;
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.card:hover {
  text-decoration: none;
  border-color: #444;
}
.card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}
/* Pin images to the frame so every card is the same height whatever the screenshot size. */
.card-img > .cover,
.card-img > .collage,
.cl-img > .cover,
.gallery-main > img,
.gallery-main > .cover,
.gallery-main > .collage {
  position: absolute;
  inset: 0;
}
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.noimg {
  display: grid;
  place-items: center;
  background: #1f1f1f;
}
.noimg img {
  width: 44px;
  height: 44px;
  opacity: 0.18;
  filter: grayscale(1);
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-save {
  background: var(--orange);
}
.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.card-tag {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.card-line {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}
.price {
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.price.free {
  color: var(--green);
}
.price s {
  color: var(--dim);
  font-weight: 400;
  font-size: 13px;
}
.collage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100%;
}
.collage > :first-child {
  grid-row: span 2;
}
.collage.one {
  display: block;
}
.collage .cover {
  min-height: 0;
}

/* About */

.about {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}
.about h2 {
  margin-bottom: 12px;
}
.about p {
  color: #cfcfcf;
  max-width: 620px;
}
.about-links,
.foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-links a {
  display: inline-block;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
}
.about-links a:hover {
  text-decoration: none;
  border-color: #555;
}
.about-side {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}
.about-side h3 {
  margin-bottom: 8px;
}
.about-side p {
  color: var(--muted);
  font-size: 15px;
}

/* Shop list */

.shop {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 36px;
  align-items: start;
}
.side-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.shop-side nav {
  display: flex;
  flex-direction: column;
}
.shop-side a {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 15px;
}
.shop-side a:hover {
  background: var(--surface);
  text-decoration: none;
}
.shop-side a.on {
  background: var(--surface-2);
  color: #fff;
  font-weight: 600;
}
.shop-side span {
  color: var(--dim);
  font-size: 14px;
}
.shop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.shop-head p {
  margin: 4px 0 0;
}
.tools {
  display: flex;
  gap: 8px;
}
.tools input {
  width: 200px;
}
.tools select {
  width: auto;
}

/* Forms */

input,
select,
textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #0f0f0f;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--dim);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
}
select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a9a9a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input[type='checkbox'] {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
  padding: 0;
}
input[type='file'] {
  padding: 8px;
  font-size: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span {
  font-size: 14px;
  font-weight: 500;
  color: #cfcfcf;
}
.field small {
  color: var(--dim);
  font-size: 13px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fine {
  font-size: 13px;
  color: var(--dim);
  margin: 12px 0 0;
}
.lookup {
  display: flex;
  gap: 8px;
  max-width: 480px;
}

.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  margin: 0 0 16px;
  font-size: 15px;
}
.notice-ok {
  border-color: #2f5a31;
  background: #17231a;
}
.notice-err {
  border-color: #6b2b27;
  background: #2a1716;
}
.notice-info {
  border-color: #5c3a20;
  background: #241b14;
}

/* Product page */

.crumbs {
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 16px;
}
.crumbs a {
  color: var(--muted);
}
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 36px;
  align-items: start;
}
.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}
.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  opacity: 0.7;
}
.thumbs button:hover {
  opacity: 1;
}
.thumbs button.on {
  opacity: 1;
  border-color: var(--orange);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.buybox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 84px;
}
.buybox h1 {
  font-size: 28px;
}
.byline {
  color: var(--muted);
  font-size: 15px;
  margin: 6px 0 0;
}
.buy-tag {
  margin: 14px 0 0;
  color: #cfcfcf;
}
.buy-price {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 18px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.buy-price s {
  font-size: 17px;
  font-weight: 400;
  color: var(--dim);
}
.save-line {
  color: var(--green);
  font-size: 15px;
  margin: -6px 0 14px;
}
.deal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: #241b14;
  border: 1px solid #5c3a20;
  color: #f0d6c4;
  font-size: 14px;
}
.deal:hover {
  text-decoration: none;
  border-color: var(--orange);
}
.deal b {
  color: #fff;
}
.details {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}
.details th,
.details td {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.details th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
}
.details td {
  text-align: right;
}
.desc {
  max-width: 760px;
}
.desc h2 {
  margin-bottom: 14px;
}
.prose {
  color: #d4d4d4;
}
.prose h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.prose li {
  margin-bottom: 4px;
}
.terms .callout {
  background: #241b14;
  border: 1px solid #5c3a20;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.terms .caps {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.changelog {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--surface);
}
.changelog summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.changelog .prose {
  padding-bottom: 8px;
  font-size: 15px;
}
.changelog h3 {
  font-size: 15px;
  margin-top: 12px;
}
.bundle-desc {
  margin-top: 18px;
  font-size: 15px;
}

/* Cart & orders */

.cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}
.cart-lines,
.dl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cart-lines li,
.dl-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-lines li:first-child,
.dl-list li:first-child {
  border-top: 1px solid var(--border);
}
.cl-img {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  display: block;
}
.cl-img .noimg img {
  width: 30px;
  height: 30px;
}
.cl-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  font-size: 14px;
}
.cl-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.cl-price {
  font-weight: 700;
  color: #fff;
}
.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
}
.sum-row b {
  font-size: 22px;
  color: #fff;
}
.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #cfcfcf;
  cursor: pointer;
  line-height: 1.45;
}
.agree input {
  flex-shrink: 0;
  margin-top: 2px;
}
.summary .fine {
  margin: 0;
}
.dl-list {
  margin: 8px 0 32px;
}
.receipt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  max-width: 460px;
}
.receipt h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.receipt table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.receipt td {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.receipt td:last-child {
  text-align: right;
}
.receipt .tot td {
  border-bottom: 0;
  font-weight: 700;
  color: #fff;
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--border);
  background: #0d0d0d;
  font-size: 14px;
}
.foot-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.foot-brand img {
  width: 96px;
  height: auto;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-right: auto;
}
.foot-links a,
.foot-social a {
  color: var(--muted);
}
.foot-links a:hover,
.foot-social a:hover {
  color: #fff;
}
.foot-social {
  gap: 18px;
}
.foot-base {
  color: var(--dim);
  font-size: 13px;
  padding-bottom: 28px;
}

/* Auth */

body.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.auth-box {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.auth-logo img {
  width: 150px;
  height: auto;
  margin: 0 auto 24px;
}
.auth-box h1 {
  font-size: 24px;
  margin-bottom: 14px;
}
.auth-box > p {
  font-size: 15px;
}

/* Studio */

body.studio {
  background: var(--bg);
}
.st-head {
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.st-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
.st-brand:hover {
  text-decoration: none;
}
.st-brand em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}
.st-user {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
}
.st-user a,
.st-user .linkish {
  color: var(--muted);
}
.st-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}
.st-nav {
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #0f0f0f;
}
.st-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  padding: 14px 10px 6px;
}
.st-label:first-child {
  padding-top: 0;
}
.st-nav a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 15px;
}
.st-nav a:hover {
  color: #fff;
  background: var(--surface);
  text-decoration: none;
}
.st-nav a[aria-current] {
  color: #fff;
  background: var(--surface-2);
  font-weight: 500;
}
.st-main {
  padding: 32px 36px 72px;
  max-width: 1080px;
}
.st-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.st-title h1 {
  font-size: 28px;
}
.eyebrow {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.st-h2 {
  font-size: 19px;
  margin: 36px 0 12px;
}
.st-empty {
  border: 1px dashed var(--border-2);
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  color: var(--muted);
}
.st-empty p {
  margin: 0 0 16px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}
.panel + .panel {
  margin-top: 14px;
}
.panel p:last-child {
  margin-bottom: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.span-2 {
  grid-column: span 2;
}
.form-actions {
  display: flex;
  gap: 10px;
}
.bundle-form > .form-actions {
  margin: 18px 0 28px;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-form .field {
  flex: 1;
  min-width: 160px;
}
.inline-form .field.small {
  flex: 0 0 110px;
  min-width: 0;
}
.inline-form .grow {
  flex: 3;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile span {
  font-size: 13px;
  color: var(--muted);
}
.tile b {
  font-size: 24px;
  color: #fff;
}
.tile em {
  font-style: normal;
  font-size: 13px;
  color: var(--dim);
}
.mono {
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: #1e1e1e;
}
.table .r {
  text-align: right;
}
.table td.mono {
  white-space: nowrap;
}
.table a {
  color: #fff;
}
.table tr.dim td {
  opacity: 0.5;
}
.table .clip {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.block {
  display: block;
  color: var(--muted);
}
.t-mod {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-mod:hover {
  text-decoration: none;
}
.t-mod img,
.t-ph {
  width: 64px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.t-mod span {
  display: flex;
  flex-direction: column;
}
.t-mod small {
  color: var(--dim);
}
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  margin-right: 4px;
}
.pill-live,
.pill-sent {
  background: #1a2e1b;
  color: var(--green);
}
.pill-pending,
.pill-warn {
  background: #2e2016;
  color: #f0a26f;
}
.pill-failed {
  background: #2e1817;
  color: var(--red);
}
.pill-void {
  color: var(--dim);
}
.err-text {
  display: block;
  color: var(--red);
  font-size: 12px;
  margin-top: 4px;
  max-width: 300px;
}
.row-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-form input,
.row-form select {
  padding: 6px 9px;
  font-size: 14px;
  width: auto;
}
.row-form select {
  padding-right: 28px;
  background-position: right 9px center;
}
.row-form input[type='number'] {
  width: 70px;
}
.row-form.wide input {
  width: 170px;
}
.row-form.wide .grow {
  flex: 1;
  width: auto;
}
.row-form.wide .num {
  width: 64px;
}
.mini-copy {
  font-size: 12px;
  padding: 5px 8px;
  width: 250px;
}
.invite-new {
  border-color: #5c3a20;
  margin-bottom: 14px;
}
.invite-new p {
  color: var(--muted);
  margin: 4px 0 12px;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.payout-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}
.payout-status h2 {
  font-size: 21px;
  margin-bottom: 6px;
}
.payout-status p {
  max-width: 600px;
}
.danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 36px;
}
.st-h2.danger {
  display: none;
}
.upload {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.upload-current {
  flex: 1;
  min-width: 200px;
}
.upload-current b {
  color: #fff;
  word-break: break-all;
}
.bar {
  flex-basis: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.2s;
}
.upload-msg {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 14px;
}
.upload-msg:empty {
  display: none;
}
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.img-grid figure {
  margin: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
}
.img-grid img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.img-grid .pill {
  position: absolute;
  top: 6px;
  left: 6px;
}
.img-grid figcaption {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 13px;
}
.img-upload {
  display: flex;
  gap: 10px;
}
.pick fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.pick legend {
  font-weight: 600;
  color: #fff;
  padding: 0 0 6px;
}
.pick-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 15px;
}

/* Responsive */

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .product,
  .cart {
    grid-template-columns: 1fr;
  }
  .buybox,
  .summary {
    position: static;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }
  .shop {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .shop-side {
    margin-bottom: 20px;
  }
  .side-title {
    display: none;
  }
  .shop-side nav {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .shop-side a {
    white-space: nowrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    gap: 6px;
  }
}

@media (max-width: 700px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .head-row {
    gap: 12px;
  }
  .brand-word {
    display: none;
  }
  .nav {
    gap: 0;
  }
  .nav a {
    padding: 8px;
  }
  .nav-ext {
    display: none;
  }
  .grid,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-body {
    padding: 10px 11px 12px;
  }
  .card-body h3 {
    font-size: 15px;
  }
  .card-tag {
    display: none;
  }
  .hero {
    height: 58vh;
    min-height: 320px;
  }
  .hero-text {
    bottom: 24px;
  }
  .hero p {
    font-size: 16px;
  }
  .intro-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 32px;
  }
  .intro-logo {
    width: 200px;
  }
  .about {
    padding: 22px;
  }
  h1 {
    font-size: 28px;
  }
  .tools {
    width: 100%;
  }
  .tools input {
    flex: 1;
    width: auto;
  }
  .cart-lines li,
  .dl-list li {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .dl-list li .btn {
    grid-column: 1 / -1;
  }
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .st-body {
    grid-template-columns: 1fr;
  }
  .st-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .st-label {
    display: none;
  }
  .st-nav a {
    white-space: nowrap;
  }
  .st-main {
    padding: 22px 16px 60px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .payout-status,
  .danger-zone {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Header, banner and list layout ===== */

.ico {
  flex-shrink: 0;
  vertical-align: -3px;
}
.site-head {
  position: relative;
  background: none;
  border: 0;
}
.topbar {
  background: #000;
}
.topbar-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.topnav {
  display: flex;
  gap: 2px;
  margin-right: auto;
}
.topnav a {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 10px;
  border-radius: var(--radius);
}
.topnav a:hover,
.topnav a[aria-current] {
  color: var(--orange);
  text-decoration: none;
}
.subbar {
  background: #2a2c2e;
  border-bottom: 1px solid #1a1a1a;
}
.subbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
}
.dropdown {
  position: relative;
}
.dropdown summary,
.subbar-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
}
.dropdown summary::-webkit-details-marker {
  display: none;
}
.dropdown summary:hover,
.subbar-link:hover,
.dropdown[open] summary {
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 230px;
  background: #1c1d1f;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.dropdown-menu a {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 15px;
}
.dropdown-menu a:hover {
  background: #2c2d30;
  text-decoration: none;
}
.dropdown-menu span {
  color: var(--dim);
}
.dropdown-sep {
  display: block;
  height: 1px;
  background: #333;
  margin: 6px 4px;
}
.searchbox {
  margin-left: auto;
  display: flex;
  width: 340px;
}
.searchbox input {
  background: #121314;
  border: 1px solid #3c3e41;
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  height: 40px;
}
.searchbox button {
  width: 44px;
  background: #121314;
  color: var(--muted);
  border: 1px solid #3c3e41;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.searchbox button:hover {
  color: #fff;
}
.announce {
  background: var(--orange);
  color: #fff;
}
.announce-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}
.announce-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.announce-btn:hover {
  background: #fff;
  color: var(--orange);
  text-decoration: none;
}
.crumbbar {
  background: #1a1b1c;
  border-bottom: 1px solid #2a2a2a;
}
.crumbbar .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  margin: 0 auto;
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
}
.crumbbar .crumbs a {
  color: #fff;
  font-weight: 500;
}
.crumbbar .sep,
.crumbbar .here {
  color: var(--dim);
}
.crumbbar .here {
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner {
  background-color: #232425;
  background-image: url("/img/bolt.png"), linear-gradient(90deg, #1b1c1d 0%, #2b2c2e 60%, #1f2021 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 8% center, center;
  background-size: auto 62px, cover;
  border-bottom: 1px solid #2a2a2a;
  position: relative;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  pointer-events: none;
}
.banner .wrap {
  position: relative;
  height: 82px;
  display: flex;
  align-items: center;
}
.banner h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 30px;
}
.list-wrap {
  max-width: 940px;
  padding-top: 24px;
}
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.ctl {
  position: relative;
  display: flex;
  align-items: center;
}
.ctl .ico {
  position: absolute;
  left: 12px;
  color: var(--text);
  pointer-events: none;
}
.ctl select {
  width: auto;
  min-width: 240px;
  height: 40px;
  padding-left: 36px;
  background-color: #1c1d1f;
  border-color: #3a3c3f;
  color: #fff;
}
.viewtoggle {
  margin-left: auto;
  display: flex;
  border: 1px solid #3a3c3f;
  border-radius: var(--radius);
  overflow: hidden;
}
.viewtoggle a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  color: var(--muted);
  background: #1c1d1f;
}
.viewtoggle a + a {
  border-left: 1px solid #3a3c3f;
}
.viewtoggle a.on,
.viewtoggle a:hover {
  color: #fff;
  background: #2c2d30;
}
.pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0 22px;
}
.pager a,
.pager span {
  min-width: 40px;
  height: 38px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
  border: 1px solid #3a3c3f;
  margin-left: -1px;
  background: #1c1d1f;
  color: #fff;
}
.pager > :first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}
.pager > :last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pager a:hover {
  background: #2c2d30;
  text-decoration: none;
}
.pager .on {
  background: #3a3c3f;
  font-weight: 700;
}
.pager .off {
  color: var(--dim);
}
.pager .gap {
  color: var(--muted);
}
.rows {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.row {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 22px;
}
.row-img {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  display: block;
}
.row-img > .cover {
  position: absolute;
  inset: 0;
  transition: transform 0.3s;
}
.row-img:hover > .cover {
  transform: scale(1.03);
}
.flag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
}
.row-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.row-title {
  font-size: 20px;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.row-title a {
  color: #fff;
}
.row-ver {
  color: var(--orange);
  font-weight: 600;
}
.row-price {
  align-self: center;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.row-price.free {
  background: #2f6b33;
}
.row-tag {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  color: #e2e2e2;
}
.meta li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.meta li + li::before {
  content: "\2022";
  color: var(--dim);
  margin: 0 10px;
}
.meta .accent {
  color: var(--orange);
}
.meta-link {
  color: inherit;
}
.row-btn {
  margin-top: auto;
  align-self: flex-end;
}
.more-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.list-wrap .sec-head {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .searchbox {
    width: auto;
    flex: 1;
  }
  .row {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .row-tag {
    display: none;
  }
}
@media (max-width: 700px) {
  .hide-sm {
    display: none;
  }
  .topbar-row {
    gap: 10px;
    height: 56px;
  }
  .topnav a {
    font-size: 15px;
    padding: 8px 6px;
  }
  .subbar-row {
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
  }
  .searchbox {
    order: 3;
    flex-basis: 100%;
    margin: 4px 0 0;
  }
  .banner .wrap {
    height: 64px;
  }
  .banner h1 {
    font-size: 23px;
  }
  .banner {
    background-size: auto 46px, cover;
  }
  .ctl {
    flex: 1;
  }
  .ctl select {
    min-width: 0;
    width: 100%;
  }
  .viewtoggle {
    display: none;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .row-btn {
    align-self: stretch;
  }
  .meta li + li::before {
    margin: 0 7px;
  }
}
@media (max-width: 420px) {
  .hide-xs {
    display: none;
  }
}

.page-note {
  margin: 0 0 18px;
}
