/* Product thumbnails use their original square Gumroad artwork. */
.card-image img { aspect-ratio: 1 / 1; object-fit: cover; }
.account-button { display: inline-flex; align-items: center; gap: 8px; }
.account-button .discord-logo { width: 18px; height: 18px; flex-shrink: 0; }
.discord-logo { fill: currentColor; stroke: none; }
.theme-toggle { flex-shrink: 0; }
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f3f7;
  --muted: #a5a5b5;
  --line: #30303b;
  --accent: #69a5ff;
}
html[data-theme="light"] { color-scheme: light; }
[data-theme="dark"] body, [data-theme="dark"] .header { background: #141419; }
[data-theme="dark"] .icon-button:hover { background: #30303b; }
[data-theme="dark"] .account-button { background: #24242e; border-color: #3b3b4b; }
[data-theme="dark"] .account-button:hover { border-color: #8a8aa0; }
[data-theme="dark"] .hero { background: #1c1e21; border-color: #34373b; }
[data-theme="dark"] .hero:before { background-image: url('/assets/studs-dark.svg'); }
[data-theme="dark"] .hero-copy p { color: #c0c7db; }
[data-theme="dark"] .pill { background: #393e56; color: #fff; box-shadow: 3px 3px 0 #101117; }
[data-theme="dark"] .dark { background: #f3f3f7; color: #202026; }
[data-theme="dark"] .dark:hover { background: #d7d7e2; }
[data-theme="dark"] .hero-tile { border-color: #eeeef5; }
[data-theme="dark"] .hero-tile span { background: #dbeafe; color: #16161a; }
[data-theme="dark"] .card-image, [data-theme="dark"] .gallery-main { background: #24242e; }
[data-theme="dark"] .badge { background: #252530; color: #f5f5fa; }
[data-theme="dark"] .badge.free { background: #dbeafe; color: #242424; }
[data-theme="dark"] .save { background: #252530; color: #f5f5fa; }
[data-theme="dark"] .save.saved { color: var(--accent); }
[data-theme="dark"] .card-action, [data-theme="dark"] .outline { border-color: #4a4a59; }
[data-theme="dark"] .card-action:hover { border-color: #bbb; }
[data-theme="dark"] .rating { color: #aaaab8; }
[data-theme="dark"] .community-banner { background: #242336; border: 1px solid #39364f; }
[data-theme="dark"] .community-copy p { color: #bab8ce; }
[data-theme="dark"] .white { background: #f3f3f7; color: #202026; }
[data-theme="dark"] .collection:nth-child(1) { background: #23334d; }
[data-theme="dark"] .collection:nth-child(2) { background: #302a43; }
[data-theme="dark"] .collection:nth-child(3) { background: #223a32; }
[data-theme="dark"] .collection p { color: #c3c3ce; }
[data-theme="dark"] .collection:hover { box-shadow: inset 0 0 0 1px #8a8a9e; }
[data-theme="dark"] .free-feature { background: #22222c; }
[data-theme="dark"] .free-feature .eyebrow { color: #a6adff; }
[data-theme="dark"] .footer-top>div>a:not(.brand):not(.button) { color: #b4b4c2; }
[data-theme="dark"] .footer-top>div>a:hover { color: var(--accent); }
[data-theme="dark"] .footer-bottom, [data-theme="dark"] .breadcrumb { color: #a1a1b1; }
[data-theme="dark"] .notice { background: #24242e; color: #c6c6d4; }
[data-theme="dark"] .gallery-thumbs button { background: #24242e; }
[data-theme="dark"] .description, [data-theme="dark"] .privacy p { color: #bcbcca; }
[data-theme="dark"] .description strong { color: #f0f0f7; }
[data-theme="dark"] .description a { color: #a6adff; }
[data-theme="dark"] .search-field input, [data-theme="dark"] .shop-toolbar select, [data-theme="dark"] .search-bar input { background: #23232d; border-color: #3e3e4c; color: #f3f3f7; }
[data-theme="dark"] input::placeholder { color: #9898aa; }
[data-theme="dark"] .filter-pills a { border-color: #3e3e4c; }
[data-theme="dark"] .filter-pills a.active { background: #ededf5; color: #202026; border-color: #ededf5; }
[data-theme="dark"] .empty { border-color: #41414d; }
[data-theme="dark"] .empty p, [data-theme="dark"] .library-status p, [data-theme="dark"] .form-message, [data-theme="dark"] .loading, [data-theme="dark"] #gate-status, [data-theme="dark"] #gate-content p { color: #aaaabc; }
[data-theme="dark"] dialog { background: #22222d; color: #f3f3f7; }
[data-theme="dark"] .gate-icon { background: #33364d; color: #b2b9ff; }
[data-theme="dark"] #toast { background: #eeeeF5; color: #202026; box-shadow: 0 5px 30px #0005; }
@media(max-width:760px) {
  .header .brand { font-size: 26px; }
  .header .brand img { width: 29px; height: 29px; }
  .header .brand small { font-size: 4px; }
  .header .account-button { gap: 5px; font-size: 9px; padding: 8px; max-width: 135px; }
  .header .account-button .discord-logo { width: 15px; height: 15px; }
  .header .icon-button { width: 26px; }
  .header-actions { gap: 1px; }
  .header-actions #wishlist-link { display: none; }
}

/* Repeating raised studs, matching the supplied baseplate reference. */
.hero{background:#eef0f4;border:1px solid #d7dbe2;box-shadow:inset 0 1px 0 #ffffff08}
.hero:before,[data-theme="dark"] .hero:before{background-size:22px 22px;background-repeat:repeat;opacity:.28;pointer-events:none;animation:stud-drift 5s linear infinite;will-change:background-position}
.hero:before{background-image:url('/assets/studs-light.svg')}
[data-theme="dark"] .hero-copy p{color:#bfc3cc}
[data-theme="dark"] .hero .pill{background:#2d3036}

/* A dark baseplate with quiet motion behind the artwork. */
[data-theme="dark"] .hero{background:#101216;border-color:#252830}
.hero:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 72% 48%,#397cff14,transparent 65%);animation:hero-glow 3.5s ease-in-out infinite alternate}
@keyframes stud-drift{from{background-position:0 0}to{background-position:22px -22px}}
@keyframes hero-glow{from{opacity:.25;transform:translateX(-5%)}to{opacity:.8;transform:translateX(5%)}}
@media(prefers-reduced-motion:reduce){.hero:before,.hero:after{animation:none;will-change:auto}}

/* Pointer spotlight reveals the studs without moving the hero content. */
.hero-hover{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;background:radial-gradient(220px circle at var(--mouse-x,50%) var(--mouse-y,50%),#4389ff28,transparent 78%);mask-image:radial-gradient(220px circle at var(--mouse-x,50%) var(--mouse-y,50%),#000 0%,transparent 90%);transition:opacity .25s ease}
.hero-hover:before{content:'';position:absolute;inset:0;background:url('/assets/studs-light.svg') 0 0/22px 22px;opacity:.6;animation:stud-drift 5s linear infinite}
[data-theme="dark"] .hero-hover:before{background-image:url('/assets/studs-dark.svg')}
.hero.has-pointer .hero-hover{opacity:1}
@media(prefers-reduced-motion:reduce){.hero-hover:before{animation:none}.hero-hover{transition:none}}
