:root {
  --bg: #090b18; --panel: #111430; --line: #2a2f5a; --text: #f2f3ff; --muted: #a0a5cc;
  --accent: #8b7bff; --accent-2: #5cc8ff; --money: #5ee0b0;
  --font: "Noto Sans Thai", "Leelawadee UI", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--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(--bg);
}
a { color: inherit; text-decoration: none; }
.shop-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 14px 24px; }
.shop-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.shop-brand img { width: 32px; height: 32px; border-radius: 9px; }
.shop-brand em { font-style: normal; color: var(--accent-2); }
.shop-header nav { display: flex; gap: 6px; }
.shop-header nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.shop-header nav a:hover, .shop-header nav a.is-current { color: var(--text); background: #ffffff12; }
.shop-main { max-width: 1080px; margin: 0 auto; padding: 8px 24px 48px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: center; padding: 20px 0 32px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-2); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.16; font-weight: 800; }
h1 span { color: var(--accent); }
.lead { margin: 14px 0 20px; max-width: 480px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-primary, .button-ghost { display: inline-flex; justify-content: center; padding: 11px 19px; border-radius: 11px; font-weight: 700; font-size: 15px; transition: transform .15s ease; }
.button-primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #0a0c20; }
.button-ghost { border: 1px solid var(--line); background: #ffffff08; }
@media (hover: hover) { .button-primary:hover, .button-ghost:hover { transform: translateY(-2px); } }
.latest { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: #ffffff08; font-size: 14px; }
.latest b { flex: none; color: var(--accent-2); }
.latest-view { flex: 1; min-width: 0; overflow: hidden; }
.latest-track { display: flex; width: max-content; animation: latest-scroll linear infinite; }
.latest:hover .latest-track, .latest:focus-within .latest-track { animation-play-state: paused; }
.latest-group { display: flex; flex: none; gap: 32px; padding-right: 32px; white-space: nowrap; }
@keyframes latest-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .latest-view { overflow-x: auto; }
  .latest-track { animation: none; }
  .latest-group[aria-hidden="true"] { display: none; }
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.stats dd { margin: 0; font-size: 24px; font-weight: 800; }
.stats dt { margin-top: 2px; color: var(--muted); font-size: 12px; }
.banner { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 24px 60px #0008; }
.banner-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22, .8, .24, 1); }
.banner-slide { position: relative; flex: 0 0 100%; display: block; height: 100%; }
.banner-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 34px; background: linear-gradient(transparent, #000c); font-size: 18px; font-weight: 700; }
.banner-arrow { position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: #0009; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: .75; transition: opacity .15s; }
.banner-arrow:hover { opacity: 1; }
.banner-arrow-prev { left: 12px; }
.banner-arrow-next { right: 12px; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; }
.banner-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #ffffff70; cursor: pointer; transition: background .2s, transform .2s; }
.banner-dots button.is-current { background: #fff; transform: scale(1.35); }
h1 i { font-style: normal; }
@media (prefers-reduced-motion: reduce) { .banner-track { transition: none; } }
.banner-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.panel { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #111430d9; }
.panel h2 { margin: 0 0 8px; font-size: 16px; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 9px 0; border-top: 1px solid #ffffff12; font-size: 14px; }
.rows li:first-child { border-top: 0; }
.rows .row-empty { color: var(--muted); }
.row-place { width: 24px; color: var(--accent-2); font-weight: 800; }
.row-name { font-weight: 700; }
.row-when { color: var(--muted); font-size: 12px; }
.row-amount { margin-left: auto; color: var(--money); font-weight: 800; }
.discord-card { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.discord-card img { width: 48px; height: 48px; border-radius: 12px; }
.discord-card strong, .discord-card small { display: block; }
.discord-card small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.discord-panel .button-primary { display: flex; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 8px; }
  .board { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .shop-header { padding: 14px 16px; }
  .shop-main { padding: 8px 16px 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions a { flex: 1 1 100%; }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid #5cc8ff; outline-offset: 2px; }

.stats dd, .row-amount { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 5; padding: 10px 14px; border-radius: 8px; background: #fff; color: #0a0c20; }
.skip-link:focus { top: 12px; }
.banner-pause { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #0009; color: #fff; cursor: pointer; }

.job-grid { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.job-grid .row-empty { color: var(--muted); font-size: 14px; }
.job-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; border: 1px solid #ffffff12; border-radius: 12px; background: #ffffff08; }
.job-card img { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #0005; }
.job-card div { min-width: 0; }
.job-card strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.job-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.shop-language { padding: 8px 12px; border: 1px solid #ffffff24; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.shop-language:hover { background: #ffffff12; }

.how-link { display: inline-block; margin: 0 0 10px; color: #b9a8ff; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.how-link:hover { color: #fff; }
.how-link:focus-visible { outline: 2px solid #8f7cff; outline-offset: 2px; }
