:root {
  color-scheme: dark;
  --bg: #050b10;
  --panel: rgba(11, 25, 34, 0.86);
  --panel-solid: #0b1922;
  --panel-light: #10242f;
  --line: rgba(151, 207, 226, 0.17);
  --line-strong: rgba(151, 207, 226, 0.33);
  --text: #edf7fa;
  --muted: #8fa9b3;
  --amber: #f0a31a;
  --amber-bright: #ffc04a;
  --cyan: #61d2f2;
  --green: #73d5a2;
  --danger: #ef6b64;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(44, 143, 177, 0.18), transparent 31rem),
    radial-gradient(circle at 88% 12%, rgba(240, 163, 26, 0.13), transparent 27rem),
    linear-gradient(145deg, #050b10 0%, #07131a 52%, #05090d 100%);
  font-family: "Noto Sans KR", sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.62;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(97, 210, 242, 0.42) 0 1px, transparent 1.5px);
  background-position:
    0 0,
    31px 43px;
  background-size:
    97px 113px,
    151px 181px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1420px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 16, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
}

.brand svg {
  width: 42px;
  height: 42px;
  fill: var(--amber);
  filter: drop-shadow(0 0 12px rgba(240, 163, 26, 0.25));
}

.brand .brand-cut {
  fill: #071017;
}

.brand span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand strong,
.brand small,
.eyebrow,
.hero-panel,
h1 {
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
}

.brand strong {
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: 0.14em;
}

.brand small {
  color: var(--amber);
  font-size: 1rem;
  font-weight: 700;
}

.header-status {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #bcd2da;
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(115, 213, 162, 0.6);
  animation: pulse 2.8s infinite;
}

main {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: clamp(34px, 6vw, 110px);
  align-items: end;
  padding: clamp(72px, 10vw, 138px) 0 68px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7.5vw, 7.7rem);
  font-weight: 700;
  line-height: 0.87;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--amber);
  font-style: normal;
}

.hero-description {
  max-width: 720px;
  margin: 28px 0 0;
  color: #a8bec6;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.8;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--amber);
  background:
    linear-gradient(145deg, rgba(22, 54, 68, 0.8), rgba(8, 20, 28, 0.9)),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.hero-panel > div {
  min-height: 110px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-panel > div:nth-child(even) {
  border-right: 0;
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-panel strong {
  display: block;
  color: var(--amber-bright);
  font-size: clamp(1.55rem, 2.5vw, 2.45rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero-panel p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 22px;
  color: #829ba5;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.03em;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 22, 30, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.search-field,
.sort-field {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #07131a;
}

.search-field:focus-within,
.sort-field:focus-within {
  border-color: rgba(97, 210, 242, 0.63);
  box-shadow: 0 0 0 3px rgba(97, 210, 242, 0.09);
}

.search-field span,
.sort-field span {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
}

.search-field input,
.sort-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-field input::placeholder {
  color: #58717b;
}

.sort-field select {
  cursor: pointer;
}

.sort-field option {
  color: var(--text);
  background: var(--panel-solid);
}

.ghost-button {
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: #bdd0d7;
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.ghost-button:hover {
  border-color: var(--amber);
  color: var(--amber-bright);
  background: rgba(240, 163, 26, 0.06);
}

.category-filters {
  display: flex;
  gap: 9px;
  padding: 20px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9db4bd;
  background: rgba(8, 20, 27, 0.7);
  cursor: pointer;
}

.filter-chip span {
  margin-left: 6px;
  color: #607983;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(240, 163, 26, 0.65);
  color: var(--amber-bright);
  background: rgba(240, 163, 26, 0.1);
}

.filter-chip.is-active span {
  color: var(--amber);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 2px 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.result-header p {
  margin: 0;
}

.result-header strong {
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.08rem;
}

.result-header a {
  color: var(--cyan);
  text-underline-offset: 4px;
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 80px;
}

.contract-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 36, 47, 0.97), rgba(7, 17, 23, 0.98)),
    var(--panel-solid);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  animation: reveal 520ms both;
  animation-delay: min(calc(var(--i) * 34ms), 420ms);
}

.contract-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(97, 210, 242, 0.05), transparent 38%);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(97, 210, 242, 0.11), transparent 42%),
    #081218;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.contract-card:hover .card-media img {
  transform: scale(1.045);
}

.card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, transparent 45%, rgba(7, 17, 23, 0.94) 100%);
}

.card-category {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid rgba(240, 163, 26, 0.48);
  border-radius: 4px;
  color: var(--amber-bright);
  background: rgba(6, 13, 18, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.card-body {
  position: relative;
  z-index: 1;
  padding: 17px;
}

.card-heading {
  min-height: 76px;
}

.card-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 1.34rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.card-heading .title-ko {
  margin: 5px 0 0;
  color: var(--amber-bright);
  font-size: 0.87rem;
  font-weight: 700;
}

.card-heading .subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.reward-line {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 15px 0;
  padding: 11px 12px;
  border-left: 2px solid var(--amber);
  color: #f4d59b;
  background: rgba(240, 163, 26, 0.07);
  font-size: 0.82rem;
  line-height: 1.45;
}

.reward-line svg {
  flex: 0 0 auto;
  width: 17px;
  margin-top: 1px;
  fill: var(--amber);
}

.briefing {
  margin: 0 0 14px;
  border: 1px solid rgba(151, 207, 226, 0.12);
  border-radius: 9px;
  background: rgba(3, 10, 14, 0.28);
}

.briefing summary {
  padding: 10px 11px;
  color: #8faab4;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.briefing summary::-webkit-details-marker {
  display: none;
}

.briefing summary::before {
  display: inline-block;
  margin-right: 7px;
  color: var(--amber);
  content: "+";
}

.briefing[open] summary::before {
  content: "-";
}

.briefing p {
  margin: 0;
  padding: 0 11px 12px;
  color: #9fb5bd;
  font-size: 0.75rem;
  line-height: 1.65;
}

.requirements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.requirements-header strong {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.requirements-header span {
  color: var(--muted);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}

.requirements {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.requirement {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(151, 207, 226, 0.11);
  border-radius: 8px;
  background: rgba(3, 10, 14, 0.42);
  cursor: pointer;
}

.requirement:hover {
  border-color: rgba(97, 210, 242, 0.34);
}

.requirement input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.requirement-name {
  min-width: 0;
  color: #b9cbd1;
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.requirement-quantity {
  color: var(--cyan);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.requirement:has(input:checked) {
  border-color: rgba(115, 213, 162, 0.28);
  background: rgba(115, 213, 162, 0.06);
}

.requirement:has(input:checked) .requirement-name,
.requirement:has(input:checked) .requirement-quantity {
  color: #66857a;
  text-decoration: line-through;
}

.card-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}

.card-footer a {
  color: #819ca6;
  font-size: 0.72rem;
  text-underline-offset: 3px;
}

.card-footer a:hover {
  color: var(--cyan);
}

.card-footer span {
  color: #66818b;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
}

.loading-state,
.empty-state {
  min-height: 320px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.loading-state {
  display: grid;
}

.loading-state span {
  width: 42px;
  height: 42px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.loading-state p,
.empty-state p {
  color: var(--muted);
}

.empty-state:not([hidden]) {
  display: grid;
}

.empty-state strong {
  font-size: 1.1rem;
}

footer {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
  color: #607983;
  font-size: 0.73rem;
  line-height: 1.7;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: #87b8c8;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(115, 213, 162, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(115, 213, 162, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(115, 213, 162, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .hero-panel {
    max-width: 620px;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .header-status span:last-child {
    display: none;
  }

  main,
  footer {
    width: min(100% - 26px, 1420px);
  }

  .hero {
    gap: 32px;
    padding: 62px 0 44px;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.3rem);
    line-height: 0.93;
  }

  .hero-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel > div {
    min-height: 94px;
    padding: 17px;
  }

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

  .ghost-button {
    min-height: 46px;
  }

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

  .result-header {
    align-items: flex-start;
    gap: 8px;
  }

  .result-header a {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Refined exchange dashboard */

:root {
  --bg: #071017;
  --panel: rgba(13, 29, 38, 0.9);
  --panel-solid: #0c1b24;
  --panel-light: #142d38;
  --line: rgba(147, 202, 221, 0.16);
  --line-strong: rgba(147, 202, 221, 0.34);
  --text: #eef7f9;
  --muted: #8da6af;
  --amber: #e9a221;
  --amber-bright: #ffc65b;
  --cyan: #64d5f4;
  --green: #72d3a3;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 15px;
}

body {
  background:
    radial-gradient(circle at 8% 3%, rgba(51, 133, 164, 0.2), transparent 34rem),
    radial-gradient(circle at 94% 9%, rgba(233, 162, 33, 0.1), transparent 30rem),
    linear-gradient(145deg, #071017 0%, #08161e 48%, #050b10 100%);
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(100, 213, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 213, 244, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(233, 162, 33, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 162, 33, 0.035) 1px, transparent 1px);
  background-size:
    80px 80px,
    80px 80px,
    16px 16px,
    16px 16px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.66) 52%, transparent 94%);
}

.starfield {
  opacity: 0.32;
}

.site-header {
  min-height: 68px;
  background: rgba(7, 16, 23, 0.88);
}

.brand svg {
  width: 38px;
  height: 38px;
}

main,
footer {
  width: min(1360px, calc(100% - 44px));
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.76fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  min-height: 530px;
  padding: 56px 0 44px;
}

.hero::before {
  position: absolute;
  top: 38px;
  bottom: 30px;
  left: -28px;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(100, 213, 244, 0.52), transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 20px;
  color: #78cce4;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  width: 36px;
  height: 1px;
  content: "";
  background: var(--amber);
  box-shadow: 0 0 12px rgba(233, 162, 33, 0.34);
}

h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 4.7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  word-break: keep-all;
}

.hero-description {
  max-width: 580px;
  margin-top: 22px;
  color: #9eb5be;
  font-size: clamp(0.94rem, 1.12vw, 1.05rem);
  line-height: 1.78;
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 610px;
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.hero-summary > div {
  min-height: 86px;
  padding: 18px 18px 16px 0;
  border-right: 1px solid var(--line);
}

.hero-summary > div + div {
  padding-left: 18px;
}

.hero-summary > div:last-child {
  border-right: 0;
}

.hero-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7rem;
}

.hero-summary strong {
  color: var(--amber-bright);
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.source-line {
  margin: 12px 0 0;
  color: #66818c;
  font-size: 0.7rem;
}

.hero-visual {
  position: relative;
  min-height: 412px;
  overflow: hidden;
  border: 1px solid rgba(147, 202, 221, 0.21);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 46%, rgba(71, 170, 203, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(14, 39, 51, 0.92), rgba(7, 16, 23, 0.98));
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(100, 213, 244, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 213, 244, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle, black, transparent 78%);
}

.hero-visual::after {
  position: absolute;
  inset: 14px;
  z-index: 3;
  border: 1px solid rgba(147, 202, 221, 0.1);
  border-radius: 16px;
  pointer-events: none;
  content: "";
  clip-path: polygon(0 0, 70px 0, 70px 1px, 1px 1px, 1px 70px, 0 70px, 0 0, 100% 0, 100% 70px, calc(100% - 1px) 70px, calc(100% - 1px) 1px, calc(100% - 70px) 1px, calc(100% - 70px) 0, 100% 0, 100% 100%, calc(100% - 70px) 100%, calc(100% - 70px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 70px), 100% calc(100% - 70px), 100% 100%, 0 100%, 0 calc(100% - 70px), 1px calc(100% - 70px), 1px calc(100% - 1px), 70px calc(100% - 1px), 70px 100%, 0 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  opacity: 0.47;
  filter: saturate(0.82) contrast(1.08);
  transform: scale(1.035);
}

.hero-media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 23, 0.9) 0%, rgba(6, 17, 23, 0.25) 48%, rgba(6, 17, 23, 0.62) 100%),
    linear-gradient(180deg, rgba(6, 17, 23, 0.1), rgba(6, 17, 23, 0.92) 92%);
}

.orbit-map {
  position: absolute;
  inset: 2% 0 auto;
  z-index: 1;
  width: 100%;
  height: 96%;
  filter: drop-shadow(0 0 24px rgba(60, 176, 211, 0.12));
}

.orbit-rings ellipse {
  fill: none;
  stroke: rgba(115, 187, 210, 0.27);
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.orbit-rings {
  transform-origin: 260px 210px;
  animation: orbit-spin 42s linear infinite;
}

.orbit-planet {
  animation: planet-breathe 5s ease-in-out infinite;
}

.orbit-route {
  fill: none;
  stroke: url("#route-line");
  stroke-width: 2;
  stroke-dasharray: 8 8;
  animation: route-flow 16s linear infinite;
}

.orbit-route--minor {
  opacity: 0.46;
  stroke-width: 1;
}

.orbit-points circle {
  fill: var(--amber-bright);
  stroke: #071017;
  stroke-width: 2;
}

.orbit-core {
  fill: var(--amber);
  filter: drop-shadow(0 0 16px rgba(233, 162, 33, 0.4));
}

.orbit-ticks path {
  fill: none;
  stroke: rgba(147, 202, 221, 0.38);
  stroke-width: 1;
}

.orbit-label {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid rgba(147, 202, 221, 0.18);
  border-radius: 4px;
  color: #83a9b7;
  background: rgba(7, 16, 23, 0.74);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.orbit-label--a {
  top: 30px;
  left: 30px;
}

.orbit-label--b {
  right: 28px;
  bottom: 54px;
}

.orbit-label--c {
  right: 28px;
  top: 30px;
  color: var(--green);
}

.hero-vessel {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid rgba(147, 202, 221, 0.26);
}

.hero-vessel span {
  color: #70a4b8;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-vessel strong {
  max-width: 72%;
  overflow: hidden;
  color: #dcecf0;
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 0.92rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar {
  grid-template-columns: 180px minmax(260px, 1fr) minmax(160px, 210px) auto;
  gap: 10px;
  padding: 14px;
  border-color: rgba(147, 202, 221, 0.2);
  background:
    linear-gradient(135deg, rgba(20, 45, 56, 0.78), rgba(8, 21, 28, 0.92)),
    var(--panel-solid);
}

.toolbar-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50px;
  padding: 0 10px 0 6px;
  border-right: 1px solid var(--line);
}

.toolbar-title p {
  margin: 0 0 3px;
  color: #5d8b9e;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.toolbar-title strong {
  font-size: 0.95rem;
}

.search-field,
.sort-field {
  min-height: 50px;
  border-radius: 9px;
  background: rgba(4, 13, 18, 0.64);
}

.ghost-button {
  border-radius: 9px;
}

.category-filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  padding: 18px 0 8px;
  overflow: visible;
}

.filter-chip {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 9px 11px;
  border-radius: 10px;
  text-align: left;
}

.filter-chip .chip-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-chip .chip-label {
  min-width: 0;
  overflow: hidden;
  font-size: 0.77rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip b {
  margin-left: auto;
  color: #69818a;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.78rem;
}

.filter-chip.is-active {
  box-shadow: inset 0 -2px 0 rgba(233, 162, 33, 0.72);
}

.filter-chip.is-active b {
  color: var(--amber-bright);
}

.result-header {
  padding: 18px 2px 13px;
}

.contract-grid {
  gap: 16px;
}

.contract-card {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(18, 41, 51, 0.97), rgba(8, 19, 25, 0.99)),
    var(--panel-solid);
}

.contract-card::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(100, 213, 244, 0.28);
  border-bottom: 1px solid rgba(100, 213, 244, 0.28);
  pointer-events: none;
  content: "";
}

.card-media {
  aspect-ratio: 16 / 8.6;
  border-bottom: 1px solid rgba(147, 202, 221, 0.12);
}

.card-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(100, 213, 244, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 213, 244, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.card-media img {
  filter: saturate(0.92) contrast(1.02);
}

.card-index {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(147, 202, 221, 0.28);
  border-radius: 6px;
  color: #91b5c2;
  background: rgba(5, 14, 19, 0.76);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.card-category {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.image-note {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 3;
  max-width: calc(100% - 58px);
  padding: 5px 8px;
  border: 1px solid rgba(233, 162, 33, 0.42);
  border-radius: 4px;
  color: #f1c878;
  background: rgba(7, 16, 23, 0.82);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  backdrop-filter: blur(8px);
}

.card-category-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #5f8797;
  text-align: center;
}

.media-placeholder::before,
.media-placeholder::after {
  position: absolute;
  content: "";
  background: rgba(100, 213, 244, 0.17);
}

.media-placeholder::before {
  top: 50%;
  right: 15%;
  left: 15%;
  height: 1px;
}

.media-placeholder::after {
  top: 15%;
  bottom: 15%;
  left: 50%;
  width: 1px;
}

.media-placeholder svg {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.media-placeholder span {
  position: relative;
  z-index: 1;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.card-body {
  padding: 16px;
}

.card-heading {
  min-height: 65px;
}

.card-heading h2 {
  font-size: 1.32rem;
}

.card-heading .title-ko {
  font-size: 0.82rem;
}

.card-metrics {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 7px 0 13px;
}

.card-metrics span {
  padding: 4px 7px;
  border: 1px solid rgba(147, 202, 221, 0.12);
  border-radius: 4px;
  color: #7896a1;
  background: rgba(4, 13, 18, 0.36);
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.reward-line {
  margin: 0 0 13px;
  border-left: 0;
  border: 1px solid rgba(233, 162, 33, 0.16);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(233, 162, 33, 0.09), rgba(233, 162, 33, 0.025));
}

.progress-track {
  height: 3px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(147, 202, 221, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55c5e5, #79d8a5);
  transition: width 220ms ease;
}

.requirement {
  min-height: 44px;
  border-radius: 7px;
}

.briefing {
  margin-bottom: 12px;
  border-radius: 8px;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes route-flow {
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes planet-breathe {
  50% {
    opacity: 0.72;
    transform: scale(1.035);
    transform-origin: 260px 210px;
  }
}

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr);
    min-height: 500px;
  }

  .category-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 150px minmax(240px, 1fr) minmax(150px, 190px);
  }

  .toolbar .ghost-button {
    grid-column: 1 / -1;
    min-height: 42px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 52px;
  }

  .hero-visual {
    min-height: 330px;
  }

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

  .toolbar-title {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .hero {
    gap: 28px;
    padding: 42px 0 34px;
  }

  h1 {
    font-size: clamp(2.1rem, 9.6vw, 3rem);
    line-height: 1;
  }

  .hero-description {
    margin-top: 17px;
    font-size: 0.91rem;
  }

  .hero-summary > div {
    min-height: 72px;
    padding: 14px 10px 12px 0;
  }

  .hero-summary > div + div {
    padding-left: 11px;
  }

  .hero-summary strong {
    font-size: 1.38rem;
  }

  .hero-visual {
    min-height: 270px;
    border-radius: 17px;
  }

  .orbit-label--b {
    display: none;
  }

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

  .toolbar-title,
  .search-field {
    grid-column: auto;
  }

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

  .contract-card {
    border-radius: 12px;
  }
}

/* Wide exchange panels: image, briefing, and materials read left-to-right */

.contract-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.contract-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  min-height: 330px;
}

.card-media {
  min-height: 100%;
  aspect-ratio: auto;
  border-right: 1px solid rgba(147, 202, 221, 0.12);
  border-bottom: 0;
}

.card-media img {
  position: absolute;
  inset: 0;
}

.card-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.22fr);
  grid-template-areas:
    "heading requirements-header"
    "metrics progress"
    "reward requirements"
    "briefing requirements"
    "footer footer";
  gap: 0 26px;
  align-content: start;
  padding: 20px;
}

.card-heading {
  grid-area: heading;
  min-height: 0;
}

.card-metrics {
  grid-area: metrics;
  margin: 9px 0 16px;
}

.reward-line {
  grid-area: reward;
  align-self: start;
  margin: 0 0 12px;
}

.briefing {
  grid-area: briefing;
  align-self: start;
  margin-bottom: 0;
}

.requirements-header {
  grid-area: requirements-header;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.progress-track {
  grid-area: progress;
  margin-top: 9px;
}

.requirements {
  grid-area: requirements;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  margin-top: 12px;
}

.requirement-quantity,
.requirements-header span,
.filter-chip b,
.result-header strong {
  font-variant-numeric: tabular-nums;
}

.card-footer {
  grid-area: footer;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(147, 202, 221, 0.12);
}

@media (max-width: 1080px) {
  .contract-card {
    grid-template-columns: minmax(240px, 0.4fr) minmax(0, 1fr);
  }

  .card-body {
    grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
    gap: 0 18px;
    padding: 17px;
  }

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

@media (max-width: 820px) {
  .contract-card {
    grid-template-columns: 1fr;
  }

  .card-media {
    min-height: 250px;
    aspect-ratio: 16 / 8.5;
    border-right: 0;
    border-bottom: 1px solid rgba(147, 202, 221, 0.12);
  }

  .card-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "metrics"
      "reward"
      "briefing"
      "requirements-header"
      "progress"
      "requirements"
      "footer";
  }

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

@media (max-width: 560px) {
  .card-media {
    min-height: 210px;
  }

  .card-body {
    padding: 15px;
  }

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  max-width: 610px;
  margin-top: 24px;
}

.download-action,
.referral-action {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 10px 15px;
  border-radius: 10px;
  text-decoration: none;
}

.download-action {
  border: 1px solid rgba(233, 162, 33, 0.72);
  color: #101415;
  background: linear-gradient(135deg, #ffc65b, #df9213);
  box-shadow: 0 12px 30px rgba(233, 162, 33, 0.16);
}

.download-action:hover {
  filter: brightness(1.06);
}

.download-action svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-action span,
.referral-action > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.83rem;
  font-weight: 800;
}

.download-action small,
.referral-action small {
  font-family: "Rajdhani", "Noto Sans KR", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

.referral-action {
  justify-content: space-between;
  min-width: 235px;
  border: 1px solid rgba(100, 213, 244, 0.26);
  color: #d9edf3;
  background: rgba(6, 20, 27, 0.78);
}

.referral-action:hover {
  border-color: rgba(100, 213, 244, 0.56);
  background: rgba(12, 34, 43, 0.9);
}

.referral-action > span {
  color: #8faeb9;
  font-weight: 600;
}

.referral-action code {
  color: var(--cyan);
  font-family: "Rajdhani", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 19px;
  }

  .download-action,
  .referral-action {
    width: 100%;
    min-width: 0;
  }
}
