/* The look both public pages share: font, background, header, page width, headings and cards. Load last. */
:root {
  --shell-bg: #090b18;
  --shell-line: #2a2f5a;
  --shell-text: #f2f3ff;
  --shell-muted: #a0a5cc;
  --shell-accent: #8b7bff;
  --shell-accent-2: #5cc8ff;
  --shell-width: 1240px;
  --shell-gutter: max(24px, calc((100% - var(--shell-width)) / 2));
  --shell-font: "Noto Sans Thai", "Leelawadee UI", "Segoe UI", system-ui, sans-serif;
}

html body {
  color: var(--shell-text);
  font-family: var(--shell-font);
  background: radial-gradient(900px 500px at 80% -10%, #2b2470 0%, transparent 70%), radial-gradient(700px 500px at 0% 30%, #123a5c 0%, transparent 65%), var(--shell-bg);
  background-attachment: fixed;
}
html body button, html body input, html body summary { font-family: var(--shell-font); }

/* Header */
html body .shop-header, html body .site-header {
  position: sticky; inset-block-start: 0; z-index: 20;
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  box-sizing: border-box; width: 100%; max-width: none; min-height: 68px; margin: 0;
  padding: 10px var(--shell-gutter);
  border-bottom: 1px solid #ffffff14;
  background: rgb(9 11 24 / 78%);
  backdrop-filter: blur(14px);
}
html body .site-header::after { display: none; }
html body .shop-brand, html body .site-header .brand { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; }
html body .shop-brand img, html body .site-header .brand-seal { width: 38px; height: 38px; }
html body .shop-brand img { border-radius: 11px; }
html body .site-header .brand-seal-image > img { border: 0; border-radius: 11px; }
html body .site-header .brand-seal i { display: none; }
html body .shop-brand #brand-name, html body .site-header .brand-name strong { color: var(--shell-text); font-size: 18px; font-weight: 800; letter-spacing: 0; }
html body .site-header .brand-name small { display: none; }

/* Menu and header buttons */
html body .shop-header nav, html body .top-nav { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; }
html body .shop-header nav a, html body .top-nav-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 10px;
  background: none; color: var(--shell-muted); font-size: 14px; font-weight: 600; letter-spacing: 0;
}
html body .shop-header nav a:hover, html body .shop-header nav a.is-current, html body .top-nav-link:hover, html body .top-nav-link.is-current { background: #ffffff12; color: var(--shell-text); }
html body .shop-language, html body .language-toggle, html body .shop-header nav a.shop-discord, html body .discord-link, html body .overflow-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 13px;
  border: 1px solid var(--shell-line); border-radius: 10px; background: #ffffff08; color: var(--shell-text);
  font-size: 13px; font-weight: 700; letter-spacing: 0; cursor: pointer; transition: background-color .18s ease, border-color .18s ease;
}
html body .shop-language:hover, html body .language-toggle:hover, html body .shop-discord:hover, html body .discord-link:hover, html body .overflow-trigger:hover { border-color: var(--shell-accent); background: #ffffff12; }
html body a:focus-visible, html body button:focus-visible, html body summary:focus-visible { outline: 2px solid var(--shell-accent-2); outline-offset: 2px; }
html body .header-actions { display: flex; align-items: center; gap: 8px; margin: 0; }

/* Page width */
html body .main-shell { width: 100%; max-width: none; margin: 0; }
html body .shop-main, html body .directory-view, html body .profile-view { box-sizing: border-box; width: 100%; max-width: calc(var(--shell-width) + 48px); margin-inline: auto; padding-inline: 24px; }

/* Headings */
html body #directory-title { margin: 0; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; line-height: 1.16; letter-spacing: 0; }
html body #directory-title em { color: var(--shell-accent); font-style: normal; }
html body .eyebrow, html body .directory-view .kicker { margin: 0 0 10px; color: var(--shell-accent-2); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
html body .directory-view .kicker-star { color: inherit; }

/* Cards */
html body .panel, html body .banner, html body .latest { border-color: var(--shell-line); }
html body .panel { border-radius: 16px; background: linear-gradient(140deg, #1a1d33, #11152a); }
html body .directory-view article[data-account-id] { border-color: var(--shell-line); border-radius: 16px; }

@media (max-width: 760px) {
  html body .shop-header, html body .site-header { flex-wrap: wrap; gap: 8px; min-height: 60px; padding: 8px 16px; }
  html body .shop-main, html body .directory-view, html body .profile-view { padding-inline: 16px; }
  html body .shop-header nav a.shop-discord { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html body .shop-language, html body .language-toggle, html body .shop-discord, html body .discord-link, html body .overflow-trigger { transition: none; }
}
