:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #161616;
  --border: #2b2b2b;
  --muted: #979797;
  --text: #f5f5f5;
  --blue: #e9e9e9;
  --page: 1024px;
}

* { box-sizing: border-box; }
/* Author rules such as `.button { display: inline-flex }` beat the browser's
   `[hidden] { display: none }`, so hide the attribute explicitly. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.55 "IBM Plex Sans Thai", "Prompt", system-ui, sans-serif;
}
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 54px 0 auto;
  height: 545px;
  pointer-events: none;
  background: linear-gradient(180deg, #08080805 0%, #08080829 54%, #080808 100%),
    url("assets/space-bg-optimized.jpg") center top / cover no-repeat;
}
a { color: inherit; }
.page-width { width: min(var(--page), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 57px;
  background: #060606eb;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #ffffff1f;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 23px;
  width: min(1120px, 100%);
  height: 100%;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  font: 700 16px/1 "Prompt", sans-serif;
  letter-spacing: -.45px;
}
.brand img { width: 31px; height: 31px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 19px; margin-left: 5px; }
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #bababa;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: color .2s;
}
.desktop-nav a:hover, .desktop-nav a.active { color: #f6f6f6; }
.icon { display: inline-flex; align-items: center; font-size: 17px; vertical-align: -1px; }
.ui-icon, .icon svg, .nav-icon svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon { display: inline-flex; width: 16px; height: 16px; flex: none; align-items: center; justify-content: center; }
/* The Thai text line sits ~1px below the icon box centre at 12px. */
.desktop-nav .nav-icon { transform: translateY(-1px); }
.desktop-nav .nav-label { display: inline-block; white-space: pre; }
.nav-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.button, .circle-button, .search-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #f8f8f8;
  text-decoration: none;
  white-space: nowrap;
  font: 500 13px/1.3 "IBM Plex Sans Thai", "Prompt", sans-serif;
  transition: background .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.button { padding: 0 15px; }
.button:hover, .circle-button:hover, .search-pill:hover { transform: translateY(-1px); }
.button.primary { background: var(--blue); box-shadow: 0 5px 18px #8484843c; }
.button.primary:hover { background: #a5a5a5; }
.button.outline, .circle-button, .search-pill { border-color: #373737; background: #121212; }
.button.outline:hover, .circle-button:hover, .search-pill:hover { background: #1e1e1e; }
.search-pill { width: 224px; justify-content: space-between; padding: 0 14px 0 17px; color: #949494; }
.support-desktop { width: 38px; height: 38px; font-size: 19px; }
.mobile-search, .menu-toggle, .mobile-nav { display: none; }

.hero { position: relative; height: 319px; padding-top: 47px; text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -265px;
  left: 50%;
  width: 700px;
  height: 390px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 65%, #b0b0b047, #82828224 37%, transparent 69%);
  filter: blur(7px);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid #383838;
  border-radius: 999px;
  background: #1b1b1b;
  color: #9d9d9d;
  text-decoration: none;
  font-size: 11px;
  box-shadow: 0 0 0 3px #ffffff08;
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #10d696; box-shadow: 0 0 12px #10d696; }
.status-pill b { color: #6d6d6d; font-size: 11px; font-weight: 400; }
.hero h1 {
  margin: 38px 0 2px;
  font: 700 clamp(28px, 4vw, 45px)/1.2 "Prompt", "IBM Plex Sans Thai", sans-serif;
  letter-spacing: -1.4px;
}
.hero h1 span { white-space: nowrap; }
.hero > p { margin: 3px auto 18px; color: #999999; font-size: 12px; }
.hero-actions { display: flex; justify-content: center; gap: 9px; }
.hero-actions .button { height: 39px; padding: 0 16px; }

.banner {
  position: relative;
  height: auto;
  max-height: 410px;
  overflow: hidden;
  aspect-ratio: 2.5 / 1;
  border: 1px solid #1c1c1c;
  border-radius: 11px;
  background: #121212;
  box-shadow: 0 14px 50px #0008;
}
.banner > img, .banner > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-next {
  position: absolute;
  top: 50%;
  right: 0;
  width: 44px;
  height: 44px;
  transform: translate(35%, -50%);
  border: 1px solid #ffffff42;
  border-radius: 50%;
  background: #181818d9;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
.banner-dots { position: absolute; bottom: 14px; left: 50%; display: flex; gap: 6px; transform: translateX(-50%); }
.banner-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff65; }
.banner-dots i.selected { width: 19px; border-radius: 99px; background: white; }

.community-overview { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); align-items: stretch; gap: 14px; margin-top: 18px; }
.stat-card, .category-card, .product-card, .faq details {
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #161616dc;
  box-shadow: 0 10px 32px #0003;
}
.store-overview { display: grid; min-width: 0; align-content: start; gap: 11px; }
.store-overview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 2px 2px 0; }
.store-overview-kicker { color: #c4c4c4; font-size: 10px; font-weight: 650; letter-spacing: .19em; }
.store-overview-heading h2 { margin: 5px 0 4px; font: 650 19px/1.3 "Prompt", "IBM Plex Sans Thai", sans-serif; letter-spacing: -.02em; }
.store-overview-heading p { max-width: 570px; margin: 0; color: #aaa79f; font-size: 12px; line-height: 1.55; }
.section-heading h2 { margin: 0; font: 650 18px/1.3 "Prompt", "IBM Plex Sans Thai", sans-serif; letter-spacing: -.2px; }
.preview-chip { flex: none; margin-top: 4px; padding: 5px 8px; border: 1px solid #494949; border-radius: 5px; color: #cecece; font-size: 9px; font-weight: 650; letter-spacing: .1em; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-card { position: relative; display: flex; min-height: 63px; flex-direction: column; overflow: hidden; padding: 9px 12px; line-height: 1.3; }
.stat-card > span:first-child { color: #aaaaaa; font-size: 11px; }
.stat-card strong { font: 700 20px/1.15 "Prompt", sans-serif; letter-spacing: .2px; }
.stat-card small { color: #aaa; font: 400 11px "IBM Plex Sans Thai", sans-serif; }
.stat-mark { position: absolute; right: 14px; bottom: 8px; color: #ffffff11; font-size: 25px; }
.stat-mark .ui-icon { width: 27px; height: 27px; stroke-width: 1.35; }
.store-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.store-note { display: flex; min-width: 0; min-height: 65px; align-items: center; gap: 10px; padding: 10px; border: 1px solid #292825; border-radius: 10px; background: #111110ed; }
.store-note-icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 8px; background: #232323; color: #cecece; }
.store-note-icon .ui-icon { width: 18px; height: 18px; stroke-width: 1.7; }
.store-note > span:last-child { display: grid; gap: 3px; }
.store-note strong { font-size: 11px; }
.store-note small { color: #97948e; font-size: 10px; line-height: 1.4; }
.discord-community-card { position: relative; display: flex; min-height: 260px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 16px; border: 1px solid #393939; border-radius: 11px; background: radial-gradient(ellipse at 93% 0, #5865f233, transparent 40%), linear-gradient(145deg, #171717, #111111 70%); color: #f3f3f3; }
.discord-community-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #ffffff16; }
.discord-community-brand { display: flex; align-items: center; gap: 10px; }
.discord-community-mark { display: grid; width: 39px; height: 39px; flex: none; place-items: center; border: 1px solid #8188ff4c; border-radius: 11px; background: #5865f2; box-shadow: 0 5px 18px #5865f24a; }
.discord-community-mark img { display: block; width: 22px; height: 22px; filter: brightness(0) invert(1); }
.discord-community-brand > span:last-child { display: grid; gap: 2px; }
.discord-community-brand small { color: #acacac; font-size: 9px; letter-spacing: .11em; }
.discord-community-brand strong { font-size: 15px; letter-spacing: .04em; }
.discord-server-label { padding: 5px 8px; border: 1px solid #ffffff20; border-radius: 5px; color: #cecece; font-size: 9px; letter-spacing: .1em; }
.discord-community-body { position: relative; z-index: 1; margin: 16px 0 13px; }
.discord-community-kicker { color: #d6d6d6; font-size: 9px; font-weight: 650; letter-spacing: .17em; }
.discord-community-body h2 { margin: 5px 0 5px; font: 650 20px/1.35 "Prompt", "IBM Plex Sans Thai", sans-serif; }
.discord-community-body p { max-width: 330px; margin: 0; color: #acacac; font-size: 11px; line-height: 1.6; }
.discord-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.discord-topics span { padding: 4px 7px; border: 1px solid #ffffff18; border-radius: 5px; background: #ffffff08; color: #d0d0d0; font-size: 9px; }
.discord-join-button { position: relative; z-index: 1; display: flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; border: 1px solid #7983ff; border-radius: 7px; background: #5865f2; color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .18s, transform .18s, box-shadow .18s; }
.discord-join-button:hover { transform: translateY(-1px); background: #4752c4; box-shadow: 0 7px 20px #5865f244; }
.discord-join-button img { width: 17px; height: 17px; filter: brightness(0) invert(1); }
.discord-join-button .ui-icon { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.discord-community-foot { position: relative; z-index: 1; margin-top: 8px; color: #8c8c8c; font-size: 9px; text-align: center; }
.discord-card-art { position: absolute; right: 9px; bottom: 50px; width: 130px; height: 130px; opacity: .07; pointer-events: none; }

.content-section { padding-top: 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.section-heading p { margin: 3px 0 0; color: #7d7d7d; font-size: 11px; }
.text-link { color: #aeaeae; text-decoration: none; font-size: 12px; }
.text-link:hover { color: white; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.category-card { position: relative; height: 170px; overflow: hidden; border-radius: 15px; color: white; text-decoration: none; background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 26%, var(--panel)), var(--panel) 72%); }
.category-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.category-card:hover > img { transform: scale(1.04); }
.category-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #080808dc, #08080863 55%, #0002), linear-gradient(0deg, #0009, transparent 75%); }
.category-info { position: absolute; bottom: 15px; left: 16px; display: flex; flex-direction: column; }
.category-info strong { font: 600 16px "Prompt", sans-serif; }
.category-info span { color: #d3d3d3; font-size: 11px; }
.category-info b { margin-top: 5px; font-size: 12px; font-weight: 500; }
.category-arrow { position: absolute; right: 15px; bottom: 15px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #ffffff35; border-radius: 50%; background: #ffffff24; }


.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.store-announcement { max-width: var(--page); margin: 14px auto 0; padding: 11px 16px; border: 1px solid color-mix(in srgb, var(--blue) 40%, var(--border)); border-radius: 11px; background: color-mix(in srgb, var(--blue) 12%, var(--panel)); color: var(--text); font-size: 12px; text-align: center; }
.store-announcement.is-closed { border-color: #704147; background: #28181a; color: #e6a0a4; }
.catalog-empty { grid-column: 1 / -1; margin: 0; padding: 34px 20px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); text-align: center; font-size: 13px; }
.product-card { overflow: hidden; border-radius: 14px; }
.product-image { position: relative; display: block; height: 150px; overflow: hidden; background: #121212; }
.product-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-image > img { transform: scale(1.04); }
.badge { position: absolute; top: 9px; left: 9px; padding: 4px 8px; border-radius: 99px; background: var(--blue); color: white; font-size: 10px; }
.badge.sold { border: 1px solid #ffffff2a; background: #151515dc; }
.product-body { padding: 12px; }
.product-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-title h3 { margin: 0; font: 600 14px "Prompt", sans-serif; }
.stock { color: #38dca0; white-space: nowrap; font-size: 10px; }
.stock.out { color: #fa7979; }
.stock.low { color: #e3b05d; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.catalog-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #373737;
  border-radius: 999px;
  background: #121212;
  color: #aaaaaa;
  font: 500 11px "IBM Plex Sans Thai", "Prompt", sans-serif;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.catalog-filter:hover { color: #f6f6f6; border-color: #5a5a5a; }
.catalog-filter.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.catalog-filter span { font-size: 9px; opacity: .72; }
html[data-theme="light"] .catalog-filter { border-color: #e2e2e2; background: #fff; color: #666666; }
html[data-theme="light"] .catalog-filter:hover { color: #282828; border-color: #bebebe; }
html[data-theme="light"] .catalog-filter.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.product-body p { margin: 10px 0 0; color: #8e8e8e; font-size: 10px; }
.price { font: 600 17px "Prompt", sans-serif; }
.buy-button { display: flex; width: 100%; height: 34px; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; border-radius: 9px; background: #888888; color: white; text-decoration: none; font-size: 12px; }
.buy-button:hover { background: #9e9e9e; }
.buy-button.disabled { background: #282828; color: #777; pointer-events: none; }
.product-body small { display: block; margin-top: 8px; color: #8e8e8e; text-align: center; font-size: 10px; }

.faq { padding-bottom: 46px; }
.faq details { margin: 8px 0; padding: 0 15px; background: #161616; }
.faq summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; cursor: pointer; list-style: none; font-size: 13px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { width: 12px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; color: #888; content: ""; transition: background-size .18s ease; }
.faq details[open] summary::after { background-size: 100% 1px, 0 100%; }
.faq details p { margin: 0 0 13px; color: #a9a9a9; font-size: 12px; }
.site-footer { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 25px; padding: 30px 0 50px; border-top: 1px solid #272727; }
.site-footer h3 { margin: 2px 0 10px; font-size: 13px; }
.site-footer > div > a:not(.brand) { display: block; margin: 7px 0; color: #9c9c9c; text-decoration: none; font-size: 12px; }
.site-footer > div > a:hover { color: white; }
.site-footer > div > a.discord-support-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 10px; border: 1px solid #414141; border-radius: 7px; background: #1a1a1a; color: #dadada; font-size: 10px; transition: border-color .2s, background .2s, transform .2s; }
.discord-support-link:hover { transform: translateY(-1px); border-color: #898989; background: #272727; color: #f4f4f4; }
.discord-support-link .ui-icon { width: 15px; height: 15px; flex: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-brand p { margin-top: 16px; color: #7c7c7c; font-size: 11px; }
.footer-brand p span { color: #a8a8a8; }

.search-dialog, .welcome-dialog { width: min(520px, calc(100% - 28px)); padding: 24px; border: 1px solid #373737; border-radius: 17px; background: #121212; color: var(--text); box-shadow: 0 30px 100px #000b; }
.search-dialog::backdrop, .welcome-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.search-dialog h2, .welcome-dialog h2 { margin: 4px 0 14px; font: 650 19px "Prompt", sans-serif; }
.search-dialog label span { display: block; margin-bottom: 7px; color: #999; font-size: 12px; }
.search-dialog input { width: 100%; height: 43px; padding: 0 13px; border: 1px solid #373737; border-radius: 10px; outline: none; background: #191919; color: white; font: inherit; }
.search-dialog input:focus { border-color: #9e9e9e; }
.search-results { margin-top: 12px; }
.search-result { display: flex; justify-content: space-between; padding: 10px 3px; border-bottom: 1px solid #2b2b2b; color: #eee; text-decoration: none; }
.search-result small { color: #c4c4c4; }
.dialog-close, .welcome-x { position: absolute; top: 12px; right: 14px; display: grid; width: 32px; height: 32px; place-items: center; border: 0; background: transparent; color: #aaa; cursor: pointer; }
.dialog-close .ui-icon, .welcome-x .ui-icon { width: 18px; height: 18px; }
.welcome-dialog { position: relative; width: min(500px, calc(100% - 28px)); padding: 10px 10px 14px; border-radius: 17px; }
.welcome-dialog > img { display: block; width: 100%; aspect-ratio: 2.5 / 1; border-radius: 12px; object-fit: cover; }
.welcome-dialog h2 { margin: 15px 10px 4px; }
.welcome-dialog > p { margin: 0 10px 12px; color: #aaa; font-size: 13px; }
.welcome-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 10px; }
.welcome-actions button { cursor: pointer; }
.subtle { border: 0; background: transparent; color: #aaa; font: inherit; font-size: 12px; }
.welcome-x { z-index: 1; width: 34px; height: 34px; border: 1px solid #ffffff55; border-radius: 50%; background: #050505aa; color: white; }
.toast { position: fixed; z-index: 40; bottom: 18px; left: 50%; padding: 9px 15px; transform: translate(-50%, 20px); border-radius: 99px; background: #222; color: white; opacity: 0; pointer-events: none; transition: .2s; font-size: 12px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1100px) {
  .nav-wrap { padding: 0 22px; }
  .desktop-nav { gap: 13px; }
  .search-pill { width: 180px; }
}
@media (max-width: 780px) {
  .page-width { width: calc(100% - 24px); }
  .site-header { height: 55px; }
  .nav-wrap { gap: 8px; padding: 0 12px; }
  .brand { gap: 6px; font-size: 14px; }
  .brand img { width: 29px; height: 29px; }
  .desktop-nav, .search-pill, .support-desktop, .login, .register { display: none; }
  .nav-actions { gap: 7px; }
  .mobile-search, .menu-toggle { display: inline-flex; width: 36px; height: 36px; padding: 0; font-size: 21px; }
  .menu-toggle { font-size: 16px; }
  .mobile-nav { position: absolute; top: 54px; right: 0; left: 0; display: none; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 10px 12px 14px; border-bottom: 1px solid #2e2e2e; background: #0c0c0cef; }
  .mobile-nav.open { display: grid; }
  .mobile-nav a { padding: 10px 12px; border-radius: 10px; background: #181818; color: #ddd; text-decoration: none; }
  .hero { height: 308px; padding-top: 49px; }
  .hero::before { top: -205px; width: 550px; height: 330px; }
  .hero h1 { max-width: 100%; margin-top: 36px; font-size: 28px; line-height: 1.22; letter-spacing: -.7px; }
  .hero h1 span { display: block; }
  .hero > p { margin: 6px auto 17px; font-size: 11px; }
  .banner { width: calc(100% - 24px); border-radius: 10px; aspect-ratio: 2.5 / 1; }
  .banner-next { width: 38px; height: 38px; font-size: 26px; }
  .banner-dots { bottom: 7px; }
  .community-overview { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .store-overview { gap: 9px; }
  .stats-grid { gap: 7px; }
  .stat-card { min-height: 60px; padding: 8px 10px; border-radius: 14px; }
  .stat-card strong { font-size: 18px; }
  .store-notes { gap: 7px; }
  .store-note { padding: 9px; }
  .discord-community-card { min-height: 248px; }
  .content-section { padding-top: 33px; }
  .section-heading { margin-bottom: 12px; }
  .category-grid { grid-template-columns: 1fr; gap: 9px; }
  .category-card { height: 148px; }
  .category-info { bottom: 12px; left: 13px; }
  .category-info strong { font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-image { height: 132px; }
  .product-body { padding: 9px; }
  .product-title h3 { font-size: 12px; }
  .stock { font-size: 9px; }
  .price { font-size: 15px; }
  .buy-button { height: 32px; font-size: 11px; }
  .site-footer { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; padding-top: 25px; }
  .footer-brand { grid-column: 1 / -1; }
  .faq { padding-bottom: 32px; }
  .faq details { padding: 0 12px; }
  .faq summary { font-size: 12px; }
  .welcome-dialog { padding: 8px 8px 12px; }
  .welcome-dialog h2 { margin-top: 11px; font-size: 17px; }
  .welcome-dialog > p { font-size: 12px; }
  .status-pill { height: 26px; }
}
@media (max-width: 370px) {
  .brand { font-size: 12px; }
  .hero h1 { font-size: 25px; }
  .product-image { height: 112px; }
}
/* RAVEN STORE identity refresh */
:root {
  --bg: #090909;
  --panel: #111111;
  --border: #292929;
  --muted: #a3a3a3;
  --text: #f3f3f3;
  --blue: #ececec;
  --page: 1120px;
}
body { background: #090909; color: #f3f3f3; }
body::before {
  display: block;
  position: fixed;
  inset: 0;
  height: auto;
  background: linear-gradient(180deg, #09090910 0%, #09090930 58%, #090909c7 100%),
    url("assets/raven-store-background.jpg") 76% center / cover no-repeat;
  opacity: .94;
}
.site-header { height: 66px; background: #090909e8; border-bottom-color: #ffffff17; }
.nav-wrap { width: min(1240px, 100%); padding-inline: 32px; gap: 34px; }
.brand { gap: 11px; font-size: 15px; letter-spacing: .12em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; mix-blend-mode: screen; }
.brand small { color: #a7a39a; font-size: .76em; font-weight: 400; letter-spacing: .22em; }
.desktop-nav { gap: 24px; }
.desktop-nav a { font-size: 12px; }
.desktop-nav a.active, .desktop-nav a:hover { color: #dadada; }
.button, .circle-button, .search-pill { border-radius: 8px; }
.button.primary, .buy-button { background: #c0c0c0; color: #11100d; box-shadow: none; }
.button.primary:hover, .buy-button:hover { background: #d2d2d2; }
.button.outline, .circle-button, .search-pill { border-color: #37352f; background: #111110; }
.button.outline:hover, .circle-button:hover, .search-pill:hover { background: #1b1a17; }
.discord-header-button { border-color: #5865f2; }
.discord-header-button:hover { border-color: #5865f2; background: #1a1a22; }
.discord-header-button .discord-mark { display: block; width: 19px; height: 19px; object-fit: contain; }
html[data-theme="light"] .discord-header-button:hover { border-color: #5865f2; background: #eef0ff; }
.hero {
  display: flex; height: 390px; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 0 16px; text-align: left;
}
.hero::before {
  display: none;
}
.status-pill { height: 30px; padding: 0 12px; border-color: #484848; border-radius: 5px; background: #181818cc; color: #cccccc; }
.status-pill i { background: #a6b18b; box-shadow: 0 0 10px #a6b18b6b; }
.hero .hero-kicker { margin: 24px 0 -23px; color: #c8c8c8; font-size: 10px; font-weight: 600; letter-spacing: .23em; }
.hero h1 { max-width: 560px; margin: 30px 0 10px; font-size: clamp(38px, 5.1vw, 62px); line-height: 1.16; letter-spacing: -.04em; }
.hero h1 span { color: #cccccc; }
.hero > p:not(.hero-kicker) { max-width: 465px; margin: 0 0 22px; color: #aaa79f; font-size: 14px; line-height: 1.8; }
.hero-actions { justify-content: flex-start; }
.hero-actions .button { min-height: 44px; padding-inline: 18px; }
.banner {
  max-height: none; aspect-ratio: 3.65 / 1; border-color: #3a3832; border-radius: 12px;
  background: #11110f; box-shadow: 0 18px 52px #0008;
}
.banner > img, .banner > video { object-position: 50% 43%; opacity: .55; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0a0a09 0%, #0a0a09cc 33%, #0a0a0933 75%, #0a0a0970); }
.banner-copy { position: absolute; z-index: 1; top: 50%; left: 6%; display: flex; flex-direction: column; transform: translateY(-50%); }
.banner-eyebrow { margin-bottom: 8px; color: #c8c8c8; font-size: 10px; font-weight: 600; letter-spacing: .25em; }
.banner-copy strong { font: 500 clamp(24px, 3.3vw, 40px)/1.08 "Prompt", sans-serif; letter-spacing: -.035em; }
.banner-copy > span:last-child { margin-top: 8px; color: #c1beb6; font-size: 12px; letter-spacing: .025em; }
.community-overview { grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: 13px; margin-top: 18px; }
.stat-card, .category-card, .product-card, .faq details {
  border-color: #292825; border-radius: 11px; background: #111110ed; box-shadow: 0 12px 38px #0003;
}
.store-overview-heading h2 { font-size: 21px; }
.store-overview-heading p { color: #aaa79f; }
.stat-card { min-height: 67px; padding: 11px 13px; }
.stat-card strong { font-size: 21px; }
.store-note { min-height: 68px; border-color: #292825; background: #111110ed; }
.discord-community-card { min-height: 273px; }
.content-section { padding-top: 52px; }
.section-heading { margin-bottom: 17px; }
.section-heading p { color: #8f8c84; font-size: 11px; letter-spacing: .06em; }
.text-link { color: #c4b991; }
.category-grid { gap: 16px; }
.category-card { height: 190px; border-radius: 10px; }
.category-shade { background: linear-gradient(90deg, #080807df, #08080755 68%, #0002), linear-gradient(0deg, #000b, transparent 78%); }
.category-info { left: 19px; bottom: 17px; }
.category-info strong { font-size: 17px; font-weight: 500; }
.category-info b { color: #d2d2d2; }
.product-grid { gap: 15px; }
.product-card { border-radius: 10px; }
.product-image { height: 160px; background: #11110f; }
.badge { border-radius: 4px; background: #c0c0c0; color: #15130e; }
.badge.sold { border-color: #ffffff34; background: #11110fdc; color: #f2f0e9; }
.product-body { padding: 14px; }
.product-title h3 { font-size: 13px; }
.product-body p, .product-body small { color: #8f8c84; }
.price { color: #d8d8d8; }
.buy-button { border-radius: 6px; font-weight: 600; }
.buy-button.disabled { background: #292824; color: #88857d; }
.faq details { background: #111110; }
.faq summary { font-size: 13px; }
.site-footer { margin-top: 4px; border-top-color: #2b2924; }
.footer-brand p { line-height: 1.8; }
.search-dialog, .welcome-dialog { border-color: #39372f; border-radius: 12px; background: #11110f; }
.search-dialog input { border-radius: 7px; }
.search-dialog input:focus { border-color: #c0c0c0; }
.search-result small { color: #d2d2d2; }
.welcome-dialog > img { object-position: center 41%; }

@media (max-width: 780px) {
  .site-header { height: 58px; }
  .nav-wrap { padding-inline: 15px; }
  .brand { font-size: 13px; }
  .brand img { width: 30px; height: 30px; }
  .mobile-nav { top: 57px; border-color: #292825; background: #0b0b0af2; }
  .mobile-nav a { border-radius: 6px; background: #151512; }
  .hero { height: 352px; padding: 0 8px 8px; }
  .hero::before { display: none; }
  .hero h1 { margin: 28px 0 10px; font-size: clamp(34px, 9vw, 48px); }
  .hero .hero-kicker { margin-top: 20px; }
  .hero > p:not(.hero-kicker) { max-width: 330px; font-size: 12px; }
  .banner { aspect-ratio: 1.8 / 1; border-radius: 9px; }
  .banner-copy { left: 7%; }
  .banner-copy > span:last-child { max-width: 195px; font-size: 10px; }
  .community-overview { grid-template-columns: 1fr; margin-top: 12px; }
  .store-overview-heading h2 { font-size: 19px; }
  .discord-community-card { min-height: 250px; }
  .content-section { padding-top: 38px; }
  .category-card { height: 155px; }
  .product-image { height: 132px; }
  .product-body { padding: 10px; }
}
@media (max-width: 370px) {
  .brand { font-size: 11px; }
  .hero h1 { font-size: 32px; }
  .banner { aspect-ratio: 1.5 / 1; }
}

/* Lightweight storefront motion */
body { opacity: 0; transform: translateY(7px); transition: opacity .5s ease, transform .5s ease; }
body.is-ready { opacity: 1; transform: none; }
.hero .status-pill, .hero .hero-kicker, .hero h1, .hero > p, .hero-actions, .banner {
  animation: rise-in .72s cubic-bezier(.2,.7,.2,1) both;
}
.hero .hero-kicker { animation-delay: .08s; }
.hero h1 { animation-delay: .14s; }
.hero > p { animation-delay: .22s; }
.hero-actions { animation-delay: .29s; }
.banner { animation-delay: .36s; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.product-card { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.product-card:hover { transform: translateY(-5px); border-color: #7a7a7a; box-shadow: 0 18px 42px #0007, 0 0 0 1px #c0c0c022; }
.product-image > img { transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.product-card:hover .product-image > img { transform: scale(1.055); filter: saturate(1.08); }
.buy-button { transition: transform .18s ease, filter .18s ease, background .2s ease; }
.buy-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.search-result { align-items: center; gap: 10px; }
.search-result img { width: 42px; height: 34px; flex: none; border-radius: 5px; object-fit: cover; }
.search-result span { flex: 1; }
.reading-progress { position: fixed; z-index: 120; top: 0; left: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, #989898, #d9d9d9); box-shadow: 0 0 12px #c0c0c066; pointer-events: none; }
.route-transition { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; transform: translateY(101%); background: radial-gradient(ellipse at 50% 100%, #424242, #121212 62%, #090909); transition: transform .42s cubic-bezier(.76,0,.2,1); pointer-events: none; }
.route-transition::after { content: "RAVEN  /  STORE"; color: #ececec; font-size: 11px; font-weight: 600; letter-spacing: .3em; opacity: 0; transform: translateY(9px); transition: opacity .2s .12s ease, transform .2s .12s ease; }
.route-transition.is-active { transform: translateY(0); }
.route-transition.is-active::after { opacity: .8; transform: translateY(0); }
:is(button, a[href], [role="button"], summary, .payment-option, input[type="button"], input[type="submit"], input[type="reset"]) { -webkit-tap-highlight-color: transparent; }
:is(button:not(:disabled), a[href], [role="button"], summary, .payment-option, input[type="button"]:not(:disabled), input[type="submit"]:not(:disabled), input[type="reset"]:not(:disabled)):active { scale: .97 !important; filter: brightness(.9) !important; }
:is(button, a[href], [role="button"], summary, .payment-option, input[type="button"], input[type="submit"], input[type="reset"]):focus-visible { outline: 2px solid #c0c0c0; outline-offset: 2px; }
.pulse-container { position: relative; overflow: hidden; }
.click-pulse { position: absolute; z-index: 5; width: 8px; height: 8px; border: 1px solid #f0f0f0; border-radius: 50%; background: #d7d7d744; box-shadow: 0 0 0 0 #d7d7d777; transform: translate(-50%, -50%); pointer-events: none; animation: click-pulse .5s ease-out forwards; }
.mobile-nav.open { transform-origin: top center; animation: menu-drop .22s cubic-bezier(.2,.7,.2,1) both; }
.search-dialog[open] { animation: dialog-enter .24s cubic-bezier(.2,.7,.2,1) both; }
.search-dialog::backdrop { animation: backdrop-in .2s ease both; }
.faq details[open] { border-color: #505050; }
.faq details[open] p { animation: rise-in .24s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes click-pulse { to { opacity: 0; transform: translate(-50%, -50%) scale(11); box-shadow: 0 0 0 2px #d7d7d700; } }
@keyframes menu-drop { from { opacity: 0; transform: translateY(-8px) scaleY(.95); } to { opacity: 1; transform: translateY(0) scaleY(1); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body, .reveal { opacity: 1; transform: none; }
  :is(button, a[href], [role="button"], summary, .payment-option, input[type="button"], input[type="submit"], input[type="reset"]):active { scale: 1 !important; filter: none !important; }
}

.site-preference-controls { display: inline-flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 6px; white-space: nowrap; }
.language-switch { display: inline-flex; flex: 0 0 auto; flex-flow: row nowrap; align-items: center; gap: 2px; padding: 3px; border: 1px solid #373737; border-radius: 999px; background: #121212; white-space: nowrap; }
.language-switch button, .theme-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: transparent; color: #c9c9c9; cursor: pointer; }
.language-switch button { min-width: 43px; height: 29px; gap: 4px; padding: 0 6px; font: 600 9px/1 "Prompt", sans-serif; white-space: nowrap; }
.language-switch img { display: block; flex: 0 0 auto; width: 17px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px #ffffff25; }
.language-switch button.is-active { background: #2c2c2c; color: white; }
.theme-toggle { width: 36px; height: 36px; border: 1px solid #373737; background: #121212; transition: background .2s, transform .2s, border-color .2s; }
.theme-toggle:hover { transform: translateY(-1px); border-color: #6c6c6c; background: #1e1e1e; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) {
  .nav-wrap { gap: 12px; }
  .desktop-nav { gap: 10px; }
  .search-pill, .support-desktop { display: none; }
  .mobile-search { display: inline-flex; width: 36px; height: 36px; padding: 0; font-size: 21px; }
}
@media (max-width: 780px) {
  .site-preference-controls { gap: 4px; }
  .language-switch { gap: 1px; padding: 2px; }
  .language-switch button { min-width: 39px; height: 28px; }
  .theme-toggle { width: 34px; height: 34px; }
}
@media (max-width: 380px) {
  .site-preference-controls { gap: 3px; }
  .language-switch button { min-width: 27px; padding: 0 4px; font-size: 0; }
  .language-switch img { width: 19px; height: 14px; }
  .theme-toggle { width: 31px; height: 31px; }
  .mobile-search { display: none !important; }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f6;
  --panel: #ffffff;
  --border: #e2e2e2;
  --muted: #6d6d6d;
  --text: #252525;
  --blue: #111111;
}
html[data-theme="light"] body { background-color: #f6f6f6; color: #272727; }
html[data-theme="light"] body::before { height: 610px; background: radial-gradient(ellipse at 50% 0, #e3e3e3 0, #f2f2f2 42%, #f6f6f6 82%); }
html[data-theme="light"] .site-header { background: #ffffffed; border-bottom-color: #e2e2e2; }
html[data-theme="light"] .brand { color: #252525; }
html[data-theme="light"] .desktop-nav a { color: #5f5f5f; }
html[data-theme="light"] .desktop-nav a:hover, html[data-theme="light"] .desktop-nav a.active { color: #1d1d1d; }
html[data-theme="light"] .button.outline, html[data-theme="light"] .circle-button, html[data-theme="light"] .search-pill, html[data-theme="light"] .language-switch, html[data-theme="light"] .theme-toggle { border-color: #dcdcdc; background: #fff; color: #3f3f3f; }
html[data-theme="light"] .button.outline:hover, html[data-theme="light"] .circle-button:hover, html[data-theme="light"] .search-pill:hover, html[data-theme="light"] .theme-toggle:hover { background: #f2f2f2; }
html[data-theme="light"] .language-switch button.is-active { background: #ebebeb; color: #2a2a2a; }
html[data-theme="light"] .status-pill { border-color: #dcdcdc; background: #ffffffd9; color: #5e5e5e; }
html[data-theme="light"] .hero > p:not(.hero-kicker) { color: #666666; }
html[data-theme="light"] .stat-card, html[data-theme="light"] .product-card, html[data-theme="light"] .faq details { border-color: #e2e2e2; background: #ffffffed; box-shadow: 0 10px 32px #2e2e2e0a; }
html[data-theme="light"] .store-overview-heading p, html[data-theme="light"] .store-note small, html[data-theme="light"] .stat-card > span:first-child, html[data-theme="light"] .section-heading p, html[data-theme="light"] .text-link, html[data-theme="light"] .product-body p, html[data-theme="light"] .product-body small, html[data-theme="light"] .footer-brand p { color: #6f6f6f; }
html[data-theme="light"] .stat-card small { color: #6f6f6f; }
html[data-theme="light"] .store-note { border-color: #e2e2e2; background: #ffffffed; }
html[data-theme="light"] .store-note-icon { background: #f2f2f2; color: #6a6a6a; }
html[data-theme="light"] .preview-chip { border-color: #dadada; color: #6a6a6a; }
html[data-theme="light"] .faq details[open] { border-color: #cccccc; }
html[data-theme="light"] .faq details p { color: #656565; }
html[data-theme="light"] .site-footer { border-top-color: #e2e2e2; }
html[data-theme="light"] .site-footer > div > a:not(.brand) { color: #656565; }
html[data-theme="light"] .site-footer > div > a:hover, html[data-theme="light"] .text-link:hover { color: #272727; }
html[data-theme="light"] .site-footer > div > a.discord-support-link { border-color: #dfdfdf; background: #f8f8f8; color: #5f5f5f; }
html[data-theme="light"] .site-footer > div > a.discord-support-link:hover { border-color: #ababab; background: #eeeeee; color: #363636; }
html[data-theme="light"] .discord-header-button:hover { border-color: #a5a5a5; background: #a5a5a5; }
html[data-theme="light"] .footer-brand p span { color: #636363; }
html[data-theme="light"] .search-dialog, html[data-theme="light"] .welcome-dialog { border-color: #dcdcdc; background: #fff; color: #2a2a2a; box-shadow: 0 30px 100px #22222230; }
html[data-theme="light"] .search-dialog label span, html[data-theme="light"] .search-empty { color: #6d6d6d; }
html[data-theme="light"] .search-dialog input { border-color: #dadada; background: #f9f9f9; color: #272727; }
html[data-theme="light"] .search-result { border-bottom-color: #e6e6e6; color: #2c2c2c; }
html[data-theme="light"] .dialog-close { color: #585858; }
html[data-theme="light"] .mobile-nav { border-color: #dcdcdc; background: #fffefa; box-shadow: 0 18px 35px #1c1c1c16; }
html[data-theme="light"] .mobile-nav a { background: #f4f4f4; color: #333333; }

@media (max-width: 460px) {
  .store-notes { grid-template-columns: 1fr; }
  .store-overview-heading { gap: 8px; }
  .store-overview-heading h2 { font-size: 18px; }
  .store-overview-heading p { max-width: 290px; font-size: 11px; }
}

/* ---------- Monochrome storefront theme ---------- */
body::before { filter: grayscale(1) contrast(1.06) brightness(.92); }
.banner > img, .banner > video { filter: grayscale(1) contrast(1.08) brightness(.92); }
img[src*="raven-store-background.jpg"], img[src*="raven-background.jpg"] { filter: grayscale(1) contrast(1.03); }
.button.primary, .buy-button { background: var(--blue); color: #0b0b0b; }
.button.primary:hover, .buy-button:hover { background: #ffffff; color: #0b0b0b; }
.catalog-filter.is-active { border-color: var(--blue); background: var(--blue); color: #0b0b0b; }
.badge:not(.sold) { background: var(--blue); color: #0b0b0b; }
.hero h1 span, .hero .hero-kicker, .banner-eyebrow, .category-info b, .price, .text-link, .search-result small { color: var(--text); }
.status-pill i { background: #d9d9d9; box-shadow: 0 0 10px #ffffff4d; }
.discord-header-button:hover { border-color: #dedede; background: #2b2b2b; }
.banner .banner-copy, .banner .banner-copy strong { color: #f2f2f2; }
.banner .banner-eyebrow { color: #d9d9d9; }
.banner .banner-copy > span:last-child { color: #c8c8c8; }
.search-dialog input:focus { border-color: var(--blue); }
html[data-theme="light"] body::before { filter: grayscale(1) brightness(.99); }
html[data-theme="light"] .button.primary,
html[data-theme="light"] .buy-button:not(.disabled),
html[data-theme="light"] .catalog-filter.is-active,
html[data-theme="light"] .badge:not(.sold) { border-color: #111111; background: #111111; color: #f7f7f7; }
html[data-theme="light"] .button.primary:hover,
html[data-theme="light"] .buy-button:not(.disabled):hover { background: #2c2c2c; color: #f7f7f7; }

/* ---------- Product card: pointer tilt, spotlight and the RAVEN emblem ---------- */
.product-card {
  position: relative;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transform-origin: 50% 50%;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.product-card.is-tilting { transition-duration: .14s, .3s, .3s; }
.product-card:hover {
  z-index: 3;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-5px);
  border-color: #8a8a8a;
  box-shadow: 0 24px 60px #000b, 0 0 0 1px #ffffff1f;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), #ffffff16, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  mix-blend-mode: screen;
}
.product-card:hover::before,
.product-card:focus-within::before { opacity: 1; }
.product-image > .product-photo { transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.product-shine {
  position: absolute;
  inset: -30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, #ffffff30 50%, transparent 58%);
  opacity: 0;
  transform: translateX(-65%) rotate(6deg);
}
.product-media {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(.86) translateY(10px);
  transition: opacity .35s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.product-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, #000000ba, #00000055 46%, transparent 74%);
}
.product-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff28, transparent 68%);
  filter: blur(7px);
}
.product-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  margin: -66px 0 0 -66px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(-18deg);
}
.product-orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px #ffffff;
  transform: translateX(-50%);
}
.product-orbit-b {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-color: #ffffff30;
  transform: rotateX(70deg) rotateZ(32deg);
}
.product-emblem {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px #ffffff66);
}
.product-image > .badge { z-index: 4; }
.product-card:hover .product-media,
.product-card:focus-within .product-media { opacity: 1; transform: scale(1) translateY(0); }
.product-card:hover .product-image > .product-photo,
.product-card:focus-within .product-image > .product-photo { transform: scale(1.08); filter: brightness(.5) saturate(.7); }

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-shine { animation: card-shine .95s cubic-bezier(.2,.8,.2,1) .06s both; }
  .product-card:hover .product-orbit-a { animation: card-orbit 8s linear infinite; }
  .product-card:hover .product-orbit-b { animation: card-orbit 12s linear infinite reverse; }
  .product-card:hover .product-emblem { animation: card-emblem 3.6s ease-in-out infinite; }
}

@keyframes card-shine {
  0% { opacity: 0; transform: translateX(-65%) rotate(6deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(65%) rotate(6deg); }
}
@keyframes card-orbit {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}
@keyframes card-emblem {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card:hover { transform: none !important; }
  .product-card::before,
  .product-card:hover .product-shine,
  .product-card:hover .product-orbit,
  .product-card:hover .product-emblem { animation: none !important; }
  .product-image > .product-photo,
  .product-media { transition: none !important; }
  .product-card:hover .product-image > .product-photo { transform: none; filter: brightness(.6); }
}

/* The wide search field does not fit beside the nav and account buttons; use
   the compact search button everywhere and keep the Discord support button. */
.search-pill { display: none; }
.mobile-search { display: inline-flex; width: 36px; height: 36px; padding: 0; font-size: 21px; }

/* The five-item desktop bar is too wide for small laptops; switch to the
   compact header before the old 780px breakpoint. */
@media (min-width: 781px) and (max-width: 1100px) {
  body:not(.admin-document) .site-header { height: 58px; }
  body:not(.admin-document) .nav-wrap { gap: 10px; padding: 0 22px; }
  body:not(.admin-document) .desktop-nav,
  body:not(.admin-document) .login,
  body:not(.admin-document) .register,
  body:not(.admin-document) .search-pill,
  body:not(.admin-document) .support-desktop { display: none; }
  body:not(.admin-document) .mobile-search,
  body:not(.admin-document) .menu-toggle { display: inline-flex; width: 36px; height: 36px; padding: 0; }
  body:not(.admin-document) .menu-toggle { font-size: 16px; }
  body:not(.admin-document) .mobile-nav {
    position: absolute;
    top: 57px;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 10px 22px 14px;
    border-bottom: 1px solid #292825;
    background: #0b0b0af2;
  }
  body:not(.admin-document) .mobile-nav.open { display: grid; }
  body:not(.admin-document) .mobile-nav a {
    padding: 10px 12px;
    border-radius: 6px;
    background: #151512;
    color: #dddddd;
    text-decoration: none;
  }
}

/* Keep the credit chip on the desktop bar without clipping on 1101–1279px
   laptops: drop the decorative nav icons and tighten the gaps. */
@media (min-width: 1101px) and (max-width: 1279px) {
  .desktop-nav { gap: 20px; }
  .desktop-nav .nav-icon { display: none; }
}

/* Signed-in wallet balance in the header and mobile menu. */
.credit-chip {
  display: inline-flex;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #37352f;
  border-radius: 8px;
  background: #111110;
  color: #f2f2f2;
  text-decoration: none;
  white-space: nowrap;
  font: 600 12px "Prompt", sans-serif;
  transition: border-color .2s, background .2s, transform .2s;
}
.credit-chip:hover { transform: translateY(-1px); border-color: #6c6c6c; background: #1b1a17; }
.credit-chip svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.credit-chip[hidden] { display: none; }
.mobile-nav .mobile-credit {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #333333;
  border-radius: 10px;
  background: #181818;
  color: #dddddd;
  text-decoration: none;
  font-size: 11px;
}
.mobile-nav .mobile-credit[hidden] { display: none; }
.mobile-nav .mobile-credit strong { margin-left: auto; color: #f2f2f2; font: 600 13px "Prompt", sans-serif; }
.mobile-nav .mobile-credit b { color: #bdbdbd; font-weight: 400; }
@media (max-width: 780px) {
  .credit-chip { display: none !important; }
}
html[data-theme="light"] .credit-chip { border-color: #dcdcdc; background: #ffffff; color: #1f1f1f; }
html[data-theme="light"] .credit-chip:hover { border-color: #9a9a9a; background: #f4f4f4; }
html[data-theme="light"] .mobile-nav .mobile-credit { border-color: #dcdcdc; background: #f4f4f4; color: #4a4a4a; }
html[data-theme="light"] .mobile-nav .mobile-credit strong { color: #111111; }
html[data-theme="light"] .mobile-nav .mobile-credit b { color: #666666; }


/* ---------- Catalog price from variants ---------- */
.price-from { margin-right: 3px; color: var(--muted); font: 400 10px "IBM Plex Sans Thai", sans-serif; }

/* ---------- Account icon in the mobile menu ---------- */
.mobile-nav a.has-icon { display: flex; align-items: center; gap: 8px; }
.mobile-nav a.has-icon .nav-icon { display: inline-flex; width: 16px; height: 16px; flex: none; }
.mobile-nav a.has-icon .nav-icon svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Site-wide ban notice ---------- */
.site-ban-banner {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid #6b3a3a;
  border-radius: 10px;
  background: #1b0f0fee;
  color: #f2dede;
  box-shadow: 0 16px 40px #0008;
  backdrop-filter: blur(12px);
  font: 400 12px/1.6 "IBM Plex Sans Thai", "Prompt", sans-serif;
}
.site-ban-banner > svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: #e08a8a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-ban-banner div { min-width: 0; flex: 1; }
.site-ban-banner strong { display: block; color: #ffd9d9; font-size: 12px; }
.site-ban-banner span { display: block; margin-top: 2px; color: #d9bcbc; font-size: 11px; }
.site-ban-banner a {
  flex: none;
  align-self: center;
  padding: 5px 9px;
  border: 1px solid #6b3a3a;
  border-radius: 6px;
  color: #ffd9d9;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
}
.site-ban-banner a:hover { background: #2a1717; }
html[data-theme="light"] .site-ban-banner {
  border-color: #e2b8b8;
  background: #fff7f7f2;
  color: #5b2222;
  box-shadow: 0 16px 40px #1c1c1c22;
}
html[data-theme="light"] .site-ban-banner strong { color: #7a1f1f; }
html[data-theme="light"] .site-ban-banner span { color: #6b3a3a; }
html[data-theme="light"] .site-ban-banner a { border-color: #e2b8b8; color: #7a1f1f; }
.site-error-card {
  position: fixed;
  z-index: 65;
  top: 78px;
  right: 16px;
  width: min(420px, calc(100% - 32px));
  padding: 12px 40px 12px 14px;
  border: 1px solid #6b3a3a;
  border-radius: 10px;
  background: #1b0f0fee;
  color: #f2dede;
  box-shadow: 0 16px 40px #0008;
  backdrop-filter: blur(12px);
  font: 400 12px/1.6 "IBM Plex Sans Thai", "Prompt", sans-serif;
}
.site-error-card[hidden] { display: none; }
.site-error-card strong { display: block; color: #ffd9d9; font-size: 12px; }
.site-error-card p { margin: 2px 0 9px; color: #d9bcbc; font-size: 11px; line-height: 1.6; }
.site-error-card .site-error-actions { display: flex; justify-content: flex-end; }
.site-error-card a {
  padding: 5px 9px;
  border: 1px solid #6b3a3a;
  border-radius: 6px;
  color: #ffd9d9;
  text-decoration: none;
  font-size: 11px;
}
.site-error-card a:hover { background: #2a1717; }
.site-error-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d9bcbc;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.site-error-close:hover { background: #2a1717; color: #fff; }
html[data-theme="light"] .site-error-card { border-color: #e2b8b8; background: #fff7f7f2; color: #5b2222; box-shadow: 0 16px 40px #1c1c1c22; }
html[data-theme="light"] .site-error-card strong { color: #7a1f1f; }
html[data-theme="light"] .site-error-card p { color: #6b3a3a; }
html[data-theme="light"] .site-error-card a { border-color: #e2b8b8; color: #7a1f1f; }
html[data-theme="light"] .site-error-close { color: #7a1f1f; }
@media (max-width: 600px) {
  .site-ban-banner { right: 8px; bottom: 8px; left: 8px; padding: 10px 11px; }
  .site-ban-banner a.ban-account-link { display: none; }
  .site-ban-banner a.ban-ticket-link { display: inline-flex; }
  .site-error-card { top: 66px; right: 8px; width: calc(100% - 16px); }
}
