/* HonniR — bright dream theme + Kanit */

:root {
  --sky: #eef5fb;
  --mist: rgba(255, 250, 252, 0.82);
  --panel: rgba(255, 255, 255, 0.58);
  --panel-solid: rgba(255, 252, 250, 0.86);
  --ink: #3a5068;
  --ink-soft: #5c738c;
  --ink-muted: #8499ad;
  --accent: #6db3d4;
  --accent-soft: #b5dff0;
  --accent-deep: #4a93b5;
  --warm: #f0a888;
  --ok: #6cbc9a;
  --danger: #e08898;
  --line: rgba(109, 179, 212, 0.28);
  --shadow: 0 12px 36px rgba(90, 130, 160, 0.1);
  --pastel-mint: #d5f0e6;
  --pastel-lilac: #e4ddf5;
  --pastel-peach: #fde8da;
  --pastel-sky: #d9ecf8;
  --pastel-rose: #f7dde6;
  --font: "Kanit", Tahoma, sans-serif;
  --nav-h: 72px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 179, 212, 0.55) rgba(232, 244, 252, 0.65);
}

/* Themed scrollbars — WebKit */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(232, 244, 252, 0.55);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9fd0e8, #6db3d4);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(74, 147, 181, 0.25);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7ebfe0, #4a93b5);
  border-color: rgba(255, 255, 255, 0.9);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: #e4eef6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

code {
  font-size: 0.9em;
  background: rgba(42, 159, 216, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

/* Wallpaper + bright dream overlay */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url("../img/bg.png") center / cover no-repeat fixed;
  transform: scale(1.02);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(232, 244, 255, 0.72) 0%, rgba(255, 250, 245, 0.55) 40%, rgba(220, 238, 250, 0.78) 100%),
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 255, 255, 0.65), transparent 60%);
}

#ice-particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ========== New Navbar ========== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.75rem 1rem 0;
}

.site-nav__bar {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--nav-h);
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(42, 159, 216, 0.08) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-radius 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.is-scrolled .site-nav__bar {
  box-shadow: 0 10px 32px rgba(30, 80, 130, 0.16);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  z-index: 2;
}

.site-nav__brand img {
  width: 78px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(42, 159, 216, 0.35));
}

.site-nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-nav__brand-text strong {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.site-nav__brand-text small {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
}

.site-nav__links ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__links a:hover,
.site-nav__links a.is-active,
.nav-link:hover,
.nav-link.is-active {
  color: var(--accent-deep);
  background: rgba(42, 159, 216, 0.12);
}

.site-nav__links a.is-active,
.nav-link.is-active {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.site-nav__auth {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.35rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line);
}

.site-nav__user {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-deep);
}

.site-nav__login {
  font-weight: 500;
}

.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(42, 159, 216, 0.12);
  cursor: pointer;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.site-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav.is-open .site-nav__toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav__veil {
  display: none;
}

/* Main */
.main {
  position: relative;
  z-index: 3;
  padding: calc(var(--nav-h) + 2.5rem) 1.25rem 4rem;
  max-width: none;
  margin: 0 auto;
  min-height: 70vh;
}

.page-home .main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.page-home .flash {
  position: relative;
  z-index: 4;
  margin: 0.5rem auto 0;
  max-width: 640px;
}

/* Flash */
.flash {
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 500;
}

.flash--ok { border-color: rgba(31, 166, 122, 0.4); color: var(--ok); }
.flash--error { border-color: rgba(226, 85, 106, 0.4); color: var(--danger); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #4bb8e8, #2a9fd8);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(42, 159, 216, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(42, 159, 216, 0.4);
  filter: brightness(1.05);
}

.btn--sm {
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
}

.btn--ghost {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--accent-deep);
  background: #fff;
}

.btn--ice {
  background: linear-gradient(180deg, #6ec8f0, #3aa8d8);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Panels */
.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel + .panel {
  margin-top: 1.25rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 38rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 3.5rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 22%;
  left: 50%;
  width: min(90vw, 680px);
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75), rgba(160, 220, 255, 0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: min(92vw, 480px);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 10px 28px rgba(42, 159, 216, 0.35));
}

.hero__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
}

.hero__lead {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto 1.6rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 400;
}

.hero__cta {
  position: relative;
  z-index: 1;
}

.hero-band {
  position: relative;
  z-index: 3;
  max-width: 1120px;
  margin: -1.5rem auto 4rem;
  padding: 0 1.25rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-strip article {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.feature-strip h3 {
  margin: 0 0 0.35rem;
  color: var(--accent-deep);
}

.feature-strip p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(30, 80, 130, 0.16);
}

.news-item__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 5.5rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  width: fit-content;
}

.tag--event { background: #8b7cf6; }
.tag--guide { background: var(--ok); }
.tag--woe { background: var(--warm); }

.news-item time {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.news-item h3 { margin: 0 0 0.3rem; }

.news-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Rates */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.rate-cell {
  text-align: center;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rate-cell strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 0.2rem;
}

.rate-cell span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-item {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.55);
}

.feature-item h3 { margin: 0 0 0.35rem; }

.feature-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Download */
.download-grid {
  display: grid;
  gap: 1rem;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-row.is-primary {
  border-color: rgba(42, 159, 216, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(210, 236, 250, 0.85));
}

.download-row h3 { margin: 0 0 0.2rem; }

.download-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.download-row__size {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.25rem !important;
}

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #4bb8e8, #2a9fd8);
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.9rem;
}

/* Guide */
.tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab-btn.is-active,
.tab-btn:hover {
  color: #fff;
  background: linear-gradient(180deg, #4bb8e8, #2a9fd8);
  border-color: transparent;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.job-grid,
.monster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.job-card,
.monster-card {
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: default;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.job-card:hover,
.job-card.is-open,
.monster-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 159, 216, 0.45);
}

.job-card__path {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.job-card h3,
.monster-card h3 { margin: 0 0 0.3rem; }

.job-card__summary {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.job-card__detail {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.job-card.is-open .job-card__detail { display: block; }

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.skill-chips span {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(42, 159, 216, 0.12);
  color: var(--accent-deep);
}

.monster-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

/* Ranking */
.status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.status-pill {
  padding: 0.95rem 1rem;
  text-align: center;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.status-pill strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.status-pill span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pill.is-online strong { color: var(--ok); }
.status-pill.is-offline strong { color: var(--danger); }

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rank-table th,
.rank-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.rank-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.rank-table tr:hover td {
  background: rgba(42, 159, 216, 0.06);
}

.rank-table .rank-num {
  font-weight: 700;
  color: var(--accent-deep);
  width: 2.5rem;
}

/* Auth */
.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 0.35rem;
}

.form-field input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 159, 216, 0.15);
}

.form-error {
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.auth-switch {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer — slim dusk strip */
.site-footer {
  position: relative;
  z-index: 20;
  margin-top: auto;
  padding: 0.85rem 1.1rem 1rem;
  background: linear-gradient(180deg, rgba(18, 32, 48, 0.42), rgba(12, 22, 36, 0.72));
  border-top: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__edge {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 223, 240, 0.55), transparent);
}

.site-footer__mark {
  position: absolute;
  left: 50%;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3px;
  background: rgba(181, 223, 240, 0.95);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(126, 200, 255, 0.55);
}

.site-footer__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__line {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer__sub {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(220, 235, 248, 0.62);
}

.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  color: #e8f4ff;
  background: rgba(74, 147, 181, 0.55);
  border: 1px solid rgba(181, 223, 240, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-footer__link:hover {
  background: rgba(90, 168, 205, 0.75);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  margin-top: 10px;
}

/* ========== Mobile ========== */
@media (max-width: 980px) {
  .wallpaper {
    background-attachment: scroll;
  }

  .site-nav {
    padding: 0.55rem 0.65rem 0;
  }

  .site-nav__bar {
    border-radius: 22px;
    padding: 0.4rem 0.55rem 0.4rem 0.5rem;
  }

  .site-nav.is-open .site-nav__bar {
    border-radius: 22px 22px 0 0;
  }

  .site-nav__brand-text {
    display: none;
  }

  .site-nav__toggle {
    display: block;
  }

  .site-nav__links {
    position: fixed;
    top: calc(0.55rem + var(--nav-h));
    left: 0.65rem;
    right: 0.65rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-top: none;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 18px 40px rgba(30, 80, 130, 0.18);
    z-index: 201;
  }

  .site-nav.is-open .site-nav__links {
    display: flex;
  }

  .site-nav__links ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .site-nav__links a,
  .nav-more__trigger {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-radius: 12px;
    width: 100%;
    justify-content: flex-start;
  }

  .nav-more {
    width: 100%;
    display: contents;
  }

  .nav-more__trigger {
    display: none;
  }

  .nav-more__menu {
    position: static;
    display: contents;
    transform: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
  }

  .nav-more__item {
    width: 100% !important;
  }

  .site-nav__auth {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 0.85rem;
    flex-wrap: wrap;
  }

  .site-nav__veil {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(30, 70, 110, 0.25);
    backdrop-filter: blur(2px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .site-nav.is-open .site-nav__veil {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__veil[hidden] {
    display: none;
  }

  .site-nav.is-open .site-nav__veil[hidden] {
    display: block;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .main {
    padding-top: calc(var(--nav-h) + 1.75rem);
  }
}

@media (max-width: 560px) {
  .news-item {
    grid-template-columns: 1fr;
  }

  .download-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-table {
    font-size: 0.85rem;
  }

  .rank-table th:nth-child(5),
  .rank-table td:nth-child(5) {
    display: none;
  }

  .hero__brand-text,
  .site-nav__brand img {
    width: 68px;
  }
}

.site-nav__login {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav__login:hover {
  color: var(--accent-deep);
  background: rgba(42, 159, 216, 0.12);
}

.site-nav__auth .btn {
  border: none;
}

body.modal-open {
  overflow: hidden;
}

/* ========== Auth Modals ========== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 50, 80, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(232, 244, 255, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(30, 80, 130, 0.28);
  animation: modalIn 0.35s ease both;
}

.auth-modal__dialog--wide {
  width: min(100%, 560px);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(42, 159, 216, 0.12);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__head {
  text-align: center;
  margin-bottom: 1.15rem;
}

.auth-modal__head img {
  margin: 0 auto 0.5rem;
  width: 100px;
  filter: drop-shadow(0 6px 16px rgba(42, 159, 216, 0.3));
}

.auth-modal__head h2 {
  margin: 0 0 0.25rem;
}

.auth-modal__head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-field select {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}

.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 159, 216, 0.15);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.captcha-img {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  height: 54px;
  width: auto;
}

.btn--block {
  width: 100%;
}

.auth-msg {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
}

.auth-msg.is-ok {
  color: var(--ok);
  background: rgba(31, 166, 122, 0.1);
}

.auth-msg.is-err {
  color: var(--danger);
  background: rgba(226, 85, 106, 0.1);
}

.field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.field-hint.is-ok { color: var(--ok); }
.field-hint.is-err { color: var(--danger); }

.linkish {
  font-family: var(--font);
  font-size: inherit;
  font-weight: 600;
  color: var(--accent-deep);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

/* ========== Home layout ========== */
.home-wrap {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.notice-board {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.notice-board__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(90deg, rgba(42, 159, 216, 0.16), rgba(255, 255, 255, 0.4));
  border-bottom: 1px solid var(--line);
}

.notice-board__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.notice-board__head p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.notice-board__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(42, 159, 216, 0.2);
  flex-shrink: 0;
}

.notice-board__more {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  white-space: nowrap;
}

.notice-board__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.notice-board__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid rgba(42, 159, 216, 0.08);
  transition: background 0.2s;
}

.notice-board__list li:last-child {
  border-bottom: none;
}

.notice-board__list li:hover {
  background: rgba(42, 159, 216, 0.06);
}

.notice-board__list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}

.notice-board__list a:hover {
  color: var(--accent-deep);
}

.notice-board__list time {
  font-size: 0.78rem;
  color: var(--ink-muted);
  white-space: nowrap;
}

.notice-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff9a5c, #f07838);
  flex-shrink: 0;
}

.notice-badge--info {
  background: linear-gradient(180deg, #5bb8e8, #2a9fd8);
  border-radius: 50%;
}

.cover-panel {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.cover-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.cover-panel__caption {
  display: block;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
}

.side-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.side-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--accent-deep);
}

.side-rules {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-rules li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(42, 159, 216, 0.08);
}

.side-rules li:last-child { border-bottom: none; }

.side-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.side-card--slides {
  padding-bottom: 0.75rem;
}

.home-slideshow {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dceaf5;
}

.home-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.home-slideshow img.is-active {
  opacity: 1;
}

.side-policy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Job sprites */
.quest-section {
  margin-top: 1rem;
}

.quest-section__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.quest-section__head p {
  color: var(--ink-soft);
  margin: 0;
}

.job-sprite-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.job-sprite {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 1rem 0.6rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.job-sprite:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(30, 80, 130, 0.18);
}

.job-sprite img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 0.5rem;
}

.job-sprite__tier {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.job-sprite__name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.map-card {
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.map-card h3 {
  margin: 0 0 0.35rem;
  color: var(--accent-deep);
}

.map-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.guide-note {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .job-sprite-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .notice-board__list li {
    grid-template-columns: auto 1fr;
  }

  .notice-board__list time {
    grid-column: 2;
  }
}

.site-nav__links a,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-more {
  position: relative;
}

.nav-more__trigger {
  list-style: none;
}

.nav-more__caret {
  width: 0;
  height: 0;
  margin-left: 0.1rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  transition: transform 0.2s ease;
}

.nav-more.is-open .nav-more__caret,
.nav-more:hover .nav-more__caret,
.nav-more:focus-within .nav-more__caret {
  transform: rotate(180deg);
}

.nav-more__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 180px;
  padding: 0.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 36px rgba(30, 80, 130, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 220;
}

.nav-more__menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-more:hover .nav-more__menu,
.nav-more:focus-within .nav-more__menu,
.nav-more.is-open .nav-more__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-more__item {
  display: flex !important;
  width: 100%;
  justify-content: flex-start !important;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-more__item:hover,
.nav-more__item.is-active {
  color: var(--accent-deep);
  background: rgba(42, 159, 216, 0.12);
}

.nav-link__icon {
  display: inline-flex;
  color: var(--accent);
  opacity: 0.9;
}

.ui-icon {
  display: inline-block;
  vertical-align: -0.2em;
  flex-shrink: 0;
}

.btn .ui-icon,
.site-nav__login .ui-icon,
.site-nav__user .ui-icon {
  margin-right: 0.15rem;
}

.site-nav__login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.site-nav__user {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 220px;
}

.nav-profile__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  background: linear-gradient(135deg, var(--pastel-sky), var(--pastel-lilac));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  max-width: 200px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-profile__trigger:hover,
.nav-profile:hover .nav-profile__trigger,
.nav-profile:focus-within .nav-profile__trigger,
.nav-profile.is-open .nav-profile__trigger {
  box-shadow: 0 6px 18px rgba(74, 147, 181, 0.2);
  border-color: rgba(109, 179, 212, 0.55);
}

.nav-profile__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  flex-shrink: 0;
}

.nav-profile__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  text-align: left;
}

.nav-profile__meta small {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.nav-profile__meta strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-profile__caret {
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-profile:hover .nav-profile__caret,
.nav-profile:focus-within .nav-profile__caret,
.nav-profile.is-open .nav-profile__caret {
  transform: rotate(180deg);
}

.nav-profile__menu {
  position: absolute;
  top: calc(100% + 0.15rem);
  right: 0;
  min-width: 210px;
  width: max-content;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(255, 252, 250, 0.96);
  border: 1px solid rgba(148, 190, 215, 0.4);
  box-shadow: 0 14px 32px rgba(40, 80, 120, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 80;
}

.nav-profile__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.nav-profile:hover .nav-profile__menu,
.nav-profile:focus-within .nav-profile__menu,
.nav-profile.is-open .nav-profile__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-profile__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-profile__item:hover {
  background: rgba(42, 159, 216, 0.12);
  color: var(--accent-deep);
}
.nav-profile__sep {
  height: 1px;
  margin: 0.25rem 0.4rem;
  background: rgba(148, 190, 215, 0.35);
}

.nav-profile__logout {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-profile__logout:hover {
  background: rgba(224, 136, 152, 0.14);
  color: var(--danger);
}

/* Member area */
.member-gate {
  text-align: center;
  padding: 3rem 1.25rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel-solid);
  border: 1.5px solid rgba(148, 190, 215, 0.4);
  box-shadow: var(--shadow);
}
.member-gate h1 { margin: 0 0 0.5rem; }
.member-gate p { margin: 0 0 1.1rem; color: var(--ink-muted); }

.member-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(217, 236, 248, 0.85), rgba(228, 221, 245, 0.55));
  border: 1.5px solid rgba(148, 190, 215, 0.4);
  box-shadow: var(--shadow);
}
.member-hero__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.member-hero h1 { margin: 0 0 0.35rem; font-size: 1.55rem; }
.member-hero p { margin: 0; color: var(--ink-soft); }
.member-hero__cash {
  display: grid;
  gap: 0.15rem;
  text-align: right;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 190, 215, 0.35);
}
.member-hero__cash small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.member-hero__cash strong {
  font-size: 1.35rem;
  color: var(--accent-deep);
}

.member-panel {
  margin-bottom: 1.1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel-solid);
  border: 1.5px solid rgba(148, 190, 215, 0.4);
  box-shadow: var(--shadow);
}
.member-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.member-panel__head h2 { margin: 0; font-size: 1.15rem; }
.member-panel__head p { margin: 0; color: var(--ink-muted); font-size: 0.88rem; }

.member-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1.5px solid rgba(148, 190, 215, 0.3);
}
.member-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
  background: rgba(255, 255, 255, 0.55);
}
.member-table th,
.member-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 190, 215, 0.25);
}
.member-table th {
  background: rgba(217, 236, 248, 0.65);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}
.member-table tbody tr:last-child td { border-bottom: none; }
.member-loading,
.member-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 1.4rem !important;
}
.member-status {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.member-status.is-online {
  color: #2f7a5a;
  background: rgba(108, 188, 154, 0.22);
}
.member-status.is-offline {
  color: var(--ink-muted);
  background: rgba(148, 190, 215, 0.2);
}

.member-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Page banner */
.page-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  height: clamp(200px, 28vw, 280px);
  min-height: clamp(200px, 28vw, 280px);
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
}

.page-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.92) brightness(1.02) contrast(1);
}

.page-banner__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 252, 250, 0.55) 0%, rgba(255, 255, 255, 0.18) 45%, transparent 72%);
}

.page-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 1.85rem);
}

.page-banner__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(42, 159, 216, 0.15);
  color: var(--accent-deep);
  flex-shrink: 0;
}

.page-banner__content h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.page-banner__content p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
}

/* NPC Plaza */
.npc-plaza {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: -1rem auto 2rem;
  padding: 0 1.25rem;
}

.npc-plaza__head {
  text-align: center;
  margin-bottom: 1rem;
}

.npc-plaza__head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}

.npc-plaza__head p {
  margin: 0;
  color: var(--ink-soft);
}

.npc-stage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  padding: 1.5rem 1rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.35)),
    url("../img/home-bg.jpg") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 210px;
  align-items: flex-end;
}

.npc-actor {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 0.35rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
}

.npc-actor img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 10px rgba(30, 60, 90, 0.25));
  animation: npcIdle 2.8s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.npc-actor:nth-child(2n) img { animation-delay: 0.4s; }
.npc-actor:nth-child(3n) img { animation-delay: 0.8s; }
.npc-actor:nth-child(4n) img { animation-delay: 1.1s; }

.npc-actor:hover img {
  transform: translateY(-6px) scale(1.06);
  animation-play-state: paused;
}

.npc-shadow {
  width: 52px;
  height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: rgba(30, 50, 70, 0.22);
  filter: blur(2px);
}

.npc-scroll {
  position: relative;
  z-index: 1;
  margin-bottom: 0.35rem;
  padding: 0.28rem 0.7rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  color: #5a3d22;
  background: linear-gradient(180deg, #f7ecd4, #e8d5a8);
  border: 2px solid #6b4a2a;
  border-radius: 4px;
  box-shadow: 0 2px 0 #3d2816;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.npc-scroll::before,
.npc-scroll::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 8px;
  background: linear-gradient(180deg, #d9c48f, #8b6914);
  border: 1px solid #5a3d22;
  border-radius: 3px;
}

.npc-scroll::before { left: -5px; }
.npc-scroll::after { right: -5px; }

@keyframes npcIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Scroll / parchment buttons */
.scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.25rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a3d22;
  background: linear-gradient(180deg, #f7ecd4, #e2c98a);
  border: 2px solid #6b4a2a;
  border-radius: 6px;
  box-shadow: 0 3px 0 #3d2816;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.scroll-btn:hover {
  transform: translateY(-2px);
}

.scroll-btn--sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
}

/* Tip modal */
.tip-modal {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tip-modal[hidden] {
  display: none !important;
}

.tip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 45, 70, 0.5);
  backdrop-filter: blur(5px);
}

.tip-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 1.5rem 1.55rem 1.4rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(20, 40, 70, 0.35);
  animation: modalIn 0.35s ease both;
}

.tip-modal.is-wide .tip-modal__dialog {
  width: min(96vw, 1040px);
  max-height: min(94vh, 920px);
  padding: 1.65rem 1.85rem 1.5rem;
}

.tip-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  color: #9aa8b8;
  cursor: pointer;
}

.tip-modal__ornament {
  width: 64px;
  height: 10px;
  margin: 0 auto 0.55rem;
  background:
    radial-gradient(circle at 20% 50%, #6b4a2a 2px, transparent 3px),
    radial-gradient(circle at 80% 50%, #6b4a2a 2px, transparent 3px),
    linear-gradient(90deg, transparent, #6b4a2a, transparent);
  background-size: 100% 100%, 100% 100%, 100% 2px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
}

.tip-modal__kicker {
  text-align: center;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6b4a2a;
}

.tip-modal__dialog h2 {
  text-align: center;
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.tip-modal.is-wide .tip-modal__dialog h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.35;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.tip-modal__sub {
  text-align: center;
  margin: 0 0 1rem;
  padding: 0.45rem 0.75rem;
  background: #f1f4f8;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.tip-modal__media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  background: #eef5fb;
}

.tip-modal__media[hidden] {
  display: none !important;
}

.tip-modal__media img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 220px;
  object-fit: cover;
}

.tip-modal.is-wide .tip-modal__media img {
  max-height: 160px;
}

.tip-modal__body {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tip-modal.is-wide .tip-modal__body {
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

.tip-modal.is-rules .tip-modal__dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 248, 253, 0.98)),
    radial-gradient(ellipse at top, rgba(181, 223, 240, 0.35), transparent 55%);
}

.tip-modal.is-rules .tip-modal__body {
  max-width: none;
}

/* —— Server rules book (modal) —— */
.rules-book {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rules-sec {
  opacity: 1;
  transform: none;
}

.tip-modal.rules-animate .rules-sec {
  animation: rulesSecIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

.rules-sec__head {
  margin: 0 0 0.65rem;
  padding: 0.72rem 1rem;
  text-align: center;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #7ebfe0 0%, #4a93b5 55%, #3d7fa0 100%);
  box-shadow:
    0 8px 22px rgba(74, 147, 181, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.rules-sec__head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: rulesShimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}

.rules-sec--warn .rules-sec__head {
  background: linear-gradient(135deg, #8ec9e8 0%, #5aa0c4 50%, #3f7fa3 100%);
  color: #163248;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rules-sec__head span {
  position: relative;
  z-index: 1;
}

.rules-sec__intro {
  margin: 0 0 0.7rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: rgba(217, 236, 248, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.rules-sec__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rules-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(109, 179, 212, 0.32);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(90, 130, 160, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.tip-modal.rules-animate .rules-card {
  animation: rulesCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.07s + var(--j, 0) * 0.04s + 0.12s);
}

.rules-card:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 179, 212, 0.55);
  box-shadow: 0 10px 24px rgba(74, 147, 181, 0.14);
}

.rules-card__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #7ebfe0, #4a93b5);
  box-shadow:
    0 4px 10px rgba(74, 147, 181, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rules-sec--warn .rules-card__num {
  background: linear-gradient(145deg, #9fd0e8, #5aa0c4);
  color: #163248;
}

.rules-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink);
}

.rules-subs {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rules-subs li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(90deg, rgba(217, 236, 248, 0.7), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(109, 179, 212, 0.2);
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.rules-subs__n {
  font-weight: 700;
  color: var(--accent-deep);
}

.rules-note {
  margin: 0.7rem 0 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: rgba(253, 232, 218, 0.55);
  border: 1px solid rgba(240, 168, 136, 0.35);
  border-left: 3px solid var(--warm);
  border-radius: 10px;
}

.rules-bullets {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(109, 179, 212, 0.28);
  border-radius: 14px;
}

.rules-bullets li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
}

.rules-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #7ebfe0, #4a93b5);
  box-shadow: 0 0 0 3px rgba(109, 179, 212, 0.2);
}

.rules-sec--warn .rules-bullets li::before {
  background: linear-gradient(145deg, #9fd0e8, #3f7fa3);
}

@keyframes rulesSecIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rulesCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rulesShimmer {
  0%,
  55% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tip-modal.rules-animate .rules-sec,
  .tip-modal.rules-animate .rules-card,
  .rules-sec__head::after {
    animation: none !important;
  }

  .rules-card:hover {
    transform: none;
  }
}

.tip-modal__actions {
  text-align: center;
}

@media (max-width: 720px) {
  .tip-modal {
    padding: 0.5rem;
    align-items: flex-start;
  }

  .tip-modal__dialog,
  .tip-modal.is-wide .tip-modal__dialog {
    width: 100%;
    max-height: min(96vh, 100%);
    margin-top: 0.35rem;
    padding: 1.15rem 1rem 1.1rem;
  }

  .tip-modal.is-wide .tip-modal__dialog h2 {
    font-size: 1.1rem;
  }

  .tip-modal.is-wide .tip-modal__body {
    font-size: 0.88rem;
  }

  .rules-card {
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
  }

  .rules-card__num {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.8rem;
  }

  .rules-subs li {
    grid-template-columns: 2.3rem 1fr;
  }

  .rules-sec__head {
    padding: 0.65rem 0.75rem;
    font-size: 0.86rem;
  }
}

/* Job Quest modal */
.jq-modal {
  position: fixed;
  inset: 0;
  z-index: 460;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.jq-modal[hidden] {
  display: none !important;
}

.jq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 36, 58, 0.55);
  backdrop-filter: blur(6px);
}

.jq-modal__shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15, 40, 70, 0.35);
  overflow: hidden;
  animation: modalIn 0.35s ease both;
}

.jq-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(90, 140, 180, 0.14);
  background: linear-gradient(180deg, rgba(232, 244, 255, 0.65), transparent);
}

.jq-modal__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.jq-modal__identity img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 12px rgba(20, 50, 80, 0.25));
  flex-shrink: 0;
}

.jq-modal__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.jq-modal__top h2 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.3;
  color: var(--ink);
}

.jq-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.jq-modal__close:hover {
  background: #fff;
  color: var(--ink);
}

.jq-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.jq-modal__loading,
.jq-modal__error {
  margin: 2rem 0;
  text-align: center;
  color: var(--ink-soft);
}

.jq-modal__error {
  color: #c0392b;
}

.jq-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}

.jq-content h2 {
  margin: 1.1rem 0 0.55rem;
  font-size: 1.1rem;
  color: var(--accent-deep);
}

.jq-content p {
  margin: 0 0 0.75rem;
}

.jq-content .jq-hr,
.jq-content hr {
  border: none;
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg, transparent, rgba(90, 140, 180, 0.35), transparent);
}

.jq-content .image.main {
  display: none !important;
}

.jq-content .image.fit,
.jq-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0.65rem 0 1rem;
  border-radius: 14px;
  border: 1px solid rgba(180, 210, 235, 0.55);
  box-shadow: 0 10px 28px rgba(20, 50, 80, 0.1);
}

.jq-content .jq-warn {
  color: #c0392b;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  background: rgba(231, 76, 60, 0.08);
  border-radius: 12px;
  border-left: 3px solid #e74c3c;
}

.jq-content .jq-note {
  color: #1e7a55;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 12px;
  border-left: 3px solid #27ae60;
}

.jq-content .jq-pin {
  color: var(--accent-deep);
  font-weight: 700;
}

.jq-modal__rail {
  border-top: 1px solid rgba(90, 140, 180, 0.14);
  background: rgba(245, 250, 255, 0.92);
  padding: 0.65rem 0.5rem 0.75rem;
}

.jq-modal__rail-track {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.15rem 0.4rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.jq-modal__chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 68px;
  padding: 0.4rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jq-modal__chip img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.jq-modal__chip:hover,
.jq-modal__chip.is-active {
  background: #fff;
  border-color: rgba(42, 159, 216, 0.4);
  color: var(--ink);
}

.jq-modal__chip.is-active {
  box-shadow: 0 0 0 2px rgba(126, 200, 255, 0.35);
}

button.job-sprite,
button.gather-job {
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Job showcase — open layout, denser details */
.job-stage {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: none;
  margin: 1.25rem auto 2rem;
  padding: 0 0.4rem 1rem;
}

.job-stage__mark {
  display: block;
  width: 40px;
  height: 3px;
  margin: 0 auto 0.65rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), rgba(126, 200, 255, 0.2));
}

.job-stage__head {
  text-align: center;
  margin-bottom: 1rem;
}

.job-stage__head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
}

.job-stage__head p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.page-home .job-stage__head h2 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(15, 40, 70, 0.45);
}

.page-home .job-stage__head p {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(10, 30, 50, 0.4);
}

.job-stage__frame {
  display: grid;
  grid-template-columns: 108px minmax(220px, 0.95fr) minmax(340px, 1.15fr);
  gap: 1rem;
  align-items: stretch;
  min-height: 520px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.page-guide .job-stage__frame {
  background: transparent;
  border: none;
  box-shadow: none;
}

.job-stage__rail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.15rem 0.35rem 0.15rem 0.1rem;
  align-self: stretch;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.job-stage__rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.job-stage__icon {
  width: 100%;
  min-height: 60px;
  border-radius: 16px;
  border: none;
  background: transparent;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.page-guide .job-stage__icon {
  background: transparent;
  border: none;
}

.job-stage__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.job-stage__icon-name {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(10, 30, 50, 0.45);
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-guide .job-stage__icon-name,
body:not(.page-home) .job-stage__icon-name {
  color: var(--ink-soft);
  text-shadow: none;
}

.job-stage__icon:hover {
  transform: translateY(-2px);
  border: none;
  background: rgba(181, 223, 240, 0.28);
}

.job-stage__icon.is-active {
  border: none;
  background: rgba(181, 223, 240, 0.45);
  box-shadow: 0 6px 18px rgba(42, 159, 216, 0.18);
}

.job-stage__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  isolation: isolate;
  padding: 1rem 0.5rem;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.page-guide .job-stage__stage {
  background: transparent;
  border: none;
  box-shadow: none;
}

.job-stage__glow {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 78%;
  height: 48%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(181, 223, 240, 0.55), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  animation: jobGlow 3.6s ease-in-out infinite;
}

@keyframes jobGlow {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.08); }
}

.job-stage__rings {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(82%, 280px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 16px rgba(255, 255, 255, 0.08),
    0 0 0 34px rgba(181, 223, 240, 0.08);
  z-index: 0;
  pointer-events: none;
}

.job-stage__art {
  position: relative;
  z-index: 1;
  width: min(78%, 260px);
  height: auto;
  max-height: 280px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 28px rgba(20, 50, 80, 0.35));
}

.job-stage__stage.is-swap .job-stage__art {
  animation: jobArtIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes jobArtIn {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.job-stage__float {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  max-width: 320px;
}

.job-chip {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(181, 223, 240, 0.35);
  border: none;
  backdrop-filter: none;
}

.job-chip--soft {
  background: rgba(228, 221, 245, 0.45);
}

.job-stage__panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  height: 100%;
  padding: 0.85rem 0.95rem 0.95rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.page-guide .job-stage__panel {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(148, 190, 215, 0.4);
  box-shadow: none;
}

.page-home .job-stage__panel {
  color: #fff;
  text-shadow: 0 1px 10px rgba(15, 35, 60, 0.3);
  background: rgba(12, 28, 48, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.job-stage__panel.is-swap {
  animation: jobPanelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes jobPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.job-stage__intro {
  flex: 0 0 auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.page-guide .job-stage__intro {
  border-bottom-color: rgba(148, 190, 215, 0.4);
}

.job-stage__title-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.job-stage__role {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.page-home .job-stage__role {
  color: #c8e8f8;
}

.job-stage__tier {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.page-home .job-stage__tier {
  color: rgba(255, 255, 255, 0.7);
}

.job-stage__panel h3 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1.15;
}

.job-stage__name-th {
  margin: 0.15rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.88;
}

.job-stage__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.1em;
}

.job-stage__blocks {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
  min-height: 0;
}

.job-block {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.65rem 0.85rem;
  align-items: center;
  min-height: 0;
  height: auto;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: none;
  position: relative;
}

.page-guide .job-block {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(148, 190, 215, 0.42);
  box-shadow: none;
}

.page-home .job-block {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: none;
}

.job-block__label {
  margin: 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
  border-bottom: none;
  line-height: 1.3;
  align-self: center;
}

.page-guide .job-block__label {
  border-bottom: none;
  color: var(--accent-deep);
  opacity: 1;
}

.job-stage__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  flex: none;
  align-content: stretch;
  margin: 0;
  width: 100%;
}

.job-stage__meta > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-height: 0;
}

.page-guide .job-stage__meta > div {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(148, 190, 215, 0.35);
}

.page-home .job-stage__meta > div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.job-stage__meta small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.75;
  margin-bottom: 0.1rem;
}

.job-stage__meta strong {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.job-stage__stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem 0.55rem;
  flex: none;
  justify-content: stretch;
  margin: 0;
  width: 100%;
}

.job-stat {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.job-stat__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
}

.job-stat__row strong {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.job-stat__val {
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c, var(--accent));
  text-shadow: none;
}

.page-home .job-stat__val {
  text-shadow: 0 1px 6px rgba(10, 25, 45, 0.35);
}

.job-stat__bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.page-guide .job-stat__bar {
  background: rgba(148, 190, 215, 0.28);
}

.job-stat__bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c));
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 45%, transparent);
  transition: width 0.4s ease;
}

.job-stat__ring { display: none; }

.job-stage__tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  flex: none;
  width: 100%;
}

.job-stage__tips li {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0.5rem 0.55rem 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.page-guide .job-stage__tips li {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(148, 190, 215, 0.35);
}

.page-home .job-stage__tips li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.job-stage__tips li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.job-stage__foot {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.page-guide .job-stage__foot {
  border-top-color: rgba(148, 190, 215, 0.4);
}

.job-stage__next-wrap .job-block__label {
  margin-bottom: 0.35rem;
}

.job-stage__next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.job-next {
  border: none;
  background: rgba(181, 223, 240, 0.35);
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.page-guide .job-next {
  background: rgba(181, 223, 240, 0.35);
}

.job-next:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.job-next--mute {
  cursor: default;
  opacity: 0.75;
}

.job-stage__quest {
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, #7eb8d8, #5a9aba);
  box-shadow: 0 10px 24px rgba(90, 150, 180, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-shadow: none;
}

.job-stage__quest:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(90, 150, 180, 0.45);
}

/* Bamboo-like tips + radar (guide) */
.job-stage--bamboo .job-stage__frame {
  grid-template-columns: 96px minmax(240px, 1.05fr) minmax(260px, 0.95fr);
  gap: 0.85rem;
  align-items: start;
  min-height: 0;
}

.job-stage--bamboo .job-stage__rail {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.55rem 0.35rem;
  max-height: min(70vh, 560px);
  box-shadow: 0 12px 28px rgba(40, 80, 120, 0.1);
}

.job-stage--bamboo .job-stage__icon {
  border-radius: 999px;
  min-height: 52px;
  padding: 0.3rem;
}

.job-stage--bamboo .job-stage__icon.is-active {
  background: linear-gradient(145deg, #5aa8d4, #4a93b5);
  box-shadow: 0 8px 18px rgba(74, 147, 181, 0.35);
}

.job-stage--bamboo .job-stage__icon.is-active .job-stage__icon-name {
  color: #fff;
}

.job-stage__mid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.job-tipcard {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(40, 80, 120, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.job-tipcard.is-swap {
  animation: jobPanelIn 0.35s ease both;
}

.job-tipcard__banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.95rem;
  background: linear-gradient(90deg, #4a9fd0, #6bb8e0);
  color: #fff;
}

.job-tipcard__banner span {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-tipcard__banner small {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.92;
}

.job-tipcard__body {
  padding: 0.55rem 0.75rem 0.65rem;
}

.job-tipcard__desc[hidden] {
  display: none !important;
}

.job-tipcard__tips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.job-tipcard__tips li {
  position: relative;
  padding: 0.32rem 0.55rem 0.32rem 1.05rem;
  border-radius: 999px;
  background: rgba(217, 236, 248, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-tipcard__tips li::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5aa8d4;
}

.job-stage--bamboo .job-stage__stage {
  min-height: 280px;
  padding: 0.5rem;
}

.job-stage--bamboo .job-stage__art {
  width: min(52vw, 240px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 24px rgba(30, 60, 90, 0.28));
}

.job-stage__path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.job-stage--bamboo .job-stage__quest {
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

.job-status {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.85rem 1rem;
  border-radius: 22px;
  background: rgba(120, 175, 210, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 36px rgba(40, 80, 120, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.job-status.is-swap {
  animation: jobPanelIn 0.35s ease both;
}

.job-status__label {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(20, 50, 80, 0.35);
}

.job-radar {
  display: grid;
  place-items: center;
}

.job-radar__svg {
  width: min(100%, 220px);
  height: auto;
  overflow: visible;
}

.job-radar__grid {
  fill: rgba(255, 255, 255, 0.12);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.2;
}

.job-radar__grid--mid {
  fill: rgba(255, 255, 255, 0.08);
}

.job-radar__grid--inner {
  fill: rgba(255, 255, 255, 0.06);
}

.job-radar__axis {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
}

.job-radar__shape {
  fill: rgba(255, 255, 255, 0.35);
  stroke: #fff;
  stroke-width: 2;
  transition: points 0.35s ease;
}

.job-radar__tag rect {
  fill: rgba(255, 255, 255, 0.92);
}

.job-radar__tag text {
  fill: #4a93b5;
  font-size: 9px;
  font-weight: 800;
  font-family: inherit;
}

.job-stage__stats--sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.job-slider {
  display: grid;
  grid-template-columns: 2.2rem 1fr 1.6rem;
  align-items: center;
  gap: 0.35rem;
}

.job-slider strong {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.job-slider .job-stat__val {
  font-size: 0.72rem;
  color: var(--accent-deep);
  text-align: right;
}

.job-slider__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(109, 179, 212, 0.22);
}

.job-slider__track > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6db3d4, #4a93b5);
  transition: width 0.3s ease;
}

.job-slider__track > em {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #5aa8d4;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(40, 90, 130, 0.35);
  transition: left 0.3s ease;
  pointer-events: none;
}

.job-status__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  justify-content: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(20, 50, 80, 0.3);
}

.job-status__meta strong {
  font-weight: 800;
}

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

  .job-stage__tips {
    grid-template-columns: 1fr;
  }

  .job-stage__tips li {
    min-height: 0;
  }

  .job-stage--bamboo .job-stage__frame {
    grid-template-columns: 88px 1fr;
  }

  .job-stage--bamboo .job-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .job-block {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .job-block__label {
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
  }

  .page-guide .job-block__label {
    border-bottom-color: rgba(148, 190, 215, 0.45);
  }

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

  .job-stage__frame {
    grid-template-columns: 84px 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .job-stage__rail {
    grid-row: 1 / span 2;
    max-height: 560px;
  }

  .job-stage__panel,
  .job-stage--bamboo .job-status {
    grid-column: 2;
  }

  .job-stage--bamboo .job-stage__frame {
    grid-template-columns: 84px 1fr;
  }

  .job-stage--bamboo .job-status {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .job-stage__foot {
    grid-template-columns: 1fr;
  }

  .job-stage__quest {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .job-stage__frame {
    grid-template-columns: 1fr;
  }

  .job-stage__rail {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    grid-row: auto;
    padding-bottom: 0.35rem;
  }

  .job-stage__icon {
    width: 72px;
    min-height: 64px;
  }

  .job-stage__stage {
    min-height: 240px;
  }

  .job-stage__art {
    width: min(62%, 210px);
    max-height: 210px;
  }

  .job-stage__meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .jq-modal {
    padding: 0.5rem;
    align-items: stretch;
  }

  .jq-modal__shell {
    max-height: 96vh;
    border-radius: 18px;
  }

  .jq-modal__identity img {
    width: 52px;
    height: 52px;
  }
}

/* Promo / gallery */
.promo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.promo-card {
  display: block;
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.promo-card img,
img.promo-card {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.side-card__banner {
  margin: -1.15rem -1.2rem 0.85rem;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.side-card__banner img {
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.side-brand {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 0.75rem;
}

.feature-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.feature-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-title-row h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.boss-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
}

.boss-panel img {
  width: 100%;
  border-radius: 12px;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-row__thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.media-row h2 { margin: 0 0 0.2rem; }
.media-row p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.download-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 1rem;
}

.download-row__visual {
  border-radius: 12px;
  overflow: hidden;
  height: 72px;
}

.download-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-tip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.npc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.npc-chip:hover { transform: translateY(-2px); }

.npc-chip img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.map-card--photo {
  padding: 0;
  overflow: hidden;
}

.map-card--photo img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.map-card--photo div {
  padding: 0.9rem 1rem 1.05rem;
}

.rank-mascot {
  image-rendering: pixelated;
}

@media (max-width: 980px) {
  .feature-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .boss-panel {
    grid-template-columns: 1fr;
  }

  .download-row {
    grid-template-columns: 1fr;
  }

  .download-row__visual {
    height: 100px;
  }

  .promo-strip {
    grid-template-columns: 1fr;
  }

  .npc-actor {
    width: 96px;
  }

  .npc-actor img {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 560px) {
  .npc-stage {
    gap: 0.75rem;
  }

  .feature-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .feature-gallery img {
    height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .npc-actor img {
    animation: none !important;
  }
}

/* ========== News page ========== */
.page-news .main {
  max-width: none;
}

.news-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: clamp(200px, 28vw, 280px);
  min-height: clamp(200px, 28vw, 280px);
  margin-bottom: 1.15rem;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.news-hero--compact {
  height: clamp(200px, 28vw, 280px);
  min-height: clamp(200px, 28vw, 280px);
  margin-bottom: 0.9rem;
}

.news-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: none;
  filter: saturate(0.92) brightness(1.02) contrast(1);
  animation: none;
}

.news-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255, 252, 250, 0.45) 0%, rgba(255, 255, 255, 0.12) 42%, transparent 68%);
}

.news-hero__glow {
  display: none;
}

.news-hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.15rem, 3vw, 2rem);
  max-width: 34rem;
}

.news-hero__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.news-hero__content h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.news-hero__lead {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.news-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.news-strip img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.news-table-wrap {
  margin-bottom: 1.15rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--panel-solid);
  border: 1.5px solid rgba(148, 190, 215, 0.4);
  box-shadow: var(--shadow);
}

.news-table-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding: 0 0.15rem;
}

.news-table-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.news-table-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.news-table-scroll {
  overflow-x: auto;
  border-radius: 14px;
  border: 1.5px solid rgba(148, 190, 215, 0.32);
  background: rgba(255, 255, 255, 0.55);
}

.news-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

.news-table th,
.news-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(148, 190, 215, 0.22);
}

.news-table th {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(232, 244, 252, 0.75);
  white-space: nowrap;
}

.news-table tbody tr:last-child td {
  border-bottom: none;
}

.news-table tbody tr:hover td {
  background: rgba(232, 244, 252, 0.45);
}

.news-table td:first-child {
  width: 4.5rem;
}

.news-table td:last-child {
  width: 7.5rem;
  white-space: nowrap;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.news-table a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.45;
}

.news-table a:hover {
  color: var(--accent-deep);
}

.news-table__title {
  font-weight: 600;
  color: var(--ink);
  max-width: 16rem;
}

.news-table__excerpt {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 28rem;
}

.tag--patch { background: var(--accent-deep); }

@keyframes news-hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes news-glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes news-shot-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .news-strip {
    grid-template-columns: 1fr;
  }

  .news-strip img {
    height: 72px;
  }

  .news-hero--compact {
    min-height: 150px;
  }

  .news-table__excerpt {
    max-width: 14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-hero__bg,
  .news-hero__glow {
    animation: none !important;
  }
}

/* ========== Server page ========== */
.page-server .main {
  max-width: none;
}

.page-guide .main > .page-banner,
.page-guide .main > .tabs {
  flex: 0 0 auto;
}

.page-guide .main > .tab-panel.is-active {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-guide .main > .tab-panel.is-active > .job-stage,
.page-guide .main > .tab-panel.is-active > .map-grid,
.page-guide .main > .tab-panel.is-active > .monster-grid {
  flex: 1 1 auto;
}

.page-likeshare .main,
.page-member .main,
.page-server .main {
  gap: 0;
}

/* Guide polish — frames */
.page-guide .page-banner {
  border: 1.5px solid rgba(148, 190, 215, 0.45);
  height: clamp(200px, 28vw, 280px);
  min-height: clamp(200px, 28vw, 280px);
}

.page-guide .page-banner__img {
  object-position: center 40%;
}

.page-guide .tabs {
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(148, 190, 215, 0.38);
  width: fit-content;
  max-width: 100%;
}

.page-guide .job-stage {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  flex: 1 1 auto;
}

/* Guide: job rail as horizontal top bar (all desktop sizes) */
.page-guide .job-stage--bamboo .job-stage__frame {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  grid-template-rows: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.page-guide .job-stage__rail-wrap {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.page-guide .job-stage__rail-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3a6f90;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(40, 80, 120, 0.12);
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.page-guide .job-stage__rail-btn:hover:not(:disabled) {
  background: #fff;
  transform: scale(1.06);
}

.page-guide .job-stage__rail-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-guide .job-stage--bamboo .job-stage__rail {
  grid-column: auto;
  grid-row: auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 147, 181, 0.55) transparent;
  -webkit-overflow-scrolling: touch;
}

.page-guide .job-stage--bamboo .job-stage__rail::-webkit-scrollbar {
  height: 6px;
  display: block;
}

.page-guide .job-stage--bamboo .job-stage__rail::-webkit-scrollbar-thumb {
  background: rgba(74, 147, 181, 0.55);
  border-radius: 999px;
}

.page-guide .job-stage--bamboo .job-stage__rail::-webkit-scrollbar-track {
  background: transparent;
}

.page-guide .job-stage--bamboo .job-stage__icon {
  width: 76px;
  min-width: 76px;
  min-height: 58px;
  flex-shrink: 0;
}

.page-guide .job-stage--bamboo .job-stage__icon img {
  width: 40px;
  height: 40px;
}

.page-guide .job-stage--bamboo .job-stage__mid,
.page-guide .job-stage--bamboo .job-status {
  grid-row: 2;
}

.page-guide .job-stage__head h2 {
  color: #fff;
  text-shadow: 0 2px 16px rgba(10, 30, 50, 0.65);
}

.page-guide .job-stage__head p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(10, 30, 50, 0.55);
}

.page-guide .job-stage__mark {
  background: linear-gradient(90deg, #7ec8ff, rgba(126, 200, 255, 0.15));
  box-shadow: 0 0 12px rgba(126, 200, 255, 0.45);
}

.page-guide .map-card--photo,
.page-guide .monster-card {
  border: 1.5px solid rgba(148, 190, 215, 0.4);
  overflow: hidden;
}

.page-guide .map-card--photo img {
  height: 120px;
}

.page-guide .map-grid,
.page-guide .monster-grid {
  width: 100%;
  max-width: 100%;
  align-content: start;
  align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.page-guide .tab-btn {
  font-size: 0.95rem;
  padding: 0.55rem 1.25rem;
}

/* Guide large screens — fill width, bigger type/cards */
@media (min-width: 1440px) {
  .page-guide .page-banner {
    height: clamp(200px, 28vw, 280px);
    min-height: clamp(200px, 28vw, 280px);
  }

  .page-guide .page-banner__content {
    padding: 1.75rem 1.75rem;
  }

  .page-guide .page-banner__content h1 {
    font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  }

  .page-guide .page-banner__content p {
    font-size: 1.05rem;
  }

  .page-guide .tabs {
    padding: 0.5rem;
  }

  .page-guide .tab-btn {
    font-size: 1.02rem;
    padding: 0.62rem 1.4rem;
  }

  .page-guide .job-stage {
    max-width: 100%;
  }

  .page-guide .map-grid,
  .page-guide .monster-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 1600px) {
  .page-guide .job-stage {
    max-width: 100%;
  }

  .page-guide .job-stage__head h2 {
    font-size: clamp(1.55rem, 2vw, 2rem);
  }

  .page-guide .job-stage__head p {
    font-size: 1.05rem;
  }

  .page-guide .job-stage--bamboo .job-stage__frame {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.95fr);
    gap: 1.25rem;
  }

  .page-guide .job-stage--bamboo .job-stage__rail {
    max-height: none;
    padding: 0.55rem 0.85rem;
    gap: 0.4rem;
  }

  .page-guide .job-stage__rail-btn {
    width: 44px;
    height: 44px;
    font-size: 1.55rem;
  }

  .page-guide .job-stage--bamboo .job-stage__icon {
    width: 96px;
    min-width: 96px;
    min-height: 76px;
  }

  .page-guide .job-stage--bamboo .job-stage__icon img {
    width: 52px;
    height: 52px;
  }

  .page-guide .job-stage--bamboo .job-stage__icon-name {
    font-size: 0.72rem;
  }

  .page-guide .job-stage--bamboo .job-stage__art {
    width: min(100%, 380px);
  }

  .page-guide .job-stage--bamboo .job-stage__stage {
    min-height: 340px;
  }

  .page-guide .job-tipcard__banner span {
    font-size: 1.1rem;
  }

  .page-guide .job-tipcard__tips li {
    font-size: 1rem;
  }

  .page-guide .job-slider__track {
    height: 12px;
  }

  .page-guide .job-slider__track > em {
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
  }

  .page-guide .job-slider strong,
  .page-guide .job-slider .job-stat__val {
    font-size: 0.82rem;
  }

  .page-guide .job-radar {
    transform: scale(1.08);
    transform-origin: top center;
  }

  .page-guide .map-grid,
  .page-guide .monster-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
  }

  .page-guide .map-card--photo img {
    height: 168px;
  }

  .page-guide .map-card--photo div {
    padding: 1.1rem 1.2rem 1.25rem;
  }

  .page-guide .map-card h3,
  .page-guide .monster-card h3 {
    font-size: 1.25rem;
  }

  .page-guide .map-card p,
  .page-guide .monster-card p,
  .page-guide .job-card__summary {
    font-size: 1.02rem;
  }

  .page-guide .monster-card {
    padding: 1.35rem 1.45rem;
  }

  .page-guide .monster-card__meta {
    font-size: 0.92rem;
    gap: 0.45rem;
  }

  .page-guide .guide-note {
    font-size: 1.05rem;
  }
}

@media (min-width: 1920px) {
  .page-guide .page-banner {
    height: clamp(200px, 28vw, 280px);
    min-height: clamp(200px, 28vw, 280px);
  }

  .page-guide .job-stage--bamboo .job-stage__frame {
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.9fr);
    gap: 1.45rem;
  }

  .page-guide .job-stage--bamboo .job-stage__icon {
    width: 104px;
    min-width: 104px;
    min-height: 82px;
  }

  .page-guide .job-stage--bamboo .job-stage__icon img {
    width: 56px;
    height: 56px;
  }

  .page-guide .job-stage--bamboo .job-stage__art {
    width: min(100%, 420px);
  }

  .page-guide .job-slider__track {
    height: 14px;
  }

  .page-guide .map-grid,
  .page-guide .monster-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.4rem;
  }

  .page-guide .map-card--photo img {
    height: 200px;
  }

  .page-guide .map-card h3,
  .page-guide .monster-card h3 {
    font-size: 1.35rem;
  }

  .page-guide .map-card p,
  .page-guide .monster-card p,
  .page-guide .job-card__summary {
    font-size: 1.08rem;
  }
}

@media (min-width: 2200px) {
  .page-guide .job-stage {
    max-width: 100%;
  }

  .page-guide .job-stage--bamboo .job-stage__icon {
    width: 112px;
    min-width: 112px;
    min-height: 88px;
  }

  .page-guide .job-stage--bamboo .job-stage__icon img {
    width: 60px;
    height: 60px;
  }

  .page-guide .map-grid,
  .page-guide .monster-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }

  .page-guide .map-card--photo img {
    height: 220px;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .page-guide .job-stage--bamboo .job-stage__frame {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
    gap: 0.7rem;
  }

  .page-guide .job-stage--bamboo .job-stage__icon {
    width: 70px;
    min-width: 70px;
  }
}

@media (max-width: 900px) {
  .page-guide .job-stage--bamboo .job-stage__frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .page-guide .job-stage__rail-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .page-guide .job-stage--bamboo .job-stage__rail {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
  }

  .page-guide .job-stage--bamboo .job-stage__mid {
    grid-row: 2;
  }

  .page-guide .job-stage--bamboo .job-status {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

@media (max-width: 980px) {
  .page-guide .tabs {
    width: 100%;
    justify-content: center;
  }

  .page-guide .job-stage {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-guide .job-stage__head h2 {
    font-size: 1.2rem;
  }

  .page-guide .job-stage__head p {
    font-size: 0.82rem;
    padding: 0 0.35rem;
  }

  .page-guide .job-stage--bamboo .job-stage__rail {
    max-height: none;
    border-radius: 18px;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.45rem;
  }

  .page-guide .job-stage--bamboo .job-stage__icon {
    width: 72px;
    min-width: 72px;
  }

  .page-guide .map-grid,
  .page-guide .monster-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Like & Share (player) ========== */
.page-likeshare .main { max-width: none; }

.ls-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  background: linear-gradient(90deg, #f4f8fb 0%, #eef5fa 100%);
}

.ls-hero--split {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.2fr);
  align-items: stretch;
  height: clamp(210px, 28vw, 300px);
  min-height: clamp(210px, 28vw, 300px);
}

.ls-hero__art {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.ls-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* โชว์ฝั่งตัวละคร + ป้าย LIKE & SHARE */
  object-position: 88% 42%;
}

.ls-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.1rem);
  max-width: none;
}

.ls-hero__kicker {
  margin: 0 0 0.45rem;
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.ls-hero__content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.12;
  font-weight: 800;
}

.ls-hero__lead {
  margin: 0 0 1.05rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  max-width: 28rem;
}

.ls-hero__user {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.ls-hero__user strong { color: var(--accent-deep); }

.ls-hero .btn {
  align-self: flex-start;
  font-size: 0.98rem;
  padding: 0.7rem 1.25rem;
}

.ls-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  border-radius: 18px;
  background: var(--panel-solid);
  border: 1.5px solid rgba(148, 190, 215, 0.38);
  box-shadow: var(--shadow);
}
.ls-steps li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 190, 215, 0.28);
}
.ls-steps span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.ls-steps strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.ls-steps em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.ls-empty {
  text-align: center;
  padding: 2.4rem 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel-solid);
  border: 1.5px solid rgba(148, 190, 215, 0.4);
  box-shadow: var(--shadow);
}
.ls-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  background: rgba(181, 223, 240, 0.45);
}
.ls-empty h2 { margin: 0 0 0.35rem; }
.ls-empty p { margin: 0; color: var(--ink-soft); }

.ls-list { display: grid; gap: 1.2rem; margin-bottom: 1.4rem; }

.ls-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) 1.2fr;
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel-solid);
  border: 1.5px solid rgba(148, 190, 215, 0.4);
  box-shadow: var(--shadow);
  animation: news-shot-rise 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
.ls-card__gallery {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(232, 244, 252, 0.85), rgba(245, 250, 255, 0.55));
}
.ls-card__gallery figure { margin: 0; }
.ls-card__gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  display: block;
  box-shadow: 0 10px 24px rgba(40, 80, 120, 0.1);
  transition: transform 0.35s ease;
}
.ls-card__gallery figure:hover img { transform: scale(1.03); }
.ls-card__gallery figcaption {
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ls-card__body { padding: 1.25rem 1.3rem 1.35rem; }
.ls-card__head { margin-bottom: 0.9rem; }
.ls-card__quota {
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(232, 244, 252, 0.7);
  border: 1px solid rgba(148, 190, 215, 0.3);
}
.ls-card__quota-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.ls-card__quota-top strong {
  color: var(--accent-deep);
  font-size: 0.95rem;
}
.ls-card__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 190, 215, 0.28);
  overflow: hidden;
}
.ls-card__bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fc6e0, #4a93b5);
}
.ls-card__body h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.ls-blocks {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}
.ls-block {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(148, 190, 215, 0.3);
}
.ls-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.ls-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.ls-block--reward {
  background: rgba(213, 240, 230, 0.5);
  border-color: rgba(108, 188, 154, 0.38);
}
.ls-reward-list {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.ls-reward-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(108, 188, 154, 0.28);
  font-size: 0.9rem;
}
.ls-reward-list__name {
  font-weight: 600;
  color: var(--ink);
}
.ls-reward-list__qty {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(109, 179, 212, 0.15);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
}
.ls-block--rules {
  background: rgba(253, 232, 218, 0.4);
  border-color: rgba(240, 168, 136, 0.35);
}

.ls-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}
.ls-card__limit {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b57a3a;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(240, 184, 122, 0.22);
}

.ls-submit {
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(232, 244, 252, 0.9), rgba(255, 255, 255, 0.7));
  border: 1.5px solid rgba(148, 190, 215, 0.42);
  padding: 0.35rem 0.9rem 0.9rem;
}
.ls-submit summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-deep);
  padding: 0.55rem 0;
  list-style: none;
}
.ls-submit summary::-webkit-details-marker { display: none; }
.ls-submit summary::after {
  content: "＋";
  float: right;
  opacity: 0.7;
}
.ls-submit[open] summary::after { content: "－"; }
.ls-submit__form {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.25rem;
}
.ls-submit__form > label { display: grid; gap: 0.3rem; }
.ls-submit__form > label > span,
.ls-upload__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.ls-submit__form input[type="text"] {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border-radius: 11px;
  border: 1.5px solid rgba(148, 190, 215, 0.4);
  background: #fff;
}

.ls-upload {
  display: grid;
  gap: 0.35rem;
}
.ls-dropzone {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 16px;
  border: 1.5px dashed rgba(110, 168, 205, 0.65);
  background:
    linear-gradient(160deg, rgba(236, 247, 255, 0.95), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(148, 190, 215, 0.08) 8px,
      rgba(148, 190, 215, 0.08) 16px
    );
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ls-dropzone:hover,
.ls-dropzone.is-drag {
  border-color: var(--accent-deep);
  border-style: solid;
  box-shadow: 0 10px 28px rgba(90, 150, 190, 0.18);
  transform: translateY(-1px);
}
.ls-dropzone.is-drag {
  background: linear-gradient(160deg, rgba(210, 236, 252, 0.98), rgba(255, 255, 255, 0.95));
}
.ls-dropzone.has-file {
  border-style: solid;
  border-color: rgba(110, 168, 205, 0.55);
  background: #fff;
  cursor: default;
}
.ls-dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.ls-dropzone.has-file .ls-dropzone__input {
  pointer-events: none;
}
.ls-dropzone__idle {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem;
  text-align: center;
}
.ls-dropzone.has-file .ls-dropzone__idle {
  display: none;
}
.ls-dropzone__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  color: var(--accent-deep);
  background: linear-gradient(145deg, rgba(190, 225, 245, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow: 0 6px 16px rgba(100, 160, 200, 0.2);
  margin-bottom: 0.2rem;
}
.ls-dropzone__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1.35;
}
.ls-dropzone__hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.ls-dropzone__preview {
  display: none;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
}
.ls-dropzone.has-file .ls-dropzone__preview {
  display: grid;
}
.ls-dropzone__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 190, 215, 0.35);
  background: rgba(232, 244, 252, 0.6);
}
.ls-dropzone__meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.ls-dropzone__name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ls-dropzone__size {
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.ls-dropzone__clear {
  position: relative;
  z-index: 3;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a4a5a;
  background: rgba(255, 230, 235, 0.9);
  border: 1px solid rgba(200, 130, 145, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ls-dropzone__clear:hover {
  background: #ffe0e8;
  transform: translateY(-1px);
}
@media (max-width: 520px) {
  .ls-dropzone__preview {
    grid-template-columns: 64px 1fr;
  }
  .ls-dropzone__clear {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.ls-history {
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel-solid);
  border: 1.5px solid rgba(148, 190, 215, 0.4);
  box-shadow: var(--shadow);
}
.ls-history__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ls-history__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.ls-history__head h2 { margin: 0; font-size: 1.2rem; }
.ls-history__head > p { margin: 0; color: var(--ink-muted); font-size: 0.85rem; }
.ls-history__empty {
  text-align: center;
  padding: 1.4rem 1rem;
  border-radius: 14px;
  background: rgba(232, 244, 252, 0.45);
  border: 1px dashed rgba(148, 190, 215, 0.45);
}
.ls-history__empty p { margin: 0 0 0.75rem; color: var(--ink-muted); }
.ls-history__table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1.5px solid rgba(148, 190, 215, 0.3);
}
.ls-history__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 580px;
  background: rgba(255, 255, 255, 0.55);
}
.ls-history__table th,
.ls-history__table td {
  text-align: left;
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid rgba(148, 190, 215, 0.2);
  vertical-align: middle;
}
.ls-history__table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(232, 244, 252, 0.8);
}
.ls-history__table tbody tr:hover td { background: rgba(232, 244, 252, 0.4); }
.ls-history__table tbody tr:last-child td { border-bottom: none; }
.ls-history__title { font-weight: 600; color: var(--ink); }
.ls-history__proof {
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(148, 190, 215, 0.35);
  line-height: 0;
}
.ls-history__proof img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  display: block;
}
.ls-history__table time { color: var(--ink-muted); font-size: 0.84rem; }
.ls-status {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.ls-status--pending { background: rgba(240, 184, 122, 0.25); color: #b57a3a; }
.ls-status--approved { background: rgba(108, 188, 154, 0.22); color: #2f7a5c; }
.ls-status--rejected { background: rgba(224, 136, 152, 0.2); color: #c45b6d; }

@media (max-width: 900px) {
  .ls-card { grid-template-columns: 1fr; }
  .ls-card__gallery { grid-template-columns: 1fr 1fr; }
  .ls-steps { grid-template-columns: 1fr; }

  .ls-hero--split {
    grid-template-columns: 1fr;
    height: clamp(240px, 62vw, 320px);
    min-height: clamp(240px, 62vw, 320px);
  }

  .ls-hero__art {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .ls-hero__art img {
    object-position: 75% 40%;
  }

  .ls-hero__content {
    z-index: 1;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.92) 0%, rgba(247, 250, 252, 0.72) 70%, rgba(247, 250, 252, 0.35) 100%);
  }

  .page-banner,
  .news-hero,
  .news-hero--compact {
    height: clamp(190px, 48vw, 260px);
    min-height: clamp(190px, 48vw, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-card { animation: none !important; }
}
