:root {
  --color-primary: #f4c430;
  --color-primary-hover: #dfaf18;
  --color-primary-active: #c99a08;
  --color-primary-pressed: #c99a08;
  --color-primary-soft: #fff5cc;
  --color-primary-softest: #fffbea;
  --color-primary-border: #e9bb22;
  --color-primary-shadow: rgba(244, 196, 48, 0.2);
  --color-primary-focus: rgba(244, 196, 48, 0.32);
  --color-text-main: #111827;
  --color-text-strong: #111827;
  --color-text-sub: #6b7280;
  --color-border: #e5e7eb;
  --color-bg-soft: #fff5cc;
  --font-main: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-logo: 'NexonLv1Gothic', 'Pretendard', 'Noto Sans KR', sans-serif;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: var(--color-border);
  --text: var(--color-text-main);
  --text-sub: var(--color-text-sub);
  --text-muted: #9ca3af;
  --orange: var(--color-primary);
  --orange-dark: var(--color-primary-hover);
  --orange-soft: var(--color-primary-soft);
  --orange-grad-start: #fffbea;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 4px 16px rgba(17, 24, 39, 0.04);
  --max-width: 480px;
  --font: var(--font-main);
}

@font-face {
  font-family: 'NexonLv1Gothic';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON%20Lv1%20Gothic%20OTF%20Bold.woff')
    format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #eef2f6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
[role='button'] {
  touch-action: manipulation;
}

.app-shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.site-header,
.main-content,
.section-block,
.search-card-section,
.game-selection-section,
.currency-board-section,
.site-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem 0.8rem;
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.header-name {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: 'NexonLv1Gothic', 'Pretendard', 'Noto Sans KR', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.header-name:focus-visible {
  outline: 2px solid var(--color-primary-focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.logo-main,
.logo-accent {
  font-family: 'NexonLv1Gothic', 'Pretendard', 'Noto Sans KR', sans-serif !important;
  font-weight: 700 !important;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.055em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  -webkit-text-stroke: 0.25px currentColor;
}

.logo-main {
  color: #111827;
}

.logo-accent {
  color: #f4c430;
}

.header-tagline {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 0;
  text-align: right;
  word-break: keep-all;
}

.header-tagline-main {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.35;
}

.header-tagline-url {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.15;
  color: #f4c430;
  letter-spacing: 0.02em;
}

@media (max-width: 390px) {
  .header-row {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .header-tagline {
    flex-basis: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 0.12rem;
  }

  .header-tagline-main,
  .header-tagline-url {
    font-size: 0.75rem;
  }
}

.main-content {
  width: 100%;
  padding: 0.75rem 0 1rem;
  overflow-x: hidden;
}

.section-block {
  margin-bottom: 1.25rem;
  padding: 0 1rem;
}

.search-card-section {
  margin-bottom: 0;
}

.ad-section {
  width: auto;
  display: flex;
  justify-content: center;
  margin: 14px 16px;
  box-sizing: border-box;
}

.ad-section[hidden] {
  display: none !important;
}

.mobile-ad-banner {
  width: 100%;
  max-width: 320px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  background: #ffffff;
  color: #344054;
}

.ad-label {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ad-main {
  color: #344054;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.ad-sub {
  color: #98a2b3;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.currency-board-section {
  width: auto;
  margin: 16px 16px 24px;
  padding: 20px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  scroll-margin-top: 120px;
}

#search-results,
.item-search-results-section,
.search-card-section,
.currency-board-section,
.money-market-section {
  scroll-margin-top: 120px;
}

.section-title--currency {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.section-title__icon {
  font-size: 1.125rem;
  line-height: 1;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.market-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.market-board-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.market-currency-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.market-board-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.market-board-updated,
.market-board-count {
  color: var(--text-sub);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.market-board-updated {
  white-space: nowrap;
}

.market-board-count {
  margin: -0.35rem 0 0.75rem;
}

.money-overview-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}

.money-overview-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.money-overview-title-row .money-overview-title {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.money-overview-title-row .money-refresh-btn {
  flex-shrink: 0;
  gap: 4px;
  min-width: 32px;
  min-height: 32px;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #667085;
  background: none;
  border: none;
  box-shadow: none;
}

.money-overview-title-row .money-refresh-btn__icon {
  width: 12px;
  height: 12px;
}

.money-overview-detail-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0.9rem;
}

.money-overview-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.money-overview-detail-title-row .money-overview-title {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.35;
}

.money-overview-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.money-overview-title span {
  color: var(--orange);
}

.money-overview-sub {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.4;
}

.money-overview-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 0.35rem;
}

.money-refresh-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 100%;
}

.money-change-legend {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-sub);
  text-align: right;
  white-space: nowrap;
}

.money-overview-search-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 0 0.45rem;
}

.money-overview-search-block .money-overview-search {
  margin: 0;
}

.money-overview-search-block .money-change-legend {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  text-align: right;
}

.money-overview-actions .money-refresh-btn {
  min-height: 0;
  padding: 0;
  line-height: 1.05rem;
}

.money-overview-back-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #f4c430;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}

.money-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.money-refresh-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.money-refresh-btn__icon svg {
  width: 100%;
  height: 100%;
}

.money-overview-search {
  display: block;
  margin: 0 0 0.45rem;
}

.money-overview-search input {
  width: 100%;
  height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
}

.money-overview-search input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.money-overview-search input:focus {
  border-color: rgba(244, 196, 48, 0.32);
  box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.16);
}

.money-overview-table-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.money-overview-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  word-break: keep-all;
}

.money-overview-col-game {
  width: 52%;
}

.money-overview-col-price {
  width: 28%;
}

.money-overview-col-view {
  width: 20%;
}

.money-overview-table th {
  height: 40px;
  padding: 0 14px;
  background: #f9fafb;
  border-bottom: 1px solid #eef0f3;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.money-overview-table th.money-overview-price,
.money-overview-table td.money-overview-price {
  text-align: center;
  padding-left: 14px;
  padding-right: 14px;
}

.money-overview-table th.money-overview-view,
.money-overview-table td.money-overview-view {
  text-align: left;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.money-overview-table th.money-overview-view {
  color: #6b7280;
}

.money-overview-table td {
  height: 56px;
  padding: 0 14px;
  border-top: 1px solid #eef0f3;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: middle;
  box-sizing: border-box;
}

.money-overview-game {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-width: 0;
}

.money-overview-game strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money-overview-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.money-overview-icon--logo {
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.money-overview-icon__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.money-overview-icon--lineage_classic {
  background: url("/assets/games/lineage_classic.png?v=1") center / cover no-repeat, #111827;
}

.money-overview-icon--lineage_m {
  background: url("/assets/games/lineage_m.png?v=1") center / cover no-repeat, #231712;
}

.money-overview-icon--sol_enchant {
  background: url("/assets/games/sol_enchant.png?v=2") center / cover no-repeat, #1a1410;
}

.money-overview-icon--maplestory {
  background: url("/assets/games/maplestory.png?v=3") center / cover no-repeat, #fff8f0;
}

.money-overview-icon--aion2 {
  background: url("/assets/games/aion2.png?v=1") center / cover no-repeat, #0b1f33;
}

.money-overview-icon--lostark {
  background: url("/assets/games/lostark.png?v=1") center / cover no-repeat, #0a0a0a;
}

.money-overview-icon--odin_valhalla {
  background: url("/assets/games/odin_valhalla.png?v=1") center / contain no-repeat, #f8fafc;
}

.money-overview-icon--maplestory_worlds {
  background: url("/assets/games/maplestory_world.png?v=1") center / cover no-repeat, #fff8f0;
}

.money-overview-icon--mabinogi {
  background: url("/assets/games/mabinogi.png?v=1") center / contain no-repeat, #f8fafc;
}

.money-overview-icon--geosang,
.money-overview-icon--gersang {
  background: url("/assets/games/geosang.png?v=1") center / contain no-repeat, #f8fafc;
}

.money-overview-icon--lineage_w {
  background: url("/assets/games/lineage_w.png?v=1") center / contain no-repeat, #f8fafc;
}

.money-overview-icon--dnf {
  background: url("/assets/games/dnf.png?v=1") center / contain no-repeat, #0a0a0a;
}

.money-overview-price {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.money-price-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-height: 34px;
  padding-top: 1px;
  box-sizing: border-box;
  vertical-align: middle;
}

.money-average-price {
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.money-change-rate {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.money-change-rate.money-change-up {
  color: #ef4444;
}

.money-change-rate.money-change-down {
  color: #3b82f6;
}

.money-change-rate.money-change-flat {
  color: #9ca3af;
}

.money-overview-time {
  color: var(--text-muted);
}

.money-overview-empty {
  height: 72px;
  color: var(--text-muted);
  text-align: center;
}

.money-overview-view {
  text-align: left;
  white-space: nowrap;
}

.money-overview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--orange);
  cursor: pointer;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 420px) {
  .money-overview-title-row {
    gap: 6px;
  }

  .money-overview-title-row .money-overview-title {
    font-size: 0.98rem;
  }

  .money-overview-title-row .money-refresh-btn {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .currency-board-section {
    margin: 16px 16px 22px;
    padding: 18px 10px;
  }

  .money-overview-table th {
    padding: 0 12px;
    font-size: 0.75rem;
  }

  .money-overview-table td {
    padding: 0 12px;
  }

  .money-overview-table th.money-overview-price,
  .money-overview-table td.money-overview-price {
    padding-left: 12px;
    padding-right: 12px;
  }

  .money-overview-table th.money-overview-view,
  .money-overview-table td.money-overview-view {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.8125rem;
  }

  .money-overview-game {
    gap: 8px;
  }

  .money-overview-icon {
    width: 32px;
    height: 32px;
  }

  .money-overview-game strong,
  .money-overview-price {
    font-size: 0.8125rem;
  }
}

@media (max-width: 390px) {
  .market-board-header {
    align-items: flex-start;
  }

  .market-board-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
  }
}

.section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.market-fallback-notice {
  margin: -0.5rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--text-sub);
  opacity: 0.85;
}

.section-meta--unit {
  margin-top: -0.35rem;
}

.section-meta {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-sub);
}

/* Hero */
/*
 * Mobile shell (public/styles.css) only: keep SEO HTML for crawlers,
 * but never show SEO intro blocks on screen.
 * PC home uses /pc/styles.css and is unaffected.
 */
.seo-home-intro {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

.seo-home-intro__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, #111827);
}

.seo-home-intro__desc {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted, #6b7280);
}

.seo-home-intro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 4px;
  font-size: 0.8125rem;
}

.seo-home-intro__links a {
  color: var(--text, #111827);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1023px) {
  #hero.hero-section > .seo-home-intro,
  #hero.hero-section > .seo-money-intro,
  #hero.hero-section > .seo-item-intro,
  #hero.hero-section .seo-home-intro__title,
  #hero.hero-section .seo-home-intro__desc,
  #hero.hero-section .seo-home-intro__links,
  #hero.hero-section .seo-money-intro__title,
  #hero.hero-section .seo-money-intro__desc,
  #hero.hero-section .seo-money-intro__site-links,
  #hero.hero-section .seo-item-intro__title,
  #hero.hero-section .seo-item-intro__desc,
  #hero.hero-section .seo-money-links,
  #hero.hero-section .seo-item-links {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
  }

  #hero.hero-section {
    margin-top: 0;
  }
}

.seo-money-links,
.seo-item-links,
.seo-money-intro__site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 8px 0 4px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.seo-money-links a,
.seo-item-links a,
.seo-money-intro__site-links a {
  color: var(--text, #111827);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

#hero.hero-section {
  margin-top: 0;
}

.seo-money-intro {
  margin: 0 0 14px;
  padding: 14px 4px 4px;
}

.seo-money-intro__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, #111827);
}

.seo-money-intro__desc {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted, #6b7280);
}

.seo-item-intro {
  margin: 0 0 14px;
  padding: 14px 4px 4px;
}

.seo-item-intro__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, #111827);
}

.seo-item-intro__desc {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted, #6b7280);
}

.hero-section {
  width: auto;
  margin: 0 16px;
  padding: 0;
  box-sizing: border-box;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.hero-carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 118px;
  box-sizing: border-box;
  padding: 0.75rem 1rem 1.15rem;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 354px;
  align-items: center;
  gap: 2rem;
}

.hero-copy,
.hero-slide-copy-block {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
  max-width: 100%;
  color: #101828;
  letter-spacing: -0.055em;
}

.hero-title strong {
  color: #f4c430;
  font-weight: 800;
}

.hero-desc {
  margin: 1.35rem 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #667085;
  max-width: 100%;
  line-height: 1.75;
  letter-spacing: -0.02em;
}

.hero-visual-graphic {
  position: relative;
  width: 100%;
  min-height: 178px;
  overflow: hidden;
}

.hero-visual-panel {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(260px, 58%);
  transform: translate(-50%, -50%);
  padding: 0.9rem;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.hero-mini-compare,
.hero-mini-list,
.hero-money-preview {
  min-width: 0;
}

.hero-mini-compare {
  display: grid;
  gap: 0.55rem;
}

.hero-rank-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.hero-rank-card {
  min-width: 0;
  padding: 0.55rem 0.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.hero-rank-card--best {
  background: linear-gradient(180deg, #f4edff 0%, #eee7ff 100%);
  color: #c99a08;
}

.hero-rank-card--second {
  background: linear-gradient(180deg, #edfdf4 0%, #e5f8ee 100%);
  color: #20a464;
}

.hero-rank-card--third {
  background: linear-gradient(180deg, #eef7ff 0%, #e4f2ff 100%);
  color: #2f95d8;
}

.hero-rank-icon,
.hero-rank-card strong,
.hero-rank-card em,
.hero-rank-card b {
  display: block;
}

.hero-rank-icon {
  font-size: 1rem;
  line-height: 1;
}

.hero-rank-card strong {
  margin-top: 0.25rem;
  color: #111827;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-rank-card em {
  width: fit-content;
  max-width: 100%;
  margin: 0.35rem auto 0;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-rank-card--best em {
  background: rgba(244, 196, 48, 0.22);
  color: #c99a08;
}

.hero-rank-card b {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero-compare-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.hero-compare-cta span {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1;
}

.hero-mini-list,
.hero-money-preview {
  display: grid;
  gap: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), 0 15px 30px rgba(15, 23, 42, 0.08);
}

.hero-mini-list p {
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-sub);
}

.hero-mini-list div,
.hero-money-preview div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 70px auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 58px;
  padding: 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 0;
  background: transparent;
}

.hero-mini-list div:last-child,
.hero-money-preview div:last-child {
  border-bottom: none;
}

.hero-mini-list strong,
.hero-money-preview strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.hero-mini-list span,
.hero-money-preview em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--orange);
  text-align: right;
}

.hero-money-preview span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-sub);
  text-align: center;
}

.money-preview-card {
  min-width: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  padding: 9px 12px 5px;
}

.money-preview-card--grid {
  padding: 4px 0;
  overflow: hidden;
}

.money-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.money-preview-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 52px;
  padding: 6px 8px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.money-preview-cell:nth-child(2n) {
  border-right: none;
}

.money-preview-cell:nth-child(n + 5) {
  border-bottom: none;
}

.money-preview-cell__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: #111827;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 2px 6px rgba(15, 23, 42, 0.1);
}

.money-preview-cell__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.money-preview-cell__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.money-preview-cell__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #101828;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.money-preview-cell__currency {
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.money-preview-cell__quote {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  min-width: max-content;
}

.money-preview-cell__price {
  color: #101828;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-align: right;
  white-space: nowrap;
}

.money-preview-cell__change {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.money-preview-cell__change.is-up {
  color: #c99a08;
}

.money-preview-cell__change.is-down {
  color: #3b82f6;
}

.money-preview-cell__change.is-flat {
  color: #9ca3af;
}

.money-preview-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.money-preview-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  min-height: 36px;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
}

.money-preview-row:last-child {
  border-bottom: none;
}

.money-game-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  overflow: hidden;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 2px 6px rgba(15, 23, 42, 0.1);
}

.money-game-icon--lineage {
  border: none;
  background: url("/assets/games/lineage_classic.png?v=1") center / cover no-repeat, #111827;
  color: transparent;
}

.money-game-icon--aion {
  border: none;
  background: url("/assets/games/aion2.png?v=1") center / cover no-repeat, #0b1f33;
  color: transparent;
}

.money-game-icon--maple {
  border: none;
  background: url("/assets/games/maplestory.png?v=3") center / cover no-repeat, #fff8f0;
  color: transparent;
}

.money-game-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.money-game-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #101828;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.money-currency-name {
  color: #667085;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.money-price {
  color: #c99a08;
  flex-shrink: 0;
  justify-self: end;
  min-width: max-content;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.money-preview-row--aion .money-price {
  color: #5da7e8;
}

.money-preview-row--maple .money-price {
  color: #56c879;
}

.hero-mini-list div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hero-compare-panel {
  display: grid;
  gap: 0.34rem;
  padding: 0.52rem 0.56rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.hero-flow-title {
  margin: 0;
  color: #101828;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
}

.hero-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.32rem;
}

.hero-source-card {
  min-width: 0;
  padding: 0.34rem 0.28rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.045);
}

.hero-source-head {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  min-width: 0;
}

.hero-source-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #f4c430;
  color: #111827;
  font-size: 0.5rem;
  font-weight: 900;
}

.hero-source-card--b .hero-source-head span {
  background: #5da7e8;
}

.hero-source-card--c .hero-source-head span {
  background: #56c879;
}

.hero-source-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #101828;
  font-size: 0.56rem;
  font-weight: 900;
}

.hero-source-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 0.24rem;
  border-radius: 7px;
  background: #f2f4f7;
  font-size: 0.78rem;
}

.hero-source-card i {
  display: block;
  height: 4px;
  margin: 0.12rem 0 0 30px;
  border-radius: 999px;
  background: #d0d5dd;
}

.hero-source-card i:nth-of-type(2) {
  width: 70%;
}

.hero-source-card b {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.18rem 0 0 auto;
  padding: 0.08rem 0.22rem;
  border-radius: 999px;
  background: #fff5cc;
  color: #c99a08;
  font-size: 0.55rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero-source-card--b b {
  background: #eff7ff;
  color: #5da7e8;
}

.hero-source-card--c b {
  background: #ecfdf3;
  color: #56c879;
}

.hero-flow-connector {
  position: relative;
  height: 18px;
}

.hero-flow-connector::before,
.hero-flow-connector::after {
  content: "";
  position: absolute;
  top: 0;
  width: 33%;
  height: 13px;
  border-bottom: 1.5px dashed #d0d5dd;
}

.hero-flow-connector::before {
  left: 17%;
  border-left: 1.5px dashed #d0d5dd;
  border-radius: 0 0 0 12px;
}

.hero-flow-connector::after {
  right: 17%;
  border-right: 1.5px dashed #d0d5dd;
  border-radius: 0 0 12px 0;
}

.hero-flow-connector span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 18px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, #d0d5dd 0 3px, transparent 3px 6px);
}

.hero-flow-connector span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #d0d5dd;
}

.hero-result-box {
  padding: 0.34rem 0.42rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.055);
}

.hero-result-head {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-bottom: 0.18rem;
  color: #101828;
  font-size: 0.68rem;
  font-weight: 900;
}

.hero-result-head span {
  color: #c99a08;
  font-size: 0.78rem;
}

.hero-compare-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-compare-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.34rem;
  min-height: 24px;
  border-bottom: 1px solid #eef0f4;
  color: #101828;
}

.hero-compare-list li:last-child {
  border-bottom: 0;
}

.hero-compare-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: #f3f4f6;
  color: #667085;
  font-size: 0.58rem;
  font-weight: 900;
}

.hero-compare-list li:first-child span {
  background: #fff5cc;
  color: #c99a08;
}

.hero-compare-list strong,
.hero-compare-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-compare-list strong {
  font-size: 0.76rem;
  font-weight: 900;
}

.hero-compare-list em {
  color: #101828;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-compare-list b {
  padding: 0.05rem 0.22rem;
  border-radius: 999px;
  background: #fff5cc;
  color: #c99a08;
  font-size: 0.58rem;
  font-weight: 900;
  white-space: nowrap;
}

.hero-money-thumb {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(15, 23, 42, 0.12);
}

.hero-money-thumb--lineage {
  background: url("/assets/games/lineage_classic.svg") center / cover no-repeat, #2b1b10;
}

.hero-money-thumb--lineagem {
  background: url("/assets/games/lineage_m.png?v=1") center / cover no-repeat, #231712;
}

.hero-money-thumb--sol {
  background: url("/assets/games/sol_enchant.png?v=2") center / cover no-repeat, #1a1410;
}

.hero-money-thumb--maple {
  border-radius: 50%;
  background: url("/assets/games/maplestory.png?v=3") center / cover no-repeat, #fff8f0;
}

.hero-slide-meta {
  position: absolute;
  left: 2.2rem;
  right: 2rem;
  bottom: calc(1.45rem - 5px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.hero-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 6px;
  background: var(--orange);
}

.hero-page {
  font-size: 8px;
  font-weight: 800;
  color: rgba(107, 114, 128, 0.8);
}

.hero-visual-panel__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.hero-visual-panel__head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #fff5cc;
  color: var(--orange);
  font-size: 1rem;
}

.hero-visual-panel__head strong,
.hero-visual-panel__head em {
  display: block;
  font-style: normal;
}

.hero-visual-panel__head strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.hero-visual-panel__head em {
  margin-top: 0.08rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sub);
}

.hero-visual-list {
  display: grid;
  gap: 0.32rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-visual-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.4rem;
  row-gap: 0.02rem;
  padding: 0.38rem 0.5rem;
  border-radius: 12px;
  background: #f8fafc;
}

.hero-visual-list span {
  grid-row: span 2;
}

.hero-visual-list strong,
.hero-visual-list em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-visual-list strong {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
}

.hero-visual-list em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-sub);
}

.hero-visual-panel__foot {
  margin: 0.62rem 0 0;
  padding: 0.42rem 0.55rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.hero-visual-source {
  position: absolute;
  z-index: 1;
  width: 102px;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.hero-visual-browser-dots {
  display: flex;
  gap: 0.25rem;
  padding: 0.42rem 0.52rem;
  border-bottom: 1px solid #eef0f3;
  background: #f8fafc;
}

.hero-visual-browser-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
}

.hero-visual-browser-dots span:first-child {
  background: var(--orange);
}

.hero-visual-source strong,
.hero-visual-source em {
  display: block;
  padding: 0 0.5rem;
}

.hero-visual-source strong {
  margin-top: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text);
}

.hero-visual-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0.4rem 0.5rem;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 1.25rem;
}

.hero-visual-source em {
  margin-bottom: 0.55rem;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--orange);
}

.hero-visual-source-a {
  left: 0.35rem;
  top: 0.35rem;
}

.hero-visual-source-b {
  right: 0.35rem;
  top: 0.35rem;
}

.hero-visual-source-c {
  left: 0.35rem;
  bottom: 0.35rem;
}

.hero-visual-source-d {
  right: 0.35rem;
  bottom: 0.35rem;
}

.hero-visual-flow {
  position: absolute;
  z-index: 0;
  width: 58px;
  border-top: 1.5px dashed rgba(244, 196, 48, 0.32);
}

.hero-visual-flow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid rgba(244, 196, 48, 0.55);
  border-right: 1.5px solid rgba(244, 196, 48, 0.55);
  transform: rotate(45deg);
}

.hero-visual-flow-a {
  left: 5.95rem;
  top: 4.35rem;
  transform: rotate(16deg);
}

.hero-visual-flow-b {
  right: 5.95rem;
  top: 4.35rem;
  transform: rotate(164deg);
}

.hero-visual-flow-c {
  left: 5.95rem;
  bottom: 4.35rem;
  transform: rotate(-16deg);
}

.hero-visual-flow-d {
  right: 5.95rem;
  bottom: 4.35rem;
  transform: rotate(196deg);
}

@media (max-width: 760px) {
  .hero-slide {
    min-height: 65px;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.92fr);
    gap: 1rem;
    padding: 0.65rem 0.85rem 1rem;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-desc {
    margin-top: 1rem;
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-slide-visual {
    padding: 0.85rem;
  }

  .hero-visual-graphic {
    min-height: 170px;
  }

  .hero-visual-panel {
    width: 100%;
    max-width: 220px;
  }

  .hero-visual-source,
  .hero-visual-flow {
    display: none;
  }

  .hero-mini-compare {
    gap: 0.45rem;
  }

  .hero-rank-cards {
    gap: 0.35rem;
  }

  .hero-rank-card {
    padding: 0.45rem 0.25rem;
    border-radius: 14px;
  }

  .hero-rank-card strong {
    font-size: 0.62rem;
  }

  .hero-rank-card em {
    padding-inline: 0.32rem;
    font-size: 0.55rem;
  }

  .hero-rank-card b {
    font-size: 0.68rem;
  }

  .hero-compare-cta {
    min-height: 32px;
    font-size: 0.66rem;
  }

  .hero-mini-list,
  .hero-money-preview {
    padding: 0.55rem 0.65rem;
  }

  .hero-compare-panel {
    gap: 0.3rem;
    padding: 0.48rem 0.5rem;
    border-radius: 14px;
  }

  .hero-source-grid {
    gap: 0.22rem;
  }

  .hero-source-card {
    padding: 0.28rem 0.2rem;
    border-radius: 9px;
  }

  .hero-source-head span {
    width: 12px;
    height: 12px;
    font-size: 0.45rem;
  }

  .hero-source-head strong {
    font-size: 0.5rem;
  }

  .hero-source-item {
    width: 20px;
    height: 20px;
    margin-top: 0.18rem;
    font-size: 0.68rem;
  }

  .hero-source-card i {
    margin-left: 25px;
  }

  .hero-source-card b {
    font-size: 0.5rem;
  }

  .hero-flow-connector {
    height: 14px;
  }

  .hero-flow-connector span {
    height: 14px;
  }

  .hero-result-box {
    padding: 0.3rem 0.36rem;
  }

  .hero-compare-list li {
    min-height: 22px;
    gap: 0.24rem;
  }

  .money-preview-card {
    padding: 8px 10px 4px;
    border-radius: 16px;
  }

  .money-preview-card--grid {
    padding: 6px 0 2px;
  }

  .money-preview-cell {
    min-height: 48px;
    gap: 5px;
    padding: 5px 7px;
  }

  .money-preview-cell__icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .money-preview-cell__name {
    font-size: 11px;
  }

  .money-preview-cell__currency {
    font-size: 9px;
  }

  .money-preview-cell__price {
    font-size: 12px;
  }

  .money-preview-cell__change {
    font-size: 9px;
  }

  .money-preview-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    column-gap: 7px;
    min-height: 34px;
    padding: 0;
  }

  .money-game-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 9px;
  }

  .money-game-name {
    font-size: 10px;
  }

  .money-currency-name {
    font-size: 8px;
  }

  .money-price {
    font-size: 12px;
  }

  .hero-money-preview div {
    grid-template-columns: 34px minmax(0, 1fr) 48px auto;
    gap: 0.5rem;
    min-height: 48px;
  }

  .hero-money-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .hero-money-preview strong {
    font-size: 0.8rem;
  }

  .hero-money-preview span {
    font-size: 0.72rem;
  }

  .hero-money-preview em {
    font-size: 0.85rem;
  }

  .hero-slide-meta {
    left: 1.4rem;
    right: 1.35rem;
    bottom: calc(1.1rem - 5px);
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding: 0;
  }

  .hero-carousel {
    min-height: 268px;
  }

  .hero-carousel-viewport,
  .hero-carousel-track {
    min-height: inherit;
  }

  .hero-slide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 0;
    min-height: 268px;
    height: 100%;
    grid-template-columns: none;
    padding: 6px 14px 18px;
    box-sizing: border-box;
  }

  .hero-slide-copy-block {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    gap: 0;
    margin: 0 0 14px;
    min-height: 78px;
  }

  .hero-title {
    margin: 0;
    font-size: 18px;
    min-height: 46px;
  }

  .hero-desc {
    margin: 9px 0 0;
    min-height: 23px;
  }

  .hero-mini-compare,
  .hero-compare-panel,
  .money-preview-card {
    flex: none;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    margin: 0;
  }

  .hero-mini-compare {
    padding: 0;
  }

  .hero-compare-panel {
    padding: 6px 8px 8px;
  }

  .money-preview-card--grid {
    padding: 6px 0 2px;
  }

  .money-preview-cell {
    min-height: 48px;
  }

  .money-preview-cell__name {
    font-size: 12px;
  }

  .money-preview-cell__currency {
    font-size: 10px;
  }

  .money-preview-cell__price {
    font-size: 13px;
  }

  .money-preview-cell__change {
    font-size: 10px;
  }

  .hero-money-preview {
    width: 100%;
  }

  .hero-slide-meta {
    left: 1.1rem;
    right: 1.05rem;
    bottom: 10px;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 18px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .money-preview-card {
    padding: 7px 9px 4px;
    border-radius: 15px;
  }

  .money-preview-card--grid {
    padding: 6px 0 2px;
  }

  .money-preview-cell {
    min-height: 46px;
    gap: 4px;
    padding: 4px 6px;
  }

  .money-preview-cell__icon {
    width: 24px;
    height: 24px;
  }

  .money-preview-cell__name {
    font-size: 10px;
    letter-spacing: -0.05em;
  }

  .money-preview-cell__currency {
    font-size: 8px;
  }

  .money-preview-cell__price {
    font-size: 11px;
  }

  .money-preview-cell__change {
    font-size: 8px;
  }

  .money-preview-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    column-gap: 6px;
    min-height: 32px;
    padding: 0;
  }

  .money-game-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 8px;
  }

  .money-game-name {
    font-size: 9px;
    letter-spacing: -0.065em;
  }

  .money-currency-name {
    font-size: 8px;
  }

  .money-price {
    font-size: 11px;
  }

  .hero-slide {
    padding-inline: 1rem;
  }
}

/* Search card (hero below) */
.search-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 20px;
  margin: 16px 16px 18px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
}

.search-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.search-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.search-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--orange);
  flex-shrink: 0;
}

.search-card__icon svg {
  width: 24px;
  height: 24px;
}

.search-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.search-card__desc {
  margin: 0 0 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.5;
}

.search-type-toggle {
  display: flex;
  flex: 0 0 150px;
  width: 150px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 0;
  gap: 4px;
}

.search-type-button {
  flex: 1;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-sub);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-type-button.active {
  background: var(--orange);
  color: #111827;
}

.search-card__input--readonly {
  background: #f3f4f6;
  color: var(--text);
  cursor: default;
}

.search-card__form {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(74px, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}

.search-card__input-wrap {
  flex: 1;
  min-width: 0;
}

.search-card__input-hint {
  margin: 8px 0 0;
  padding-left: 0.25rem;
  font-size: 13px;
  font-weight: 400;
  color: #9aa3af;
  line-height: 1.4;
}

.search-card__input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text);
}

.search-card__input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-card__input:focus {
  outline: 2px solid var(--color-primary-focus);
  border-color: var(--orange);
  background: #fff;
}

.search-card__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 56px;
  padding: 0 0.5rem;
  border: none;
  border-radius: 14px;
  background: var(--orange);
  color: #111827;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.search-card__btn:focus-visible {
  outline: 3px solid var(--color-primary-focus);
  outline-offset: 2px;
}

.search-card__btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.search-card__btn:active:not(:disabled) {
  background: var(--color-primary-active);
}

.search-card__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.search-card__btn-icon {
  display: flex;
  align-items: center;
}

.search-card__btn-icon svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 360px) {
  .search-card__form {
    grid-template-columns: minmax(0, 4fr) minmax(64px, 1fr);
    gap: 8px;
  }

  .search-card__btn {
    font-size: 0.8125rem;
  }
}

.search-card__filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

@media (max-width: 360px) {
  .search-card__filters {
    grid-template-columns: 1fr;
  }
}

.search-card__filter {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-card__filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  font-size: 1rem;
  line-height: 1;
}

.search-card__select {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.search-card__notice {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-sub);
  text-align: center;
}

.manual-money-table-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.manual-money-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.875rem;
}

.manual-money-table th,
.manual-money-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.manual-money-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-sub);
  font-size: 0.75rem;
}

.manual-money-table tr:last-child td {
  border-bottom: none;
}

.manual-money-table__server {
  font-weight: 600;
  color: var(--text);
}

.manual-money-table__note {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--text-sub);
}

.currency-coming-soon {
  margin-top: 0.75rem;
  padding: 1.25rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: center;
}

.currency-coming-soon__title {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.currency-coming-soon__desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-sub);
  line-height: 1.45;
}

/* Ad slots */
.ad-slot-wrap {
  margin: 14px 16px 10px;
}

.ad-slot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
  min-height: 72px;
}

.ad-slot__label {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.ad-slot__body {
  flex: 1;
  min-width: 0;
}

.ad-slot__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.ad-slot__sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-sub);
}

/* Game selection */
.game-selection-section {
  margin: 0 0 14px;
  padding: 0 16px;
}

.game-rail-wrap {
  position: relative;
}

/* 좌측 fade(::before)는 첫 카드 왼쪽에 음영처럼 보이므로 사용하지 않음.
   우측 잘림 힌트(::after)만 유지. */
.game-rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 4px;
  width: 18px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(270deg, #fff 15%, rgba(255, 255, 255, 0));
}

.game-rail {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.game-rail::-webkit-scrollbar {
  display: none;
}

.game-card {
  position: relative;
  display: flex;
  flex: 0 0 74px;
  width: 74px;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 74px;
  max-width: 74px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 6px 5px 7px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.game-card.is-selected {
  border-color: var(--color-primary-border);
  box-shadow: 0 8px 18px var(--color-primary-shadow);
}

.game-card.is-selected::after {
  content: "✓";
  position: absolute;
  right: 5px;
  top: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #111827;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
}

.game-card.is-disabled {
  cursor: pointer;
}

.game-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 3px;
  border-radius: 10px;
  background: #f3f4f6;
  overflow: hidden;
}

.game-card__image--logo {
  background: transparent;
  padding: 0;
}

.game-card__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.game-card__fallback {
  font-size: 0.5625rem;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: -0.02em;
}

.game-card__name {
  display: block;
  min-height: 2.35em;
  overflow: visible;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: keep-all;
}

.popular-games-header {
  margin-bottom: 0.65rem;
}

.popular-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.popular-game-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 62px;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.popular-game-card.is-selected {
  border-color: var(--color-primary-border);
  background: var(--color-primary-softest);
}

.popular-game-card.is-disabled {
  opacity: 0.72;
}

.popular-game-card__image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  font-size: 0.625rem;
  font-weight: 800;
  color: #6b7280;
}

.popular-game-card__image--logo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.popular-game-card__badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 700;
  color: #9a3412;
  background: #fff5cc;
  border-radius: 999px;
  vertical-align: middle;
}

.popular-game-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 800;
}

.popular-game-card__arrow {
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 800;
}

/* Toast */
.game-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  max-width: calc(var(--max-width) - 2rem);
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background: rgba(17, 24, 39, 0.88);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
  white-space: nowrap;
}

.game-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Market price table */
.market-search-wrap {
  position: relative;
  margin-bottom: 0.45rem;
}

.market-search-wrap__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-search-wrap__icon svg {
  width: 18px;
  height: 18px;
}

.market-search-input {
  width: 100%;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 0 14px 0 42px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.market-search-input:focus {
  outline: 2px solid var(--color-primary-focus);
  border-color: var(--orange);
}

.market-table-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

.market-table-panel__desc {
  margin: 0;
  padding: 12px 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.4;
}

.market-table-unit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.market-table-unit-row .market-table-unit-line {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.market-table-unit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.market-table-unit-actions .money-refresh-btn {
  min-height: 0;
  padding: 0;
  line-height: 1.35;
}

.market-table-unit-line {
  margin: 0 0 0.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.35;
}

.market-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.market-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 100%;
}

.market-table__col--server {
  width: 42%;
}

.market-table__col--price {
  width: 25%;
}

.market-table__col--count {
  width: 15%;
}

.market-table__col--action {
  width: 18%;
}

.market-table__th {
  height: 34px;
  padding: 0 0.35rem;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.market-table__th--server {
  text-align: left;
  padding-left: 0.75rem;
}

.market-table__th--price {
  text-align: right;
  padding-right: 0.5rem;
}

.market-table__th--count {
  text-align: center;
}

.market-table__th--action {
  text-align: center;
}

.market-table tbody tr {
  height: 46px;
  border-bottom: 1px solid #edf0f3;
}

.market-table__row {
  cursor: default;
}

.market-table__row:focus-visible {
  outline: 2px solid var(--color-primary-focus);
  outline-offset: -2px;
}

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

.market-table td {
  padding: 0 0.35rem;
  vertical-align: middle;
  text-align: center;
}

.market-table__server {
  text-align: left !important;
  padding-left: 0.75rem !important;
  overflow: hidden;
}

.market-table__rank-inline {
  display: inline-block;
  min-width: 1.1rem;
  margin-right: 0.35rem;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  vertical-align: middle;
}

.market-table__server-name {
  display: inline-block;
  max-width: calc(100% - 1.6rem);
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.market-table__price {
  text-align: right !important;
  padding-right: 0.5rem !important;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-table__count {
  font-size: 13px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-table__action {
  padding-right: 0.35rem !important;
}

.market-table__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.market-table__view-btn--muted {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #9ca3af;
  font-weight: 600;
}

.market-table__view-btn--active {
  border-color: var(--orange);
  background: #fff;
  color: var(--orange);
  font-weight: 700;
}

.market-server-row--expanded .market-table__server-name {
  font-weight: 700;
}

.market-server-row--expanded .market-table__price {
  font-weight: 600;
}

.market-server-row--focus {
  background: #fff5cc;
  box-shadow: inset 0 0 0 1px rgba(244, 196, 48, 0.32);
}

.lc-adena-server-row,
.market-server-detail-row {
  scroll-margin-top: 72px;
}

.market-server-detail-row {
  height: auto !important;
  border-bottom: none !important;
}

.market-server-detail-cell {
  padding: 0 0.35rem 0.5rem !important;
  text-align: left !important;
  vertical-align: top !important;
  background: transparent;
}

.market-server-detail-panel {
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.market-server-detail-panel--loading {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  padding: 24px 16px;
}

.market-server-detail-panel__notice {
  margin: 0;
  padding: 8px 16px;
  font-size: 11px;
  line-height: 1.45;
  color: #9a3412;
  background: #fff5cc;
  border-bottom: 1px solid #e9bb22;
}

.market-server-summary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 14px 16px;
  background: #fafafa;
  border-bottom: 1px solid #eef0f3;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.market-server-summary::-webkit-scrollbar {
  display: none;
}

.market-server-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-right: 1px solid #e5e7eb;
  white-space: nowrap;
}

.market-server-summary-item:first-child {
  padding-left: 0;
}

.market-server-summary-item:last-child {
  border-right: none;
  padding-right: 0;
}

.market-server-summary-item--name {
  padding-right: 14px;
}

.market-server-summary-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

.market-server-summary-value {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.market-server-summary-value--name {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}

.market-listing-section {
  padding: 12px 16px 10px;
}

.market-listing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.market-listing-header__text {
  flex: 1;
  min-width: 0;
}

.market-listing-header__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
}

.market-listing-header__sub {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.35;
}

.market-listing-list {
  display: flex;
  flex-direction: column;
}

.market-listing-list__empty {
  margin: 0;
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

.market-listing-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 6px 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  background: transparent;
}

.market-listing-card:last-child {
  border-bottom: none;
}

.market-listing-source {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.market-listing-source__badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: #fff5cc;
  color: #c99a08;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.3;
}

.market-listing-source__name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  word-break: keep-all;
  background: #f3f4f6;
  color: var(--text);
}

.market-listing-source__name--barotem {
  background: #ede9fe;
  color: #7c3aed;
}

.market-listing-source__name--itemmania {
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.15;
  border-radius: 12px;
  padding: 0.28rem 0.4rem;
  background: #dbeafe;
  color: #2563eb;
}

.market-listing-source__name--itembay {
  background: #dcfce7;
  color: #16a34a;
}

.market-listing-source__name--gamemarket {
  background: #f3f4f6;
  color: var(--text);
}

.market-listing-source__name--idfarm {
  background: #fce7f3;
  color: #db2777;
}

.market-listing-card__center {
  min-width: 0;
}

.market-listing-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-listing-card__facts {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.market-listing-fact {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}

.market-listing-fact__label {
  font-weight: 600;
  color: #9ca3af;
}

.market-listing-fact__value {
  font-weight: 700;
  color: #374151;
}

.market-listing-fact--unit .market-listing-fact__value,
.market-listing-unit-price {
  font-weight: 900;
  color: #c99a08;
}

.market-listing-card__action {
  grid-row: 1 / span 2;
  grid-column: 3;
  align-self: center;
}

.market-listing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  font-size: 10px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}

button.market-listing-link {
  cursor: pointer;
  font-family: inherit;
}

.market-listing-link--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.market-listing-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.market-listing-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.market-listing-section__note {
  margin: 6px 0 0;
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 400px) {
  .market-server-summary {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .market-server-summary-item {
    border-right: none;
    padding: 0 8px 0 0;
  }

  .market-server-summary-item--name {
    flex: 1 1 100%;
    padding-right: 0;
    border-bottom: 1px solid #eef0f3;
    padding-bottom: 8px;
  }
}

.market-diagnostics-toggle-wrap {
  margin: 0;
  padding: 8px 16px 12px;
  border-top: 1px solid #f3f4f6;
}

.market-diagnostics-toggle {
  width: 100%;
  border: none;
  background: none;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  text-align: center;
}

.market-diagnostics-panel {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f9fafb;
}

.market-diagnostics-panel__list {
  margin: 0;
  padding: 0 0 0 1rem;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.6;
}

.market-table__empty {
  padding: 1.5rem 1rem !important;
  text-align: center !important;
  color: var(--text-sub);
  font-size: 0.875rem;
}

.market-detail-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.market-detail-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 12px;
}

.market-detail-panel__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 900;
  color: #111827;
}

.market-detail-panel__close {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.35rem 0.75rem;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
}

.market-detail-stats {
  margin: 0 0 12px;
  padding: 0;
}

.market-detail-stats__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.market-detail-stats__row:last-child {
  border-bottom: none;
}

.market-detail-stats__row dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  flex-shrink: 0;
}

.market-detail-stats__row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  text-align: right;
}

.market-detail-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff5cc;
  border: 1px solid #e9bb22;
}

.market-detail-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #9a3412;
}

.market-detail-notice p + p {
  margin-top: 0.25rem;
}

.market-detail-sources__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #374151;
}

.market-detail-sources__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.market-detail-sources__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.market-detail-sources__item:last-child {
  border-bottom: none;
}

.market-detail-sources__site {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.market-detail-sources__meta {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  word-break: break-all;
}

.market-detail-diagnostics {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.market-detail-diagnostics__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #374151;
}

.market-detail-diagnostics__reasons {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.market-detail-diagnostics__failures {
  margin-top: 10px;
}

.market-detail-diagnostics__failures p {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.market-detail-diagnostics__failures ul {
  margin: 0;
  padding-left: 1rem;
}

.market-detail-diagnostics__sample {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 4px;
}

.market-expand-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: calc(100% - 32px);
  margin: 12px 16px 16px;
  height: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.market-expand-btn__main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.market-expand-btn__label {
  font-size: 0.9375rem;
  font-weight: 900;
  color: #111827;
}

.market-expand-btn__icon {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1;
}

.market-expand-btn__sub {
  font-size: 0.6875rem;
  color: #9ca3af;
  line-height: 1.2;
}

.market-server-more-wrap {
  display: flex;
  justify-content: center;
  padding: 0;
  border-top: 1px solid #edf0f3;
  background: #fff;
}

.market-server-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  min-height: 38px;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 0;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.market-server-more-button:has(.expand-chevron) {
  gap: 7px;
}

.expand-chevron {
  display: inline-block;
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.market-server-more-button.is-expanded .expand-chevron {
  margin-top: 2px;
  transform: rotate(225deg);
}

.market-server-more-button:hover {
  background: #fff5cc;
}

.market-server-more-button:active {
  background: #eef0f2;
}

.market-server-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.market-server-empty__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #374151;
}

.market-server-empty__sub {
  margin: 0.35rem 0 0;
  font-size: 13px;
  color: #9ca3af;
}

@media (max-width: 390px) {
  .market-table__price {
    font-size: 0.8125rem;
  }

  .market-table__server-name {
    font-size: 13px;
  }

  .market-table__view-btn {
    font-size: 12px;
  }
}

/* Currency board legacy tags (search results) */
.tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.tag.pass {
  border-color: #bbf7d0;
  color: var(--green);
  background: #f0fdf4;
}

.tag.neutral {
  color: var(--text-muted);
}

/* Search */
.search-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.search-input {
  flex: 1;
  min-height: 44px;
  padding: 0.65rem 0.875rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.search-input:focus {
  outline: 2px solid var(--color-primary-focus);
  border-color: var(--orange);
}

.btn-search {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: #111827;
  font-size: 1.125rem;
  cursor: pointer;
}

.btn-search:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-select {
  flex: 1 1 120px;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.keyword-label {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.chip {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.chip:hover,
.chip.active {
  border-color: var(--color-primary-border);
  color: var(--color-text-strong);
  background: var(--orange-soft);
}

/* Results */
.result-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.result-group__title {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  word-break: break-word;
}

.result-group__meta {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: var(--text-sub);
}

.site-price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-price-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.site-price-item:first-child {
  border-top: none;
  padding-top: 0;
}

.site-price-item.is-lowest {
  color: var(--orange);
  font-weight: 700;
}

.site-price-item__badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: var(--orange);
  color: #111827;
  margin-left: 0.35rem;
}

.item-search-results-section {
  padding-top: 0;
  margin-top: -0.25rem;
  scroll-margin-top: 120px;
}

.item-search-loading,
.item-search-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  text-align: center;
}

.item-search-loading__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.item-search-loading__dots {
  display: inline-flex;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
}

.item-search-loading__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: item-search-dot 1.1s infinite ease-in-out;
}

.item-search-loading__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.item-search-loading__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes item-search-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.item-search-empty__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.item-search-empty__desc,
.item-search-empty__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.item-search-empty__hint {
  margin-top: 0.45rem;
}

.item-search-filter-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-sub);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.item-search-summary {
  background: linear-gradient(180deg, #fff5cc 0%, #fffbea 100%);
  border: 1px solid #e9bb22;
  border-radius: var(--radius);
  padding: 1rem 1rem 0.9rem;
  margin-bottom: 0.75rem;
}

.item-search-summary__layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.item-search-summary__left {
  flex: 1 1 auto;
  min-width: 0;
}

.item-search-summary__right {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.item-search-summary__query {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  word-break: break-word;
  color: var(--text);
}

.item-search-summary__lowest {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: var(--text-sub);
}

.item-search-summary__lowest strong {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-primary-active);
}

.item-search-summary__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.item-search-summary__stat {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-sub);
}

.item-search-summary__stat:last-child {
  margin-bottom: 0;
}

.item-search-summary__stat-label {
  color: var(--text-sub);
  font-weight: 500;
}

.item-search-summary__stat-value {
  color: #1f2937;
  font-weight: 700;
}

@media (max-width: 420px) {
  .item-search-summary__layout {
    gap: 0.5rem;
  }

  .item-search-summary__stat {
    font-size: 0.6875rem;
  }

  .item-search-summary__lowest strong {
    font-size: 1.2rem;
  }
}

.item-enhance-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.item-enhance-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.item-enhance-chip.is-active {
  border-color: var(--color-primary-border);
  background: var(--orange);
  color: #111827;
}

.item-search-warnings {
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #fff5cc;
  border: 1px solid #e9bb22;
}

.item-search-warnings__item {
  margin: 0;
  font-size: 0.75rem;
  color: #c2410c;
  line-height: 1.45;
}

.item-search-warnings__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #f4c430;
  color: #111827;
  font-size: 0.6875rem;
  font-weight: 800;
}

.item-site-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  background: #f3f4f6;
  color: var(--text);
}

.item-site-badge--barotem {
  background: #ede9fe;
  color: #7c3aed;
}

.item-site-badge--itemmania {
  background: #dbeafe;
  color: #2563eb;
}

.item-site-badge--itembay {
  background: #dcfce7;
  color: #16a34a;
}

.item-site-badge--idfarm {
  background: #fce7f3;
  color: #db2777;
}

.item-site-badge--gamemarket,
.item-site-badge--itemthankyou,
.item-site-badge--unknown {
  background: #f3f4f6;
  color: var(--text);
}

.item-listing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-listing-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
}

.item-listing-row__main {
  min-width: 0;
  flex: 1;
}

.item-listing-row__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.item-listing-row__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
  color: var(--text);
}

.item-listing-row__server {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #f3f4f6;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
}

.item-listing-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.item-listing-row__price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.item-listing-row__price--lowest {
  color: var(--color-primary-active);
}

.item-listing-list__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

button.item-listing-list__link {
  cursor: pointer;
  font-family: inherit;
}

.item-listing-list__link--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.item-confidence-badge,
.item-partial-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-confidence-high {
  background: #e8edf3;
  color: #475569;
}

.item-confidence-medium {
  background: #f3ede6;
  color: #8b6914;
}

.item-confidence-low {
  background: #f4f4f5;
  color: #71717a;
  border: 1px solid #e4e4e7;
}

.item-partial-badge {
  background: #edeaf3;
  color: #5b4f72;
}

.item-listing-row__note,
.item-match-aliases {
  margin: 0.28rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-sub);
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-empty-hint {
  margin-top: 0.35rem;
}

@media (max-width: 400px) {
  .item-listing-row__note {
    display: none;
  }

  .item-match-aliases {
    font-size: 0.6875rem;
  }
}

/* States */
.empty-state,
.loading-state,
.info-state {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-sub);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.error-state {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--red);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.btn-text {
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--orange);
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.btn-text:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-text.money-refresh-btn {
  color: #667085;
}

.btn-text.money-refresh-btn:disabled {
  color: #98a2b3;
  opacity: 0.65;
}

.site-footer {
  margin-top: 0.75rem;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin: 0 0 0.85rem;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.2rem 0.15rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--orange);
  text-decoration: underline;
  outline: none;
}

.site-footer__sep {
  color: #d1d5db;
  font-size: 0.75rem;
  user-select: none;
}

.site-footer__copy p {
  margin: 0 0 0.55rem;
  color: var(--text-muted);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.site-footer__copy p:last-child {
  margin-bottom: 0;
}

.site-footer__contact a {
  color: var(--orange);
  text-decoration: none;
  word-break: break-all;
}

.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.site-footer__copyright {
  margin-top: 0.65rem !important;
  color: #9ca3af;
  font-size: 0.75rem;
}

@media (min-width: 521px) {
  body {
    background: #eef2f6;
  }

  .app-shell {
    box-shadow: 0 0 40px rgba(17, 24, 39, 0.08);
  }
}

.site-search-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.site-search-modal-root[hidden] {
  display: none !important;
}

body.site-search-modal-open {
  overflow: hidden;
}

.site-search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.site-search-modal {
  position: relative;
  width: 100%;
  max-width: min(420px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  padding: 1.25rem 1.25rem 1rem;
}

.site-search-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.site-search-modal__desc {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.5;
}

.site-search-modal__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

.search-keyword-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-keyword-box__input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fafb;
  font-size: 0.875rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-keyword-box__copy {
  flex-shrink: 0;
  height: 42px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.site-search-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-search-modal__primary {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--orange);
  color: #111827;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.site-search-modal__secondary {
  width: 100%;
  min-height: 40px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-sub);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 480px) {
  .site-search-modal-root {
    align-items: center;
  }
}

/* ===== Board (자유게시판 / 요청사항 / 공지사항) ===== */
.board-root-section {
  padding: 0 1rem 1rem;
}

.board-page {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.board-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}

.board-tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.55rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1a2744;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.board-tab.is-active {
  background: #1a2744;
  border-color: #1a2744;
  color: #fff;
  box-shadow: inset 0 -3px 0 #f4c430;
}

.board-post-row--pinned {
  background: #f7f8fa;
}

.board-pin-badge {
  display: inline-block;
  margin-right: 0.2rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid #c5cad3;
  background: #eef1f5;
  color: #1a2744;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.board-header__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.board-header__title {
  flex: 1;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.board-header__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.board-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.board-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.board-btn--primary {
  border-color: var(--color-primary-border);
  background: var(--color-primary);
  color: #111827;
}

.board-btn--ghost {
  background: transparent;
}

.board-btn--danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.board-post-row {
  border-bottom: 1px solid var(--border);
}

.board-post-row__link {
  display: block;
  padding: 0.85rem 0.15rem;
  color: inherit;
  text-decoration: none;
}

.board-post-row__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.board-post-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.board-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-sub);
}

.board-status--open {
  border-color: #e9bb22;
  background: #fffbeb;
  color: #92400e;
}

.board-status--progress,
.board-status--planned {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #4b5563;
}

.board-status--done {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

.board-status--hold {
  border-color: #e5e7eb;
  background: #fff;
  color: #6b7280;
}

.board-empty {
  padding: 2rem 0.5rem;
  text-align: center;
  color: var(--text-sub);
}

.board-empty__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.board-empty__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.board-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 0 0.25rem;
}

.board-pager__info {
  font-size: 0.8125rem;
  color: var(--text-sub);
}

.board-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.board-form__error {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8125rem;
}

.board-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.board-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-sub);
}

.board-field__control {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
}

.board-field__control--area {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.board-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.board-detail__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.board-detail__meta,
.board-detail__extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.board-detail__content {
  margin: 0 0 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

.board-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== Board comments ===== */
.board-post-row__comments {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875em;
}

.board-comments {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
}

.board-comments-header {
  margin-bottom: 0.65rem;
}

.board-comments-header__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.board-comment-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border-top: 1px solid var(--border);
}

.board-comment-item {
  padding: 0.75rem 0.1rem;
  border-bottom: 1px solid var(--border);
}

.board-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.board-comment-meta__name {
  font-weight: 600;
  color: var(--text-sub);
}

.board-comment-delete {
  margin-left: auto;
  min-height: 32px;
  padding: 0 0.45rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.board-comment-delete:hover,
.board-comment-delete:focus-visible {
  color: #b91c1c;
  outline: none;
}

.board-comment-content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text);
}

.board-comment-empty {
  padding: 1.25rem 0.25rem 1rem;
  text-align: center;
}

.board-comment-empty__title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.board-comment-empty__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.board-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.board-comment-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.board-field--half {
  flex: 1 1 140px;
  min-width: 0;
}

.board-comment-form__content {
  min-height: 88px;
}

.board-comment-form__actions {
  display: flex;
  justify-content: flex-end;
}

.board-comment-error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8125rem;
}

/* ===== Board replies / datetime meta ===== */
.board-meta-sep {
  color: #d1d5db;
  font-size: 0.75rem;
  user-select: none;
}

.board-detail__meta,
.board-post-row__meta,
.board-comment-meta,
.board-reply-meta {
  align-items: center;
  column-gap: 0.4rem;
}

.board-comment-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.board-comment-reply-button {
  min-height: 32px;
  padding: 0 0.45rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.board-comment-reply-button:hover,
.board-comment-reply-button:focus-visible {
  color: #111827;
  outline: none;
}

.board-comment-delete {
  margin-left: 0;
}

.board-replies-wrap {
  margin-top: 0.55rem;
  margin-left: 0.85rem;
  padding-left: 0.75rem;
  border-left: 2px solid #e5e7eb;
}

.board-replies-header {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.board-replies {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-reply-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.board-reply-item:last-child {
  border-bottom: none;
}

.board-reply-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.board-reply-meta__name {
  font-weight: 600;
  color: var(--text-sub);
}

.board-reply-delete {
  margin-left: auto;
  min-height: 32px;
  padding: 0 0.45rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.board-reply-delete:hover,
.board-reply-delete:focus-visible {
  color: #b91c1c;
  outline: none;
}

.board-reply-content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.84375rem;
  line-height: 1.55;
  color: var(--text);
}

.board-reply-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
}

.board-reply-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.board-reply-error {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8125rem;
}
