/* ClassicStory+ — Maple World (live) — map backgrounds + cream panels */

:root {
  --ink: #1c2430;
  --cream: #fff8ee;
  --cream-soft: #5c5348;
  --cream-mute: #8a8074;
  --line: rgba(28, 36, 48, 0.12);
  --maple: #e85d4c;
  --maple-2: #ff7a66;
  --panel: #fff8ee;
  --panel-solid: #fff8ee;
  --bg: #2a3544;
  --bg-2: #fff8ee;
  --bg-3: #fff;
  --sage: #3f9d3a;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1100px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.ms-body,
body.cs-theme-world {
  min-height: 100vh;
  font: 15px/1.6 var(--font);
  color: var(--ink);
  background: #2a3544;
}

a { color: #c24a35; text-decoration: none; }
a:hover { color: #8f2f1f; }

.ms-announce {
  position: relative;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 8px 12px;
  background: #1c2430;
  color: #f3e9d7;
  font-size: 12.5px;
}
.ms-announce strong { color: #ffb08a; }
.ms-announce a { color: #9ec5ff; font-weight: 700; }

.ms-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ms-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  filter: saturate(1.12) brightness(0.92) contrast(1.05);
}

/* Soft veil — richer map color, less washed out */
.ms-bg-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 28, 40, 0.28) 0%, rgba(18, 28, 40, 0.12) 38%, rgba(20, 26, 34, 0.38) 100%),
    radial-gradient(900px 480px at 50% 20%, rgba(255, 248, 238, 0.08), transparent 65%);
}

.ms-nav,
.ms-content,
.ms-foot { position: relative; z-index: 2; }

/* Nav — same structure as live site */
.ms-nav {
  background: rgba(255, 248, 238, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.ms-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ms-nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 17px var(--display);
  color: var(--ink);
  flex-shrink: 0;
}
.ms-nav__brand img { width: 22px; height: 22px; }
.ms-nav__brand span { color: var(--maple); }

.ms-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1;
}
.ms-nav__link {
  padding: 6px 11px;
  border-radius: 8px;
  font: 600 13px var(--font);
  color: var(--cream-soft);
}
.ms-nav__link:hover {
  color: var(--ink);
  background: rgba(28, 36, 48, 0.06);
}
.ms-nav__link.is-active {
  color: #fff;
  background: var(--maple);
}

.ms-nav__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Normal buttons */
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font: 700 13.5px var(--font);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, background 0.15s;
}
.ms-btn--lg { padding: 13px 24px; font-size: 14.5px; }
.ms-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--maple-2), var(--maple));
  box-shadow: 0 6px 18px rgba(232, 93, 76, 0.25);
}
.ms-btn--primary:hover { filter: brightness(1.05); color: #fff; transform: translateY(-1px); }
.ms-btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}
.ms-btn--ghost:hover {
  background: rgba(28, 36, 48, 0.05);
  color: var(--ink);
}
.ms-btn--soft {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.ms-btn--soft:hover { background: #fff4e8; color: var(--ink); }

.ms-content {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

/* Hero — live layout */
.ms-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}
.ms-hero__copy {
  padding: 22px 24px;
  max-width: 540px;
  background: rgba(255, 248, 238, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.ms-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 93, 76, 0.35);
  background: rgba(232, 93, 76, 0.12);
  color: #c24a35;
  font: 700 11px var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ms-hero__copy h1 {
  margin: 0 0 12px;
  font: 700 clamp(2.4rem, 5vw, 3.4rem)/1.05 var(--display);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.ms-hero__copy h1 span { color: var(--maple); }
.ms-hero__copy p {
  margin: 0 0 22px;
  max-width: 460px;
  color: var(--cream-soft);
  font-size: 15.5px;
}
.ms-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.ms-hero__actions .ms-btn--ghost {
  background: #fff;
  border-color: rgba(28, 36, 48, 0.18);
  color: var(--ink);
}
.ms-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--cream-soft);
  font: 600 13px var(--font);
}
.ms-hero__meta strong { color: var(--ink); }
.ms-hero__meta .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ms-hero__meta .live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3f9d3a;
  box-shadow: 0 0 0 4px rgba(63,157,58,.18);
}

.ms-leader {
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.ms-leader__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.ms-leader__head h2 {
  margin: 0;
  font: 700 16px var(--display);
  color: var(--ink);
}
.ms-leader__head a { font: 600 12px var(--font); }
.ms-leader__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.ms-leader__list li {
  display: grid;
  grid-template-columns: 28px 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.ms-leader__list li:last-child { border-bottom: none; }
.ms-leader__rank {
  font: 700 13px var(--display);
  color: #8a8074;
  text-align: center;
}
.ms-leader__list li:nth-child(1) .ms-leader__rank { color: #c9952c; }
.ms-leader__list li:nth-child(2) .ms-leader__rank { color: #8e97a8; }
.ms-leader__list li:nth-child(3) .ms-leader__rank { color: #b2784a; }
.ms-leader__list img {
  width: 40px; height: 40px;
  object-fit: contain; object-position: center top;
  image-rendering: pixelated;
  background: rgba(255,255,255,.8);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.ms-leader__name { font: 700 13.5px var(--font); color: var(--ink); }
.ms-leader__job { display: block; font: 600 11px var(--font); color: #8a8074; }
.ms-leader__lv { font: 800 14px var(--display); color: var(--maple); }
.ms-online-dot {
  display: inline-block;
  width: 7px; height: 7px; margin-right: 4px;
  border-radius: 50%; background: #3f9d3a;
  vertical-align: middle;
}

/* Jump cards */
.ms-jumps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.ms-jump {
  padding: 16px;
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream-soft);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}
.ms-jump:hover {
  border-color: rgba(232, 93, 76, 0.4);
  color: var(--ink);
  background: #fff;
}
.ms-jump strong {
  display: block;
  font: 700 14px var(--font);
  color: var(--ink);
  margin-bottom: 3px;
}
.ms-jump span { font-size: 12.5px; color: #8a8074; }

.ms-ribbon {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.ms-event {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: #fff;
  display: block;
  box-shadow: 0 12px 28px rgba(40,55,70,.15);
}
.ms-event__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(28,36,48,.15), rgba(28,36,48,.72)),
    url("/img/summer-hero-art.png") center 35% / cover no-repeat;
}
.ms-event__body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ms-event__tag {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--maple);
  color: #fff;
  font: 800 10px var(--font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ms-event h3 { margin: 0 0 6px; font: 700 22px var(--display); color: #fff; }
.ms-event p { margin: 0; color: rgba(255,248,238,.9); font-size: 13.5px; max-width: 360px; }

.ms-notes {
  background: rgba(255, 248, 238, 0.93);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}
.ms-notes h2 { margin: 0 0 12px; font: 700 15px var(--display); color: var(--ink); }
.ms-notes ul { list-style: none; margin: 0; padding: 0; }
.ms-notes li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--cream-soft);
}
.ms-notes li:last-child { border-bottom: none; }
.ms-notes time {
  flex-shrink: 0;
  width: 48px;
  font: 700 12px var(--font);
  color: var(--maple);
}

.ms-cta-block {
  text-align: center;
  padding: 36px 20px;
  border-radius: 16px;
  border: 1px dashed rgba(232, 93, 76, 0.4);
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,248,238,.94));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.ms-cta-block h2 { margin: 0 0 8px; font: 700 24px var(--display); color: var(--ink); }
.ms-cta-block p { margin: 0 0 18px; color: #8a8074; }
.ms-cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Inner pages */
.ms-page-head { margin-bottom: 18px; }
.ms-page-head h1 {
  margin: 0 0 6px;
  font: 700 28px var(--display);
  color: #fff8ee;
  text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 8px 20px rgba(0,0,0,.25);
}
.ms-page-head p {
  margin: 0;
  color: rgba(255, 248, 238, 0.9);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  max-width: 560px;
}

.ms-card {
  background: rgba(255, 248, 238, 0.93);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.ms-card h2 {
  margin: 0 0 8px;
  font: 700 20px var(--display);
  color: var(--ink);
}
.ms-card p { margin: 0 0 12px; color: var(--cream-soft); }

.ms-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.ms-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ms-step {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.ms-step:last-child { border-bottom: 0; }
.ms-step__n {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maple);
  color: #fff;
  font: 700 12px var(--font);
}
.ms-step strong { display: block; margin-bottom: 2px; color: var(--ink); }
.ms-step span { color: #8a8074; font-size: 13px; }

.ms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.ms-table th, .ms-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.ms-table th {
  background: rgba(255,255,255,.85);
  font: 700 11px var(--font);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #8a8074;
}

.ms-lib-card {
  display: block;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink) !important;
  box-shadow: 0 6px 14px rgba(40,55,70,.08);
}
.ms-lib-card:hover { border-color: rgba(232,93,76,.4); }
.ms-lib-card strong { display: block; margin-bottom: 4px; }
.ms-lib-card span { font-size: 12.5px; color: #8a8074; }

.ms-form label {
  display: block;
  margin: 0 0 6px;
  font: 600 13px var(--font);
  color: var(--cream-soft);
}
.ms-form input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: 14px var(--font);
  color: var(--ink);
}
.ms-form .ms-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: #8a8074;
}

.ms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ms-foot {
  margin-top: auto;
  border-top: 1px solid rgba(28,36,48,.1);
  padding: 22px 20px;
  text-align: center;
  background: rgba(255, 248, 238, 0.9);
  color: #8a8074;
  font-size: 12.5px;
}
.ms-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font: 700 15px var(--display);
  color: var(--ink);
}
.ms-foot__brand span { color: var(--maple); }
.ms-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 10px;
}
.ms-foot nav a {
  font: 600 12.5px var(--font);
  color: var(--cream-soft);
}
.ms-foot nav a:hover { color: var(--ink); }

/* Floating MapleStory lofi player */
.ms-music {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--font);
}
.ms-music__fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(28, 36, 48, 0.12);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(18, 28, 40, 0.22);
  cursor: pointer;
  font: 700 13px var(--font);
}
.ms-music__fab:hover { background: #fff; }
.ms-music__fab.is-playing {
  border-color: rgba(232, 93, 76, 0.35);
  color: #c24a35;
}
.ms-music__fab-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--maple);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}
.ms-music__fab.is-playing .ms-music__fab-icon {
  animation: ms-music-pulse 1.4s ease-in-out infinite;
}
@keyframes ms-music-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.ms-music__panel {
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(28, 36, 48, 0.12);
  background: rgba(255, 248, 238, 0.97);
  box-shadow: 0 16px 40px rgba(18, 28, 40, 0.28);
  color: var(--ink);
}
.ms-music__panel[hidden] { display: none !important; }
.ms-music__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ms-music__head strong {
  display: block;
  font: 700 15px var(--display);
  color: var(--ink);
}
.ms-music__head span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--cream-soft);
}
.ms-music__close {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a8074;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ms-music__close:hover { background: rgba(28, 36, 48, 0.06); color: var(--ink); }
.ms-music__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #1c2430;
}
.ms-music__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ms-music__frame:empty::after {
  content: "Loading lofi…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #c9bba8;
  font-size: 12.5px;
  text-align: center;
}
.ms-music__bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ms-music__play { min-width: 88px; }
.ms-music__yt {
  font: 600 12.5px var(--font);
  color: var(--cream-soft);
}
.ms-music__yt:hover { color: var(--ink); }

/* Legacy subpage chrome on map world */
.ms-content #main { max-width: none; margin: 0; padding: 0; }
.ms-content .site-page, .ms-content #col-center { max-width: none; }

.cs-theme-world .hero-panel,
.cs-theme-world .card,
.cs-theme-world .mock-shell > .card {
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.cs-theme-world .hero-copy h1 { color: var(--ink); }
.cs-theme-world .hero-copy p,
.cs-theme-world .muted,
.cs-theme-world .step-d { color: var(--cream-soft); }
.cs-theme-world .eyebrow { color: #c24a35; }
.cs-theme-world .card-title {
  color: var(--ink);
  background: rgba(28, 36, 48, 0.04);
  border-bottom: 1px solid var(--line);
}
.cs-theme-world .btn-soft {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.cs-theme-world .btn-soft:hover { background: #fff4e8; color: var(--ink); }
.cs-theme-world .rank-job-tab,
.cs-theme-world .rank-tabs a,
.cs-theme-world .mock-tab {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--cream-soft);
}
.cs-theme-world .rank-job-tab.active,
.cs-theme-world .rank-job-tab:hover,
.cs-theme-world .rank-tabs a.active,
.cs-theme-world .rank-tabs a:hover,
.cs-theme-world .mock-tab.active,
.cs-theme-world .mock-tab:hover {
  background: rgba(232, 93, 76, 0.12);
  border-color: rgba(232, 93, 76, 0.4);
  color: var(--ink);
}
.cs-theme-world .rank-full th { color: #8a8074; }
.cs-theme-world .rank-full td { color: var(--ink); }
.cs-theme-world .rank-full tbody tr:hover td { background: rgba(28, 36, 48, 0.04); }
/* Active-sort stat column - the old --maple-2 (light coral) was tuned for a
   dark background and is too low-contrast on this theme's cream/white cards. */
.rank-stat-hl { font-weight: 800; color: var(--maple); }

/* Character portrait chips on the rankings table - orphaned after the theme
   migration (only ever defined for the old dark ink-maple theme), so images
   rendered at native/unstyled size instead of a clean 40-48px chip. */
.cs-char-avatar {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center top;
  image-rendering: pixelated;
  background: rgba(28, 36, 48, 0.06);
  border-radius: 8px;
}
.rank-char .cs-char-avatar {
  width: 48px;
  height: 48px;
}
.cs-theme-world input,
.cs-theme-world select,
.cs-theme-world textarea {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.cs-theme-world label { color: var(--cream-soft); }
.cs-theme-world .nx-pkg {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.cs-theme-world .cs-main { max-width: none; margin: 0; padding: 0; }

.ms-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.ms-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
}
.ms-theme-switch {
  font: 700 11px var(--font);
  color: var(--cream-soft);
  padding: 6px 8px;
  border-radius: 8px;
}
.ms-theme-switch:hover { color: var(--ink); background: rgba(28, 36, 48, 0.06); }

@media (max-width: 900px) {
  .ms-hero, .ms-ribbon, .ms-grid-2, .ms-grid-3 { grid-template-columns: 1fr; }
  .ms-jumps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ms-nav__toggle { display: flex; }
  .ms-nav__inner { flex-wrap: wrap; position: relative; }
  .ms-nav__links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    padding: 10px;
    margin-top: 4px;
    background: rgba(255, 248, 238, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .ms-nav__links.is-open { display: flex; }
  .ms-nav__actions .ms-btn--ghost { display: none; }
  .ms-jumps { grid-template-columns: 1fr; }
}

/* changes.php — patch notes + skill-changes cards. These classes predate the
   Maple World theme migration and were never ported over (the old dark-theme
   style.css that defined them isn't loaded anymore), so they rendered with no
   styling at all - unreadable plain text/tables. Re-implemented here using
   the current light "cream card" palette instead of the old dark colors. */
.intro-box {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--panel-solid); border: 1px solid var(--line);
  color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.intro-box strong { color: var(--maple); font-size: 15px; }
.intro-box .last-updated { margin-top: 4px; color: var(--cream-soft); font-weight: 700; font-size: 11px; }

.job-section { margin-bottom: 20px; }
.job-title {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 8px;
  padding: 10px 12px;
  color: var(--ink); font-size: 20px; font-weight: 900; font-family: var(--display);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.page-title {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  color: var(--ink);
  font: 800 18px var(--display);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.job-icon {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px;
  background: #fff; border: 1px solid var(--line); font-size: 17px;
}

.spoiler-group { margin-bottom: 8px; }
.spoiler-group summary {
  cursor: pointer; list-style: none; padding: 11px 14px;
  border-radius: var(--radius); background: var(--panel-solid); border: 1px solid var(--line);
  color: var(--ink); font-weight: 900; font-size: 13px; transition: background .15s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.spoiler-group summary:hover { background: #fff; }
.spoiler-group summary::-webkit-details-marker { display: none; }
.spoiler-content {
  margin-top: 5px; padding: 14px 16px;
  background: var(--panel-solid);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}
.spoiler-content p,
.spoiler-content li,
.spoiler-content .muted { color: var(--ink); }
.spoiler-content .muted { color: var(--cream-soft); }
.patch-list { margin: 0; padding-left: 20px; color: var(--ink); }
.patch-list li { margin-bottom: 6px; }

/* Patch-note badges (New/Fix/Buff/QoL/Nerf/Note/Event) */
.ptag {
  display: inline-block; font-size: 9px; font-weight: 800; border-radius: 3px;
  padding: 2px 6px; margin-right: 5px; text-transform: uppercase;
}
.ptag.new  { background: #D4EDDA; color: #155724; }
.ptag.fix  { background: #FFF3CD; color: #856404; }
.ptag.buff { background: #CCE5FF; color: #004085; }
.ptag.nerf { background: #F8D7DA; color: #721C24; }
.ptag.note { background: #E2E3E5; color: #383D41; }

.mock-shell {
  background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); padding: 18px;
}

.skill-card { margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.skill-card-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: rgba(28, 36, 48, 0.03); border-bottom: 1px solid var(--line);
}
.skill-icon {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 20px;
}
.skill-name { font-weight: 900; color: var(--ink); font-size: 14px; }
.skill-meta { color: var(--cream-soft); font-size: 11px; }
.skill-tag {
  margin-left: auto; padding: 3px 8px; border-radius: 999px; color: #fff;
  background: var(--maple); font-size: 10px; font-weight: 900; text-transform: uppercase;
}
.tag-new    { background: #2c9c3e; }
.tag-custom { background: var(--maple); }
.tag-note   { background: #3d78b0; }
.skill-body { padding: 12px 14px; color: var(--ink); font-size: 13px; }
.skill-body p { margin-bottom: 6px; }
.skill-body strong { color: var(--maple); }

.scale-table { width: 100%; border-collapse: collapse; margin-top: 7px; background: #fff; }
.scale-table th, .scale-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
.scale-table th { background: rgba(28, 36, 48, 0.04); color: var(--ink); font-weight: 900; font-size: 12px; }
.scale-table .val { color: var(--maple); font-weight: 900; }

.rate-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rate-table th { background: rgba(28, 36, 48, 0.04); color: var(--ink); padding: 5px 9px; text-align: left; }
.rate-table td { padding: 4px 9px; border-bottom: 1px solid var(--line); color: var(--ink); }
.rate-table tr:hover td { background: rgba(28, 36, 48, 0.03); }

/* Features block (homepage + legacy page styles) */
.home-features {
  margin: 8px 0 22px;
}
.home-features .intro-box {
  margin: 0 0 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.home-features .mock-shell {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.features-page .features-grid {
  align-items: stretch;
  margin-bottom: 4px;
}
.features-page .feature-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
}
.features-page .feature-tile h3 {
  margin: 0 0 8px;
  font: 700 15px var(--display);
  color: var(--ink);
}
.features-page .feature-tile p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream-soft);
}
.features-page .feature-tile p:last-child { margin-bottom: 0; }
.features-page .feature-tile strong { color: var(--maple); }
.features-page .feature-tile a { color: var(--maple); font-weight: 700; }
.features-page .feature-ex {
  font-size: 12px !important;
  color: var(--ink) !important;
}
.features-page .feature-ex code {
  display: inline-block;
  margin: 2px 0;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(28, 36, 48, 0.05);
  font-size: 12px;
}
.features-page .feature-list {
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--cream-soft);
  font-size: 13px;
}
.features-page .feature-list li { margin-bottom: 3px; }
.features-page .intro-box { margin: 14px 0 18px; }
.features-page .intro-box a { color: var(--maple); font-weight: 700; }
@media (max-width: 900px) {
  .features-page .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .features-page .features-grid { grid-template-columns: 1fr; }
}
