
  .gc-market-wrap{
    --gm-card:#ffffff;
    --gm-soft:#f8fafc;
    --gm-border:#e2e8f0;
    --gm-heading:#0f172a;
    --gm-text:#334155;
    --gm-sub:#64748b;
    --gm-muted:#94a3b8;
    --gm-primary:#2563eb;
    --gm-primary-dark:#1d4ed8;
    --gm-primary-soft:#eff6ff;
    --gm-red:#ef4444;
    --gm-blue:#2563eb;
    --gm-shadow:
      0 1px 2px rgba(15,23,42,.03),
      0 8px 24px rgba(15,23,42,.045);

    width:100%;
    font-family:
      -apple-system,
      BlinkMacSystemFont,
      "Pretendard",
      "Noto Sans KR",
      Arial,
      sans-serif;
    color:var(--gm-text);
  }

  html.dark .gc-market-wrap,
  body.dark .gc-market-wrap,
  body.dark-mode .gc-market-wrap,
  html[data-theme="dark"] .gc-market-wrap,
  body[data-theme="dark"] .gc-market-wrap,
  .dark-mode .gc-market-wrap,
  .dark .gc-market-wrap{
    --gm-card:#242424;
    --gm-soft:#202020;
    --gm-border:#3a3a3a;
    --gm-heading:#f3f4f6;
    --gm-text:#e5e7eb;
    --gm-sub:#aeb4bd;
    --gm-muted:#7f8792;
    --gm-primary:#60a5fa;
    --gm-primary-dark:#3b82f6;
    --gm-primary-soft:rgba(59,130,246,.14);
    --gm-red:#fb7185;
    --gm-blue:#60a5fa;
    --gm-shadow:none;
  }

  .gc-market-wrap,
  .gc-market-wrap *{
    box-sizing:border-box;
  }

  .gc-market-box{
    position:relative;
    width:100%;
    aspect-ratio:1 / 1;
    padding:20px;
    border:1px solid var(--gm-border);
    border-radius:18px;
    background:var(--gm-card);
    box-shadow:var(--gm-shadow);
    overflow:hidden;
  }

  .gc-market-inner{
    display:flex;
    flex-direction:column;
    width:100%;
    height:100%;
  }

  .gc-market-top{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:14px;
  }

  .gc-market-head-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 44px;
    width:44px;
    height:44px;
    border:0;
    border-radius:12px;
    background:var(--gm-primary-soft, #eff6ff);
    color:var(--gm-primary);
    overflow:hidden;
  }

  .gc-market-head-icon svg{
    display:block;
    width:100%;
    height:100%;
  }

  .gc-market-title-area{
    flex:1 1 auto;
    min-width:0;
  }

  .gc-market-title{
    margin:0 0 4px;
    color:var(--gm-heading);
    font-size:20.5px;
    font-weight:750;
    line-height:1.35;
    letter-spacing:-.5px;
    word-break:keep-all;
  }

  .gc-market-desc{
    color:var(--gm-sub);
    font-size:13px;
    font-weight:400;
    line-height:1.5;
    word-break:keep-all;
  }

  .gc-market-card{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:18px 18px 16px;
    border:1px solid var(--gm-border);
    border-radius:14px;
    background:var(--gm-soft);
  }

  .gc-market-main{
    display:flex;
    flex-direction:column;
    justify-content:center;
    flex:1 1 auto;
    min-height:0;
  }

  .gc-market-question{
    margin:0;
    color:var(--gm-heading);
    font-size:25px;
    font-weight:800;
    line-height:1.35;
    letter-spacing:-.8px;
    text-align:center;
    word-break:keep-all;
  }

  .gc-market-name{
    display:inline-block;
    min-width:190px;
    color:var(--gm-primary);
    font-weight:800;
    text-align:center;
  }

  .gc-market-rate-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    width:100%;
    margin-top:18px;
  }

  .gc-market-rate-card{
    padding:14px 10px 12px;
    border:1px solid var(--gm-border);
    border-radius:12px;
    background:var(--gm-card);
    text-align:center;
  }

  .gc-market-rate-label{
    display:block;
    margin-bottom:7px;
    color:var(--gm-sub);
    font-size:13px;
    font-weight:700;
    line-height:1.25;
  }

  .gc-market-rate-value{
    display:block;
    min-height:27px;
    font-size:26px;
    font-weight:800;
    line-height:1;
    letter-spacing:-.4px;
  }

  .gc-market-rate-card.sell .gc-market-rate-value{
    color:var(--gm-red);
  }

  .gc-market-rate-card.buy .gc-market-rate-value{
    color:var(--gm-blue);
  }

  .gc-market-rate-sub{
    display:block;
    margin-top:7px;
    color:var(--gm-muted);
    font-size:11.5px;
    font-weight:500;
    line-height:1.2;
  }

  .gc-market-ranking{
    width:100%;
    margin-top:10px;
    border:1px solid var(--gm-border);
    border-radius:10px;
    background:var(--gm-card);
    overflow:hidden;
  }

  .gc-market-rank-row{
    display:grid;
    grid-template-columns:30px minmax(0,1fr) 58px minmax(0,1fr) 58px;
    align-items:center;
    gap:6px;
    min-height:32px;
    padding:0 9px;
    font-size:11.5px;
    line-height:1.2;
  }

  .gc-market-rank-row + .gc-market-rank-row{
    border-top:1px solid var(--gm-border);
  }

  .gc-market-rank-head{
    min-height:30px;
    color:var(--gm-sub);
    font-size:10.5px;
    font-weight:700;
  }

  .gc-market-rank-no{
    color:var(--gm-muted);
    font-weight:750;
  }

  .gc-market-rank-store{
    min-width:0;
    overflow:hidden;
    color:var(--gm-heading);
    font-weight:700;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .gc-market-rank-rate{
    font-weight:800;
    text-align:right;
  }

  .gc-market-rank-sell{
    color:var(--gm-red);
  }

  .gc-market-rank-buy{
    color:var(--gm-blue);
  }

  .gc-market-status{
    min-height:16px;
    margin-top:7px;
    color:var(--gm-muted);
    font-size:10px;
    line-height:1.3;
    text-align:right;
  }

  .gc-market-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:38px;
    margin-top:10px;
    border:1px solid var(--gm-primary);
    border-radius:10px;
    background:var(--gm-primary);
    color:#ffffff;
    font-size:12.5px;
    font-weight:700;
    text-decoration:none;
    transition:background-color .18s ease, border-color .18s ease;
  }

  .gc-market-btn:hover{
    border-color:var(--gm-primary-dark);
    background:var(--gm-primary-dark);
  }

  .gc-market-main{
    transition:opacity .18s ease;
  }

  .gc-market-main.gc-market-changing{
    opacity:0;
  }

  @media (max-width:768px){
    .gc-market-box{
      padding:16px;
      border-radius:15px;
    }

    .gc-market-top{
      gap:10px;
      margin-bottom:11px;
    }

    .gc-market-head-icon{
      flex-basis:38px;
      width:38px;
      height:38px;
      border-radius:10px;
      font-size:16px;
    }

    .gc-market-title{
      font-size:17.5px;
    }

    .gc-market-desc{
      font-size:11px;
      line-height:1.45;
    }

    .gc-market-card{
      padding:14px 12px 12px;
      border-radius:12px;
    }

    .gc-market-question{
      font-size:20px;
      letter-spacing:-.6px;
    }

    .gc-market-name{
      min-width:150px;
    }

    .gc-market-rate-grid{
      gap:8px;
      margin-top:14px;
    }

    .gc-market-rate-card{
      padding:11px 7px 10px;
      border-radius:10px;
    }

    .gc-market-rate-label{
      margin-bottom:5px;
      font-size:11.5px;
    }

    .gc-market-rate-value{
      min-height:22px;
      font-size:21px;
    }

    .gc-market-rate-sub{
      margin-top:5px;
      font-size:9.5px;
    }

    .gc-market-ranking{
      margin-top:8px;
      border-radius:9px;
    }

    /* 모바일에서는 순위표를 2위까지만 노출 */
    .gc-market-ranking .gc-market-rank-row:nth-child(n+4){
      display:none;
    }

    .gc-market-rank-row{
      grid-template-columns:25px minmax(0,1fr) 47px minmax(0,1fr) 47px;
      gap:4px;
      min-height:27px;
      padding:0 6px;
      font-size:9.5px;
    }

    .gc-market-rank-head{
      min-height:25px;
      font-size:8.5px;
    }

    .gc-market-status{
      margin-top:5px;
      font-size:8.5px;
    }

    .gc-market-btn{
      min-height:34px;
      margin-top:8px;
      border-radius:9px;
      font-size:11px;
    }
  }
