@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");

:root {
  --paper: #f7f4ea;
  --paper-light: #163d37;
  --paper-soft: #e9e3d5;
  --brown: #163d37;
  --brown-dark: #0e2723;
  --brown-soft: #5c7a74;
  --gold: #df6e5c;
  --gold-soft: #248b77;
  --red: #c0392b;
  --shadow: 0 1px 2px rgba(22, 61, 55, 0.06), 0 2px 8px rgba(22, 61, 55, 0.06);
  --soft-shadow: 0 16px 32px rgba(22, 61, 55, 0.08);
  --surface: #fbf9f2;
  --surface-2: #efe9dd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--brown);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 10;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 8px 54px 12px;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 8px;
  color: var(--brown);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(22, 61, 55, 0.077);
}

.brand::before {
  width: 10px;
  height: 42px;
  margin-right: 10px;
  border-radius: 6px;
  background: var(--gold);
  content: "";
}

.brand img {
  width: 92px;
  height: 80px;
  margin: 0 -18px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-right: auto;
  overflow: visible;
}

.nav-item {
  position: relative;
}

.nav-item::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  content: "";
}

.nav-trigger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(224, 233, 224, 0.22);
  border-radius: 10px;
  background: var(--gold);
  box-shadow: 2px 2px var(--brown-soft);
  color: var(--brown);
  cursor: pointer;
  font-weight: 800;
}

.nav-trigger:hover,
.nav-item:focus-within .nav-trigger,
.nav-item:hover .nav-trigger,
.nav-item.is-open .nav-trigger {
  background: var(--surface-2);
  color: var(--gold-soft);
  box-shadow: 2px 2px rgba(22, 61, 55, 0.128);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 8px;
  border: 2px solid var(--gold-soft);
  border-radius: 8px;
  background: rgba(253, 250, 242, 0.98);
  box-shadow: 4px 4px 0 rgba(22, 61, 55, 0.176);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu,
.nav-item.is-open .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  background: var(--gold);
  color: var(--brown-dark);
}

.announcement {
  display: flex;
  min-width: min(430px, 100%);
  max-width: 470px;
  border: 2px solid var(--gold-soft);
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}

.announcement strong {
  display: grid;
  min-width: 96px;
  place-items: center;
  padding: 8px 12px;
  color: var(--red);
  font-size: 14px;
}

.announcement-track {
  position: relative;
  flex: 1;
  min-height: 38px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
}

.announcement-track span {
  position: absolute;
  top: 50%;
  left: 100%;
  width: max-content;
  transform: translateY(-50%);
  animation: marquee 16s linear infinite;
}

.announcement-track span:nth-child(2) {
  animation-delay: 8s;
}

@keyframes marquee {
  0% {
    left: 100%;
  }
  100% {
    left: -120%;
  }
}

main {
  padding-bottom: 44px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.36fr);
  gap: 28px;
  margin: 0 50px 40px;
  align-items: stretch;
}

.hero-visual {
  position: relative;
  height: clamp(360px, 42vh, 440px);
  min-height: 0;
  overflow: hidden;
  border: 5px solid rgba(253, 250, 242, 0.8);
  border-radius: 16px;
  background: var(--brown-dark);
  box-shadow: var(--soft-shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(28px, 4vh, 44px) 44px 32px;
  background: linear-gradient(0deg, rgba(22, 61, 55, 0.82), transparent);
  color: #fff;
}

.hero-overlay p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-overlay h1 {
  margin: 0;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.05;
  text-shadow: 3px 3px 0 rgba(22, 61, 55, 0.109);
}

.hero-overlay span {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 24px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 42px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(253, 250, 242, 0.55);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--gold);
}

.update-log {
  height: clamp(360px, 42vh, 440px);
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--brown);
  box-shadow: var(--shadow);
  scrollbar-color: rgba(22, 61, 55, 0.154) rgba(253, 250, 242, 0.5);
}

.update-log::-webkit-scrollbar {
  width: 9px;
}

.update-log::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(253, 250, 242, 0.5);
}

.update-log::-webkit-scrollbar-thumb {
  border: 2px solid rgba(253, 250, 242, 0.72);
  border-radius: 999px;
  background: rgba(22, 61, 55, 0.154);
}

.cm-live-box {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.96), rgba(233, 227, 213, 0.74));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.09);
}

.cm-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cm-live-head span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.cm-live-head a {
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
}

.cm-live-box h2 {
  margin: 0 0 12px;
  color: var(--brown);
  font-size: 24px;
  font-weight: 900;
}

.cm-live-feature {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 10px;
  background: var(--gold);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.115);
  color: var(--brown-dark);
}

.cm-live-feature:hover {
  transform: translateY(-1px);
}

.cm-live-label {
  font-size: 12px;
  font-weight: 900;
}

.cm-live-feature strong {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.cm-live-feature span:last-of-type {
  color: var(--brown-dark);
  font-weight: 900;
  line-height: 1.45;
}

.cm-live-feature small {
  font-weight: 900;
}

.cm-live-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cm-live-mini-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(22, 61, 55, 0.16);
  border-radius: 8px;
  background: rgba(233, 227, 213, 0.82);
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
}

.cm-live-mini-list a:hover {
  border-color: var(--gold);
  background: rgba(253, 250, 242, 0.96);
}

.cm-live-mini-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-live-mini-list strong {
  color: var(--brown-dark);
  font-size: 16px;
}

.hero-section .cm-live-box {
  margin-bottom: 14px;
  padding: 14px;
}

.hero-section .cm-live-box h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-section .cm-live-feature {
  padding: 12px;
}

.hero-section .cm-live-feature strong {
  font-size: 34px;
}

.hero-section .cm-live-feature span:last-of-type {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-section .cm-live-mini-list {
  display: none;
}

.hero-section .panel-head {
  margin-bottom: 10px;
}

.hero-section .panel-head h2 {
  font-size: 22px;
}

.hero-section .update-diary-note {
  margin: -2px 0 10px;
  font-size: 13px;
}

.hero-section .log-list {
  gap: 8px;
}

.hero-section .log-item {
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 10px;
}

.hero-section .log-item strong {
  font-size: 15px;
}

.hero-section .log-item small:not(.log-tag) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

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

.panel-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.panel-head a {
  color: var(--brown);
  font-size: 14px;
  font-weight: 900;
}

.panel-head a:hover {
  color: #248b77;
}

.update-diary-note {
  margin: -6px 0 14px;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 900;
}

.log-list {
  display: grid;
  gap: 12px;
}

.log-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 13px;
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: 2px 2px 8px rgba(22, 61, 55, 0.128);
}

.update-diary-item {
  border: 1px solid rgba(22, 61, 55, 0.144);
}

.log-item:hover {
  transform: translateY(-1px);
}

.log-date {
  color: var(--brown);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.log-item strong,
.log-item small {
  display: block;
}

.log-item strong {
  color: var(--brown);
  font-size: 17px;
}

.log-item small {
  color: var(--brown-soft);
  font-size: 13px;
}

.log-tag {
  width: max-content;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(223, 110, 92, 0.18);
  color: var(--red) !important;
  font-size: 12px !important;
  font-weight: 900;
}

.database-section,
.profession-section {
  padding: 48px 50px;
}

.section-title {
  margin-bottom: 26px;
  text-align: center;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--brown);
  font-size: 32px;
  font-weight: 900;
}

.section-title h2::after {
  display: block;
  width: 58px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: gold;
  content: "";
}

.section-title p {
  margin: 12px auto 0;
  color: var(--brown-soft);
  font-weight: 700;
}

.database-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.database-panel {
  padding: 24px;
  border: 2px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(253, 250, 242, 0.9);
  box-shadow: var(--shadow);
}

.database-panel h3 {
  position: relative;
  margin: 0 0 22px;
  color: var(--brown);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.database-panel h3::after {
  display: block;
  width: 58px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: gold;
  content: "";
}

.database-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 18px;
}

.database-panel-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 10px;
  background: #fffaf0;
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.147);
  color: var(--brown);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.database-panel-button:hover {
  background: var(--gold);
  border-color: var(--brown-soft);
  box-shadow: 3px 3px 0 rgba(22, 61, 55, 0.18);
  color: var(--brown);
  transform: translateY(-1px);
}

.database-panel-button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(280px, 100%);
}

.profession-section {
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.5) 0%, rgba(254, 243, 199, 0.58) 100%);
  box-shadow:
    inset 0 1px 0 rgba(253, 250, 242, 0.34),
    inset 0 -1px 0 rgba(22, 61, 55, 0.06);
}

.profession-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.profession-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.179);
  border-radius: 14px;
  background: var(--brown-dark);
  box-shadow: var(--shadow);
}

.profession-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 61, 55, 0.08) 35%, rgba(22, 61, 55, 0.86) 100%),
    radial-gradient(circle at 50% 20%, rgba(253, 250, 242, 0.16), transparent 50%);
  content: "";
  pointer-events: none;
}

.profession-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease;
}

.profession-card:hover img {
  transform: scale(1.04);
}

.profession-name {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 1;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(to bottom, rgba(22, 61, 55, 0.86), rgba(22, 61, 55, 0.66));
  color: #fff;
}

.profession-name h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
}

.profession-name p {
  margin: 0;
  font-weight: 700;
}

.youtube-section {
  padding: 48px 50px 56px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(254, 243, 199, 0.48), rgba(253, 250, 242, 0.42));
}

.youtube-marquee {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.youtube-marquee::before,
.youtube-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 80px;
  content: "";
  pointer-events: none;
}

.youtube-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.95), transparent);
}

.youtube-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(254, 243, 199, 0.95), transparent);
}

.youtube-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: youtube-marquee 28s linear infinite;
}

.youtube-marquee:hover .youtube-track {
  animation-play-state: paused;
}

.youtube-card {
  display: grid;
  width: min(360px, 78vw);
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.86);
  box-shadow: var(--shadow);
  color: var(--brown);
}

.youtube-card:hover {
  transform: translateY(-2px);
}

.youtube-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brown-dark);
}

.youtube-thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.youtube-card:hover .youtube-thumb img {
  transform: scale(1.04);
}

.youtube-play {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: rgba(223, 110, 92, 0.94);
  box-shadow: 2px 2px 0 rgba(224, 233, 224, 0.38);
  color: var(--brown-dark);
  font-size: 18px;
  font-weight: 900;
}

.youtube-meta {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.youtube-meta small {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.youtube-meta strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--brown);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@keyframes youtube-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .youtube-track {
    animation: none;
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 50px;
  background-image: url("assets/lineage-style/logoimgbk-1.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.site-footer h2 {
  margin: 0 0 8px;
  color: #d97706;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: var(--brown-soft);
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: end;
}

.site-footer a {
  color: #1f2937;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--red);
}

.detail-main {
  padding: 26px clamp(112px, 12vw, 164px) 44px 50px;
}

.detail-hero,
.detail-placeholder {
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.detail-hero {
  display: grid;
  gap: 10px;
  min-height: 280px;
  align-content: end;
  padding: 42px;
  background:
    linear-gradient(0deg, rgba(22, 61, 55, 0.84), rgba(22, 61, 55, 0.24)),
    url("assets/lineage-style/navbar-img-2.webp") center / cover;
  color: #fff;
}

.detail-hero.detail-hero--melee {
  background:
    linear-gradient(90deg, rgba(8, 19, 18, 0.9) 0%, rgba(8, 19, 18, 0.7) 42%, rgba(8, 19, 18, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 19, 18, 0.86) 0%, rgba(8, 19, 18, 0.08) 72%),
    url("assets/lineage-style/profession-melee-group.webp") center 18% / cover no-repeat;
}

.detail-hero.detail-hero--ranged {
  background:
    linear-gradient(90deg, rgba(8, 19, 18, 0.9) 0%, rgba(8, 19, 18, 0.7) 42%, rgba(8, 19, 18, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 19, 18, 0.86) 0%, rgba(8, 19, 18, 0.08) 72%),
    url("assets/lineage-style/profession-ranged-group.webp") center 18% / cover no-repeat;
}

.detail-hero.detail-hero--magic {
  background:
    linear-gradient(90deg, rgba(8, 19, 18, 0.9) 0%, rgba(8, 19, 18, 0.7) 42%, rgba(8, 19, 18, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 19, 18, 0.86) 0%, rgba(8, 19, 18, 0.08) 72%),
    url("assets/lineage-style/profession-magic-duo.webp") center 18% / cover no-repeat;
}

.detail-hero.detail-hero--calculator {
  background:
    linear-gradient(90deg, rgba(8, 19, 18, 0.9) 0%, rgba(8, 19, 18, 0.7) 42%, rgba(8, 19, 18, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 19, 18, 0.86) 0%, rgba(8, 19, 18, 0.08) 72%),
    url("assets/lineage-style/database-transfer-all-classes.webp") center 22% / cover no-repeat;
}

.detail-hero.detail-hero--archive {
  background:
    linear-gradient(90deg, rgba(8, 19, 18, 0.92) 0%, rgba(8, 19, 18, 0.72) 42%, rgba(8, 19, 18, 0.24) 100%),
    linear-gradient(0deg, rgba(8, 19, 18, 0.88) 0%, rgba(8, 19, 18, 0.08) 72%),
    url("assets/lineage-style/database-game-guide-hero.webp") center 32% / cover no-repeat;
}

.detail-hero.detail-hero--channel {
  background:
    linear-gradient(90deg, rgba(8, 19, 18, 0.94) 0%, rgba(8, 19, 18, 0.7) 46%, rgba(8, 19, 18, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 19, 18, 0.86) 0%, rgba(8, 19, 18, 0.04) 74%),
    url("assets/lineage-style/hero-golden-portal.webp") center 44% / cover no-repeat;
}

.detail-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 3px 3px 0 rgba(22, 61, 55, 0.096);
}

.detail-hero p:last-child {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.sponsor-reservation {
  min-height: 112px;
  margin-top: 24px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-block: 1px solid rgba(22, 61, 55, 0.18);
  background: var(--surface-2);
}

.sponsor-reservation-tag,
.sponsor-reservation-status {
  margin: 0;
  font: 700 12px/1.4 ui-monospace, monospace;
  letter-spacing: 0.14em;
}

.sponsor-reservation-tag {
  color: var(--gold);
}

.sponsor-reservation-copy {
  display: grid;
  gap: 3px;
}

.sponsor-reservation-copy strong {
  font-size: 20px;
  font-weight: 900;
}

.sponsor-reservation-copy span {
  color: var(--brown-soft);
  font-size: 14px;
}

.sponsor-reservation-status {
  padding: 8px 10px;
  border: 1px solid rgba(36, 139, 119, 0.35);
  color: var(--gold-soft);
  white-space: nowrap;
}

.detail-placeholder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  padding: 24px;
  background: var(--paper-soft);
}

.detail-placeholder h2 {
  margin: 0 0 12px;
  color: var(--brown);
  font-weight: 900;
}

.detail-placeholder p {
  margin: 0;
  color: var(--brown-soft);
  font-weight: 700;
  line-height: 1.8;
}

.detail-content {
  color: var(--brown-soft);
  font-weight: 700;
}

.detail-lead {
  max-width: 860px;
}

.transfer-class-content {
  display: grid;
  gap: 22px;
}

.transfer-class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.transfer-class-card {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(233, 227, 213, 0.84), rgba(253, 250, 242, 0.72));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.transfer-class-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 7 / 5;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  background: rgba(22, 25, 30, 0.92);
}

.transfer-class-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 220ms ease, filter 220ms ease;
}

.transfer-class-card:hover .transfer-class-image img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.015);
}

.transfer-class-body {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 18px 20px 20px 24px;
}

.transfer-class-body::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 6px;
  background: var(--gold);
  content: "";
}

.transfer-class-body span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.transfer-class-body h3 {
  margin: 0;
  color: var(--brown);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.transfer-class-body p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
}

.transfer-class-skill-block {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.transfer-class-skill-label {
  color: var(--brown-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.transfer-class-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.transfer-class-skills strong {
  padding: 5px 9px;
  border: 1px solid rgba(22, 61, 55, 0.173);
  border-radius: 999px;
  background: rgba(253, 250, 242, 0.78);
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
}

.transfer-class-link,
.profession-detail-back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(22, 61, 55, 0.134);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
  color: var(--brown-dark);
  font-size: 14px;
  font-weight: 900;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.transfer-class-link:hover,
.profession-detail-back:hover {
  background: #c85a49;
  box-shadow: 3px 3px 0 rgba(22, 61, 55, 0.102);
  transform: translateY(-1px);
}

.profession-detail-content {
  display: grid;
  gap: 22px;
}

.profession-detail-hero-card {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(280px, 0.9fr);
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(233, 227, 213, 0.84), rgba(253, 250, 242, 0.72));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.profession-detail-image {
  display: block;
  overflow: hidden;
  border-right: 1px solid rgba(22, 61, 55, 0.06);
  background: rgba(22, 25, 30, 0.92);
}

.profession-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: left top;
}

.profession-detail-info {
  position: relative;
  display: grid;
  align-content: center;
  gap: 13px;
  padding: clamp(22px, 4vw, 34px);
}

.profession-detail-info::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 6px;
  background: var(--gold);
  content: "";
}

.profession-detail-info > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.profession-detail-info h3 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.1;
}

.profession-detail-info p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.8;
}

.profession-detail-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.profession-detail-panels section,
.profession-detail-panel-link {
  padding: 18px 20px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 12px;
  background: rgba(233, 227, 213, 0.76);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.064);
}

.profession-detail-panel-link {
  display: grid;
  min-height: 76px;
  place-items: center;
  color: var(--brown);
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.profession-detail-panel-link:hover,
.profession-detail-panel-link:focus-visible {
  border-color: var(--gold);
  background: rgba(253, 250, 242, 0.94);
  box-shadow: 3px 3px 0 rgba(22, 61, 55, 0.09);
  transform: translateY(-1px);
  outline: none;
}

.profession-detail-panels h3 {
  margin: 0 0 8px;
  color: var(--brown);
  font-size: 20px;
  font-weight: 900;
}

.profession-detail-panel-link h3,
.profession-detail-panels--nav h3 {
  margin: 0;
}

.profession-detail-panels p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.profession-skill-guide {
  display: grid;
  gap: 20px;
}

.strategy-section,
.skill-guide-overview,
.spell-card-section,
#starterSkills,
#craftableSkills,
#heroSkills,
#legendSkills,
#mythicSkills,
#specialSkills {
  scroll-margin-top: 96px;
}

.skill-guide-heading {
  padding: 22px 24px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(233, 227, 213, 0.94), rgba(253, 250, 242, 0.72)),
    radial-gradient(circle at 92% 12%, rgba(223, 110, 92, 0.28), transparent 34%);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.064);
}

.skill-guide-heading span,
.skill-priority-section-head span,
.skill-guide-card-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.skill-guide-heading h3 {
  margin: 6px 0 10px;
  color: var(--brown);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.1;
}

.skill-guide-heading p {
  max-width: 920px;
  margin: 0;
  color: var(--brown-soft);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
}

.skill-guide-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.skill-guide-overview section,
.skill-priority-section,
.skill-video-section,
.strategy-section,
.stat-comparison-section,
.spell-card-section {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.78);
  box-shadow: var(--soft-shadow);
}

.skill-guide-overview h3,
.skill-priority-section-head {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.134);
  background: rgba(253, 250, 242, 0.72);
  color: var(--brown);
  font-size: 22px;
  font-weight: 900;
}

.skill-priority-section-head {
  display: grid;
  gap: 4px;
}

.skill-priority-section-head h3 {
  margin: 0;
  color: var(--brown);
  font-size: 24px;
  font-weight: 900;
}

.skill-guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 14px;
}

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

.skill-guide-card {
  --skill-accent: var(--gold);
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(22, 61, 55, 0.16);
  border-left: 5px solid var(--skill-accent);
  border-radius: 12px;
  background: rgba(253, 250, 242, 0.74);
}

.skill-guide-card--blue {
  --skill-accent: #3b82f6;
}

.skill-guide-card--gold {
  --skill-accent: #f59e0b;
}

.skill-guide-card--special {
  --skill-accent: #b45309;
}

.skill-guide-card-head {
  display: grid;
  gap: 4px;
}

.skill-guide-card-head h4,
.skill-priority-title h4 {
  margin: 0;
  color: var(--brown);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.skill-guide-card p,
.skill-priority-main p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.skill-priority-section--red .skill-priority-section-head {
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.18), rgba(253, 250, 242, 0.72));
}

.skill-priority-section--purple .skill-priority-section-head {
  background: linear-gradient(90deg, rgba(245, 243, 255, 0.18), rgba(253, 250, 242, 0.72));
}

.skill-priority-section--gold .skill-priority-section-head {
  background: linear-gradient(90deg, rgba(223, 110, 92, 0.24), rgba(253, 250, 242, 0.72));
}

.skill-priority-section--special .skill-priority-section-head {
  background: linear-gradient(90deg, rgba(22, 61, 55, 0.07), rgba(253, 250, 242, 0.72));
}

.skill-priority-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.skill-priority-row {
  --skill-priority-accent: var(--gold);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(22, 61, 55, 0.16);
  border-radius: 12px;
  background: rgba(253, 250, 242, 0.62);
}

.skill-priority-row--red {
  --skill-priority-accent: #ef4444;
}

.skill-priority-row--purple {
  --skill-priority-accent: #8b5cf6;
}

.skill-priority-rank {
  display: grid;
  min-height: 44px;
  place-items: center;
  align-self: start;
  padding: 8px;
  border-radius: 10px;
  background: var(--skill-priority-accent);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.07);
  color: #fffaf0;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.skill-priority-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 7px;
}

.skill-priority-title span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(233, 227, 213, 0.8);
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.skill-video-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.skill-video-copy {
  display: grid;
  gap: 14px;
}

.skill-video-copy p,
.spell-card-note {
  margin: 0;
  color: var(--brown-soft);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.75;
}

.skill-video-copy a {
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.skill-video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(80, 54, 32, 0.32);
  border-radius: 12px;
  background: #16120d;
  box-shadow: 0 12px 24px rgba(77, 45, 20, 0.18);
}

.skill-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.strategy-grid,
.strategy-article,
.stat-summary-grid,
.spell-choice-grid {
  display: grid;
  gap: 14px;
  padding: 14px;
}

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

.strategy-article {
  gap: 16px;
}

.strategy-section {
  background:
    linear-gradient(180deg, rgba(233, 227, 213, 0.9), rgba(253, 250, 242, 0.74));
}

.guide-document {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px clamp(22px, 4vw, 48px) 40px;
}

.guide-document h2 {
  margin: 0 0 18px;
  color: var(--brown);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.18;
}

.guide-document-block {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(22, 61, 55, 0.06);
}

.guide-document-block:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.guide-document h3 {
  margin: 0 0 14px;
  color: var(--brown);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 900;
  line-height: 1.25;
}

.guide-document h4 {
  margin: 18px 0 10px;
  color: var(--brown);
  font-size: 19px;
  font-weight: 900;
}

.guide-document p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 17px;
  font-weight: 800;
  line-height: 2;
}

.guide-document p + p {
  margin-top: 12px;
}

.guide-document ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 24px;
  color: var(--brown-soft);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.75;
}

.guide-document blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(253, 250, 242, 0.74);
  color: var(--brown);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.7;
}

.guide-document-note {
  margin-top: 12px !important;
  color: var(--red) !important;
}

.guide-document-conclusion {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.guide-document-conclusion strong {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(223, 110, 92, 0.16);
  color: var(--brown);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.6;
}

.guide-document-takeaways {
  display: grid;
  gap: 8px;
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(253, 250, 242, 0.92), rgba(233, 227, 213, 0.72)),
    radial-gradient(circle at 96% 8%, rgba(223, 110, 92, 0.22), transparent 30%);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.06);
}

.guide-document-takeaways h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.guide-document-takeaways p {
  margin: 0;
  color: var(--brown);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.75;
}

.strategy-card {
  padding: 16px 18px;
  border: 1px solid rgba(22, 61, 55, 0.16);
  border-radius: 12px;
  background: rgba(253, 250, 242, 0.66);
}

.strategy-card h4,
.spell-choice-card h4 {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 19px;
  font-weight: 900;
}

.strategy-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.stat-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(22, 61, 55, 0.115);
}

.stat-summary-grid strong {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(253, 250, 242, 0.76);
  color: var(--brown);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.65;
}

.stat-table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  padding: 14px;
}

.stat-table-wrap,
.spell-diff-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(22, 61, 55, 0.141);
  border-radius: 12px;
  background: rgba(233, 227, 213, 0.68);
}

.stat-comparison-table,
.spell-diff-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
}

.spell-diff-table {
  min-width: 920px;
}

.stat-comparison-table th,
.stat-comparison-table td,
.spell-diff-table th,
.spell-diff-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  border-right: 1px solid rgba(22, 61, 55, 0.06);
  text-align: left;
  vertical-align: middle;
}

.stat-comparison-table thead th,
.spell-diff-table thead th {
  background: rgba(223, 110, 92, 0.22);
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.stat-comparison-table tbody th,
.spell-diff-table tbody th {
  color: var(--brown);
  font-weight: 900;
  white-space: nowrap;
}

.stat-diff--positive {
  color: #16a34a;
  font-weight: 900;
}

.stat-diff--negative {
  color: var(--red);
  font-weight: 900;
}

.stat-diff--neutral {
  color: var(--brown-soft);
  font-weight: 900;
}

.spell-card-note {
  padding: 16px 18px 0;
}

.spell-card-note--empty {
  padding-bottom: 18px;
}

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

.spell-choice-card {
  padding: 16px;
  border: 1px solid rgba(22, 61, 55, 0.16);
  border-radius: 12px;
  background: rgba(253, 250, 242, 0.68);
}

.spell-choice-card--red {
  border-top: 5px solid #ef4444;
}

.spell-choice-card--purple {
  border-top: 5px solid #8b5cf6;
}

.spell-choice-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spell-choice-row {
  --spell-choice-accent: var(--gold);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(233, 227, 213, 0.72);
}

.spell-choice-row--red {
  --spell-choice-accent: #ef4444;
}

.spell-choice-row--purple {
  --spell-choice-accent: #8b5cf6;
}

.spell-choice-row span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--spell-choice-accent);
  color: #fffaf0;
  font-size: 13px;
  font-weight: 900;
}

.spell-choice-row strong {
  color: var(--brown);
  font-size: 15px;
  font-weight: 900;
}

.spell-diff-table-wrap {
  margin: 0 14px 14px;
}

.cm-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.cm-summary-grid div {
  padding: 14px 16px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 10px;
  background: rgba(233, 227, 213, 0.72);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.cm-summary-grid span {
  display: block;
  color: var(--brown-soft);
  font-size: 13px;
  font-weight: 900;
}

.cm-summary-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--brown);
  font-size: 22px;
  font-weight: 900;
}

.cm-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 12px;
  background: rgba(233, 227, 213, 0.72);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.07);
}

.cm-activity-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.cm-activity-table th,
.cm-activity-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.122);
  vertical-align: middle;
}

.cm-activity-table th {
  background: rgba(223, 110, 92, 0.18);
  color: var(--brown);
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.cm-activity-table tbody tr:last-child td {
  border-bottom: 0;
}

.cm-title-cell {
  color: var(--brown);
  font-weight: 900;
}

.cm-answer {
  color: var(--brown-dark);
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.cm-link-note {
  color: var(--brown-soft);
  font-size: 13px;
  white-space: nowrap;
}

.cm-activity-cards {
  display: none;
}

.cm-activity-card {
  padding: 16px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 12px;
  background: rgba(233, 227, 213, 0.78);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.07);
}

.cm-activity-card h3 {
  margin: 0 0 12px;
  color: var(--brown);
  font-size: 18px;
  font-weight: 900;
}

.cm-activity-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.cm-activity-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.cm-activity-card dt {
  color: var(--brown-soft);
  font-weight: 900;
}

.cm-activity-card dd {
  margin: 0;
  color: var(--brown);
  font-weight: 900;
}

.refinement-content {
  display: grid;
  gap: 22px;
}

.refinement-section {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.76);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.refinement-section-head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.16);
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.94), rgba(254, 243, 199, 0.5));
}

.refinement-section-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.refinement-section-head h3 {
  margin: 2px 0 6px;
  color: var(--brown);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.refinement-section-head p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.refinement-table-wrap {
  overflow-x: auto;
  background: rgba(233, 227, 213, 0.68);
}

.refinement-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: var(--brown);
}

.refinement-table th,
.refinement-table td {
  padding: 10px 12px;
  border-right: 1px solid rgba(22, 61, 55, 0.064);
  border-bottom: 1px solid rgba(22, 61, 55, 0.07);
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.refinement-table th:last-child,
.refinement-table td:last-child {
  border-right: 0;
}

.refinement-table tbody tr:last-child th,
.refinement-table tbody tr:last-child td {
  border-bottom: 0;
}

.refinement-table thead th {
  background: rgba(224, 233, 224, 0.94);
  color: var(--paper-light);
  font-size: 14px;
}

.refinement-part-cell {
  min-width: 104px;
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.86), rgba(254, 243, 199, 0.62));
  color: var(--brown-dark);
  font-size: 24px;
  line-height: 1.2;
}

.breath-cell {
  min-width: 174px;
  color: #334155;
}

.breath-fire {
  background-color: rgba(254, 226, 226, 0.28);
}

.breath-water {
  background-color: rgba(207, 250, 254, 0.27);
}

.breath-wind {
  background-color: rgba(220, 252, 231, 0.27);
}

.breath-earth {
  background-color: rgba(253, 230, 138, 0.55);
}

.refinement-table thead .breath-head {
  color: #1e293b;
}

.chance-cell {
  width: 72px;
  background: rgba(253, 250, 242, 0.64);
  color: var(--brown-dark);
}

.refinement-table tbody tr:hover td,
.refinement-table tbody tr:hover .refinement-part-cell {
  filter: brightness(1.04);
}

.refinement-note {
  padding: 14px 16px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 10px;
  background: rgba(253, 250, 242, 0.84);
  color: var(--brown);
  font-weight: 900;
}

.magic-eye-content {
  display: grid;
  gap: 22px;
}

.magic-eye-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.magic-eye-panel {
  --eye-accent: var(--gold);
  --eye-soft: rgba(223, 110, 92, 0.18);
  --eye-wash: rgba(233, 227, 213, 0.78);
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: var(--eye-wash);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.magic-eye-panel--fire {
  --eye-accent: #dc2626;
  --eye-soft: rgba(201, 90, 75, 0.22);
  --eye-wash: rgba(254, 242, 242, 0.78);
}

.magic-eye-panel--water {
  --eye-accent: #2563eb;
  --eye-soft: rgba(87, 132, 197, 0.22);
  --eye-wash: rgba(239, 246, 255, 0.78);
}

.magic-eye-panel--wind {
  --eye-accent: #16a34a;
  --eye-soft: rgba(120, 163, 95, 0.22);
  --eye-wash: rgba(240, 253, 244, 0.8);
}

.magic-eye-panel--earth {
  --eye-accent: #d97706;
  --eye-soft: rgba(213, 163, 48, 0.24);
  --eye-wash: rgba(255, 251, 235, 0.8);
}

.magic-eye-panel-head {
  position: relative;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.94), var(--eye-soft));
}

.magic-eye-panel-head::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 6px;
  background: var(--eye-accent);
  content: "";
}

.magic-eye-panel-head span {
  color: var(--eye-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.magic-eye-panel-head h3 {
  margin: 2px 0 4px;
  color: var(--brown);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.magic-eye-panel-head p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 900;
}

.magic-eye-table-wrap {
  overflow-x: auto;
}

.magic-eye-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--brown);
}

.magic-eye-table th,
.magic-eye-table td {
  padding: 8px 10px;
  border-right: 1px solid rgba(22, 61, 55, 0.064);
  border-bottom: 1px solid rgba(22, 61, 55, 0.07);
  font-weight: 900;
  vertical-align: middle;
}

.magic-eye-table th:last-child,
.magic-eye-table td:last-child {
  border-right: 0;
}

.magic-eye-table tbody tr:last-child td {
  border-bottom: 0;
}

.magic-eye-table thead th {
  background: rgba(224, 233, 224, 0.94);
  color: var(--paper-light);
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}

.magic-eye-score {
  width: 76px;
  background: var(--eye-soft);
  color: var(--brown-dark);
  text-align: center;
}

.magic-eye-name {
  min-width: 176px;
  color: var(--brown-dark);
  white-space: nowrap;
}

.magic-eye-desc {
  color: var(--brown);
  line-height: 1.55;
}

.magic-eye-muted {
  color: var(--brown-soft);
  text-align: center;
}

.magic-eye-table tbody tr:hover td {
  background-color: rgba(253, 250, 242, 0.42);
}

.pet-stat-content {
  display: grid;
  gap: 24px;
}

.pet-conversion-panel {
  width: min(620px, 100%);
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.92), rgba(233, 227, 213, 0.76));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.pet-conversion-panel h3 {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.179);
  background: rgba(223, 110, 92, 0.16);
  color: var(--brown);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.pet-conversion-table-wrap,
.pet-stat-table-wrap {
  overflow-x: auto;
}

.pet-conversion-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  color: var(--brown);
}

.pet-conversion-table th,
.pet-conversion-table td {
  padding: 9px 12px;
  border-right: 1px solid rgba(22, 61, 55, 0.06);
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  font-weight: 900;
  text-align: center;
}

.pet-conversion-table tr:last-child td {
  border-bottom: 0;
}

.pet-conversion-table th:last-child,
.pet-conversion-table td:last-child {
  border-right: 0;
}

.pet-conversion-table thead th {
  background: rgba(224, 233, 224, 0.92);
  color: var(--paper-light);
}

.pet-value {
  color: var(--brown-dark);
  font-size: 20px;
}

.pet-arrow {
  color: var(--gold);
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.pet-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pet-stat-card {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.78);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.pet-stat-card-head {
  position: relative;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.166);
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.96), rgba(240, 253, 244, 0.66));
}

.pet-stat-card-head::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 6px;
  background: #22c55e;
  content: "";
}

.pet-stat-card-head span {
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.pet-stat-card-head h3 {
  margin: 2px 0 0;
  color: var(--brown);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.pet-stat-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--brown);
}

.pet-stat-table th,
.pet-stat-table td {
  padding: 8px 10px;
  border-right: 1px solid rgba(22, 61, 55, 0.06);
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
}

.pet-stat-table th:last-child,
.pet-stat-table td:last-child {
  border-right: 0;
}

.pet-stat-table tbody tr:last-child th,
.pet-stat-table tbody tr:last-child td {
  border-bottom: 0;
}

.pet-stat-table thead th {
  background: rgba(224, 233, 224, 0.94);
  color: var(--paper-light);
  white-space: nowrap;
}

.pet-stat-table td.is-focus {
  background: rgba(187, 247, 208, 0.52);
  color: var(--brown-dark);
}

.pet-stat-table tbody th {
  width: 74px;
  background: rgba(254, 243, 199, 0.72);
  color: var(--brown-dark);
}

.pet-stat-table td.is-empty {
  color: rgba(22, 61, 55, 0.09);
}

.pet-stat-table tbody tr:hover th,
.pet-stat-table tbody tr:hover td {
  background-color: rgba(253, 250, 242, 0.42);
}

.pet-stat-table tbody tr:hover th {
  background: rgba(254, 243, 199, 0.72);
}

.pet-stat-table tbody tr:hover td.is-focus {
  background-color: rgba(187, 247, 208, 0.66);
}

.pet-transfer-content {
  display: grid;
  gap: 22px;
}

.pet-transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pet-transfer-card {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.8);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.pet-transfer-card-head {
  position: relative;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.166);
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.96), rgba(240, 253, 244, 0.58));
}

.pet-transfer-card-head::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 6px;
  background: #22c55e;
  content: "";
}

.pet-transfer-card-head span {
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.pet-transfer-card-head h3 {
  margin: 2px 0 10px;
  color: var(--brown);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.pet-transfer-card-head p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.pet-transfer-card-head strong {
  padding: 4px 9px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 999px;
  background: rgba(233, 227, 213, 0.78);
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
}

.pet-transfer-table-wrap {
  overflow-x: auto;
}

.pet-transfer-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  color: var(--brown);
}

.pet-transfer-table th,
.pet-transfer-table td {
  padding: 9px 12px;
  border-right: 1px solid rgba(22, 61, 55, 0.06);
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  font-weight: 900;
  vertical-align: middle;
}

.pet-transfer-table th:last-child,
.pet-transfer-table td:last-child {
  border-right: 0;
}

.pet-transfer-table tbody tr:last-child td {
  border-bottom: 0;
}

.pet-transfer-table thead th {
  background: rgba(224, 233, 224, 0.94);
  color: var(--paper-light);
  text-align: left;
  white-space: nowrap;
}

.pet-transfer-level {
  width: 90px;
  background: rgba(254, 243, 199, 0.72);
  color: var(--brown-dark);
  font-size: 18px;
  text-align: center;
}

.pet-transfer-table tbody tr.is-highlight td {
  background: rgba(187, 247, 208, 0.54);
  color: var(--brown-dark);
}

.pet-transfer-table tbody tr:hover td {
  background-color: rgba(253, 250, 242, 0.42);
}

.pet-transfer-table tbody tr.is-highlight:hover td {
  background: rgba(187, 247, 208, 0.66);
}

.level-reward-content {
  display: grid;
  gap: 24px;
}

.level-reward-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.level-reward-summary div {
  padding: 16px 18px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.92), rgba(233, 227, 213, 0.72));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.06);
}

.level-reward-summary span,
.level-reward-card-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.level-reward-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--brown);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}

.level-reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.level-reward-card {
  --reward-accent: var(--gold);
  --reward-wash: rgba(233, 227, 213, 0.78);
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: var(--reward-wash);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.level-reward-card--rose {
  --reward-accent: #ef4444;
  --reward-wash: rgba(254, 242, 242, 0.78);
}

.level-reward-card--green {
  --reward-accent: #22c55e;
  --reward-wash: rgba(240, 253, 244, 0.78);
}

.level-reward-card--aqua {
  --reward-accent: #06b6d4;
  --reward-wash: rgba(236, 254, 255, 0.78);
}

.level-reward-card--blue {
  --reward-accent: #3b82f6;
  --reward-wash: rgba(239, 246, 255, 0.78);
}

.level-reward-card-head {
  position: relative;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.94), rgba(233, 227, 213, 0.48));
}

.level-reward-card-head::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 6px;
  background: var(--reward-accent);
  content: "";
}

.level-reward-card-head h3 {
  margin: 2px 0 6px;
  color: var(--brown);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.level-reward-card-head p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.level-reward-table-wrap {
  overflow-x: auto;
}

.level-reward-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--brown);
}

.level-reward-table th,
.level-reward-table td {
  padding: 9px 11px;
  border-right: 1px solid rgba(22, 61, 55, 0.06);
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
}

.level-reward-table th:last-child,
.level-reward-table td:last-child {
  border-right: 0;
}

.level-reward-table tbody tr:last-child td {
  border-bottom: 0;
}

.level-reward-table thead th {
  background: rgba(224, 233, 224, 0.94);
  color: var(--paper-light);
  white-space: nowrap;
}

.level-reward-row--rose td {
  background: rgba(254, 226, 226, 0.66);
}

.level-reward-row--amber td {
  background: rgba(254, 243, 199, 0.64);
}

.level-reward-row--green td {
  background: rgba(220, 252, 231, 0.7);
}

.level-reward-row--aqua td {
  background: rgba(207, 250, 254, 0.72);
}

.level-reward-row--blue td {
  background: rgba(219, 234, 254, 0.72);
}

.level-reward-level,
.level-reward-exp {
  width: 92px;
  color: var(--brown-dark);
}

.level-reward-muted {
  color: rgba(22, 61, 55, 0.134);
}

.level-reward-table tbody tr:hover td {
  background-color: rgba(253, 250, 242, 0.68);
}

.dissolve-content {
  display: grid;
  gap: 24px;
}

.dissolve-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dissolve-summary div {
  padding: 16px 18px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.92), rgba(233, 227, 213, 0.72));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.06);
}

.dissolve-summary span,
.dissolve-panel-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.dissolve-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--brown);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.dissolve-panel {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.78);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.dissolve-panel-head {
  position: relative;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.94), rgba(240, 253, 244, 0.56));
}

.dissolve-panel-head::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 6px;
  background: #22c55e;
  content: "";
}

.dissolve-panel-head h3 {
  margin: 2px 0 6px;
  color: var(--brown);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.dissolve-panel-head p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.dissolve-table-wrap {
  overflow-x: auto;
}

.dissolve-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: var(--brown);
}

.dissolve-table th,
.dissolve-table td {
  padding: 10px 12px;
  border-right: 1px solid rgba(22, 61, 55, 0.064);
  border-bottom: 1px solid rgba(22, 61, 55, 0.064);
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
}

.dissolve-table th:last-child,
.dissolve-table td:last-child {
  border-right: 0;
}

.dissolve-table tbody tr:last-child th,
.dissolve-table tbody tr:last-child td {
  border-bottom: 0;
}

.dissolve-table thead th {
  background: rgba(224, 233, 224, 0.95);
  color: var(--paper-light);
  white-space: nowrap;
}

.dissolve-table thead tr:first-child th:nth-child(2) {
  background: rgba(225, 221, 208, 0.96);
}

.dissolve-table thead tr:first-child th:nth-child(3) {
  background: rgba(240, 253, 244, 0.96);
}

.dissolve-table thead tr:first-child th:nth-child(4) {
  background: rgba(245, 243, 255, 0.96);
}

.dissolve-table tbody th {
  width: 96px;
  background: rgba(254, 243, 199, 0.68);
  color: var(--brown-dark);
  font-size: 18px;
}

.dissolve-table tbody td {
  background: rgba(233, 227, 213, 0.68);
  font-size: 18px;
}

.dissolve-table tbody td:nth-child(2),
.dissolve-table tbody td:nth-child(3) {
  background: rgba(42, 30, 8, 0.72);
}

.dissolve-table tbody td:nth-child(4),
.dissolve-table tbody td:nth-child(5),
.dissolve-table tbody td:nth-child(6) {
  background: rgba(240, 253, 244, 0.72);
}

.dissolve-table tbody td:nth-child(7) {
  background: rgba(245, 243, 255, 0.72);
}

.dissolve-table tbody tr:hover th,
.dissolve-table tbody tr:hover td {
  background-color: rgba(253, 250, 242, 0.86);
}

.dissolve-muted {
  color: rgba(22, 61, 55, 0.134);
}

.alchemy-content {
  display: grid;
  gap: 24px;
}

.alchemy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.alchemy-summary div {
  padding: 16px 18px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.92), rgba(233, 227, 213, 0.72));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.06);
}

.alchemy-summary span,
.alchemy-card-head span,
.alchemy-targets span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.alchemy-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--brown);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.alchemy-grid {
  display: grid;
  gap: 22px;
}

.alchemy-card {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.78);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.alchemy-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.94), rgba(255, 251, 235, 0.58));
}

.alchemy-card-head span {
  grid-column: 1 / -1;
}

.alchemy-card-head h3 {
  margin: 0;
  color: var(--brown);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.alchemy-card-head strong {
  padding: 8px 12px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 999px;
  background: rgba(233, 227, 213, 0.82);
  color: var(--brown-dark);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.alchemy-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
}

.alchemy-targets ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.alchemy-targets li {
  padding: 5px 9px;
  border: 1px solid rgba(22, 61, 55, 0.173);
  border-radius: 999px;
  background: rgba(253, 250, 242, 0.76);
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
}

.alchemy-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: rgba(253, 250, 242, 0.66);
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
}

.alchemy-table-wrap {
  overflow-x: auto;
}

.alchemy-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--brown);
}

.alchemy-table th,
.alchemy-table td {
  padding: 10px 12px;
  border-right: 1px solid rgba(22, 61, 55, 0.06);
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
}

.alchemy-table th:last-child,
.alchemy-table td:last-child {
  border-right: 0;
}

.alchemy-table tbody tr:last-child th,
.alchemy-table tbody tr:last-child td {
  border-bottom: 0;
}

.alchemy-table thead th {
  background: rgba(224, 233, 224, 0.95);
  color: var(--paper-light);
  white-space: nowrap;
}

.alchemy-table tbody th {
  width: 72px;
  background: rgba(254, 243, 199, 0.68);
  color: var(--brown-dark);
}

.alchemy-table tbody td {
  background: rgba(233, 227, 213, 0.68);
}

.alchemy-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1.25;
}

.alchemy-item.is-red {
  background: rgba(254, 226, 226, 0.78);
  color: #dc2626;
}

.alchemy-item.is-blue {
  background: rgba(219, 234, 254, 0.78);
  color: #2563eb;
}

.alchemy-table tbody tr:hover th,
.alchemy-table tbody tr:hover td {
  background-color: rgba(253, 250, 242, 0.86);
}

.purple-skill-content {
  display: grid;
  gap: 24px;
}

.purple-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.purple-skill-card {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(233, 227, 213, 0.84), rgba(253, 250, 242, 0.72));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.purple-skill-card-head {
  position: relative;
  padding: 18px 20px 17px 24px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.96), rgba(245, 243, 255, 0.58));
}

.purple-skill-card-head::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 6px;
  background: #7c3aed;
  content: "";
}

.purple-skill-card-head span {
  color: #7c3aed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.purple-skill-card-head h3 {
  margin: 2px 0 0;
  color: var(--brown);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.purple-skill-table-wrap {
  overflow-x: auto;
}

.purple-skill-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  color: var(--brown);
}

.purple-skill-table th,
.purple-skill-table td {
  padding: 9px 11px;
  border-right: 1px solid rgba(22, 61, 55, 0.06);
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
}

.purple-skill-table th:last-child,
.purple-skill-table td:last-child {
  border-right: 0;
}

.purple-skill-table tbody tr:last-child th,
.purple-skill-table tbody tr:last-child td {
  border-bottom: 0;
}

.purple-skill-table thead th {
  background: rgba(224, 233, 224, 0.95);
  color: var(--paper-light);
  white-space: nowrap;
}

.purple-skill-table tbody th {
  width: 104px;
  background: rgba(254, 243, 199, 0.68);
}

.purple-skill-table tbody td {
  background: rgba(233, 227, 213, 0.7);
}

.purple-skill-table tbody td:last-child strong {
  color: #7c3aed;
  font-size: 17px;
  line-height: 1.35;
}

.purple-skill-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1.15;
  white-space: nowrap;
}

.purple-skill-rank.is-rank {
  min-width: 38px;
  background: rgba(253, 250, 242, 0.92);
  color: var(--brown-dark);
}

.purple-skill-rank.is-pvp {
  background: rgba(254, 242, 242, 0.9);
  color: #ea580c;
}

.purple-skill-rank.is-pve {
  background: rgba(219, 234, 254, 0.92);
  color: #2563eb;
}

.purple-skill-rank.is-special {
  background: rgba(245, 243, 255, 0.9);
  color: #7c3aed;
}

.purple-skill-table tbody tr:hover th,
.purple-skill-table tbody tr:hover td {
  background-color: rgba(253, 250, 242, 0.88);
}

.boss-schedule-content {
  display: grid;
  gap: 18px;
}

.boss-schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boss-schedule-legend span {
  padding: 7px 12px;
  border: 1px solid rgba(22, 61, 55, 0.179);
  border-radius: 999px;
  background: rgba(233, 227, 213, 0.78);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.06);
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
}

.boss-schedule-legend .is-world {
  background: rgba(240, 253, 244, 0.9);
}

.boss-schedule-legend .is-arena {
  background: rgba(254, 243, 199, 0.9);
}

.boss-schedule-table-wrap {
  max-height: min(76vh, 840px);
  overflow: auto;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.78);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.boss-schedule-table {
  width: 100%;
  min-width: 1900px;
  border-collapse: collapse;
  color: var(--brown);
}

.boss-schedule-table th,
.boss-schedule-table td {
  min-width: 118px;
  padding: 9px 10px;
  border-right: 1px solid rgba(22, 61, 55, 0.06);
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  font-weight: 900;
  text-align: center;
  vertical-align: middle;
}

.boss-schedule-table th:last-child,
.boss-schedule-table td:last-child {
  border-right: 0;
}

.boss-schedule-table thead th {
  position: sticky;
  z-index: 4;
  background: rgba(224, 233, 224, 0.96);
  color: var(--paper-light);
  white-space: nowrap;
}

.boss-schedule-table thead tr:first-child th {
  top: 0;
  font-size: 17px;
}

.boss-schedule-table thead tr:nth-child(2) th {
  top: 42px;
  font-size: 14px;
}

.boss-schedule-corner,
.boss-schedule-time {
  position: sticky;
  left: 0;
  z-index: 5 !important;
  width: 82px;
  min-width: 82px !important;
}

.boss-schedule-corner {
  top: 0;
}

.boss-schedule-time {
  background: rgba(254, 243, 199, 0.96);
  color: var(--brown-dark);
  font-size: 16px;
}

.boss-schedule-cell {
  height: 52px;
  background: rgba(233, 227, 213, 0.46);
  color: var(--brown-dark);
  line-height: 1.32;
}

.boss-schedule-cell span {
  display: block;
}

.boss-schedule-cell.is-world {
  background: rgba(240, 253, 244, 0.92);
}

.boss-schedule-cell.is-arena {
  background: rgba(254, 243, 199, 0.94);
}

.boss-schedule-cell.is-empty {
  background: rgba(233, 227, 213, 0.3);
}

.boss-schedule-table tbody tr:hover .boss-schedule-time,
.boss-schedule-table tbody tr:hover .boss-schedule-cell {
  background-color: rgba(253, 250, 242, 0.9);
}

.boss-schedule-table tbody tr:hover .boss-schedule-cell.is-world {
  background-color: rgba(187, 247, 208, 1);
}

.boss-schedule-table tbody tr:hover .boss-schedule-cell.is-arena {
  background-color: rgba(252, 211, 77, 1);
}

.skill-comparison-content {
  display: grid;
  gap: 22px;
}

.restart-overview {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(253, 250, 242, 0.92), rgba(233, 227, 213, 0.74));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.restart-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.166);
  background: rgba(223, 110, 92, 0.12);
}

.restart-overview-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.restart-overview-head h3 {
  margin: 2px 0 0;
  color: var(--brown);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.restart-overview-head p {
  max-width: 520px;
  margin: 0;
  color: var(--brown-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
  text-align: right;
}

.restart-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 18px 18px;
}

.restart-card {
  flex: 0 0 156px;
  padding: 12px 13px;
  border: 1px solid rgba(22, 61, 55, 0.179);
  border-radius: 12px;
  background: rgba(233, 227, 213, 0.86);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.06);
}

.restart-card.is-unrebooted {
  background: rgba(240, 253, 244, 0.72);
}

.restart-rank {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.restart-card h3 {
  margin: 2px 0 8px;
  color: var(--brown);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.restart-card p {
  margin: 0 0 2px;
  color: var(--brown-soft);
  font-size: 12px;
  font-weight: 900;
}

.restart-card strong {
  display: block;
  color: var(--brown-dark);
  font-size: 16px;
  font-weight: 900;
}

.restart-card small {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.skill-comparison-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-comparison-legend span {
  padding: 7px 12px;
  border: 1px solid rgba(22, 61, 55, 0.179);
  border-radius: 999px;
  background: rgba(233, 227, 213, 0.78);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.06);
  font-size: 13px;
  font-weight: 900;
}

.legend-gold {
  color: #d97706;
}

.legend-purple {
  color: #7c3aed;
}

.legend-red {
  color: #dc2626;
}

.skill-matrix-wrap {
  max-height: min(72vh, 820px);
  overflow: auto;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.78);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.077);
}

.skill-matrix-table {
  width: 100%;
  min-width: 2680px;
  border-collapse: collapse;
  color: var(--brown);
}

.skill-matrix-table th,
.skill-matrix-table td {
  padding: 10px 12px;
  border-right: 1px solid rgba(22, 61, 55, 0.064);
  border-bottom: 1px solid rgba(22, 61, 55, 0.064);
  font-weight: 900;
  vertical-align: middle;
}

.skill-matrix-table th:last-child,
.skill-matrix-table td:last-child {
  border-right: 0;
}

.skill-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(224, 233, 224, 0.96);
  color: var(--paper-light);
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
}

.skill-matrix-profession-head {
  min-width: 172px;
}

.skill-matrix-profession-head span,
.skill-matrix-profession-head small,
.skill-matrix-profession-head strong,
.skill-matrix-profession-head em {
  display: block;
}

.skill-matrix-profession-head span {
  font-size: 17px;
}

.skill-matrix-profession-head small {
  margin-top: 4px;
  color: rgba(100, 116, 139, 0.76);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.2px;
}

.skill-matrix-profession-head strong {
  color: var(--gold);
  font-size: 13px;
}

.skill-matrix-profession-head em {
  color: rgba(253, 250, 242, 0.92);
  font-size: 12px;
  font-style: normal;
}

.skill-matrix-profession-head.is-unrebooted small {
  color: #15803d;
}

.skill-matrix-corner {
  left: 0;
  z-index: 5 !important;
  width: 118px;
  min-width: 118px;
}

.skill-matrix-rowhead {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 118px;
  min-width: 118px;
  background: rgba(253, 250, 242, 0.96);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle !important;
}

.skill-matrix-cell {
  min-width: 172px;
  background: rgba(233, 227, 213, 0.64);
  text-align: center;
}

.skill-matrix-rowhead--gold,
.skill-matrix-cell--gold {
  color: #d97706;
}

.skill-matrix-rowhead--purple,
.skill-matrix-cell--purple {
  color: #7c3aed;
}

.skill-matrix-rowhead--red,
.skill-matrix-cell--red {
  color: #dc2626;
}

.skill-matrix-table tr.is-band-row .skill-matrix-rowhead,
.skill-matrix-table tr.is-band-row .skill-matrix-cell {
  background: rgba(219, 234, 254, 0.88);
}

.skill-matrix-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.32;
}

.skill-matrix-empty {
  color: rgba(22, 61, 55, 0.134);
}

.skill-matrix-table tbody tr:hover .skill-matrix-rowhead,
.skill-matrix-table tbody tr:hover .skill-matrix-cell {
  background-color: rgba(253, 250, 242, 0.94);
}

.skill-matrix-table tbody tr.is-band-row:hover .skill-matrix-rowhead,
.skill-matrix-table tbody tr.is-band-row:hover .skill-matrix-cell {
  background-color: rgba(219, 234, 254, 1);
}

.transfer-estimate {
  display: grid;
  gap: 22px;
}

.estimate-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.estimate-summary div {
  padding: 18px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(233, 227, 213, 0.9), rgba(253, 250, 242, 0.76));
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.07);
}

.estimate-summary span,
.estimate-settings span,
.estimate-card-head h3,
.estimate-rules h3 {
  color: var(--brown);
  font-weight: 900;
}

.estimate-summary span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.estimate-summary strong {
  color: var(--red);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.estimate-summary-total {
  position: relative;
  border: 2px solid rgba(223, 110, 92, 0.5) !important;
  background: linear-gradient(135deg, #f0a897, #e8897a 60%, #df6e5c) !important;
  box-shadow:
    0 1px 2px rgba(120, 40, 30, 0.16),
    0 10px 24px rgba(223, 110, 92, 0.28) !important;
}

.estimate-summary-total span {
  color: #5a2419;
  font-size: 15px;
}

.estimate-summary-total strong {
  color: #5a2419;
  font-size: clamp(36px, 5vw, 56px);
  text-shadow: none;
}

.estimate-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(253, 250, 242, 0.72);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.06);
}

.estimate-fixed-rate {
  display: grid;
  gap: 6px;
}

.estimate-fixed-rate strong {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.estimate-settings label {
  display: grid;
  flex: 1 1 220px;
  gap: 8px;
}

.estimate-settings small {
  color: rgba(22, 61, 55, 0.18);
  font-weight: 800;
}

.estimate-settings input,
.estimate-input-table input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(22, 61, 55, 0.102);
  border-radius: 10px;
  background: rgba(233, 227, 213, 0.96);
  color: var(--brown);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.estimate-settings input:focus,
.estimate-input-table input:focus {
  outline: 3px solid rgba(223, 110, 92, 0.26);
  border-color: var(--gold);
}

.estimate-settings button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(22, 61, 55, 0.176);
  border-radius: 10px;
  background: var(--gold);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.102);
  color: var(--brown);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.estimate-settings button:hover {
  transform: translateY(-1px);
}

.estimate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.estimate-card {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(233, 227, 213, 0.82);
  box-shadow: var(--soft-shadow);
}

.estimate-card:nth-child(1),
.estimate-card:nth-child(2),
.estimate-card:nth-child(3),
.estimate-card--magicEyes {
  grid-column: 1 / -1;
}

.estimate-card-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.144);
  background:
    linear-gradient(90deg, rgba(223, 110, 92, 0.22), rgba(253, 250, 242, 0.54));
}

.estimate-card-head h3 {
  margin: 0;
  font-size: 24px;
}

.estimate-table-wrap {
  overflow-x: auto;
}

.estimate-input-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.estimate-input-table th,
.estimate-input-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.109);
  color: var(--brown);
  text-align: center;
  vertical-align: middle;
}

.estimate-input-table thead th {
  background: rgba(224, 233, 224, 0.9);
  color: #1e293b;
  font-size: 14px;
}

.estimate-input-table tbody tr:hover th,
.estimate-input-table tbody tr:hover td {
  background: rgba(253, 250, 242, 0.9);
}

.estimate-rarity {
  display: inline-flex;
  min-width: 62px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(253, 250, 242, 0.72);
  color: var(--brown);
  font-weight: 900;
}

.estimate-rarity--blue {
  background: #dbeafe;
}

.estimate-rarity--red {
  background: #fee2e2;
}

.estimate-rarity--purple {
  background: #ede9fe;
}

.estimate-rarity--gold {
  background: #fef3c7;
}

.estimate-cost-note {
  color: rgba(22, 61, 55, 0.18);
  font-size: 13px;
  line-height: 1.45;
}

.estimate-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.estimate-rules section {
  padding: 18px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(253, 250, 242, 0.68);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.06);
}

.estimate-rules h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.estimate-rules ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.estimate-rules li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--brown-soft);
  line-height: 1.45;
}

.estimate-rules li strong {
  color: var(--red);
}

.related-anchor {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 20;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.related-float {
  position: relative;
}

.related-trigger {
  position: relative;
  display: grid;
  width: 82px;
  min-height: 86px;
  place-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  background: rgba(253, 250, 242, 0.78);
  box-shadow: 3px 3px 0 rgba(22, 61, 55, 0.09);
  color: var(--brown);
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(8px);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.related-float.is-expanded .related-trigger,
.related-trigger:hover,
.related-float:focus-within .related-trigger {
  background: rgba(253, 250, 242, 0.95);
  border-color: var(--gold);
  box-shadow: 4px 4px 0 rgba(22, 61, 55, 0.128);
  transform: translateY(-1px);
}

.related-trigger-icon {
  display: grid;
  place-items: center;
}

.related-trigger-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.related-trigger-text {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.related-float--crest .related-trigger {
  border-radius: 999px;
}

.related-panel {
  display: none;
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  width: 220px;
  padding: 10px;
  border: 1px solid rgba(22, 61, 55, 0.18);
  border-radius: 14px;
  background: rgba(253, 250, 242, 0.92);
  box-shadow: var(--soft-shadow);
  transform: translateY(-50%);
  transform-origin: right center;
  backdrop-filter: blur(8px);
}

.related-float.is-expanded .related-panel,
.related-float:hover .related-panel,
.related-float:focus-within .related-panel {
  display: block;
}

.related-list {
  display: grid;
  gap: 9px;
}

.related-list a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(22, 61, 55, 0.179);
  border-radius: 10px;
  background: rgba(233, 227, 213, 0.9);
  box-shadow: 2px 2px 0 rgba(22, 61, 55, 0.09);
  color: var(--brown);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.related-list a:hover,
.related-list a.is-active {
  background: var(--gold);
  border-color: var(--brown-soft);
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .update-log {
    height: auto;
    min-height: 0;
  }

  .hero-visual {
    height: clamp(300px, 44vh, 360px);
  }

  .update-log {
    max-height: 360px;
  }

  .detail-placeholder {
    grid-template-columns: 1fr;
  }

  .detail-main {
    padding-right: 50px;
  }

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

  .related-anchor {
    position: sticky;
    top: 12px;
    right: auto;
    width: 100%;
    margin-top: 16px;
    transform: none;
  }

  .related-trigger {
    width: 100%;
    min-height: 68px;
    grid-template-columns: auto 1fr;
    border-radius: 12px;
  }

  .related-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    transform: none;
  }

  .related-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .magic-eye-grid {
    grid-template-columns: 1fr;
  }

  .pet-stat-grid {
    grid-template-columns: 1fr;
  }

  .pet-transfer-grid {
    grid-template-columns: 1fr;
  }

  .level-reward-grid {
    grid-template-columns: 1fr;
  }
}

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

  .transfer-class-grid {
    grid-template-columns: 1fr;
  }

  .profession-detail-hero-card,
  .profession-detail-panels {
    grid-template-columns: 1fr;
  }

  .profession-detail-image {
    border-right: 0;
    border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  }

  .profession-detail-image img {
    min-height: 0;
  }

  .skill-guide-overview,
  .skill-guide-card-grid--wide,
  .skill-video-card,
  .strategy-grid,
  .stat-summary-grid,
  .stat-table-layout,
  .spell-choice-grid {
    grid-template-columns: 1fr;
  }

  .estimate-grid,
  .estimate-rules {
    grid-template-columns: 1fr;
  }

  .estimate-card:nth-child(1),
  .estimate-card:nth-child(2),
  .estimate-card:nth-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .sponsor-reservation {
    min-height: 0;
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .sponsor-reservation-status {
    justify-self: start;
  }

  .topbar,
  .database-section,
  .profession-section,
  .youtube-section,
  .site-footer {
    padding-inline: 16px;
  }

  .brand {
    flex: 1 1 100%;
    font-size: 20px;
  }

  .brand img {
    width: 74px;
    height: 58px;
  }

  .main-nav {
    flex: 1 1 100%;
  }

  .nav-item {
    flex: 1 1 calc(50% - 8px);
  }

  .nav-trigger {
    width: 100%;
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .nav-menu {
    left: 0;
    min-width: 100%;
  }

  .announcement {
    flex: 1 1 100%;
  }

  .hero-section {
    margin: 0 16px 28px;
  }

  .detail-main {
    padding-inline: 16px;
  }

  .skill-guide-heading,
  .skill-guide-overview h3,
  .skill-priority-section-head {
    padding-inline: 16px;
  }

  .skill-priority-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skill-priority-rank {
    width: fit-content;
    min-width: 74px;
  }

  .skill-video-card,
  .strategy-grid,
  .stat-summary-grid,
  .stat-table-layout,
  .spell-choice-grid {
    padding: 12px;
  }

  .spell-diff-table-wrap {
    margin: 0 12px 12px;
  }

  .spell-choice-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .guide-document {
    padding: 24px 18px 28px;
  }

  .guide-document p {
    font-size: 16px;
    line-height: 1.9;
  }

  .estimate-summary {
    grid-template-columns: 1fr;
  }

  .estimate-settings {
    padding: 14px;
  }

  .estimate-settings label,
  .estimate-settings button {
    flex-basis: 100%;
  }

  .estimate-input-table {
    min-width: 680px;
  }

  .estimate-rules li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .related-anchor {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: block;
    margin-top: 0;
    transform: none;
  }

  .related-trigger {
    width: 100%;
    min-height: 58px;
    padding: 8px;
  }

  .related-trigger-icon img {
    width: 28px;
    height: 28px;
  }

  .related-trigger-text {
    font-size: 11px;
  }

  .related-panel {
    position: absolute;
    top: auto;
    right: 0;
    bottom: calc(100% + 8px);
    width: calc(100vw - 24px);
    max-height: 45vh;
    overflow: auto;
    transform: none;
    transform-origin: right bottom;
  }

  .related-float.is-expanded .related-panel,
  .related-float:hover .related-panel,
  .related-float:focus-within .related-panel {
    display: block;
  }

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

  .related-list a {
    min-width: 128px;
  }

  .cm-summary-grid {
    grid-template-columns: 1fr;
  }

  .refinement-table {
    min-width: 820px;
  }

  .refinement-section-head {
    padding: 16px;
  }

  .magic-eye-panel-head {
    padding: 16px 16px 16px 18px;
  }

  .magic-eye-table {
    min-width: 560px;
  }

  .magic-eye-name {
    min-width: 168px;
  }

  .pet-conversion-panel h3,
  .pet-stat-card-head {
    padding-inline: 16px;
  }

  .pet-stat-card-head h3 {
    font-size: 24px;
  }

  .pet-conversion-table {
    min-width: 420px;
  }

  .pet-stat-table {
    min-width: 500px;
  }

  .pet-transfer-card-head {
    padding: 16px 16px 16px 18px;
  }

  .pet-transfer-card-head h3 {
    font-size: 24px;
  }

  .pet-transfer-table {
    min-width: 440px;
  }

  .level-reward-summary {
    grid-template-columns: 1fr;
  }

  .dissolve-summary {
    grid-template-columns: 1fr;
  }

  .alchemy-summary {
    grid-template-columns: 1fr;
  }

  .alchemy-card-head {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .alchemy-card-head h3 {
    font-size: 24px;
  }

  .alchemy-card-head strong {
    justify-self: start;
    white-space: normal;
  }

  .alchemy-card-body {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .alchemy-table {
    min-width: 680px;
  }

  .purple-skill-grid {
    grid-template-columns: 1fr;
  }

  .purple-skill-card-head {
    padding: 16px 16px 16px 18px;
  }

  .purple-skill-card-head h3 {
    font-size: 24px;
  }

  .purple-skill-table {
    min-width: 500px;
  }

  .boss-schedule-table-wrap {
    max-height: 68vh;
  }

  .boss-schedule-table {
    min-width: 1740px;
  }

  .boss-schedule-table th,
  .boss-schedule-table td {
    min-width: 108px;
    padding: 8px;
  }

  .boss-schedule-table thead tr:nth-child(2) th {
    top: 39px;
  }

  .dissolve-panel-head {
    padding: 16px 16px 16px 18px;
  }

  .dissolve-panel-head h3 {
    font-size: 24px;
  }

  .dissolve-table {
    min-width: 760px;
  }

  .level-reward-card-head {
    padding: 16px 16px 16px 18px;
  }

  .level-reward-card-head h3 {
    font-size: 24px;
  }

  .level-reward-table {
    min-width: 520px;
  }

  .restart-overview-head {
    display: grid;
    padding: 16px;
  }

  .restart-overview-head p {
    max-width: none;
    text-align: left;
  }

  .restart-track {
    padding-inline: 16px;
  }

  .restart-card {
    flex-basis: 142px;
  }

  .skill-matrix-wrap {
    max-height: 68vh;
  }

  .skill-matrix-table {
    min-width: 2300px;
  }

  .skill-matrix-rowhead,
  .skill-matrix-corner {
    width: 96px;
    min-width: 96px;
  }

  .skill-matrix-cell {
    min-width: 150px;
  }

  .skill-matrix-list {
    font-size: 13px;
  }

  .refinement-part-cell {
    min-width: 82px;
    font-size: 20px;
  }

  .breath-cell {
    min-width: 148px;
  }

  .cm-table-wrap {
    display: none;
  }

  .cm-activity-cards {
    display: grid;
    gap: 14px;
  }

  .detail-hero {
    min-height: 240px;
    padding: 28px 20px;
  }

  .hero-visual {
    height: 300px;
    min-height: 0;
  }

  .hero-overlay {
    padding: 42px 20px 28px;
  }

  .hero-overlay h1 {
    font-size: 38px;
  }

  .database-grid,
  .profession-grid {
    grid-template-columns: 1fr;
  }

  .database-panel {
    padding: 16px;
  }

  .database-panel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .database-panel-button,
  .database-panel-button:last-child:nth-child(odd) {
    width: 100%;
  }

  .profession-card {
    min-height: 340px;
  }

  .youtube-marquee::before,
  .youtube-marquee::after {
    width: 28px;
  }

  .youtube-track {
    gap: 14px;
  }

  .youtube-card {
    width: min(300px, 82vw);
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: start;
  }
}

/* ---------- Dark esports theme additions ---------- */

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 61, 55, 0.176), rgba(223, 110, 92, 0.4), transparent);
}

.brand-tag {
  margin-left: 10px;
  padding: 3px 9px;
  border: 1px solid rgba(223, 110, 92, 0.5);
  border-radius: 999px;
  background: rgba(223, 110, 92, 0.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  vertical-align: middle;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-soft);
  box-shadow: 0 0 8px var(--gold-soft);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.cm-live-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-badges a {
  padding: 7px 14px;
  border: 1px solid rgba(253, 250, 242, 0.45);
  border-radius: 999px;
  background: rgba(253, 250, 242, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.hero-badges a:hover {
  background: rgba(253, 250, 242, 0.32);
  border-color: #fff;
  transform: translateY(-1px);
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--brown-soft);
  font-size: 13px;
  font-weight: 700;
}

.detail-breadcrumb a {
  color: var(--gold-soft);
}

.detail-breadcrumb a:hover {
  text-decoration: underline;
}

.detail-hero {
  position: relative;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(253, 250, 242, 0.35);
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(253, 250, 242, 0.12);
  pointer-events: none;
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 61, 55, 0.128), transparent);
}

/* ---------- App shell: sidebar-driven architecture ---------- */

.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.side-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex: 0 0 264px;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid rgba(22, 61, 55, 0.08);
  background: linear-gradient(180deg, rgba(253, 250, 242, 0.98), rgba(233, 227, 213, 0.98));
  box-shadow: 8px 0 32px rgba(22, 61, 55, 0.128);
}

.side-nav-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
}

.side-nav-brand .brand {
  margin-right: 0;
  font-size: 17px;
}

.side-nav-brand .brand img {
  width: 54px;
  height: 46px;
  margin: 0 -8px;
}

.side-nav-brand .brand-tag {
  width: fit-content;
  margin-left: 0;
}

.side-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
}

.side-nav-label {
  margin: 0 0 10px 6px;
  color: var(--brown-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.side-nav-groups {
  display: grid;
  gap: 6px;
}

.side-nav-group {
  overflow: hidden;
  border: 1px solid rgba(22, 61, 55, 0.06);
  border-radius: 10px;
  background: rgba(253, 250, 242, 0.02);
}

.side-nav-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.side-nav-trigger::after {
  color: var(--gold-soft);
  content: "+";
  font-size: 16px;
}

.side-nav-group.is-open .side-nav-trigger::after {
  content: "\2212";
}

.side-nav-trigger:hover {
  color: var(--gold);
}

.side-nav-items {
  display: none;
  flex-direction: column;
  padding: 0 8px 10px;
}

.side-nav-group.is-open .side-nav-items {
  display: flex;
}

.side-nav-items a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--brown-soft);
  font-size: 13.5px;
  font-weight: 700;
}

.side-nav-items a:hover {
  background: rgba(22, 61, 55, 0.06);
  color: var(--gold-soft);
}

.side-nav-items a.is-active {
  background: rgba(22, 61, 55, 0.06);
  color: var(--gold);
}

.side-nav-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid rgba(22, 61, 55, 0.06);
  color: var(--brown-soft);
  font-size: 12px;
  font-weight: 700;
}

.side-nav-foot a {
  color: var(--gold-soft);
}

.side-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(22, 61, 55, 0.128);
  border-radius: 10px;
  background: rgba(22, 61, 55, 0.06);
  color: var(--brown);
  cursor: pointer;
  font-size: 18px;
}

.side-nav-scrim {
  display: none;
}

.app-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 40px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.06);
  background: rgba(233, 227, 213, 0.86);
  backdrop-filter: blur(10px);
}

.app-topbar .announcement {
  flex: 1;
  min-width: 0;
  max-width: none;
}

.hero-section {
  grid-template-columns: minmax(0, 1fr);
}

.hero-visual {
  height: clamp(280px, 34vh, 360px);
}

.ops-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin: 0 40px 40px;
}

.ops-section .cm-live-box,
.ops-section .update-log {
  height: auto;
  overflow: visible;
}

.quick-section {
  padding: 12px 40px 48px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.quick-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(22, 61, 55, 0.096);
  border-radius: 14px;
  background: rgba(253, 250, 242, 0.85);
  box-shadow: var(--shadow);
}

.quick-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.quick-card-head h3 {
  margin: 0;
  font-size: 20px;
}

.quick-card-head span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
}

.quick-card > p {
  margin: 0;
  color: var(--brown-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.quick-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-card-links a {
  padding: 6px 11px;
  border: 1px solid rgba(22, 61, 55, 0.096);
  border-radius: 999px;
  background: rgba(22, 61, 55, 0.06);
  color: var(--brown);
  font-size: 12.5px;
  font-weight: 700;
}

.quick-card-links a:hover,
.quick-card-links a.quick-card-more {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.detail-placeholder {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1080px) {
  .side-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -100%;
    transition: left 200ms ease;
  }

  .side-nav.is-open {
    left: 0;
  }

  .side-nav-toggle {
    display: grid;
    place-items: center;
  }

  .side-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(22, 61, 55, 0.16);
  }

  .side-nav-scrim.is-visible {
    display: block;
  }

  .ops-section {
    grid-template-columns: 1fr;
    margin-inline: 24px;
  }

  .app-topbar,
  .quick-section {
    padding-inline: 24px;
  }
}

@media (max-width: 760px) {
  .side-nav {
    width: 82vw;
  }

  .ops-section,
  .app-topbar,
  .quick-section {
    margin-inline: 16px;
    padding-inline: 16px;
  }

  .app-topbar {
    gap: 10px;
  }
}

/* Channel hub */
.channel-detail-page,
.review-detail-page {
  display: grid;
  gap: 34px;
}

.channel-profile-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 8px 0 28px;
  border-bottom: 1px solid rgba(22, 61, 55, 0.16);
}

.channel-profile-banner > div {
  max-width: 760px;
}

.channel-profile-banner span,
.cocoa-detail-query > span,
.cocoa-detail-ranking > span,
.cocoa-data-section header > span,
.review-detail-intro > span,
.review-criteria-section header > span,
.review-feed-section header > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.channel-profile-banner h3,
.cocoa-detail-query h3,
.cocoa-detail-ranking h3,
.cocoa-data-section h3,
.review-detail-intro h3,
.review-criteria-section h3,
.review-feed-section h3 {
  margin: 6px 0 0;
  color: var(--brown);
  line-height: 1.25;
}

.channel-profile-banner h3,
.review-detail-intro h3 {
  font-size: clamp(28px, 4vw, 44px);
}

.channel-profile-banner p,
.cocoa-data-section header p,
.review-detail-intro p {
  margin: 12px 0 0;
  color: var(--brown-soft);
  font-size: 15px;
  line-height: 1.8;
}

.channel-profile-banner > a,
.review-empty a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.channel-profile-banner > a:hover,
.review-empty a:hover {
  background: transparent;
  color: var(--red);
}

.channel-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 22px;
}

.cocoa-detail-query,
.cocoa-detail-ranking {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(22, 61, 55, 0.14);
  border-radius: 8px;
  background: rgba(253, 250, 242, 0.78);
}

.cocoa-detail-query > p,
.cocoa-detail-ranking > p {
  margin: 10px 0 0;
  color: var(--brown-soft);
  font-size: 13px;
  line-height: 1.65;
}

.cocoa-detail-query-form {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.cocoa-detail-query-form label {
  color: var(--brown);
  font-size: 13px;
  font-weight: 900;
}

.cocoa-detail-query-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cocoa-detail-query-form input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(22, 61, 55, 0.2);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #fff;
  color: var(--brown);
  font: inherit;
  outline: none;
}

.cocoa-detail-query-form input:focus {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.cocoa-detail-query-form button {
  padding: 0 18px;
  border: 1px solid var(--red);
  border-radius: 0 6px 6px 0;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cocoa-detail-query-result {
  min-height: 42px;
  padding: 11px 13px;
  border-left: 3px solid var(--gold-soft);
  background: rgba(183, 139, 54, 0.08);
}

.cocoa-detail-ranking-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cocoa-detail-ranking-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border-top: 1px solid rgba(22, 61, 55, 0.09);
  color: var(--brown);
}

.cocoa-detail-ranking-list li:first-child {
  border-top-color: rgba(183, 139, 54, 0.44);
}

.cocoa-detail-ranking-list li > span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
}

.cocoa-detail-ranking-list li strong,
.cocoa-detail-ranking-list li b {
  font-size: 13px;
}

.cocoa-detail-ranking-list li.is-empty strong,
.cocoa-detail-ranking-list li.is-empty b {
  color: rgba(80, 68, 52, 0.48);
}

.cocoa-data-section,
.review-criteria-section,
.review-feed-section {
  padding-top: 28px;
  border-top: 1px solid rgba(22, 61, 55, 0.16);
}

.cocoa-data-section header,
.review-criteria-section header,
.review-feed-section header {
  max-width: 760px;
  margin-bottom: 18px;
}

.cocoa-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(22, 61, 55, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
}

.cocoa-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  color: var(--brown);
  font-size: 14px;
}

.cocoa-table th,
.cocoa-table td {
  padding: 13px 15px;
  border-right: 1px solid rgba(22, 61, 55, 0.1);
  border-bottom: 1px solid rgba(22, 61, 55, 0.1);
  text-align: left;
  vertical-align: top;
}

.cocoa-table tr > :last-child {
  border-right: 0;
}

.cocoa-table tbody tr:last-child > * {
  border-bottom: 0;
}

.cocoa-table thead th {
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.cocoa-table tbody th {
  background: rgba(22, 61, 55, 0.05);
  font-weight: 900;
}

.cocoa-table tbody tr:hover > * {
  background-color: rgba(183, 139, 54, 0.08);
}

.cocoa-reward-tables {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.cocoa-reward-tables > div {
  min-width: 0;
}

.cocoa-reward-tables h4 {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 16px;
}

.cocoa-table--compact {
  min-width: 600px;
  font-size: 13px;
}

.review-detail-intro {
  max-width: 920px;
  padding-bottom: 6px;
}

.review-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.review-topic-list span {
  padding: 7px 11px;
  border: 1px solid rgba(22, 61, 55, 0.16);
  border-radius: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.review-criteria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(22, 61, 55, 0.12);
  border-bottom: 1px solid rgba(22, 61, 55, 0.12);
}

.review-criteria-grid article {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid rgba(22, 61, 55, 0.12);
}

.review-criteria-grid article:last-child {
  border-right: 0;
}

.review-criteria-grid b {
  color: var(--gold-soft);
  font-size: 12px;
}

.review-criteria-grid h4 {
  margin: 9px 0 0;
  color: var(--brown);
  font-size: 16px;
}

.review-criteria-grid p,
.review-empty p {
  margin: 8px 0 0;
  color: var(--brown-soft);
  font-size: 13px;
  line-height: 1.7;
}

.review-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-feed article,
.review-empty {
  padding: 24px;
  border: 1px solid rgba(22, 61, 55, 0.14);
  border-radius: 8px;
  background: rgba(253, 250, 242, 0.78);
}

.review-feed article > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.review-feed h4 {
  margin: 8px 0 0;
  color: var(--brown);
  font-size: 20px;
}

.review-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.review-empty strong {
  color: var(--brown);
  font-size: 20px;
}

.review-empty p {
  flex: 1;
  max-width: 680px;
}

@media (max-width: 980px) {
  .channel-detail-grid,
  .cocoa-reward-tables {
    grid-template-columns: 1fr;
  }

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

  .review-criteria-grid article:nth-child(2) {
    border-right: 0;
  }

  .review-criteria-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(22, 61, 55, 0.12);
  }
}

@media (max-width: 620px) {
  .channel-profile-banner,
  .review-empty {
    align-items: start;
    flex-direction: column;
  }

  .channel-profile-banner > a,
  .review-empty a {
    width: 100%;
    text-align: center;
  }

  .cocoa-detail-query,
  .cocoa-detail-ranking,
  .review-feed article,
  .review-empty {
    padding: 18px;
  }

  .cocoa-detail-query-form > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cocoa-detail-query-form input,
  .cocoa-detail-query-form button {
    min-height: 44px;
    border: 1px solid rgba(22, 61, 55, 0.2);
    border-radius: 6px;
  }

  .cocoa-detail-query-form button {
    border-color: var(--red);
  }

  .review-criteria-grid,
  .review-feed {
    grid-template-columns: 1fr;
  }

  .review-criteria-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(22, 61, 55, 0.12);
  }

  .review-criteria-grid article:last-child {
    border-bottom: 0;
  }
}
