:root {
  --bg: #050505;
  --panel: #101010;
  --panel-2: #171717;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --line: #2d2d2d;
  --accent: #ffd84d;
  --accent-2: #ffec99;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 216, 77, 0.12), transparent 36%),
    radial-gradient(circle at 100% 20%, rgba(255, 216, 77, 0.06), transparent 32%),
    var(--bg);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

body {
  top: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

#google_translate_element {
  display: none !important;
}

.page {
  width: min(1220px, 92vw);
  margin: 28px auto 64px;
}

.topnav {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #111;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav a {
  color: #efefef;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 6px 9px;
  border: 1px solid #343434;
  border-radius: 999px;
  white-space: nowrap;
}

.topnav a:hover {
  color: #111;
  background: var(--accent);
  border-color: var(--accent);
}

.locale-wrap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #343434;
  border-radius: 999px;
  padding: 4px 8px;
  background: #131313;
}

.locale-label {
  font-size: 0.75rem;
  color: #dadada;
  white-space: nowrap;
}

.locale-select {
  border: 1px solid #404040;
  background: #1a1a1a;
  color: #f0f0f0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.74rem;
  max-width: 210px;
}

.hero {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #0b0b0b, #151515);
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subtitle {
  margin: 8px 0 6px;
  line-height: 1.3;
  color: var(--muted);
  font-size: 0.87rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight {
  color: var(--accent);
  font-weight: 700;
}

.meta {
  margin: 0;
  font-size: 0.8rem;
  color: #d6d6d6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toolbar,
.content {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--panel);
}

h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid #3b3b3b;
  background: #151515;
  color: #efefef;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(170deg, var(--panel-2), #0f0f0f 82%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  background: #fff;
}

.name-wrap h3 {
  margin: 0;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.69rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 216, 77, 0.17);
  color: var(--accent-2);
  white-space: nowrap;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-row {
  margin: 0;
  color: #e7e7e7;
  line-height: 1.4;
  font-size: 0.77rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-row b {
  color: var(--accent);
  margin-right: 4px;
}

.actions {
  margin-top: auto;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: #121212;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.note {
  margin-top: 16px;
  color: #c5c5c5;
  font-size: 0.76rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.controls {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 8px;
}

.combo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.combo-card {
  border: 1px solid #343434;
  border-radius: 12px;
  background: #121212;
  padding: 10px;
}

.combo-name {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-why {
  margin: 6px 0 0;
  color: #d7d7d7;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.policy-box {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #0f0f0f;
}

.policy-box h2 {
  margin: 0 0 10px;
}

.policy-box p {
  margin: 0 0 8px;
  color: #ddd;
  font-size: 0.9rem;
  line-height: 1.5;
}

.policy-box p:last-child {
  margin-bottom: 0;
}

.footer {
  margin-top: 18px;
  border-top: 1px solid #2f2f2f;
  padding-top: 16px;
}

.footer p {
  margin: 0 0 8px;
  color: #bcbcbc;
  font-size: 0.82rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.policy-page {
  width: min(900px, 92vw);
}

.policy-article {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #0f0f0f;
}

.policy-article h1 {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.policy-article h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1rem;
}

.policy-article p,
.policy-article li {
  font-size: 0.92rem;
  color: #e5e5e5;
  line-height: 1.6;
}

.policy-article ul {
  margin: 0;
  padding-left: 18px;
}

.control-input,
.control-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #3c3c3c;
  background: #141414;
  color: #f3f3f3;
  padding: 9px 11px;
  font-size: 0.82rem;
}

.control-input::placeholder {
  color: #9d9d9d;
}

@media (max-width: 680px) {
  .page {
    width: 94vw;
    margin-top: 14px;
  }

  .hero,
  .toolbar,
  .content {
    border-radius: 14px;
    padding: 14px;
  }

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

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

  .combo-list {
    grid-template-columns: 1fr;
  }

  .topnav {
    gap: 8px;
  }

  .locale-wrap {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .locale-select {
    max-width: 60%;
  }
}
