:root {
  color-scheme: dark;
  --bg: #071610;
  --green: #63f2a6;
  --cyan: #72e6ed;
  --gold: #eacb78;
  --white: #f5fff9;
  --muted: #9ab4a7;
  --line: #b0f7d31c;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-color: #43d88a #071610;
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font:
    15px/1.6 Inter,
    "Noto Sans Thai",
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #071610;
}
.backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0716109c, #071610e8 65%, #071610);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: #071610c9;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand-mini {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -1px;
  color: var(--green);
}
.brand-mini span {
  color: var(--white);
  font-size: 16px;
  margin-left: 5px;
}
.nav,
.account-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}
.nav a {
  font-size: 13px;
  color: #c2d7cb;
  transition:
    color 0.2s,
    text-shadow 0.2s;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--green);
  text-shadow: 0 0 18px #63f2a688;
}
.account-actions select {
  max-width: 120px;
  background: #0d241b;
  color: white;
  border: 1px solid var(--line);
  padding: 9px;
  border-radius: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px #63f2a626;
}
.primary {
  color: #062015;
  background: linear-gradient(120deg, var(--green), #a2f8be);
}
.outline {
  background: #ffffff05;
  border-color: #d7ffe02b;
  color: var(--white);
}
.outline:hover {
  border-color: var(--green);
}
.section {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.hero {
  min-height: 680px;
  padding: 88px 0 90px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  color: var(--green);
  font-weight: 850;
}
.pulse,
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px #63f2a6;
}
.pulse {
  margin-right: 8px;
  animation: pulse 2s infinite;
}
.logo-wrap {
  height: 130px;
  width: 130px;
  margin-top: 28px;
  display: grid;
  place-items: center;
}
.logo-fallback {
  height: 112px;
  width: 112px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  border: 1px solid #8fffc34d;
  background: linear-gradient(145deg, #174b35, #0a2118);
  font-size: 76px;
  font-weight: 1000;
  font-style: italic;
  color: var(--green);
  text-shadow: 0 0 35px #63f2a666;
  box-shadow: 0 0 65px #39d68b1a;
  transform: rotate(-6deg);
}
#site-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 28px #63f2a644);
}
h1 {
  font-size: clamp(46px, 8vw, 86px);
  letter-spacing: -4px;
  line-height: 1.1;
  margin: 24px 0 12px;
  font-weight: 1000;
}
h1 span,
h2 span {
  color: var(--green);
}
.hero-copy {
  color: #b4cabe;
  margin: 0 0 30px;
}
.server-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: #0b211bd9;
  border: 1px solid #9af6c522;
  border-radius: 18px;
  box-shadow: 0 16px 60px #0003;
  flex-wrap: wrap;
  justify-content: center;
}
.grass {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid #243b26;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    #6fd84e 0 30%,
    #4aa73a 30% 39%,
    #8b6039 39% 100%
  );
  box-shadow:
    inset 3px 0 #ffffff12,
    inset -3px -3px #0003,
    0 5px 12px #63f2a622;
  image-rendering: pixelated;
  animation: bob 3.5s ease-in-out infinite;
}
.grass:before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 5px;
  background: repeating-linear-gradient(90deg, #91ec60 0 5px, #5bc342 5px 9px);
  opacity: 0.9;
}
.grass:after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 10px;
  background: repeating-linear-gradient(90deg, #a77546 0 6px, #76502f 6px 10px);
}
.server-copy {
  display: grid;
  text-align: left;
  gap: 3px;
}
.server-copy strong {
  font-size: 12px;
}
.server-copy span {
  font-size: 12px;
  color: var(--muted);
}
.status-dot {
  margin-right: 6px;
}
.offline {
  background: #ff7474;
  box-shadow: 0 0 10px #ff7474;
}
.server-divider {
  height: 35px;
  border-left: 1px solid var(--line);
}
.copy-ip {
  border: 1px solid #63f2a63b;
  color: var(--green);
  background: #63f2a610;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.content-section {
  padding: 55px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading h2,
.info-card h2 {
  margin: 5px 0;
  font-size: 30px;
  letter-spacing: -1px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.category-card,
.product-card,
.info-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #102b20e8, #091c15e8);
  border-radius: var(--radius);
  padding: 22px;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.category-card {
  cursor: pointer;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  text-align: left;
}
.category-card:hover,
.category-card.active,
.product-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  border-color: #63f2a67a;
  box-shadow: 0 10px 35px #43d88a12;
}
.category-icon {
  font-size: 29px;
}
.category-card strong {
  font-size: 16px;
}
.category-card small,
.product-card p {
  color: var(--muted);
  font-size: 12px;
}
.product-heading {
  margin-top: 62px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.product-card {
  padding: 0;
  overflow: hidden;
}
.product-art {
  height: 145px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #1d5a3b, #0a2017 70%);
  font-size: 46px;
}
.product-body {
  padding: 18px;
}
.product-body h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.product-price {
  color: var(--gold);
  font-weight: 850;
  font-size: 18px;
}
.product-body .button {
  width: 100%;
  margin-top: 13px;
}
.forum-list {
  display: grid;
  gap: 10px;
}
.forum-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  background: #0b211bbd;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.forum-item strong {
  font-size: 14px;
}
.forum-item small {
  color: var(--muted);
}
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 25px 0 80px;
}
.info-card p {
  color: var(--muted);
  font-size: 13px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.empty-state {
  grid-column: 1/-1;
  padding: 24px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}
.small {
  font-size: 11px;
}
.mascot-button {
  position: fixed;
  z-index: 15;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #63f2a650;
  background: #0b241cef;
  border-radius: 50px;
  padding: 10px 16px 10px 10px;
  color: white;
  box-shadow: 0 8px 35px #0004;
  cursor: pointer;
}
.mascot-face,
.chat-avatar {
  width: 42px;
  height: 38px;
  background: linear-gradient(145deg, #7cf5b1, #2cbb7d);
  border-radius: 45% 45% 42% 42%;
  position: relative;
  display: inline-block;
  box-shadow: inset -6px -5px 0 #087b4933;
  animation: bob 3s infinite;
}
.mascot-face:before,
.mascot-face:after {
  content: "";
  position: absolute;
  top: 14px;
  width: 5px;
  height: 7px;
  background: #073622;
  border-radius: 50%;
  animation: blink 5s infinite;
}
.mascot-face:before {
  left: 12px;
}
.mascot-face:after {
  right: 12px;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #073622;
  font-weight: 900;
}
.chat-header > div:nth-child(2) {
  display: grid;
  flex: 1;
}
.chat-header small {
  font-size: 10px;
  color: var(--muted);
}
.chat-header button,
.modal-close {
  border: 0;
  background: transparent;
  color: white;
  font-size: 25px;
  cursor: pointer;
}
.chat-panel {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 85px;
  width: min(360px, calc(100vw - 28px));
  height: 460px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #0a1d16;
  border: 1px solid #63f2a64a;
  border-radius: 20px;
  box-shadow: 0 18px 70px #0008;
  overflow: hidden;
}
.chat-panel[hidden] {
  display: none;
}
.chat-messages {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 13px;
  background: #123527;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.bubble.user {
  align-self: flex-end;
  background: #1b6042;
}
.bubble.thinking {
  color: var(--muted);
  animation: pulse 1.5s infinite;
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.chat-form input {
  min-width: 0;
  flex: 1;
  background: #071610;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  color: white;
}
.modal {
  width: min(420px, calc(100vw - 28px));
  border: 1px solid #63f2a64a;
  border-radius: 20px;
  background: #0a1d16;
  color: white;
  padding: 28px;
  box-shadow: 0 20px 80px #0009;
}
.modal::backdrop {
  background: #020906c9;
  backdrop-filter: blur(5px);
}
.modal h2 {
  margin: 7px 0;
}
.modal-close {
  float: right;
  margin-top: -12px;
}
.full {
  width: 100%;
  margin: 12px 0;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.cart-line button {
  background: transparent;
  border: 1px solid var(--line);
  color: white;
  border-radius: 8px;
  cursor: pointer;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
}
.cart-total strong {
  color: var(--gold);
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes blink {
  0%,
  45%,
  49%,
  100% {
    transform: scaleY(1);
  }
  47%,
  48% {
    transform: scaleY(0.1);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 610px;
    padding-top: 70px;
  }
}
@media (max-width: 560px) {
  .topbar {
    gap: 10px;
    padding: 12px 16px;
  }
  .account-actions {
    gap: 7px;
  }
  .account-actions select {
    max-width: 85px;
    font-size: 11px;
  }
  .account-actions .button {
    padding: 9px;
    font-size: 11px;
  }
  .nav {
    gap: 14px;
  }
  .nav a {
    font-size: 11px;
  }
  .section {
    width: calc(100% - 28px);
  }
  .hero {
    padding-top: 58px;
    min-height: 590px;
  }
  .server-panel {
    gap: 12px;
    padding: 13px;
  }
  .server-divider {
    display: none;
  }
  .server-copy strong,
  .server-copy span {
    font-size: 11px;
  }
  .copy-ip {
    width: 100%;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .category-grid,
  .product-grid,
  .lower-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .category-card {
    padding: 15px;
    min-height: 125px;
  }
  .product-art {
    height: 105px;
  }
  .product-body {
    padding: 12px;
  }
  .product-body h3 {
    font-size: 13px;
  }
  .product-price {
    font-size: 15px;
  }
  .product-body .button {
    font-size: 11px;
    padding: 9px;
  }
  footer {
    flex-wrap: wrap;
  }
  .mascot-button {
    right: 12px;
    bottom: 12px;
  }
  .chat-panel {
    right: 12px;
    bottom: 76px;
  }
  .lower-grid {
    padding-bottom: 65px;
  }
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.auth-tabs .button {
  flex: 1;
}
.discord-button {
  background: #5865f2;
  color: white;
  text-align: center;
}
.auth-form {
  display: grid;
  gap: 9px;
}
.auth-form > label:not(.check-row) {
  font-size: 12px;
  color: #c2d7cb;
  margin-top: 5px;
}
.auth-form input:not([type="checkbox"]) {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #06140f;
  color: white;
  outline: none;
}
.auth-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #63f2a615;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  color: #c2d7cb;
  line-height: 1.5;
}
.check-row input {
  accent-color: var(--green);
  margin-top: 3px;
}
.auth-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.auth-form a {
  color: var(--green);
  text-decoration: underline;
}
.modal .full {
  margin: 10px 0;
}
.payment-warning {
  padding: 12px;
  border: 1px solid #eacb7850;
  background: #eacb780c;
  border-radius: 12px;
  color: #f0dca7;
  font-size: 12px;
}
.auth-form select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #06140f;
  color: white;
}
.auth-form input[type="file"] {
  font-size: 11px;
}
.auth-form[hidden] {
  display: none;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.admin-stat {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #0b211b;
  border-radius: 14px;
}
.admin-stat strong {
  font-size: 28px;
  color: var(--green);
}
.admin-stat span {
  font-size: 12px;
  color: var(--muted);
}
.admin-section {
  margin-top: 20px;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-form label {
  display: grid;
  gap: 6px;
  color: #c2d7cb;
  font-size: 12px;
}
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  background: #06140f;
  border: 1px solid var(--line);
  color: white;
  padding: 10px;
  border-radius: 10px;
}
.admin-form textarea {
  min-height: 90px;
  resize: vertical;
}
.admin-form label:nth-child(3) {
  grid-column: 1/-1;
}
.admin-form button {
  justify-self: start;
}
.admin-list {
  display: grid;
  gap: 10px;
}
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0716108a;
}
.admin-row > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.admin-row strong {
  overflow-wrap: anywhere;
}
.admin-row small {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.admin-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.admin-row-actions .button,
.admin-row > .button {
  font-size: 11px;
  padding: 8px 10px;
}
@media (max-width: 560px) {
  .admin-form {
    grid-template-columns: 1fr;
  }
  .admin-form label:nth-child(3) {
    grid-column: auto;
  }
  .admin-stats {
    gap: 7px;
  }
  .admin-stat {
    padding: 12px;
  }
  .admin-stat strong {
    font-size: 22px;
  }
  .admin-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* Separate-page layouts, shared chrome, and mascot animations */
.backdrop #ambient-video,
.backdrop #ambient-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transition: opacity 1.2s;
}
.backdrop #ambient-image {
  display: none;
}
.topbar .nav a[aria-current="page"] {
  color: var(--green);
  text-shadow: 0 0 18px #63f2a688;
}
.page-main {
  min-height: 65vh;
  padding-top: 58px;
  padding-bottom: 90px;
}
.page-title {
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 12px 0;
}
.page-title span {
  color: var(--green);
  margin-left: 10px;
}
.back-link {
  display: inline-block;
  margin-bottom: 25px;
  color: var(--green);
  font-size: 13px;
}
.category-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #43d88a #071610;
}
.category-carousel .category-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  animation: categoryIn 0.45s both;
}
.category-carousel .category-card:nth-child(2) {
  animation-delay: 0.05s;
}
.category-carousel .category-card:nth-child(3) {
  animation-delay: 0.1s;
}
.category-carousel .category-card:nth-child(4) {
  animation-delay: 0.15s;
}
.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  padding-bottom: 85px;
}
.home-tile {
  padding: 23px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #102b20e8, #091c15e8);
  border-radius: 20px;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.home-tile:hover {
  transform: translateY(-5px);
  border-color: #63f2a67a;
  box-shadow: 0 10px 35px #43d88a12;
}
.home-tile > span {
  font-size: 31px;
}
.home-tile h2 {
  margin: 12px 0 6px;
}
.home-tile p {
  color: var(--muted);
  font-size: 12px;
  min-height: 40px;
}
.home-tile b {
  font-size: 12px;
  color: var(--green);
}
.narrow-main {
  max-width: 680px;
}
.auth-page-card {
  text-align: center;
  padding: 30px clamp(18px, 5vw, 42px);
}
.auth-page-card .auth-form {
  text-align: left;
  margin-top: 20px;
}
.auth-page-card .logo-fallback {
  margin: 0 auto 18px;
}
.auth-page-card a:not(.button) {
  color: var(--green);
}
.auth-page-card .auth-form input[type="checkbox"] {
  width: auto;
}
.auth-page-card .auth-form input:not([type="checkbox"]) {
  box-sizing: border-box;
}
.cart-page-list {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}
.cart-page-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #0b211bbd;
  border-radius: 13px;
}
.cart-page-line > div:first-child {
  display: grid;
  gap: 5px;
}
.cart-page-line small {
  color: var(--muted);
  font-size: 11px;
}
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.quantity-controls button {
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #102b20;
  color: white;
  cursor: pointer;
}
.quantity-controls button:hover {
  border-color: var(--green);
  color: var(--green);
}
.info-card {
  margin: 18px 0;
}
.info-card h2 {
  margin-top: 0;
}
.info-card .auth-form {
  margin-top: 12px;
}
.auth-form textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 12px;
  background: #06140f;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
  font: inherit;
}
.forum-create {
  max-width: 850px;
  margin: 30px 0;
}
.forum-create .auth-form label {
  margin-top: 8px;
}
.forum-create .auth-form input,
.forum-create .auth-form select {
  width: 100%;
  padding: 11px;
  background: #06140f;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
}
.forum-item p {
  color: #c2d7cb;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.leaderboard-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--green);
  font-size: 11px;
  text-transform: uppercase;
}
td:first-child {
  font-size: 18px;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.staff-card {
  text-align: center;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #102b20e8, #091c15e8);
  transition: 0.25s;
}
.staff-card:hover {
  transform: translateY(-4px);
  border-color: #63f2a67a;
}
.staff-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #7cf5b1, #21875a);
  color: #062015;
  font-size: 34px;
  font-weight: 950;
}
.role-pill {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 30px;
  background: #63f2a61a;
  border: 1px solid #63f2a633;
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1px;
}
.role-pill.owner {
  color: var(--gold);
  border-color: #eacb7844;
  background: #eacb7810;
}
.role-pill.admin {
  color: var(--cyan);
  border-color: #72e6ed44;
  background: #72e6ed10;
}
.role-pill.support {
  color: #c8b6ff;
  border-color: #c8b6ff44;
  background: #c8b6ff10;
}
.staff-card h2 {
  font-size: 17px;
}
.staff-card p {
  font-size: 12px;
  color: var(--muted);
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-head .staff-avatar {
  margin: 0;
}
.profile-head h2 {
  margin: 0 0 7px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.payment-option:has(input:checked) {
  border-color: var(--green);
  background: #63f2a60b;
}
.payment-option > span:nth-of-type(1) {
  font-size: 25px;
}
.payment-option > span:last-child {
  display: grid;
  gap: 4px;
}
.payment-option b {
  font-size: 13px;
}
.payment-option small {
  font-size: 11px;
  color: var(--muted);
}
.mascot-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  background: #071610;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.big-slime {
  position: relative;
  flex: 0 0 76px;
  height: 65px;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(145deg, #a4ffd0, #36c783 70%);
  box-shadow:
    inset -9px -7px 0 #087b4925,
    0 0 26px #63f2a625;
  animation: slimeIdle 3.2s ease-in-out infinite;
}
.slime-eye {
  position: absolute;
  top: 25px;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #073622;
  animation: blink 5s infinite;
}
.slime-eye.left {
  left: 22px;
}
.slime-eye.right {
  right: 22px;
}
.slime-mouth {
  position: absolute;
  left: 34px;
  top: 39px;
  width: 9px;
  height: 4px;
  border-bottom: 2px solid #073622;
  border-radius: 50%;
}
.chat-awake .big-slime {
  animation: slimeTalk 0.42s ease-in-out infinite alternate;
}
.chat-awake .slime-mouth {
  height: 9px;
  width: 12px;
  left: 32px;
  top: 36px;
  border: 2px solid #073622;
  border-radius: 40% 40% 60% 60%;
  background: #e87991;
  animation: mouthTalk 0.22s infinite alternate;
}
.chat-thinking .big-slime {
  animation: slimeThink 0.55s ease-in-out infinite alternate;
}
.chat-thinking .slime-eye {
  transform: rotate(-18deg);
}
.chat-panel:not(.chat-awake):not(.chat-thinking) .big-slime {
  animation: slimeSleep 4s ease-in-out infinite;
}
.chat-panel:not(.chat-awake):not(.chat-thinking) .slime-eye {
  height: 3px;
  top: 29px;
  border-radius: 0 0 50% 50%;
  animation: none;
}
.chat-panel:not(.chat-awake):not(.chat-thinking) .slime-mouth {
  border-bottom: 0;
  border-top: 2px solid #073622;
}
.chat-panel:not(.chat-awake):not(.chat-thinking) #mascot-mood:after {
  content: " z z";
  color: var(--cyan);
  font-weight: 900;
}
.chat-panel[hidden] {
  display: none !important;
}
@keyframes categoryIn {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slimeIdle {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}
@keyframes slimeTalk {
  from {
    transform: translateY(-2px) scaleY(0.98);
  }
  to {
    transform: translateY(2px) scaleY(1.04);
  }
}
@keyframes mouthTalk {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1.2);
  }
}
@keyframes slimeThink {
  from {
    transform: translateY(0) rotate(-7deg);
  }
  to {
    transform: translateY(-7px) rotate(7deg);
  }
}
@keyframes slimeSleep {
  0%,
  100% {
    transform: translateY(2px) scaleY(0.96);
  }
  50% {
    transform: translateY(5px) scaleY(0.91);
  }
}
@media (max-width: 900px) {
  .home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
} /* SlimeSite visual update: bright green, gold, sky blue, white */
:root {
  --green: #75f0ad;
  --cyan: #79dcff;
  --gold: #f5ca69;
  --white: #ffffff;
  --muted: #c3d5cf;
  --line: #b8f7df2b;
  --bg: #071610;
}
.hero h1 {
  display: none;
}
.logo-wrap {
  margin: 26px 0 20px;
  width: min(420px, 80vw);
  height: 180px;
}
.logo-wrap #site-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-wrap .logo-fallback {
  width: 120px;
  height: 120px;
}
.leaderboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 20px 0 12px;
}
.leaderboard-toolbar strong {
  font-size: 18px;
}
.leaderboard-toolbar input {
  width: min(250px, 50%);
  padding: 10px 12px;
  background: #101b17;
  color: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.leaderboard-podium {
  min-height: 260px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  padding: 28px 12px 0;
  background:
    radial-gradient(ellipse at 50% 100%, #b98b2630, transparent 65%),
    linear-gradient(#071610a0, #071610e0);
  border: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
}
.podium-player {
  position: relative;
  width: min(180px, 30%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.podium-player img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px #ffffff33);
}
.podium-player.place-1 {
  order: 2;
}
.podium-player.place-2 {
  order: 1;
}
.podium-player.place-3 {
  order: 3;
}
.podium-player.place-1 img {
  width: 86px;
  height: 86px;
}
.podium-player strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.podium-player > b {
  color: var(--gold);
  font-size: 13px;
}
.podium-crown {
  color: var(--gold);
  font-size: 23px;
}
.podium-block {
  width: 100%;
  height: 65px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 950;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(#d9b34c77, #d9b34c16);
  border-top: 2px solid var(--gold);
}
.place-2 .podium-block {
  height: 44px;
  border-color: #c7d8df;
  background: linear-gradient(#c7d8df55, #c7d8df0a);
}
.place-3 .podium-block {
  height: 34px;
  border-color: #d58a43;
  background: linear-gradient(#d58a4355, #d58a430a);
}
.podium-player small {
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 8px;
}
.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-cell img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  border-radius: 8px;
}
.staff-face {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 15px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #75f0ad55;
  background: linear-gradient(145deg, #163f2d, #0b2118);
  box-shadow: 0 8px 28px #0003;
}
.staff-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.staff-online {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #071610;
  box-shadow: 0 0 10px #75f0ad;
}
.staff-nickname {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 12px;
}
.staff-item-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #79dcff12;
  border: 1px solid #79dcff44;
  color: var(--cyan);
  font-size: 10px;
}
.role-gem {
  color: var(--gold);
}
.nether-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #030705;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s;
}
.nether-transition:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, #4a1648 0%, #170d25 35%, #030705 75%);
  opacity: 0.9;
}
.portal-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 290px;
  transform: translate(-50%, -50%) scale(0.7);
  border: 10px solid #34204d;
  border-radius: 48% 48% 10px 10px;
  background: #160b25;
  box-shadow:
    0 0 25px #bd55ff,
    0 0 80px #b24dff,
    inset 0 0 35px #d46aff;
  overflow: hidden;
  animation: portalPulse 0.7s infinite alternate;
}
.portal-fire {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    #8e3fca66 0 12px,
    #4b2c8e99 12px 24px,
    #db73ff77 24px 32px
  );
  animation: portalFlow 0.6s linear infinite;
}
.portal-caption {
  position: absolute;
  top: calc(50% + 175px);
  left: 50%;
  transform: translateX(-50%);
  color: #e9c9ff;
  letter-spacing: 3px;
  font-size: 10px;
  white-space: nowrap;
}
.portal-player {
  position: absolute;
  z-index: 2;
  left: calc(50% - 18px);
  top: calc(50% + 20px);
  width: 36px;
  height: 76px;
  opacity: 0;
  image-rendering: pixelated;
}
.portal-head {
  position: absolute;
  left: 7px;
  top: 0;
  width: 23px;
  height: 23px;
  background: linear-gradient(
    90deg,
    #5a3524 0 25%,
    #c18a60 25% 70%,
    #30251e 70%
  );
  border: 2px solid #17120e;
}
.portal-body {
  position: absolute;
  top: 23px;
  left: 3px;
  width: 30px;
  height: 28px;
  background: repeating-linear-gradient(90deg, #36bfa1 0 7px, #167e72 7px 14px);
  border: 2px solid #142d29;
}
.portal-leg {
  position: absolute;
  top: 50px;
  width: 13px;
  height: 24px;
  background: #293b87;
  border: 2px solid #151d4a;
}
.portal-leg.left {
  left: 4px;
}
.portal-leg.right {
  right: 4px;
}
.portal-creeper {
  position: absolute;
  z-index: 3;
  left: calc(50% + 150px);
  top: calc(50% + 10px);
  width: 38px;
  height: 82px;
  opacity: 0;
  transform: translateX(100px);
  background: repeating-linear-gradient(
    0deg,
    #39b947 0 12px,
    #258c36 12px 21px
  );
  border: 3px solid #174e23;
}
.portal-creeper i {
  position: absolute;
  top: 15px;
  left: 5px;
  width: 22px;
  height: 19px;
  background: linear-gradient(
    90deg,
    #071610 0 35%,
    transparent 35% 65%,
    #071610 65%
  );
}
.portal-creeper b {
  position: absolute;
  top: 31px;
  left: 10px;
  width: 13px;
  height: 22px;
  background: #071610;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 150% 60%, 150% 100%, 0 100%);
}
.portal-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    circle,
    #fff 0%,
    #ffeab5 12%,
    #ff8b36 27%,
    #351020 55%,
    transparent 75%
  );
}
.portal-enter .portal-player {
  opacity: 1;
  animation: walkIntoPortal 1.9s forwards;
}
.portal-exit .portal-player {
  animation: walkOutPortal 1.5s forwards;
}
.portal-exit .portal-frame {
  animation: portalShrink 1.2s forwards;
}
.portal-creeper-boom .portal-creeper {
  opacity: 1;
  animation: creeperWalk 0.9s forwards;
}
.portal-creeper-boom .portal-flash {
  animation: boomFlash 0.7s 0.8s forwards;
}
.portal-creeper-boom .portal-player {
  animation: playerBlast 0.65s 0.85s forwards;
}
.portal-creeper-boom .portal-creeper {
  animation:
    creeperWalk 0.9s forwards,
    creeperFade 0.5s 1.8s forwards;
}
.nether-transition.portal-creeper-boom:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: calc(50% - 110px);
  top: calc(50% - 20px);
  border-radius: 50%;
  opacity: 0;
  background: repeating-conic-gradient(
    #ffe7a4 0 12deg,
    #f18a32 12deg 27deg,
    #fff 27deg 34deg,
    transparent 34deg 50deg
  );
  animation: explosion 0.65s 0.8s forwards;
}
.portal-running {
  overflow: hidden;
}
.mascot-greet {
  animation: greetBounce 0.7s ease-in-out 3;
}
.mascot-greet:after {
  content: "สวัสดี ยินดีต้อนรับ!";
  position: absolute;
  right: 0;
  bottom: 65px;
  width: max-content;
  max-width: 240px;
  padding: 10px 14px;
  border: 1px solid #75f0ad77;
  border-radius: 14px;
  background: #0a2119;
  color: #fff;
  box-shadow: 0 0 25px #75f0ad22;
  font-size: 12px;
  animation: greetBubble 5s forwards;
}
@keyframes portalPulse {
  to {
    box-shadow:
      0 0 40px #bd55ff,
      0 0 110px #b24dff,
      inset 0 0 55px #d46aff;
  }
}
@keyframes portalFlow {
  to {
    background-position: 0 32px;
  }
}
@keyframes walkIntoPortal {
  0% {
    opacity: 1;
    transform: translate(150px, 0) scale(1);
  }
  70% {
    opacity: 1;
    transform: translate(0, -25px) scale(0.65);
  }
  100% {
    opacity: 0;
    transform: translate(0, -45px) scale(0.15);
  }
}
@keyframes walkOutPortal {
  0% {
    opacity: 0;
    transform: translate(0, -35px) scale(0.2);
  }
  100% {
    opacity: 1;
    transform: translate(-80px, 0) scale(1);
  }
}
@keyframes portalShrink {
  to {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
  }
}
@keyframes creeperWalk {
  to {
    opacity: 1;
    transform: translateX(-140px);
  }
}
@keyframes boomFlash {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}
@keyframes explosion {
  0% {
    opacity: 1;
    transform: scale(0.1) rotate(0);
  }
  100% {
    opacity: 0;
    transform: scale(2.2) rotate(80deg);
  }
}
@keyframes playerBlast {
  to {
    opacity: 0;
    transform: translateY(-35px) scale(1.4);
    filter: brightness(3);
  }
}
@keyframes creeperFade {
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}
@keyframes greetBounce {
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}
@keyframes greetBubble {
  0%,
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nether-transition,
  .portal-player,
  .portal-frame,
  .portal-creeper,
  .portal-flash {
    animation-duration: 0.01ms !important;
  }
  .mascot-greet {
    animation: none;
  }
}
@media (max-width: 560px) {
  .page-main {
    padding-top: 38px;
  }
  .home-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .home-tile {
    padding: 15px;
  }
  .home-tile h2 {
    font-size: 17px;
  }
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .cart-page-line {
    flex-wrap: wrap;
  }
  .category-carousel .category-card {
    flex-basis: 175px;
  }
  .quantity-controls {
    gap: 5px;
  }
}
