:root {
  --page: #07040b;
  --header: #09000f;
  --surface: #100817;
  --surface-strong: #13091b;
  --text: #f8efff;
  --muted: #a68cad;
  --line: #35163f;
  --brand: #ff36cf;
  --brand-2: #b73cff;
  --on-brand: #190019;
  --red: #ff3dbb;
  --orange: #d45cff;
  --teal: #4be4ff;
  --blue: #7f70ff;
  --purple: #a83cff;
  --pink: #ff64d6;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #030205;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--on-brand);
  background: var(--brand);
  border-radius: 8px;
}
.site-shell {
  width: min(100%, 1280px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0, rgba(118, 0, 172, .28), transparent 34%), var(--page);
}
.site-header {
  min-height: 82px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: var(--header);
  border-bottom: 1px solid var(--brand);
  box-shadow: 0 0 24px rgba(236, 55, 255, .25);
}
.header-left { justify-self: start; }
.contact-button {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-brand);
  background: var(--brand);
  border: 1px solid #ff86e7;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(255, 54, 207, .45);
}
.contact-button:hover, .category-contact:hover { filter: brightness(1.12); }
.brand-link { grid-column: 2; display: block; }
.brand-link img {
  display: block;
  width: 184px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(214, 62, 255, .58));
}
.search-toggle {
  grid-column: 3;
  justify-self: end;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.search-toggle:hover { background: rgba(255,255,255,.06); }
.search-toggle svg, .search-box svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-panel { padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.search-box {
  max-width: 720px;
  min-height: 50px;
  margin: 0 auto;
  padding: 0 8px 0 15px;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--brand);
  border-radius: 11px;
  box-shadow: 0 0 16px rgba(222, 60, 255, .24);
}
.search-box input { min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 16px; }
.search-box input::placeholder { color: var(--muted); }
.search-box button { min-height: 34px; padding: 0 12px; color: var(--on-brand); background: var(--brand); border: 0; border-radius: 7px; cursor: pointer; }
.search-status { max-width: 720px; min-height: 18px; margin: 7px auto 0; color: var(--muted); font-size: 12px; }
.site-main { padding: 12px 7px 30px; }
.banner-grid { width: min(100%, 1204px); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; }
.banner {
  min-height: 100px;
  aspect-ratio: 600 / 100;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(225, 89, 255, .55);
  border-radius: 2px;
  box-shadow: inset 0 0 16px rgba(141,35,197,.2);
}
.banner-1 { background: #17061f; }
.banner-2 { background: #220824; }
.banner-3 { background: #110d29; }
.banner-4 { background: #26091c; }
.banner-5 { background: #16092a; }
.banner-6 { background: #0b1630; }
.banner-7 { background: #1e0b27; }
.banner-8 { background: #12091b; }
.banner-accent-deep { border-color: rgba(154, 48, 190, .7); box-shadow: inset 0 0 18px rgba(76, 8, 105, .42); }
.banner-accent-bright { border-color: rgba(255, 120, 225, .8); box-shadow: inset 0 0 18px rgba(255, 54, 207, .28); }
.banner.has-image { min-height: 0; padding: 0; background: #08030b; }
.banner.has-image picture,.banner.has-image img { width: 100%; height: 100%; display: block; }
.banner.has-image img { object-fit: cover; }
.banner small { opacity: .7; font-size: 9px; }
.banner strong { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.banner span { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; font-size: 10px; }
.category-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; align-items: start; }
.category-card {
  --accent: var(--red);
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 32%, transparent);
}
.category-card[data-accent="orange"] { --accent: var(--orange); }
.category-card[data-accent="teal"] { --accent: var(--teal); }
.category-card[data-accent="blue"] { --accent: var(--blue); }
.category-card[data-accent="purple"] { --accent: var(--purple); }
.category-card[data-accent="pink"] { --accent: var(--pink); }
.category-header { min-height: 58px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--header); border-bottom: 1px solid var(--accent); }
.category-header h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.category-header span { flex: none; color: var(--muted); font-size: 10px; }
.ranking-list { margin: 0; padding: 10px 10px 10px 43px; overflow: visible; }
.ranking-item { min-height: 42px; padding: 2px 0; font-size: 13px; }
.ranking-row { min-height: 38px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 0 5px; border-radius: 8px; }
a.ranking-row:hover { background: rgba(255,255,255,.05); }
.site-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.official { color: var(--brand); font-size: 10px; white-space: nowrap; }
.inquiry-row .site-name { color: #fff4fd; }
.item-status { color: var(--accent); font-size: 10px; font-weight: 700; white-space: nowrap; }
.category-contact { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; background: var(--header); border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.empty-result { margin: 30px 0; color: var(--muted); text-align: center; }
.site-footer { margin: 22px 10px 0; padding: 16px 0 2px; display: flex; justify-content: space-between; gap: 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.site-footer a:hover { color: var(--brand); }
[data-disabled-contact="true"] { cursor: help; }

@media (min-width: 1050px) {
  .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .site-header { min-height: 68px; padding: 0 9px; grid-template-columns: minmax(74px,1fr) auto minmax(42px,1fr); gap: 5px; }
  .contact-button { min-height: 34px; padding: 0 9px; font-size: 10px; }
  .brand-link img { width: 132px; height: 58px; }
  .search-toggle { width: 40px; height: 40px; }
  .search-panel { padding-inline: 10px; }
  .site-main { padding-top: 7px; }
  .banner-grid { grid-template-columns: 1fr; gap: 6px; }
  .banner { min-height: 0; padding: 8px 10px; }
  .banner small { font-size: 8px; }
  .banner strong { font-size: 12px; }
  .banner span { font-size: 9px; }
  .category-grid { grid-template-columns: 1fr; gap: 14px; margin: 18px 16px 0; }
  .category-header { min-height: 58px; }
  .category-header h2 { font-size: 17px; }
  .ranking-list { padding-block: 9px; }
  .ranking-item { min-height: 43px; font-size: 14px; }
  .site-footer { margin-inline: 16px; display: block; line-height: 1.7; }
  .site-footer a { display: block; margin-top: 4px; }
}
@media (max-width: 370px) {
  .brand-link img { width: 108px; }
  .category-grid { margin-inline: 10px; }
}
