* {
  box-sizing: border-box;
}

:root {
  --sea-900: #06111f;
  --sea-700: #0b5e89;
  --sea-500: #23aee8;
  --sea-200: #d9f7ff;
  --white: #f7fbff;
  --ink: #0c1722;
  --muted: #5c7080;
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.26);
  --line: rgba(180, 235, 255, 0.36);
  --shadow: 0 28px 90px rgba(4, 38, 66, 0.24);
  --danger: #9f2334;
  --gold: #c29a42;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  line-height: 1.72;
  word-break: keep-all;
  background:
    radial-gradient(circle at 14% 0%, rgba(124, 224, 255, 0.5), transparent 24rem),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.74), transparent 22rem),
    linear-gradient(135deg, #f6fcff 0%, #d9f4ff 34%, #9edaf2 64%, #f8fcff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.62), transparent 38%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 9px);
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 44vh;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(4, 58, 92, 0.2), transparent 62%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.46));
}

.wrap {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(18px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(246, 252, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(8, 76, 120, 0.12);
}

.brand {
  display: grid;
  gap: 2px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand small {
  color: var(--sea-700);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 12px;
  border: 1px solid rgba(11, 94, 137, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: #17445c;
  font-size: 13px;
  font-weight: 900;
}

.hero-blue {
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: 72px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 38px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sea-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: #071621;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-shadow: 0 16px 42px rgba(7, 80, 120, 0.16);
}

.hero-copy {
  margin: 22px 0 0;
  color: #23465c;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 0% 0%, rgba(35, 174, 232, 0.18), transparent 24rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.hero-card img {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 18, 32, 0.28);
}

.hero-card::after,
.id-glass::after {
  content: "";
  position: absolute;
  inset: -42%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.42) 49%, transparent 60%);
  transform: translateX(-68%) rotate(8deg);
  animation: shineSweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 54% {
    transform: translateX(-72%) rotate(8deg);
  }
  100% {
    transform: translateX(72%) rotate(8deg);
  }
}

.radio-strip {
  overflow: hidden;
  margin: 22px 0 0;
  border: 1px solid rgba(11, 94, 137, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #14506c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.radio-strip span {
  display: inline-block;
  min-width: 100%;
  padding: 9px 0;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

.section {
  padding: 58px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  color: #071621;
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: -0.06em;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.feed-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 54px rgba(7, 80, 120, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 80px rgba(7, 80, 120, 0.24);
}

.feed-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feed-card div {
  padding: 12px;
}

.feed-card strong {
  display: block;
  color: #092338;
  font-size: 18px;
  letter-spacing: -0.05em;
}

.feed-card span {
  color: #216381;
  font-size: 12px;
  font-weight: 900;
}

.profile-section {
  display: grid;
  gap: 34px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
}

.visual-pane {
  min-height: 620px;
  border-radius: 26px;
  background-position: left center;
  background-size: cover;
  box-shadow: inset 0 -140px 120px rgba(6, 17, 31, 0.28);
}

.profile-copy h3 {
  margin: 0;
  color: #06111f;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.profile-copy p {
  margin: 16px 0;
  color: #284b60;
  font-size: 16px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #14506c;
  font-size: 12px;
  font-weight: 900;
}

.id-glass {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(180, 235, 255, 0.48);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 80px rgba(20, 120, 180, 0.25),
    inset 0 0 24px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.id-glass img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

.mini-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.mini-panel {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.mini-panel b {
  display: block;
  color: #0b5e89;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-panel span {
  color: #092338;
  font-weight: 900;
}

.world-grid,
.dex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.term-card {
  min-height: 190px;
  padding: 22px;
}

.term-card h3 {
  margin: 0 0 10px;
  color: #0b5e89;
  font-size: 22px;
}

.term-card p {
  margin: 0;
  color: #385569;
  font-weight: 700;
}

.compact-card {
  min-height: auto;
}

.compact-card p {
  margin: 0 0 12px;
  word-break: break-all;
}

.compact-card p:last-child {
  margin-bottom: 0;
}

.code-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 1px;
}

.code-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.42);
}

.code-row b {
  color: #0b5e89;
  font-size: 18px;
}

.code-row span {
  color: #20394c;
  font-weight: 900;
}

.dex-shell {
  color: #f4efe6;
  background:
    radial-gradient(circle at 18% 0%, rgba(27, 104, 117, 0.28), transparent 20rem),
    radial-gradient(circle at 82% 8%, rgba(159, 35, 52, 0.18), transparent 18rem),
    linear-gradient(180deg, #02070a 0%, #040b0f 48%, #010304 100%);
}

.dex-shell .site-shell::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 226, 255, 0.08), transparent 26rem),
    linear-gradient(120deg, rgba(27, 104, 117, 0.1), transparent 42%);
}

.dex-shell .site-shell::after {
  height: 34vh;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(159, 35, 52, 0.12), transparent 64%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

.dex-shell .dex-hero {
  min-height: auto;
  padding: 48px 0 18px;
}

.dex-shell .hero-copy {
  max-width: 720px;
  color: #9fc5cb;
  text-shadow: 0 0 12px rgba(126, 226, 255, 0.12);
}

.dex-shell .top-nav {
  background: rgba(2, 7, 10, 0.76);
  border-bottom-color: rgba(244, 239, 230, 0.14);
}

.dex-shell .brand,
.dex-shell .section-head h2,
.dex-shell .hero-title {
  color: #f5e6c8;
}

.dex-shell .hero-title {
  text-shadow:
    0 0 18px rgba(194, 154, 66, 0.2),
    0 0 34px rgba(126, 226, 255, 0.08);
}

.dex-shell .section {
  padding: 36px 0;
}

.dex-shell .section-head {
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(126, 226, 255, 0.12);
  border-left: 5px solid #1b6875;
  background: linear-gradient(90deg, rgba(8, 22, 28, 0.94), rgba(4, 12, 15, 0.72));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.dex-shell .section-head p {
  color: #9fb2b2;
  text-shadow: 0 0 10px rgba(126, 226, 255, 0.1);
}

.dex-shell .nav-links a,
.dex-shell .glass-panel,
.dex-card {
  color: #d9e2df;
  background:
    radial-gradient(circle at 0% 0%, rgba(27, 104, 117, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(8, 22, 28, 0.96), rgba(4, 12, 15, 0.98));
  border-color: rgba(126, 226, 255, 0.14);
}

.dex-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.62),
    inset 0 0 24px rgba(126, 226, 255, 0.04);
}

.dex-card::before {
  content: "K-BAB FIELD RECORD";
  display: block;
  margin: -2px 0 12px;
  color: rgba(126, 226, 255, 0.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.dex-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #1b6875, #9f2334);
  opacity: 0.9;
}

.dex-card h3 {
  margin: 0 0 14px;
  color: #eafcff;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-shadow: 0 0 12px rgba(126, 226, 255, 0.18);
}

.dex-card img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
  box-shadow: 0 0 26px rgba(27, 104, 117, 0.18);
}

.terminal-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.terminal-dashboard div {
  padding: 12px 14px;
  border: 1px solid rgba(126, 226, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 22, 28, 0.72), rgba(4, 12, 15, 0.88));
  box-shadow: inset 0 0 18px rgba(27, 104, 117, 0.08);
}

.terminal-dashboard b {
  display: block;
  color: rgba(194, 154, 66, 0.9);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.terminal-dashboard span {
  display: block;
  margin-top: 4px;
  color: #eafcff;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(126, 226, 255, 0.14);
}

footer {
  padding: 50px 0 70px;
  color: rgba(12, 23, 34, 0.56);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .top-nav,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .character-grid,
  .world-grid,
  .dex-grid,
  .code-table,
  .mini-panels {
    grid-template-columns: 1fr;
  }

  .dex-shell .dex-hero {
    padding: 32px 0 8px;
  }

  .dex-shell .section {
    padding: 24px 0;
  }

  .terminal-dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .visual-pane {
    min-height: 420px;
  }
}
