/* Self-hosted Prompt font (weights 400-800). 900 is loaded only on intro.ejs.
   woff2 subsets in /fonts/prompt/. Replaces Google Fonts to cut render-blocking. */
@font-face{font-family:'Prompt';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/prompt/prompt-400-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/prompt/prompt-400-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/prompt/prompt-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/prompt/prompt-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/prompt/prompt-500-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/prompt/prompt-500-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/prompt/prompt-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/prompt/prompt-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/prompt/prompt-600-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/prompt/prompt-600-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/prompt/prompt-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/prompt/prompt-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/prompt/prompt-700-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/prompt/prompt-700-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/prompt/prompt-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/prompt/prompt-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/prompt/prompt-800-thai.woff2) format('woff2');unicode-range:U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/prompt/prompt-800-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/prompt/prompt-800-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Prompt';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/prompt/prompt-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ============================================================
   Fire-RO Classic 4.0 - White / Orange Theme
   ============================================================

   HOW TO EDIT THIS FILE (read before changing styles):
   1. EDIT IN PLACE. Find the existing rule for a component and change it.
      Do NOT append a new block at the bottom or make a new "-v2/-new/-clean"
      class that duplicates an old one. That is how this file bloated.
   2. REDESIGN = DELETE THE OLD. If you replace a component's markup with a
      new class prefix, remove the old prefix's rules in the same change.
   3. Find the right spot via the "=====" section banners below, organised by
      page. CSS is page-scoped by class prefix.
   4. Dead-CSS sweep: tools/clean_dead_css.py  (then tools/_validate.py).
      Beware DYNAMIC class names (built by string concat) that look unused:
      badge- share-status- is- tone- top- event-go-icon- event-go-time-
      events4-mini-icon- vote-player-top- vote-step-icon-
      login7-rate- lucky-rate-tier-  -> anything with these stems is LIVE.
   5. After any change, bump ?v= in header.ejs / admin-header.ejs / intro.ejs.

   SECTION MAP (page -> main prefixes):
     Global / base ...... :root  .btn-*  .site-*  .header-*  .nav-*  .footer-*
     Home (/) ........... .hero-*  .home-*  .features*  .feature-*  .news-*
                          .rank-*  .mini-rank  .castle-*  .ck-*
     Login / banner ..... .login-*  .banner-*  .welcome  .input-*
     Account ............ .account-*  .stat-*  .table-*
     Register ........... .register-*  .captcha-*  .field-*  .discord-*
     Server Info ........ .info4-*
     Rankings ........... .rank4-*  .tabs  .tab  .rank-table
     Download / Vote .... .dl-*  .download-*  .vote-*  .share-*  .steps
     Admin .............. .admin-*  .traffic-*  .bug-*
     Event detail ....... .event-*  .event-go-*  .event-bug-*  .event-newbie-detail-*
     Contact ............ .contact-*  .trade-*
     Credit Merchants ... .credit-*  .merchant-*
     Sidebar / misc ..... .sidebar-*  .box  .status-*  .art-*
     Events center ...... .events-*  .events4-*
     News detail ........ .news-detail-*  .event-detail-*
     Legal / 404 ........ .legal-*  .art-404
   ============================================================ */

:root {
  --orange: #ff6a00;
  --orange-2: #ff7a1a;
  --orange-3: #ff8c2a;
  --orange-dark: #e55f00;
  --ink: #2b1b12;
  --ink-2: #5c4033;
  --ink-3: #888888;
  --line: #ffe0cc;
  --line-2: #ffd1b3;
  --bg: #ffffff;
  --bg-soft: #fff7f1;
  --bg-soft-2: #fff3ea;
  --green: #2eb872;
  --red: #e23b3b;
  --shadow-sm: 0 2px 10px rgba(255, 106, 0, 0.08);
  --shadow-md: 0 6px 24px rgba(255, 106, 0, 0.12);
  --shadow-lg: 0 12px 36px rgba(255, 106, 0, 0.16);
  --radius: 12px;
  --radius-lg: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  overflow-x: clip;
  font-family: 'Prompt', 'Segoe UI', Tahoma, 'Leelawadee UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

/* decorative background ??? ? (???/??????/?????????????) - ????????????? */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(3px 3px at 12% 24%, rgba(255, 106, 0, 0.06), transparent 100%),
    radial-gradient(2px 2px at 78% 14%, rgba(255, 106, 0, 0.06), transparent 100%),
    radial-gradient(3px 3px at 88% 62%, rgba(255, 106, 0, 0.05), transparent 100%),
    radial-gradient(2px 2px at 32% 78%, rgba(255, 106, 0, 0.06), transparent 100%),
    radial-gradient(2px 2px at 60% 42%, rgba(255, 106, 0, 0.05), transparent 100%),
    radial-gradient(420px 220px at 6% 88%, rgba(255, 106, 0, 0.04), transparent 70%),
    radial-gradient(520px 260px at 96% 30%, rgba(255, 106, 0, 0.04), transparent 70%),
    radial-gradient(closest-side at 18% 12%, rgba(255, 106, 0, 0.03), transparent),
    repeating-radial-gradient(circle at 110% 110%, transparent 0 120px, rgba(255, 106, 0, 0.025) 120px 122px, transparent 122px 240px);
}
/* poring silhouette ??????????? ?????? */
body::after {
  content: '';
  position: fixed;
  left: -40px;
  bottom: -30px;
  width: 280px;
  height: 280px;
  z-index: -1;
  pointer-events: none;
  background: url('/img/mascot-poring.webp') no-repeat center / contain;
  opacity: 0.05;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-fire,
.btn-gold {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.3);
}
.btn-fire:hover,
.btn-gold:hover {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.4);
}

.btn-outline {
  background: #fff;
  color: #c94f00;
  border-color: var(--orange);
}
.btn-outline:hover {
  background: var(--bg-soft);
  color: var(--orange-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.btn-discord {
  background: linear-gradient(135deg, #6573f5, #5865f2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.26);
}
.btn-discord:hover {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(88, 101, 242, 0.36);
}

.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-xs { padding: 4px 12px; font-size: 12px; border-width: 1px; border-radius: 8px; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(43, 27, 18, 0.06);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(255, 106, 0, 0.14), 0 2px 8px rgba(43, 27, 18, 0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 76px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-logo { flex-shrink: 0; display: flex; align-items: center; }
.header-logo img { height: 54px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  position: relative;
  padding: 26px 11px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.main-nav a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}
.main-nav a.active { color: #c94f00; font-weight: 600; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 16px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffb066, var(--orange), var(--orange-dark));
  box-shadow: 0 1px 6px rgba(255, 106, 0, 0.4);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--orange);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
/* ??? hero ????????????? viewport - ??????? overlay ???????? ??????? opacity ????????? */
.hero {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  background-color: var(--bg-soft);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
/* overlay ????????????????? - ???????/???????????????? ??????????????????????
   backdrop-filter ????????????????/???????????????????????????????????????? */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.15) 55%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: contrast(1.12) saturate(1.28);
  -webkit-backdrop-filter: contrast(1.12) saturate(1.28);
  z-index: 1;
  pointer-events: none;
}
/* ???????????????????????????? status bar */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, #fff 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  min-height: 490px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
}
.hero-content {
  position: relative;
  width: 540px;
  max-width: 100%;
  /* ????????????????? CTA ?????? status card ???????????????? hero (-62px) ?????????? */
  padding: 14px 0 90px;
  text-align: center;
}
/* glow ????????????????????? + ???? CTA - ??????????????????????????????????????????? */
.hero-content::before {
  content: '';
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 115%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 28%, rgba(255, 150, 60, 0.28), transparent 75%),
    radial-gradient(closest-side at 50% 85%, rgba(255, 120, 30, 0.18), transparent 70%);
}
.hero-logo {
  display: block;
  width: 450px;
  max-width: 100%;
  margin: 12px auto 26px;
  /* ?????????????????????????????????????? hero ??????????????? (????? desktop)
     ????????????????? keyframes ????????????????? X ????????? */
  --logo-shift: 24px;
  transform: translateX(var(--logo-shift));
  filter:
    drop-shadow(0 0 22px rgba(255, 106, 0, 0.4))
    drop-shadow(0 0 48px rgba(255, 140, 50, 0.25))
    drop-shadow(0 14px 30px rgba(120, 55, 12, 0.16));
  will-change: transform, filter;
  /* ??????????????????????????????????? ???????????????????????????????? */
  animation:
    hero-logo-float 4s ease-in-out infinite,
    hero-logo-glow 5s ease-in-out infinite;
}
@keyframes hero-logo-float {
  0%,
100% { transform: translateX(var(--logo-shift)) translateY(0); }
  50% { transform: translateX(var(--logo-shift)) translateY(-10px); }
}
@keyframes hero-logo-glow {
  0%,
100% {
    filter:
      drop-shadow(0 0 18px rgba(255, 106, 0, 0.3))
      drop-shadow(0 0 40px rgba(255, 140, 50, 0.18))
      drop-shadow(0 14px 30px rgba(120, 55, 12, 0.16));
  }
  50% {
    filter:
      drop-shadow(0 0 32px rgba(255, 106, 0, 0.62))
      drop-shadow(0 0 62px rgba(255, 140, 50, 0.4))
      drop-shadow(0 14px 30px rgba(120, 55, 12, 0.16));
  }
}
/* ===== ??????????????????? ===== */
/* ???????????????? (?????????????? + ????????) ?????????????????????????????????????? */
.hero-sparks {
  position: absolute;
  top: 0;
  left: 50%;
  /* ???????????? X ????????????? (desktop ??????? 24px) */
  transform: translateX(calc(-50% + 24px));
  width: 470px;
  max-width: 100%;
  height: 250px;
  pointer-events: none;
  z-index: 1;
}
.hero-sparks span {
  position: absolute;
  bottom: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3d6 0%, #ffc070 35%, #ff8c2a 60%, rgba(255, 106, 0, 0) 80%);
  box-shadow:
    0 0 10px 3px rgba(255, 150, 50, 0.7),
    0 0 22px 6px rgba(255, 110, 10, 0.35);
  opacity: 0;
  will-change: transform, opacity;
  animation: spark-rise 4.5s ease-out infinite;
}
/* ????????????????????/????/????????/???/?????? ????????????????????? */
.hero-sparks span:nth-child(1) { left: 8%;  width: 7px;  height: 7px;  --sx: -14px; --rise: -150px; animation-duration: 4.2s; }
.hero-sparks span:nth-child(2) { left: 18%; width: 10px; height: 10px; --sx: 10px;  --rise: -170px; animation-duration: 5.1s; animation-delay: 1.2s; }
.hero-sparks span:nth-child(3) { left: 30%; width: 6px;  height: 6px;  --sx: -8px;  --rise: -120px; animation-duration: 3.6s; animation-delay: 0.6s; }
.hero-sparks span:nth-child(4) { left: 44%; width: 9px;  height: 9px;  --sx: 16px;  --rise: -180px; animation-duration: 4.8s; animation-delay: 2s; }
.hero-sparks span:nth-child(5) { left: 55%; width: 7px;  height: 7px;  --sx: -12px; --rise: -140px; animation-duration: 3.9s; animation-delay: 0.3s; }
.hero-sparks span:nth-child(6) { left: 66%; width: 11px; height: 11px; --sx: 8px;   --rise: -165px; animation-duration: 5.4s; animation-delay: 1.7s; }
.hero-sparks span:nth-child(7) { left: 78%; width: 6px;  height: 6px;  --sx: -10px; --rise: -125px; animation-duration: 4.4s; animation-delay: 2.6s; }
.hero-sparks span:nth-child(8) { left: 88%; width: 9px;  height: 9px;  --sx: 14px;  --rise: -155px; animation-duration: 4s;   animation-delay: 0.9s; }
.hero-sparks span:nth-child(9) { left: 50%; width: 7px;  height: 7px;  --sx: -6px;  --rise: -135px; animation-duration: 5s;   animation-delay: 3.2s; }
@keyframes spark-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.5);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  60% {
    opacity: 0.75;
  }
  100% {
    transform: translate3d(var(--sx, 10px), var(--rise, -150px), 0) scale(1.05);
    opacity: 0;
  }
}

.hero-title {
  font-size: 34px;
  font-weight: 900;
  color: #2b1b12;
  text-shadow:
    0 3px 12px rgba(255, 255, 255, 0.8),
    0 8px 24px rgba(255, 106, 0, 0.18);
}
.hero-sub {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #5c4033;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.75);
}
/* 3 ????????????????????????? desktop - ?????????????? btn-lg ???? */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 14px;
  margin-top: 24px;
}
.hero-cta .btn {
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.28), 0 0 22px rgba(255, 140, 50, 0.25);
  transition: all 0.25s ease;
}
.hero-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(255, 106, 0, 0.38), 0 0 30px rgba(255, 140, 50, 0.32);
}
.hero-cta .btn-discord {
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.28), 0 0 22px rgba(88, 101, 242, 0.18);
}
.hero-cta .btn-discord:hover {
  box-shadow: 0 18px 38px rgba(88, 101, 242, 0.38), 0 0 30px rgba(88, 101, 242, 0.25);
}

/* ปุ่มใหญ่ "เข้าเล่นผ่านเว็บ" (play.fire-ro.com) — กึ่งกลางพื้นที่ขวาของ hero หน้า /main
   isolation กันไม่ให้ ::before/::after (เส้นรุ้ง z-index:-1) หลุดไปอยู่หลังพื้นหลัง hero */
.hero-play-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  margin-top: 235px;
  margin-right: auto;
  padding: 18px 30px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff3d00 0%, #ff7a18 55%, #ffb238 100%);
  box-shadow: 0 18px 40px rgba(200, 60, 0, 0.45);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.hero-play-btn:hover {
  color: #fff;
  transform: translateY(-4px);
  background: linear-gradient(135deg, #ff4d0f 0%, #ff8a2c 55%, #ffc054 100%);
  box-shadow: 0 26px 52px rgba(255, 100, 0, 0.55);
}

/* เส้นแสงเรนโบว์วิ่งรอบกรอบ: ::before = เส้นคม, ::after = แสงฟุ้ง (blur) */
@property --hero-play-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-play-btn::before,
.hero-play-btn::after,
.intro-btn-play::before,
.intro-btn-play::after {
  content: '';
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 25px;
  padding: 5px;
  background: conic-gradient(from var(--hero-play-angle),
    #ff2d2d, #ff9a00, #ffe600, #3dff73, #00d9ff, #7a5cff, #ff2dd4, #ff2d2d);
  /* เจาะตรงกลางออกให้เหลือเฉพาะวงแหวน (ไม่ทับพื้นส้มของปุ่ม) */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: hero-play-rainbow 3s linear infinite;
}

.hero-play-btn::after,
.intro-btn-play::after {
  filter: blur(8px);
  opacity: 0.85;
}

@keyframes hero-play-rainbow {
  to {
    --hero-play-angle: 360deg;
  }
}

.hero-play-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.hero-play-icon svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.hero-play-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(140, 40, 0, 0.35);
}

.hero-play-text small {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.94;
  text-shadow: none;
}

.hero-float {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(43, 27, 18, 0.25)) drop-shadow(0 0 14px rgba(255, 150, 60, 0.35));
}
/* ???????????????????/???/?????? ????????????????? - ???????????????? ?????????????????????? */
.hero-float-1 {
  width: 86px;
  top: 56px;
  left: 46%;
  --float-amp: -10px;
  animation-duration: 5s;
}
.hero-float-2 {
  width: 72px;
  top: 120px;
  right: 6%;
  --float-amp: -6px;
  animation-duration: 6.5s;
  animation-delay: 1s;
}
@keyframes float {
  0%,
100% { transform: translateY(0); }
  50% { transform: translateY(var(--float-amp, -12px)); }
}

/* ============ Server Status Bar ============ */
/* ??????? .hero (????? hero ??? overflow:hidden) ??????????????????????? hero */
.status-bar {
  position: relative;
  /* ????????????? hero ???????????????????? hero ??? section ???? */
  margin: -62px auto 0;
  /* ????????? content ???????? (1200 - padding 16x2) ??????????????????? */
  width: min(1168px, calc(100% - 32px));
  display: grid;
  /* จำนวนการ์ดไม่คงที่ (ซ่อน Online Now ได้ด้วย SHOW_ONLINE_COUNT=0) → ให้ grid ปรับคอลัมน์ตามจำนวนจริง */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  z-index: 5;
}
/* ??????????????? - ?????????????? ??????? 2 ?????? (????????/??????) ??? */
.status-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f1 100%);
  border: 1px solid rgba(255, 107, 0, 0.18);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.status-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(255, 122, 24, 0.18);
}
.status-item:hover .status-ico-img {
  transform: scale(1.1);
}
.status-ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft-2);
  color: var(--orange);
}
.status-ico svg { width: 22px; height: 22px; }
.status-ico-img {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff2e8, #ffe2cc);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.18);
  transition: transform 0.2s ease;
  overflow: hidden;
}
.status-ico-img img { width: 50px; height: 50px; flex-shrink: 0; object-fit: contain; }
.status-text { text-align: center; }
.status-label { font-size: 12.5px; color: var(--ink-3); }
.status-value {
  font-size: 22px;
  font-weight: 800;
  color: #ff6a00;
  line-height: 1.25;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 8px rgba(255, 122, 24, 0.15);
}
/* ?????????????????????: ???????=???,
????????=???,
???????=???? */
.status-value.st-players { color: #2f7fe0; text-shadow: 0 1px 10px rgba(47, 127, 224, 0.22); }
.status-item.si-char .status-value { color: #e84d8a; text-shadow: 0 1px 10px rgba(232, 77, 138, 0.22); }
/* ???????????????????????????????????????? */
.status-item.si-status .status-ico-img { background: linear-gradient(135deg, #eafaf1, #d4f3e2); box-shadow: inset 0 0 0 1px rgba(46, 184, 114, 0.25); }
.status-item.si-online .status-ico-img { background: linear-gradient(135deg, #ecf4ff, #d9e9ff); box-shadow: inset 0 0 0 1px rgba(47, 127, 224, 0.25); }
.status-item.si-char .status-ico-img { background: linear-gradient(135deg, #ffeef5, #ffdcea); box-shadow: inset 0 0 0 1px rgba(232, 77, 138, 0.25); }

/* ============ Layout ============ */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.page-register .layout {
  padding-top: 14px;
  padding-bottom: 28px;
}
.layout-full {
  grid-template-columns: 1fr;
  position: relative;
}
/* ???????????????????????? status bar - gradient ??????? + ?????? ember ??? ? ???????????? */
.layout-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 560px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(3px 3px at 18% 18%, rgba(255, 122, 26, 0.18), transparent 100%),
    radial-gradient(2px 2px at 30% 42%, rgba(255, 106, 0, 0.14), transparent 100%),
    radial-gradient(4px 4px at 72% 24%, rgba(255, 150, 60, 0.16), transparent 100%),
    radial-gradient(2px 2px at 86% 50%, rgba(255, 106, 0, 0.12), transparent 100%),
    radial-gradient(3px 3px at 55% 12%, rgba(255, 140, 42, 0.14), transparent 100%),
    radial-gradient(2px 2px at 8% 60%, rgba(255, 106, 0, 0.1), transparent 100%),
    radial-gradient(480px 320px at 88% 30%, rgba(255, 140, 50, 0.05), transparent 70%),
    linear-gradient(180deg, rgba(255, 240, 228, 0.55) 0%, rgba(255, 247, 241, 0.3) 45%, rgba(255, 255, 255, 0) 100%);
}
/* mascot watermark ????????????? Login/News - ??????????? ???????????? */
.layout-full::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -60px;
  width: 380px;
  height: 380px;
  z-index: -1;
  pointer-events: none;
  background: url('/img/mascot-slime.webp') no-repeat center / contain;
  opacity: 0.04;
}
.layout-contact {
  overflow: hidden;
  padding-top: 14px;
}
.layout-contact::after {
  display: none;
}
.content { min-width: 0; }

/* ============ Home Sections ============ */
.home-section { margin-bottom: 40px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}
.section-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.section-ico img { width: 46px; height: 46px; object-fit: contain; }
.section-title h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.4px;
  line-height: 1.25;
}
.section-title p { font-size: 13.5px; color: var(--ink-3); }
.section-more { margin-left: auto; }

/* ============ Login + Banner ============ */
.main-grid {
  display: grid;
  /* Login ~35% / News ~65% */
  grid-template-columns: minmax(320px, 35fr) 65fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
}
/* poring watermark ?????????????????? Login Box - ?????? slime ??????? */
.main-grid::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -90px;
  width: 300px;
  height: 300px;
  z-index: -1;
  pointer-events: none;
  background: url('/img/mascot-poring.webp') no-repeat center / contain;
  opacity: 0.04;
}

.login-card {
  background: linear-gradient(180deg, #fff 0%, #fffaf6 60%, #fff4ec 100%);
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(255, 106, 0, 0.16), 0 3px 10px rgba(43, 27, 18, 0.05), 0 0 0 4px rgba(255, 122, 26, 0.04);
  padding: 22px;
  transition: box-shadow 0.25s ease;
}
.login-card:hover {
  box-shadow: 0 18px 44px rgba(255, 106, 0, 0.2), 0 4px 12px rgba(43, 27, 18, 0.06), 0 0 0 4px rgba(255, 122, 26, 0.06);
}
.login-card .form input {
  margin-bottom: 14px;
}
.login-card .btn-block { margin-top: 2px; }
.login-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 122, 26, 0.14);
}
.login-mascot {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(43, 27, 18, 0.22)) drop-shadow(0 0 8px rgba(255, 150, 60, 0.3));
}
.login-card-head h2,
.login-card-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.25;
  letter-spacing: 0.3px;
}
.login-card-head p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.login-forgot {
  display: block;
  text-align: center;
  font-size: 13.5px;
  margin: 12px 0;
  color: var(--orange);
}
.welcome { margin-bottom: 14px; color: var(--ink-2); }
.welcome b { color: var(--orange); }

/* Member Login card — logged-in state */
.login-welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.login-welcome-hi { font-size: 14px; color: var(--ink-2); }
.login-welcome-hi b { color: var(--orange); }
.login-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.login-verify-badge svg { width: 14px; height: 14px; flex: 0 0 auto; }
.login-verify-badge.is-verified {
  color: #1a7f4b;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.login-verify-badge.is-pending {
  color: #b45309;
  background: rgba(255, 168, 40, 0.16);
  border: 1px solid rgba(255, 140, 20, 0.42);
  transition: background 0.2s ease, transform 0.2s ease;
}
.login-verify-badge.is-pending:hover {
  background: rgba(255, 168, 40, 0.28);
  transform: translateY(-1px);
}
.login-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.login-card-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* Banner Slider */
.banner-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 26, 0.28);
  box-shadow: 0 14px 36px rgba(255, 106, 0, 0.16), 0 4px 12px rgba(43, 27, 18, 0.06), 0 0 0 4px rgba(255, 122, 26, 0.04);
  min-height: 300px;
  background: var(--bg-soft);
}
.banner-track { position: absolute; inset: 0; }
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ?????????????????????????????????????? crop */
  object-position: center;
  display: block;
}
.banner-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.35);
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(43, 27, 18, 0.18), 0 2px 6px rgba(255, 106, 0, 0.12);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-arrow:hover {
  background: var(--bg-soft-2);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.25);
}
.banner-prev { left: 14px; }
.banner-next { right: 14px; }
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 2px;
}
.banner-dots .dot {
  width: 28px;
  height: 28px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s;
  padding: 0;
}
.banner-dots .dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  transition: background 0.15s, width 0.15s;
}
.banner-dots .dot.active::before {
  width: 22px;
  border-radius: 6px;
  background: var(--orange);
}

/* ============ News ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(255, 106, 0, 0.15);
  border-color: #ffc59e;
}
.news-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-thumb.is-page-art-focus img {
  object-position: top center;
}
.news-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--orange);
}
.badge-event { background: linear-gradient(135deg, #e64ca0, #c93384); }
.badge-guild { background: linear-gradient(135deg, #8a6cd9, #6c4cc9); }
.badge-boss { background: linear-gradient(135deg, #e25555, #c93333); }
.badge-newbie { background: linear-gradient(135deg, #38b8e0, #2196c9); }
.badge-update { background: linear-gradient(135deg, var(--orange-3), var(--orange)); }
.badge-news { background: linear-gradient(135deg, var(--orange-3), var(--orange)); }

.news-body {
  padding: 13px 13px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.3px;
  line-height: 1.35;
}
.news-body p {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 4px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.4px;
  margin: 8px 0 10px;
}

/* ============ Features ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  padding: 24px 14px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(255, 106, 0, 0.15);
  border-color: #ffc59e;
}
.feature-img {
  height: 84px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 12px rgba(43, 27, 18, 0.22)) drop-shadow(0 0 10px rgba(255, 150, 60, 0.25));
}
.feature-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.feature-card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.feature-sub { min-height: 40px; }
.feature-divider {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 14px 8px;
}
.feature-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}
.feature-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.45;
  white-space: nowrap;
}
.feature-check {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-check svg { width: 9px; height: 9px; }

/* ??????????? Server Features */
.features-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 28px;
  background: var(--bg-soft-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.features-banner-trophy {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(255, 106, 0, 0.25));
}
.features-banner-text { text-align: center; }
.fb-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.2px;
}
.fb-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 2px;
}
.features-banner-mascot {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(43, 27, 18, 0.2));
}

/* ============ Ranking Preview ============ */
.rank-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rank-preview {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rank-preview:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(255, 106, 0, 0.15);
  border-color: #ffc59e;
}
.rank-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--bg-soft-2);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.4px;
}

.mini-rank { width: 100%; border-collapse: collapse; }
.mini-rank tr { border-bottom: 1px solid #fff1e6; }
.mini-rank tr:last-child { border-bottom: none; }
.mini-rank td { padding: 11px 16px; font-size: 14px; color: var(--ink-2); }
.mini-rank .rank-no {
  width: 40px;
  font-weight: 800;
  color: var(--orange);
  text-align: center;
}
.mini-rank .rank-name { font-weight: 500; color: var(--ink); }
.mini-rank .rank-score,
.mini-rank .lv {
  text-align: right;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}
.mini-rank .top-1 .rank-no { color: #f5a300; font-size: 17px; }
.mini-rank .top-2 .rank-no { color: #9aa4af; font-size: 16px; }
.mini-rank .top-3 .rank-no { color: #c9762c; font-size: 15px; }
.mini-rank .top-1 { background: #fffaf2; }
.rank-empty { padding: 22px 16px; }

/* ============ WoE: ?????????????????? ============ */
.castle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.castle-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.castle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.14);
}
.castle-flag { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.castle-info { min-width: 0; }
.castle-line {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.castle-line strong { color: var(--ink); }
.castle-city { color: var(--ink-3); font-size: 12px; }
.ck-castle { color: #e05a3a; font-weight: 700; }
.ck-guild { color: #2f7fe0; font-weight: 700; }
.ck-master { color: var(--green); font-weight: 700; }
.castle-empty {
  padding: 26px 18px;
  text-align: center;
  color: var(--ink-3);
  background: #fff;
  border: 1px dashed rgba(255, 107, 0, 0.35);
  border-radius: 12px;
}

/* ============ Footer ============ */
.footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-soft-2));
  border-top: 1px solid var(--line);
  margin-top: 30px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 16px 30px;
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1fr 1fr;
  gap: 32px;
}
.footer-col { min-width: 0; }
.footer-logo { width: 170px; }
.footer-tagline { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.footer-head {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 14px;
}
.footer-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.footer-links a.footer-link-wide {
  grid-column: 1 / -1;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--orange); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-social:hover { color: var(--orange); }
.fs-ico {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
}
.fs-ico svg { width: 16px; height: 16px; }
.fs-facebook .fs-ico { background: #1877f2; }
.fs-discord .fs-ico { background: #5865f2; }
.fs-group .fs-ico { background: var(--orange); }

.footer-date { font-size: 13.5px; color: var(--ink-2); margin-bottom: 4px; }
.footer-clock {
  font-size: 34px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
  letter-spacing: 1px;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 600;
}
.footer-status span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 184, 114, 0.12);
}
.footer-status.offline span {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(226, 59, 59, 0.12);
}
.footer-mascot {
  position: absolute;
  right: 4%;
  bottom: 52px;
  width: 92px;
  animation: float 3.5s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(43, 27, 18, 0.25)) drop-shadow(0 0 12px rgba(255, 150, 60, 0.3));
}
.footer-copy {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.4px;
}

/* ============ Forms (??????????????) ============ */
.form input[type="text"],
.form input[type="password"],
.form input[type="email"],
.form input[type="url"],
.form input[type="file"],
.form textarea,
.form select {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14), 0 0 14px rgba(255, 122, 26, 0.22);
}
.form input::placeholder,
.form textarea::placeholder { color: #c4b5aa; }
.form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}
.form label { font-size: 13.5px; color: var(--ink-2); }

/* ============ Panels / ???????? ? ============ */
.page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.page-head h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
}
.page-head-back {
  margin-left: auto;
}
.page-art { width: 64px; height: 64px; object-fit: contain; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 22px;
}
.panel h2,
.panel h3 { color: var(--ink); margin-bottom: 12px; font-size: 17px; }
.panel-row { display: flex; gap: 22px; flex-wrap: wrap; }
.panel.half { flex: 1; min-width: 280px; }

.page-login .layout {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
  padding-bottom: 22px;
}
.page-login .content {
  width: min(100%, 980px);
}
.login-page {
  width: min(980px, 100%);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.login-hero {
  position: relative;
  min-height: 156px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px 220px;
  border: 1px solid #f4d8c7;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffaf6, #fff2e8);
  box-shadow: 0 14px 34px rgba(120, 45, 18, 0.06);
}
.login-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 122, 24, 0.16), rgba(255, 185, 105, 0.08) 40%, transparent 68%);
  filter: blur(2px);
  pointer-events: none;
}
.login-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 106, 0, 0.06), transparent 34%),
    linear-gradient(295deg, rgba(255, 213, 151, 0.2), transparent 36%);
  pointer-events: none;
}
.login-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}
.login-hero-badge {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #fff3e6);
  color: #ff6b00;
  border: 1px solid #f4d8c7;
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.12);
}
.login-hero-badge svg {
  width: 22px;
  height: 22px;
}
.login-hero h1 {
  color: #4b2110;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.12;
}
.login-hero p {
  max-width: 520px;
  margin-top: 5px;
  color: #74523f;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}
.login-hero-art {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.login-hero-left {
  left: 38px;
  bottom: -15px;
  width: 180px;
  height: 160px;
}
.login-hero-left img,
.login-hero-right img,
.login-panel-art img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(112, 50, 18, 0.14));
}
.login-hero-left img:nth-child(1) {
  left: 0;
  bottom: 16px;
  width: 88px;
}
.login-hero-left img:nth-child(2) {
  left: 60px;
  bottom: 24px;
  width: 84px;
}
.login-hero-left img:nth-child(3) {
  left: 36px;
  bottom: 0;
  width: 86px;
}
.login-hero-right {
  right: 42px;
  bottom: -12px;
  width: 180px;
  height: 155px;
}
.login-hero-right img:nth-child(1) {
  right: 16px;
  bottom: 12px;
  width: 106px;
  opacity: 0.86;
}
.login-hero-right img:nth-child(2) {
  right: 70px;
  bottom: 42px;
  width: 70px;
}
.login-panel {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  overflow: hidden;
  border: 1px solid #f4d8c7;
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 44px rgba(120, 45, 18, 0.07);
}
.login-panel-art {
  position: relative;
  min-height: 338px;
  overflow: hidden;
  background:
    radial-gradient(circle at 54% 28%, rgba(255, 255, 255, 0.92), rgba(255, 238, 218, 0.66) 40%, rgba(255, 248, 241, 0.9) 72%),
    url('/img/hero-scene.webp') center/cover;
}
.login-panel-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.86)),
    linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.72));
}
.login-panel-art::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 46%;
  width: 330px;
  height: 230px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,.08), transparent 70%);
  pointer-events: none;
}
.login-leader {
  z-index: 2;
  left: 58px;
  bottom: 92px;
  width: 186px;
}
.login-support {
  z-index: 2;
  right: 52px;
  bottom: 104px;
  width: 146px;
}
.login-panel-badge {
  position: absolute;
  z-index: 4;
  left: 20px;
  top: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #ff6b00;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(114, 52, 15, 0.1);
}
.login-stat-grid {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
/* การ์ดจำนวนคี่ (ซ่อน Online Players) → ใบสุดท้ายกินเต็มแถว */
.login-stat-grid .login-stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.login-stat-card {
  min-height: 52px;
  padding: 9px 12px;
  border: 1px solid rgba(255,107,0,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 8px 18px rgba(120, 45, 18, 0.045);
  backdrop-filter: blur(8px);
}
.login-stat-card span {
  display: block;
  color: #9c7f72;
  font-size: 10.5px;
  font-weight: 800;
}
.login-stat-card strong {
  display: block;
  margin-top: 3px;
  color: #4b2110;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.login-stat-card.is-online strong { color: #1f9b62; }
.login-stat-card.is-offline strong { color: #cf4d43; }
.login-panel-form {
  padding: 28px 32px 24px;
}
.login-form {
  display: grid;
  gap: 12px;
}
.login-form-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: #4b2110;
  font-size: 19px;
  font-weight: 900;
}
.login-form-section h2 span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff7a18, #ff5a00);
  box-shadow: 0 10px 22px rgba(255, 90, 0, 0.2);
}
.login-form-section h2 svg {
  width: 19px;
  height: 19px;
}
.login-form-note {
  margin-bottom: 10px;
  color: #9c7f72;
  font-size: 12.5px;
  font-weight: 700;
}
.login-form label {
  display: block;
  margin: 9px 0 6px;
  color: #3b2114;
  font-size: 13.5px;
  font-weight: 800;
}
.login-input-wrap {
  position: relative;
}
.login-input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: #ff6b00;
  pointer-events: none;
}
.login-form input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 48px;
  border: 1px solid #f4c7aa;
  border-radius: 13px;
  background: rgba(255,255,255,.75);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-form input:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.13);
}
.login-form input::placeholder {
  color: #c5b4a8;
}
.login-advice {
  display: grid;
  gap: 3px;
  padding: 11px 14px;
  border: 1px solid #ffd6bd;
  border-radius: 14px;
  background: #fff7f0;
  color: #4b2110;
}
.login-advice strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b2110;
  font-size: 13px;
  font-weight: 900;
}
.login-advice svg {
  width: 17px;
  height: 17px;
  color: #ff6b00;
}
.login-advice span {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
}
.login-submit {
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff7a18, #ff5a00);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(255, 90, 0, .25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.login-submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(0.98);
  box-shadow: 0 16px 32px rgba(255, 90, 0, .3);
}
.login-security-note {
  margin-top: -4px;
  color: #9c7f72;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}
.login-register-link {
  margin-top: 10px;
  text-align: center;
  color: var(--ink-2);
  font-size: 13px;
}
.login-register-link a {
  color: #ff6b00;
  font-weight: 900;
}
.login-register-link a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 16px;
  border-radius: 9px;
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid;
}
.alert-error { background: #fdecec; border-color: #f5c2c2; color: #b03030; }
.alert-ok { background: #e9f9f0; border-color: #bce8cf; color: #1e7c4d; }
.alert-info { background: var(--bg-soft-2); border-color: var(--line-2); color: var(--ink-2); }

.muted { color: var(--ink-3); }
.muted.center { text-align: center; }
.gold { color: var(--orange); font-weight: 700; }

.fb-verify-panel {
  position: relative;
  overflow: hidden;
}

.fb-verify-panel::after {
  content: '';
  position: absolute;
  right: -42px;
  top: -52px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.12), transparent 66%);
  pointer-events: none;
}

.fb-verify-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 106, 0, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ef, #fff);
}

.fb-verify-status strong {
  display: block;
  color: #351b0f;
  font-size: 16px;
  font-weight: 900;
}

.fb-verify-status p {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
}

.fb-verify-status small {
  display: block;
  margin-top: 3px;
  color: #9c7f72;
  font-size: 12px;
  font-weight: 700;
}

.fb-verify-status.is-linked {
  border-color: rgba(46, 160, 67, 0.22);
  background: linear-gradient(135deg, rgba(240, 255, 244, 0.88), #fff);
}

.fb-verify-locked {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(46, 160, 67, 0.24);
  border-radius: 999px;
  color: #146c2e;
  background: rgba(240, 255, 244, 0.9);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.st-up { color: var(--green); font-weight: 600; }
.st-down { color: var(--red); font-weight: 600; }

/* ============ Account Page ============ */
.account-page {
  width: min(960px, 100%);
  margin: 0 auto;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(255, 106, 0, 0.10), transparent 70%),
    linear-gradient(135deg, var(--bg-soft), #fff);
  box-shadow: var(--shadow-md);
}

.account-hero-avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.account-hero-avatar img { width: 72px; height: 72px; object-fit: contain; }

.account-hero-info { flex: 1; min-width: 0; }
.account-hero-info h1 {
  font-size: 26px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.15;
  word-break: break-word;
}
.account-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-2);
}
.account-chip.is-verified { color: #146c2e; border-color: rgba(46, 160, 67, 0.3); background: rgba(240, 255, 244, 0.9); }
.account-chip.is-discord { color: #4140c4; border-color: #cdd0fb; background: #f3f3ff; }
.account-chip.is-google { color: #1a73e8; border-color: #d2e3fc; background: #f3f8ff; }
.account-chip.is-manual { color: #9a5b00; border-color: #f3ddb8; background: #fff8ec; }

.account-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.account-welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  border: 1px solid #bce8cf;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #effff6, #fff);
}
.account-welcome-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.account-welcome-icon svg { width: 22px; height: 22px; }
.account-welcome strong { color: #158047; font-size: 16px; }
.account-welcome p { margin-top: 2px; color: #41765c; font-size: 13.5px; }

.account-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 18px;
  margin-bottom: 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-soft-2);
}
.account-admin-label { font-weight: 800; color: var(--ink-2); font-size: 13px; }
.account-admin-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.account-admin-links a { font-weight: 700; color: var(--orange-dark); font-size: 13.5px; }

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.account-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.account-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.account-stat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
}
.account-stat-icon svg { width: 26px; height: 26px; }
.stat-vote { background: linear-gradient(135deg, #ff8c2a, #ff6a00); }
.stat-event { background: linear-gradient(135deg, #4f9dff, #2f6fe0); }
.stat-beta { background: linear-gradient(135deg, #41c97a, #1f9d57); }
.account-stat-body { min-width: 0; }
.account-stat-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.account-stat-value {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}
.account-stat-card small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 12px; }
.account-stat-link { color: var(--orange-dark); font-weight: 700; }

.account-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
}

.account-verify-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.account-verify-grid .panel { margin-bottom: 0; }

.account-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 22px;
}
.account-info > div {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.account-info dt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.account-info dd {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.table-scroll { overflow-x: auto; }

.account-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.account-tab {
  flex: 1;
  padding: 10px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.account-tab:hover { color: var(--ink); }
.account-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff8c2a, #ff6a00);
  box-shadow: var(--shadow-sm);
}
.account-tab-panel { display: none; }
.account-tab-panel.active { display: block; animation: accountFade .2s ease; }
@keyframes accountFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .account-hero { flex-wrap: wrap; }
  .account-hero-actions { flex-direction: row; width: 100%; }
  .account-hero-actions .btn { flex: 1; justify-content: center; }
  .account-stats { grid-template-columns: 1fr; }
  .account-verify-grid { grid-template-columns: 1fr; }
  .account-info { grid-template-columns: 1fr; }
  .account-tab { font-size: 12.5px; padding: 9px 4px; }
}

/* ============ Register Page ============ */
.register-page {
  width: min(840px, 100%);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  overflow-x: hidden;
}

.register-hero {
  position: relative;
  min-height: 156px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px 190px;
  border: 1px solid rgba(255, 214, 185, 0.72);
  border-radius: 0 0 20px 20px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.78), rgba(255,248,241,0.78)),
    radial-gradient(360px 180px at 82% 34%, rgba(255, 153, 45, 0.2), transparent 70%),
    url('/img/hero-scene.webp') center 42% / cover no-repeat;
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.08);
}

.register-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 90%);
  pointer-events: none;
}

.register-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.register-hero-badge {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffcf54, #d83f11);
  color: #fff8d8;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22), 0 8px 16px rgba(125, 42, 5, 0.14);
}

.register-hero-badge svg {
  width: 23px;
  height: 23px;
}

.register-hero h1 {
  color: #6a260f;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
}

.register-hero p {
  max-width: 430px;
  margin-top: 5px;
  color: #3f271b;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.register-hero-art {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.register-hero-left {
  left: 18px;
  bottom: -12px;
  width: 178px;
  height: 164px;
}

.register-hero-left img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(112, 50, 18, 0.14));
}

.register-hero-left img:nth-child(1) {
  left: 0;
  bottom: 12px;
  width: 88px;
}

.register-hero-left img:nth-child(2) {
  left: 62px;
  bottom: 22px;
  width: 90px;
}

.register-hero-left img:nth-child(3) {
  left: 34px;
  bottom: -2px;
  width: 100px;
}

.register-hero-right {
  right: 16px;
  bottom: -8px;
  width: 168px;
  height: 152px;
}

.register-hero-right img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(112, 50, 18, 0.15));
}

.register-hero-right img:nth-child(1) {
  right: 16px;
  bottom: 10px;
  width: 116px;
  opacity: 0.84;
}

.register-hero-right img:nth-child(2) {
  right: 64px;
  bottom: 40px;
  width: 78px;
}

.register-card,
.register-success {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 16px 36px rgba(255, 106, 0, 0.09);
}

.register-card {
  padding: 16px 24px 18px;
}

.register-form {
  display: grid;
  gap: 12px;
}

.register-form-section {
  display: grid;
  gap: 0 14px;
}

.register-form-section:first-of-type {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.register-form-section:first-of-type h2 {
  grid-column: 1 / -1;
}

.register-form-section:first-of-type label:nth-of-type(1),
.register-form-section:first-of-type input:nth-of-type(1) {
  grid-column: 1;
}

.register-form-section:first-of-type label:nth-of-type(2),
.register-form-section:first-of-type input:nth-of-type(2) {
  grid-column: 2;
}

.register-form-section:first-of-type label:nth-of-type(3),
.register-form-section:first-of-type input:nth-of-type(3) {
  grid-column: 3;
}

.register-form-section:first-of-type label {
  grid-row: 2;
}

.register-form-section:first-of-type input {
  grid-row: 3;
}

.register-form-section:nth-of-type(2) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-form-section:nth-of-type(2) h2 {
  grid-column: 1 / -1;
}

.register-form-section:nth-of-type(2) label:nth-of-type(1),
.register-form-section:nth-of-type(2) input:nth-of-type(1) {
  grid-column: 1;
}

.register-form-section:nth-of-type(2) label:nth-of-type(2),
.register-form-section:nth-of-type(2) input:nth-of-type(2) {
  grid-column: 2;
}

.register-form-section:nth-of-type(2) label {
  grid-row: 2;
}

.register-form-section:nth-of-type(2) input {
  grid-row: 3;
}

.register-form-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 900;
}

.register-form-section h2 span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.register-form-section h2 .register-shield {
  border-radius: 9px;
}

.register-form-section h2 .register-shield svg {
  width: 17px;
  height: 17px;
}

.register-form label:not(.register-terms):not(.register-show-pass) {
  margin-bottom: 5px;
  color: #3b2114;
  font-size: 13px;
  font-weight: 700;
}

.register-show-pass {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 2px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.register-show-pass input {
  width: 15px;
  height: 15px;
  accent-color: var(--orange);
}

.register-optional {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-2);
}

/* ฟอร์มสมัคร: คอลัมน์เดียว + ย่อ hero ให้พอดี 1 หน้าจอ ไม่ต้องสกรอลล์ */
.register-page {
  width: min(620px, 100%);
  gap: 10px;
}
/* ย่อแบนเนอร์หัว + รูปเล็กลง + ซับไตเติล 2 บรรทัด */
.register-hero {
  padding: 8px 18px;
  min-height: 0;
}
.register-hero-copy h1 {
  font-size: 23px;
  margin-bottom: 3px;
}
.register-hero-copy p {
  max-width: none;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.45;
}
.register-hero-art img {
  max-height: 80px;
  width: auto;
}
/* ช่องกรอกเรียงลงคอลัมน์เดียว */
.register-form-section,
.register-form-section:first-of-type,
.register-form-section:nth-of-type(2) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.register-form-section > * {
  grid-column: 1 !important;
  grid-row: auto !important;
}
.register-form-section h2 { margin-bottom: 2px; }
.register-show-pass { margin: 3px 0 6px; }
/* note ใต้ "ยืนยันความถูกต้อง" — บรรทัดเดียว */
.register-section-note { white-space: nowrap; }
/* captcha: บรรทัดเดียว — xx + xx = [คำตอบ] [รีเฟรช] */
.register-captcha {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.register-captcha input[name="captcha_answer"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.register-captcha .captcha-refresh {
  flex: 0 0 auto;
  width: 42px;
  min-width: 42px;
}
/* ย่อกล่องคำแนะนำให้กระชับ */
.register-advice {
  padding: 6px 12px;
  font-size: 11px;
}
.register-advice ul { margin: 3px 0 0; padding-left: 18px; }
.register-advice li { line-height: 1.32; }
.register-card { padding: 10px 20px 12px; }
/* รีดความสูงช่องกรอก + ระยะ label ให้พอดี 1 จอ */
.register-form input[type="text"],
.register-form input[type="password"],
.register-form input[type="email"] {
  padding-top: 9px;
  padding-bottom: 9px;
}
.register-form label:not(.register-terms):not(.register-show-pass) {
  margin-bottom: 2px;
}

.register-form input[type="text"],
.register-form input[type="password"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form input[type="number"] {
  width: 100%;
  min-height: 43px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.register-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

.register-form input::placeholder {
  color: #c5b4a8;
}

.register-section-note {
  margin: -2px 0 8px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.register-captcha {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.register-captcha .captcha-box,
.register-captcha .captcha-mark {
  flex: 0 0 auto;
}
.register-captcha .captcha-box {
  min-width: 64px;
}
.register-captcha input[name="captcha_answer"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.register-captcha .captcha-refresh {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
}

.captcha-box,
.captcha-mark,
.captcha-refresh {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.captcha-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff8f2, #fff);
  color: #68412d;
  font-size: 16px;
  font-weight: 900;
}

.captcha-mark {
  color: #6f432e;
  font-size: 16px;
  font-weight: 900;
}

.register-captcha input {
  margin-bottom: 0 !important;
}

.captcha-refresh {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff8f2;
  color: var(--orange);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.captcha-refresh:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.12);
}

.captcha-refresh svg {
  width: 19px;
  height: 19px;
}

.field-error {
  margin-top: 5px;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
}

.register-advice {
  padding: 10px 14px;
  border: 1px solid #ffdcb9;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf0, #fff);
  color: var(--ink-2);
}

.register-advice strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  color: #6a260f;
  font-size: 13px;
}

.register-advice svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.register-advice ul {
  margin-left: 18px;
  font-size: 12.5px;
  line-height: 1.45;
}

.register-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.register-terms input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--orange);
}

.register-terms a {
  font-weight: 800;
}

.register-submit {
  min-height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
}

.register-login-link {
  margin-top: -6px;
  text-align: center;
  color: var(--ink-2);
  font-size: 13px;
}

.register-login-link a {
  font-weight: 900;
}

.register-success {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-color: #bce8cf;
  background: linear-gradient(135deg, #effff6, #fff);
}

.register-success-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(46, 184, 114, 0.22);
}

.register-success-icon svg {
  width: 22px;
  height: 22px;
}

.register-success h2 {
  color: #158047;
  font-size: 17px;
  line-height: 1.45;
}

.register-success p {
  margin-top: 3px;
  color: #41765c;
  font-size: 13.5px;
}

.discord-join-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted, #6b7280);
}

.discord-join-hint a {
  color: #5a59d6;
  font-weight: 600;
}

/* ============ Server Information 4.0 ============ */
.info4-page {
  width: min(1200px, 100%);
  margin: 0 auto;
  overflow-x: hidden;
}

.info4-hero {
  min-height: 348px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-bottom: 0;
  border-radius: 0 0 22px 22px;
  background:
    linear-gradient(90deg, rgba(255, 248, 240, 0.08), rgba(255, 255, 255, 0.72) 38%, rgba(255, 248, 240, 0.08)),
    url('/img/server-info/hero.webp') center / cover no-repeat;
  box-shadow: 0 16px 34px rgba(255, 106, 0, 0.08);
}

.info4-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 92%);
  pointer-events: none;
}

.info4-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(620px, 100%);
  padding: 28px 18px 46px;
  text-align: center;
}

.info4-crest {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ef, #fff);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.16), inset 0 0 0 1px rgba(255,106,0,0.12);
}

.info4-crest img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.info4-hero h1 {
  color: #ff6a00;
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 8px 22px rgba(255, 106, 0, 0.12);
}

.info4-hero h1 span {
  display: inline;
  margin-right: 0.16em;
  color: #3a1b0d;
}

.info4-ribbon {
  min-width: 220px;
  margin-top: 14px;
  padding: 7px 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7b3518, #a65424);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(85, 30, 10, 0.14);
}

.info4-hero p {
  margin-top: 10px;
  color: #442718;
  font-size: 16px;
  font-weight: 600;
}

.info4-tabs {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: -1px auto 0;
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 247, 239, 0.92);
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.08);
}

.info4-tab {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 9px 8px;
  border: 0;
  border-right: 1px solid rgba(255, 106, 0, 0.12);
  background: transparent;
  color: #2b1b12;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.info4-tab:first-child {
  border-top-left-radius: 18px;
}

.info4-tab:last-child {
  border-right: 0;
  border-top-right-radius: 18px;
}

.info4-tab img {
  display: block;
  width: auto;
  height: 26px;
  object-fit: contain;
  transition: transform 0.18s ease;
}

.info4-tab:hover img {
  transform: translateY(-2px);
}

.info4-tab.active {
  background: #fff;
  color: var(--orange);
  box-shadow: inset 0 -3px 0 var(--orange);
}

.info4-panel {
  display: block;
  scroll-margin-top: 150px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.info4-panel.active {
  display: block;
}

.info4-panel h2 {
  position: relative;
  margin-bottom: 22px;
  color: #2b1b12;
  font-size: 24px;
  font-weight: 900;
}

.info4-panel h2::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--orange);
}

.info4-card-grid {
  display: grid;
  gap: 16px;
}

.info4-card-grid + .info4-card-grid {
  margin-top: 16px;
}

.info4-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info4-card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info4-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,247,239,0.68), #fff);
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.06);
}

.info4-card h3,
.info4-refine-intro h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}

.info4-card h3 img,
.info4-refine-intro h3 img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.info4-panel[data-tab-panel="rates"] .info4-card h3 {
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.info4-panel[data-tab-panel="rates"] .info4-card h3 img {
  width: 24px;
  height: 24px;
}

.info4-check-list {
  display: grid;
  gap: 9px;
  list-style: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.info4-check-list li {
  position: relative;
  padding-left: 28px;
}

.info4-check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,106,0,0.22);
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.info4-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.info4-overview-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.info4-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.24);
  box-shadow: 0 18px 40px rgba(255, 107, 0, 0.08);
}

.info4-overview-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.info4-overview-card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 106, 0, 0.16);
  background: linear-gradient(135deg, #fff8ef, #fff0df);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 18px rgba(255, 107, 0, 0.08);
}

.info4-overview-card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(109, 74, 56, 0.14));
}

.info4-overview-card-icon-party img {
  transform: none;
}

.info4-overview-card-header h3 {
  margin: 0;
  color: #2b1b12;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.info4-overview-card-header p {
  margin: 2px 0 0;
  color: #9c7f72;
  font-size: 13px;
  font-weight: 700;
}

.info4-overview-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.info4-overview-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  line-height: 1.45;
}

.info4-overview-check {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  border: 1px solid #ffd2b1;
  border-radius: 50%;
  background: #fff7f0;
  color: #ff6b00;
  font-size: 13px;
  font-weight: 900;
}

.info4-line-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.info4-line-list li,
.info4-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-2);
  font-weight: 700;
}

.info4-line-list strong,
.info4-rate-row strong {
  color: var(--orange);
  font-weight: 900;
}

.info4-rate-row {
  min-height: 54px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 247, 239, 0.95);
}

.info4-rate-row strong {
  font-size: 38px;
  line-height: 1;
}

.info4-highlight {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 247, 239, 0.95);
}

.info4-note-title {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
}

.info4-big-number {
  margin-top: 4px;
  color: var(--orange);
  font-size: 34px;
  font-weight: 900;
}

.info4-big-number span {
  font-size: 21px;
}

.info4-note-box {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 12px;
  background: #fff7ef;
  color: #6c4a38;
  font-size: 13px;
  line-height: 1.55;
}

.info4-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info4-command {
  position: relative;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,247,239,0.72), #fff);
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.info4-command:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 0, 0.28);
  background: linear-gradient(135deg, #fff4e8, #fff);
  box-shadow: 0 16px 30px rgba(255, 106, 0, 0.14);
}

.info4-command code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.info4-command code::before {
  content: '>';
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff6a00, #ff9c2f);
  color: #fff;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(255, 106, 0, 0.18);
}

.info4-command span {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
}

.info4-refine-intro {
  margin-bottom: 14px;
}

.info4-refine-intro p {
  color: var(--ink-2);
  font-weight: 600;
}

.info4-refine-intro code {
  color: var(--orange);
  font-weight: 900;
}

.info4-accordion {
  display: grid;
  gap: 10px;
}

.info4-acc-item {
  overflow: hidden;
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-radius: 14px;
  background: #fff;
}

.info4-acc-head {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border: 0;
  background: linear-gradient(90deg, #fff7ef, #fff);
  color: #2b1b12;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.info4-acc-head::after {
  content: '\25BE';
  color: var(--orange);
  font-size: 20px;
  transition: transform 0.18s ease;
}

.info4-acc-head b {
  margin-left: auto;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.info4-acc-item.open .info4-acc-head::after {
  transform: rotate(180deg);
}

.info4-acc-body {
  display: none;
  padding: 16px 18px 18px;
}

.info4-acc-item.open .info4-acc-body {
  display: block;
}

.info4-check-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info4-panel[data-tab-panel="features"] .info4-check-columns {
  grid-template-columns: 1fr;
}

.info4-panel[data-tab-panel="features"] .info4-check-list {
  gap: 11px;
  line-height: 1.65;
}

.info4-page {
  position: relative;
  isolation: isolate;
}

.info4-page::before,
.info4-page::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.info4-page::before {
  inset: 92px -80px auto;
  height: 360px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 164, 66, 0.18), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(255, 218, 154, 0.24), transparent 30%);
  filter: blur(6px);
}

.info4-page::after {
  left: 3%;
  right: 3%;
  top: 360px;
  height: 1px;
  box-shadow: 0 44px 120px rgba(116, 48, 14, 0.22);
}

.info4-hero {
  min-height: 376px;
  border-color: rgba(255, 138, 45, 0.3);
  border-radius: 24px 24px 8px 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), rgba(255, 244, 230, 0.78) 43%, rgba(255, 255, 255, 0.12)),
    url('/img/server-info/hero.webp') center / cover no-repeat;
  box-shadow:
    0 24px 56px rgba(130, 46, 10, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -28px 54px rgba(255, 119, 24, 0.08);
}

.info4-hero::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 36%),
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.62), transparent 28%);
  pointer-events: none;
}

.info4-hero::after {
  height: 116px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255, 250, 244, 0.72) 55%, #fff 96%);
}

.info4-hero-inner {
  padding: 34px 24px 58px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08) 64%);
}

.info4-crest {
  transform: translateY(-2px);
  border: 1px solid rgba(255, 151, 64, 0.24);
  box-shadow:
    0 16px 28px rgba(93, 37, 12, 0.14),
    0 0 0 8px rgba(255, 255, 255, 0.38),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.info4-crest img,
.info4-tab img,
.info4-card h3 img,
.info4-refine-intro h3 img,
.info4-overview-card-icon img {
  filter: drop-shadow(0 6px 10px rgba(102, 45, 17, 0.18));
}

.info4-hero h1 {
  text-shadow: 0 2px 0 rgba(255,255,255,0.88), 0 16px 26px rgba(95, 34, 8, 0.18);
}

.info4-ribbon {
  border: 1px solid rgba(255, 222, 180, 0.4);
  background: linear-gradient(135deg, #8d3815, #c8652c 54%, #8f3917);
  box-shadow: 0 14px 26px rgba(92, 32, 8, 0.24), inset 0 1px 0 rgba(255,255,255,0.2);
}

.info4-tabs {
  margin-top: -18px;
  overflow: hidden;
  border-color: rgba(255, 138, 45, 0.26);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(8px);
  box-shadow:
    0 18px 42px rgba(125, 45, 9, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.info4-tab {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.54), rgba(255, 244, 232, 0.54));
}

.info4-tab:hover {
  color: var(--orange);
  background: #fffaf5;
}

.info4-tab.active {
  background: linear-gradient(180deg, #fff, #fff7ef);
  box-shadow:
    inset 0 -4px 0 var(--orange),
    0 12px 24px rgba(255, 106, 0, 0.1);
}

.info4-tab.active::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 160, 72, 0.45), transparent);
}

.info4-panel {
  position: relative;
  margin-top: 56px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.info4-panel:first-of-type {
  margin-top: 28px;
}

.info4-panel h2 {
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

.info4-panel h2::after {
  width: 42px;
  height: 4px;
  box-shadow: 0 6px 14px rgba(255, 106, 0, 0.28);
}

.info4-card,
.info4-command,
.info4-acc-item,
.info4-refine-card {
  border-color: rgba(255, 143, 52, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 250, 245, 0.94), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 100% 0, rgba(255, 186, 104, 0.13), transparent 36%);
  box-shadow:
    0 14px 30px rgba(120, 45, 10, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.88);
}

.info4-card {
  position: relative;
  overflow: hidden;
}

.info4-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 163, 77, 0.45), transparent);
}

.info4-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 0, 0.28);
  box-shadow:
    0 22px 44px rgba(120, 45, 10, 0.13),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.info4-overview-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 56px rgba(120, 45, 10, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.info4-overview-card-icon,
.info4-overview-check,
.info4-command code::before {
  box-shadow:
    0 10px 18px rgba(255, 106, 0, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.info4-rate-row {
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 150, 62, 0.12);
  border-radius: 16px;
  background: rgba(255, 251, 247, 0.82);
}

.info4-line-list {
  gap: 0;
}

.info4-line-list li:not(.info4-highlight) {
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 150, 62, 0.16);
}

.info4-line-list li:not(.info4-highlight):last-child {
  border-bottom: 0;
}

.info4-highlight,
.info4-note-box {
  border-color: rgba(255, 128, 24, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 10px 20px rgba(255, 106, 0, 0.06);
}

.info4-acc-item {
  border-radius: 18px;
}

.info4-acc-head {
  background: linear-gradient(90deg, #fffaf5, #fff 62%, #fff3e8);
}

.info4-acc-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 240, 0.58));
}

/* ============ Rankings 4.0 ============ */
.rank4-page {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  color: #351b0f;
}

.rank4-hero {
  position: relative;
  min-height: 314px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 120, 28, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 246, 235, 0.74), rgba(255, 255, 255, 0.5) 45%, rgba(255, 239, 220, 0.78)),
    url('/img/hero-scene.webp') center / cover no-repeat;
  box-shadow: 0 22px 50px rgba(111, 45, 10, 0.14), inset 0 1px 0 rgba(255,255,255,0.9);
}

.rank4-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 92px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.86));
  pointer-events: none;
}

.rank4-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 24px;
}

.rank4-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 128, 24, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #fff2e5);
  color: #ff5a00;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.14);
}

.rank4-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.rank4-hero h1 {
  margin-top: 12px;
  color: #2b1b12;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255,255,255,0.9), 0 14px 26px rgba(100, 38, 8, 0.18);
}

.rank4-hero p {
  margin-top: 9px;
  color: #754531;
  font-size: 16px;
  font-weight: 800;
}

.rank4-hero-art,
.rank4-trophy {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.rank4-hero-left {
  left: 20px;
  bottom: -8px;
  width: 360px;
  height: 270px;
}

.rank4-hero-left img {
  position: absolute;
  bottom: 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(81, 34, 10, 0.18));
}

.rank4-hero-left img:first-child {
  left: 0;
  width: 188px;
}

.rank4-hero-left img:last-child {
  left: 126px;
  width: 170px;
}

.rank4-trophy {
  right: 36px;
  bottom: 14px;
}

.rank4-trophy img {
  width: 244px;
  height: 244px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(93, 37, 8, 0.2));
}

.rank4-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.rank4-stat-card,
.rank4-card {
  border: 1px solid #f4d8c7;
  background: linear-gradient(145deg, rgba(255, 250, 246, 0.98), #fff);
  box-shadow: 0 12px 26px rgba(115, 47, 11, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}

.rank4-stat-card {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank4-stat-card:hover,
.rank4-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(115, 47, 11, 0.12), inset 0 1px 0 rgba(255,255,255,0.96);
}

.rank4-stat-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  margin: 0;
  border-radius: 14px;
  background: #fff1e4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 8px 14px rgba(255, 106, 0, 0.12);
}

.rank4-stat-card div {
  display: grid;
  justify-items: center;
}

.rank4-stat-card img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.rank4-stat-card small,
.rank4-stat-card em {
  display: block;
  color: #8a6a5b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.rank4-stat-card strong {
  display: block;
  color: #ff5a00;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
}

.rank4-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid #f4d8c7;
  border-radius: 18px;
  background: rgba(255, 247, 240, 0.9);
}

.rank4-tab {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: 1px solid #f4d8c7;
  border-radius: 14px;
  background: #fffaf6;
  color: #4d2a19;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rank4-tab img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.rank4-tab:hover {
  transform: translateY(-2px);
  color: #ff5a00;
}

.rank4-tab.active {
  border-color: #ff6b00;
  background: linear-gradient(135deg, #ff5a00, #ff8a1c);
  color: #fff;
  box-shadow: 0 12px 22px rgba(255, 106, 0, 0.22);
}

.rank4-tab.active img {
  filter: brightness(0) invert(1);
}

.rank4-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.rank4-main-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.rank4-card {
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank4-table-card {
  overflow: hidden;
}

.rank4-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(244, 216, 199, 0.72);
}

.rank4-card-head h2{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #351b0f;
  font-size: 18px;
  font-weight: 900;
}

.rank4-card-head img{
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rank4-card-head p {
  margin-top: 3px;
  color: #8a6a5b;
  font-size: 12px;
  font-weight: 700;
}

.rank4-card-head > span {
  color: #8a6a5b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.rank4-table-scroll {
  overflow-x: auto;
}

.rank4-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 38px 18px;
  text-align: center;
  color: #8d6b5a;
}

.rank4-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #ff5a00;
  font-size: 1.05rem;
}

.rank4-empty p {
  margin: 0;
  font-weight: 700;
}

/* Preseason banner — แสดงแทนตาราง/สถิติช่วงก่อนเปิด CBT2 (ดูตั้งใจ ไม่ใช่ error state) */
.rank4-preseason {
  border: 1px solid #f4d8c7;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 50% -10%, rgba(255, 176, 102, 0.18), transparent 60%),
    linear-gradient(145deg, rgba(255, 250, 246, 0.98), #fff);
  box-shadow: 0 18px 40px rgba(115, 47, 11, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 46px 24px 40px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.rank4-preseason-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff1e4;
  color: #d24b00;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
}

.rank4-preseason-badge img { width: 18px; height: 18px; }

.rank4-preseason h2 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 32px);
  color: #4a2d1f;
}

.rank4-preseason p {
  margin: 0;
  max-width: 620px;
  color: #8d6b5a;
  font-weight: 600;
  line-height: 1.65;
}

.rank4-preseason-date {
  display: grid;
  gap: 2px;
  margin: 6px 0 4px;
  padding: 14px 30px;
  border-radius: 16px;
  background: #fff1e4;
  border: 1px dashed rgba(255, 106, 0, 0.4);
}

.rank4-preseason-date small {
  color: #a06a4a;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.rank4-preseason-date strong {
  color: #ff5a00;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
}

.rank4-table{
  width: 100%;
  border-collapse: collapse;
}

.rank4-table th{
  padding: 11px 12px;
  background: #fff4ec;
  color: #7a503c;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.rank4-table td{
  padding: 12px;
  border-bottom: 1px solid rgba(244, 216, 199, 0.68);
  color: #4f3528;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.rank4-table tr:hover td{
  background: #fff4ec;
}

.rank4-table small{
  display: block;
  margin-top: 2px;
  color: #9b7a69;
  font-size: 11px;
  font-weight: 700;
}

.rank4-player,
.rank4-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rank4-player img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #f4d8c7;
  border-radius: 50%;
  background: #fff3e8;
  object-fit: contain;
}

.rank4-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.rank4-chip.guild {
  color: #5d4033;
}

.rank4-medal {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0e4;
  color: #7a503c;
  font-size: 12px;
  font-weight: 900;
}

.rank4-medal.gold { background: linear-gradient(135deg, #ffd75f, #e59a12); color: #fff; }
.rank4-medal.silver { background: linear-gradient(135deg, #dfe6ee, #9ba6b4); color: #fff; }
.rank4-medal.bronze { background: linear-gradient(135deg, #e4a15e, #a85a20); color: #fff; }

.rank4-score {
  color: #ff5a00;
  font-weight: 900;
}

.rank4-meter {
  width: 72px;
  height: 7px;
  display: inline-block;
  overflow: hidden;
  margin-right: 7px;
  border-radius: 999px;
  background: #ffe5d0;
  vertical-align: middle;
}

.rank4-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5a00, #ffac3d);
}

.rank4-note {
  position: relative;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 18px 24px;
  border: 1px solid #f4d8c7;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff4ec, #fffaf6);
  box-shadow: 0 12px 26px rgba(115, 47, 11, 0.08);
}

.rank4-note h3 {
  color: #351b0f;
  font-size: 17px;
  font-weight: 900;
}

.rank4-note p {
  margin-top: 4px;
  color: #765241;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.rank4-note img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(93, 37, 8, 0.14));
}

@media (max-width: 1100px) {
  .rank4-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank4-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rank4-hero {
    min-height: 250px;
  }

  .rank4-hero h1 {
    font-size: 40px;
  }

  .rank4-hero-left {
    left: -70px;
    opacity: 0.5;
  }

  .rank4-trophy {
    right: -50px;
    opacity: 0.55;
  }

  .rank4-trophy img {
    width: 190px;
    height: 190px;
  }

  .rank4-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank4-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .rank4-tab {
    min-width: 108px;
  }

  .rank4-card-head,
.rank4-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank4-card-head > span {
    white-space: normal;
  }

  .rank4-table {
    min-width: 720px;
  }

  .rank4-note img {
    position: absolute;
    right: -18px;
    bottom: -24px;
    opacity: 0.32;
  }

  .fb-verify-status {
    align-items: stretch;
    flex-direction: column;
  }
}

.info4-refine-acc {
  border-radius: 18px;
  background: #fffaf5;
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.06);
}

.info4-refine-head {
  min-height: 72px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #fff8ef 0%, #fffdf9 64%, #fff7ef 100%);
}

.info4-refine-head-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}

.info4-refine-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border: 1px solid rgba(255, 106, 0, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 -8px 16px rgba(255, 138, 28, 0.08);
}

.info4-refine-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.info4-refine-head-main strong {
  display: block;
  color: #2b1b12;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.info4-refine-head-main small {
  display: block;
  margin-top: 4px;
  color: #8a6653;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.info4-refine-head .info4-refine-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.info4-refine-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info4-refine-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-radius: 18px;
  background:
    radial-gradient(circle at right top, rgba(255, 190, 86, 0.14), transparent 34%),
    #fff;
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.06);
}

.info4-refine-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.info4-refine-card-head h3 {
  margin: 0;
  color: #2b1b12;
  font-size: 16px;
  font-weight: 900;
}

.info4-refine-card-head p {
  margin: 5px 0 0;
  color: #8a6653;
  font-size: 13px;
  font-weight: 700;
}

.info4-refine-card-head > span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff4e8;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
}

.info4-refine-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.info4-refine-summary span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 106, 0, 0.12);
  border-radius: 13px;
  background: #fff8ef;
  color: #6d4a38;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.info4-refine-summary strong {
  display: block;
  margin-bottom: 2px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.info4-progress-list {
  display: grid;
  gap: 8px;
}

.info4-progress-row {
  display: grid;
  grid-template-columns: 44px minmax(90px, 1fr) 58px 36px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.info4-progress-level {
  color: #4d3325;
  font-size: 14px;
  font-weight: 900;
}

.info4-progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f5e8de;
  box-shadow: inset 0 1px 3px rgba(77, 51, 37, 0.12);
}

.info4-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6a00, #ff9e2f);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.22);
}

.info4-progress-row.is-safe .info4-progress-track span {
  background: linear-gradient(90deg, #29b765, #7adf8b);
  box-shadow: 0 0 10px rgba(41, 183, 101, 0.2);
}

.info4-progress-row.is-hard .info4-progress-track span {
  background: linear-gradient(90deg, #ef3f22, #ff8a1c);
}

.info4-progress-rate {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.info4-hard-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: #d73715;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.info4-hard-badge:empty {
  visibility: hidden;
}

.info4-restrict strong {
  display: block;
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
}

.info4-restrict p {
  margin-top: 4px;
  color: var(--ink-2);
  font-weight: 700;
}

.info4-bottom-cta {
  position: relative;
  min-height: 140px;
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, #7a2d12 0%, #c96935 55%, #f2a15d 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 18px 45px rgba(120, 45, 18, 0.18);
}

.info4-bottom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 28%);
  z-index: 3;
}

.info4-bottom-cta-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 34px 40px;
}

.info4-bottom-cta-image {
  position: absolute;
  inset: 0 0 0 45%;
  background-image: url('/img/server-info/cta.webp');
  background-size: cover;
  background-position: center;
  filter: saturate(0.96) brightness(0.9);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 15%, #000 44%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 15%, #000 44%);
}

.info4-bottom-cta-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(190, 92, 42, 0.72) 0%, rgba(190, 92, 42, 0.24) 42%, rgba(190, 92, 42, 0.06) 100%);
  z-index: 1;
}

.info4-bottom-cta h2 {
  font-size: 26px;
  font-weight: 900;
}

.info4-bottom-cta p {
  margin-top: 4px;
  max-width: 720px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}

/* ============ Tabs ============ */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s;
}
.tab:hover { border-color: var(--orange); color: var(--orange); }
.tab.active {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  border-color: var(--orange);
  color: #fff;
  font-weight: 600;
}

/* ============ Tables ============ */
.rank-table,
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.rank-table th,
.info-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-soft-2);
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.rank-table td,
.info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #fff1e6;
  color: var(--ink-2);
}
.rank-table .rank-no { font-weight: 800; color: var(--orange); text-align: center; width: 50px; }
.rank-table .top-1 { background: #fffaf2; }
.rank-table .top-1 .rank-no { color: #f5a300; }
.rank-table .top-2 .rank-no { color: #9aa4af; }
.rank-table .top-3 .rank-no { color: #c9762c; }

/* ============ Download / Vote ============ */
.download-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.dl-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.dl-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dl-card h3{ color: var(--orange); margin-bottom: 8px; font-size: 16px; }
.dl-size{ color: var(--ink-2); font-size: 13px; font-weight: 500; }
.dl-card .btn-block + .btn-block{ margin-top: 10px; }
.dl-card p{ color: var(--ink-2); font-size: 13.5px; margin-bottom: 14px; }
.dl-card .is-disabled{
  cursor: not-allowed;
  opacity: 0.62;
  pointer-events: none;
}
.dl-meta{
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}
.dl-meta code{
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
}
.dl-fix-intro{
  color: var(--ink-2);
  font-size: 13.5px;
  margin-bottom: 14px;
}
.dl-fix-shots{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.dl-fix-shots figure{
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 10px;
}
.dl-fix-shots img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.dl-fix-shots figcaption{
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: center;
}
.dl-fix-note{
  background: #fffaf2;
  border: 1px solid #f2dcbb;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 13.5px;
}

.share-history {
  margin-top: 18px;
}
.share-history h3 {
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 10px;
}
.share-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}
.share-status-pending {
  background: #fff2d7;
  color: #b45b00;
}
.share-status-approved {
  background: #e8f8ef;
  color: #168848;
}
.share-status-rejected {
  background: #ffe9e9;
  color: #c23838;
}
.share-status-duplicate {
  background: #ece8ff;
  color: #5b42b8;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin-tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}
.admin-tabs a.active,
.admin-tabs a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.admin-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 18px;
}
.admin-manual-create {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff8ec;
}
.admin-manual-create h2 {
  margin: 0 0 4px;
  font-size: 17px;
}
.admin-manual-create .muted {
  margin: 0 0 12px;
  font-size: 13px;
}
.admin-manual-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}
.admin-manual-create-grid label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .admin-manual-create-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.admin-dashboard {
  display: grid;
  gap: 18px;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.admin-stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.admin-stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.admin-stat-card strong {
  color: var(--orange);
  font-size: 30px;
  line-height: 1;
}
.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-tool-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf6;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.admin-tool-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}
.admin-tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a18, #ff4d00);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 91, 0, 0.22);
}
.admin-tool-icon svg {
  width: 25px;
  height: 25px;
}
.admin-tool-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.admin-tool-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.admin-tool-arrow {
  color: var(--orange);
  font-size: 28px;
  font-weight: 800;
}

/* ===== Angpao CBT2 GM panel (/admin/angpao) ===== */
.angpao-gm {
  display: grid;
  gap: 16px;
}
.angpao-gm-flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.angpao-gm-flash.is-ok {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}
.angpao-gm-flash.is-err {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}
.angpao-gm-flash.is-warn {
  background: #fffaeb;
  border-color: #fedf89;
  color: #b54708;
}
.angpao-gm-flash code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 5px;
}
.angpao-gm-h2 {
  margin: 10px 0 0;
  font-size: 20px;
}
.angpao-gm-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.angpao-gm-note code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 5px;
}
.angpao-gm-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.angpao-gm-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--muted);
}
.angpao-gm-switch.is-on {
  border-left-color: #12b76a;
}
.angpao-gm-switch.is-off {
  border-left-color: #f04438;
}
.angpao-gm-switch-info {
  display: grid;
  gap: 3px;
}
.angpao-gm-switch-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.angpao-gm-switch-info strong {
  font-size: 20px;
}
.angpao-gm-switch-info small {
  color: var(--ink-2);
  font-size: 12px;
}
.angpao-gm-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.angpao-gm-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.angpao-gm-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.angpao-gm-stat strong {
  display: block;
  color: var(--orange);
  font-size: 24px;
  line-height: 1.1;
}
.angpao-gm-stat small {
  color: var(--ink-2);
  font-size: 12px;
}
.angpao-gm-jackpot-row,
.angpao-gm-lookup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf6;
}
.angpao-gm-jackpot-row small,
.angpao-gm-lookup-head small {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
}
.angpao-gm-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.angpao-gm-field {
  display: grid;
  gap: 5px;
  flex: 1 1 160px;
}
.angpao-gm-field-wide {
  flex: 2 1 260px;
}
.angpao-gm-field-submit {
  flex: 0 0 auto;
}
.angpao-gm-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.angpao-gm-field input {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}
.angpao-gm-lookup {
  display: grid;
  gap: 12px;
}
.angpao-gm-cfg-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.angpao-gm-cfg-group h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--orange);
}
.angpao-gm-cfg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.angpao-gm-cfg-row {
  display: grid;
  gap: 5px;
}
.angpao-gm-cfg-row label {
  font-size: 13px;
  font-weight: 600;
}
.angpao-gm-cfg-row label code {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}
.angpao-gm-cfg-input {
  display: flex;
  gap: 8px;
}
.angpao-gm-cfg-input input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.angpao-gm-log {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.angpao-gm-log li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.angpao-gm-log li:first-child {
  border-top: 0;
}
.angpao-gm-log-act {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2, #f2f2f2);
  color: var(--ink-2, #555);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.angpao-gm-log-act.tone-toggle { background: #fff1e6; color: #c2410c; }
.angpao-gm-log-act.tone-jackpot { background: #fef3c7; color: #a16207; }
.angpao-gm-log-act.tone-bug-bounty { background: #ecfdf5; color: #047857; }
.angpao-gm-log-detail {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink-1, #222);
}
.angpao-gm-log-meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}
.angpao-gm-log-act.tone-claim { background: #eef2ff; color: #4338ca; }
.angpao-gm-claims-h {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-1, #222);
}
.angpao-gm-claim-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.angpao-gm-claim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.angpao-gm-claim-table th,
.angpao-gm-claim-table td {
  padding: 8px 14px;
  text-align: left;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.angpao-gm-claim-table thead th {
  border-top: 0;
  background: var(--surface-2, #f7f7f7);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.angpao-gm-claim-table tbody tr:hover { background: #fafafa; }
.angpao-gm-claim-amt { font-weight: 700; color: #4338ca; }
/* แท็บหน้า จัดการอังเปา */
.angpao-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 2px solid var(--line);
  margin: 0 0 22px;
}
.angpao-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 8px 8px 0 0;
  transition: color .15s, background .15s;
}
.angpao-tab:hover { color: var(--ink-1, #222); background: var(--surface-2, #f7f7f7); }
.angpao-tab.is-active { color: #c2410c; border-bottom-color: #ff6a00; }
.angpao-tab-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  border-radius: 999px;
  background: var(--surface-2, #eee);
  color: var(--ink-2, #555);
}
.angpao-tab.is-active .angpao-tab-count { background: #ffe6d1; color: #c2410c; }
.angpao-panel { display: none; }
.angpao-panel.is-shown { display: block; animation: angpao-fade .18s ease; }
.angpao-panel > .angpao-gm-h2:first-child { margin-top: 0; }
@keyframes angpao-fade {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
.angpao-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.angpao-pager-info { font-size: 13px; color: var(--muted); }
.angpao-pager-disabled { opacity: .45; pointer-events: none; }
@media (max-width: 860px) {
  .angpao-gm-switches,
  .angpao-gm-stat-grid,
  .angpao-gm-cfg-grid {
    grid-template-columns: 1fr;
  }
}
.traffic-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.traffic-toolbar h2 {
  margin: 0 0 4px;
  font-size: 22px;
}
.traffic-toolbar p {
  margin: 0;
  color: var(--muted);
}
.traffic-toolbar form {
  display: grid;
  gap: 6px;
  min-width: 150px;
}
.traffic-toolbar label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.traffic-toolbar select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
}
.traffic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.traffic-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.traffic-card h2 {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}
.traffic-table-wrap {
  overflow-x: auto;
}
.traffic-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}
.traffic-table th,
.traffic-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0e5dc;
  text-align: left;
  vertical-align: top;
}
.traffic-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background: #fffaf6;
}
.traffic-table td {
  color: var(--ink-2);
  font-size: 14px;
}
.traffic-table a {
  color: var(--orange);
  font-weight: 800;
}
.traffic-ref {
  max-width: 320px;
  overflow-wrap: anywhere;
}
.admin-share-list {
  display: grid;
  gap: 14px;
}
.admin-share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf6;
}
.admin-share-card h2 {
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 4px;
}
.admin-share-card p {
  overflow-wrap: anywhere;
}
.admin-share-actions {
  display: grid;
  gap: 10px;
}
.admin-link-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.admin-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}
.admin-link-row small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.bug-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.bug-side {
  display: grid;
  gap: 18px;
}
.bug-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.bug-title-row h2 {
  margin: 0 0 6px;
}
.bug-title-row p {
  margin: 0;
}
.bug-point-badge {
  min-width: 132px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 10px;
  background: #fff4e9;
  text-align: center;
}
.bug-point-badge span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.bug-point-badge strong {
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
}
.bug-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}
.bug-hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.bug-help-text {
  display: block;
  margin: -4px 0 12px;
  line-height: 1.5;
}
.bug-captcha-field {
  display: grid;
  gap: 6px;
}
.bug-captcha-field span {
  color: var(--ink-2);
  font-size: 13.5px;
}
.bug-captcha-field strong {
  color: var(--orange);
  font-size: 18px;
}
.bug-report-card {
  align-items: start;
}
.bug-report-card p {
  white-space: pre-line;
}
.bug-card-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.event-go-page {
  max-width: 1180px;
  margin: 0 auto;
  color: #2b1b12;
}
.event-go-page .btn {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 800;
}
.event-go-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: end;
  gap: 22px;
  margin-bottom: 12px;
  padding: 44px 36px 32px;
  overflow: hidden;
  border: 1px solid rgba(94, 36, 9, 0.18);
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 34px rgba(117, 52, 15, 0.18);
}
.event-go-hero.is-page-art-focus {
  background-position: center 42%;
}
.event-go-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 33%, rgba(0, 0, 0, 0.2) 68%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent 44%);
}
.event-go-hero.is-page-art-focus::before {
  backdrop-filter: blur(1px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.64) 34%, rgba(0, 0, 0, 0.22) 70%, rgba(255, 255, 255, 0.08) 100%),
    radial-gradient(circle at 76% 82%, rgba(255, 116, 0, 0.42), transparent 30%);
}
.event-go-hero > * {
  position: relative;
  z-index: 1;
}
.event-go-copy {
  max-width: 620px;
}
.event-go-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #d92eb5;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.event-go-copy h2 {
  display: grid;
  margin: 12px 0 6px;
  color: #fff;
  font-size: 74px;
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.42);
}
.event-go-copy h2 span:last-child {
  color: #ffc238;
}
.event-go-copy strong {
  display: inline-flex;
  min-width: 300px;
  justify-content: center;
  margin-bottom: 18px;
  padding: 5px 28px 7px;
  color: #fff;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(90deg, #b83416, #e86621, #b83416);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
}
.event-go-copy h3 {
  margin: 0 0 10px;
  color: #ffe5a1;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}
.event-go-copy p {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.7;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.68);
}
.event-go-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.event-go-actions .btn-fire {
  background: linear-gradient(135deg, #ff8b15, #ff5f00);
  border-color: #ffb05c;
}
.event-go-actions .btn-outline {
  color: #ff5f00;
  border-color: #ffc08a;
}
.event-go-countdown {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 18px;
  border: 4px solid #ff9b2e;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 243, 230, 0.96));
  box-shadow: 0 14px 28px rgba(69, 23, 4, 0.24), inset 0 0 0 2px #fff;
}
.event-go-countdown::before {
  content: "";
  width: 68px;
  height: 34px;
  margin-top: -44px;
  background: url('/img/icon-flag.webp') center / contain no-repeat;
  filter: drop-shadow(0 4px 8px rgba(90, 32, 5, 0.22));
}
.event-go-countdown > span {
  color: #bf3c0a;
  font-size: 17px;
  font-weight: 900;
}
.event-go-countdown div {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid #f2d0b9;
  text-align: center;
}
.event-go-countdown b {
  display: block;
  color: #b54718;
  font-size: 42px;
  font-weight: 900;
  line-height: 0.95;
}
.event-go-countdown small {
  color: #a23e19;
  font-size: 14px;
  font-weight: 900;
}
.event-go-countdown-soon div {
  width: 100%;
  padding: 18px 0 10px;
}
.event-go-countdown-soon b {
  color: #b54718;
  font-size: 34px;
  line-height: 1.12;
}
.event-go-countdown-soon b span {
  display: block;
  white-space: nowrap;
}
.event-go-countdown-soon small {
  display: block;
  margin-top: 10px;
  color: #6b371d;
  font-size: 13px;
  line-height: 1.45;
}
.event-go-panel {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid #ffd9bf;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(121, 63, 22, 0.08);
}
.event-go-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr);
  gap: 12px;
}
.event-go-section-head {
  margin-bottom: 14px;
}
.event-go-section-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ff5f00;
  font-size: 14px;
  font-weight: 900;
}
.event-go-section-head span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.event-go-section-head h2 {
  margin: 3px 0 0;
  color: #2b1b12;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}
.event-go-reward-grid,
.event-go-feature-grid,
.event-go-step-grid {
  display: grid;
  gap: 14px;
}
.event-go-reward-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.event-go-feature-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.event-go-mini-card {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 158px;
  padding: 18px 14px;
  border: 1px solid #ffd4ba;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffefd 0%, #fff7f0 100%);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.event-go-mini-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 9px;
  filter: drop-shadow(0 5px 7px rgba(128, 58, 14, 0.16));
}
.event-go-feature-grid .event-go-mini-card img {
  width: 64px;
  height: 64px;
}
.event-go-mini-card h3 {
  margin: 0 0 4px;
  color: #2b1b12;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.22;
}
.event-go-mini-card p {
  margin: 0;
  color: #4c3021;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.event-go-info-list {
  display: grid;
  gap: 10px;
}
.event-go-info-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid #ffd4ba;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffefd, #fff8f2);
}
.event-go-info-list h3 {
  margin: 0 0 2px;
  color: #4d2f1d;
  font-size: 13px;
  font-weight: 900;
}
.event-go-info-list p {
  margin: 0;
  color: #2b1b12;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.event-go-info-icon,
.event-go-time-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff2e8;
  color: #ff5f00;
  font-weight: 900;
}
.event-go-info-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #ffd4ba;
}
.event-go-icon-calendar::before { content: "\1F4C5"; }
.event-go-icon-target::before { content: "\1F3AF"; }
.event-go-icon-camera::before { content: "\1F4F7"; }
.event-go-timeline-panel {
  overflow: hidden;
}
.event-go-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  padding: 6px 0 0;
}
.event-go-timeline::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 17%;
  top: 34px;
  height: 3px;
  background: linear-gradient(90deg, #ffb176, #ff6a00);
}
.event-go-timeline::after {
  content: "";
  position: absolute;
  top: 27px;
  right: 16.5%;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #ff6a00;
}
.event-go-timeline article {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.event-go-time-icon {
  width: 48px;
  height: 48px;
  border: 1px solid #ffd1b3;
  background: #fff7f0;
  box-shadow: 0 3px 8px rgba(117, 52, 15, 0.1);
}
.event-go-time-edit::before { content: "\270F"; }
.event-go-time-poring {
  background: #fff7f0 url('/img/mascot-poring.webp') center / 26px no-repeat;
}
.event-go-time-scroll::before { content: "\1F4DC"; }
.event-go-time-flag {
  background: #fff url('/img/icon-flag.webp') center / 30px no-repeat;
}
.event-go-timeline h3 {
  margin: 0;
  color: #3d2719;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}
.event-go-timeline p {
  margin: -4px 0 0;
  color: #6a4430;
  font-size: 13px;
  font-weight: 700;
}
.event-go-timeline .is-final {
  margin-top: -18px;
  padding: 16px 12px;
  border: 1px solid #ffad73;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefd, #fff1e5);
  box-shadow: 0 10px 22px rgba(255, 106, 0, 0.13);
}
.event-go-timeline .is-final h3 {
  color: #ff5f00;
  font-weight: 900;
}
.event-go-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.event-go-step-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 16px 18px;
  border: 1px solid #ffd4ba;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffefd, #fff8f2);
}
.event-go-step-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 13px solid #ff6a00;
}
.event-go-step-grid article > span {
  position: absolute;
  left: 14px;
  top: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff6a00;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}
.event-go-step-grid img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 5px 8px rgba(128, 58, 14, 0.16));
}
.event-go-step-grid h3 {
  margin: 0 0 5px;
  color: #2b1b12;
  font-size: 17px;
  font-weight: 900;
}
.event-go-step-grid p {
  margin: 0;
  color: #4c3021;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.48;
}
.event-go-cta {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 174px;
  padding: 22px 38px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.34) 0 4px, transparent 5px),
    radial-gradient(circle at 86% 22%, rgba(255, 220, 110, 0.48) 0 22px, transparent 23px),
    radial-gradient(circle at 95% 80%, rgba(255, 184, 42, 0.42) 0 16px, transparent 17px),
    linear-gradient(135deg, #c94a0a 0%, #ff7514 48%, #b83b05 100%);
  box-shadow: 0 16px 32px rgba(180, 70, 10, 0.22);
}
.event-go-cta::before,
.event-go-cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.event-go-cta::before {
  inset: 0;
  background:
    radial-gradient(6px 6px at 18% 20%, #fff0a8, transparent 65%),
    radial-gradient(5px 5px at 52% 22%, #fff0a8, transparent 65%),
    radial-gradient(4px 4px at 78% 72%, #fff0a8, transparent 65%);
  opacity: 0.9;
}
.event-go-cta::after {
  right: 28px;
  bottom: 8px;
  width: 96px;
  height: 84px;
  background: url('/img/icon-flag.webp') center / contain no-repeat;
  opacity: 0.42;
  transform: rotate(-8deg);
}
.event-go-cta > * {
  position: relative;
  z-index: 1;
}
.event-go-cta > img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(76, 23, 0, 0.25));
}
.event-go-cta h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 3px 12px rgba(86, 30, 0, 0.34);
}
.event-go-cta p {
  margin: 0;
  color: #ffe46e;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.32;
  text-shadow: 0 3px 12px rgba(86, 30, 0, 0.36);
}
.event-go-cta-actions {
  display: flex;
  gap: 18px;
}
.event-go-cta-actions .btn {
  min-width: 220px;
  min-height: 62px;
  border-radius: 12px;
  font-size: 18px;
}
.event-go-cta-actions .btn-fire {
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #ff8b15, #ff5f00);
}
.event-go-cta-actions .btn-outline {
  color: #ff5f00;
  border-color: #fff;
  background: #fff;
}

.event-mvp-page {
  max-width: 1120px;
  margin: 0 auto;
}
.event-mvp-hero {
  position: relative;
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid #ffd1b3;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 214, 101, 0.28), transparent 28%),
    linear-gradient(135deg, #fffaf4 0%, #fff 48%, #fff0e3 100%);
  box-shadow: 0 14px 32px rgba(121, 63, 22, 0.12);
}
.event-mvp-hero::before {
  content: "";
  position: absolute;
  inset: auto -70px -120px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.08);
}
.event-mvp-hero > * {
  position: relative;
  z-index: 1;
}
.event-mvp-hero h2 {
  margin: 14px 0 8px;
  color: #2b1b12;
  font-size: 52px;
  font-weight: 900;
  line-height: 0.98;
}
.event-mvp-hero p {
  max-width: 680px;
  margin: 0;
  color: #5c4033;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}
.event-mvp-hero img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 14px 22px rgba(93, 37, 6, 0.2));
}
.event-mvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.event-mvp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  margin-bottom: 16px;
}
.event-mvp-panel {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #ffd9bf;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(121, 63, 22, 0.08);
}
.event-mvp-head {
  margin-bottom: 14px;
}
.event-mvp-head span {
  color: #ff5f00;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}
.event-mvp-head h2 {
  margin: 3px 0 0;
  color: #2b1b12;
  font-size: 22px;
  font-weight: 900;
}
.event-mvp-head p {
  margin: 6px 0 0;
  color: #6f5142;
  font-size: 13px;
  font-weight: 700;
}
.event-mvp-head code {
  color: #bf3c0a;
  font-weight: 800;
}
.event-mvp-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.event-mvp-checks article,
.event-mvp-info-list article,
.event-mvp-score-list article {
  border: 1px solid #ffd4ba;
  border-radius: 12px;
  background: #fff8f2;
}
.event-mvp-checks article {
  padding: 14px;
}
.event-mvp-checks strong {
  display: block;
  color: #2b1b12;
  font-weight: 900;
}
.event-mvp-checks p {
  margin: 4px 0 0;
  color: #5c4033;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
}
.event-mvp-info-list {
  display: grid;
  gap: 10px;
}
.event-mvp-info-list article {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
}
.event-mvp-info-list span {
  color: #8a6653;
  font-size: 12px;
  font-weight: 900;
}
.event-mvp-info-list strong {
  color: #2b1b12;
  font-size: 14px;
  line-height: 1.45;
}
.event-mvp-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.event-mvp-steps article {
  min-height: 112px;
  padding: 14px;
  border: 1px solid #ffd4ba;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefd, #fff8f2);
}
.event-mvp-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #ff6a00;
  color: #fff;
  font-weight: 900;
}
.event-mvp-steps strong {
  color: #3d2719;
  font-size: 13.5px;
  line-height: 1.45;
}
.event-mvp-tier-grid {
  display: grid;
  gap: 14px;
}
.event-mvp-tier {
  overflow: hidden;
  border: 1px solid #ffd4ba;
  border-radius: 14px;
  background: #fffaf6;
}
.event-mvp-tier-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #fff2e8, #fffaf6);
}
.event-mvp-tier-title span {
  color: #2b1b12;
  font-size: 17px;
  font-weight: 900;
}
.event-mvp-tier-title strong {
  padding: 5px 10px;
  border-radius: 999px;
  background: #ff6a00;
  color: #fff;
  font-size: 13px;
}
.event-mvp-tier.tone-easy .event-mvp-tier-title strong { background: #2eb872; }
.event-mvp-tier.tone-normal .event-mvp-tier-title strong { background: #ff8c2a; }
.event-mvp-tier.tone-hard .event-mvp-tier-title strong { background: #d83b28; }
.event-mvp-table-wrap {
  overflow-x: auto;
}
.event-mvp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.event-mvp-table th,
.event-mvp-table td {
  padding: 11px 12px;
  border-top: 1px solid #ffe0cc;
  color: #4c3021;
  font-size: 13.5px;
  text-align: left;
  white-space: nowrap;
}
.event-mvp-table th {
  color: #8a3d14;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.event-mvp-table td strong,
.event-mvp-table td small {
  display: block;
}
.event-mvp-table td strong {
  color: #2b1b12;
  font-size: 14px;
}
.event-mvp-table td small {
  color: #9a735f;
  font-weight: 800;
}
.event-mvp-score-list {
  display: grid;
  gap: 9px;
}
.event-mvp-score-list article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 10px 12px;
}
.event-mvp-score-list span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff6a00;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.event-mvp-score-list p,
.event-mvp-rule-list li,
.event-mvp-cta p {
  color: #5c4033;
  font-weight: 700;
  line-height: 1.6;
}
.event-mvp-score-list p {
  margin: 0;
}
.event-mvp-rule-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}
.event-mvp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff3e8 0%, #fff 48%, #ffe1c8 100%);
  border: 1px solid #ffd1b3;
  box-shadow: 0 12px 28px rgba(121, 63, 22, 0.1);
}
.event-mvp-cta span {
  color: #ff5f00;
  font-size: 13px;
  font-weight: 900;
}
.event-mvp-cta h2 {
  margin: 3px 0 4px;
  color: #2b1b12;
  font-size: 24px;
  font-weight: 900;
}
.event-mvp-cta p {
  max-width: 760px;
  margin: 0;
}

.event-mvp-landing {
  max-width: 1180px;
  display: grid;
  gap: 16px;
}
.event-mvp-landing .event-mvp-hero {
  min-height: 420px;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  margin-bottom: 0;
  padding: 42px 38px;
  border: 0;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 36px rgba(64, 31, 10, 0.16);
}
.event-mvp-landing .event-mvp-hero::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.62) 33%, rgba(0, 0, 0, 0.18) 72%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(180deg, rgba(40, 13, 2, 0.08), rgba(40, 13, 2, 0.22));
}
.event-mvp-hero-copy {
  max-width: 540px;
}
.event-mvp-landing .event-mvp-hero h2 {
  margin: 12px 0 14px;
  color: #ff8a00;
  font-size: 70px;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.32);
}
.event-mvp-landing .event-mvp-hero h2 span {
  display: block;
  color: #fff;
}
.event-mvp-landing .event-mvp-hero p {
  color: #fff;
  font-size: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
}
.event-mvp-landing .event-mvp-actions .btn {
  min-width: 178px;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.event-mvp-landing .event-mvp-actions .btn-outline {
  color: #ff5f00;
  border-color: #fff;
  background: #fff;
}
.event-mvp-countdown {
  justify-self: end;
  width: 210px;
  padding: 24px 20px 22px;
  border: 4px solid #ff9826;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf1 0%, #fff3df 100%);
  box-shadow: inset 0 0 0 1px #fff, 0 18px 34px rgba(0, 0, 0, 0.24), 0 0 0 5px rgba(115, 58, 20, 0.08);
  text-align: center;
}
.event-mvp-countdown > span {
  display: block;
  margin-bottom: 14px;
  color: #a8491d;
  font-size: 16px;
  font-weight: 900;
}
.event-mvp-countdown div {
  padding: 13px 0;
  border-top: 1px solid #edc7a1;
}
.event-mvp-countdown b {
  display: block;
  color: #4a2818;
  font-size: 45px;
  font-weight: 900;
  line-height: 1;
}
.event-mvp-countdown small {
  color: #7c4328;
  font-size: 14px;
  font-weight: 900;
}
.event-mvp-countdown p {
  margin: 14px 0 0;
  padding-top: 15px;
  border-top: 1px solid #edc7a1;
  color: #5a2f1e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
  text-shadow: none;
}
.event-mvp-countdown.event-countdown-soon b {
  font-size: 28px;
  line-height: 1.12;
}
.event-mvp-countdown.event-countdown-soon small {
  color: #ff5f00;
  font-size: 18px;
}
.event-mvp-landing .event-mvp-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
  gap: 12px;
  margin-bottom: 0;
}
.event-mvp-landing .event-mvp-panel {
  margin-bottom: 0;
  padding: 22px;
  border-color: #ffd9bf;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}
.event-mvp-landing .event-mvp-head {
  margin-bottom: 14px;
}
.event-mvp-landing .event-mvp-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.event-mvp-landing .event-mvp-checks article,
.event-mvp-landing .event-mvp-info-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf5, #fff6ee);
}
.event-mvp-landing .event-mvp-checks article:nth-child(4),
.event-mvp-landing .event-mvp-checks article:nth-child(5) {
  grid-column: span 1;
}
.event-mvp-icon,
.event-mvp-step-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1e6;
  color: #ff6a00;
  font-style: normal;
  font-weight: 900;
}
.event-mvp-icon {
  width: 48px;
  height: 48px;
  font-size: 25px;
}
.event-mvp-icon::before,
.event-mvp-step-icon::before {
  content: "\2728";
}
.event-mvp-icon.is-shield::before { content: "\1F6E1"; }
.event-mvp-icon.is-swords::before { content: "\2694"; }
.event-mvp-icon.is-heart::before { content: "\2764"; }
.event-mvp-icon.is-chest::before { content: "\1F4E6"; }
.event-mvp-icon.is-party::before { content: "\1F389"; font-size: 15px; }
.event-mvp-icon.is-calendar::before { content: "\1F4C5"; }
.event-mvp-icon.is-server::before { content: "\1F5A5"; }
.event-mvp-icon.is-gift::before { content: "\1F381"; }
.event-mvp-landing .event-mvp-info-list p {
  margin: 2px 0 0;
  color: #5c4033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.event-mvp-landing .event-mvp-steps {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 42px;
}
.event-mvp-landing .event-mvp-steps article {
  position: relative;
  min-height: 128px;
  padding: 24px 12px 14px;
  text-align: center;
}
.event-mvp-landing .event-mvp-steps article:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -30px;
  top: 54px;
  color: #ff8a2a;
  font-size: 22px;
  font-weight: 900;
}
.event-mvp-landing .event-mvp-steps span {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  margin: 0;
}
.event-mvp-step-icon {
  width: 54px;
  height: 54px;
  margin: 8px auto 10px;
  font-size: 27px;
}
.event-mvp-step-icon.is-gamepad::before { content: "\1F3AE"; }
.event-mvp-step-icon.is-party::before { content: "\1F389"; }
.event-mvp-step-icon.is-boss::before { content: "\1F479"; }
.event-mvp-step-icon.is-scroll::before { content: "\1F4DC"; }
.event-mvp-step-icon.is-coin::before { content: "\1FA99"; }
.event-mvp-step-icon.is-gift::before { content: "\1F381"; }
.event-mvp-landing .event-mvp-tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.event-mvp-landing .event-mvp-tier {
  border-radius: 12px;
}
.event-mvp-landing .event-mvp-tier-title {
  padding: 10px 14px;
}
.event-mvp-landing .event-mvp-tier-title img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.event-mvp-landing .event-mvp-tier-title span {
  margin-right: auto;
  color: #259448;
  font-size: 18px;
}
.event-mvp-landing .event-mvp-tier.tone-normal .event-mvp-tier-title span {
  color: #d77a00;
}
.event-mvp-landing .event-mvp-tier.tone-hard .event-mvp-tier-title span {
  color: #d83b28;
}
.event-mvp-landing .event-mvp-table {
  min-width: 0;
}
.event-mvp-landing .event-mvp-table th,
.event-mvp-landing .event-mvp-table td {
  padding: 8px 12px;
  font-size: 12.5px;
}
.event-mvp-list-note {
  margin: 12px 0 0;
  color: #9a735f;
  font-size: 12.5px;
  font-weight: 800;
}
.event-mvp-landing .event-mvp-cta {
  position: relative;
  min-height: 98px;
  padding: 22px 28px 22px 160px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 40%, rgba(255,255,255,0.22), transparent 19%),
    linear-gradient(135deg, #ff9a19, #ff5f00);
  overflow: hidden;
}
.event-mvp-landing .event-mvp-cta > img {
  position: absolute;
  left: 24px;
  bottom: -18px;
  width: 118px;
  height: 118px;
  object-fit: contain;
}
.event-mvp-landing .event-mvp-cta span,
.event-mvp-landing .event-mvp-cta h2,
.event-mvp-landing .event-mvp-cta p {
  color: #fff;
}
.event-mvp-cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.event-mvp-landing .event-mvp-cta-actions .btn {
  min-width: 180px;
  justify-content: center;
}
.event-mvp-landing .event-mvp-cta-actions .btn-outline {
  color: #fff;
  border-color: #fff;
  background: transparent;
}
.event-mvp-landing .event-mvp-cta-actions .btn-fire {
  color: #ff5f00;
  border-color: #fff;
  background: #fff;
}

.event-cbt-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 42px 46px;
  border: 1px solid rgba(255, 122, 26, 0.26);
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 80% 50%, rgba(255, 138, 40, 0.34), transparent 60%),
    linear-gradient(120deg, #1c0e06 0%, #2a1408 55%, #3a1c0a 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 42px rgba(93, 42, 8, 0.14);
}

.event-cbt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 9, 5, 0.9) 0%, rgba(24, 11, 5, 0.72) 34%, rgba(24, 11, 5, 0.18) 66%, rgba(24, 11, 5, 0.02) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.24), transparent 42%);
}

.event-cbt-hero > * {
  position: relative;
  z-index: 1;
}

.event-cbt-hero-copy {
  max-width: 575px;
}

.event-cbt-hero h2 {
  display: grid;
  margin: 18px 0 10px;
  color: #fff5ca;
  font-size: 70px;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 6px 0 rgba(103, 39, 0, 0.78), 0 16px 32px rgba(0, 0, 0, 0.42);
}

.event-cbt-hero h2 span:last-child {
  color: #fff;
}

.event-cbt-hero-copy > strong {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 42px;
  background: linear-gradient(180deg, #ff7a11, #d83b00);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 5px 0 rgba(91, 26, 0, 0.45);
}

.event-cbt-hero-copy p {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.75;
}

.event-cbt-hero-copy p b {
  color: #ffd15a;
}

.event-race-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  overflow-wrap: anywhere;
}
.event-race-page .btn {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 800;
}
.event-race-hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 22px;
  padding: 34px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 30px rgba(84, 34, 4, 0.16);
}
.event-race-hero.is-page-art-focus {
  background-position: center 38%;
}
.event-race-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 5, 3, 0.92) 0%, rgba(8, 5, 3, 0.70) 36%, rgba(8, 5, 3, 0.20) 67%, rgba(8, 5, 3, 0.05) 100%),
    radial-gradient(circle at 74% 76%, rgba(255, 111, 0, 0.42), transparent 28%);
}
.event-race-hero.is-page-art-focus::before {
  backdrop-filter: blur(1px);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.66) 36%, rgba(5, 5, 5, 0.25) 72%, rgba(255, 255, 255, 0.08) 100%),
    radial-gradient(circle at 80% 78%, rgba(255, 111, 0, 0.42), transparent 28%);
}
.event-race-hero > * {
  position: relative;
  z-index: 1;
}
.event-race-hero-copy {
  min-width: 0;
  max-width: 545px;
}
.event-race-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f24b86;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.event-race-hero h2 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(54px, 7vw, 82px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}
.event-race-hero h2 span {
  display: block;
}
.event-race-hero h2 span:last-child {
  color: #ff9d18;
}
.event-race-hero p {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}
.event-race-highlight {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 196, 95, 0.48);
  border-radius: 8px;
  background: rgba(28, 18, 8, 0.72);
  color: #ffe08b;
  font-size: 14px;
}
.event-race-highlight strong {
  min-width: 0;
}
.event-race-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.event-race-actions .btn {
  min-width: 160px;
  padding-inline: 24px;
}
.event-race-actions .btn-outline {
  border-color: #ffd9c7;
}
.event-race-countdown {
  min-width: 0;
  justify-self: end;
  width: 202px;
  padding: 22px 18px 18px;
  border: 6px solid #b87335;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf1, #fff3e5);
  color: #3c2316;
  text-align: center;
  box-shadow: 0 12px 22px rgba(74, 30, 4, 0.24), inset 0 0 0 1px #ffe6c9;
}
.event-race-countdown > span {
  display: block;
  color: #ff5f00;
  font-size: 14px;
  font-weight: 800;
}
.event-race-countdown div {
  padding: 13px 0 11px;
  border-bottom: 1px solid #ead2bb;
}
.event-race-countdown b,
.event-race-countdown small {
  display: block;
}
.event-race-countdown b {
  font-size: 48px;
  line-height: 0.95;
  font-weight: 800;
}
.event-race-countdown small {
  margin-top: 6px;
  font-weight: 800;
}
.event-race-countdown p {
  margin-top: 14px;
  color: #3c2316;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.65;
}
.event-race-countdown.event-countdown-soon b {
  font-size: 28px;
  line-height: 1.12;
}
.event-race-countdown.event-countdown-soon small {
  color: #ff5f00;
  font-size: 18px;
}
.event-race-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.event-race-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid #ffd9c7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.08);
}
.event-race-head {
  margin-bottom: 14px;
}
.event-race-head span {
  display: block;
  color: #ff5f00;
  font-size: 13px;
  font-weight: 900;
}
.event-race-head h2 {
  margin: 2px 0 0;
  color: #3a2012;
  font-size: 24px;
  line-height: 1.18;
}
.event-race-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.event-race-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ffd2b8;
  border-radius: 9px;
  color: #ff5f00;
  background: #fffaf6;
  font-size: 13px;
  font-weight: 800;
}
.event-race-overview,
.event-race-rewards,
.event-race-ranking,
.event-race-rule-list {
  display: grid;
  gap: 11px;
}
.event-race-overview article {
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid #ffe1d0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdfb, #fff8f1);
}
.event-race-overview img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.event-race-overview h3,
.event-race-tips h3 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.28;
}
.event-race-overview p,
.event-race-tips p,
.event-race-rule-list p {
  margin: 0;
  color: #5c4033;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}
.event-race-rewards article {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid #ffe0cc;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdfb, #fff8ef);
}
.event-race-medal {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #ffd36a;
  background: linear-gradient(180deg, #ffd86a, #ff8b00);
  color: #fff;
  font-size: 22px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.event-race-rewards h3 {
  margin: 0 0 5px;
  color: #ff5f00;
  font-size: 14px;
}
.event-race-rewards ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.event-race-rewards li {
  color: #3a2012;
  font-size: 13px;
  font-weight: 700;
}
.event-race-note {
  margin: 12px 0 0;
  color: #b58a76;
  font-size: 12px;
}

.event-race-ranking article {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid #ffe0cc;
  border-radius: 12px;
  background: #fffaf5;
}
.event-race-ranking img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid #ffd8bf;
}
.event-race-rank {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #3a2012;
  font-weight: 900;
  font-size: 13px;
}
.event-race-rank.is-medal {
  color: #fff;
  background: linear-gradient(180deg, #ffbd38, #ff6a00);
}
.event-race-ranking strong {
  color: #2f1b10;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-race-ranking b {
  color: #ff5f00;
  font-size: 23px;
  line-height: 1;
  white-space: nowrap;
}
.event-race-ranking-btn {
  margin-top: 13px;
}
.event-race-empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: #8b6958;
}
.event-race-join-panel {
  padding-bottom: 20px;
}
.event-race-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 48px;
  position: relative;
}
.event-race-steps article {
  min-height: 148px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  position: relative;
  padding: 18px 10px 12px;
  border: 1px solid #ffe0cc;
  border-radius: 13px;
  background: #fffaf6;
  text-align: center;
}
.event-race-steps article:not(:last-child)::after {
  content: "\203A";
  position: absolute;
  right: -34px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff9a57;
  font-size: 42px;
  line-height: 1;
  font-weight: 500;
}
.event-race-steps em {
  position: absolute;
  top: -18px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #ff5f00;
  color: #fff;
  font-style: normal;
  font-weight: 900;
}
.event-race-steps img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.event-race-steps strong {
  max-width: 120px;
  color: #3a2012;
  font-size: 13px;
  line-height: 1.45;
}
.event-race-bottom-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 18px;
}
.event-race-rule-list article {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}
.event-race-rule-list span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  background: #ff8b00;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.event-race-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.event-race-tips article {
  min-width: 0;
  min-height: 146px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 15px;
  border: 1px solid #ffe0cc;
  border-radius: 14px;
  background: #fffaf6;
}
.event-race-tips img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.event-race-cta {
  min-height: 170px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 280px 150px;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, #ff6a00 0%, #ff8a00 48%, #f45100 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 106, 0, 0.2);
}
.event-race-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 38%, rgba(255, 246, 145, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.32) 0 2px, transparent 3px);
  pointer-events: none;
}
.event-race-cta > * {
  position: relative;
  z-index: 1;
}
.event-race-cta > img:first-child {
  width: 160px;
  justify-self: center;
  filter: drop-shadow(0 8px 10px rgba(116, 35, 0, 0.26));
}
.event-race-cta > img:last-child {
  width: 126px;
  justify-self: end;
  filter: drop-shadow(0 8px 10px rgba(116, 35, 0, 0.26));
}
.event-race-cta h2 {
  margin: 0 0 4px;
  color: #ffe357;
  font-size: 28px;
  line-height: 1.22;
}
.event-race-cta p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.6;
}
.event-race-cta-actions {
  display: grid;
  gap: 10px;
}
.event-race-cta-actions .btn {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
}
.event-race-cta-actions .btn-outline {
  color: #ff5f00;
  border-color: #fff;
  background: #fff;
}
.event-race-cta-actions .btn-fire {
  color: #ff5f00;
  border-color: #fff3eb;
  background: #fff3eb;
  box-shadow: none;
}

.event-zeny-page {
  --zeny-gold: #ffc928;
  --zeny-green: #9bd23c;
}
.event-zeny-hero {
  background-position: center;
}
.event-zeny-hero::before {
  background:
    linear-gradient(90deg, rgba(7, 5, 2, 0.94) 0%, rgba(7, 5, 2, 0.74) 36%, rgba(7, 5, 2, 0.18) 68%, rgba(7, 5, 2, 0.04) 100%),
    radial-gradient(circle at 72% 72%, rgba(255, 201, 40, 0.42), transparent 30%);
}
.event-zeny-page .event-race-badge {
  background: #2f9b35;
}
.event-zeny-page .event-race-hero h2 span:nth-child(2) {
  color: var(--zeny-gold);
}
.event-zeny-page .event-race-hero h2 span:last-child {
  color: var(--zeny-green);
}
.event-zeny-page .event-race-highlight {
  border-color: rgba(255, 212, 86, 0.58);
  color: #ffe779;
}
.event-zeny-page .event-race-countdown {
  border-color: #b87935;
  box-shadow: 0 12px 22px rgba(74, 30, 4, 0.24), inset 0 0 0 1px #ffe0a6;
}
.event-zeny-page .event-race-medal {
  border-color: #ffe084;
  background: linear-gradient(180deg, #ffe680, #f49b00);
}
.event-zeny-ranking article {
  grid-template-columns: 34px 44px minmax(0, 1fr) minmax(118px, auto);
}
.event-zeny-ranking b {
  display: grid;
  justify-items: end;
  gap: 1px;
  color: #2f1b10;
  font-size: 15px;
  line-height: 1.05;
}
.event-zeny-ranking b small {
  color: #8e6b47;
  font-size: 10px;
  font-weight: 800;
}
.event-zeny-cta {
  background:
    radial-gradient(circle at 16% 55%, rgba(255, 231, 121, 0.3), transparent 24%),
    linear-gradient(135deg, #ff6a00 0%, #f7a000 48%, #f45100 100%);
}
.event-zeny-cta > img:last-child {
  width: 138px;
}
.event-bug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.event-bug-page {
  max-width: 1100px;
  margin: 0 auto;
}
.event-bug-hero-v2 {
  position: relative;
  height: 320px;
  min-height: 320px;
  display: grid;
  align-items: end;
  margin-bottom: 48px;
  padding: 32px;
  overflow: hidden;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}
.event-bug-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 8, 6, 0.78) 0%, rgba(34, 17, 9, 0.58) 48%, rgba(34, 17, 9, 0.24) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}
.event-bug-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.event-bug-hero-v2 .news-badge {
  margin-bottom: 10px;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.24);
}
.event-bug-hero-v2 h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 39px;
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.48);
}
.event-bug-hero-v2 p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}
.event-bug-hero-v2 .event-bug-actions {
  margin-top: 14px;
}
.event-bug-hero-v2 .btn {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 13px;
}
.event-bug-hero-v2 .btn-outline {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
}
.event-bug-section-head {
  margin-bottom: 24px;
  text-align: center;
}
.event-bug-section-head span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.event-bug-section-head h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.25;
}
.event-bug-overview article:hover,
.event-bug-join-timeline article:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(130, 55, 18, 0.1);
}
.event-bug-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.event-bug-overview article,
.event-bug-note {
  border: 1px solid rgba(255, 122, 0, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-bug-overview article {
  min-height: 136px;
  padding: 22px;
}
.event-bug-overview span {
  font-size: 28px;
}
.event-bug-overview h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 18px;
}
.event-bug-overview p {
  margin: 0 0 4px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
}
.event-bug-join-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
}
.event-bug-join-timeline::before {
  display: none;
}
.event-bug-join-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 122, 0, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-bug-join-timeline span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6a00, #ff9a22);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.28);
}
.event-bug-join-timeline strong {
  color: var(--ink);
  font-size: 15px;
}
.event-bug-note {
  margin-top: 0;
  margin-bottom: 48px;
  padding: 18px 22px;
}
.event-bug-note p {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.65;
}

/* ============ Event poster + text (official announcement layout) ============ */
.event-post {
  position: relative;
  max-width: 880px;
  margin: 0 auto 56px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.event-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, var(--orange), var(--orange-3));
}
.event-post-poster {
  margin: 0;
  line-height: 0;
  background: var(--bg-soft-2);
}
.event-post-poster img {
  display: block;
  width: 100%;
  height: auto;
}
.event-post-body {
  padding: 34px clamp(20px, 5vw, 52px) 40px;
}
.event-post-head {
  position: relative;
  padding-bottom: 28px;
  margin-bottom: 30px;
  text-align: center;
}
.event-post-head::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-3));
}
.event-post-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.event-post-date {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 13.5px;
}
.event-post-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.event-post-section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 106, 0, 0.13);
}
.event-post-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}
.event-post-section h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.event-post-section h2::before {
  content: '';
  width: 5px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--orange), var(--orange-3));
}
.event-post-section > p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.8;
}
.event-post-section > p strong {
  color: var(--ink);
  font-weight: 700;
}
.event-post-steps {
  margin: 0;
  padding-left: 22px;
  counter-reset: post-step;
  list-style: none;
}
.event-post-steps li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.event-post-steps li::before {
  counter-increment: post-step;
  content: counter(post-step);
  position: absolute;
  left: -22px;
  top: 1px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-3));
  box-shadow: 0 2px 7px rgba(255, 106, 0, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.event-post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.event-post-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.event-post-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 800;
}
.event-post-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.event-post-reward {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  flex: 1 1 240px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.event-post-reward:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.event-post-reward img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.event-post-reward figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.event-post-reward strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.event-post-reward span {
  color: var(--ink-3);
  font-size: 13px;
}
.event-post-ranks {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 4px;
}
.event-post-rankgroup-head {
  margin: 0 0 12px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  background: var(--bg-soft);
  border-left: 4px solid var(--line-2);
  border-radius: 8px;
}
.event-post-ranks .event-post-rankgroup:nth-child(1) .event-post-rankgroup-head { border-left-color: #f2b705; }
.event-post-ranks .event-post-rankgroup:nth-child(2) .event-post-rankgroup-head { border-left-color: #b8b8c0; }
.event-post-ranks .event-post-rankgroup:nth-child(3) .event-post-rankgroup-head { border-left-color: #cd7f32; }

/* Level Race: อันดับแยกตามอาชีพ (event-post style) */
.event-post-classrank {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 14px;
}
.event-post-classrank-card {
  margin: 0;
  padding: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.event-post-classrank-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.event-post-classrank-card header img { width: 34px; height: 34px; object-fit: contain; }
.event-post-classrank-card header strong { display: block; color: var(--ink); font-weight: 800; font-size: 14px; }
.event-post-classrank-card header span { color: var(--ink-3); font-size: 12px; }
.event-post-classrank-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.event-post-classrank-card li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.event-post-classrank-card li b {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-post-classrank-card li em { color: var(--orange); font-style: normal; font-weight: 700; }
.event-post-rk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--bg-soft-2);
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
}
.event-post-rk.is-medal { background: linear-gradient(135deg, #f2b705, #e08a00); color: #fff; }
.event-post-classrank-empty { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }
.event-post-classrank-preseason {
  text-align: center;
  padding: 28px 22px;
  border: 1px solid rgba(255, 122, 24, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 122, 24, 0.08), rgba(255, 122, 24, 0.02));
}
.event-post-classrank-preseason h2 { margin: 12px 0 6px; }
.event-post-classrank-preseason p { margin: 0 auto; max-width: 560px; color: var(--ink-3); }
.event-post-classrank-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.14);
  border: 1px solid rgba(255, 122, 24, 0.4);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
}
.event-post-classrank-preseason-date {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: var(--radius);
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
  border: 1px solid var(--line-2);
}
.event-post-classrank-preseason-date small { color: var(--ink-3); font-size: 12px; }
.event-post-classrank-preseason-date strong { color: var(--orange); font-size: 16px; font-weight: 800; }
.event-post-faq details {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.event-post-faq details[open] {
  border-color: var(--orange-3);
}
.event-post-faq summary {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  transition: background .15s ease;
}
.event-post-faq details:not([open]) summary:hover {
  background: var(--bg-soft);
}
.event-post-faq summary::-webkit-details-marker { display: none; }
.event-post-faq summary::after {
  content: '+';
  float: right;
  color: var(--orange);
  font-weight: 800;
}
.event-post-faq details[open] summary::after { content: '–'; }
.event-post-faq details[open] summary {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.event-post-faq details p {
  margin: 0;
  padding: 14px 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.75;
}
.event-post-note {
  margin: 32px 0 0;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.7;
}

/* CTA รับโค้ดรางวัลในหน้ารายละเอียด event */
.event-post-codecta {
  margin-top: 20px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.event-post-codecta p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  flex: 1 1 260px;
}

/* ลิงก์รางวัลกิจกรรมในหน้า /account */
.account-reward-links { display: flex; flex-direction: column; gap: 12px; }
.account-reward-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.account-reward-link-text { display: flex; flex-direction: column; gap: 3px; }
.account-reward-link-text strong { color: var(--ink); font-weight: 700; }
.account-reward-link-text span { color: var(--ink-3); font-size: 13px; }

/* ===== การ์ดรับรางวัล/โค้ด — ใช้ร่วม Road to 70 + Pre-Register (rule ที่เหมือนกันรวมเป็นตัวเดียว ไม่ทำซ้ำ) ===== */
.r70code-page { padding: 24px 0 64px; }
.prereg-page { padding: 10px 0 28px; }
.r70code-status, .prereg-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.prereg-status { margin-bottom: 8px; }
.r70code-status.is-ready, .prereg-status.is-ready { background: rgba(46, 160, 67, .15); color: #2ea043; }
.r70code-status.is-used, .prereg-status.is-used { background: rgba(160, 160, 160, .18); color: var(--ink-3); }
.r70code-hint { margin: 16px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.prereg-hint { margin: 10px 0 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }
.r70code-note, .prereg-note { text-align: center; }
.r70code-note-icon, .prereg-note-icon { font-size: 40px; margin-bottom: 8px; }
.r70code-note h2, .prereg-note h2 { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.r70code-note p, .prereg-note p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.7; }
.r70code-note .btn, .prereg-note .btn { margin-top: 14px; }
.r70code-items-title { font-size: 18px; color: var(--ink); margin: 0 0 10px; }
.prereg-items-title { font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.r70code-items-grid, .prereg-items-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.r70code-item img, .prereg-item img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.r70code-item figcaption, .prereg-item figcaption { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.r70code-item strong, .prereg-item strong { color: var(--ink); font-weight: 700; font-size: 14.5px; }
.r70code-item span, .prereg-item span { color: var(--ink-3); font-size: 12.5px; }
.r70code-items-note, .prereg-items-note { margin-top: 10px; color: var(--ink-3); font-size: 13px; }

/* ===== หน้าโค้ดของฉัน (Road to 70) — เฉพาะที่ต่างจากด้านบน ===== */
.r70code-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.r70code-title { margin: 0 0 8px; font-size: 26px; color: var(--ink); }
.r70code-sub { margin: 0 0 24px; color: var(--ink-2); line-height: 1.7; }
.r70code-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
  text-align: center;
}
.r70code-code {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink);
  background: var(--bg);
  border: 1px dashed var(--orange);
  border-radius: 10px;
  padding: 16px 12px;
  margin: 0 auto 18px;
  user-select: all;
  word-break: break-all;
}
.r70code-copy { min-width: 180px; }
.r70code-usedinfo { margin: 16px 0 0; color: var(--ink-3); font-size: 13.5px; }
.r70code-note-hint { color: var(--ink-3) !important; font-size: 13.5px; }
.r70code-items { margin-top: 28px; }
.r70code-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  flex: 1 1 240px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

/* ===== หน้ายอดสะสม CBT2 (อังเปา) — My Carryover, read-only ===== */
.carry4-page { padding: 24px 0 64px; }
.carry4-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.carry4-gm-link { display: inline-block; margin: 0 0 18px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
.carry4-gm-link:hover { color: var(--orange); border-color: var(--orange); }
.carry4-title { margin: 0 0 8px; font-size: 26px; color: var(--ink); }
.carry4-sub { margin: 0 0 24px; color: var(--ink-2); line-height: 1.7; }
.carry4-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.carry4-note { text-align: center; }
.carry4-note-icon { font-size: 40px; margin-bottom: 8px; }
.carry4-note h2 { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.carry4-note p { margin: 0 0 8px; color: var(--ink-2); line-height: 1.7; }
.carry4-note-hint { color: var(--ink-3) !important; font-size: 13.5px; }
/* สรุป 2 ก้อน */
.carry4-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.carry4-card-label { display: block; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.carry4-card-value { margin: 6px 0 12px; font-size: clamp(28px, 7vw, 38px); font-weight: 800; color: var(--ink); line-height: 1.1; }
.carry4-card-value small { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.carry4-cash { border-top: 3px solid var(--orange); }
.carry4-baht { border-top: 3px solid #2ea043; }
.carry4-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.carry4-badge.is-done { background: rgba(46, 160, 67, .15); color: #2ea043; }
.carry4-badge.is-wait { background: rgba(255, 106, 0, .14); color: var(--orange-dark); }
.carry4-badge.is-none { background: rgba(160, 160, 160, .18); color: var(--ink-3); }
.carry4-card-hint { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
/* แถวสถิติ */
.carry4-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.carry4-stat {
  flex: 1 1 120px; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 14px 10px;
}
.carry4-stat span { display: block; font-size: 22px; font-weight: 800; color: var(--ink); }
.carry4-stat small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12px; }
/* ประวัติ */
.carry4-history { margin-top: 28px; }
.carry4-history-title { font-size: 18px; color: var(--ink); margin: 0 0 14px; }
.carry4-list { list-style: none; margin: 0; padding: 0; }
.carry4-list li {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: var(--bg-soft); margin-bottom: 10px;
}
.carry4-list-main { flex: 1 1 auto; color: var(--ink); font-size: 14.5px; }
.carry4-list-amt { color: #2ea043; font-weight: 800; font-size: 15px; }
.carry4-list-time { flex-basis: 100%; color: var(--ink-3); font-size: 12px; }
.carry4-foot { margin: 24px 0 0; color: var(--ink-3); font-size: 13px; }
.carry4-disclaimer { margin: 8px 0 0; color: var(--ink-3); font-size: 12px; line-height: 1.6; }
@media (max-width: 560px) {
  .carry4-summary { grid-template-columns: 1fr; }
}

/* ===== หน้าลงทะเบียนล่วงหน้า (Pre-Register รับชุดเริ่มต้น) — เฉพาะที่ต่างจากด้านบน ===== */
.prereg-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; text-align: center; }
.prereg-wrap .wiki-crumbs { text-align: left; margin-bottom: 8px; }
.prereg-title { margin: 0 0 4px; font-size: clamp(20px, 5vw, 23px); color: var(--ink); }
.prereg-sub { margin: 0 auto 10px; max-width: 620px; color: var(--ink-2); line-height: 1.65; font-size: 13.5px; }
.prereg-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 20px 18px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.prereg-done-icon {
  width: 56px; height: 56px; line-height: 56px;
  margin: 4px auto 12px;
  border-radius: 50%;
  background: rgba(46, 160, 67, .15);
  color: #2ea043;
  font-size: 30px;
  font-weight: 700;
}
.prereg-choose { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.prereg-charsel {
  width: 100%;
  max-width: 320px;
  padding: 8px 12px;
  margin: 0 auto 12px;
  display: block;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
}
.prereg-claim { min-width: 220px; }
.prereg-claim:disabled { opacity: .6; cursor: not-allowed; }
.prereg-msg { margin: 8px 0 0; font-size: 13.5px; min-height: 1em; line-height: 1.6; }
.prereg-msg.is-ok { color: #2ea043; }
.prereg-msg.is-err { color: #d64545; }
.prereg-usedinfo { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; }
.prereg-items { margin-top: 14px; }
.prereg-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 12px;
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.prereg-refine {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 106, 0, .14);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.steps { padding-left: 22px; color: var(--ink-2); }
.steps li { margin-bottom: 8px; }

/* ============ Share For Points Redesign ============ */
.vote-page {
  --vote-border: rgba(255, 106, 0, 0.25);
  display: grid;
  gap: 16px;
  max-width: 100%;
  overflow: hidden;
}

.vote-hero {
  position: relative;
  min-height: 400px;
  display: grid;
  grid-template-columns: 130px minmax(360px, 1fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 18px;
  margin: -10px 0 2px;
  padding: 26px 32px 26px 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,249,244,0.88) 50%, rgba(255,255,255,0.4) 100%),
    radial-gradient(520px 250px at 78% 34%, rgba(255, 151, 38, 0.22), transparent 70%),
    url('/img/hero-scene.webp') center 45% / cover no-repeat;
  border: 1px solid rgba(255, 224, 204, 0.55);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 16px 36px rgba(255, 106, 0, 0.09);
}

.vote-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 82px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 86%);
  pointer-events: none;
}

.vote-hero-mascot {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.vote-hero-mascot img {
  width: 122px;
  filter: drop-shadow(0 12px 16px rgba(74, 31, 16, 0.12));
}

.vote-hero-mascot span {
  padding: 5px 11px;
  border: 1px solid var(--vote-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.vote-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  max-width: 530px;
}

.vote-hero-copy h1 {
  margin-bottom: 7px;
  color: #4a1f10;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.vote-hero-copy h1 span {
  color: var(--orange);
  text-shadow: 0 8px 18px rgba(255, 106, 0, 0.16);
}

.vote-hero-ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 9px 18px 9px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5a00, #ff9d2e);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  white-space: normal;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.24);
}

.vote-hero-ribbon::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.32);
  flex-shrink: 0;
}

.vote-hero-desc {
  max-width: 520px;
  color: #4d2d1f;
  font-size: 16px;
  line-height: 1.9;
}

.vote-hero-art {
  position: relative;
  z-index: 1;
  min-height: 300px;
  align-self: stretch;
}

.vote-art-poring {
  position: absolute;
  right: 86px;
  top: 42px;
  width: 178px;
  filter: drop-shadow(0 18px 18px rgba(120, 46, 12, 0.16));
}

.vote-art-chest {
  position: absolute;
  right: 218px;
  bottom: 22px;
  width: 156px;
  filter: drop-shadow(0 18px 18px rgba(120, 46, 12, 0.16));
}

.vote-share-sign {
  position: absolute;
  right: 266px;
  top: 76px;
  transform: rotate(-7deg);
  padding: 13px 26px;
  border: 4px solid #b45b19;
  border-radius: 12px;
  background: linear-gradient(180deg, #7a3e1b, #4a2211);
  color: #ffd05a;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 12px 20px rgba(74, 31, 16, 0.18);
}

.vote-coin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3a9 0 18%, #ffc642 19% 55%, #f28b00 56% 100%);
  box-shadow: 0 8px 14px rgba(204, 97, 0, 0.22);
  animation: vote-coin-float 3.4s ease-in-out infinite;
}

.vote-coin-a { right: 178px; top: 16px; }
.vote-coin-b { right: 370px; top: 42px; --vc-scale: 0.78; animation-delay: -1.1s; }
.vote-coin-c { right: 60px; bottom: 76px; --vc-scale: 0.66; animation-delay: -2.2s; }

@keyframes vote-coin-float {
  0%, 100% { transform: translateY(0) scale(var(--vc-scale, 1)); }
  50% { transform: translateY(-9px) scale(var(--vc-scale, 1)); }
}

.vote-alert {
  margin: 0;
}

.vote-login-card,
.vote-panel,
.vote-reward-card,
.vote-bottom-cta {
  border: 1px solid var(--vote-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,250,245,0.95));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 10px 28px rgba(255, 106, 0, 0.09);
}

.vote-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
}

.vote-login-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.vote-login-copy strong {
  display: block;
  color: #3c1f12;
  font-size: 16px;
}

.vote-login-copy strong span {
  color: var(--orange);
}

.vote-login-copy p {
  color: var(--ink-2);
  font-size: 13.5px;
}

.vote-login-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.vote-login-icon svg {
  width: 30px;
  height: 30px;
}

.vote-login-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vote-login-actions .btn,
.vote-share-form .btn {
  width: 100%;
  min-height: 44px;
}

.vote-panel {
  padding: 18px 20px;
}

.vote-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.vote-panel h2,
.vote-reward-card h2,
.vote-bottom-cta h2 {
  color: #2f170e;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

.vote-panel-head h2,
.vote-steps-panel > h2,
.vote-rules > h2,
.vote-board-head h2 {
  position: relative;
  padding-left: 15px;
}

.vote-panel-head h2::before,
.vote-steps-panel > h2::before,
.vote-rules > h2::before,
.vote-board-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
}

.vote-panel-head p,
.vote-reward-card p,
.vote-bottom-copy p {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}

.vote-share-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 250px;
  gap: 10px;
  align-items: center;
}

.vote-share-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid rgba(255, 106, 0, 0.55);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.vote-share-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

.vote-share-form input:disabled {
  background: #fff8f3;
  color: var(--ink-3);
}

.vote-support-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 245, 235, 0.95), rgba(255, 255, 255, 0.96)),
    radial-gradient(260px 140px at 92% 12%, rgba(255, 197, 75, 0.22), transparent 70%);
}

.vote-support-box-copy {
  display: grid;
  align-content: center;
  gap: 5px;
}

.vote-support-box-copy span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #4a2211;
  color: #ffd96b;
  font-size: 12px;
  font-weight: 900;
}

.vote-support-box-copy strong {
  color: #32170c;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}

.vote-support-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vote-support-box li {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 196, 70, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #4d2d1f;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.vote-support-box li:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 145, 40, 0.55);
  box-shadow: 0 8px 16px rgba(255, 145, 40, 0.14);
}

.vote-support-box li img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.vote-support-box-note {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px dashed rgba(255, 145, 40, 0.5);
  border-radius: 8px;
  background: rgba(255, 245, 230, 0.6);
  color: #7a4a2a;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.vote-cooldown,
.vote-pending {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #a45a23;
  font-size: 13px;
}

.vote-cooldown svg {
  width: 17px;
  height: 17px;
}

.vote-pending {
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff8f1;
}

.vote-history {
  overflow: hidden;
}

.vote-history-scroll {
  overflow-x: auto;
}

.vote-history table {
  min-width: 820px;
}

.vote-steps-panel h2 {
  margin-bottom: 16px;
}

.vote-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
  align-items: stretch;
}

.vote-step-card {
  position: relative;
  min-width: 0;
  min-height: 134px;
  height: 100%;
  padding: 12px 14px 12px;
  display: grid;
  justify-items: center;
  align-content: start;
  grid-template-rows: 58px auto 1fr;
  text-align: center;
  border: 1px solid var(--vote-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff9f4);
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vote-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 0, 0.38);
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.1);
}

.vote-step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -27px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 4px solid var(--orange-2);
  border-right: 4px solid var(--orange-2);
  border-radius: 3px;
  opacity: 0.68;
}

.vote-step-no,
.vote-player-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  font-weight: 900;
}

.vote-step-no {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.vote-step-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff3e8, #ffe1c8);
  box-shadow: inset 0 0 0 1px rgba(255, 145, 40, 0.22);
  color: var(--orange);
}

.vote-step-icon svg {
  width: 34px;
  height: 34px;
}

.vote-step-icon-facebook {
  background: #edf4ff;
  color: #2f65c7;
}

.vote-step-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.vote-step-card h3 {
  color: #3c1f12;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  align-self: start;
}

.vote-step-card p {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.vote-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.vote-rules {
  background:
    linear-gradient(90deg, rgba(255, 241, 231, 0.86), rgba(255,255,255,0.88)),
    #fff;
}

.vote-rules ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 26px;
  margin-top: 14px;
  list-style: none;
}

.vote-rules li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.vote-rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 4px 9px rgba(255, 106, 0, 0.18);
}

.vote-rules li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.vote-reward-card {
  position: relative;
  min-height: 156px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 18px 192px 18px 22px;
  background:
    radial-gradient(260px 150px at 88% 52%, rgba(255, 196, 70, 0.25), transparent 68%),
    radial-gradient(220px 130px at 92% 78%, rgba(255, 106, 0, 0.2), transparent 70%),
    linear-gradient(135deg, #fff7f2, #fff);
}

.vote-reward-card::after {
  content: '';
  position: absolute;
  right: 34px;
  bottom: 24px;
  width: 92px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 18% 48%, #ffd76b 0 10px, transparent 11px),
    radial-gradient(circle at 48% 34%, #ffb83f 0 11px, transparent 12px),
    radial-gradient(circle at 76% 52%, #ffd76b 0 9px, transparent 10px);
  opacity: 0.82;
}

.vote-reward-card img {
  position: absolute;
  right: 18px;
  bottom: -14px;
  z-index: 1;
  width: 174px;
  filter: drop-shadow(0 16px 18px rgba(160, 69, 14, 0.18));
}

.vote-reward-card .btn {
  min-width: 164px;
  min-height: 44px;
  margin-top: 14px;
  font-weight: 900;
}

.vote-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.vote-leaderboard {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.vote-board-head a {
  font-size: 13px;
  font-weight: 800;
}

.vote-board-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(10, minmax(88px, 1fr));
  gap: 12px;
  overflow-x: hidden;
}

.vote-player-card {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  transition: transform 0.18s ease;
}

.vote-player-card:hover {
  transform: translateY(-3px);
}

.vote-player-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf6;
}

.vote-player-rank {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 22px;
  height: 22px;
  z-index: 2;
  transform: translateX(-36px);
  font-size: 12px;
}

.vote-player-card:first-child::before {
  content: '';
  position: absolute;
  top: 46px;
  left: 50%;
  width: 20px;
  height: 14px;
  transform: translateX(-30px);
  background: linear-gradient(180deg, #ffd86b, #f09b00);
  clip-path: polygon(0 100%, 0 25%, 27% 55%, 50% 0, 73% 55%, 100% 25%, 100% 100%);
}

.vote-player-top-1 img {
  border-color: #f1b925;
  box-shadow: 0 0 0 3px rgba(255, 215, 95, 0.28), 0 10px 18px rgba(217, 140, 0, 0.16);
  animation: vote-gold-glow 2.6s ease-in-out infinite;
}

@keyframes vote-gold-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 215, 95, 0.28), 0 10px 18px rgba(217, 140, 0, 0.16); }
  50% { box-shadow: 0 0 0 4px rgba(255, 207, 64, 0.5), 0 12px 24px rgba(217, 140, 0, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .vote-coin,
  .vote-player-top-1 img {
    animation: none;
  }
}

.vote-player-top-1 .vote-player-rank {
  background: linear-gradient(135deg, #ffe48a, #f4a900);
  color: #6a3600;
}

.vote-player-top-2 img {
  border-color: #cfd6df;
  box-shadow: 0 0 0 3px rgba(210, 220, 232, 0.34), 0 10px 18px rgba(93, 111, 130, 0.12);
}

.vote-player-top-2 .vote-player-rank {
  background: linear-gradient(135deg, #f4f7fb, #bfc9d6);
  color: #3e4a56;
}

.vote-player-top-3 img {
  border-color: #d99a59;
  box-shadow: 0 0 0 3px rgba(210, 137, 63, 0.24), 0 10px 18px rgba(145, 81, 31, 0.12);
}

.vote-player-top-3 .vote-player-rank {
  background: linear-gradient(135deg, #ffc789, #c76a24);
  color: #fff;
}

.vote-player-card strong {
  width: 100%;
  overflow: hidden;
  color: #2f170e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vote-player-card p {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.vote-bottom-cta {
  position: relative;
  min-height: 126px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 320px;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 16px 250px 16px 24px;
  background:
    linear-gradient(90deg, rgba(92, 27, 8, 0.98), rgba(151, 54, 9, 0.94) 56%, rgba(255, 106, 0, 0.84)),
    radial-gradient(320px 140px at 84% 50%, rgba(255, 203, 88, 0.28), transparent 70%);
  color: #fff;
}

.vote-bottom-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(74,31,16,0), rgba(74,31,16,0.16) 70%, rgba(74,31,16,0.78));
  pointer-events: none;
}

.vote-shield {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffcf54, #d83f11);
  color: #fff8d8;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22), 0 12px 22px rgba(0,0,0,0.16);
}

.vote-shield svg {
  width: 46px;
  height: 46px;
}

.vote-bottom-copy,
.vote-bottom-actions {
  position: relative;
  z-index: 1;
}

.vote-bottom-copy h2 {
  color: #fff;
}

.vote-bottom-copy p {
  color: #fff4e8;
}

.vote-bottom-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
}

.vote-bottom-actions .btn {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  white-space: normal;
  text-align: center;
}

.vote-bottom-actions .btn-outline {
  background: linear-gradient(135deg, #ff8a1f, #ff5a00);
  color: #fff;
  border-color: rgba(255,255,255,0.34);
  box-shadow: 0 10px 22px rgba(255, 90, 0, 0.28);
}

.vote-bottom-actions .btn-outline:hover {
  background: linear-gradient(135deg, #ff9b34, #f04c00);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.vote-bottom-art {
  position: absolute;
  right: 24px;
  bottom: -38px;
  z-index: 1;
  width: 190px;
  opacity: 0.9;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,0.18));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

/* ============ Contact ============ */
.contact-hero {
  position: relative;
  min-height: 238px;
  margin: -6px 0 16px;
  padding: 14px 22px 12px;
  display: grid;
  grid-template-columns: 205px minmax(300px, 1fr) 282px;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  background:
    radial-gradient(520px 240px at 18% 38%, rgba(255, 138, 28, 0.2), transparent 72%),
    radial-gradient(420px 250px at 78% 22%, rgba(255, 203, 92, 0.16), transparent 70%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 241, 0.66)),
    linear-gradient(180deg, rgba(255, 233, 214, 0.86), rgba(255, 255, 255, 0.52)),
    url('/img/hero-scene.webp') center 42% / cover no-repeat;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 14px 32px rgba(255, 106, 0, 0.08);
}
.contact-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 58px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
  pointer-events: none;
}
.contact-hero-art {
  position: relative;
  z-index: 1;
  align-self: end;
  opacity: 0.94;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-hero-art img {
  display: block;
  width: 198px;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(77, 37, 13, 0.24));
}
.contact-hero-badges {
  width: min(198px, 100%);
  display: grid;
  gap: 4px;
  margin-top: -12px;
}
.contact-hero-badges span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 190, 142, 0.78);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.09);
  backdrop-filter: blur(6px);
}
.contact-hero-main {
  position: relative;
  z-index: 2;
  text-align: center;
}
.contact-spark {
  color: var(--orange);
  font-size: 20px;
  line-height: 1;
  margin-bottom: 2px;
  text-shadow: 0 0 18px rgba(255, 106, 0, 0.3);
}
.contact-hero-main h1 {
  font-size: 36px;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.8);
}
.contact-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 800;
}
.contact-subtitle::before,
.contact-subtitle::after {
  content: '';
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9a5b2f, transparent);
}
.contact-hero-main p {
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.contact-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 10px;
}
.contact-trust span {
  min-height: 46px;
  padding: 7px 9px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255, 208, 176, 0.75);
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.07);
}
.contact-trust b {
  display: block;
  color: #a63c17;
  font-size: 13px;
  margin-bottom: 0;
}
.contact-warning {
  position: relative;
  z-index: 2;
  min-height: 154px;
  padding: 15px 18px 14px;
  color: #fff4df;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 218, 132, 0.2), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 34px),
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 18% 82%, rgba(255,255,255,0.08)),
    linear-gradient(180deg, #8a4a1f, #5c2b12);
  border: 3px solid #c68a42;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 150, 0.28),
    0 0 34px rgba(255, 143, 36, 0.2),
    0 14px 28px rgba(65, 30, 9, 0.22);
}
.contact-warning::before,
.contact-warning::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9b5a25, #d59a50, #7c3e19);
}
.contact-warning::before { top: -7px; }
.contact-warning::after { bottom: -7px; }
.contact-warning h2 {
  font-size: 17px;
  color: #ffe8bd;
  text-align: center;
  margin-bottom: 8px;
}
.contact-warning-icon {
  width: 32px;
  height: 32px;
  margin: -1px auto 5px;
  border-radius: 50%;
  color: #fff2bb;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #d79a35, #8b4d17);
  box-shadow: 0 0 0 5px rgba(255, 197, 82, 0.14), 0 0 22px rgba(255, 179, 55, 0.24);
}
.contact-warning-icon svg {
  width: 20px;
  height: 20px;
}
.contact-warning ul {
  list-style: none;
  display: grid;
  gap: 5px;
}
.contact-warning li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  font-weight: 600;
}
.contact-warning li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #ffca54;
}
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 10px;
}
.contact-channel {
  position: relative;
  min-height: 292px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-channel::after {
  content: '';
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 175px;
  height: 175px;
  opacity: 0.055;
  background: currentColor;
  border-radius: 50%;
  box-shadow: -70px -56px 0 -18px currentColor, -136px 12px 0 -34px currentColor;
  pointer-events: none;
}
.contact-channel:hover {
  transform: translateY(-8px);
  border-color: #ffc18f;
  box-shadow: 0 22px 44px rgba(255, 106, 0, 0.18);
}
.contact-channel-facebook {
  color: #1877f2;
  background: linear-gradient(135deg, #fff, #f4f8ff);
  border-color: rgba(24, 119, 242, 0.22);
  box-shadow: 0 10px 26px rgba(24, 119, 242, 0.08), 0 0 0 1px rgba(24, 119, 242, 0.06);
}
.contact-channel-group {
  color: var(--orange);
  background: linear-gradient(135deg, #fff, #fff8f2);
  border-color: rgba(255, 106, 0, 0.24);
  box-shadow: 0 10px 26px rgba(255, 106, 0, 0.1), 0 0 0 1px rgba(255, 106, 0, 0.06);
}
.contact-channel-discord {
  color: #6d5df5;
  background: linear-gradient(135deg, #fff, #f7f5ff);
  border-color: rgba(109, 93, 245, 0.22);
  box-shadow: 0 10px 26px rgba(109, 93, 245, 0.08), 0 0 0 1px rgba(109, 93, 245, 0.06);
}
.contact-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: #1d7af2;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(29, 122, 242, 0.22);
}
.contact-channel-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 12px 24px rgba(43, 27, 18, 0.12);
}
.contact-channel-icon svg { width: 29px; height: 29px; }
.contact-channel-facebook .contact-channel-icon { background: linear-gradient(135deg, #2585ff, #176be2); }
.contact-channel-group .contact-channel-icon { background: linear-gradient(135deg, #ff8a1c, #ff5d00); }
.contact-channel-discord .contact-channel-icon { background: linear-gradient(135deg, #7d7cf8, #614bd8); }
.contact-channel h2 {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 5px;
}
.contact-channel p {
  position: relative;
  z-index: 1;
  color: var(--ink-2);
  font-size: 12.8px;
  min-height: 32px;
  margin-bottom: 8px;
}
.contact-channel ul {
  position: relative;
  z-index: 1;
  list-style: none;
  width: 100%;
  margin: 0 0 11px 14px;
  max-width: calc(100% - 14px);
  display: grid;
  gap: 5px;
  text-align: left;
}
.contact-channel li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 12.6px;
  line-height: 1.35;
}
.contact-channel li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}
.contact-channel li[data-icon]::before {
  content: attr(data-icon);
  top: -1px;
  background: transparent;
  box-shadow: none;
  color: currentColor;
  font-size: 14px;
  line-height: 1;
}
.contact-channel-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(255, 106, 0, 0.24);
}
.contact-channel-btn svg { width: 16px; height: 16px; }
.contact-channel-btn:hover { color: #fff; transform: translateY(-1px); }
.contact-btn-facebook { background: linear-gradient(135deg, #2585ff, #176be2); }
.contact-btn-orange { background: linear-gradient(135deg, #ff8a1c, #ff6a00); }
.contact-btn-discord { background: linear-gradient(135deg, #7d7cf8, #6b3fd7); }
.contact-channel-btn.disabled {
  background: #d9d3ee;
  color: #fff;
  box-shadow: none;
  pointer-events: none;
}
.contact-trade-alert {
  position: relative;
  min-height: 82px;
  margin: 12px 0 16px;
  padding: 13px 190px 13px 88px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 218, 116, 0.32), transparent 1px, transparent calc(100% - 1px), rgba(255, 191, 85, 0.32) 100%),
    radial-gradient(420px 120px at 46% 50%, rgba(255, 193, 74, 0.18), transparent 68%),
    radial-gradient(360px 110px at 88% 52%, rgba(255, 150, 44, 0.18), transparent 64%),
    linear-gradient(135deg, #8b2109, #4b1205 56%, #8a2508);
  border: 1px solid rgba(255, 187, 84, 0.48);
  border-radius: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 145, 0.26),
    inset 0 -1px 0 rgba(255, 165, 54, 0.18),
    0 14px 28px rgba(97, 26, 5, 0.2);
  color: #fff;
}
.contact-trade-alert::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(90,20,0,0.95) 0%,
      rgba(90,20,0,0.7) 30%,
      rgba(90,20,0,0.3) 60%,
      rgba(90,20,0,0) 100%
    ),
    linear-gradient(90deg, rgba(75, 18, 5, 0.72), rgba(75, 18, 5, 0.18) 60%, rgba(75, 18, 5, 0));
}
.contact-trade-alert::after {
  content: '';
  position: absolute;
  inset: 8px 10px;
  z-index: 0;
  pointer-events: none;
  border-top: 1px solid rgba(255, 218, 116, 0.18);
  border-bottom: 1px solid rgba(255, 174, 62, 0.14);
  border-radius: 12px;
}
.trade-shield {
  position: absolute;
  left: 18px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #ffe08c;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 232, 150, 0.22), rgba(255, 224, 140, 0.1)),
    rgba(255, 224, 140, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 140, 0.28),
    0 0 0 1px rgba(255, 187, 84, 0.08),
    0 0 30px rgba(255, 202, 84, 0.3),
    0 0 58px rgba(255, 137, 28, 0.13);
}
.trade-shield svg { width: 34px; height: 34px; }
.trade-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1 1 65%;
}
.trade-copy h2 {
  font-size: 16.5px;
  color: #ffdd76;
  margin-bottom: 2px;
}
.trade-copy p {
  font-size: 12.4px;
  color: #fff2dc;
}
.trade-copy small {
  display: inline;
  margin-top: 0;
  color: #ffd890;
  font-size: 12px;
  font-weight: 600;
}
.trade-button {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  min-width: 210px;
  margin-left: auto;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #ffbf55;
  background:
    linear-gradient(135deg, rgba(255, 190, 79, 0.16), rgba(255, 137, 28, 0.08)),
    rgba(80, 25, 6, 0.46);
  color: #ffe39a;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 166, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.14),
    0 0 20px rgba(255, 178, 65, 0.08);
}
.trade-button::before {
  content: '\1F4B0';
  margin-right: 8px;
  color: #ffd35f;
  text-shadow: 0 0 12px rgba(255, 194, 75, 0.48);
}
.trade-button:hover {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 204, 104, 0.24), rgba(255, 137, 28, 0.2)),
    rgba(96, 30, 8, 0.56);
  border-color: #ffd27a;
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 184, 0.3),
    0 12px 25px rgba(0, 0, 0, 0.18),
    0 0 26px rgba(255, 178, 65, 0.18);
  transform: translateY(-2px);
}
.trade-treasure {
  position: absolute;
  right: -20px;
  bottom: -38px;
  width: 245px;
  height: 142px;
  object-fit: cover;
  object-position: right bottom;
  opacity: 0.68;
  pointer-events: none;
  filter: saturate(0.9) contrast(1.02) blur(0.6px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 18%, rgba(0,0,0,0.72) 48%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 18%, rgba(0,0,0,0.72) 48%, #000 100%);
}
.contact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}
.contact-stat-card {
  min-height: 118px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #fff, #fff7f1);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.08);
}
.contact-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 7px;
  border-radius: 12px;
  background: #fff1e6;
  border: 1px solid var(--line);
}
.contact-stat-card strong {
  color: var(--orange);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
}
.contact-stat-card span:last-child {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.footer-contact {
  margin-top: 18px;
  border-top-color: #ffc49b;
  background:
    radial-gradient(320px 160px at 84% 10%, rgba(255, 138, 28, 0.08), transparent 68%),
    linear-gradient(180deg, #fff8f2, #fff1e6);
}

/* ============ Credit Merchants ============ */
.credit-hero {
  position: relative;
  min-height: 470px;
  margin: -14px calc(50% - 50vw) 34px;
  padding: 58px max(28px, calc((100vw - 1200px) / 2 + 28px));
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(430px, 1.1fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 248, 241, 0.96) 0%, rgba(255, 243, 228, 0.78) 42%, rgba(255, 232, 201, 0.58) 100%),
    radial-gradient(620px 260px at 78% 56%, rgba(255, 151, 32, 0.26), transparent 70%),
    url('/img/hero-scene.webp') center 42% / cover no-repeat;
  box-shadow: inset 0 -1px 0 rgba(255, 213, 180, 0.8);
}
.credit-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 116px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 82%);
  pointer-events: none;
}
.credit-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  min-width: 0;
}
.credit-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 183, 126, 0.72);
  color: #a84615;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.08);
}
.credit-hero h1 {
  color: #4a1f10;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 14px;
}
.credit-hero p {
  max-width: 520px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.74;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.credit-safe-message {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
  color: #6d3923 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
.credit-hero-actions,
.credit-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.credit-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  max-width: 100%;
}
.credit-note span {
  position: relative;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 196, 155, 0.72);
  color: #8b3b16;
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}
.credit-note span::before {
  content: '\2713';
  margin-right: 6px;
  color: var(--orange);
}
.credit-hero-art {
  position: relative;
  z-index: 1;
  min-height: 400px;
}
.credit-hero-art img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(91, 38, 12, 0.22));
}
.credit-art-knight {
  left: 6%;
  bottom: 38px;
  width: 178px;
  z-index: 3;
}
.credit-art-priest {
  left: 34%;
  bottom: 48px;
  width: 176px;
  z-index: 4;
}
.credit-art-smith {
  right: 4%;
  bottom: 38px;
  width: 178px;
  z-index: 3;
}
.credit-art-poring {
  left: 45%;
  bottom: 16px;
  width: 168px;
  z-index: 5;
}
.credit-hero-art::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 3%;
  bottom: 0;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 169, 58, 0.3), transparent 68%);
}
.credit-treasure {
  position: absolute;
  left: 28%;
  bottom: 20px;
  width: 230px;
  height: 118px;
  z-index: 2;
  border-radius: 14px 14px 18px 18px;
  border: 5px solid #7d3612;
  background:
    radial-gradient(circle at 18% 18%, #ffd56c 0 6px, transparent 7px),
    radial-gradient(circle at 38% 16%, #ffd56c 0 7px, transparent 8px),
    radial-gradient(circle at 58% 18%, #ffd56c 0 6px, transparent 7px),
    radial-gradient(circle at 78% 20%, #ffd56c 0 7px, transparent 8px),
    linear-gradient(180deg, #b5521b 0 44%, #7f3516 45% 100%);
  box-shadow: inset 0 20px 0 rgba(255, 176, 60, 0.35), 0 18px 28px rgba(91, 38, 12, 0.2);
}
.credit-treasure::before {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: -28px;
  height: 50px;
  border-radius: 48% 48% 12px 12px;
  border: 5px solid #7d3612;
  background: linear-gradient(180deg, #ffb23e, #b85218);
}
.credit-treasure::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 34px;
  width: 42px;
  height: 48px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffd66d, #f48a16);
  box-shadow: 0 0 0 4px rgba(125, 54, 18, 0.75);
}
.credit-section-head {
  text-align: center;
  margin-bottom: 22px;
}
.credit-section-head h2 {
  color: #4a1f10;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 900;
}
.credit-section-head p {
  color: #765241;
  font-size: 15px;
  font-weight: 700;
}
.credit-section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  text-align: left;
}
.credit-section-head-row a {
  color: var(--orange);
  font-weight: 800;
}
.credit-steps,
.credit-list-section,
.credit-info-grid {
  max-width: 1200px;
  margin: 0 auto 36px;
}
.credit-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.credit-step-card {
  position: relative;
  min-height: 236px;
  padding: 26px 20px 22px;
  text-align: center;
  border: 1px solid rgba(255, 196, 155, 0.72);
  border-radius: 14px;
  background:
    radial-gradient(120px 80px at 50% 0, rgba(255, 179, 79, 0.12), transparent 70%),
    linear-gradient(180deg, #fff, #fff8f1);
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.08);
}
.credit-step-card:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  right: -25px;
  top: 45%;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffe2c7;
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.13);
}
.credit-step-number {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}
.credit-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff4e8, #ffd9b7);
  border: 1px solid rgba(255, 151, 32, 0.36);
  color: var(--orange);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 22px rgba(255, 106, 0, 0.12);
}
.credit-step-icon svg,
.credit-rule-list svg,
.credit-cta-shield svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.credit-step-card h3 {
  color: #5b260f;
  font-size: 17px;
  margin-bottom: 8px;
}
.credit-step-card p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.credit-merchant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.credit-merchant-card {
  position: relative;
  min-height: 326px;
  padding: 24px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 126, 0.72);
  background:
    radial-gradient(160px 100px at 50% 0, rgba(255, 174, 70, 0.1), transparent 70%),
    linear-gradient(180deg, #fff, #fff8f2);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.1);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.credit-merchant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 106, 0, 0.16);
}
.merchant-rank {
  position: absolute;
  top: -13px;
  left: 16px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f6b546, #ff6a00);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.22);
}
.credit-tier-d .merchant-rank { background: linear-gradient(135deg, #ffb632, #ff5a00); }
.credit-tier-g .merchant-rank { background: linear-gradient(135deg, #ffd66f, #e6a51b); }
.credit-tier-s .merchant-rank { background: linear-gradient(135deg, #cfd6df, #858e98); }
.credit-tier-b .merchant-rank { background: linear-gradient(135deg, #c4874e, #8a552e); }
.credit-tier-d {
  border-color: rgba(255, 151, 32, 0.92);
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.15);
}
.credit-merchant-card img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 3px solid #ffe2c9;
  background: #fff;
  box-shadow: 0 10px 24px rgba(91, 38, 12, 0.12);
}
.credit-merchant-card h3 {
  margin-top: 10px;
  color: #4d2110;
  font-size: 18px;
}
.merchant-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px auto 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.merchant-tier-badge.tier-featured {
  color: #ff5a00;
  background: linear-gradient(135deg, rgba(255, 182, 50, 0.2), rgba(255, 90, 0, 0.16));
  border: 1px solid rgba(255, 90, 0, 0.4);
}
.merchant-tier-badge.tier-priority {
  color: #b9821b;
  background: rgba(255, 214, 111, 0.22);
  border: 1px solid rgba(230, 165, 27, 0.45);
}
.merchant-tier-badge.tier-verified {
  color: #5f6b78;
  background: rgba(207, 214, 223, 0.3);
  border: 1px solid rgba(133, 142, 152, 0.4);
}
.merchant-tier-badge.tier-basic {
  color: #8a552e;
  background: rgba(196, 135, 78, 0.16);
  border: 1px solid rgba(138, 85, 46, 0.36);
}
.credit-merchant-card.is-example {
  overflow: hidden;
}
.merchant-example-ribbon {
  position: absolute;
  top: 12px;
  right: -34px;
  transform: rotate(45deg);
  width: 130px;
  padding: 4px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, #ff9320, #ff5a00);
  box-shadow: 0 6px 14px rgba(255, 106, 0, 0.28);
  z-index: 2;
}
.credit-section-sub {
  margin-top: 6px;
  max-width: 640px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}
.credit-merchant-card dl {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
  flex: 1;
}
.credit-merchant-card dl div {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 244, 235, 0.82);
  border: 1px solid rgba(255, 214, 182, 0.72);
}
.credit-merchant-card dt {
  color: var(--ink-3);
  font-size: 12px;
}
.credit-merchant-card dd {
  color: var(--orange);
  font-weight: 900;
}
.credit-merchant-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-weight: 800;
}
.credit-merchant-card a:hover {
  color: #fff;
  background: var(--orange);
}
.credit-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(330px, 0.94fr);
  gap: 16px;
  min-width: 0;
}
.credit-table-card,
.credit-rules-card {
  min-width: 0;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 196, 155, 0.72);
  background: linear-gradient(180deg, #fff, #fffaf6);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.07);
}
.credit-table-card h2,
.credit-rules-card h2 {
  color: #4a1f10;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 16px;
}
.credit-table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.credit-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
}
.credit-table th {
  padding: 13px 14px;
  background: #fff0df;
  color: #4a1f10;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.credit-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 196, 155, 0.55);
  color: #5d4033;
  font-size: 13.5px;
  vertical-align: top;
}
.credit-table td:first-child {
  color: #4a1f10;
  font-weight: 900;
}
.credit-table-card > p {
  margin-top: 14px;
  color: #765241;
  font-size: 13.5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.credit-rule-list {
  display: grid;
  gap: 10px;
}
.credit-rule-list section {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 155, 0.72);
  background: rgba(255, 247, 240, 0.8);
}
.credit-rule-list span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--orange);
  background: #fff0df;
}
.credit-rule-list svg {
  width: 28px;
  height: 28px;
}
.credit-rule-list h3 {
  color: #5b260f;
  font-size: 15px;
  margin-bottom: 4px;
}
.credit-rule-list p {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.credit-final-cta {
  position: relative;
  max-width: 1200px;
  min-height: 142px;
  margin: 0 auto 10px;
  padding: 24px 248px 24px 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 187, 84, 0.55);
  background:
    radial-gradient(380px 150px at 88% 50%, rgba(255, 203, 92, 0.22), transparent 72%),
    linear-gradient(135deg, #7e2109, #4b1205 58%, #9a2b08);
  box-shadow: 0 16px 34px rgba(97, 26, 5, 0.22);
}
.credit-cta-shield {
  position: absolute;
  left: 28px;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #ffcf64;
  background: linear-gradient(180deg, rgba(255, 128, 20, 0.45), rgba(89, 21, 4, 0.35));
  border: 1px solid rgba(255, 205, 112, 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 12px 22px rgba(0,0,0,0.18);
}
.credit-cta-shield svg {
  width: 56px;
  height: 56px;
}
.credit-cta-copy {
  position: relative;
  z-index: 2;
}
.credit-final-cta h2 {
  color: #ffdd76;
  font-size: 22px;
  line-height: 1.25;
  white-space: nowrap;
}
.credit-final-cta p {
  margin-top: 5px;
  color: #fff2dc;
  font-size: 14px;
  line-height: 1.55;
}
.credit-final-cta .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 216, 142, 0.75);
  color: #ffe5ae;
}
.credit-final-actions {
  position: relative;
  z-index: 2;
  margin-top: 0;
  flex-shrink: 0;
}
.credit-cta-poring {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 260px;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,0.22));
  mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 100%);
}

/* ============ Sidebar (????????????????) ============ */
.sidebar {
  display: none !important;
}
.box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.box-head {
  padding: 12px 16px;
  background: var(--bg-soft-2);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.box-body { padding: 16px; }

.status-list { list-style: none; }
.status-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #fff1e6;
  font-size: 13.5px;
  color: var(--ink-2);
}
.status-list li:last-child { border-bottom: none; }
.status-list .num { color: var(--orange); font-weight: 700; }

.art-404 { width: 200px; display: block; margin: 0 auto 16px; }

/* ============ Events Page ============ */
/* ??????? display: flex ??????? attribute hidden ??? browser ???????????????????? */
.news-card[hidden],
.panel[hidden] { display: none !important; }

/* ??????????????? */
.events-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-2);
}
.events-empty-img {
  width: 90px;
  display: block;
  margin: 0 auto 12px;
}

/* ============ Events Center 4.0 ============ */
.events4-page {
  --events4-orange: #ff6900;
  --events4-orange-2: #ff8a21;
  --events4-cream: #fff8f0;
  --events4-line: #fed7aa;
  --events4-ink: #4a2818;
  --events4-muted: #7c6254;
  --events4-shadow: 0 18px 48px rgba(255, 106, 0, 0.14), 0 4px 14px rgba(70, 32, 12, 0.06);
  position: relative;
  margin: -28px calc(50% - 50vw) 0;
  padding-bottom: 44px;
  background:
    radial-gradient(420px 220px at 6% 12%, rgba(255, 123, 27, 0.09), transparent 72%),
    radial-gradient(360px 190px at 91% 8%, rgba(255, 189, 96, 0.16), transparent 70%),
    linear-gradient(180deg, #fffdfb 0%, #fffaf6 42%, #ffffff 100%);
  color: var(--events4-ink);
}
.events4-container {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
}
.events4-hero {
  position: relative;
  overflow: hidden;
  min-height: 318px;
  border-bottom: 1px solid rgba(254, 215, 170, 0.8);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 247, 238, 0.82) 45%, rgba(255, 238, 221, 0.52) 100%),
    url('/img/home/hero-scene-1280.webp') center 34% / cover no-repeat;
}
.events4-hero::before,
.events4-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.events4-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 6% 36%, rgba(190, 93, 219, 0.22) 0 10px, transparent 11px),
    radial-gradient(circle at 9% 28%, rgba(255, 156, 75, 0.22) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 28%, rgba(255, 112, 135, 0.22) 0 15px, transparent 16px),
    radial-gradient(circle at 95% 46%, rgba(255, 183, 70, 0.24) 0 11px, transparent 12px),
    linear-gradient(135deg, transparent 76%, rgba(255, 122, 26, 0.16) 76% 77%, transparent 77%);
  opacity: 0.9;
}
.events4-hero::after {
  right: 4vw;
  top: 0;
  width: 360px;
  height: 120px;
  background:
    linear-gradient(135deg, transparent 48%, #ffb340 49% 51%, transparent 52%),
    radial-gradient(circle at 16% 34%, #ffb340 0 8px, transparent 9px),
    radial-gradient(circle at 28% 40%, #ff6d6d 0 7px, transparent 8px),
    radial-gradient(circle at 40% 34%, #ffe28a 0 8px, transparent 9px),
    radial-gradient(circle at 52% 40%, #ff8f45 0 7px, transparent 8px);
  opacity: 0.8;
  transform: rotate(-7deg);
}
.events4-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 318px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 42px 0 34px;
}
.events4-hero-copy {
  width: 100%;
}
.events4-hero-copy h1 {
  font-size: clamp(36px, 4.3vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 10px;
}
.events4-hero-copy h1 span {
  color: var(--events4-orange);
}
.events4-hero-copy p {
  max-width: 780px;
  color: #3f271a;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
}
.events4-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.events4-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--events4-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--events4-ink);
  box-shadow: 0 7px 18px rgba(255, 106, 0, 0.08);
  font: 700 13px/1 'Prompt', sans-serif;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease;
}
.events4-filter:hover {
  transform: translateY(-2px);
  color: var(--events4-orange);
  box-shadow: 0 11px 22px rgba(255, 106, 0, 0.14);
}
.events4-filter.active {
  color: #fff;
  border-color: var(--events4-orange);
  background: linear-gradient(135deg, var(--events4-orange-2), var(--events4-orange));
  box-shadow: 0 12px 24px rgba(255, 106, 0, 0.26);
}
.events4-countdown {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 11px 18px;
  border: 1px solid var(--events4-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.12);
}
.events4-countdown-live {
  border-color: rgba(47, 191, 113, 0.55);
  box-shadow: 0 10px 24px rgba(23, 152, 79, 0.16);
}
.events4-countdown-label {
  color: var(--events4-muted);
  font-size: 13px;
  font-weight: 700;
}
.events4-countdown-live .events4-countdown-label {
  color: #17984f;
}
.events4-countdown-time {
  min-width: 118px;
  color: var(--events4-orange);
  font-size: 21px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  text-align: center;
}
.events4-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.events4-card:hover .events4-card-image img {
  transform: scale(1.045);
}
.events4-card-badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 12px;
  color: #fff;
  border-radius: 7px;
  padding: 5px 13px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #fa5ab1, #d63384);
  box-shadow: 0 8px 18px rgba(218, 55, 132, 0.25);
}
.events4-list-section {
  margin-top: 30px;
}
.events4-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.events4-section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--events4-ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}
.events4-search {
  position: relative;
  width: min(290px, 100%);
  flex: 0 0 auto;
}
.events4-search .events4-mini-icon-search {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #9b8a80;
}
.events4-search input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 18px;
  border: 1px solid #ddd2ca;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(60, 35, 22, 0.04), 0 8px 18px rgba(60, 35, 22, 0.07);
  color: var(--events4-ink);
  font: 500 14px/1 'Prompt', sans-serif;
}
.events4-search input:focus {
  outline: none;
  border-color: var(--events4-orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.13), 0 8px 18px rgba(60, 35, 22, 0.07);
}
.events4-search input::placeholder {
  color: #9b8a80;
}
.events4-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.events4-card {
  border: 1px solid var(--events4-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(255, 106, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.events4-card[hidden] {
  display: none !important;
}
.events4-card:hover {
  transform: translateY(-6px);
  border-color: #ffbf8a;
  box-shadow: 0 20px 42px rgba(255, 106, 0, 0.18);
}
.events4-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--events4-cream);
}
.events4-status {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 14px rgba(60, 30, 12, 0.22);
}
.events4-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.events4-status-soon { background: linear-gradient(135deg, #4d93ff, #2472df); }
.events4-status-live { background: linear-gradient(135deg, #2fbf71, #17984f); }
.events4-status-end { background: linear-gradient(135deg, #9aa0a6, #6b7280); }
.events4-status-live::before {
  animation: events4-live-pulse 1.4s ease-in-out infinite;
}
@keyframes events4-live-pulse {
  50% { opacity: 0.35; }
}
.events4-badge-blue { background: linear-gradient(135deg, #4d93ff, #2472df); }
.events4-badge-purple { background: linear-gradient(135deg, #a85dff, #733be2); }
.events4-badge-amber { background: linear-gradient(135deg, #ffae2e, #f27d00); }
.events4-badge-pink { background: linear-gradient(135deg, #fa5ab1, #d63384); }
.events4-card-body {
  padding: 14px 16px 16px;
}
.events4-card-body h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 6px;
}
.events4-card-body h3 a {
  color: var(--events4-ink);
}
.events4-card-body h3 a:hover {
  color: var(--events4-orange);
}
.events4-card-body p {
  min-height: 48px;
  color: #553827;
  font-size: 13px;
  line-height: 1.55;
}
.events4-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.events4-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #948277;
  font-size: 12px;
  font-weight: 600;
}
.events4-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 30px;
  padding: 0 16px;
  border: 1px solid var(--events4-orange);
  border-radius: 999px;
  color: var(--events4-orange);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.events4-readmore:hover {
  color: #fff;
  background: var(--events4-orange);
  transform: translateY(-1px);
}
.events4-empty {
  margin-top: 24px;
}
.events4-mini-icon {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.events4-mini-icon::before,
.events4-mini-icon::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
}
.events4-mini-icon-grid::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 5px 0 0 transparent, inset -5px 0 0 transparent;
}
.events4-mini-icon-grid::after {
  width: 2px;
  height: 14px;
  background: currentColor;
  box-shadow: 5px 0 0 currentColor;
  opacity: 0.9;
}
.events4-mini-icon-gift::before {
  width: 15px;
  height: 12px;
  bottom: 1px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.events4-mini-icon-gift::after {
  width: 18px;
  height: 2px;
  top: 5px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}
.events4-mini-icon-star::before {
  content: '\2B50';
  inset: auto;
  font-size: 21px;
  line-height: 1;
  font-weight: 800;
}
.events4-mini-icon-flame::before {
  width: 12px;
  height: 15px;
  border-radius: 11px 11px 11px 2px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}
.events4-mini-icon-home::before {
  width: 15px;
  height: 12px;
  bottom: 1px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.events4-mini-icon-home::after {
  width: 11px;
  height: 11px;
  top: 0;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.events4-mini-icon-trophy::before {
  width: 14px;
  height: 11px;
  top: 1px;
  border: 2px solid currentColor;
  border-radius: 3px 3px 7px 7px;
}
.events4-mini-icon-trophy::after {
  width: 10px;
  height: 5px;
  bottom: 0;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.events4-mini-icon-calendar::before {
  width: 14px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.events4-mini-icon-calendar::after {
  width: 14px;
  height: 2px;
  top: 4px;
  background: currentColor;
}
.events4-mini-icon-clock::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.events4-mini-icon-clock::after {
  width: 5px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(2px, -1px);
}
.events4-mini-icon-search::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 0;
  left: 0;
}
.events4-mini-icon-search::after {
  width: 7px;
  height: 2px;
  right: 0;
  bottom: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.events4-mini-icon-down::before {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.events4-mini-icon-slime::before {
  width: 15px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 45% 45%;
}

@media (max-width: 1100px) {
  .events4-container {
    width: min(960px, calc(100vw - 32px));
  }
  .events4-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .events4-page {
    margin-top: -20px;
  }
  .events4-hero {
    min-height: auto;
  }
  .events4-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 0 24px;
  }
  .events4-hero-copy {
    text-align: left;
  }
  .events4-hero-copy p {
    max-width: 680px;
  }
  .events4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .events4-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .events4-search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .events4-container {
    width: min(100% - 24px, 480px);
  }
  .events4-page {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .events4-hero-copy h1 {
    font-size: 36px;
  }
  .events4-hero-copy p {
    font-size: 15px;
    line-height: 1.7;
  }
  .events4-filter-pills {
    gap: 8px;
  }
  .events4-filter {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
  }
.events4-grid {
    grid-template-columns: 1fr;
  }
  .events4-card-image {
    aspect-ratio: 16 / 8;
  }
  .events4-card-body p {
    min-height: auto;
  }
  .events4-card-foot {
    align-items: stretch;
    flex-direction: column;
  }
  .events4-readmore {
    width: 100%;
  }
}

/* ============ News Detail ============ */
/* ?????????: ????????????????????????????????????? */
a.news-thumb { display: block; }
.news-title-link {
  color: inherit;
  text-decoration: none;
}
.news-title-link:hover { text-decoration: underline; }

.news-detail { padding: 0; overflow: hidden; }
.news-detail-thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.news-detail-thumb img {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.news-detail-body { padding: 26px 32px 30px; }
.news-detail-body h2 { font-size: 22px; color: var(--orange); margin-bottom: 4px; }
.news-detail-body .news-date { margin: 0 0 14px; }
.news-detail-body p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 10px;
}
.news-detail-back { display: inline-block; margin: 4px 0 18px; }

/* ============ Legal / Meta Policy Pages ============ */
.legal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  max-width: 1180px;
  margin: 28px auto 22px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 130, 40, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94), rgba(255,247,239,0.82)),
    url('/img/server-info/hero.webp') center/cover;
  box-shadow: 0 22px 54px rgba(123, 56, 17, 0.12);
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 28%, rgba(255, 126, 24, 0.16), transparent 34%);
  pointer-events: none;
}
.legal-hero-copy,
.legal-hero-card {
  position: relative;
  z-index: 1;
}
.legal-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff4e9;
  color: var(--orange);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.16);
}
.legal-hero h1 {
  color: #3a1b0d;
  font-size: 42px;
  line-height: 1.16;
  font-weight: 900;
}
.legal-hero p {
  max-width: 680px;
  margin-top: 10px;
  color: #6b4d40;
  font-size: 17px;
  font-weight: 700;
}
.legal-hero-card {
  align-self: center;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 159, 88, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  box-shadow: 0 18px 38px rgba(98, 45, 18, 0.12);
}
.legal-hero-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 12px;
}
.legal-hero-card strong,
.legal-hero-card span {
  display: block;
}
.legal-hero-card strong {
  color: #3a1b0d;
  font-weight: 900;
}
.legal-hero-card span {
  margin-top: 5px;
  color: #8b6b58;
  font-size: 13px;
  font-weight: 700;
}
.legal-shell {
  max-width: 1180px;
  margin: 0 auto 54px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.legal-card {
  padding: 28px;
  border: 1px solid rgba(255, 159, 88, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(255,249,244,0.9));
  box-shadow: 0 16px 40px rgba(119, 56, 20, 0.08);
}
.legal-card h2 {
  margin-bottom: 12px;
  color: #3a1b0d;
  font-size: 22px;
  font-weight: 900;
}
.legal-card p,
.legal-card li {
  color: #60483b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}
.legal-card ul,
.legal-card ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}
.legal-card a:not(.btn) {
  color: var(--orange);
  font-weight: 900;
}
.legal-card-highlight,
.legal-contact {
  grid-column: 1 / -1;
}
.legal-card-highlight {
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255,255,255,0.94));
  border-color: rgba(255, 106, 0, 0.34);
}
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.legal-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.legal-contact p {
  max-width: 760px;
}

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  /* พื้นที่ขวาของ hero ไม่พอ — ปุ่มเข้าเล่นผ่านเว็บย้ายลงมากึ่งกลางใต้ CTA
     (flex-basis 100% บังคับขึ้นแถวใหม่; margin ล่างเผื่อ status-bar ที่ทับ hero -62px) */
  .hero-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-play-btn {
    flex-basis: 100%;
    max-width: 560px;
    justify-content: center;
    margin: -46px auto 92px;
  }

  .event-go-hero {
    grid-template-columns: minmax(0, 1fr) 160px;
    padding: 34px 28px 28px;
  }
  .event-go-copy h2 {
    font-size: 62px;
  }
  .event-go-top-grid {
    grid-template-columns: 1fr;
  }
  .event-go-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .event-go-step-grid {
    grid-template-columns: 1fr;
  }
  .event-go-step-grid article:not(:last-child)::after {
    display: none;
  }
  .event-go-cta {
    grid-template-columns: 108px minmax(0, 1fr);
  }
  .event-go-cta-actions {
    grid-column: 1 / -1;
  }
  .event-mvp-hero {
    grid-template-columns: minmax(0, 1fr) 190px;
    padding: 34px 28px;
  }
  .event-mvp-hero h2 {
    font-size: 46px;
  }
  .event-mvp-grid {
    grid-template-columns: 1fr;
  }
  .event-mvp-tier-grid {
    grid-template-columns: 1fr;
  }
  .event-mvp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .event-mvp-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { padding: 26px 7px; font-size: 13.5px; }
  .vote-hero {
    grid-template-columns: 110px minmax(0, 1fr) minmax(300px, 0.86fr);
    padding-right: 22px;
  }
  .vote-hero-copy h1 { font-size: 44px; }
  .vote-share-sign { right: 210px; font-size: 30px; }
  .vote-art-poring { right: 42px; }
  .vote-art-chest { right: 162px; }
  .vote-step-grid { gap: 44px; }
  .vote-step-card:not(:last-child)::after { right: -31px; }
  .vote-bottom-cta {
    grid-template-columns: 74px minmax(0, 1fr);
    padding-right: 190px;
  }
  .vote-bottom-actions {
    grid-column: 2;
  }
  .vote-bottom-art { width: 160px; }
}

@media (max-width: 900px) {
  .legal-hero,
.legal-shell {
    grid-template-columns: 1fr;
  }
  .legal-hero {
    margin-top: 18px;
    padding: 28px;
  }
  .legal-hero h1 {
    font-size: 32px;
  }
  .legal-contact {
    display: block;
  }
  .legal-contact .btn {
    margin-top: 16px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 22px; }
  .main-nav a:hover { transform: none; }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; }

  .layout { grid-template-columns: 1fr; }

  .register-page {
    width: min(90vw, 820px);
  }
  .login-page {
    width: min(94vw, 940px);
  }
  .login-hero {
    min-height: 150px;
    padding: 18px 170px;
  }
  .login-hero h1 {
    font-size: 30px;
  }
  .login-hero-left {
    left: -8px;
    transform: scale(0.78);
    transform-origin: left bottom;
  }
  .login-hero-right {
    right: -14px;
    transform: scale(0.82);
    transform-origin: right bottom;
  }
  .login-panel {
    grid-template-columns: 0.92fr 1.08fr;
  }
  .login-panel-art {
    min-height: 330px;
  }
  .login-leader {
    left: 44px;
    bottom: 90px;
    width: 168px;
  }
  .login-support {
    right: 36px;
    bottom: 102px;
    width: 132px;
  }
  .register-hero {
    min-height: 170px;
    padding: 22px 150px;
  }
  .register-hero h1 {
    font-size: 34px;
  }
  .register-hero-left {
    left: -8px;
    transform: scale(0.78);
    transform-origin: left bottom;
  }
  .register-hero-right {
    right: -14px;
    transform: scale(0.82);
    transform-origin: right bottom;
  }
  .register-card {
    padding: 18px 22px 20px;
  }
  .register-captcha {
    grid-template-columns: 1fr 22px 1fr 22px minmax(130px, 1.1fr) 44px;
    gap: 9px;
  }
  .register-success {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .register-success .btn {
    grid-column: 1 / -1;
  }

  .hero-inner { min-height: 430px; }
  .hero-content { padding: 40px 0 95px; }
  .hero-float-2 { display: none; }
  .status-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* การ์ดจำนวนคี่ (ซ่อน Online Now) → ใบสุดท้ายกินเต็มแถว ไม่ให้เหลือช่องว่างข้าง ๆ */
  .status-bar .status-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .main-grid { grid-template-columns: 1fr; }
  .banner-slider { min-height: 0; aspect-ratio: 8 / 3; }

  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-preview-grid { grid-template-columns: 1fr; }
  .castle-grid { grid-template-columns: 1fr; }
  .contact-hero {
    grid-template-columns: 210px 1fr;
    padding-top: 28px;
    gap: 18px;
  }
  .contact-hero-art img {
    width: 205px;
  }
  .contact-hero-badges {
    width: 205px;
    margin-top: -10px;
  }
  .contact-hero-badges span {
    font-size: 11px;
    min-height: 29px;
  }
  .contact-warning {
    grid-column: 1 / -1;
    max-width: 560px;
    justify-self: center;
    min-height: 0;
  }
  .contact-trust { grid-template-columns: 1fr; }
  .contact-card-grid { grid-template-columns: 1fr; }
  .contact-channel { min-height: 0; }
  .contact-trade-alert {
    padding: 18px 20px 108px 88px;
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-trade-alert::before {
    width: 100%;
    background:
      linear-gradient(180deg, rgba(90,20,0,0.12), rgba(90,20,0,0.72) 72%, rgba(90,20,0,0.95)),
      linear-gradient(90deg, rgba(75, 18, 5, 0.34), rgba(75, 18, 5, 0));
  }
  .trade-shield {
    left: 18px;
    width: 54px;
    height: 54px;
  }
  .trade-shield svg {
    width: 34px;
    height: 34px;
  }
  .trade-copy {
    flex-basis: auto;
  }
  .trade-button {
    flex-basis: auto;
    margin-left: 0;
  }
  .contact-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .credit-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 30px;
  }
  .credit-hero-copy {
    max-width: 680px;
  }
  .credit-hero-art {
    min-height: 260px;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }
  .credit-art-knight {
    left: 10%;
    width: 138px;
  }
  .credit-art-priest {
    left: 36%;
    width: 142px;
  }
  .credit-art-smith {
    right: 10%;
    width: 142px;
  }
  .credit-art-poring {
    width: 134px;
  }
  .credit-treasure {
    left: 30%;
    width: 190px;
  }
  .credit-step-grid,
.credit-merchant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .credit-step-card:nth-child(2)::after {
    display: none;
  }
  .credit-info-grid {
    grid-template-columns: 1fr;
  }
  .credit-final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 240px 24px 124px;
  }
  .vote-hero {
    min-height: 0;
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 24px 22px;
  }
  .vote-hero-art {
    grid-column: 1 / -1;
    min-height: 210px;
    margin-top: -10px;
  }
  .vote-share-sign { right: 310px; top: 42px; }
  .vote-art-poring { right: 86px; top: 22px; width: 145px; }
  .vote-art-chest { right: 210px; bottom: 0; width: 128px; }
  .vote-login-card,
.vote-info-grid {
    grid-template-columns: 1fr;
  }
  .vote-login-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vote-share-form {
    grid-template-columns: 1fr;
  }
  .vote-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .vote-step-card:not(:last-child)::after {
    display: none;
  }
  .vote-rules ul {
    grid-template-columns: 1fr;
  }
  .vote-board-scroll {
    display: flex;
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
  }
  .vote-player-card {
    width: 104px;
    flex: 0 0 104px;
  }
  .vote-bottom-cta {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 130px;
    padding: 20px 150px 22px 20px;
  }
  .vote-bottom-art {
    right: 8px;
    width: 136px;
  }
  .info4-hero {
    min-height: 300px;
  }
  .info4-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }
  .info4-tab {
    flex: 0 0 124px;
  }
  .info4-panel {
    padding: 0;
  }
  .info4-card-grid-3,
.info4-card-grid-2 {
    grid-template-columns: 1fr;
  }
  .info4-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info4-command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info4-refine-section-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-mascot { display: none; }
}

@media (max-width: 560px) {
  .legal-hero {
    padding: 22px;
    border-radius: 18px;
  }
  .legal-hero h1 {
    font-size: 28px;
  }
  .legal-card {
    padding: 22px;
  }
  .legal-actions .btn {
    width: 100%;
  }

  .header-actions { display: none; }
  .hero-logo { width: min(320px, 88vw); margin-top: 0; --logo-shift: 0px; transform: translateX(var(--logo-shift)); }
  .hero-sparks { transform: translateX(-50%); height: 190px; }
  .hero-title { font-size: 23px; }
  .hero-cta { flex-wrap: wrap; }
  .hero-cta .btn { flex: 1; }
  .hero-play-btn {
    max-width: 100%;
    margin: -40px auto 88px;
    padding: 14px 20px;
    white-space: normal;
  }
  .hero-play-icon { width: 46px; height: 46px; }
  .hero-play-text { font-size: 18px; }
  .hero-float-1 { display: none; }

  .status-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .status-value { font-size: 20px; }

  .news-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-sub { min-height: 0; }
  .features-banner { flex-direction: column; gap: 10px; border-radius: var(--radius-lg); padding: 18px 16px; }
  .banner-slider { aspect-ratio: 3 / 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .layout {
    padding-left: 16px;
    padding-right: 16px;
  }
  .register-page {
    width: 100%;
    gap: 14px;
  }
  .login-page {
    width: 100%;
    gap: 12px;
  }
  .login-hero {
    min-height: 150px;
    margin-top: -26px;
    padding: 18px 16px;
    border-radius: 0 0 20px 20px;
  }
  .login-hero-left,
.login-hero-right {
    opacity: 0.24;
    transform: scale(0.72);
  }
  .login-hero-left {
    left: -60px;
  }
  .login-hero-right {
    right: -68px;
  }
  .login-hero h1 {
    font-size: 28px;
  }
  .login-hero p {
    font-size: 12.5px;
    max-width: 315px;
  }
  .login-panel {
    border-radius: 18px;
    grid-template-columns: 1fr;
  }
  .login-panel-art {
    min-height: 210px;
  }
  .login-leader {
    left: 16%;
    bottom: 78px;
    width: 92px;
  }
  .login-support {
    right: 16%;
    bottom: 84px;
    width: 74px;
  }
  .login-panel-badge {
    left: 16px;
    top: 16px;
    font-size: 12px;
  }
  .login-stat-grid {
    left: 14px;
    right: 14px;
    bottom: 12px;
    gap: 8px;
  }
  .login-stat-card {
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 13px;
  }
  .login-stat-card strong {
    font-size: 16px;
  }
  .login-panel-form {
    padding: 24px 16px;
  }
  .login-form {
    gap: 16px;
  }
  .login-form-section h2 {
    font-size: 19px;
  }
  .login-form input {
    height: 52px;
  }
  .login-advice {
    padding: 14px;
  }
  .register-hero {
    min-height: 190px;
    margin-top: -26px;
    padding: 24px 18px;
    border-radius: 0 0 20px 20px;
  }
  .register-hero-left,
.register-hero-right {
    opacity: 0.24;
    transform: scale(0.72);
  }
  .register-hero-left {
    left: -60px;
  }
  .register-hero-right {
    right: -68px;
  }
  .register-hero h1 {
    font-size: 34px;
  }
  .register-hero p {
    font-size: 14px;
  }
  .register-card {
    padding: 20px 16px 22px;
    border-radius: 18px;
  }
  .register-form {
    gap: 18px;
  }
  .register-form-section:first-of-type {
    grid-template-columns: 1fr;
  }
  .register-form-section:nth-of-type(2) {
    grid-template-columns: 1fr;
  }
  .register-form-section:first-of-type h2,
.register-form-section:first-of-type label,
.register-form-section:first-of-type input,
.register-form-section:nth-of-type(2) h2,
.register-form-section:nth-of-type(2) label,
.register-form-section:nth-of-type(2) input {
    grid-column: 1;
    grid-row: auto;
  }
  .register-form-section h2 {
    font-size: 16px;
  }
  .register-captcha {
    grid-template-columns: minmax(72px, 1fr) 18px minmax(72px, 1fr) 18px 1fr 48px;
    gap: 7px;
  }
  .captcha-box,
.captcha-mark,
.captcha-refresh {
    min-height: 48px;
  }
  .captcha-box {
    font-size: 16px;
  }
  .register-captcha input {
    min-height: 48px;
    padding: 0 12px;
  }
  .register-advice {
    padding: 14px;
  }
  .register-success {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 20px 16px;
    text-align: center;
    border-radius: 18px;
  }
  .register-success .btn {
    width: 100%;
  }
  .vote-page {
    gap: 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .vote-page .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .vote-hero {
    display: block;
    margin-top: -26px;
    padding: 22px 16px 16px;
    text-align: center;
  }
  .vote-hero-mascot {
    display: none;
  }
  .vote-hero-mascot img {
    width: 94px;
  }
  .vote-hero-copy {
    display: block;
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    transform: none;
  }
  .vote-hero-copy h1 {
    display: block;
    margin-bottom: 10px;
    font-size: 34px;
  }
  .vote-hero-ribbon {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 14px;
    line-height: 1.55;
  }
  .vote-hero-desc {
    font-size: 14px;
  }
  .vote-hero-art {
    display: none;
    min-height: 170px;
    width: 100%;
  }
  .vote-share-sign {
    left: 14px;
    right: auto;
    top: 28px;
    transform: rotate(-7deg);
    padding: 8px 17px;
    font-size: 24px;
  }
  .vote-art-poring {
    right: 18px;
    top: 22px;
    width: 112px;
  }
  .vote-art-chest {
    right: 118px;
    bottom: 4px;
    width: 102px;
  }
  .vote-coin-a { right: 20px; top: 10px; }
  .vote-coin-b { right: 230px; top: 24px; }
  .vote-coin-c { right: 8px; bottom: 36px; }
  .vote-login-card,
.vote-panel,
.vote-reward-card,
.vote-bottom-cta {
    border-radius: 14px;
  }
  .vote-login-card,
.vote-panel {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    overflow: hidden;
  }
  .vote-login-copy {
    align-items: flex-start;
  }
  .vote-login-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }
  .vote-panel h2,
.vote-reward-card h2,
.vote-bottom-cta h2 {
    font-size: 18px;
  }
  .vote-support-box,
  .vote-support-box ul {
    grid-template-columns: 1fr;
  }
  .vote-support-box-copy strong {
    font-size: 15px;
  }
  .vote-step-grid {
    grid-template-columns: 1fr;
  }
  .vote-step-card {
    min-height: 148px;
  }
  .vote-reward-card {
    min-height: 164px;
    padding: 18px 138px 18px 16px;
  }
  .vote-reward-card img {
    right: -8px;
    width: 132px;
  }
  .vote-reward-card::after {
    right: 16px;
    bottom: 18px;
    transform: scale(0.82);
  }
  .vote-board-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .vote-bottom-cta {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px 16px 124px;
    text-align: left;
  }
  .vote-shield {
    width: 62px;
    height: 62px;
  }
  .vote-bottom-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .vote-bottom-art {
    right: 16px;
    bottom: -34px;
    width: 136px;
  }
  .contact-hero {
    grid-template-columns: 1fr;
    margin-top: -26px;
    padding-top: 24px;
    min-height: 0;
    text-align: center;
  }
  .contact-hero-art {
    display: flex;
    order: 2;
    margin-top: -4px;
  }
  .contact-hero-art img {
    display: none;
  }
  .contact-hero-badges {
    width: 100%;
    max-width: 320px;
    margin-top: 0;
  }
  .contact-hero-main h1 {
    font-size: 34px;
  }
  .contact-subtitle {
    font-size: 16px;
  }
  .contact-subtitle::before,
.contact-subtitle::after {
    width: 32px;
  }
  .contact-warning {
    width: 100%;
    padding: 22px 20px 20px;
  }
  .contact-channel {
    padding: 24px 18px 18px;
    border-radius: 18px;
  }
  .contact-channel h2 {
    font-size: 18px;
  }
  .contact-trade-alert {
    padding: 18px 18px 108px;
    text-align: center;
    align-items: center;
  }
  .trade-shield {
    position: static;
  }
  .trade-copy h2 {
    font-size: 16px;
  }
  .trade-button {
    width: 100%;
    justify-content: center;
  }
  .trade-treasure {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 210px;
    bottom: -38px;
  }
  .contact-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-stat-card {
    min-height: 104px;
  }
  .credit-hero {
    margin-top: -26px;
    margin-left: -16px;
    margin-right: -16px;
    width: auto;
    padding: 30px 18px 26px;
    text-align: center;
  }
  .credit-hero-copy,
.credit-hero-actions,
.credit-note {
    width: 100%;
    max-width: 100%;
  }
  .credit-hero h1 {
    font-size: 34px;
  }
  .credit-hero p {
    max-width: 100%;
    font-size: 14px;
  }
  .credit-safe-message {
    padding-left: 0;
    border-left: 0;
    border-top: 3px solid var(--orange);
    padding-top: 10px;
  }
  .credit-hero-actions,
.credit-final-actions {
    flex-direction: column;
  }
  .credit-hero-actions .btn,
.credit-final-actions .btn {
    width: 100%;
  }
  .credit-note {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .credit-hero-art {
    min-height: 220px;
  }
  .credit-art-knight {
    left: 0;
    width: 112px;
  }
  .credit-art-priest {
    left: 31%;
    width: 116px;
  }
  .credit-art-smith {
    right: 0;
    width: 116px;
  }
  .credit-art-poring {
    left: 42%;
    width: 104px;
  }
  .credit-treasure {
    left: 22%;
    width: 170px;
    height: 92px;
  }
  .credit-section-head-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .credit-section-head h2 {
    font-size: 23px;
  }
  .credit-step-grid,
.credit-merchant-grid {
    grid-template-columns: 1fr;
  }
  .credit-step-card {
    min-height: 0;
    overflow: hidden;
  }
  .credit-step-card p {
    overflow-wrap: anywhere;
  }
  .credit-step-card::after {
    display: none !important;
  }
  .credit-info-grid {
    grid-template-columns: 1fr;
  }
  .credit-table-card,
.credit-rules-card {
    padding: 18px;
  }
  .credit-rule-list section {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .credit-final-cta {
    min-height: 0;
    padding: 24px 18px 128px;
    text-align: center;
    align-items: stretch;
  }
  .credit-final-cta h2 {
    font-size: 20px;
    white-space: normal;
  }
  .credit-cta-shield {
    position: static;
    transform: none;
    margin: 0 auto;
  }
  .credit-cta-poring {
    left: 50%;
    right: auto;
    bottom: -54px;
    width: 210px;
    transform: translateX(-50%);
    mask-image: linear-gradient(180deg, #000 0, #000 72%, transparent 100%);
  }
  .admin-share-card {
    grid-template-columns: 1fr;
  }
  .bug-layout,
.bug-form-grid {
    grid-template-columns: 1fr;
  }
  .bug-title-row {
    display: grid;
  }
  .bug-card-status {
    justify-items: start;
  }
  .event-go-hero {
    min-height: 680px;
    grid-template-columns: 1fr;
    margin-left: -8px;
    margin-right: -8px;
    padding: 28px 18px 20px;
    align-items: end;
    background-position: 58% center;
    border-radius: 20px;
  }
  .event-go-copy h2 {
    font-size: 48px;
  }
  .event-go-copy strong {
    min-width: 0;
    font-size: 17px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .event-go-copy h3 {
    font-size: 17px;
  }
  .event-go-copy p {
    font-size: 14px;
  }
  .event-go-actions {
    display: grid;
  }
  .event-go-countdown {
    grid-template-columns: repeat(4, 1fr);
    align-self: end;
    width: 100%;
    padding: 12px;
    border-width: 3px;
  }
  .event-go-countdown::before {
    display: none;
  }
  .event-go-countdown > span {
    grid-column: 1 / -1;
  }
  .event-go-countdown div {
    padding-top: 8px;
  }
  .event-go-countdown b {
    font-size: 28px;
  }
  .event-go-countdown small {
    font-size: 12px;
  }
  .event-go-top-grid,
.event-go-reward-grid,
.event-go-feature-grid,
.event-go-step-grid {
    grid-template-columns: 1fr;
  }
  .event-go-panel {
    padding: 16px;
  }
  .event-go-mini-card {
    min-height: 0;
  }
  .event-go-timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .event-go-timeline::before,
.event-go-timeline::after,
.event-go-step-grid article:not(:last-child)::after {
    display: none;
  }
  .event-go-timeline article,
.event-go-timeline .is-final {
    grid-template-columns: 52px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    margin: 0;
    padding: 12px;
    border: 1px solid #ffd4ba;
    border-radius: 12px;
    background: #fff8f2;
    text-align: left;
  }
  .event-go-timeline p {
    grid-column: 2;
  }
  .event-go-step-grid article {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .event-go-step-grid img {
    width: 82px;
    height: 82px;
  }
  .event-go-cta {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 20px 16px;
  }
  .event-go-cta > img {
    width: 70px;
    height: 70px;
  }
  .event-go-cta h2 {
    font-size: 22px;
  }
  .event-go-cta p {
    font-size: 20px;
  }
  .event-go-cta-actions {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
  }
  .event-go-cta-actions .btn,
.event-go-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .event-mvp-page {
    gap: 16px;
  }
  .event-mvp-hero {
    grid-template-columns: 1fr;
    margin-left: -8px;
    margin-right: -8px;
    padding: 24px 18px;
    text-align: center;
    border-radius: 20px;
  }
  .event-mvp-hero h2 {
    font-size: 34px;
  }
  .event-mvp-hero p {
    font-size: 14px;
  }
  .event-mvp-hero img {
    order: -1;
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  .event-mvp-actions {
    display: grid;
  }
  .event-mvp-panel {
    padding: 16px;
    border-radius: 18px;
  }
  .event-mvp-head h2 {
    font-size: 22px;
  }
  .event-mvp-checks,
.event-mvp-steps {
    grid-template-columns: 1fr;
  }
  .event-mvp-tier {
    padding: 12px;
  }
  .event-mvp-tier-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .event-mvp-table {
    min-width: 620px;
  }
  .event-mvp-cta {
    padding: 20px 16px;
    text-align: center;
  }
  .event-mvp-cta .btn,
.event-mvp-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .event-bug-hero-v2 {
    height: auto;
    min-height: 0;
    margin-bottom: 36px;
    margin-left: -8px;
    margin-right: -8px;
    padding: 60px 16px 18px;
    border-radius: 18px;
  }
  .event-bug-hero-v2 h2 {
    font-size: 32px;
  }
  .event-bug-hero-v2 p {
    font-size: 15px;
  }
.event-bug-overview,
.event-bug-join-timeline{
    grid-template-columns: 1fr;
  }
  .event-bug-section-head h2 {
    font-size: 21px;
  }
  .event-bug-overview article{
    min-height: 0;
  }
  .event-bug-join-timeline article {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .event-bug-join-timeline span {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .admin-stat-grid,
.admin-tool-grid,
.traffic-grid {
    grid-template-columns: 1fr;
  }
  .traffic-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .traffic-toolbar form {
    min-width: 0;
  }
  .admin-tool-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .admin-tool-arrow {
    display: none;
  }
  .admin-search-form,
.admin-link-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }
  .info4-page {
    width: 100%;
  }
  .info4-hero {
    min-height: 238px;
    margin-top: -26px;
    border-radius: 0 0 18px 18px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 239, 0.86)),
      url('/img/server-info/hero.webp') center / cover no-repeat;
  }
  .info4-hero-inner {
    padding: 24px 12px 34px;
  }
  .info4-crest {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .info4-crest img {
    width: 34px;
    height: 34px;
  }
  .info4-hero h1 {
    font-size: 30px;
    white-space: normal;
  }
  .info4-ribbon {
    min-width: 190px;
    font-size: 15px;
  }
  .info4-hero p {
    font-size: 14px;
  }
  .info4-tabs {
    margin-top: 10px;
    border-radius: 14px;
  }
  .info4-tab {
    flex-basis: 108px;
    min-height: 82px;
    font-size: 12px;
  }
  .info4-tab img {
    height: 30px;
  }
  .info4-panel {
    margin-top: 38px;
    padding: 0;
    border-top: 0;
    border-radius: 0;
  }
  .info4-panel:first-of-type {
    margin-top: 18px;
  }
  .info4-panel h2 {
    margin-bottom: 16px;
    font-size: 21px;
  }
  .info4-card {
    padding: 17px 15px;
    border-radius: 16px;
  }
  .info4-card h3,
.info4-refine-intro h3 {
    font-size: 16px;
  }
  .info4-overview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .info4-overview-card {
    padding: 18px 16px;
  }
  .info4-overview-card-header {
    margin-bottom: 18px;
  }
  .info4-overview-card-header h3 {
    font-size: 20px;
  }
  .info4-overview-list {
    gap: 12px;
    font-size: 13.5px;
  }
  .info4-command-grid,
.info4-check-columns{
    grid-template-columns: 1fr;
  }
  .info4-rate-row strong {
    font-size: 30px;
  }
  .info4-acc-head {
    min-height: 54px;
    padding: 12px 14px;
    font-size: 15px;
  }
  .info4-acc-head b {
    display: none;
  }
  .info4-refine-head .info4-refine-badge {
    display: inline-flex;
    padding-inline: 9px;
    font-size: 11px;
  }
  .info4-refine-head {
    min-height: 66px;
    gap: 10px;
  }
  .info4-refine-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }
  .info4-refine-icon img {
    width: 26px;
    height: 26px;
  }
  .info4-refine-head-main {
    gap: 10px;
  }
  .info4-refine-head-main strong {
    font-size: 15px;
  }
  .info4-refine-head-main small {
    font-size: 12px;
  }
  .info4-refine-section-grid,
.info4-refine-summary {
    grid-template-columns: 1fr;
  }
  .info4-refine-card {
    padding: 14px;
    border-radius: 16px;
  }
  .info4-refine-card-head {
    align-items: flex-start;
  }
  .info4-progress-row {
    grid-template-columns: 36px minmax(0, 1fr) 50px 30px;
    gap: 7px;
  }
  .info4-progress-level,
.info4-progress-rate {
    font-size: 13px;
  }
  .info4-hard-badge {
    padding-inline: 5px;
    font-size: 10px;
  }
  .info4-bottom-cta {
    min-height: 150px;
    grid-template-columns: 1fr;
    border-radius: 18px;
    background: linear-gradient(135deg, #7a2d12 0%, #b84f1f 64%, #ef9b57 100%);
    text-align: center;
  }
  .info4-bottom-cta-content {
    padding: 24px 18px;
  }
  .info4-bottom-cta-image {
    position: absolute;
    inset: 0;
    min-height: 0;
    opacity: 0.28;
    background-size: cover;
    background-position: center bottom;
    filter: saturate(0.9) brightness(0.7);
  }
  .info4-bottom-cta-image::before {
    background: linear-gradient(180deg, rgba(122, 45, 18, 0.92), rgba(122, 45, 18, 0.72));
  }
  .info4-bottom-cta h2 {
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .register-captcha {
    grid-template-columns: 1fr 18px 1fr 18px;
  }
  .register-captcha input {
    grid-column: 1 / 4;
  }
  .captcha-refresh {
    grid-column: 4;
  }
}

/* ============ Bug Hunter Event Mockup Layout ============ */
.event-bug-page {
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 22px;
}

.event-bug-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 0, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.event-bug-main-grid{
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.event-bug-main-grid {
  grid-template-columns: minmax(0, 1.85fr) minmax(310px, 1fr);
}

.event-bug-hero-v2 {
  height: 420px;
  min-height: 420px;
  align-items: end;
  margin-bottom: 20px;
  padding: 34px 46px;
  border-radius: 28px;
  background-position: center;
  box-shadow: 0 22px 58px rgba(70, 24, 8, 0.15);
}

.event-bug-hero-v2::before {
  background:
    linear-gradient(90deg, rgba(20, 10, 7, 0.88) 0%, rgba(29, 12, 7, 0.7) 43%, rgba(29, 12, 7, 0.22) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 52%);
}

.event-bug-hero-inner {
  display: grid;
  align-content: end;
  max-width: 560px;
}

.event-bug-hero-v2 .news-badge {
  display: inline-flex;
  width: max-content;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
}

.event-bug-hero-v2 h2 {
  display: grid;
  gap: 2px;
  max-width: 460px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 49px;
  line-height: 0.96;
  text-shadow: 0 7px 0 rgba(110, 28, 0, 0.8), 0 16px 34px rgba(0, 0, 0, 0.5);
}

.event-bug-hero-v2 h2 span {
  display: block;
}

.event-bug-hero-v2 p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  line-height: 1.72;
}

.event-bug-hero-v2 .event-bug-actions {
  gap: 12px;
  margin-top: 22px;
}

.event-bug-hero-v2 .btn {
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
}

.event-bug-section-head {
  margin: 0 0 18px;
  text-align: left;
}

.event-bug-section-head span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-bug-section-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
}

.event-bug-overview-panel {
  padding: 20px 16px;
}

.event-bug-overview {
  grid-template-columns: 1fr;
  gap: 12px;
}

.event-bug-overview article {
  min-height: 90px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdfb, #fff8f3);
}

.event-bug-overview article:hover {
  transform: translateY(-2px);
}

.event-bug-overview span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fff1e6;
  font-size: 28px;
}

.event-bug-overview h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.event-bug-overview p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.event-bug-join-timeline {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.event-bug-join-timeline::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 48px;
  height: 2px;
  background: rgba(255, 106, 0, 0.2);
}

.event-bug-join-timeline article {
  z-index: 1;
  min-height: 124px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 7px;
  padding: 12px 8px;
  border-radius: 16px;
  text-align: center;
}

.event-bug-join-timeline article em {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: -2px;
  border-radius: 50%;
  background: #ff6a00;
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.event-bug-join-timeline article span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 28px;
}

.event-bug-join-timeline article strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.event-bug-note {
  position: relative;
  min-height: 62px;
  display: grid;
  align-items: center;
  margin: 0 0 20px;
  padding: 14px 88px 14px 22px;
  border-radius: 16px;
  background: rgba(255, 250, 246, 0.92);
}

.event-bug-note span {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  color: rgba(255, 106, 0, 0.14);
  font-size: 54px;
  line-height: 1;
}

.event-bug-note p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 980px) {

  .event-bug-main-grid{
    grid-template-columns: 1fr;
  }

  .event-bug-join-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .event-bug-page {
    max-width: 100%;
  }

  .event-bug-hero-v2 {
    height: 520px;
    min-height: 520px;
    padding: 26px 18px;
    border-radius: 20px;
  }

  .event-bug-hero-v2 h2 {
    font-size: 38px;
  }

  .event-bug-hero-v2 p {
    font-size: 15px;
  }

  .event-bug-actions,
.event-bug-hero-v2 .btn {
    width: 100%;
  }
.event-bug-overview{
    grid-template-columns: 1fr;
  }

  .event-bug-join-timeline {
    grid-template-columns: 1fr;
  }

  .event-bug-join-timeline::after {
    display: none;
  }

  .event-bug-join-timeline article {
    min-height: 76px;
    grid-template-columns: 28px 36px minmax(0, 1fr);
    text-align: left;
  }

  .event-bug-note {
    padding-right: 56px;
  }
}

@media (max-width: 1100px) {
  .event-cbt-hero {
    grid-template-columns: minmax(0, 1fr) 270px;
    padding: 34px 28px;
  }

  .event-cbt-hero h2 {
    font-size: 58px;
  }

  .event-mvp-landing .event-mvp-hero {
    grid-template-columns: minmax(0, 1fr) 190px;
    min-height: 430px;
    padding: 34px 28px;
  }
  .event-mvp-landing .event-mvp-hero h2 {
    font-size: 58px;
  }
  .event-mvp-landing .event-mvp-grid,
.event-mvp-landing .event-mvp-tier-grid {
    grid-template-columns: 1fr;
  }
  .event-mvp-landing .event-mvp-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-mvp-landing .event-mvp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .event-mvp-landing .event-mvp-steps article:not(:last-child)::after {
    display: none;
  }
  .event-mvp-landing .event-mvp-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {

  .event-cbt-hero {
    grid-template-columns: 1fr;
    min-height: 720px;
    margin-left: -8px;
    margin-right: -8px;
    padding: 26px 18px 18px;
    align-items: end;
    background-position: center;
    border-radius: 20px;
  }

  .event-cbt-hero::before {
    background:
      linear-gradient(180deg, rgba(13, 7, 4, 0.36), rgba(13, 7, 4, 0.9)),
      linear-gradient(90deg, rgba(13, 7, 4, 0.72), rgba(13, 7, 4, 0.08));
  }

  .event-cbt-hero h2 {
    font-size: 42px;
  }

  .event-cbt-hero-copy > strong {
    padding: 8px 18px;
    font-size: 18px;
  }

  .event-cbt-hero-copy p {
    font-size: 15px;
  }

  .event-mvp-landing {
    gap: 14px;
  }
  .event-mvp-landing .event-mvp-hero {
    grid-template-columns: 1fr;
    min-height: 640px;
    margin-left: -8px;
    margin-right: -8px;
    padding: 26px 18px 18px;
    align-items: end;
    background-position: 57% center;
    border-radius: 20px;
  }
  .event-mvp-landing .event-mvp-hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.86));
  }
  .event-mvp-landing .event-mvp-hero h2 {
    font-size: 44px;
  }
  .event-mvp-landing .event-mvp-hero p {
    font-size: 14px;
  }
  .event-mvp-landing .event-mvp-actions {
    display: grid;
  }
  .event-mvp-landing .event-mvp-actions .btn {
    width: 100%;
  }
  .event-mvp-countdown {
    justify-self: stretch;
    width: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 14px;
    border-width: 3px;
  }
  .event-mvp-countdown > span,
.event-mvp-countdown p {
    grid-column: 1 / -1;
  }
  .event-mvp-countdown div {
    border-top: 1px solid #efc9a5;
  }
  .event-mvp-countdown b {
    font-size: 32px;
  }
  .event-mvp-landing .event-mvp-panel {
    padding: 16px;
    border-radius: 16px;
  }
  .event-mvp-landing .event-mvp-checks,
.event-mvp-landing .event-mvp-steps {
    grid-template-columns: 1fr;
  }
  .event-mvp-landing .event-mvp-checks article,
.event-mvp-landing .event-mvp-info-list article {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .event-mvp-landing .event-mvp-steps article {
    min-height: 96px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    text-align: left;
  }
  .event-mvp-landing .event-mvp-steps span {
    left: 14px;
    top: 12px;
    transform: none;
  }
  .event-mvp-step-icon {
    grid-row: 1;
    margin: 18px 0 0;
  }
  .event-mvp-landing .event-mvp-table th,
.event-mvp-landing .event-mvp-table td {
    padding: 8px 9px;
    white-space: normal;
  }
  .event-mvp-landing .event-mvp-cta {
    padding: 20px 16px 126px;
    text-align: center;
  }
  .event-mvp-landing .event-mvp-cta > img {
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    width: 128px;
    height: 128px;
  }
  .event-mvp-cta-actions {
    display: grid;
    width: 100%;
  }
  .event-mvp-landing .event-mvp-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .event-race-page {
    width: 100%;
  }
  .event-race-hero {
    grid-template-columns: minmax(0, 1fr) 200px;
    padding: 28px;
  }
  .event-race-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-race-ranking-panel {
    grid-column: 1 / -1;
  }
  .event-race-steps {
    grid-template-columns: repeat(6, 134px);
    gap: 36px;
    overflow-x: auto;
    padding: 18px 4px 6px;
    scroll-snap-type: x mandatory;
  }
  .event-race-steps article {
    scroll-snap-align: start;
  }
  .event-race-steps article:not(:last-child)::after {
    right: -28px;
  }
  .event-race-bottom-grid {
    grid-template-columns: 1fr;
  }
  .event-race-cta {
    grid-template-columns: 150px minmax(0, 1fr) 250px;
  }
  .event-race-cta > img:last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  .event-race-page {
    width: min(330px, calc(100vw - 64px));
    max-width: min(330px, calc(100vw - 64px));
    gap: 14px;
  }
  .event-race-hero {
    min-height: 660px;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 16px;
    padding: 24px 16px 16px;
    border-radius: 20px;
    background-position: 58% center;
  }
  .event-race-hero::before {
    background: linear-gradient(180deg, rgba(8, 5, 3, 0.24), rgba(8, 5, 3, 0.90) 62%, rgba(8, 5, 3, 0.96) 100%);
  }
  .event-race-hero h2 {
    font-size: clamp(30px, 9.5vw, 46px);
  }
  .event-race-hero p {
    font-size: 14px;
  }
  .event-race-highlight {
    width: 100%;
    font-size: 13px;
  }
  .event-race-actions {
    display: grid;
    gap: 10px;
  }
  .event-race-actions .btn {
    width: 100%;
  }
  .event-race-countdown {
    width: auto;
    min-width: 0;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 14px;
    border-width: 4px;
  }
  .event-race-countdown > span,
.event-race-countdown p {
    grid-column: 1 / -1;
  }
  .event-race-countdown div {
    border-bottom: 1px solid #ead2bb;
  }
  .event-race-countdown b {
    font-size: 31px;
  }
  .event-race-top-grid,
.event-race-bottom-grid,
.event-race-tips{
    grid-template-columns: 1fr;
  }
  .event-race-panel {
    padding: 16px;
    border-radius: 16px;
  }
  .event-race-head h2 {
    font-size: 21px;
  }
  .event-race-overview article,
.event-race-tips article {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
  }
  .event-race-overview img,
.event-race-tips img {
    width: 46px;
    height: 46px;
  }
  .event-race-overview p,
.event-race-tips p,
.event-race-rule-list p {
    font-size: 12.5px;
    word-break: break-word;
  }
  .event-race-ranking article {
    grid-template-columns: 30px 40px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .event-race-ranking b {
    font-size: 18px;
  }
  .event-race-steps {
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 12px;
    padding-top: 8px;
  }
  .event-race-steps article {
    min-height: 92px;
    grid-template-columns: 54px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    padding: 14px 14px 14px 54px;
  }
  .event-race-steps article:not(:last-child)::after {
    display: none;
  }
  .event-race-steps em {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
  .event-race-steps img {
    width: 48px;
    height: 48px;
  }
  .event-race-steps strong {
    max-width: none;
    font-size: 14px;
  }
  .event-race-cta {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 16px 18px;
    text-align: center;
    border-radius: 18px;
  }
  .event-race-cta > img:first-child {
    width: 118px;
  }
  .event-race-cta h2 {
    font-size: 23px;
  }
  .event-race-cta p {
    font-size: 14px;
  }
  .event-race-cta-actions .btn {
    min-height: 52px;
    font-size: 16px;
  }
}

.event-race-countdown.event-countdown-soon,
.event-mvp-countdown.event-countdown-soon {
  grid-template-columns: 1fr;
}
.event-race-countdown.event-countdown-soon > span,
.event-race-countdown.event-countdown-soon div,
.event-race-countdown.event-countdown-soon p,
.event-mvp-countdown.event-countdown-soon > span,
.event-mvp-countdown.event-countdown-soon div,
.event-mvp-countdown.event-countdown-soon p {
  grid-column: 1 / -1;
}
.event-race-countdown.event-countdown-soon b,
.event-mvp-countdown.event-countdown-soon b {
  color: #4a2818;
  font-size: 34px;
  line-height: 1.12;
  text-shadow: none;
  white-space: nowrap;
}
.event-race-countdown.event-countdown-soon b span,
.event-mvp-countdown.event-countdown-soon b span {
  display: block;
}
.event-race-countdown.event-countdown-soon small,
.event-mvp-countdown.event-countdown-soon small {
  color: #a8491d;
  text-shadow: none;
}
.event-race-hero .event-race-countdown.event-countdown-soon p,
.event-mvp-hero .event-mvp-countdown.event-countdown-soon p,
.event-mvp-landing .event-mvp-hero .event-mvp-countdown.event-countdown-soon p {
  color: #5a2f1e;
  text-shadow: none;
}

.event-newbie-detail .event-bug-hero-v2 {
  height: 430px;
  min-height: 400px;
  max-height: 430px;
  padding: 48px;
  background-position: center;
  background-size: cover;
  border-color: #fed7aa;
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(126, 63, 22, 0.13);
}
.event-newbie-detail {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 80px;
  overflow-x: hidden;
}
.event-newbie-detail,
.event-newbie-detail * {
  box-sizing: border-box;
}
.event-newbie-detail-main-grid {
  align-items: start;
  grid-template-columns: minmax(0, 0.65fr) minmax(280px, 0.35fr);
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.event-newbie-detail-left-stack {
  display: grid;
  min-width: 0;
  gap: 24px;
  align-content: start;
}
.event-newbie-detail-left-stack > .event-bug-panel:not(.event-newbie-detail-reward-panel) {
  padding: 24px;
}
.event-newbie-detail .event-bug-hero-v2::before {
  background: rgba(0, 0, 0, 0.42);
}
.event-newbie-detail .event-bug-hero-inner {
  max-width: 560px;
  align-content: center;
  min-height: 100%;
}
.event-newbie-detail .event-bug-hero-v2 .news-badge {
  position: static;
  align-self: start;
}
.event-newbie-detail .event-bug-hero-v2 h2 {
  max-width: 520px;
  margin-bottom: 14px;
}
.event-newbie-detail .event-bug-hero-v2 p {
  max-width: 560px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.34);
}
.event-newbie-detail .event-bug-panel {
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.08);
}
.event-newbie-detail .event-bug-overview-panel {
  position: sticky;
  top: 96px;
  align-self: start;
}
.event-newbie-detail-reward-panel {
  padding: 24px;
}
.event-newbie-detail .event-bug-section-head h2 {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.event-newbie-title-line {
  display: inline-block;
}
.event-newbie-detail-cta {
  display: grid;
  place-items: center;
  min-height: 54px;
  margin: 0 0 24px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8a17, #ff6400);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 26px rgba(255, 101, 0, 0.18);
}
.event-newbie-detail-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.event-newbie-detail-highlight-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ef;
}
.event-newbie-detail-highlight-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
}
.event-newbie-detail-highlight-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}
.event-newbie-detail-highlight-grid strong {
  display: block;
  color: #ff6a00;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}
.event-newbie-detail-highlight-grid small {
  display: block;
  margin-top: 3px;
  color: #6b4433;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.event-newbie-detail-item-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
  margin-bottom: 0;
}
.event-newbie-detail-item-grid article {
  display: grid;
  min-width: 0;
  justify-items: center;
  align-content: start;
  gap: 12px;
  min-height: 112px;
  padding: 18px 10px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fffaf6;
  text-align: center;
}
.event-newbie-detail-item-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}
.event-newbie-detail-item-grid strong {
  max-width: 100%;
  color: #3d271d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
.event-newbie-detail-note span {
  overflow: visible;
  background: #fff2e4;
}
.event-newbie-detail-note span img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.event-newbie-detail-note p strong {
  color: #2f1d15;
  font-size: 18px;
}
.event-newbie-detail-note {
  margin-top: 24px;
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .event-newbie-detail-main-grid {
    grid-template-columns: 1fr;
  }
  .event-newbie-detail .event-bug-overview-panel {
    position: static;
  }
  .event-newbie-detail-highlight-grid {
    grid-template-columns: 1fr;
  }
  .event-newbie-detail-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .event-newbie-detail {
    width: calc(100% - 32px);
  }
  .event-newbie-detail .event-bug-hero-v2 {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 32px 22px;
    background-position: center;
  }
  .event-newbie-detail .event-bug-hero-v2::before {
    background: linear-gradient(180deg, rgba(32, 13, 4, 0.74), rgba(32, 13, 4, 0.52));
  }
  .event-newbie-detail .event-bug-hero-v2 h2 {
    font-size: 38px;
  }
  .event-newbie-detail .event-bug-hero-v2 p {
    font-size: 15px;
  }
  .event-newbie-detail-reward-panel {
    padding: 20px 18px;
  }
  .event-newbie-detail-cta {
    font-size: 15px;
    padding: 12px;
    overflow-wrap: anywhere;
  }
  .event-newbie-detail-highlight-grid article {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .event-newbie-detail-item-grid article {
    min-width: 0;
  }
  .event-newbie-detail-item-grid strong {
    overflow-wrap: anywhere;
  }
  .event-newbie-title-line {
    display: block;
  }
  .event-newbie-detail-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-newbie-detail-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============ Accessibility ============ */
/* ???????????????? reduce motion ??? ????????????????????????? (?????????? glow ??????????? filter ???????) */
@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-float,
  .footer-mascot {
    animation: none !important;
    will-change: auto;
  }
  /* ???????????????????????????? - ????????? */
  .hero-sparks { display: none; }
}

/* ============ Login Lucky Slots ============ */
.lucky-page {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 76px);
  margin: -24px -16px -30px;
  padding: 0 16px 46px;
  overflow: hidden;
  color: #fff4d8;
  background:
    linear-gradient(180deg, rgba(8, 6, 7, 0.34), rgba(15, 8, 4, 0.88) 42%, #120905 100%),
    url('/img/hero-scene.webp') center top / cover no-repeat,
    #120905;
}
.footer-hidden {
  display: none;
}
.lucky-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(32, 14, 4, 0.22) 36%, rgba(32, 14, 4, 0.24) 64%, rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 50% 34%, rgba(255, 173, 48, 0.24), transparent 34%),
    radial-gradient(circle at 50% 95%, rgba(245, 117, 18, 0.22), transparent 36%);
}
.lucky-wrap {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 0;
}

@media (min-width: 921px) {
  .lucky-page {
    min-height: calc(100vh - 76px);
    padding-bottom: 14px;
  }
  .lucky-wrap {
    padding-top: 10px;
  }  .lucky-grid {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    gap: 18px;
  }
  .lucky-side {
    gap: 10px;
  }
  .lucky-panel {
    min-height: 158px;
    padding: 14px 14px;
    border-radius: 16px;
  }
  .lucky-panel-title {
    margin-bottom: 8px;
    font-size: 17px;
  }
  .lucky-icon {
    width: 26px;
    height: 26px;
  }
  .lucky-quota {
    font-size: 36px;
  }
  .lucky-status-pill {
    margin: 8px auto;
    padding: 6px 14px;
    font-size: 12px;
  }
  .lucky-small {
    margin-top: 5px;
    font-size: 12px;
  }
  .lucky-total {
    margin: 10px auto 12px;
    column-gap: 10px;
  }
  .lucky-total strong {
    font-size: 42px;
  }
  .lucky-ticket-big {
    width: 74px;
    height: 40px;
    font-size: 13px;
  }
  .lucky-history-btn {
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
  }
  .lucky-machine {
    width: min(560px, 100%);
    min-height: 246px;
    padding: 38px 30px 34px;
    border-width: 5px;
    border-radius: 26px;
    box-shadow:
      inset 0 0 0 7px rgba(90, 38, 4, 0.48),
      inset 0 -20px 28px rgba(78, 29, 3, 0.34),
      0 18px 0 #4f2509,
      0 28px 32px rgba(0, 0, 0, 0.54),
      0 0 42px rgba(255, 166, 40, 0.22);
  }
  .lucky-machine::before {
    top: 20px;
    height: 12px;
  }
  .lucky-machine-lights {
    top: -17px;
  }
  .lucky-machine-lights span {
    width: 22px;
    height: 22px;
  }
  .lucky-reels {
    padding: 12px;
    border-width: 6px;
    border-radius: 18px;
  }
  .lucky-reel {
    min-height: 150px;
    gap: 8px;
  }
  .lucky-reel strong {
    font-size: 52px;
  }
  .lucky-reel em {
    font-size: 16px;
  }
  .lucky-reel .lucky-ticket {
    width: 54px;
    height: 30px;
    font-size: 10px;
  }
  .lucky-lever {
    right: -28px;
    top: 70px;
    width: 24px;
    height: 118px;
  }
  .lucky-lever span {
    width: 44px;
    height: 44px;
    top: -26px;
  }
  .lucky-spin-btn {
    min-width: min(260px, 76%);
    min-height: 58px;
    margin-top: -20px;
    padding: 10px 26px 8px;
    border-radius: 19px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 240, 0.82), 0 7px 0 #7e3b06, 0 13px 18px rgba(0, 0, 0, 0.38);
  }
  .lucky-spin-btn span {
    font-size: 21px;
  }
  .lucky-spin-btn small {
    font-size: 11px;
  }
  .lucky-message {
    min-height: 18px;
    margin-top: 8px;
    font-size: 13px;
  }
  .lucky-rate-row {
    min-height: 43px;
    grid-template-columns: 58px 24px 1fr auto;
    font-size: 13px;
  }
  .lucky-rate-row .lucky-ticket {
    width: 50px;
    height: 28px;
    font-size: 9px;
  }
  .lucky-rate-row b {
    font-size: 18px;
  }
  .lucky-info-grid {
    margin-top: 14px;
  }
  .lucky-wide-panel {
    min-height: 154px;
    padding: 15px 20px;
    border-radius: 14px;
  }
  .lucky-wide-panel h2 {
    margin-bottom: 12px;
    font-size: 20px;
  }
  .lucky-steps {
    gap: 9px;
  }
  .lucky-step:not(:last-child)::after {
    top: 42px;
    font-size: 25px;
  }
  .lucky-step strong {
    font-size: 13px;
  }
  .lucky-step p {
    margin-top: 3px;
    font-size: 11px;
  }
  .lucky-about ul {
    gap: 8px;
  }
  .lucky-about li {
    grid-template-columns: 30px 1fr;
    gap: 8px;
    font-size: 12px;
  }
  .lucky-about li .lucky-ticket {
    width: 36px;
    height: 22px;
    font-size: 7px;
  }
  .lucky-bottom-banner {
    min-height: 74px;
    margin-top: 10px;
    padding: 8px 20px 8px 18px;
    border-radius: 14px 14px 0 0;
    gap: 16px;
  }
  .lucky-bottom-banner img {
    width: 74px;
    height: 74px;
    margin-bottom: -8px;
  }
  .lucky-bottom-banner h2 {
    font-size: 20px;
  }
  .lucky-bottom-banner p {
    margin-top: 2px;
    font-size: 13px;
  }
  .lucky-gift-box {
    width: 56px;
    height: 50px;
  }
  .lucky-coins span {
    width: 26px;
    height: 18px;
  }
}

@media (min-width: 921px) and (max-height: 850px) {
  .lucky-page {
    padding-bottom: 6px;
  }
  .lucky-wrap {
    width: min(1220px, calc(100% - 18px));
    padding-top: 4px;
  }  .lucky-grid {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 14px;
  }
  .lucky-side {
    gap: 8px;
  }
  .lucky-panel {
    min-height: 124px;
    padding: 10px 12px;
    border-radius: 14px;
  }
  .lucky-panel-title {
    margin-bottom: 5px;
    font-size: 15px;
    gap: 7px;
  }
  .lucky-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }
  .lucky-icon-calendar::before{
    font-size: 15px;
  }
  .lucky-quota {
    font-size: 29px;
  }
  .lucky-quota-label {
    font-size: 12px;
  }
  .lucky-status-pill {
    margin: 5px auto;
    padding: 4px 11px;
    font-size: 11px;
  }
  .lucky-small {
    margin-top: 2px;
    font-size: 10px;
  }
  .lucky-total {
    margin: 6px auto 8px;
    column-gap: 8px;
  }
  .lucky-total strong {
    font-size: 34px;
  }
  .lucky-total span:last-child {
    font-size: 12px;
  }
  .lucky-ticket-big {
    width: 58px;
    height: 32px;
    font-size: 10px;
  }
  .lucky-history-btn {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 12px;
  }
  .lucky-machine {
    width: min(470px, 100%);
    min-height: 194px;
    padding: 30px 24px 26px;
    border-width: 4px;
    border-radius: 22px;
    box-shadow:
      inset 0 0 0 5px rgba(90, 38, 4, 0.48),
      inset 0 -14px 22px rgba(78, 29, 3, 0.34),
      0 12px 0 #4f2509,
      0 18px 24px rgba(0, 0, 0, 0.5),
      0 0 34px rgba(255, 166, 40, 0.2);
  }
  .lucky-machine::before {
    top: 15px;
    height: 9px;
  }
  .lucky-machine-lights {
    top: -13px;
  }
  .lucky-machine-lights span {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
  .lucky-reels {
    gap: 4px;
    padding: 8px;
    border-width: 5px;
    border-radius: 15px;
  }
  .lucky-reel {
    min-height: 114px;
    gap: 5px;
    border-radius: 9px;
  }
  .lucky-reel strong {
    font-size: 40px;
  }
  .lucky-reel em {
    font-size: 13px;
  }
  .lucky-reel .lucky-ticket {
    width: 46px;
    height: 25px;
    font-size: 8px;
    border-width: 1px;
    border-radius: 6px;
  }
  .lucky-lever {
    right: -22px;
    top: 55px;
    width: 19px;
    height: 88px;
  }
  .lucky-lever span {
    width: 35px;
    height: 35px;
    top: -21px;
  }
  .lucky-spin-btn {
    min-width: min(218px, 72%);
    min-height: 46px;
    margin-top: -16px;
    padding: 7px 20px 6px;
    border-width: 2px;
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 240, 0.82), 0 5px 0 #7e3b06, 0 10px 14px rgba(0, 0, 0, 0.34);
  }
  .lucky-spin-btn span {
    font-size: 17px;
  }
  .lucky-spin-btn small {
    font-size: 10px;
  }
  .lucky-message {
    min-height: 14px;
    margin-top: 5px;
    font-size: 11px;
  }
  .lucky-rate-row {
    min-height: 35px;
    grid-template-columns: 48px 20px 1fr auto;
    gap: 6px;
    font-size: 11px;
  }
  .lucky-rate-row .lucky-ticket {
    width: 42px;
    height: 23px;
    font-size: 7px;
    border-width: 1px;
    border-radius: 6px;
  }
  .lucky-rate-row b {
    font-size: 15px;
  }
  .lucky-info-grid {
    margin-top: 8px;
  }
  .lucky-wide-panel {
    min-height: 108px;
    padding: 10px 16px;
    border-radius: 12px;
  }
  .lucky-wide-panel h2 {
    margin-bottom: 7px;
    font-size: 17px;
  }
  .lucky-steps {
    gap: 6px;
  }
  .lucky-step:not(:last-child)::after {
    top: 30px;
    right: -8px;
    font-size: 18px;
  }
  .lucky-step strong {
    font-size: 11px;
  }
  .lucky-step p {
    margin-top: 1px;
    font-size: 9px;
    line-height: 1.25;
  }
  .lucky-about ul {
    gap: 4px;
  }
  .lucky-about li {
    grid-template-columns: 26px 1fr;
    gap: 6px;
    font-size: 10px;
    line-height: 1.25;
  }
  .lucky-about li .lucky-ticket {
    width: 31px;
    height: 19px;
    font-size: 6px;
    border-width: 1px;
  }
  .lucky-bottom-banner {
    min-height: 54px;
    margin-top: 6px;
    padding: 5px 16px 5px 14px;
    border-radius: 11px 11px 0 0;
    gap: 10px;
  }
  .lucky-bottom-banner img {
    width: 52px;
    height: 52px;
    margin-bottom: -5px;
  }
  .lucky-bottom-banner h2 {
    font-size: 16px;
  }
  .lucky-bottom-banner p {
    margin-top: 0;
    font-size: 11px;
  }
  .lucky-gift-art {
    gap: 8px;
  }
  .lucky-gift-box {
    width: 42px;
    height: 38px;
    border-width: 2px;
  }
  .lucky-coins span {
    width: 20px;
    height: 14px;
    border-width: 1px;
  }
}.lucky-alert {
  margin: 8px auto 16px;
  width: min(780px, 100%);
  padding: 12px 16px;
  border: 1px solid rgba(255, 190, 80, 0.45);
  border-radius: 12px;
  background: rgba(92, 18, 10, 0.78);
  color: #ffe1a8;
  text-align: center;
}
.lucky-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  align-items: center;
  gap: 28px;
}
.lucky-side {
  display: grid;
  gap: 14px;
}
.lucky-panel,
.lucky-wide-panel {
  position: relative;
  border: 1px solid rgba(255, 177, 53, 0.35);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(82, 42, 13, 0.82), rgba(25, 13, 6, 0.88)),
    rgba(30, 14, 7, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 231, 164, 0.2),
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 32px rgba(219, 122, 22, 0.1);
  backdrop-filter: blur(8px);
}
.lucky-panel {
  min-height: 210px;
  padding: 20px 18px;
}
.lucky-panel-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffe39a;
  font-size: 20px;
  font-weight: 800;
}
.lucky-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #522203;
  background: linear-gradient(180deg, #ffe496, #f39a18);
  box-shadow: inset 0 -2px 0 rgba(109, 48, 5, 0.22);
}
.lucky-icon-calendar::before { content: '\1F4C5'; font-size: 19px; }
.lucky-icon-user::before { content: '\1F464'; font-size: 18px; }
.lucky-icon-spark::before { content: '\2728'; font-size: 17px; }
.lucky-quota {
  font-size: 48px;
  line-height: 1.05;
  font-weight: 900;
  color: #ffd475;
  text-align: center;
  text-shadow: 0 5px 12px rgba(0, 0, 0, 0.55);
}
.lucky-quota-label,
.lucky-small {
  text-align: center;
  color: #fff1cf;
  font-weight: 700;
}
.lucky-status-pill {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 14px auto;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.lucky-status-pill.is-ready {
  border: 1px solid #a8d936;
  color: #eaff98;
  background: linear-gradient(180deg, #638d12, #335508);
}
.lucky-status-pill.is-ready::before { content: '\2705'; margin-right: 8px; }
.lucky-status-pill.is-used {
  border: 1px solid #9ca34f;
  color: #f3e5a9;
  background: linear-gradient(180deg, #716127, #42330d);
}
.lucky-status-pill.is-used::before { content: '\2714'; margin-right: 8px; }
.lucky-status-pill.is-login {
  color: #3e1b06;
  background: linear-gradient(180deg, #ffe392, #f7a51d);
}
.lucky-small {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 245, 217, 0.88);
}
.lucky-total {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
  width: fit-content;
  margin: 16px auto 20px;
}
.lucky-total .lucky-ticket { grid-row: 1 / 3; }
.lucky-total strong {
  font-size: 58px;
  line-height: 0.92;
  color: #ffc653;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.48);
}
.lucky-total span:last-child {
  color: #ffe0a1;
  font-weight: 800;
}
.lucky-ticket {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 34px;
  border: 2px solid #9e540d;
  border-radius: 8px;
  color: #5b2604;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-12deg);
  background:
    radial-gradient(circle at 0 50%, transparent 0 5px, #ffd47a 5px),
    radial-gradient(circle at 100% 50%, transparent 0 5px, #ffd47a 5px),
    linear-gradient(180deg, #ffe7a4, #ffb744 70%, #df7c13);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 230, 0.35), 0 4px 8px rgba(0, 0, 0, 0.24);
}
.lucky-ticket-big {
  width: 90px;
  height: 50px;
  font-size: 16px;
}
.lucky-history-btn {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 177, 53, 0.45);
  border-radius: 12px;
  color: #ffe8ba;
  background: rgba(33, 17, 8, 0.74);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lucky-history-btn:hover {
  border-color: #ffcb62;
  color: #fff;
}
.lucky-machine-zone {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lucky-coins span {
  position: absolute;
  width: 34px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #c46a0e;
  background: linear-gradient(180deg, #fff083, #ffa516);
  box-shadow: 0 0 12px rgba(255, 186, 37, 0.52);
}
.lucky-coins span:nth-child(1) { left: 6%; top: 10%; transform: rotate(-26deg); }
.lucky-coins span:nth-child(2) { left: 16%; top: -7%; transform: rotate(20deg); }
.lucky-coins span:nth-child(3) { right: 17%; top: -4%; transform: rotate(-12deg); }
.lucky-coins span:nth-child(4) { right: 6%; top: 13%; transform: rotate(22deg); }
.lucky-coins span:nth-child(5) { right: 11%; bottom: 30%; transform: rotate(-18deg); }
.lucky-machine {
  position: relative;
  width: min(650px, 100%);
  min-height: 330px;
  padding: 52px 40px 44px;
  border: 6px solid #8b490e;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 248, 183, 0.8), transparent 18%),
    linear-gradient(135deg, #ffe28a 0%, #f7a41e 24%, #9b4b08 52%, #f6a51e 76%, #ffe38f 100%);
  box-shadow:
    inset 0 0 0 8px rgba(90, 38, 4, 0.48),
    inset 0 -28px 36px rgba(78, 29, 3, 0.34),
    0 26px 0 #4f2509,
    0 40px 42px rgba(0, 0, 0, 0.62),
    0 0 58px rgba(255, 166, 40, 0.26);
}
.lucky-machine::before {
  content: '';
  position: absolute;
  left: 42px;
  right: 42px;
  top: 28px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 210, 0.72), transparent);
}
.lucky-machine-lights {
  position: absolute;
  top: -22px;
  left: 20%;
  right: 20%;
  display: flex;
  justify-content: space-around;
}
.lucky-machine-lights span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #fff4b8;
  background: radial-gradient(circle, #fff8b7, #ffbd27 62%, #cd6506);
  box-shadow: 0 0 22px rgba(255, 210, 54, 0.95);
}
.lucky-reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 16px;
  border: 8px solid #2d1305;
  border-radius: 22px;
  background: #160903;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}
.lucky-reel {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  color: #261001;
  background:
    linear-gradient(90deg, rgba(68, 24, 0, 0.16), transparent 16%, transparent 84%, rgba(68, 24, 0, 0.16)),
    linear-gradient(180deg, #fff2cf, #f5d4a3 50%, #e9ba7e);
  box-shadow: inset 0 0 24px rgba(90, 39, 4, 0.34);
  overflow: hidden;
}
.lucky-reel strong {
  font-size: clamp(54px, 7vw, 74px);
  line-height: 0.9;
  color: #2b1000;
  text-shadow: 0 2px 0 #f9cc82;
}
.lucky-reel:nth-child(2) strong {
  color: #d77a06;
}
.lucky-reel em {
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
}
.lucky-lever {
  position: absolute;
  right: -38px;
  top: 92px;
  width: 32px;
  height: 160px;
  border-radius: 18px;
  background: linear-gradient(90deg, #7d3c09, #ffc451, #8f4109);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.44);
}
.lucky-lever span {
  position: absolute;
  left: 50%;
  top: -34px;
  width: 58px;
  height: 58px;
  border: 4px solid #ffad47;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ff9c9c, #c40404 62%, #680000);
  transform: translateX(-50%);
}
.lucky-spin-btn {
  position: relative;
  z-index: 1;
  min-width: min(310px, 82%);
  min-height: 74px;
  margin-top: -28px;
  padding: 14px 34px 12px;
  border: 3px solid #ffe58f;
  border-radius: 24px;
  color: #4a2103;
  background: linear-gradient(180deg, #ffe886, #ffbb24 52%, #e2840b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 240, 0.82), 0 9px 0 #7e3b06, 0 18px 28px rgba(0, 0, 0, 0.44);
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}
.lucky-spin-btn span {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}
.lucky-spin-btn small {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.lucky-spin-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 240, 0.82), 0 11px 0 #7e3b06, 0 22px 32px rgba(0, 0, 0, 0.48);
}
.lucky-spin-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.32) brightness(0.84);
}
.lucky-message {
  min-height: 28px;
  margin-top: 16px;
  color: #ffe4a4;
  font-weight: 800;
  text-align: center;
}
.lucky-message.is-success { color: #fff07a; }
.lucky-message.is-error { color: #ffb0a1; }
.lucky-message.is-loading { color: #d7f796; }
.lucky-rates {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.lucky-rate-row {
  display: grid;
  grid-template-columns: 70px 28px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 198, 95, 0.16);
  color: #fff0cc;
  font-weight: 800;
}
.lucky-rate-row b {
  color: #fff;
  font-size: 23px;
}
.lucky-info-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 0;
  margin-top: 24px;
}
.lucky-wide-panel {
  min-height: 240px;
  padding: 22px 26px;
  border-radius: 16px;
}
.lucky-wide-panel h2 {
  margin: 0 0 20px;
  color: #ffe28f;
  font-size: 25px;
  line-height: 1.2;
}
.lucky-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.lucky-step {
  position: relative;
  min-width: 0;
  text-align: center;
  color: #fff3d1;
}
.lucky-step:not(:last-child)::after {
  content: '\203A';
  position: absolute;
  top: 56px;
  right: -12px;
  color: #ffbd39;
  font-size: 34px;
  font-weight: 900;
}
.lucky-step strong {
  display: block;
  color: #ffe49f;
  font-size: 15px;
  line-height: 1.3;
}
.lucky-step p {
  margin: 5px 0 0;
  color: rgba(255, 244, 219, 0.92);
  font-size: 13px;
  line-height: 1.45;
}
.lucky-about ul {
  display: grid;
  gap: 14px;
  list-style: none;
}
.lucky-about li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  color: #fff2ce;
  line-height: 1.45;
}
.lucky-about li .lucky-ticket {
  width: 42px;
  height: 25px;
  font-size: 8px;
}
.lucky-about b {
  display: block;
  color: #ffdf83;
}
.lucky-bottom-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 112px;
  margin-top: 18px;
  padding: 15px 28px 14px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 239, 171, 0.72);
  border-radius: 18px 18px 0 0;
  color: #7a3104;
  background: linear-gradient(180deg, #fff2b8, #ffc95c 52%, #f0a430);
  box-shadow: 0 -8px 34px rgba(255, 177, 42, 0.18), 0 16px 34px rgba(0, 0, 0, 0.35);
}
.lucky-bottom-banner h2 {
  margin: 0;
  color: #9f4206;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.25;
}
.lucky-bottom-banner p {
  margin: 5px 0 0;
  color: #5d2604;
  font-weight: 800;
}
.lucky-bottom-banner img {
  align-self: end;
  margin-bottom: -14px;
  filter: drop-shadow(0 8px 8px rgba(119, 45, 0, 0.28));
}
.lucky-gift-art {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lucky-gift-box {
  width: 78px;
  height: 70px;
  border: 3px solid #9c3e06;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 41%, #b20f07 41% 58%, transparent 58%),
    linear-gradient(180deg, #fbe073 0 24%, #c7190c 24% 34%, #f3a32d 34%);
  box-shadow: inset 0 0 0 3px rgba(255, 250, 194, 0.35), 0 8px 14px rgba(120, 48, 4, 0.24);
}
.lucky-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 22px;
  border: 1px solid #ffd46f;
  border-radius: 999px;
  color: #451d03;
  background: linear-gradient(180deg, #fff2a5, #ffbb2c);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  font-weight: 900;
  transform: translate(-50%, 18px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lucky-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.lucky-modal[hidden],
.lucky-toast[hidden] {
  display: none;
}
.lucky-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

body.lucky-modal-open {
  overflow: hidden !important;
}
.lucky-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}
.lucky-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(640px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 195, 83, 0.56);
  border-radius: 18px;
  color: #fff0cb;
  background: linear-gradient(180deg, #4b250b, #160905);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.56);
}
.lucky-modal-panel h2 {
  margin: 0 0 14px;
  color: #ffe08c;
}
.lucky-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 198, 95, 0.4);
  border-radius: 50%;
  color: #ffe6b3;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lucky-history-list {
  display: grid;
  gap: 9px;
}
.lucky-history-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 198, 95, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.lucky-history-row strong { color: #ffdf80; }
.lucky-empty {
  margin: 0;
  color: rgba(255, 241, 211, 0.82);
}

/* Event app detail pages must scroll like the close beta detail layout. */
body.page-lucky {
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: clip !important;
}

body.page-lucky.lucky-modal-open {
  overflow: hidden !important;
}

.page-lucky .layout {
  min-height: auto !important;
}

.page-lucky .content {
  height: auto !important;
  min-height: calc(100vh - 72px) !important;
  max-height: none !important;
  overflow: visible !important;
}

.page-lucky .lucky-page,
.page-lucky .lucky-wrap {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Revert Lucky Slots to the shared event detail visual language. */
body.page-lucky {
  background: #120803 !important;
}

.page-lucky .site-header,
.page-lucky .footer {
  display: none;
}

/* Login Lucky Slots page-scoped restore. */
.page-lucky .event-app-lucky {
  position: relative !important;
  min-height: 100vh !important;
  padding: 18px 20px 18px !important;
  color: #fff4d8 !important;
  background:
    linear-gradient(180deg, rgba(8, 6, 7, 0.72), rgba(15, 8, 4, 0.9) 42%, #120905 100%),
    url('/img/intro/card-login-slots-1280.webp') center top / cover no-repeat,
    #120905 !important;
}

.page-lucky .layout {
  padding: 0 !important;
}

.page-lucky .layout-full::before,
.page-lucky .layout-full::after {
  display: none !important;
}

.page-lucky .event-app-lucky .event-app-hero {
  width: min(1160px, calc(100% - 40px)) !important;
  height: auto !important;
  min-height: 118px !important;
  max-height: none !important;
  margin: 0 auto 2px !important;
  padding: 14px 20px 2px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-lucky .event-app-lucky .event-app-hero::before {
  display: none !important;
}

.page-lucky .event-app-lucky .event-cbt-hero-copy {
  width: min(620px, 100%) !important;
  max-width: 620px !important;
  padding: 0 !important;
  text-align: center !important;
}

.page-lucky .event-app-lucky .event-cbt-hero h2 {
  margin: 0 !important;
  color: #ff8a00 !important;
  font-size: clamp(40px, 4.4vw, 66px) !important;
  line-height: 0.82 !important;
  font-weight: 1000 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-shadow:
    0 3px 0 #5d2100,
    0 7px 0 #1c0800,
    0 16px 28px rgba(0, 0, 0, 0.58) !important;
}

.page-lucky .event-app-lucky .event-cbt-hero h2 span:first-child {
  color: #fff !important;
  font-size: 0.54em !important;
  line-height: 1 !important;
}

.page-lucky .event-app-lucky .lucky-wrap {
  width: min(1160px, calc(100% - 40px)) !important;
  max-width: 1160px !important;
  display: grid !important;
  gap: 12px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.page-lucky .event-app-lucky .lucky-grid {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 588px) 260px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
}

.page-lucky .event-app-lucky .lucky-side {
  width: 260px !important;
  gap: 12px !important;
}

.page-lucky .event-app-lucky .lucky-machine-zone {
  width: 588px !important;
  gap: 0 !important;
}

.page-lucky .event-app-lucky .lucky-panel,
.page-lucky .event-app-lucky .lucky-wide-panel {
  border: 1px solid rgba(255, 177, 53, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(82, 42, 13, 0.88), rgba(25, 13, 6, 0.9)),
    rgba(30, 14, 7, 0.9) !important;
  color: #fff4d8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 231, 164, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.3) !important;
}

.page-lucky .event-app-lucky .lucky-panel {
  min-height: 132px !important;
  padding: 12px 14px !important;
}

.page-lucky .event-app-lucky .lucky-panel-title,
.page-lucky .event-app-lucky .lucky-wide-panel h2 {
  color: #ffe39a !important;
}

.page-lucky .event-app-lucky .lucky-quota,
.page-lucky .event-app-lucky .lucky-total strong {
  color: #ffd475 !important;
  text-shadow: 0 5px 12px rgba(0, 0, 0, 0.55) !important;
}

.page-lucky .event-app-lucky .lucky-points-panel .lucky-total {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

.page-lucky .event-app-lucky .lucky-small,
.page-lucky .event-app-lucky .lucky-quota-label,
.page-lucky .event-app-lucky .lucky-total > span:last-child,
.page-lucky .event-app-lucky .lucky-rate-copy strong,
.page-lucky .event-app-lucky .lucky-step p,
.page-lucky .event-app-lucky .lucky-about li {
  color: #fff1cf !important;
}

.page-lucky .event-app-lucky .lucky-machine {
  width: 100% !important;
  min-height: 214px !important;
  padding: 30px 24px 28px !important;
  border: 5px solid #8b490e !important;
  border-radius: 26px !important;
  box-shadow:
    inset 0 0 0 6px rgba(255, 217, 110, 0.22),
    inset 0 -18px 26px rgba(116, 48, 3, 0.28),
    0 14px 0 #5a2908,
    0 22px 34px rgba(0, 0, 0, 0.46),
    0 0 44px rgba(255, 174, 42, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(255, 248, 183, 0.8), transparent 18%),
    linear-gradient(135deg, #ffe28a 0%, #f7a41e 24%, #9b4b08 52%, #f6a51e 76%, #ffe38f 100%) !important;
}

.page-lucky .event-app-lucky .lucky-reels {
  gap: 7px !important;
  padding: 10px !important;
}

.page-lucky .event-app-lucky .lucky-reel {
  min-height: 128px !important;
  padding: 10px 8px !important;
}

.page-lucky .event-app-lucky .lucky-reel strong {
  font-size: clamp(42px, 3.5vw, 52px) !important;
}

.page-lucky .event-app-lucky .lucky-spin-btn {
  width: min(300px, 82%) !important;
  min-height: 50px !important;
  margin: 0 auto !important;
  padding: 8px 20px 7px !important;
  border: 2px solid #ffe58f !important;
  border-radius: 18px !important;
  color: #4a2103 !important;
  background: linear-gradient(180deg, #ffe886, #ffbb24 52%, #e2840b) !important;
}

.page-lucky .event-app-lucky .lucky-spin-btn span {
  color: #4a2103 !important;
  font-size: 18px !important;
  text-shadow: none !important;
}

.page-lucky .event-app-lucky .lucky-spin-btn small {
  font-size: 11px !important;
}

.page-lucky .event-app-lucky .lucky-rate-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid rgba(255, 177, 53, 0.18) !important;
}

.page-lucky .event-app-lucky .lucky-rate-copy {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.page-lucky .event-app-lucky .lucky-rate-copy strong,
.page-lucky .event-app-lucky .lucky-rate-copy b {
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

.page-lucky .event-app-lucky .lucky-rate-copy b {
  min-width: 44px !important;
  padding: 5px 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255, 233, 162, 0.26), rgba(132, 68, 14, 0.34)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 121, 0.18), 0 6px 16px rgba(0, 0, 0, 0.18) !important;
  color: #fff3ba !important;
  font-size: 13px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.page-lucky .event-app-lucky .lucky-rate-tier-SSR .lucky-rate-copy b {
  background: linear-gradient(180deg, #fff0a3, #ff8d34 58%, #9b2a08) !important;
  color: #fff !important;
}

.page-lucky .event-app-lucky .lucky-rate-tier-SR .lucky-rate-copy b {
  background: linear-gradient(180deg, #ffd9ff, #9b58ff 58%, #4f168d) !important;
  color: #fff !important;
}

.page-lucky .event-app-lucky .lucky-rate-tier-S .lucky-rate-copy b {
  background: linear-gradient(180deg, #fff4a6, #ffc144 58%, #946014) !important;
  color: #fff !important;
}

.page-lucky .event-app-lucky .lucky-info-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) !important;
  gap: 12px !important;
  margin: 0 !important;
}

.page-lucky .event-app-lucky .lucky-info-grid .lucky-wide-panel {
  min-height: 104px !important;
  padding: 10px 14px !important;
}

.page-lucky .event-app-lucky .lucky-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 4px !important;
}

.page-lucky .event-app-lucky .lucky-step {
  display: grid !important;
  align-content: start !important;
  justify-items: center !important;
  row-gap: 2px !important;
  min-height: 0 !important;
  padding: 0 4px !important;
}

.page-lucky .event-app-lucky .lucky-step::before {
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 auto 2px !important;
  border: 1px solid rgba(118, 60, 9, 0.42) !important;
  border-radius: 999px !important;
  color: #5b2604 !important;
  background: linear-gradient(180deg, #ffe489, #f2a126) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 230, 0.58) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.page-lucky .event-app-lucky .lucky-step:nth-child(1)::before { content: '1' !important; }
.page-lucky .event-app-lucky .lucky-step:nth-child(2)::before { content: '2' !important; }
.page-lucky .event-app-lucky .lucky-step:nth-child(3)::before { content: '3' !important; }
.page-lucky .event-app-lucky .lucky-step:nth-child(4)::before { content: '4' !important; }
.page-lucky .event-app-lucky .lucky-step:nth-child(5)::before { content: '5' !important; }

.page-lucky .event-app-lucky .lucky-step strong,
.page-lucky .event-app-lucky .lucky-about b {
  color: #ffe39a !important;
}

.page-lucky .event-app-lucky .lucky-about .lucky-icon::before {
  content: '\2713' !important;
}

.page-lucky .event-app-lucky .lucky-step strong {
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.page-lucky .event-app-lucky .lucky-step p {
  font-size: 9px !important;
  line-height: 1.18 !important;
}

.page-lucky .event-app-lucky .lucky-step:not(:last-child)::after {
  display: none !important;
  content: none !important;
}

.page-lucky .event-app-lucky .lucky-bottom-banner {
  display: none !important;
}

@media (max-width: 1240px) {
  .page-lucky .event-app-lucky .lucky-grid {
    grid-template-columns: 220px minmax(0, 520px) 220px !important;
    gap: 18px !important;
  }

  .page-lucky .event-app-lucky .lucky-side {
    width: 220px !important;
  }

  .page-lucky .event-app-lucky .lucky-machine-zone {
    width: 520px !important;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .page-lucky .event-app-lucky {
    padding-bottom: 18px !important;
  }

  .page-lucky .event-app-lucky .event-app-hero {
    min-height: 104px !important;
    margin-bottom: 4px !important;
    padding: 0 20px 4px !important;
  }

  .page-lucky .event-app-lucky .event-cbt-hero h2 {
    font-size: clamp(40px, 4.6vw, 58px) !important;
  }

  .page-lucky .event-app-lucky .lucky-wrap {
    gap: 14px !important;
  }

  .page-lucky .event-app-lucky .lucky-grid {
    grid-template-columns: 260px minmax(0, 520px) 260px !important;
    gap: 24px !important;
  }

  .page-lucky .event-app-lucky .lucky-side {
    width: 260px !important;
    gap: 10px !important;
  }

  .page-lucky .event-app-lucky .lucky-machine-zone {
    width: 520px !important;
  }

  .page-lucky .event-app-lucky .lucky-panel {
    min-height: 0 !important;
    padding: 10px 13px !important;
  }

  .page-lucky .event-app-lucky .lucky-panel-title {
    margin-bottom: 4px !important;
    font-size: 13px !important;
  }

  .page-lucky .event-app-lucky .lucky-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .page-lucky .event-app-lucky .lucky-quota {
    font-size: 30px !important;
  }

  .page-lucky .event-app-lucky .lucky-status-pill {
    margin: 6px auto 0 !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
  }

  .page-lucky .event-app-lucky .lucky-small {
    margin-top: 6px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .page-lucky .event-app-lucky .lucky-total {
    margin: 6px auto 8px !important;
  }

  .page-lucky .event-app-lucky .lucky-total strong {
    font-size: 34px !important;
  }

  .page-lucky .event-app-lucky .lucky-ticket-big {
    width: 60px !important;
    height: 34px !important;
    font-size: 10px !important;
  }

  .page-lucky .event-app-lucky .lucky-history-btn {
    min-height: 34px !important;
    padding: 6px 9px !important;
    font-size: 12px !important;
  }

  .page-lucky .event-app-lucky .lucky-machine {
    min-height: 196px !important;
    padding: 26px 22px 24px !important;
  }

  .page-lucky .event-app-lucky .lucky-reels {
    padding: 9px !important;
  }

  .page-lucky .event-app-lucky .lucky-reel {
    min-height: 106px !important;
    padding: 9px 6px !important;
  }

  .page-lucky .event-app-lucky .lucky-reel strong {
    font-size: 38px !important;
  }

  .page-lucky .event-app-lucky .lucky-reel em {
    font-size: 13px !important;
  }

  .page-lucky .event-app-lucky .lucky-spin-btn {
    min-height: 42px !important;
    margin-top: 0 !important;
    padding: 6px 18px !important;
  }

  .page-lucky .event-app-lucky .lucky-spin-btn span {
    font-size: 15px !important;
  }

  .page-lucky .event-app-lucky .lucky-spin-btn small {
    font-size: 9px !important;
  }

  .page-lucky .event-app-lucky .lucky-rate-row {
    gap: 4px !important;
    padding: 4px 0 !important;
  }

  .page-lucky .event-app-lucky .lucky-rate-panel {
    padding: 12px 14px !important;
  }

  .page-lucky .event-app-lucky .lucky-rate-panel .lucky-panel-title {
    margin-bottom: 8px !important;
  }

  .page-lucky .event-app-lucky .lucky-rate-copy strong,
.page-lucky .event-app-lucky .lucky-rate-copy b {
    font-size: 11px !important;
  }

  .page-lucky .event-app-lucky .lucky-rate-panel .lucky-small {
    margin-top: 6px !important;
    font-size: 9px !important;
  }

  .page-lucky .event-app-lucky .lucky-info-grid .lucky-wide-panel {
    min-height: 124px !important;
    padding: 13px 16px !important;
  }

  .page-lucky .event-app-lucky .lucky-wide-panel h2 {
    margin-bottom: 8px !important;
    font-size: 20px !important;
  }

  .page-lucky .event-app-lucky .lucky-step strong {
    font-size: 11px !important;
  }

  .page-lucky .event-app-lucky .lucky-step:not(:last-child)::after {
    top: 38px !important;
    right: -7px !important;
    font-size: 16px !important;
  }

  .page-lucky .event-app-lucky .lucky-about li {
    font-size: 11px !important;
  }
}

@media (max-width: 980px) {
  .page-lucky .event-app-lucky .event-app-hero,
.page-lucky .event-app-lucky .lucky-wrap {
    width: min(100%, calc(100% - 24px)) !important;
  }

  .page-lucky .event-app-lucky .lucky-grid,
.page-lucky .event-app-lucky .lucky-info-grid {
    grid-template-columns: 1fr !important;
  }

  .page-lucky .event-app-lucky .lucky-side,
.page-lucky .event-app-lucky .lucky-machine-zone {
    width: 100% !important;
  }

  .page-lucky .event-app-lucky .lucky-left,
.page-lucky .event-app-lucky .lucky-right {
    grid-template-columns: 1fr !important;
  }
}

/* Pre-register poster event page. */
.page-pre-register {
  min-height: 100vh;
  background:
    radial-gradient(760px 420px at 82% -6%, rgba(255, 140, 42, 0.16), transparent 62%),
    radial-gradient(680px 420px at 12% -4%, rgba(255, 106, 0, 0.12), transparent 60%),
    radial-gradient(1200px 640px at 50% 116%, rgba(255, 106, 0, 0.10), transparent 66%),
    linear-gradient(180deg, #fff3ea 0%, #fff9f4 46%, #ffffff 100%);
  background-attachment: fixed;
}

/* การ์ดกลาง — พื้นขาวบนพื้นครีม + เงาส้มอุ่นให้ลอยเด่น */
.page-pre-register .prereg-card {
  background: #ffffff;
  box-shadow: var(--shadow-md);
}
.page-pre-register .prereg-item {
  background: #ffffff;
}

/* Login 7 Days event panel. */
body.page-login7 {
  min-height: 100vh !important;
  overflow-x: hidden !important;
  background: #06163b !important;
}

.page-login7 .site-header,
.page-login7 .footer {
  display: none !important;
}

.page-login7 .layout {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  display: block !important;
}

.page-login7 .layout-full::before,
.page-login7 .layout-full::after {
  display: none !important;
}

.page-login7 .content {
  min-height: 100vh !important;
  height: auto !important;
  overflow: visible !important;
}

.page-login7 .login7-page {
  min-height: 100vh;
  padding: 26px 18px;
  color: #fff4d6;
  background:
    radial-gradient(circle at 18% 10%, rgba(44, 124, 255, 0.3), transparent 26%),
    radial-gradient(circle at 78% 14%, rgba(255, 205, 70, 0.16), transparent 22%),
    linear-gradient(180deg, #0b2c74 0%, #061b49 48%, #031032 100%);
  position: relative;
  overflow-x: hidden;
}

.page-login7 .login7-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 18, 52, 0.26), rgba(2, 9, 26, 0.84)),
    url('/img/hero-scene.webp') center / cover;
  opacity: 0.52;
}

.page-login7 .login7-bg{
  display: none !important;
}

.page-login7 .login7-shell {
  position: relative;
  z-index: 1;
  width: min(1560px, calc(100vw - 44px));
  margin: 0 auto;
  padding: 32px;
  display: grid;
  gap: 22px;
  border: 3px solid #f2b93f;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(7, 50, 126, 0.78), rgba(2, 18, 54, 0.94)),
    radial-gradient(circle at 72% 16%, rgba(52, 119, 255, 0.25), transparent 30%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 176, 0.22),
    inset 0 0 44px rgba(6, 112, 255, 0.24),
    0 24px 70px rgba(0, 0, 0, 0.45);
}

.page-login7 .login7-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 214, 98, 0.34);
  border-radius: 16px;
  pointer-events: none;
}

.login7-poster-back {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 6;
  padding: 8px 15px;
  border: 1px solid rgba(255, 219, 116, 0.68);
  border-radius: 999px;
  color: #fff2b8;
  background: rgba(3, 25, 67, 0.74);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.login7-poster-hero {
  position: relative;
  min-height: 205px;
  padding: 6px 220px 0 200px;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.login7-poster-hero::before,
.login7-poster-hero::after {
  content: "\2726";
  position: absolute;
  top: 82px;
  color: #ffe263;
  font-size: 28px;
  text-shadow: 0 0 18px rgba(255, 226, 99, 0.8);
}

.login7-poster-hero::before { left: 32%; }
.login7-poster-hero::after { right: 31%; }

.login7-poster-mascot {
  position: absolute;
  left: 90px;
  top: 70px;
  width: 120px;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.34));
}

.login7-poster-title h1 {
  margin: 0;
  display: grid;
  gap: 4px;
  line-height: 0.94;
}

.login7-poster-title h1 span {
  color: #ffd956;
  font-size: clamp(50px, 4.6vw, 72px);
  font-weight: 1000;
  letter-spacing: 0;
  -webkit-text-stroke: 1.5px #8c4a00;
  text-shadow: 0 4px 0 #593000, 0 10px 18px rgba(0, 0, 0, 0.34);
}

.login7-poster-title h1 b {
  color: #f3f8ff;
  font-size: clamp(45px, 4.1vw, 64px);
  font-weight: 1000;
  letter-spacing: 0;
  -webkit-text-stroke: 1.5px #194e9d;
  text-shadow: 0 4px 0 #0a2d64, 0 10px 18px rgba(0, 0, 0, 0.32);
}

.login7-poster-title p {
  max-width: 900px;
  margin: 13px auto 0;
  color: #fff;
  font-size: clamp(16px, 1.28vw, 20px);
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.48);
}

.login7-poster-title p strong {
  color: #ffd74e;
}

.page-login7 .login7-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(290px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.page-login7 .login7-main,
.page-login7 .login7-side {
  display: grid;
  gap: 24px;
  min-height: 0;
}

.page-login7 .login7-calendar,
.page-login7 .login7-rates-card,
.page-login7 .login7-status-card,
.page-login7 .login7-shop-card,
.page-login7 .login7-bottom-note > span {
  border: 2px solid rgba(245, 186, 62, 0.82);
  border-radius: 13px;
  color: #fff4d6;
  background: linear-gradient(180deg, rgba(3, 42, 103, 0.94), rgba(1, 20, 54, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 242, 184, 0.12), 0 18px 34px rgba(0, 0, 0, 0.28);
}

.page-login7 .login7-calendar {
  min-height: 302px;
  padding: 22px 20px 18px;
}

.page-login7 .login7-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.page-login7 .login7-day-card {
  height: 238px;
  min-height: 238px;
  padding: 10px 10px 12px;
  display: grid;
  grid-template-rows: 32px 56px 48px 1fr;
  justify-items: center;
  gap: 8px;
  overflow: visible;
  border: 2px solid rgba(36, 95, 151, 0.76);
  border-radius: 12px;
  color: #15213c;
  text-align: center;
  background: linear-gradient(180deg, #fff9dc, #f4e6bb);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.78), 0 10px 20px rgba(0, 0, 0, 0.24);
}

.page-login7 .login7-day-card > * {
  justify-self: center;
  text-align: center;
}

.page-login7 .login7-day-card.is-final {
  border-color: #ffcf4e;
  background: linear-gradient(180deg, #fff5b9, #ffc531);
  box-shadow: 0 0 22px rgba(255, 199, 63, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.page-login7 .login7-day-head {
  width: 72px;
  max-width: 100%;
  min-height: 30px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #0757af, #053278);
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.1;
}

.page-login7 .login7-day-card.is-final .login7-day-head {
  background: linear-gradient(180deg, #efb827, #bf7603);
}

.page-login7 .login7-day-rolls {
  width: 100%;
  min-height: 54px;
  display: grid;
  place-items: center;
  color: #101723;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.18;
}

.page-login7 .login7-day-rolls strong {
  color: #0d4a9c;
  font-size: 26px;
  line-height: 1;
}

.page-login7 .login7-coin,
.page-login7 .login7-star,
.page-login7 .login7-medal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid #ffe37d;
  border-radius: 50%;
  color: transparent;
  background: radial-gradient(circle at 36% 28%, #fff9bd, #ffc338 56%, #b86607);
  box-shadow: inset 0 0 0 3px rgba(151, 77, 4, 0.36), 0 0 20px rgba(255, 200, 53, 0.35);
  position: relative;
}

.page-login7 .login7-coin::before,
.page-login7 .login7-star::before,
.page-login7 .login7-medal::before {
  content: "\2605";
  color: #fff4a7;
  font-size: 23px;
  text-shadow: 0 2px 0 #9d5400;
}

.page-login7 .login7-day-status {
  width: 100%;
  min-height: 54px;
  margin-top: 0;
  display: grid;
  justify-items: center;
  align-content: end;
  color: #68727d;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.15;
}

.page-login7 .login7-day-card.is-claimed .login7-day-status,
.page-login7 .login7-day-card.is-today .login7-day-status {
  color: #188030;
}

.page-login7 .login7-day-card.is-claimed .login7-day-status::before,
.page-login7 .login7-day-card.is-today .login7-day-status::before,
.page-login7 .login7-day-card.is-waiting .login7-day-status::before {
  content: "\2713";
  width: 27px;
  height: 27px;
  margin: 0 auto 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #7b8289;
  font-size: 19px;
}

.page-login7 .login7-day-card.is-claimed .login7-day-status::before,
.page-login7 .login7-day-card.is-today .login7-day-status::before {
  background: #2c9d3b;
}

.page-login7 .login7-note {
  margin: 13px 0 0;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.page-login7 .login7-note::before {
  content: "\24D8 ";
  color: #ffdf73;
}

.page-login7 .login7-rates-card {
  min-height: 222px;
  padding: 24px 22px 26px;
  display: grid;
  gap: 10px;
}

.page-login7 .login7-rates-copy {
  text-align: center;
}

.page-login7 .login7-rates-copy strong {
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
  line-height: 1.25;
}

.page-login7 .login7-rates {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 15px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.page-login7 .login7-rate {
  min-height: 126px;
  padding: 0 12px 10px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: transparent;
}

.page-login7 .login7-rate:last-child {
  border-right: 0;
}

.page-login7 .login7-rate span {
  color: #ffe16d;
  font-size: 15px;
  font-weight: 1000;
}

.page-login7 .login7-rate small {
  order: 2;
  min-width: 52px;
  min-height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background: radial-gradient(circle at 36% 28%, #fff7bd, #ffbd32 58%, #9b5404);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.2), 0 0 18px rgba(255, 196, 49, 0.22);
  position: relative;
}

.page-login7 .login7-rate small::before {
  content: "\2605";
  color: #fff3a4;
  font-size: 26px;
  text-shadow: 0 2px 0 #8d4c00;
}

.page-login7 .login7-rate-1 small { background: radial-gradient(circle at 36% 28%, #ffd4bc, #c9855b 58%, #76402a); }
.page-login7 .login7-rate-2 small { background: radial-gradient(circle at 36% 28%, #f3fbff, #bdd3dd 58%, #667b86); }
.page-login7 .login7-rate-5 small { background: radial-gradient(circle at 36% 28%, #ffd4ff, #974cff 58%, #4e1688); }
.page-login7 .login7-rate-10 small { background: radial-gradient(circle at 36% 28%, #ffe783, #dc5b26 58%, #8c1f0a); }

.page-login7 .login7-rate b {
  order: 3;
  margin-top: 4px;
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
  line-height: 1;
}

.page-login7 .login7-status-card {
  min-height: 302px;
  padding: 22px;
}

.page-login7 .login7-side h2 {
  margin: 0 0 14px;
  color: #fff1b5;
  font-size: 21px;
  text-align: center;
}

.page-login7 .login7-stat {
  min-height: 74px;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 13px;
  background: rgba(0, 16, 48, 0.46);
}

.page-login7 .login7-stat-copy {
  display: grid;
  gap: 4px;
}

.page-login7 .login7-stat small {
  color: #fff9d7;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.page-login7 .login7-stat-value {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.page-login7 .login7-stat strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 3px 0 #14387a;
}

.page-login7 .login7-stat em {
  color: #ffe16d;
  font-size: 18px;
  font-style: normal;
  font-weight: 1000;
}

.page-login7 .login7-status-card p {
  margin: 15px 0 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.page-login7 .login7-shop-card {
  min-height: 222px;
  padding: 22px;
}

.page-login7 .login7-shop-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.page-login7 .login7-gift {
  width: 44px;
  height: 42px;
  border: 3px solid #b5520b;
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent 40%, #d71f12 40% 58%, transparent 58%),
    linear-gradient(180deg, #ffe782 0 24%, #d71f12 24% 35%, #f0b738 35%);
}

.page-login7 .login7-shop-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
}

.page-login7 .login7-shop-head b {
  color: #ffda4d;
  font-size: 23px;
  white-space: nowrap;
}

.page-login7 .login7-shop-card ul {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.page-login7 .login7-shop-card li {
  color: #fff;
  font-size: 13px;
  line-height: 1.32;
}

.page-login7 .login7-shop-card li::before {
  content: "\2605";
  margin-right: 9px;
  color: #ffdc58;
}

.page-login7 .login7-bottom-note {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(380px, 420px) minmax(260px, 1fr);
  grid-template-areas: "note-a action note-b";
  align-items: center;
  gap: 20px;
  padding: 0 10px;
}

.page-login7 .login7-bottom-note > span:first-child { grid-area: note-a; }
.page-login7 .login7-bottom-note > span:last-child { grid-area: note-b; }

.page-login7 .login7-bottom-note > span {
  height: 64px;
  min-height: 64px;
  display: grid;
  align-content: center;
  padding: 12px 18px;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  background: rgba(1, 20, 57, 0.72);
}

.page-login7 .login7-bottom-note b {
  color: #ffdc58;
}

.page-login7 .login7-actions {
  grid-area: action;
  width: min(420px, 100%);
  justify-self: center;
  align-self: center;
  height: 64px;
  display: grid;
  align-items: center;
  gap: 8px;
}

.page-login7 .login7-actions.has-user {
  width: min(620px, 100%);
  grid-template-columns: 1fr 1fr;
}

.page-login7 .login7-primary,
.page-login7 .login7-claim {
  height: 64px;
  min-height: 64px;
  width: 100%;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffe688;
  border-radius: 13px;
  color: #582000;
  background: linear-gradient(180deg, #fff07e, #ffbd2b 58%, #cf7a10);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42), 0 6px 0 #8b4705, 0 16px 24px rgba(0, 0, 0, 0.32);
  font-family: inherit;
  font-size: 21px;
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
}

.page-login7 .login7-primary span {
  display: none;
}

.page-login7 .login7-claim {
  color: #fff2b8;
  background: linear-gradient(180deg, #195ebc, #073377);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 0 #021b42;
  font-size: 15px;
}

.page-login7 .login7-primary:disabled,
.page-login7 .login7-claim:disabled {
  cursor: default;
  filter: saturate(0.7);
  opacity: 0.72;
}

.page-login7 .login7-message {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #fff4c7;
  text-align: center;
  font-size: 13px;
}

.page-login7 .login7-message:empty {
  display: none;
}

@media (min-width: 761px) and (max-width: 1180px) {
  .page-login7 .login7-shell {
    width: min(100%, calc(100vw - 24px));
    padding: 22px 18px;
  }

  .login7-poster-hero {
    min-height: 0;
    padding: 58px 20px 0;
  }

  .login7-poster-mascot {
    position: static;
    width: 140px;
    margin-bottom: -8px;
  }

  .page-login7 .login7-layout {
    grid-template-columns: 1fr;
  }

  .page-login7 .login7-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-login7 .login7-rates {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-login7 .login7-bottom-note {
    grid-template-columns: 1fr;
    grid-template-areas: "note-a" "action" "note-b";
  }
}

@media (max-width: 760px) {
  .page-login7 .login7-page {
    padding: 12px;
  }

  .page-login7 .login7-shell {
    width: 100%;
    padding: 18px 12px;
    border-radius: 14px;
  }

  .login7-poster-hero {
    min-height: 0;
    padding: 54px 16px 0;
  }

  .login7-poster-mascot {
    position: static;
    width: 120px;
  }

  .login7-poster-title h1 span { font-size: 46px; }
  .login7-poster-title h1 b { font-size: 40px; }
  .login7-poster-title p { font-size: 15px; }

  .page-login7 .login7-layout,
.page-login7 .login7-main,
.page-login7 .login7-side,
.page-login7 .login7-bottom-note {
    grid-template-columns: 1fr;
  }

  .page-login7 .login7-days,
.page-login7 .login7-rates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-login7 .login7-bottom-note {
    grid-template-areas: "note-a" "action" "note-b";
  }

  .page-login7 .login7-actions.has-user {
    grid-template-columns: 1fr;
  }
}

/* Intro event landing page. */
html:has(> body.intro-page) {
  overflow-x: clip;
  overflow-y: auto;
}

.intro-page {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  background: #fff7ee;
  color: #3a2318;
}

.intro-page * {
  min-width: 0;
}

.intro-page h1,
.intro-page h2,
.intro-page h3,
.intro-page p,
.intro-page li,
.intro-page strong,
.intro-page a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.intro-page main,
.intro-page .intro-header,
.intro-page .intro-footer {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  overflow-y: visible;
}

.intro-page::before,
.intro-page::after {
  display: none;
}

.intro-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(255, 126, 25, 0.12);
  box-shadow: 0 6px 24px rgba(91, 44, 13, 0.06);
  backdrop-filter: blur(12px);
}

.intro-header-inner {
  width: min(1200px, calc(100% - 36px));
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.intro-logo,
.intro-logo img {
  display: block;
}

.intro-logo img {
  height: 54px;
  width: auto;
}

.intro-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.intro-nav a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.intro-nav a:hover {
  color: var(--orange);
}

.intro-header-actions,
.intro-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-btn {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.intro-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.intro-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #ff7a18 0%, #ff5a00 100%);
  box-shadow: 0 12px 22px rgba(255, 100, 0, 0.26);
}

.intro-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ff8a2c 0%, #eb5100 100%);
  box-shadow: 0 16px 28px rgba(255, 100, 0, 0.34);
}

.intro-btn-ghost {
  color: #5a3422;
  border-color: rgba(255, 106, 0, 0.42);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(91, 44, 13, 0.08);
}

.intro-btn-ghost:hover {
  color: #ff5a00;
  border-color: #ff6800;
  transform: translateY(-2px);
}

/* ปุ่มหลัก "เข้าเล่นผ่านเว็บ" (play.fire-ro.com) — ลอยกึ่งกลางพื้นที่ขวาของ hero (ใต้ตัวละคร)
   ดีไซน์เดียวกับ .hero-play-btn หน้า /main รวมเส้นเรนโบว์ (pseudo ประกาศรวมกันที่บล็อก .hero-play-btn) */
.intro-btn-play {
  position: relative;
  isolation: isolate;
  justify-self: center;
  align-self: center;
  margin-top: 110px;
  padding: 18px 30px;
  gap: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff3d00 0%, #ff7a18 55%, #ffb238 100%);
  box-shadow: 0 18px 40px rgba(200, 60, 0, 0.45);
  white-space: nowrap;
}

.intro-btn-play:hover {
  color: #fff;
  transform: translateY(-4px);
  background: linear-gradient(135deg, #ff4d0f 0%, #ff8a2c 55%, #ffc054 100%);
  box-shadow: 0 26px 52px rgba(255, 100, 0, 0.55);
}

.intro-btn-play-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.intro-btn-play-icon svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.intro-btn-play-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.2px;
  text-align: left;
  text-shadow: 0 2px 8px rgba(140, 40, 0, 0.35);
}

.intro-btn-play-text small {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.94;
  text-shadow: none;
}

.intro-float-main {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(180deg, #ff7a18 0%, #ff5a00 100%);
  box-shadow: 0 14px 30px rgba(255, 100, 0, 0.36), 0 2px 8px rgba(91, 44, 13, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.intro-float-main svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.intro-float-main:hover {
  color: #fff;
  transform: translateX(-50%) translateY(-3px);
  background: linear-gradient(180deg, #ff8a2c 0%, #eb5100 100%);
  box-shadow: 0 20px 38px rgba(255, 100, 0, 0.44), 0 2px 8px rgba(91, 44, 13, 0.2);
}

@media (max-width: 760px) {
  .intro-float-main {
    bottom: 16px;
    min-height: 44px;
    padding: 0 20px;
    font-size: 13px;
  }
}

.intro-btn-large {
  min-height: 56px;
  min-width: 184px;
  padding-inline: 28px;
  font-size: 16px;
  border-radius: 13px;
}

.intro-btn-gold {
  color: #fff;
  background: linear-gradient(180deg, #ffb238, #ff7a00);
  box-shadow: 0 12px 22px rgba(255, 122, 0, 0.24);
}

.intro-btn-gold:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffc154, #ef6500);
  box-shadow: 0 16px 28px rgba(255, 122, 0, 0.32);
}

.intro-hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: #fff3e8;
}

.intro-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 250, 243, 0.36) 42%, rgba(255, 241, 226, 0.14) 100%),
    url('/img/home/hero-scene-1280.webp') center 36% / cover no-repeat;
}

.intro-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 247, 238, 0), rgba(255, 247, 238, 0.86) 82%, #fff7ee 100%);
}

.intro-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 330px;
  display: grid;
  /* คอลัมน์ขวาสำหรับปุ่มเข้าเล่นผ่านเว็บ (ลอยบริเวณตัวละครใน bg) */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.intro-hero-copy {
  padding: 34px 0 14px 48px;
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 650px;
}

.intro-countdown {
  width: min(560px, 100%);
  display: grid;
  gap: 12px;
  padding: 16px 20px 18px;
  border: 1px solid rgba(255, 168, 76, 0.55);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 244, 221, 0.95), rgba(255, 233, 204, 0.82));
  box-shadow: 0 16px 34px rgba(206, 82, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.intro-countdown-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  line-height: 1;
}

.intro-countdown-spark {
  font-size: 18px;
  filter: drop-shadow(0 2px 2px rgba(206, 82, 0, 0.3));
}

.intro-countdown-label {
  color: #d24f00;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
}

.intro-countdown-date {
  color: #6b4326;
  font-size: 14px;
  font-weight: 800;
}

.intro-countdown-timer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.intro-countdown-unit {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ed8b24, #d24f00);
  border: 1px solid rgba(255, 215, 132, 0.6);
  box-shadow: 0 8px 16px rgba(206, 82, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.intro-countdown-unit strong {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(114, 44, 0, 0.35);
}

.intro-countdown-unit small {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 244, 221, 0.92);
  letter-spacing: 0.3px;
}

.intro-countdown-sep {
  align-self: center;
  margin-top: -10px;
  color: #d24f00;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.intro-countdown-live {
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #34c47a, #1f9d5f);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 22px rgba(31, 157, 95, 0.32);
}

.intro-hero-actions {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-hero-actions .intro-btn-large {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding-inline: 14px;
  font-size: 14px;
}

/* แบนเนอร์ประกาศ "เล่น Fire-RO บนเว็บ" (ลิงก์ไป /events/play-on-web) */
.intro-webplay-section {
  position: relative;
  z-index: 3;
  padding: 0 0 16px;
}

.intro-webplay-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid rgba(244, 122, 18, 0.35);
  background: linear-gradient(120deg, #fff7ec, #ffe9d2 55%, #ffdcb8);
  box-shadow: 0 14px 30px rgba(117, 52, 12, 0.14);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.intro-webplay-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(117, 52, 12, 0.2);
}

.intro-webplay-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8c2e, #f4640f);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(244, 100, 15, 0.35);
  white-space: nowrap;
}

.intro-webplay-copy {
  flex: 1;
  min-width: 0;
}

.intro-webplay-copy h2 {
  margin: 0;
  color: #2b160f;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 900;
  line-height: 1.25;
}

.intro-webplay-copy p {
  margin: 4px 0 0;
  color: #6a4631;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.intro-webplay-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #2b160f;
  color: #ffd9ae;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.intro-webplay-banner:hover .intro-webplay-cta {
  background: #f4640f;
  color: #fff;
}

@media (max-width: 760px) {
  .intro-webplay-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
  }

  .intro-webplay-cta {
    align-self: stretch;
    justify-content: center;
  }
}

.intro-events-section {
  position: relative;
  z-index: 3;
  padding: 0 0 30px;
}

.intro-section-title {
  text-align: center;
  margin-bottom: 16px;
}

.intro-section-title h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #2b160f;
  font-size: clamp(36px, 4.8vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 3px 0 #fff1df, 0 12px 26px rgba(117, 52, 12, 0.12);
}

.intro-section-title h2::before,
.intro-section-title h2::after {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 122, 18, 0), #f47a12);
  box-shadow: 0 0 12px rgba(244, 122, 18, 0.28);
}

.intro-section-title h2::after {
  background: linear-gradient(90deg, #f47a12, rgba(244, 122, 18, 0));
}

.intro-section-title p {
  margin-top: 10px;
  color: #6a4631;
  font-size: 17px;
  font-weight: 700;
}

.intro-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.intro-event-card {
  position: relative;
  min-height: 552px;
  display: grid;
  grid-template-rows: 222px 1fr;
  overflow: visible;
  border: 2px solid #f4d2b0;
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 18px 38px rgba(107, 55, 20, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.intro-event-card:hover {
  transform: translateY(-8px);
  border-color: #ff7a00;
  box-shadow: 0 24px 48px rgba(255, 103, 0, 0.2), 0 16px 32px rgba(107, 55, 20, 0.12);
}

.intro-event-featured {
  border-color: #ff7a18;
  box-shadow:
    0 0 0 3px rgba(255, 122, 24, 0.18),
    0 22px 48px rgba(255, 106, 0, 0.22),
    0 0 46px rgba(255, 179, 56, 0.32);
}

.intro-event-image {
  position: relative;
  display: block;
  height: 222px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #fff2e7;
}

.intro-event-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.26s ease;
}

.intro-event-card:hover .intro-event-image img {
  transform: scale(1.035);
}

.intro-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-height: 28px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, #ff8426, #f05a00);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(110, 45, 8, 0.22);
}

.intro-event-gold .intro-card-badge {
  background: linear-gradient(180deg, #ffb943, #f18400);
}

.intro-event-featured .intro-card-badge {
  display: none;
}

.intro-recommend-badge {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  min-height: 44px;
  padding: 7px 14px 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid rgba(244, 156, 38, 0.46);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(180deg, #ffc253, #f29b24);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(231, 123, 12, 0.34), 0 0 24px rgba(255, 208, 96, 0.32);
}

.intro-recommend-badge span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f4a422;
  background: #fff;
  font-size: 15px;
}

.intro-event-body {
  min-height: 0;
  padding: 21px 24px 24px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}

.intro-event-body h3 {
  margin: 0;
  color: #472515;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.18;
}

.intro-event-gold .intro-event-body h3 {
  color: #9a4700;
}

.intro-event-featured .intro-event-body h3 {
  color: #7e3514;
}

.intro-event-body p {
  color: #3f2a20;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.58;
}

.intro-event-body ul {
  margin: 0;
  padding: 6px 0 0;
  display: grid;
  align-content: start;
  gap: 9px;
  list-style: none;
}

.intro-event-body li {
  position: relative;
  min-height: 22px;
  padding-left: 30px;
  color: #5d3d2a;
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.38;
}

.intro-event-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #b0835f;
}

.intro-event-body li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.intro-event-gold .intro-event-body li::before {
  background: #f59e0b;
}

.intro-event-featured .intro-event-body li::before {
  background: #f5a623;
}

.intro-event-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  font-size: 15px;
}

.intro-event-btn span {
  font-size: 20px;
  line-height: 1;
}

.intro-cta-section {
  padding: 6px 0 34px;
}

.intro-cta-box {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 300px;
  align-items: center;
  border: 1px solid rgba(255, 122, 0, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 38%, rgba(255, 190, 74, 0.28), transparent 28%),
    radial-gradient(circle at 84% 45%, rgba(255, 184, 73, 0.2), transparent 32%),
    linear-gradient(180deg, #fffaf3 0%, #fff1df 100%);
  box-shadow: 0 22px 50px rgba(107, 55, 20, 0.14), 0 0 56px rgba(255, 145, 0, 0.18);
}

.intro-cta-box-no-left {
  grid-template-columns: minmax(0, 1fr) 360px;
  justify-items: stretch;
}

.intro-cta-box::before,
.intro-cta-box::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f4b34f;
  box-shadow:
    0 0 0 8px rgba(244, 179, 79, 0.12),
    0 0 20px rgba(244, 179, 79, 0.38);
  opacity: 0.9;
}

.intro-cta-box::before {
  left: 33%;
  top: 78px;
}

.intro-cta-box::after {
  right: 31%;
  top: 55px;
}

.intro-cta-art {
  height: 100%;
  min-height: 300px;
  position: relative;
  justify-self: end;
  width: 100%;
  overflow: visible;
}

.intro-cta-art img {
  position: absolute;
  max-width: none;
  height: auto;
}

.intro-cta-right img {
  width: 292px;
  right: 0;
  bottom: 10px;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.92)) drop-shadow(0 20px 30px rgba(119, 61, 14, 0.22));
}

.intro-cta-content {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  justify-self: center;
  display: grid;
  justify-items: center;
  padding: 24px 24px 22px;
  text-align: center;
}

.intro-cta-content h2 {
  margin: 0;
  color: #4b2819;
  font-size: clamp(28px, 3.1vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.intro-cta-content p {
  margin-top: 6px;
  color: #6b432d;
  font-size: 16px;
  font-weight: 750;
}

.intro-cta-actions {
  justify-content: center;
  justify-self: center;
  margin-top: 26px;
}

.intro-cta-actions .intro-btn-primary {
  box-shadow: 0 16px 30px rgba(255, 100, 0, 0.34), 0 0 26px rgba(255, 158, 44, 0.16);
}

.intro-footer {
  background: linear-gradient(180deg, #322017, #1d110c);
  color: rgba(255, 255, 255, 0.78);
}

.intro-footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.intro-footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.intro-footer-brand img {
  width: 106px;
  height: auto;
  filter: brightness(0) invert(1) opacity(0.92);
}

.intro-footer-brand p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.5;
}

.intro-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.intro-socials a {
  min-height: 32px;
  padding: 3px 10px 3px 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-socials a span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
}

.intro-socials a b {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.intro-socials a:nth-child(1) span { background: #1877f2; }
.intro-socials a:nth-child(2) span { background: #5865f2; }
.intro-socials a:nth-child(3) span { background: #ff0033; }
.intro-socials a:nth-child(4) span { background: #ff6500; }

@media (max-width: 1120px) {
  .intro-header-inner {
    grid-template-columns: 132px 1fr;
  }

  .intro-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    height: 34px;
    padding-bottom: 6px;
  }

  .intro-header {
    height: 110px;
  }

  .intro-header-inner {
    height: 110px;
    align-content: center;
    row-gap: 6px;
  }

  .intro-header-actions {
    justify-content: end;
  }

  .intro-hero-copy {
    padding: 36px 0 8px;
    justify-items: center;
    text-align: center;
    margin: 0 auto;
  }

  /* จอแคบ: ยุบเหลือคอลัมน์เดียว ปุ่มเข้าเล่นลงมาต่อใต้ CTA */
  .intro-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-btn-play {
    margin: 0 auto 26px;
  }

  .intro-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(920px, 100%);
    gap: 24px;
    margin: 0 auto;
  }

  .intro-event-featured {
    grid-column: 1 / -1;
    width: min(520px, 100%);
    justify-self: center;
  }

  .intro-cta-box {
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
  }

  .intro-cta-box-no-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .intro-cta-right {
    display: none;
  }

}

@media (max-width: 760px) {
  .intro-container {
    width: calc(100% - 24px);
  }

  .intro-header,
.intro-header-inner {
    height: auto;
  }

  .intro-header-inner {
    grid-template-columns: 1fr;
    padding: 10px 0 12px;
    gap: 10px;
  }

  .intro-logo {
    justify-self: center;
  }

  .intro-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .intro-header-actions .intro-btn {
    min-width: 0;
    width: 100%;
    padding-inline: 12px;
    font-size: 13px;
  }

  .intro-nav {
    order: 2;
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 8px 16px;
    height: auto;
    overflow: visible;
    padding-inline: 2px;
  }

  .intro-nav a {
    font-size: 13px;
  }

  .intro-hero {
    min-height: 0;
  }

  .intro-hero-copy {
    padding-top: 28px;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    overflow: hidden;
  }

  .intro-countdown {
    width: min(360px, calc(100vw - 32px));
    justify-self: center;
    padding: 14px 14px 16px;
  }

  .intro-countdown-head {
    justify-content: center;
    text-align: center;
  }

  .intro-countdown-label {
    font-size: 16px;
  }

  .intro-countdown-unit small {
    font-size: 11px;
  }

  .intro-countdown-sep {
    font-size: 24px;
  }

  .intro-hero-actions,
.intro-cta-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .intro-btn-large {
    width: 100%;
    min-width: 0;
  }

  .intro-btn-play {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    white-space: normal;
  }

  .intro-btn-play-icon { width: 46px; height: 46px; }

  .intro-btn-play-text {
    font-size: 18px;
  }

  .intro-events-section {
    padding-top: 14px;
  }

  .intro-section-title,
.intro-card-grid,
.intro-event-body {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .intro-card-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 20px;
    margin-inline: 0;
  }

  .intro-section-title p {
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
  }

  .intro-section-title h2 {
    display: block;
    max-width: 330px;
    margin-inline: auto;
    font-size: 32px;
    line-height: 1.2;
  }

  .intro-section-title h2::before,
.intro-section-title h2::after {
    display: none;
  }

  .intro-event-card {
    grid-template-rows: 190px 1fr;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }

  .intro-event-featured {
    grid-column: auto;
    width: 100%;
  }

  .intro-event-image {
    height: 190px;
  }

  .intro-event-body {
    padding: 18px;
  }

  .intro-event-body h3 {
    font-size: 20px;
    max-width: 300px;
  }

  .intro-event-body p,
.intro-event-body li {
    max-width: 300px;
    font-size: 13.8px;
  }

  .intro-recommend-badge {
    top: 12px;
    right: 112px;
    min-height: 34px;
    padding: 5px 9px 5px 7px;
    gap: 5px;
    border-radius: 11px;
    font-size: 13px;
  }

  .intro-recommend-badge span {
    width: 21px;
    height: 21px;
    font-size: 12px;
  }

  .intro-cta-box {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
  }

  .intro-cta-content {
    padding: 28px 18px 8px;
  }

  .intro-cta-content h2 {
    white-space: normal;
  }

  .intro-footer-inner,
.intro-footer-brand {
    flex-direction: column;
    text-align: center;
  }

  .intro-footer-inner {
    padding: 18px 0;
  }
}

/* ===== Admin Shell (หลังบ้าน — chrome เฉพาะ admin แยกจากหน้าเว็บสาธารณะ) ===== */
.admin-body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: 'Prompt', sans-serif;
  /* override global body{overflow-x:hidden} ที่ทำให้ body กลายเป็น scroll container แล้ว sticky พัง; clip กันล้นแนวนอนโดยไม่สร้าง scroll container */
  overflow-x: clip;
}
.admin-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #1c140f;
  color: #f4e9e1;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
}
.admin-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-brand img {
  width: 150px;
  height: auto;
}
.admin-brand-tag {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 800;
  color: var(--orange-3);
}
.admin-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
  padding: 14px 12px;
}
.admin-nav-group {
  padding: 14px 12px 6px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(244, 233, 225, 0.4);
}
.admin-nav-group:first-child {
  padding-top: 4px;
}
.admin-nav a,
.admin-nav-foot a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #d9c9bd;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.admin-nav a svg,
.admin-nav-foot a svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.admin-nav a:hover,
.admin-nav-foot a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.admin-nav a.active {
  background: linear-gradient(135deg, var(--orange-2), var(--orange-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 91, 0, 0.28);
}
.admin-nav-foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.admin-topbar-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}
.admin-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.admin-user svg {
  width: 18px;
  height: 18px;
}
.admin-content {
  width: 100%;
  max-width: 1240px;
  padding: 26px 24px 48px;
}
.admin-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  cursor: pointer;
}
.admin-menu-btn span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-sidebar-backdrop.open {
    display: block;
  }
  .admin-menu-btn {
    display: flex;
  }
}

/* ============================================================================
   WIKI / DATABASE (prefix: wiki-)  — monster + item reference pages
   Pages: /database/monsters, /database/monsters/:id, /database/items, /database/items/:id
   ========================================================================= */
.wiki-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 64px;
  color: #1e293b;
}

.wiki-crumbs {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}
.wiki-crumbs a { color: #3b82f6; text-decoration: none; font-weight: 500; }
.wiki-crumbs a:hover { text-decoration: underline; }
.wiki-crumbs span { margin: 0 6px; color: #cbd5e1; }
.wiki-crumbs strong { color: #1e293b; }

/* ---- Page header (left-aligned, compact; right-side faded mascot deco) ---- */
.wiki-hero {
  position: relative;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 26px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 16px;
}
.wiki-hero-copy { position: relative; z-index: 1; max-width: 72%; }
.wiki-hero-copy h1 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  margin: 8px 0 6px;
  color: #1e293b;
}
.wiki-hero-copy p { margin: 0; color: #64748b; max-width: 640px; font-size: 13.5px; line-height: 1.5; }
.wiki-hero-deco {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 190px; height: 190px;
  background: url('/img/mascot-poring.webp') no-repeat center / contain;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
.wiki-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #e55f00;
  background: #ff6a001a;
  border: 1px solid #ff6a0033;
  border-radius: 999px;
  padding: 4px 14px;
}
.wiki-hero-tabs { display: inline-flex; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.wiki-hero-tabs a {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.18s ease;
}
.wiki-hero-tabs a.active { background: #ff6a00; border-color: #ff6a00; color: #fff; box-shadow: 0 2px 4px #ff6a0033; }
.wiki-hero-tabs a:not(.active):hover { border-color: #ff6a00; color: #e55f00; }
@media (max-width: 720px) {
  .wiki-hero-deco { display: none; }
  .wiki-hero-copy { max-width: 100%; }
}

/* ---- Filters (search card) ---- */
.wiki-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 16px;
}
.wiki-search {
  position: relative;
  flex: 1 1 340px;
  min-width: 220px;
}
.wiki-search svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: #94a3b8;
}
.wiki-search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s;
}
.wiki-search input:focus { outline: none; background: #fff; border-color: #ff6a00; box-shadow: 0 0 0 3px #ff6a001a; }
/* Autocomplete dropdown (public/js/wiki-suggest.js) under [data-wiki-suggest] search boxes */
.wiki-suggest-host { position: relative; }
.wiki-suggest-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.14);
  max-height: 380px; overflow-y: auto;
}
.wiki-suggest-group { padding: 9px 14px 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
.wiki-suggest-link { display: flex; align-items: center; gap: 10px; padding: 8px 14px; text-decoration: none; }
.wiki-suggest-link:hover, .wiki-suggest-link.active { background: #fff7f1; }
.wiki-suggest-link img { flex: 0 0 28px; width: 28px; height: 28px; object-fit: contain; }
.wiki-suggest-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-suggest-meta { flex: 0 0 auto; font-size: 12px; color: #94a3b8; }
.wiki-filters select {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.wiki-filters select:focus { outline: none; background: #fff; border-color: #ff6a00; box-shadow: 0 0 0 3px #ff6a001a; }
.wiki-mvp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
.wiki-mvp-toggle input { accent-color: #ff6a00; width: 16px; height: 16px; }
.wiki-search-btn {
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #ff6a00;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 4px #ff6a0033;
  transition: all 0.2s;
}
.wiki-search-btn:hover { background: #e55f00; box-shadow: 0 4px 6px #ff6a004d; transform: translateY(-1px); }
.wiki-search-btn:active { transform: translateY(0); }

/* ---- Advanced-filter toggle + collapsible panel (items) ---- */
.wiki-adv-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.wiki-adv-toggle svg { width: 15px; height: 15px; color: #94a3b8; }
.wiki-adv-toggle:hover { border-color: #ff6a00; color: #e55f00; }
.wiki-adv-toggle:hover svg { color: #e55f00; }
.wiki-adv-toggle.open { background: #fff4ec; border-color: #ffc9a3; color: #e55f00; }
.wiki-adv-toggle.open svg { color: #e55f00; }
.wiki-adv-panel {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}
/* class display:flex would otherwise override the [hidden] attribute — keep it collapsible. */
.wiki-adv-panel[hidden] { display: none; }
.wiki-adv-field { display: flex; flex-direction: column; gap: 5px; }
.wiki-adv-field > span { font-size: 12px; font-weight: 600; color: #64748b; }
.wiki-adv-field select { min-width: 150px; }
.wiki-adv-field select:disabled { opacity: 0.55; cursor: not-allowed; background: #f1f5f9; }
.wiki-adv-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  user-select: none;
  padding-bottom: 9px;
}
.wiki-adv-check input { accent-color: #ff6a00; width: 16px; height: 16px; }

/* ---- Result bar ---- */
.wiki-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 2px 16px;
  font-size: 14px;
  color: #64748b;
}
.wiki-result-bar strong { color: #e55f00; }
.wiki-clear { color: #3b82f6; text-decoration: none; font-size: 13px; font-weight: 500; }
.wiki-clear:hover { text-decoration: underline; }
.wiki-result-tools { display: inline-flex; align-items: center; gap: 16px; }
.wiki-perpage { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; }
.wiki-perpage select {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  cursor: pointer;
}

/* ---- Empty state ---- */
.wiki-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
}
.wiki-empty strong { display: block; font-size: 16px; color: #1e293b; margin-bottom: 6px; }
.wiki-empty p { margin: 0; font-size: 14px; }

/* ---- Results / monster table ---- */
.wiki-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow: hidden;
}
.wiki-mob-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.wiki-mob-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 16px;
  background: #fff7ed;
  border-bottom: 2px solid #ffe0cc;
  white-space: nowrap;
}
.wiki-mob-table thead th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.wiki-mob-table thead th.wiki-sortable a { cursor: pointer; }
.wiki-mob-table thead th.wiki-sortable:hover { background: #ffe9d8; color: #1e293b; }
.wiki-col-num { text-align: right; }
.wiki-col-center, .wiki-col-el, .wiki-col-race, .wiki-col-size { text-align: center; }
.wiki-mob-table thead th.wiki-col-el,
.wiki-mob-table thead th.wiki-col-race,
.wiki-mob-table thead th.wiki-col-size { text-align: center; }
.wiki-mob-table tbody td { text-align: left; }
.wiki-mob-table tbody td.wiki-col-num { text-align: right; font-variant-numeric: tabular-nums; }
.wiki-mob-table tbody td.wiki-col-el,
.wiki-mob-table tbody td.wiki-col-race,
.wiki-mob-table tbody td.wiki-col-size { text-align: center; }
.wiki-mob-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
.wiki-mob-row td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}
.wiki-mob-table tbody tr:last-child td { border-bottom: none; }
.wiki-mob-row:hover td { background: #fff7f1; }
.wiki-mob-row.is-mvp td { background: #fffbeb; }
.wiki-mob-row.is-mvp:hover td { background: #fef3c7; }
.wiki-col-name { min-width: 0; }
.wiki-mob-table td.wiki-col-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Sprite box (mega-ro img-box) */
.wiki-img-box {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #fff8f2;
  border: 1px solid #ffe0cc;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}
.wiki-mob-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  image-rendering: pixelated;
}
.wiki-mob-namewrap { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wiki-mob-nameline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wiki-mob-id { font-size: 12px; color: #475569; font-weight: 500; font-variant-numeric: tabular-nums; }
.wiki-mob-link { font-weight: 600; color: #1e293b; text-decoration: none; }
.wiki-mob-link:hover { color: #3b82f6; text-decoration: underline; }
.wiki-mob-lvchip { font-weight: 600; color: #475569; font-variant-numeric: tabular-nums; }
.wiki-mob-ellv { color: #94a3b8; font-size: 12px; }
/* Detail action column (right-most): outlined orange button, fills on hover. */
.wiki-col-action { text-align: center; white-space: nowrap; }
.wiki-mob-table thead th.wiki-col-action,
.wiki-mob-table tbody td.wiki-col-action { text-align: center; }
.wiki-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #ffd1b3;
  background: #fff;
  color: #e55f00;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.wiki-detail-btn:hover { background: #ff6a00; border-color: #ff6a00; color: #fff; }

/* ---- "คุณสมบัติ" column: one dynamic badge per item type ---- */
.wiki-mob-table thead th.wiki-col-prop,
.wiki-mob-table tbody td.wiki-col-prop { text-align: center; }
.wiki-prop-tag {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wiki-prop-tag.tone-atk { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.wiki-prop-tag.tone-def { background: #dbeafe; border-color: #bfdbfe; color: #1d4ed8; }
.wiki-prop-tag.tone-card { background: #f3e8ff; border-color: #e9d5ff; color: #7e22ce; }
.wiki-prop-tag.tone-usable { background: #dcfce7; border-color: #bbf7d0; color: #15803d; }
.wiki-prop-tag.tone-none { background: transparent; border-color: transparent; color: #cbd5e1; }

/* Subtype (weapon/ammo/card): small muted line under the type badge. */
.wiki-subtype { display: block; font-size: 11px; font-weight: 600; color: #94a3b8; margin-top: 3px; }

/* Item icons are natively 24×24 collection sprites — render 1:1 for crisp pixels. */
.wiki-item-table .wiki-img-box { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px; font-size: 9px; }
.wiki-item-table .wiki-mob-sprite { padding: 0; image-rendering: auto; }

/* Card rows (type=card): effect text in the คุณสมบัติ column, clamped to 2 lines. */
.wiki-card-eff {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; line-height: 1.55; color: #475569; white-space: pre-line; max-width: 420px;
}

/* ── Leveling guide (แนะนำจุดเก็บเลเวล) — /database/leveling ── */
.level-guide-page { max-width: 1080px; margin: 0 auto; padding: 26px 16px 64px; }
.level-guide-hero { text-align: center; margin-bottom: 20px; }
.level-guide-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #fff3e8; border: 1px solid #ffe0cc; color: #b45309; font-weight: 700; font-size: 12.5px; }
.level-guide-badge img { width: 18px; height: 18px; }
.level-guide-hero h1 { margin: 12px 0 8px; color: #f06a00; font-size: clamp(30px, 5vw, 46px); }
.level-guide-hero p { max-width: 760px; margin: 0 auto; color: #6b5647; font-size: 15px; line-height: 1.6; }
.level-guide-note { margin-top: 10px !important; font-size: 13.5px !important; color: #7a6152 !important; background: #fff8f2; border: 1px dashed #ffce9e; border-radius: 12px; padding: 10px 14px; }
.level-guide-note strong { color: #e04b00; }
.level-guide-control { background: #fff; border: 1px solid #ffe0cc; border-radius: 16px; padding: 18px 20px; box-shadow: 0 8px 22px rgba(255, 122, 24, 0.08); position: sticky; top: 12px; z-index: 5; }
.level-guide-control > label { display: block; font-weight: 800; color: #5d4033; margin-bottom: 10px; }
.level-guide-control-row { display: flex; gap: 14px; align-items: center; }
#lg-level-range { flex: 1; accent-color: #ff5a00; height: 6px; }
#lg-level { width: 78px; padding: 8px 10px; border: 1px solid #f4d8c7; border-radius: 10px; font-weight: 800; font-size: 16px; color: #ff5a00; text-align: center; background: #fffaf6; }
.level-guide-summary { margin-top: 12px; font-size: 13px; color: #94734f; font-weight: 600; }
.level-guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; margin-top: 20px; }
.level-guide-card { background: #fff; border: 1px solid #ffe0cc; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, transform .15s; }
.level-guide-card:hover { box-shadow: 0 8px 20px rgba(255, 122, 24, 0.14); transform: translateY(-2px); }
.level-guide-card-head { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.level-guide-card-info { display: flex; flex-direction: column; min-width: 0; }
.level-guide-card-info strong { color: #5d4033; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level-guide-lv { color: #ff6a00; font-weight: 800; font-size: 12.5px; }
.level-guide-maps { display: flex; flex-wrap: wrap; gap: 6px; }
.level-guide-map { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #fff3e8; border: 1px solid #ffe0cc; color: #7a503c; border-radius: 8px; padding: 3px 6px 3px 8px; text-decoration: none; font-weight: 600; }
.level-guide-map:hover { background: #ffe6d3; color: #e04b00; }
.level-guide-map .wiki-spawn-amt { font-size: 10px; padding: 1px 8px; }
.level-guide-empty { text-align: center; padding: 46px 20px; color: #a08a79; }
.level-guide-empty strong { display: block; color: #7a6152; font-size: 16px; margin-bottom: 6px; }
/* leveling: class-preset picker */
.level-guide-jobs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ffe0cc; }
.level-guide-job-btn { font-size: 12.5px; font-weight: 700; color: #6d4a8f; background: #f6effc; border: 1px solid #e6d5f7; border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.level-guide-job-btn:hover { background: #eaddfa; }
.level-guide-job-btn.is-active { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }
/* leveling: sort + element-hide controls */
.level-guide-tools { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ffe0cc; }
.level-guide-tools-label { font-size: 12px; font-weight: 700; color: #94734f; margin-right: 2px; align-self: center; }
.level-guide-sort, .level-guide-ele-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.level-guide-sort-btn { font-size: 12.5px; font-weight: 700; color: #7a503c; background: #fff6ef; border: 1px solid #ffe0cc; border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.level-guide-sort-btn:hover { background: #ffe6d3; }
.level-guide-sort-btn.is-active { background: #ff6a00; border-color: #ff6a00; color: #fff; }
.level-guide-ele-chip { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 11px; cursor: pointer; transition: opacity .12s, filter .12s; }
.level-guide-ele-chip.is-off { opacity: .4; filter: grayscale(.7); text-decoration: line-through; }
/* leveling: richer card body */
.level-guide-card-boost { border-color: #d6bcfa; box-shadow: 0 0 0 1px #e9d5ff inset, 0 6px 16px rgba(139, 92, 246, 0.12); }
.level-guide-tag-rec { display: inline-block; font-size: 11px; font-weight: 800; color: #6b21a8; background: #f3e8ff; border: 1px solid #e9d5ff; border-radius: 6px; padding: 3px 8px; }
.level-guide-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.level-guide-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; }
.level-guide-stat { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 700; color: #6b5647; background: #fff8f2; border: 1px solid #ffeede; border-radius: 8px; padding: 4px 8px; }
.level-guide-stat b { font-weight: 700; color: #a88a72; font-size: 11px; }
.level-guide-stat-accent { background: #fff1e6; border-color: #ffd9bd; color: #d94f00; }
.level-guide-stat-accent b { color: #ef7a2e; }
.level-guide-drops { display: flex; flex-wrap: wrap; gap: 6px; }
.level-guide-drop { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #4a5b3a; background: #f2f7ea; border: 1px solid #dcebc9; border-radius: 8px; padding: 3px 8px; text-decoration: none; }
.level-guide-drop:hover { background: #e6f0d6; color: #33461f; }
.level-guide-drop em { font-style: normal; font-weight: 800; font-size: 10.5px; color: #6c8a3f; }

/* ---- Attribute badges (element / race / size) ---- */
.wiki-info-tag {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  white-space: nowrap;
}
.wiki-ele-fire { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.wiki-ele-water { background: #dbeafe; border-color: #bfdbfe; color: #1e40af; }
.wiki-ele-earth { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.wiki-ele-wind { background: #ccfbf1; border-color: #99f6e4; color: #0f766e; }
.wiki-ele-poison { background: #f3e8ff; border-color: #e9d5ff; color: #6b21a8; }
.wiki-ele-holy { background: #fef9c3; border-color: #fde047; color: #854d0e; }
.wiki-ele-dark { background: #cbd5e1; border-color: #94a3b8; color: #1e293b; }
.wiki-ele-ghost { background: #f8fafc; border-color: #cbd5e1; color: #94a3b8; }
.wiki-ele-undead { background: #e5e7eb; border-color: #cbd5e1; color: #334155; }
.wiki-ele-neutral { background: #f3f4f6; border-color: #e5e7eb; color: #64748b; }
.wiki-race { background: #e0f2fe; border-color: #bae6fd; color: #0369a1; }
.wiki-size { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }

/* MVP tag */
.wiki-mvp-tag {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 6px;
}
.wiki-mvp-tag.lg { font-size: 12px; padding: 4px 12px; margin-bottom: 6px; }
.wiki-mvp-tag.sm { font-size: 9px; padding: 1px 5px; margin-left: 5px; vertical-align: middle; }

/* ---- Pagination ---- */
.wiki-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.wiki-pagination a,
.wiki-pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.wiki-pagination a:hover { border-color: #ff6a00; color: #e55f00; }
.wiki-pagination .active { background: #ff6a00; border-color: #ff6a00; color: #fff; font-weight: 600; }
.wiki-pagination .disabled { opacity: 0.45; }

/* ---- Detail pages ---- */
.wiki-detail-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--el, #ff6a00);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
.wiki-detail-thumb {
  flex: 0 0 88px;
  width: 88px; height: 88px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  font-size: 24px;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.wiki-detail-thumb.is-mvp { border-color: #f59e0b; box-shadow: 0 0 0 3px #fcd34d55; }
.wiki-detail-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  image-rendering: pixelated;
}
.wiki-item-hero .wiki-detail-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; image-rendering: pixelated; }
.wiki-detail-head { flex: 1 1 auto; min-width: 0; }
.wiki-detail-head h1 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: #1e293b; }
.wiki-detail-th { margin: 0 0 10px; color: #64748b; font-size: 15px; }
.wiki-detail-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.wiki-chip {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 12px;
}
.wiki-chip-muted { color: #94a3b8; font-weight: 500; }

.wiki-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}
.wiki-detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wiki-detail-side { display: flex; flex-direction: column; gap: 18px; }

.wiki-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.wiki-panel-mvp { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fff); }
.wiki-panel-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}
.wiki-panel-title small { color: #94a3b8; font-weight: 500; }
.wiki-muted { color: #94a3b8; font-size: 14px; margin: 0; }

.wiki-stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.wiki-stat-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.wiki-stat-tile small { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.wiki-stat-tile strong { font-size: 16px; color: #1e293b; font-variant-numeric: tabular-nums; }
.wiki-substats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 0;
}
.wiki-substat {
  text-align: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 10px 4px;
}
.wiki-substat span { display: block; font-size: 10px; color: #94a3b8; letter-spacing: 0.04em; }
.wiki-substat strong { font-size: 15px; color: #e55f00; }

.wiki-drop-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wiki-drop-table th {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
}
.wiki-drop-table td { padding: 11px 12px; border-bottom: 1px solid #e2e8f0; color: #1e293b; }
.wiki-drop-table tr:last-child td { border-bottom: none; }
.wiki-drop-table tbody tr:hover td { background: #fff7f1; }
.wiki-drop-table a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.wiki-drop-table a:hover { text-decoration: underline; }
.wiki-drop-item { display: inline-flex; align-items: center; gap: 8px; }
.wiki-drop-icon { width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; }
.wiki-rate { font-weight: 600; color: #e55f00; font-variant-numeric: tabular-nums; }
.wiki-flag { margin-left: 4px; font-size: 11px; opacity: 0.5; cursor: help; }

.wiki-spawn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wiki-spawn-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.wiki-spawn-list code { font-size: 13px; color: #1e293b; font-family: ui-monospace, monospace; }
.wiki-spawn-amt { font-size: 11px; font-weight: 700; padding: 2px 11px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.wiki-spawn-amt.is-high { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.wiki-spawn-amt.is-mid { background: #fff8e6; color: #b7791f; border-color: #fde68a; }
.wiki-spawn-amt.is-low { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
/* spawn row: map name + count on the left, density badge + copy on the right */
.wiki-spawn-info { min-width: 0; }
.wiki-spawn-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.wiki-copy-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  border: 1px solid #e5e7eb; border-radius: 8px; background: #fff;
  color: #94a3b8; cursor: pointer; transition: all 0.2s ease;
}
.wiki-copy-icon svg { width: 14px; height: 14px; }
.wiki-copy-icon:hover { border-color: #ff6a00; color: #e55f00; background: #fff7f1; }

/* ---- Monster detail: quick stats, section nav, chance badges, copy UX ---- */
.wiki-detail-quick {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
  min-width: 220px;
}
.wiki-quick-tile {
  background: #fdfbfa;
  border: 1px solid #f0e7df;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}
.wiki-quick-tile small { display: block; font-size: 10px; color: #a8836a; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.wiki-quick-tile strong { font-size: 15px; font-weight: 700; color: #1e293b; font-variant-numeric: tabular-nums; }
.wiki-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.wiki-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid #ffd1b3; background: #fff; color: #e55f00;
  font-size: 13px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; transition: all 0.2s ease;
}
.wiki-btn-ghost:hover { background: #ff6a00; border-color: #ff6a00; color: #fff; }
.wiki-detail-nav {
  position: sticky; top: 70px; z-index: 30;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 18px;
}
.wiki-detail-nav a {
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #64748b;
  text-decoration: none; transition: all 0.2s ease;
}
.wiki-detail-nav a:hover { background: #fff1e6; color: #e55f00; }
.wiki-detail-nav a.active { background: #ff6a00; color: #fff; }
.wiki-detail-main section[id], .wiki-detail-side section[id] { scroll-margin-top: 150px; }
.wiki-stat-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin: 0 0 10px; }
.wiki-stat-tiles + .wiki-stat-group-title { margin-top: 16px; }
.wiki-stat-tile strong.is-zero, .wiki-substat strong.is-zero { color: #cbd5e1; }
.wiki-drop-chance {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; border: 1px solid transparent;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wiki-drop-chance.rate-high { background: #ffe4d3; border-color: #ffc09a; color: #c2410c; }
.wiki-drop-chance.rate-mid { background: #fff1e6; border-color: #ffd8bf; color: #ea580c; }
.wiki-drop-chance.rate-low { background: #fef9c3; border-color: #fde68a; color: #a16207; }
.wiki-drop-chance.rate-rare { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.wiki-empty-mini {
  padding: 22px 16px; text-align: center;
  background: #f8fafc; border: 1px dashed #e5e7eb; border-radius: 12px;
  color: #94a3b8; font-size: 14px;
}
.wiki-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  background: #1e293b; color: #fff; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.wiki-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .wiki-detail-nav { top: 62px; } }
@media (max-width: 640px) {
  .wiki-detail-hero { flex-wrap: wrap; }
  .wiki-detail-quick { width: 100%; min-width: 0; order: 3; grid-template-columns: repeat(4, 1fr); }
  .wiki-drop-table, .wiki-drop-table tbody, .wiki-drop-table tr, .wiki-drop-table td { display: block; width: 100%; }
  .wiki-drop-table thead { display: none; }
  .wiki-drop-table tr { border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; background: #fff; }
  .wiki-drop-table td { border: none; padding: 5px 0; }
  .wiki-drop-table td[data-label] { display: flex; align-items: center; justify-content: space-between; }
  .wiki-drop-table td[data-label]::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: #94a3b8; }
  .wiki-drop-table tbody tr:hover td { background: transparent; }
}

.wiki-item-desc { margin: 0; white-space: pre-line; line-height: 1.7; color: #475569; font-size: 14px; }

.wiki-spec-list { margin: 0; }
.wiki-spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}
.wiki-spec-list > div:last-child { border-bottom: none; }
.wiki-spec-list dt { color: #94a3b8; font-size: 13px; margin: 0; }
.wiki-spec-list dd { color: #1e293b; font-size: 14px; font-weight: 600; margin: 0; text-align: right; }

@media (max-width: 860px) {
  .wiki-detail-grid { grid-template-columns: 1fr; }
  .wiki-substats { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Item detail: extras over the shared wiki-detail components ---- */
/* Orange accent chip for the item TYPE badge in the hero. */
.wiki-chip-accent { background: #fff1e6; border-color: #ffd8bf; color: #e55f00; font-weight: 700; }
/* Allowed-jobs row inside the description panel. */
.wiki-item-jobs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.wiki-item-jobs-label { font-size: 13px; font-weight: 600; color: #94a3b8; }
.wiki-item-jobs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* Small outlined button (drop-table "ดูมอนสเตอร์" action). */
.wiki-btn-ghost.sm { padding: 4px 11px; font-size: 12px; }
/* "คุณสมบัติพิเศษ" effect box — readable Thai effect lines parsed from desc_th. */
.wiki-panel-effect { border-color: #ffd8bf; background: linear-gradient(180deg, #fff8f3, #fff); }
.wiki-effect-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.wiki-effect-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #1e293b; line-height: 1.5; }
.wiki-effect-list li::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: #ff6a00; }
/* "ไอเทมที่เกี่ยวข้อง" grid of small item cards. */
.wiki-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.wiki-related-card { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #e5e7eb; border-radius: 12px; text-decoration: none; background: #fff; transition: border-color 0.2s ease, background 0.2s ease; }
.wiki-related-card:hover { border-color: #ffd1b3; background: #fff7f1; }
.wiki-related-card img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; }
.wiki-related-name { min-width: 0; font-size: 13px; font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-related-type { display: block; font-size: 11px; color: #94a3b8; font-weight: 500; }

/* ---- Database index landing (/database) ---- */
/* Keep footer anchored on this short page. */
.db-index-page { min-height: calc(100vh - 300px); }
.db-index-page .wiki-hero { margin-bottom: 18px; }

/* Section groups — hub is a single-column directory list; grows as modules are added */
.db-group { margin-bottom: 26px; }
.db-group-title { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #1e293b; }
.db-group-title::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

/* Directory rows — whole row clickable: icon chip | copy | stats + CTA */
.db-cards { display: flex; flex-direction: column; gap: 12px; }
.db-card {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.db-card:hover { border-color: #ffcfa8; box-shadow: 0 8px 20px rgba(255,106,0,0.12); transform: translateY(-2px); }
/* Featured row (server updates) — pinned at the top, warm tint so it reads as important */
.db-card-featured { border-color: #ffd1b3; background: linear-gradient(90deg, #fff7f1, #fff); }
.db-card-featured .db-card-media { background: #ffe6d3; }
.db-card-media {
  flex: 0 0 54px; width: 54px; height: 54px; padding: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #ff6a00; background: #fff3ea; border-radius: 13px;
}
.db-card-media img, .db-card-media svg { width: 100%; height: 100%; object-fit: contain; }
.db-card-top { flex: 1 1 auto; min-width: 0; }
.db-card-kicker { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #ff8a3d; }
.db-card-title { margin: 3px 0 4px; font-size: 17px; font-weight: 700; color: #1e293b; }
.db-card-desc { margin: 0; font-size: 13px; line-height: 1.5; color: #64748b; }
.db-card-foot { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.db-card-stats { display: flex; gap: 14px; font-size: 12.5px; color: #475569; white-space: nowrap; }
.db-card-stat strong { font-size: 16px; color: #1e293b; font-variant-numeric: tabular-nums; margin-right: 3px; }
.db-card-stat-mvp strong { color: #e55f00; }
.db-card-cta { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #e55f00; white-space: nowrap; }
.db-card-cta i { font-style: normal; display: inline-block; transition: transform 0.2s ease; }
.db-card:hover .db-card-cta i { transform: translateX(4px); }

/* Popular shortcuts */
.db-popular { margin-top: 24px; }
.db-popular-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #1e293b; }
.db-popular-links { display: flex; flex-wrap: wrap; gap: 10px; }
.db-popular-links a {
  font-size: 13.5px; font-weight: 600; color: #475569; text-decoration: none;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 8px 16px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.db-popular-links a:hover { border-color: #ffcfa8; color: #e55f00; background: #fff7f1; }

/* Hero global search + nightly-sync note (data really refreshes 05:15 daily — see refresh_wiki.py) */
.db-index-page .wiki-hero { padding: 30px 32px; }
.db-index-page .wiki-hero-copy h1 { margin: 12px 0 8px; }
.db-index-search { margin-top: 22px; max-width: 560px; flex: none; }
.db-index-search input { padding: 13px 16px 13px 44px; border-radius: 12px; font-size: 14.5px; }
/* scoped under .db-index-page so it out-specifies the generic .wiki-hero-copy p reset */
.db-index-page p.db-sync-note {
  margin: 16px 0 0; font-size: 12.5px; font-weight: 600; color: #15803d;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 999px; padding: 6px 14px;
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
}
.db-sync-note svg { width: 13px; height: 13px; flex: 0 0 13px; color: #16a34a; }

/* ==== World map mosaic (/database/maps) ==================================== */
.maps4-hero {
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 20px 26px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 16px;
}
.maps4-hero-copy { min-width: 240px; }
.maps4-hero-copy h1 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin: 8px 0 6px; color: #1e293b; }
.maps4-hero-copy p { margin: 0; color: #64748b; max-width: 560px; font-size: 13.5px; line-height: 1.5; }
.maps4-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.maps4-sel { display: flex; flex-direction: column; gap: 4px; }
.maps4-sel span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8; }
.maps4-sel select {
  min-width: 150px; max-width: 200px; padding: 8px 12px; font-size: 13px; font-family: inherit;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #f8fafc; color: #1e293b; cursor: pointer;
}
.maps4-sel select:focus { outline: none; border-color: #ff6a00; background: #fff; }

.maps4-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.maps4-stage-wrap {
  background: linear-gradient(160deg, #eaf5fc 0%, #d7ebf8 55%, #cbe4f5 100%);
  border: 1px solid #cfe1ee; border-radius: 16px; padding: 18px;
  box-shadow: inset 0 2px 12px rgba(41,105,150,0.10);
}
.maps4-stage { position: relative; width: 100%; }
.maps4-tile {
  position: absolute; display: block; padding: 0; line-height: 0;
  transition: transform 0.12s ease, filter 0.12s ease; z-index: 1;
}
.maps4-tile img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(30,50,70,0.35));
}
.maps4-tile:hover, .maps4-tile:focus-visible {
  transform: scale(1.55); z-index: 20; outline: none;
}
.maps4-tile:hover img, .maps4-tile:focus-visible img {
  filter: drop-shadow(0 0 0 2px #ff6a00) drop-shadow(0 3px 5px rgba(0,0,0,0.4));
}
.maps4-tile.is-town img { filter: drop-shadow(0 0 0 1.5px #ffb877) drop-shadow(0 1px 2px rgba(30,50,70,0.4)); }
.maps4-tile.is-town:hover img { filter: drop-shadow(0 0 0 2px #ff6a00) drop-shadow(0 3px 5px rgba(0,0,0,0.4)); }

/* side info panel */
.maps4-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.maps4-info, .maps4-info-empty {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.maps4-info { display: flex; gap: 14px; align-items: flex-start; }
.maps4-info[hidden], .maps4-info-empty[hidden] { display: none; }
.maps4-info-img {
  flex: 0 0 84px; width: 84px; height: 84px; object-fit: contain;
  background: linear-gradient(160deg, #eaf5fc, #cbe4f5); border: 1px solid #cfe1ee; border-radius: 10px; padding: 4px;
}
.maps4-info-body { min-width: 0; }
.maps4-info-type {
  display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px;
  padding: 2px 10px; margin-bottom: 4px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0;
}
.maps4-info-type.is-town { background: #fff1e6; color: #e55f00; border-color: #ffd6b0; }
.maps4-info-type.is-field { background: #ecfdf3; color: #15803d; border-color: #bbf7d0; }
.maps4-info-type.is-dungeon { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }
.maps4-info-body h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: #1e293b; }
.maps4-info-body code { font-size: 12px; color: #94a3b8; font-family: ui-monospace, monospace; }
.maps4-info-mobs { margin: 8px 0 6px; font-size: 13px; color: #475569; }
.maps4-info-go { font-size: 12.5px; font-weight: 700; color: #e55f00; }
.maps4-info-empty { text-align: center; color: #94a3b8; }
.maps4-info-empty-icon { font-size: 30px; margin-bottom: 6px; }
.maps4-info-empty p { margin: 0; font-size: 13px; line-height: 1.5; }
.maps4-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #64748b; padding: 0 4px; }
.maps4-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.maps4-dot.is-town { background: #ff8a3d; } .maps4-dot.is-field { background: #34d399; } .maps4-dot.is-dungeon { background: #818cf8; }
.maps4-count { font-size: 12.5px; color: #94a3b8; margin: 0; padding: 0 4px; }
.maps4-count strong { color: #475569; }
@media (max-width: 820px) {
  .maps4-layout { grid-template-columns: 1fr; }
  .maps4-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .maps4-info, .maps4-info-empty { flex: 1 1 100%; }
}

/* ---- Dungeon gallery (/database/maps #dungeons) ---- */
.dun4 { margin-top: 30px; }
.dun4-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.dun4-head h2 { font-size: clamp(18px, 2.4vw, 23px); font-weight: 700; margin: 8px 0 6px; color: #1e293b; }
.dun4-head p { margin: 0; color: #64748b; max-width: 620px; font-size: 13px; line-height: 1.55; }
.dun4-count { font-size: 12.5px; color: #94a3b8; margin: 0; white-space: nowrap; }
.dun4-count strong { color: #475569; font-size: 15px; }

.dun4-region { margin-bottom: 22px; }
.dun4-region-title {
  font-size: 15px; font-weight: 700; color: #334155; margin: 0 0 12px;
  padding-left: 11px; border-left: 4px solid #818cf8;
}
.dun4-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dun4-group {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.dun4-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid #f1f5f9; background: #f8fafc;
}
.dun4-group-head strong { font-size: 14px; font-weight: 700; color: #1e293b; }
.dun4-group-head span { font-size: 11.5px; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.dun4-floors { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; padding: 12px 14px; }
.dun4-floor { display: flex; flex-direction: column; gap: 5px; text-decoration: none; }
.dun4-floor-thumb {
  position: relative; display: block; aspect-ratio: 1; border-radius: 9px; overflow: hidden;
  background: linear-gradient(160deg, #eaf5fc, #cbe4f5); border: 1px solid #cfe1ee;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.dun4-floor:hover .dun4-floor-thumb { transform: translateY(-2px); border-color: #818cf8; box-shadow: 0 4px 10px rgba(99,102,241,0.25); }
.dun4-floor-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.dun4-floor-tag {
  position: absolute; top: 4px; left: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; line-height: 1;
  color: #fff; background: rgba(79,70,229,0.9); border-radius: 6px;
}
.dun4-floor-mobs {
  position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700; line-height: 1;
  color: #fff; background: rgba(15,23,42,0.72); border-radius: 6px;
}
.dun4-floor-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; font-weight: 600; color: #94a3b8; text-align: center; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dun4-floor:hover .dun4-floor-name { color: #4f46e5; }
@media (max-width: 640px) {
  .dun4-floors { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
}

/* ---- Map detail (/database/maps/:name) ---- */
.maps4-detail-hero { border-left-color: #38bdf8; }
.maps4-detail-hero.is-town { border-left-color: #ff8a3d; }
.maps4-detail-hero.is-dungeon { border-left-color: #818cf8; }
.maps4-detail-hero.is-field { border-left-color: #34d399; }
.maps4-detail-thumb {
  flex: 0 0 120px; width: 120px; height: 120px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: linear-gradient(160deg, #eaf5fc, #cbe4f5); border: 1px solid #cfe1ee;
}
.maps4-detail-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.maps4-detail-thumb.is-empty::after { content: '🗺️'; font-size: 40px; opacity: 0.5; }
.maps4-detail-thumb.is-empty img { display: none; }
.maps4-detail-type { display: inline-block; font-size: 12.5px; font-weight: 700; color: #0369a1; margin-bottom: 6px; }
.maps4-detail-code { font-size: 13px; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 12px; font-family: ui-monospace, monospace; }
.maps4-detail-region { font-size: 12px; font-weight: 600; color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 12px; }
.maps4-detail-stats { display: flex; gap: 16px; align-items: center; margin-top: 12px; font-size: 13.5px; color: #475569; flex-wrap: wrap; }
.maps4-detail-stats strong { font-size: 18px; color: #1e293b; font-variant-numeric: tabular-nums; }
.maps4-detail-copy { margin-left: auto; padding: 7px 14px; font-size: 12.5px; font-weight: 600; font-family: inherit; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; color: #64748b; cursor: pointer; }
.maps4-detail-copy:hover { border-color: #ff6a00; color: #e55f00; background: #fff7f1; }

.maps4-mob-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.maps4-mob { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.maps4-mob.is-mvp { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fff); }
.maps4-mob-link { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1 1 auto; }
.maps4-mob-sprite { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.maps4-mob-sprite img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: pixelated; }
.maps4-mob-info { min-width: 0; }
.maps4-mob-name { display: block; font-size: 13.5px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maps4-mob-meta { display: block; font-size: 11.5px; color: #94a3b8; }
.maps4-mob-amt { flex: 0 0 auto; }
.maps4-nearby { display: flex; flex-direction: column; gap: 6px; }
.maps4-nearby-chip { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; color: #1e293b; background: #fff; transition: border-color 0.15s ease, background 0.15s ease; }
.maps4-nearby-chip:hover { border-color: #ffcfa8; background: #fff7f1; }
.maps4-nearby-chip img { flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; background: linear-gradient(160deg, #eaf5fc, #cbe4f5); border-radius: 7px; }
.maps4-nearby-chip span { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maps4-back-world { display: inline-block; font-size: 13.5px; font-weight: 600; color: #3b82f6; text-decoration: none; padding: 4px 0; }
.maps4-back-world:hover { text-decoration: underline; }
.maps4-back-top {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #64748b; text-decoration: none;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 7px 15px;
  margin-bottom: 14px; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.maps4-back-top:hover { border-color: #ffcfa8; color: #e55f00; background: #fff7f1; }
.maps4-back-top svg { width: 15px; height: 15px; }
.wiki-spawn-map { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; color: #1e293b; font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.wiki-spawn-map:hover { color: #e55f00; }
.wiki-spawn-map code { color: #94a3b8; font-weight: 400; font-size: 12px; }

/* ==== Skill database (/database/skills + /database/skills/:class) ========== */
.skill4-hero, .skill4-detail-hero {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 20px 26px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 18px;
}
.skill4-detail-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.skill4-detail-portraits {
  display: flex; align-items: flex-end; gap: 6px; min-height: 96px; flex: 0 0 auto;
  padding: 6px 14px; background: linear-gradient(160deg, #fff7f1, #fff); border-radius: 14px; border: 1px solid #ffe6d2;
}
.skill4-detail-portraits img { max-height: 96px; width: auto; image-rendering: pixelated; }
.skill4-detail-hero-copy { min-width: 240px; }
.skill4-hero-copy h1, .skill4-detail-hero-copy h1 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin: 8px 0 6px; color: #1e293b; }
.skill4-hero-copy p, .skill4-detail-hero-copy p { margin: 0; color: #64748b; max-width: 620px; font-size: 13.5px; line-height: 1.5; }
.skill4-quest-count { color: #b45309; font-weight: 700; }
.skill4-detail-flag {
  margin-top: 10px !important; display: inline-block; font-size: 12px; font-weight: 700; color: #b45309;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 5px 13px;
}

/* Back button at the top of the skill pages */
.skill4-back {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; color: #64748b; text-decoration: none;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 7px 14px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.skill4-back:hover { border-color: #ffcfa8; color: #e55f00; background: #fff7f1; }
.skill4-back svg { width: 15px; height: 15px; }

/* Branch groups: each 1st job with the 2-1/2-2 jobs it advances into */
.skill4-branches { display: flex; flex-direction: column; gap: 14px; }
.skill4-branch {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 16px 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.skill4-branch.is-novice { background: #fafbfc; }
.skill4-branch-title { font-size: 15px; font-weight: 700; color: #1e293b; margin: 0 0 12px; }
.skill4-branch-title span { font-weight: 500; color: #94a3b8; font-size: 13px; }
.skill4-branch-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 4px; }
.skill4-branch-arrow { display: flex; align-items: center; color: #cbd5e1; font-size: 18px; font-weight: 700; padding: 0 4px; }

.skill4-class-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 132px; padding: 10px 12px 12px; text-decoration: none;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.skill4-class-card:hover { border-color: #ffcfa8; box-shadow: 0 6px 18px rgba(255,106,0,0.10); transform: translateY(-2px); }
.skill4-class-card.is-locked { background: #fafafa; }
.skill4-class-card.is-locked .skill4-class-portrait { filter: grayscale(0.55) opacity(0.75); }
.skill4-class-card.is-locked .skill4-class-name { color: #64748b; }
.skill4-class-tier { font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; color: #f97316; }
.skill4-class-card.is-locked .skill4-class-tier { color: #a3a3a3; }
.skill4-class-portrait { height: 74px; display: flex; align-items: flex-end; justify-content: center; margin: 2px 0 4px; }
.skill4-class-portrait img { max-height: 74px; width: auto; image-rendering: pixelated; }
.skill4-class-name { font-size: 14px; font-weight: 700; color: #1e293b; text-align: center; }
.skill4-class-count { font-size: 11.5px; color: #94a3b8; font-weight: 500; }
.skill4-class-lock {
  margin-top: 4px; font-size: 10px; font-weight: 700; color: #b45309;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 1px 8px;
}

.skill4-badge {
  font-size: 11px; font-weight: 600; color: #475569; white-space: nowrap;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 7px; padding: 2px 8px;
}
.skill4-badge-type { color: #0369a1; background: #eff6ff; border-color: #bfdbfe; }
.skill4-badge-quest { color: #b45309; background: #fff7ed; border-color: #fdba74; }
.skill4-req-label { font-size: 11px; font-weight: 700; color: #94a3b8; }
.skill4-req-pill {
  font-size: 11.5px; font-weight: 600; color: #7c2d12;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 7px; padding: 2px 8px;
}
.skill4-req-pill.is-on { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.skill4-req-pill em { font-style: normal; color: #94a3b8; }
.skill4-detail-foot { margin-top: 20px; }

/* Planner action bar (hint + reset) */
/* Class switcher: jump between advancement line + branch roots. */
.skill4-classnav {
  display: flex; flex-direction: column; gap: 8px;
  margin: 0 0 16px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
}
.skill4-classnav-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.skill4-classnav-label {
  flex: 0 0 auto; min-width: 76px; font-size: 12px; font-weight: 800; color: #94a3b8;
}
.skill4-classnav-btn {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #475569; text-decoration: none;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 12px;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.skill4-classnav-btn:hover { color: #e55f00; border-color: #ffcfa8; background: #fff7f1; }
.skill4-classnav-btn.is-active {
  color: #fff; background: #e55f00; border-color: #e55f00; cursor: default;
}
.skill4-classnav-root { background: #fff; }

.skill4-planbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 10px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
}
.skill4-planbar-hint { margin: 0; font-size: 12px; line-height: 1.5; color: #64748b; }
.skill4-planbar-hint strong { color: #e55f00; }
.skill4-planner-reset {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: #64748b; cursor: pointer;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 12px;
}
.skill4-planner-reset:hover { color: #e55f00; border-color: #ffcfa8; background: #fff7f1; }

/* Two-column planner: sections on the left, detail panel absolutely pinned to the
   right so its (variable) content NEVER affects the wrap height — the panel height
   tracks the left column exactly, and the grid never shifts when hovering skills. */
.skill4-planwrap { position: relative; padding-right: 320px; }
.skill4-plancols { min-width: 0; }

/* Per-job skill section: header + counter + 7-column client grid */
.skill4-sec { margin: 0 0 22px; }
.skill4-plancols .skill4-sec:last-child { margin-bottom: 0; }  /* so the stretched detail panel aligns to the last cell, not past it */
.skill4-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid #eef2f6; }
.skill4-sechead h2 { font-size: 18px; font-weight: 800; color: #1e293b; margin: 0; }
.skill4-secount {
  flex: 0 0 auto; font-size: 13px; font-weight: 800; color: #e55f00; font-variant-numeric: tabular-nums;
  background: #fff7f1; border: 1px solid #ffd9bf; border-radius: 8px; padding: 3px 10px;
}
.skill4-gridwrap { overflow-x: auto; padding: 3px 3px 5px; }
.skill4-grid {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(76px, 1fr));
  gap: 5px; width: 100%; min-width: calc(var(--cols) * 76px);
}
.skill4-cell {
  display: flex; flex-direction: column; border: 1px solid #dbe2ea; border-radius: 7px;
  background: #fff; overflow: hidden; min-height: 50px;
}
.skill4-cell.is-empty { background: transparent; border-color: #eef2f6; }
.skill4-cell[data-skill] { cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.skill4-cell[data-skill]:hover { border-color: #ffcfa8; box-shadow: 0 3px 10px rgba(255,106,0,0.14); }
.skill4-cell-label {
  font-size: 10px; font-weight: 700; line-height: 1.2; text-align: center; color: #2563a8;
  background: #e8f1fb; border-bottom: 1px solid #d3e4f5; padding: 2px 4px; min-height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.skill4-cell.is-quest .skill4-cell-label { color: #fff; background: #4a90d9; border-bottom-color: #3a7bc0; }
.skill4-cell-body { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 5px; }
.skill4-cell-icon { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; filter: grayscale(.5) opacity(.7); transition: filter .12s ease; }
.skill4-cell-cur, .skill4-cell-max { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 14px; text-align: center; }
.skill4-cell-cur { color: #94a3b8; }
.skill4-cell-max { color: #64748b; }
.skill4-cell.is-allocated { border-color: #ff8a3d; box-shadow: inset 0 0 0 1px #ff8a3d; }
.skill4-cell.is-allocated .skill4-cell-icon { filter: none; }
.skill4-cell.is-allocated .skill4-cell-cur { color: #e55f00; }
.skill4-cell.is-max { border-color: #e55f00; box-shadow: inset 0 0 0 2px #e55f00; }
.skill4-cell.is-locked { opacity: .55; }
.skill4-cell.is-active { outline: 2px solid #e55f00; outline-offset: 1px; }

/* Detail panel populated on hover/tap — sticky right column, fixed height so it
   never jumps between skills; the description fills the leftover space & scrolls. */
.skill4-info {
  position: absolute; top: 0; right: 0; width: 300px; height: 100%;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 14px 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); margin: 0;
}
.skill4-info.is-flash { animation: skill4-shake .3s ease; border-color: #f87171; }
@keyframes skill4-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
.skill4-info-empty { margin: auto 0; font-size: 12.5px; color: #94a3b8; text-align: center; }
.skill4-info-head { display: flex; align-items: center; gap: 12px; }
.skill4-info-icon { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 9px; padding: 3px; }
.skill4-info-title { min-width: 0; flex: 1 1 auto; }
.skill4-info-title h3 { font-size: 15.5px; font-weight: 800; color: #1e293b; margin: 0; line-height: 1.2; }
.skill4-info-const { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: #94a3b8; font-family: ui-monospace, monospace; word-break: break-word; }
.skill4-info-id { font-size: 12.5px; font-weight: 700; color: #94a3b8; font-variant-numeric: tabular-nums; }
.skill4-info-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.skill4-info-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; }
.skill4-info-meta div { display: flex; align-items: baseline; gap: 6px; }
.skill4-info-meta dt { font-size: 11px; font-weight: 700; color: #94a3b8; margin: 0; }
.skill4-info-meta dd { font-size: 12.5px; color: #334155; margin: 0; font-variant-numeric: tabular-nums; }
.skill4-info-req { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.skill4-info-desc {
  margin: 10px 0 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; font-family: inherit; font-size: 12.5px;
  line-height: 1.55; color: #475569; white-space: pre-wrap; word-break: break-word;
  background: #f8fafc; border: 1px solid #eef2f6; border-radius: 10px; padding: 10px 12px;
}
.skill4-desc-key { font-weight: 800; color: #334155; }

@media (max-width: 900px) {
  .skill4-planwrap { padding-right: 0; }
  .skill4-info { position: static; width: 100%; height: auto; margin-top: 20px; }
}
@media (max-width: 640px) {
  .skill4-branch-arrow { display: none; }
  .skill4-branch-row { gap: 8px; }
  .skill4-class-card { width: calc(50% - 4px); }
  .skill4-grid { min-width: calc(var(--cols) * 70px); }
  .skill4-cell-label { font-size: 9.5px; }
}

/* ==== NPC shop directory (/database/shops + map-detail shops panel) ======== */
.shops4-townnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shops4-townnav a {
  font-size: 13px; font-weight: 600; color: #475569; text-decoration: none;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 13px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.shops4-townnav a small { color: #94a3b8; font-weight: 600; }
.shops4-townnav a:hover { border-color: #ffcfa8; color: #e55f00; background: #fff7f1; }
.shops4-town { margin-bottom: 28px; scroll-margin-top: 90px; }
.shops4-town-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 17px; font-weight: 700; color: #1e293b; }
.shops4-town-title a { color: inherit; text-decoration: none; }
.shops4-town-title a:hover { color: #e55f00; }
.shops4-town-title small { font-size: 12.5px; font-weight: 600; color: #94a3b8; }
.shops4-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.shops4-grid-map { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shops4-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.shops4-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid #f1f5f9; background: #f8fafc;
}
.shops4-card-info { min-width: 0; }
.shops4-npc { margin: 0 0 2px; font-size: 14.5px; font-weight: 700; color: #1e293b; }
.shops4-loc { display: block; font-size: 12px; color: #94a3b8; }
.shops4-loc code { color: #64748b; }
.shops4-items { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; max-height: 272px; }
.shops4-items li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 14px; }
.shops4-items li:hover { background: #fff7f1; }
.shops4-item-name {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 13px; font-weight: 500; color: #334155; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shops4-item-name:hover { color: #e55f00; }
.shops4-item-name img { flex: 0 0 22px; width: 22px; height: 22px; object-fit: contain; }
.shops4-item-price { flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: #b45309; font-variant-numeric: tabular-nums; }

/* ==== Elemental damage table (/database/elements) ========================== */
.elem4-howto { margin-bottom: 16px; }
.elem4-howto p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #475569; }
.elem4-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.elem4-tab {
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: #475569; cursor: pointer;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 8px 16px;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.elem4-tab:hover { border-color: #ffcfa8; color: #e55f00; }
.elem4-tab.active { background: #ff6a00; border-color: #ff6a00; color: #fff; }
.elem4-table-wrap { margin-bottom: 14px; }
.elem4-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.elem4-table th, .elem4-table td { border: 1px solid #f1f5f9; padding: 6px 8px; text-align: center; }
.elem4-corner { font-size: 11px; color: #94a3b8; font-weight: 600; white-space: nowrap; }
.elem4-atk { background: #f8fafc; }
.elem4-cell { font-variant-numeric: tabular-nums; font-weight: 600; }
.elem4-cell.is-strong { background: #dcfce7; color: #15803d; }
.elem4-cell.is-good { background: #f0fdf4; color: #16a34a; }
.elem4-cell.is-neutral { color: #94a3b8; font-weight: 500; }
.elem4-cell.is-weak { background: #fef9c3; color: #a16207; }
.elem4-cell.is-immune { background: #fee2e2; color: #b91c1c; }
.elem4-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.elem4-key { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 12px; }
.elem4-key.is-strong { background: #dcfce7; color: #15803d; }
.elem4-key.is-good { background: #f0fdf4; color: #16a34a; }
.elem4-key.is-neutral { background: #f1f5f9; color: #64748b; }
.elem4-key.is-weak { background: #fef9c3; color: #a16207; }
.elem4-key.is-immune { background: #fee2e2; color: #b91c1c; }

/* ---- Wiki not-found page ---- */
.wiki-notfound {
  text-align: center; max-width: 520px; margin: 40px auto;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 40px 28px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.wiki-notfound-icon { font-size: 44px; margin-bottom: 10px; }
.wiki-notfound h1 { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #1e293b; }
.wiki-notfound p { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: #64748b; }
.wiki-notfound-search { display: flex; gap: 8px; margin-bottom: 18px; }
.wiki-notfound-search input {
  flex: 1 1 auto; min-width: 0; padding: 11px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid #e5e7eb; border-radius: 10px; background: #f8fafc; color: #1e293b;
}
.wiki-notfound-search input:focus { outline: none; border-color: #ff6a00; background: #fff; }
.wiki-notfound-search button {
  flex: 0 0 auto; padding: 11px 20px; font-size: 14px; font-weight: 600; font-family: inherit;
  border: none; border-radius: 10px; background: #ff6a00; color: #fff; cursor: pointer;
  transition: background 0.2s ease;
}
.wiki-notfound-search button:hover { background: #e55f00; }
.wiki-notfound-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  /* Rows wrap on phones: icon + copy on top, stats/CTA become a bottom bar. */
  .db-card { flex-wrap: wrap; align-items: flex-start; gap: 14px; }
  .db-card-top { flex: 1 1 calc(100% - 70px); }
  .db-card-foot { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
}
/* Drop-table action column: right-aligned, shrinks to content. */
.wiki-drop-table th.wiki-col-act, .wiki-drop-table td.wiki-col-act { text-align: right; white-space: nowrap; width: 1%; }
@media (max-width: 640px) {
  /* Quick-stats read as two columns on phones (four is too cramped for item values). */
  .wiki-item-hero .wiki-detail-quick { grid-template-columns: repeat(2, 1fr); }
  /* In stacked-card mode the action button sits full width under the row. */
  .wiki-drop-table td.wiki-col-act { text-align: left; padding-top: 8px; }
  .wiki-drop-table td.wiki-col-act .wiki-btn-ghost.sm { display: block; text-align: center; }
}

/* Tablet: drop the two EXP columns when horizontal room is tight (table stays a table). */
@media (min-width: 721px) and (max-width: 1024px) {
  .wiki-col-bexp, .wiki-col-jexp { display: none; }
}
/* Monster table -> stacked cards on narrow screens (single markup, no duplicate). */
@media (max-width: 720px) {
  .wiki-table-wrap { border: none; background: transparent; box-shadow: none; overflow: visible; }
  .wiki-mob-table, .wiki-mob-table tbody, .wiki-mob-table tr, .wiki-mob-table td { display: block; width: 100%; }
  .wiki-mob-table thead { display: none; }
  .wiki-mob-row {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 6px 4px 8px;
    margin-bottom: 10px;
  }
  .wiki-mob-row.is-mvp { border-color: #fcd34d; }
  .wiki-mob-row td { border-bottom: 1px solid #f1f5f9; padding: 8px 14px; }
  .wiki-mob-row:hover td, .wiki-mob-row.is-mvp td, .wiki-mob-row.is-mvp:hover td { background: transparent; }
  .wiki-mob-table tbody tr td:last-child { border-bottom: none; }
  .wiki-mob-table td.wiki-col-name {
    font-size: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2px;
  }
  /* data-label rows: label left, value right */
  .wiki-mob-row td:not(.wiki-col-name) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
  }
  .wiki-mob-row td:not(.wiki-col-name)::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-align: left;
  }
  .wiki-mob-table tbody td.wiki-col-num,
  .wiki-mob-table tbody td.wiki-col-el,
  .wiki-mob-table tbody td.wiki-col-race,
  .wiki-mob-table tbody td.wiki-col-size { text-align: right; }
}
@media (max-width: 560px) {
  .wiki-hero { padding: 18px 20px; }
  .wiki-detail-hero { flex-direction: column; text-align: center; }
  .wiki-detail-tags { justify-content: center; }
  .wiki-filters { flex-direction: column; align-items: stretch; }
  .wiki-adv-panel { flex-direction: column; align-items: stretch; gap: 12px; }
  .wiki-adv-field { width: 100%; }
  .wiki-adv-field select { width: 100%; min-width: 0; }
  .wiki-result-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wiki-result-tools { flex-wrap: wrap; gap: 10px 14px; }
}

/* ============================================================================
   Fire AI guide (/database/fire-ai) — ใช้ .wiki-page / .wiki-hero / .wiki-panel
   ร่วมกับหน้า database อื่น, ส่วนที่เป็นของหน้านี้เองใช้ prefix .fai-
   ========================================================================== */
/* เงื่อนไขเข้าถึง — ต้องมีอุปกรณ์จาก AI Package ก่อนถึงใช้ Fire AI ได้ */
.fai-access {
  background: linear-gradient(180deg, #fff8f3, #fff);
  border: 1px solid #ffd8bf;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.fai-access-head h2 { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: #1e293b; }
.fai-access-head p { margin: 6px 0 0; font-size: 13px; color: #64748b; line-height: 1.6; }
.fai-access-body {
  display: grid;
  grid-template-columns: 1fr minmax(0, 300px);
  gap: 18px;
  margin-top: 16px;
}
.fai-access-body h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #1e293b; }
.fai-access-body h3 small { color: #94a3b8; font-weight: 500; margin-left: 6px; }
.fai-device {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.fai-device > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
}
.fai-device strong { font-size: 13.5px; color: #e55f00; }
.fai-device span { font-size: 12.5px; color: #64748b; }
/* ไอคอนไอเทมจาก client (public/img/items/<id>.png) ขนาดจริง 24px — ห้าม smooth */
.fai-item-icon {
  flex: none;
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
}
.fai-premium-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.fai-premium-items .fai-device { margin-bottom: 0; }

.fai-video { margin-bottom: 16px; }
.fai-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #e2e8f0;
}
.fai-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fai-lead { margin-bottom: 16px; }
.fai-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: fai-step;
}
.fai-steps li {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px 14px 46px;
}
.fai-steps li::before {
  counter-increment: fai-step;
  content: counter(fai-step);
  position: absolute;
  left: 14px; top: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ff6a00;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fai-steps li b { display: block; font-size: 14px; color: #1e293b; margin-bottom: 4px; }
.fai-steps li span { display: block; font-size: 12.5px; color: #64748b; line-height: 1.55; }
/* ชื่อไอเทมในคำอธิบายขั้นตอน — inline ไม่ตกบรรทัดเหมือนหัวข้อขั้น */
.fai-steps li span b { display: inline; font-size: inherit; color: #e55f00; margin: 0; }
.fai-lead-note { margin: 12px 0 0; font-size: 12.5px; color: #64748b; }
.fai-lead code,
.fai-steps code,
.fai-tiers-note code {
  background: #fff1e6;
  border: 1px solid #ffd8bf;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: #e55f00;
  font-weight: 600;
}

/* หัก EXP/drop — เตือนก่อนใคร ๆ จะเปิดบอทแล้วงงว่าทำไม EXP หาย */
.fai-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(180deg, #fffbeb, #fff);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.fai-alert-icon {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fai-alert strong { display: block; font-size: 14.5px; color: #92400e; }
.fai-alert p { margin: 4px 0 0; font-size: 13px; color: #78350f; line-height: 1.55; }

/* สองโหมดการทำงาน */
.fai-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.fai-mode {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.fai-mode-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff6a00;
}
.fai-mode h2 { margin: 6px 0 0; font-size: 17px; font-weight: 700; color: #1e293b; }
.fai-mode > p { margin: 8px 0 14px; font-size: 13px; color: #64748b; line-height: 1.6; }
.fai-mode-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fai-mode-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}
.fai-mode-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff6a00;
}

/* ช่องตั้งค่าต่อตัวละคร */
.fai-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.fai-slot {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}
.fai-slot-count {
  flex: none;
  min-width: 34px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #ff6a00;
  font-variant-numeric: tabular-nums;
}
.fai-slot strong { display: block; font-size: 13.5px; color: #1e293b; }
.fai-slot p { margin: 3px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.5; }

.fai-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.fai-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fai-check li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}
.fai-check li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: #16a34a;
  font-weight: 700;
}
.fai-check li.is-warn::before { content: '!'; color: #dc2626; }
.fai-check li b { color: #1e293b; }
.fai-para { margin: 0; font-size: 13px; color: #475569; line-height: 1.7; }

/* Premium — ฟาร์มออฟไลน์ */
.fai-premium {
  background: linear-gradient(180deg, #fff8f3, #fff);
  border: 1px solid #ffd8bf;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.fai-premium-head h2 { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: #1e293b; }
.fai-premium-head p { margin: 6px 0 0; font-size: 13px; color: #64748b; line-height: 1.6; }
.fai-premium-body {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 18px;
  margin-top: 16px;
}
.fai-premium-body h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #1e293b; }
.fai-tiers-note { margin: 8px 0 0; font-size: 12px; color: #64748b; }
.fai-tiers-note + .fai-table { margin-top: 10px; }
.fai-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
}
.fai-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.fai-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-variant-numeric: tabular-nums;
}
.fai-table tbody tr:last-child td { border-bottom: 0; }
.fai-table td:last-child { color: #e55f00; font-weight: 600; }
.fai-premium-foot {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #ffd8bf;
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
}

/* เงื่อนไขที่เริ่มบอทไม่ได้ */
.fai-blockers {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}
.fai-blockers li {
  position: relative;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 9px 12px 9px 30px;
  font-size: 12.5px;
  color: #7f1d1d;
  line-height: 1.5;
}
.fai-blockers li::before {
  content: '×';
  position: absolute;
  left: 12px; top: 8px;
  color: #dc2626;
  font-weight: 700;
}

@media (max-width: 900px) {
  .fai-steps { grid-template-columns: 1fr; }
  .fai-modes,
  .fai-grid2 { grid-template-columns: 1fr; }
  .fai-access-body,
  .fai-premium-body { grid-template-columns: 1fr; }
}

/* ============================================================================
   Job-change guide (/database/job-change) — Novice → 1-1 → 2-1
   ========================================================================== */
.jobchange-page { max-width: 1080px; margin: 0 auto; padding: 26px 16px 64px; }
.jobchange-hero { margin-bottom: 18px; }

/* Two-step how-it-works strip */
.jobchange-howto { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.jobchange-howto-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(180deg, #fff, #fffaf5);
  border: 1px solid #ffe0c7; border-radius: 14px; padding: 16px 18px;
}
.jobchange-howto-num {
  flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center;
  background: #ff6a00; color: #fff; font-weight: 800; font-size: 16px; border-radius: 10px;
}
.jobchange-howto-item strong { display: block; font-size: 15px; color: #1e293b; margin-bottom: 3px; }
.jobchange-howto-item p { margin: 0; font-size: 13px; line-height: 1.55; color: #64748b; }
.jobchange-howto-item b { color: #e55f00; }

/* Class-line filter bar */
.jobchange-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.jobchange-filter-btn {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 15px; border-radius: 999px; border: 1px solid #e2e8f0;
  background: #fff; color: #475569; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.jobchange-filter-btn:hover { border-color: #ffcfa8; color: #e55f00; }
.jobchange-filter-btn.is-active { background: #ff6a00; border-color: #ff6a00; color: #fff; }

/* Line panels */
.jobchange-lines { display: flex; flex-direction: column; gap: 18px; }
.jobchange-line {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 18px 20px 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.jobchange-line-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.jobchange-line-icon {
  flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center;
  font-size: 22px; background: #fff7f1; border: 1px solid #ffe0c7; border-radius: 12px;
}
.jobchange-line-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: #1e293b; }
.jobchange-line-path {
  margin-left: auto; font-size: 12.5px; font-weight: 600; color: #94a3b8;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 999px; padding: 5px 12px;
}

/* Track: Novice → 1-1 → 2-1, horizontal on desktop */
.jobchange-track { display: flex; align-items: stretch; gap: 8px; }
.jobchange-arrow { flex: 0 0 auto; display: grid; place-items: center; font-size: 22px; color: #ffb27a; font-weight: 700; }
.jobchange-stage {
  flex: 1 1 0; min-width: 0; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 14px 15px;
}
.jobchange-stage-start { flex: 0 0 200px; background: #f1f5f9; }
.jobchange-stage-final { border-color: #ffd9bf; background: linear-gradient(180deg, #fffaf5, #fff); }
.jobchange-stage-tier {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #ff8a3d; margin-bottom: 4px;
}
.jobchange-stage-name { display: block; font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.jobchange-stage-hint { margin: 0; font-size: 12.5px; line-height: 1.55; color: #94a3b8; }

/* Fact list (label / value) */
.jobchange-facts { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.jobchange-facts > div { display: flex; gap: 10px; font-size: 13px; line-height: 1.4; }
.jobchange-facts dt { flex: 0 0 78px; color: #94a3b8; font-weight: 600; }
.jobchange-facts dd { margin: 0; flex: 1 1 auto; min-width: 0; color: #334155; font-weight: 500; }
.jobchange-facts dd a { color: #e55f00; font-weight: 600; text-decoration: none; }
.jobchange-facts dd a:hover { text-decoration: underline; }
.jobchange-facts dd code {
  font-family: ui-monospace, monospace; font-size: 12px; color: #475569;
  background: #eef2f7; border-radius: 6px; padding: 2px 7px;
}
/* /navi button next to the NPC coordinate — copies the outdoor door route */
.jobchange-navi {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px;
  border: 1px solid #ffd9bf; border-radius: 6px; background: #fff7f1; color: #e55f00;
  font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; vertical-align: middle;
  white-space: nowrap; transition: background .15s, border-color .15s;
}
.jobchange-navi:hover { background: #ffe9d8; border-color: #ffb98a; }
.jobchange-navi.is-copied { background: #dcfce7; border-color: #86efac; color: #16a34a; }
.jobchange-navi-note { color: #64748b; font-size: 12px; }

/* Step list (2-1 quest walkthrough) */
.jobchange-steps {
  margin: 12px 0 0; padding: 12px 12px 12px 30px; list-style: decimal;
  background: #fff; border: 1px dashed #ffd9bf; border-radius: 10px;
}
.jobchange-steps li { font-size: 12.5px; line-height: 1.5; color: #475569; margin-bottom: 5px; }
.jobchange-steps li:last-child { margin-bottom: 0; }

/* Maze route image (Assassin guild trial) — full width under the track */
.jobchange-maze { margin: 14px 0 0; padding: 0; text-align: center; }
.jobchange-maze-img { display: block; margin: 0 auto; max-width: 320px; width: 100%; height: auto; border: 1px solid #e5e7eb; border-radius: 12px; background: #0d0d0d; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); }
.jobchange-maze-cap { margin: 8px auto 0; max-width: 460px; font-size: 12px; line-height: 1.5; color: #64748b; }

/* Requirement detail (item sets) — full width under the track */
.jobchange-req { margin-top: 14px; padding: 14px 16px; background: #f8fafc; border: 1px solid #e8edf3; border-radius: 12px; }
.jobchange-req-title { display: block; font-size: 13.5px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.jobchange-req-hint { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: #64748b; }
.jobchange-req-hint strong { color: #e55f00; }
.jobchange-set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.jobchange-set { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; }
.jobchange-set-no {
  display: inline-block; font-size: 11px; font-weight: 700; color: #ff8a3d;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 7px;
}
.jobchange-set-items { display: flex; flex-wrap: wrap; gap: 6px; }
.jobchange-set-items-flat { margin-top: 2px; }
.jobchange-item {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #334155; font-variant-numeric: tabular-nums;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 7px; padding: 3px 9px 3px 5px;
}
.jobchange-item-icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; image-rendering: pixelated; }
.jobchange-item-id { color: #b4bcc8; font-weight: 400; font-size: 11px; }
a.jobchange-item.is-link { text-decoration: none; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
a.jobchange-item.is-link:hover { border-color: #ffcfa8; background: #fff7f1; color: #e55f00; }
a.jobchange-item.is-link:hover .jobchange-item-id { color: #ff8a3d; }
.jobchange-req-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #94a3b8; }

@media (max-width: 860px) {
  .jobchange-howto { grid-template-columns: 1fr; }
  /* Stack the track vertically; arrows point down. */
  .jobchange-track { flex-direction: column; }
  .jobchange-stage-start { flex-basis: auto; }
  .jobchange-arrow { transform: rotate(90deg); height: 22px; }
}
@media (max-width: 560px) {
  .jobchange-line-path { margin-left: 0; }
  .jobchange-facts > div { flex-direction: column; gap: 1px; }
  .jobchange-facts dt { flex-basis: auto; }
}

/* ── MVP hunting guide (/database/mvp) ─────────────────────────────────────── */
.mvp4-page { max-width: 1080px; margin: 0 auto; padding: 26px 16px 64px; }
.mvp4-hero { margin-bottom: 18px; }

/* Mechanics strip */
.mvp4-howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.mvp4-howto-item {
  display: flex; gap: 13px; align-items: flex-start;
  background: linear-gradient(180deg, #fff, #fffaf5);
  border: 1px solid #ffe0c7; border-radius: 14px; padding: 15px 16px;
}
.mvp4-howto-icon { flex: 0 0 auto; font-size: 24px; line-height: 1; }
.mvp4-howto-item strong { display: block; font-size: 14px; color: #1e293b; margin-bottom: 3px; }
.mvp4-howto-item p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #64748b; }
.mvp4-howto-item b { color: #e55f00; }

/* Toolbar: sort + element filter */
.mvp4-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-bottom: 12px; }
.mvp4-tools-label { font-size: 12px; font-weight: 700; color: #94a3b8; margin-right: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.mvp4-sort, .mvp4-ele-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mvp4-sort-btn {
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 6px 13px; border-radius: 999px; border: 1px solid #e2e8f0;
  background: #fff; color: #475569; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.mvp4-sort-btn:hover { border-color: #ffcfa8; color: #e55f00; }
.mvp4-sort-btn.is-active { background: #ff6a00; border-color: #ff6a00; color: #fff; }
.mvp4-ele-chip {
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 5px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff;
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.mvp4-ele-chip.is-off { opacity: 0.4; filter: grayscale(0.7); text-decoration: line-through; }
.mvp4-summary { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.mvp4-summary strong { color: #e55f00; }

/* Card grid */
.mvp4-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); gap: 16px; }
.mvp4-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 16px 18px 18px; box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
}
.mvp4-card-head { display: flex; align-items: flex-start; gap: 14px; }
.mvp4-thumb {
  flex: 0 0 64px; width: 64px; height: 64px; position: relative;
  display: grid; place-items: center; border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #fff3e6, #ffe4cc);
  border: 1px solid #ffd9bf; overflow: hidden; text-decoration: none;
}
.mvp4-thumb span { font-size: 15px; font-weight: 800; color: #ff8a3d; letter-spacing: 0.02em; }
.mvp4-thumb img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.mvp4-head-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mvp4-name { font-size: 18px; font-weight: 700; color: #1e293b; text-decoration: none; }
.mvp4-name:hover { color: #e55f00; }
.mvp4-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.mvp4-stats { flex: 0 0 auto; display: flex; gap: 8px; text-align: center; }
.mvp4-stat {
  min-width: 62px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px;
  padding: 7px 8px; display: flex; flex-direction: column; gap: 2px;
}
.mvp4-stat small { font-size: 10.5px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.mvp4-stat strong { font-size: 14px; font-weight: 700; color: #334155; font-variant-numeric: tabular-nums; }

/* Body sections */
.mvp4-body { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.mvp4-sec { display: flex; flex-direction: column; gap: 7px; }
.mvp4-sec-label { font-size: 12.5px; font-weight: 700; color: #475569; }
.mvp4-sec-rewards { padding: 11px 12px; background: #fffaf3; border: 1px solid #ffe0c7; border-radius: 12px; }
.mvp4-note { margin: 0; font-size: 12px; line-height: 1.5; color: #94a3b8; }
.mvp4-maps { display: flex; flex-wrap: wrap; gap: 7px; }
.mvp4-map {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: #334155; text-decoration: none; background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 5px 10px; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.mvp4-map:hover { border-color: #ffcfa8; background: #fff7f1; color: #e55f00; }
.mvp4-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mvp4-item {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500;
  color: #334155; text-decoration: none; background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 4px 10px; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.mvp4-item:hover { border-color: #ffcfa8; background: #fff7f1; color: #e55f00; }
.mvp4-item.is-reward { background: #fff; border-color: #ffd9bf; color: #b45309; font-weight: 600; }
.mvp4-item.is-reward:hover { border-color: #ff8a3d; background: #fff7f1; color: #e55f00; }
.mvp4-rate { font-size: 11px; font-weight: 600; color: #94a3b8; font-variant-numeric: tabular-nums; }
.mvp4-item.is-reward .mvp4-rate { color: #d1922f; }

.mvp4-empty {
  text-align: center; padding: 40px 20px; color: #64748b;
  background: #f8fafc; border: 1px dashed #dbe3ec; border-radius: 14px; margin-top: 4px;
}
.mvp4-empty strong { display: block; font-size: 15px; color: #334155; margin-bottom: 4px; }
.mvp4-empty p { margin: 0; font-size: 13px; }

@media (max-width: 900px) {
  .mvp4-howto { grid-template-columns: 1fr; }
  .mvp4-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mvp4-card-head { flex-wrap: wrap; }
  .mvp4-stats { width: 100%; }
  .mvp4-stat { flex: 1 1 0; }
}

/* ============================================================
   Collection database (/database/collection) ...... .coll4-*
   ============================================================ */
.coll4-progress {
  margin: 18px 0 6px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.coll4-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.coll4-progress-label { font-weight: 700; color: var(--ink); font-size: 14px; }
.coll4-progress-count { color: var(--ink-2); font-size: 13px; }
.coll4-progress-count strong { color: var(--orange); font-size: 18px; }
.coll4-progress-sep { margin: 0 7px; color: var(--line-2); }
.coll4-progress-bar {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f4e8df;
  overflow: hidden;
}
.coll4-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--orange-3));
  transition: width .4s ease;
}
.coll4-progress-hint { margin: 8px 0 0; color: var(--ink-3); font-size: 12.5px; }
.coll4-login-cta {
  margin: 18px 0 6px;
  padding: 14px 18px;
  background: #fff7f0;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.coll4-login-cta p { margin: 0; }
.coll4-login-cta a { color: var(--orange); font-weight: 700; }
.coll4-group { margin-top: 26px; }
.coll4-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.coll4-group-title { margin: 0; font-size: 18px; color: var(--ink); }
.coll4-group-meta { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.coll4-group-meta strong { color: var(--orange); }
.coll4-group-desc { margin: 4px 0 12px; color: var(--ink-3); font-size: 12.5px; }
.coll4-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.coll4-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.coll4-card.is-owned { border-color: #bfe3c0; background: #f6fdf6; }
/* Must stay after .is-owned: a maxed card carries both classes and the orange
   "buff is doubled" treatment has to win over the plain green deposited one. */
.coll4-card.is-maxed { border-color: var(--line-2); background: #fff8f1; }
.coll4-card.is-missing { opacity: .62; }
.coll4-card-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff3e8;
  border-radius: 8px;
}
.coll4-card-icon img { image-rendering: pixelated; }
.coll4-card-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.coll4-card-name { font-weight: 700; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coll4-card-buff { font-size: 12px; color: var(--ink-2); }
.coll4-card-date { color: var(--ink-3); font-size: 10.5px; }
.coll4-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.coll4-filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.coll4-filter-btn span { font-weight: 400; color: var(--ink-3); }
.coll4-filter-btn.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.coll4-filter-btn.is-active span { color: #ffe3cc; }
.coll4-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  margin-right: 5px;
  vertical-align: 1px;
  white-space: nowrap;
}
.coll4-cat-stat { background: #e8f1fd; color: #2456a6; }
.coll4-cat-hp { background: #e2f6e3; color: #1d7a24; }
.coll4-cat-defense { background: #fdf3df; color: #96660f; }
.coll4-cat-offense { background: #fde9e7; color: #b3372a; }
.coll4-card-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.coll4-card-head .coll4-card-name { flex: 0 1 auto; }
.coll4-card-id { flex: 0 0 auto; color: var(--ink-3); font-weight: 400; font-size: 11.5px; }
.coll4-new {
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: 1px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
}
.coll4-tag {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.coll4-tag-owned { background: #e2f6e3; color: #1d7a24; }
.coll4-tag-maxed { background: var(--orange); color: #fff; }
.coll4-tag-missing { background: #f4ece5; color: var(--ink-3); }
.coll4-buff-x2 {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #fff0e2;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.coll4-howto {
  margin-top: 30px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.coll4-howto h3 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.coll4-howto ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
@media (max-width: 560px) {
  .coll4-grid { grid-template-columns: 1fr; }
  .coll4-card { flex-wrap: wrap; }
  .coll4-tag { margin-left: 44px; }
}

/* ============================================================
   Collection summary (/database/collection-summary) .. .collsum-*
   ============================================================ */
.collsum-cta {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.collsum-cta p { margin: 0; }
.collsum-cta a { color: var(--orange); font-weight: 700; }
.collsum-mine { margin-top: 18px; }
.collsum-mine-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.collsum-mine-head h2 { margin: 0; font-size: 18px; color: var(--ink); }
.collsum-mine-meta { color: var(--ink-3); font-size: 13px; }
.collsum-mine-meta strong { color: var(--orange); }
.collsum-sep { margin: 0 7px; color: var(--line-2); }
.collsum-full { margin-top: 30px; }
.collsum-full-head h2 { margin: 0; font-size: 18px; color: var(--ink); }
.collsum-full-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 12.5px; }
.collsum-cols {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}
.collsum-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.collsum-col.is-grand { border-color: var(--line-2); background: var(--bg-soft); }
.collsum-col-title {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.collsum-col-sub { color: var(--ink-3); font-weight: 400; font-size: 11.5px; white-space: nowrap; }
.collsum-tier {
  margin: 12px 0 6px;
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.collsum-tier:first-of-type { margin-top: 0; }
.collsum-x2 {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.collsum-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.collsum-list li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
}
.collsum-col.is-grand .collsum-list li { border-color: var(--line-2); font-weight: 600; }
.collsum-empty { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.collsum-more { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.collsum-more-link {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  transition: color .15s, border-color .15s, background .15s;
}
.collsum-more-link:hover { color: var(--orange); border-color: #ffc79a; background: #fff7f0; }
@media (max-width: 860px) {
  .collsum-cols { grid-template-columns: 1fr; }
}

/* ============================================================
   Gacha box contents (/database/gacha) ............ .gacha4-*
   ============================================================ */
.gacha4-box {
  margin-top: 22px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.gacha4-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gacha4-box-icon { flex: 0 0 auto; image-rendering: pixelated; }
.gacha4-box-copy { min-width: 0; }
.gacha4-box-name { margin: 0; font-size: 19px; color: var(--ink); }
.gacha4-box-desc { margin: 3px 0 0; color: var(--ink-2); font-size: 13.5px; }
.gacha4-box-desc strong { color: var(--orange); }
.gacha4-box-obtain { margin: 3px 0 0; color: var(--ink-3); font-size: 12.5px; }
.gacha4-tier { margin-top: 16px; }
.gacha4-tier-head {
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
}
.gacha4-tier-label {
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.gacha4-tier-count { color: var(--ink-3); font-size: 12px; }
.gacha4-tier.is-t0 .gacha4-tier-label { background: #fff3d6; color: #a16207; border: 1px solid #f0d48a; }
.gacha4-tier.is-t1 .gacha4-tier-label { background: #f4edff; color: #7c3aed; border: 1px solid #dcc8f8; }
.gacha4-tier.is-t2 .gacha4-tier-label { background: #e9f2ff; color: #2563eb; border: 1px solid #bfd9f9; }
.gacha4-tier.is-t3 .gacha4-tier-label { background: #ebf9ee; color: #16a34a; border: 1px solid #c2e7cc; }
.gacha4-tier.is-t4 .gacha4-tier-label { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.gacha4-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 6px;
}
.gacha4-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  min-width: 0;
}
.gacha4-tier.is-t0 .gacha4-item { border-color: #f0d48a; background: #fffdf5; }
.gacha4-item-icon { flex: 0 0 auto; }
.gacha4-item-name {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.gacha4-item-name:hover { color: var(--orange); }
.gacha4-announce { margin-left: auto; font-size: 11px; cursor: help; }
.gacha4-note { margin-top: 18px; color: var(--ink-3); font-size: 12px; }
@media (max-width: 560px) {
  .gacha4-items { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Patch notes (/database/updates) ................. .upd4-*
   ============================================================ */
.upd4-tools {
  display: flex;
  justify-content: flex-end;
}
.upd4-toggle-all {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  transition: color .15s, border-color .15s, background .15s;
}
.upd4-toggle-all:hover {
  color: var(--orange);
  border-color: #ffc79a;
  background: #fff7f0;
}
.upd4-timeline {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.upd4-round {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.upd4-round-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  cursor: pointer;
  list-style: none;
}
.upd4-round-head::-webkit-details-marker { display: none; }
.upd4-round-date {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.upd4-round-title { margin: 0; font-size: 15px; color: var(--ink); flex: 1 1 auto; }
.upd4-round-tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff3e8;
  color: #b45309;
  white-space: nowrap;
}
.upd4-new {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
}
.upd4-round-count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.upd4-chev {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-size: 11px;
  transition: transform .18s ease;
}
.upd4-round[open] .upd4-chev { transform: rotate(180deg); }
.upd4-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.upd4-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.upd4-cat {
  flex: 0 0 auto;
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 52px;
  text-align: center;
}
.upd4-cat-ai { background: #e8f1fd; color: #2456a6; }
.upd4-cat-system { background: #f0e9fb; color: #6d3fb3; }
.upd4-cat-item { background: #fdf3df; color: #96660f; }
.upd4-cat-npc { background: #e2f6e3; color: #1d7a24; }
.upd4-cat-event { background: #fde9e7; color: #b3372a; }
.upd4-cat-fix { background: #f4ece5; color: #7a6a5b; }
.upd4-cat-server { background: #e6f4f6; color: #12707e; }
.upd4-text { min-width: 0; }
.upd4-foot { margin: 26px 0 6px; color: var(--ink-3); font-size: 12.5px; text-align: center; }
.upd4-foot a { color: var(--orange); font-weight: 700; }
@media (max-width: 560px) {
  .upd4-round { padding: 14px 14px; }
  .upd4-item { flex-direction: column; gap: 4px; }
  .upd4-cat { align-self: flex-start; }
}

/* ── Refine guide (/database/refine) ─────────────────────────────────────── */
.rfp-intro { margin-bottom: 18px; }
.rfp-intro p { margin: 0; color: #475569; line-height: 1.7; }
.rfp-intro strong { color: #1e293b; }
.rfp-intro em { font-style: normal; color: var(--orange-dark); font-weight: 600; }

.rfp-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
  align-items: start;
}
.rfp-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.rfp-block-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.rfp-tiers { display: grid; gap: 10px; }
.rfp-tier {
  border: 1px solid #ffe0cc;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff8f3, #fff);
}
.rfp-tier.is-none { border-color: #e2e8f0; background: #f8fafc; }
.rfp-tier-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rfp-tier-range { font-size: 15px; font-weight: 800; color: #1e293b; }
.rfp-tier-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange-dark);
  background: #fff1e6;
  border-radius: 999px;
  padding: 3px 10px;
}
.rfp-tier.is-none .rfp-tier-label { color: #64748b; background: #eef2f7; }
.rfp-tier-points { display: flex; gap: 8px; }
.rfp-point {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid transparent;
}
.rfp-point small { font-size: 11px; font-weight: 600; opacity: .85; }
.rfp-point strong { font-size: 20px; font-weight: 800; line-height: 1; }
.rfp-point em { font-style: normal; font-size: 11px; opacity: .8; }
.rfp-point-ok { background: #eafaf2; border-color: #bfe9d3; color: #17794a; }
.rfp-point-fail { background: #fdeeee; border-color: #f6cccc; color: #b32d2d; }
.rfp-tier-note { margin: 8px 0 0; font-size: 12px; color: #64748b; }
.rfp-tier-none { margin: 0; font-size: 13px; color: #94a3b8; }

.rfp-rules { display: grid; gap: 8px; margin-top: 14px; }
.rfp-rule {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}
.rfp-rule-cap { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fff); }
.rfp-rule-icon { font-size: 15px; line-height: 1.4; }
.rfp-rule strong { display: block; font-size: 13px; color: #1e293b; }
.rfp-rule p { margin: 2px 0 0; font-size: 12px; color: #64748b; line-height: 1.6; }

.rfp-shop-table { width: 100%; border-collapse: collapse; }
.rfp-shop-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.rfp-shop-table th:last-child, .rfp-shop-cost { text-align: right; }
.rfp-shop-table td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.rfp-shop-table tr:last-child td { border-bottom: 0; }
.rfp-shop-table strong { display: block; font-size: 13px; color: #1e293b; }
.rfp-shop-item { display: flex; align-items: flex-start; gap: 10px; }
.rfp-shop-icon {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.rfp-shop-desc { display: block; margin-top: 2px; font-size: 11.5px; color: #94a3b8; line-height: 1.5; }
.rfp-shop-cost { white-space: nowrap; font-size: 12px; color: #64748b; }
.rfp-shop-cost b { font-size: 16px; font-weight: 800; color: var(--orange-dark); }

.rfp-npc-title { margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: #1e293b; }
.rfp-npc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rfp-npc-list li {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}
.rfp-npc-list strong { display: block; font-size: 13px; color: #1e293b; }
.rfp-npc-list span { display: block; margin: 2px 0 6px; font-size: 12px; color: #64748b; }
.rfp-npc-navi { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rfp-npc-list code {
  display: inline-block;
  font-size: 12px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  color: #334155;
}

.rfp-rates { margin-top: 8px; }
.rfp-rates-note { margin: -8px 0 16px; font-size: 12.5px; color: #64748b; }
.rfp-rates-note code {
  background: #f1f5f9;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 12px;
  color: #334155;
}
.rfp-rates-group {
  margin: 20px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

/* แร่ปกติ vs Enriched */
.rfp-vs { margin-top: 26px; }
.rfp-vs .rfp-rates-note { margin: -6px 0 14px; line-height: 1.7; }
.rfp-vs .rfp-rates-note strong { color: #1e293b; }
.rfp-vs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.rfp-vs-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f8fafc;
}
.rfp-vs-card.is-enriched {
  border-color: #ffd1b3;
  background: linear-gradient(180deg, #fff8f3, #fff);
}
.rfp-vs-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.rfp-vs-card header b { font-size: 12.5px; color: #64748b; font-weight: 600; }
.rfp-vs-tag {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 3px 10px;
}
.rfp-vs-card.is-enriched .rfp-vs-tag { color: #fff; background: var(--orange-dark); }
.rfp-vs-card p { margin: 0; font-size: 13px; color: #475569; line-height: 1.7; }
.rfp-vs-card strong { color: #1e293b; }

.rfp-vs-warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.rfp-vs-warn span { font-size: 15px; line-height: 1.5; }
.rfp-vs-warn p { margin: 0; font-size: 13px; color: #78350f; line-height: 1.7; }
.rfp-vs-warn strong { color: #92400e; }

.rfp-vs-table { width: 100%; border-collapse: collapse; }
.rfp-vs-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.rfp-vs-table td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.rfp-vs-table tbody th {
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #1e293b;
  white-space: nowrap;
}
.rfp-vs-table tbody tr:last-child td,
.rfp-vs-table tbody tr:last-child th { border-bottom: 0; }
.rfp-vs-ok, .rfp-vs-bad, .rfp-vs-none {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 4px 4px 0;
}
.rfp-vs-ok { color: #17794a; background: #eafaf2; border: 1px solid #bfe9d3; }
.rfp-vs-bad { color: #b32d2d; background: #fdeeee; border: 1px solid #f6cccc; }
.rfp-vs-none { color: #94a3b8; background: #f1f5f9; border: 1px solid #e2e8f0; }
.rfp-vs-table small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.6;
}
.rfp-card-fail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}
.rfp-card-fail b { color: #1e293b; font-weight: 700; }

@media (max-width: 900px) {
  .rfp-grid { grid-template-columns: 1fr; }
  .rfp-vs-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rfp-block { padding: 16px 14px; }
  .rfp-point strong { font-size: 18px; }
}

/* Refine point promo card (server-info → /database/refine) */
.info4-refine-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  text-decoration: none;
  border: 1px solid #ffd1b3;
  background: linear-gradient(180deg, #fff8f3, #fff);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.info4-refine-promo:hover {
  border-color: var(--orange-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.info4-refine-promo-copy b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}
.info4-refine-promo-copy p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}
.info4-refine-promo-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.info4-refine-promo-tiers span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.info4-refine-promo-tiers b { font-weight: 800; color: var(--orange-dark); }
.info4-refine-promo-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dark);
  white-space: nowrap;
}
.info4-refine-promo-cta i { font-style: normal; }

/* ==========================================================================
   Pet system page (/database/pets) — prefix pet4-*
   ระบบผสมไข่สัตว์เลี้ยง 4 ระดับ + Alexa (Universal Exchange)
   สีประจำระดับส่งมาจาก view เป็น custom property --pet4-tier (ตรงกับสีที่ NPC ใช้ในเกม)
   ========================================================================== */
.pet4-page { --pet4-tier: #94a3b8; }

/* ---- แถบระดับ (สรุปบนสุด) ---- */
.pet4-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.pet4-tier-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--pet4-tier);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.pet4-tier-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09); }
.pet4-tier-name { font-weight: 700; font-size: 15px; color: var(--pet4-tier); }
.pet4-tier-count { font-size: 20px; font-weight: 700; color: #1e293b; line-height: 1.2; }
.pet4-tier-note { font-size: 12px; color: #94a3b8; }

/* ---- การ์ด NPC ---- */
.pet4-npcs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.pet4-npc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: #fff7f1;
  border: 1px solid #ffd1b3;
  border-radius: 12px;
}
.pet4-npc-body h3 { margin: 0; font-size: 15px; color: #1e293b; }
.pet4-npc-body p { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.pet4-npc-where a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.pet4-npc-where a:hover { text-decoration: underline; }
.pet4-npc-coord { margin-left: 6px; color: #94a3b8; }
.pet4-navi-wrap { display: inline-flex; align-items: center; gap: 6px; }
.pet4-navi {
  font-size: 12px;
  padding: 5px 10px;
  background: #fff;
  border: 1px dashed #ffb380;
  border-radius: 8px;
  color: var(--orange-dark);
  white-space: nowrap;
}
.pet4-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-dark);
  background: #fff;
  border: 1px solid #ffb380;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.pet4-copy svg { width: 14px; height: 14px; }
.pet4-copy:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.pet4-copy.is-copied { background: var(--green); border-color: var(--green); color: #fff; }
.pet4-copy.is-failed { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- section ร่วม ---- */
.pet4-section { margin-bottom: 28px; }
.pet4-section-head { margin-bottom: 14px; }
.pet4-section-head h2 { font-size: 19px; color: #1e293b; margin: 8px 0 4px; }
.pet4-section-head p { margin: 0; font-size: 13.5px; color: #64748b; line-height: 1.6; max-width: 780px; }

.pet4-item-icon { vertical-align: -6px; }

/* ---- สูตรผสม ---- */
.pet4-recipes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pet4-recipe {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.pet4-recipe-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pet4-recipe-in,
.pet4-recipe-out { display: flex; flex-direction: column; line-height: 1.3; }
.pet4-recipe-in strong { color: var(--pet4-from); font-size: 15px; }
.pet4-recipe-out strong { color: var(--pet4-to); font-size: 15px; }
.pet4-recipe-in em,
.pet4-recipe-out em { font-style: normal; font-size: 12px; color: #94a3b8; }
.pet4-recipe-arrow { font-size: 20px; color: #cbd5e1; }
.pet4-recipe-stats {
  display: flex;
  gap: 8px;
  margin: 12px 0 10px;
}
.pet4-recipe-stats span {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  background: #f8fafc;
  border-radius: 9px;
  font-size: 12px;
  color: #64748b;
}
.pet4-recipe-stats b { display: block; font-size: 17px; color: #1e293b; }
.pet4-recipe-rate b { color: var(--pet4-to); }
.pet4-recipe-fail {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.7;
}

.pet4-notes {
  margin: 14px 0 0;
  padding: 14px 18px 14px 34px;
  background: #fff7f1;
  border: 1px solid #ffe0cc;
  border-radius: 12px;
  font-size: 13px;
  color: #5c4033;
  line-height: 1.9;
}

/* ---- Alexa: แลกเศษวิญญาณ ---- */
.pet4-swaps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pet4-swap {
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--pet4-tier);
  border-radius: 12px;
}
.pet4-swap-tier { font-size: 12px; font-weight: 700; color: var(--pet4-tier); }
.pet4-swap-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.pet4-swap-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1e293b;
  min-width: 0;
}
.pet4-swap-item span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pet4-swap-item em { font-style: normal; font-size: 12px; color: #94a3b8; }
.pet4-swap-arrow { font-size: 18px; color: #cbd5e1; }
.pet4-swap-note {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ---- พูลสัตว์เลี้ยง ---- */
.pet4-search { margin-bottom: 14px; }
.pet4-search input {
  width: 100%;
  max-width: 420px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}
.pet4-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px #ff6a0022; }

.pet4-pool { margin-bottom: 22px; }
.pet4-pool-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pet4-tier);
}
.pet4-pool-head h3 { margin: 0; font-size: 16px; color: var(--pet4-tier); }
.pet4-pool-count { font-size: 13px; color: #94a3b8; }
.pet4-pool-tag {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--pet4-tier);
  background: #f8fafc;
  border-radius: 999px;
  padding: 3px 10px;
}
.pet4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 10px;
}
.pet4-card {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.pet4-card:hover {
  transform: translateY(-2px);
  border-color: var(--pet4-tier);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.09);
}
.pet4-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.pet4-card-sprite {
  flex: 0 0 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 9px;
}
.pet4-card-sprite img { max-width: 50px; max-height: 50px; image-rendering: pixelated; }
.pet4-card-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pet4-card-name {
  font-size: 14px;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pet4-card:hover .pet4-card-name { color: var(--pet4-tier); }
.pet4-card-egg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* สเตตัสที่ได้ตอนเลี้ยง — ข้อความไทยชุดเดียวกับที่ขึ้นในเกม (โบนัสเต็มที่ Loyal) */
.pet4-card-bonus {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pet4-card-bonus li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
}
.pet4-card-bonus li::before {
  content: '';
  position: absolute;
  left: 3px; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pet4-tier);
}
.pet4-card-food {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11.5px;
  color: #94a3b8;
}
.pet4-card-food b { color: #64748b; font-weight: 600; }
.pet4-empty { text-align: center; color: #94a3b8; font-size: 14px; padding: 24px 0; }

/* ---- ร้านอาหาร ---- */
.pet4-food { display: flex; flex-wrap: wrap; gap: 8px; }
.pet4-food-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12.5px;
  color: #1e293b;
}
.pet4-food-item em { font-style: normal; color: var(--orange-dark); font-weight: 600; }

@media (max-width: 900px) {
  .pet4-tiers { grid-template-columns: repeat(2, 1fr); }
  .pet4-npcs,
  .pet4-recipes,
  .pet4-swaps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pet4-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .pet4-navi { white-space: normal; }
}
