@import url("/fonts.css");

:root {
  --ink: #17344c;
  --ink-soft: #587080;
  --navy: #173c5c;
  --mint: #58d8c6;
  --mint-pale: #e8fbf7;
  --blue: #79c9f5;
  --blue-pale: #edf8ff;
  --pink: #ff9fbd;
  --pink-pale: #fff0f5;
  --gold: #ffc75a;
  --line: rgba(37, 92, 122, .12);
  --shadow: 0 20px 60px rgba(35, 76, 103, .12);
  --font-brand: "Cherry Bomb One", "Jua", system-ui, sans-serif;
  --font-body: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfdff; font-family: var(--font-body); }
body.is-modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.crew-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.84);
  background: rgba(255,255,255,.86); box-shadow: 0 7px 30px rgba(39, 78, 105, .07);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.crew-header__inner { width: min(1180px, calc(100% - 40px)); height: 76px; margin: auto; display: flex; align-items: center; gap: 34px; }
.crew-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.crew-brand img:first-child { width: 42px; height: 42px; object-fit: contain; }
.crew-brand img:last-child { width: 130px; height: auto; }
.crew-header nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.crew-header nav a { padding: 10px 14px; border-radius: 13px; color: #5c7484; font-weight: 750; font-size: 14px; }
.crew-header nav a:hover, .crew-header nav a.is-active { color: var(--navy); background: var(--mint-pale); }
.crew-header .game-story-nav > summary { padding: 10px 14px; border-radius: 13px; color: #5c7484; font-size: 14px; font-weight: 750; }
.crew-header .game-story-nav[open] > summary, .crew-header .game-story-nav > summary:hover { color: var(--navy); background: var(--mint-pale); }
.crew-header .game-story-menu a { padding: 11px 12px !important; }
.crew-header .lang-bar { flex: 0 0 auto; }
.crew-header .lang-bar select {
  height: 40px;
  min-width: 106px;
  padding: 0 30px 0 12px;
  border: 1px solid #cfe4ec;
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  color: #355b72;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}
.crew-header .lang-bar select:focus-visible { box-shadow: 0 0 0 3px rgba(79, 209, 197, .24); }
.home-pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 15px; background: var(--navy); color: white; font-weight: 800; font-size: 13px; box-shadow: 0 8px 22px rgba(23,60,92,.2); }
.home-pill svg { width: 17px; height: 17px; }

.crew-hero { position: relative; min-height: 590px; overflow: hidden; background: linear-gradient(135deg, #f0fbff 0%, #fff4f8 49%, #f0fff9 100%); }
.crew-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, rgba(255,255,255,.9)); pointer-events: none; }
.crew-hero__inner { position: relative; z-index: 2; width: min(1180px, calc(100% - 40px)); min-height: 590px; margin: auto; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 46px; }
.crew-hero__glow { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .7; }
.crew-hero__glow--pink { width: 440px; height: 440px; right: -100px; top: -120px; background: radial-gradient(circle, rgba(255,173,203,.45), transparent 70%); }
.crew-hero__glow--blue { width: 500px; height: 500px; left: -180px; bottom: -260px; background: radial-gradient(circle, rgba(104,208,246,.35), transparent 70%); }
.crew-kicker { display: inline-flex; align-items: center; gap: 7px; color: #1b9d91; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.crew-kicker svg { width: 17px; height: 17px; }
.crew-hero h1 { margin: 18px 0 20px; font: 400 clamp(42px, 5vw, 70px)/1.1 var(--font-brand); letter-spacing: .015em; color: #1d4563; }
.crew-hero h1 em { color: #f07ca4; font-style: normal; }
.crew-hero__copy > p { max-width: 510px; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.85; font-weight: 570; }
.hero-facts { display: flex; gap: 10px; margin-top: 30px; }
.hero-facts span { min-width: 112px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.92); border-radius: 20px; background: rgba(255,255,255,.62); box-shadow: 0 10px 30px rgba(31,81,111,.08); backdrop-filter: blur(12px); }
.hero-facts b, .hero-facts small { display: block; }
.hero-facts b { color: #244e6b; font: 400 27px var(--font-brand); }
.hero-facts small { margin-top: 2px; color: #78909e; font-size: 10px; font-weight: 800; }

.crew-hero__art { position: relative; height: 530px; }
.crew-hero__art::before { content: ""; position: absolute; width: 440px; height: 440px; left: 50%; top: 48%; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,.9); border-radius: 48% 52% 50% 46%; background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(217,249,245,.7)); box-shadow: inset 0 0 60px white, 0 30px 80px rgba(60,134,156,.15); }
.hero-character { position: absolute; margin: 0; filter: drop-shadow(0 22px 15px rgba(40,78,102,.16)); }
.hero-character img { width: 100%; height: 100%; object-fit: contain; }
.hero-character--main { z-index: 3; width: 350px; height: 410px; left: 50%; bottom: 22px; transform: translateX(-50%); }
.hero-character--left { z-index: 2; width: 245px; height: 300px; left: 2%; bottom: 35px; transform: rotate(-7deg); }
.hero-character--right { z-index: 2; width: 245px; height: 300px; right: 0; bottom: 40px; transform: rotate(7deg); }
.hero-bubble { position: absolute; z-index: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: rgba(118,215,237,.2); box-shadow: inset -8px -10px 18px rgba(82,176,208,.12), inset 6px 7px 12px white; }
.hero-bubble--one { width: 70px; height: 70px; right: 7%; top: 75px; }
.hero-bubble--two { width: 35px; height: 35px; left: 14%; top: 105px; }
.hero-label { position: absolute; z-index: 4; padding: 9px 13px; border: 1px solid white; border-radius: 14px; background: rgba(255,255,255,.75); box-shadow: 0 10px 25px rgba(37,84,113,.1); color: #597488; font-size: 9px; font-weight: 900; letter-spacing: .12em; backdrop-filter: blur(12px); }
.hero-label--one { right: 2%; top: 170px; }
.hero-label--two { left: 4%; bottom: 90px; }

.crew-catalog { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 86px 0 100px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.catalog-heading h2 { margin: 8px 0 5px; font: 400 clamp(34px, 4vw, 51px) var(--font-brand); color: #1d4563; }
.catalog-heading p { margin: 0; color: #7c909c; font-size: 14px; }
.catalog-count { flex: 0 0 auto; padding: 10px 15px; border: 1px solid #caeee8; border-radius: 15px; color: #4c7579; background: #f0fbf9; font-size: 12px; font-weight: 800; }
.catalog-count b { margin-right: 3px; color: #179d8d; font-size: 18px; }
.catalog-tools { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 14px 45px rgba(34,73,100,.08); }
.crew-search { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid #dce8ee; border-radius: 15px; background: #f8fbfd; }
.crew-search:focus-within { border-color: #6bd4ca; box-shadow: 0 0 0 3px rgba(88,216,198,.13); }
.crew-search svg { width: 19px; height: 19px; color: #7b929f; }
.crew-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.crew-search input::placeholder { color: #9cafb9; }
.style-filter { display: flex; gap: 5px; padding: 4px; border-radius: 15px; background: #f1f5f7; }
.style-filter button { height: 40px; padding: 0 13px; border: 0; border-radius: 11px; color: #718692; background: transparent; cursor: pointer; font-size: 12px; font-weight: 850; }
.style-filter button:hover, .style-filter button.is-active { color: #176f69; background: white; box-shadow: 0 4px 13px rgba(35,79,101,.1); }
.crew-sort { display: flex; align-items: center; gap: 8px; color: #83949d; font-size: 11px; font-weight: 800; }
.crew-sort select { height: 44px; padding: 0 34px 0 13px; border: 1px solid #dce8ee; border-radius: 13px; outline: none; color: var(--ink); background: #fff; font-weight: 750; }
.crew-note { margin: 15px 0 25px; padding: 13px 17px; border-left: 3px solid #82d9cc; border-radius: 0 13px 13px 0; color: #66808f; background: #f4fbfa; font-size: 12px; line-height: 1.65; }
.crew-note strong { color: #287a75; }

.crew-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.crew-card { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(77,121,145,.14); border-radius: 25px; color: inherit; background: white; box-shadow: 0 12px 35px rgba(35,77,104,.08); text-align: left; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.crew-card:hover { z-index: 2; transform: translateY(-6px); border-color: rgba(54,187,174,.4); box-shadow: 0 22px 48px rgba(35,77,104,.15); }
.crew-card:focus-visible { outline: 3px solid rgba(46,190,179,.35); outline-offset: 3px; }
.crew-card__art { position: relative; height: 245px; overflow: hidden; background: radial-gradient(circle at 50% 65%, rgba(255,255,255,.96), rgba(230,248,251,.78) 54%, #e6f2fb); }
.crew-card--근거리 .crew-card__art { background: radial-gradient(circle at 50% 65%, #fff, #fff0f4 58%, #fde7ef); }
.crew-card--중거리 .crew-card__art { background: radial-gradient(circle at 50% 65%, #fff, #edf9f4 58%, #dff5ee); }
.crew-card__art::after { content: ""; position: absolute; left: 17%; right: 17%; bottom: 16px; height: 18px; border-radius: 50%; background: rgba(61,101,123,.12); filter: blur(9px); }
.crew-card__art img { position: relative; z-index: 1; width: 100%; height: 100%; padding: 17px 17px 0; object-fit: contain; transition: transform .35s ease; }
.crew-card:hover .crew-card__art img { transform: scale(1.045); }
.crew-card__number { position: absolute; z-index: 3; top: 13px; left: 13px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.92); border-radius: 11px; color: #567486; background: rgba(255,255,255,.72); font-size: 9px; font-weight: 900; letter-spacing: .08em; backdrop-filter: blur(10px); }
.crew-card__style { position: absolute; z-index: 3; top: 13px; right: 13px; padding: 7px 10px; border-radius: 11px; color: #1d706a; background: rgba(228,251,247,.88); font-size: 9px; font-weight: 900; }
.crew-card__body { padding: 18px 18px 19px; }
.crew-card__body h3 { margin: 0; color: #204862; font: 400 24px var(--font-brand); }
.crew-card__skill { display: block; min-height: 36px; margin-top: 7px; overflow: hidden; color: #788e9b; font-size: 12px; line-height: 1.5; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.crew-card__stats { display: flex; gap: 6px; margin-top: 14px; }
.crew-card__stats span { flex: 1; min-width: 0; padding: 8px 5px; border-radius: 10px; color: #6e8490; background: #f5f8fa; text-align: center; font-size: 9px; font-weight: 750; }
.crew-card__stats b { display: block; margin-top: 2px; color: #345b73; font-size: 12px; }
.crew-empty { padding: 70px 20px; border: 1px dashed #c9dce5; border-radius: 25px; color: #7c929e; background: #f9fcfd; text-align: center; }
.crew-empty strong, .crew-empty span { display: block; }
.crew-empty strong { color: #3e667d; font-size: 20px; }
.crew-empty span { margin-top: 5px; font-size: 13px; }

.crew-cta { padding: 80px 20px; color: white; background: linear-gradient(120deg, #143e5f, #1e6076 58%, #238b83); text-align: center; }
.crew-cta__inner { width: min(760px, 100%); margin: auto; }
.crew-cta .crew-kicker { color: #8ef0dc; }
.crew-cta h2 { margin: 13px 0 10px; font: 400 clamp(34px, 5vw, 52px) var(--font-brand); }
.crew-cta p { margin: 0 auto 25px; color: rgba(255,255,255,.72); line-height: 1.7; }
.crew-cta a { display: inline-flex; align-items: center; gap: 9px; padding: 14px 19px; border-radius: 16px; color: #174459; background: white; box-shadow: 0 12px 30px rgba(0,0,0,.15); font-weight: 900; }
.crew-cta a svg { width: 18px; height: 18px; }
.crew-footer { padding: 24px 20px; color: #78909c; background: white; text-align: center; font-size: 11px; }

.crew-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.crew-modal[hidden] { display: none; }
.crew-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(18,43,61,.62); backdrop-filter: blur(8px); cursor: default; }
.crew-modal__panel { position: relative; width: min(850px, 100%); max-height: calc(100dvh - 40px); display: grid; grid-template-columns: .9fr 1.1fr; overflow: auto; border: 1px solid rgba(255,255,255,.92); border-radius: 32px; background: white; box-shadow: 0 35px 90px rgba(11,35,51,.28); }
.crew-modal__close { position: absolute; z-index: 5; top: 15px; right: 15px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; color: #496a7c; background: rgba(255,255,255,.75); box-shadow: 0 7px 20px rgba(36,77,101,.12); cursor: pointer; backdrop-filter: blur(10px); }
.crew-modal__close svg { width: 18px; height: 18px; }
.modal-character-art { position: relative; min-height: 570px; display: flex; align-items: end; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 60%, white, #e7faf6 55%, #ddecf8); }
.modal-character-art::before { content: ""; position: absolute; width: 280px; height: 280px; left: 50%; top: 43%; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(255,255,255,.35); box-shadow: 0 0 0 28px rgba(255,255,255,.16), 0 0 0 56px rgba(255,255,255,.1); }
.modal-character-art span { position: absolute; z-index: 2; top: 24px; left: 24px; color: #559188; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.modal-character-art img { position: relative; z-index: 1; width: 100%; height: 520px; object-fit: contain; filter: drop-shadow(0 20px 14px rgba(40,84,106,.2)); }
.modal-character-copy { padding: 54px 38px 38px; }
.modal-style { display: inline-flex; padding: 7px 10px; border-radius: 10px; color: #20776f; background: #e7f9f5; font-size: 10px; font-weight: 900; }
.modal-character-copy h2 { margin: 10px 0 20px; color: #214b66; font: 400 43px var(--font-brand); }
.modal-skill { padding: 18px; border: 1px solid #dfeaf0; border-radius: 18px; background: #f8fbfd; }
.modal-skill small { display: block; margin-bottom: 5px; color: #ef7ca4; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.modal-skill strong { display: block; color: #2d5870; font-size: 17px; }
.modal-skill p { margin: 7px 0 0; color: #68808d; font-size: 12px; line-height: 1.65; }
.modal-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 18px 0; }
.modal-stats div { padding: 12px 13px; border-radius: 13px; background: #f4f8fa; }
.modal-stats dt { color: #8497a1; font-size: 9px; font-weight: 850; }
.modal-stats dd { margin: 3px 0 0; color: #2e5870; font-size: 14px; font-weight: 900; }
.modal-footnote { margin: 0; padding-top: 14px; border-top: 1px solid #e3ecef; color: #8a9ba4; font-size: 10px; line-height: 1.6; }

@media (max-width: 940px) {
  .crew-header nav { display: none; }
  .crew-header .lang-bar { margin-left: auto; }
  .home-pill { margin-left: 0; }
  .crew-hero__inner { grid-template-columns: 1fr; padding-top: 65px; text-align: center; }
  .crew-hero__copy > p { margin-inline: auto; }
  .hero-facts { justify-content: center; }
  .crew-hero__art { height: 470px; }
  .crew-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .catalog-tools { grid-template-columns: 1fr; }
  .style-filter { overflow-x: auto; }
  .style-filter button { flex: 1 0 auto; }
  .crew-sort { justify-content: flex-end; }
}

@media (max-width: 680px) {
  .crew-header__inner { width: calc(100% - 24px); height: 66px; }
  .crew-header__inner { gap: 10px; }
  .crew-brand img:last-child { display: none; }
  .crew-header .lang-bar select { min-width: 96px; height: 38px; }
  .crew-brand img:first-child { width: 36px; height: 36px; }
  .crew-brand img:last-child { width: 108px; }
  .home-pill { padding: 10px 12px; }
  .crew-hero__inner { width: calc(100% - 28px); min-height: 650px; padding-top: 48px; gap: 5px; }
  .crew-hero h1 { font-size: 39px; }
  .crew-hero__copy > p { font-size: 14px; line-height: 1.7; }
  .hero-facts { gap: 6px; }
  .hero-facts span { min-width: 0; flex: 1; padding: 12px 7px; }
  .hero-facts b { font-size: 22px; }
  .crew-hero__art { height: 330px; }
  .crew-hero__art::before { width: 290px; height: 290px; }
  .hero-character--main { width: 245px; height: 285px; bottom: 5px; }
  .hero-character--left, .hero-character--right { width: 150px; height: 185px; bottom: 12px; }
  .hero-label { display: none; }
  .crew-catalog { width: calc(100% - 24px); padding: 60px 0 70px; }
  .catalog-heading { align-items: start; }
  .catalog-heading p { max-width: 250px; }
  .catalog-count { margin-top: 4px; padding: 8px 10px; }
  .crew-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .crew-card { border-radius: 19px; }
  .crew-card__art { height: 190px; }
  .crew-card__art img { padding: 11px 8px 0; }
  .crew-card__body { padding: 13px; }
  .crew-card__body h3 { font-size: 20px; }
  .crew-card__skill { min-height: 34px; font-size: 10px; }
  .crew-card__stats span:nth-child(3) { display: none; }
  .crew-modal { padding: 10px; }
  .crew-modal__panel { grid-template-columns: 1fr; border-radius: 25px; }
  .modal-character-art { min-height: 330px; }
  .modal-character-art img { height: 315px; }
  .modal-character-copy { padding: 28px 22px 24px; }
  .modal-character-copy h2 { font-size: 34px; }
}

@media (max-width: 390px) {
  .crew-brand img:last-child { display: none; }
  .crew-grid { grid-template-columns: 1fr 1fr; }
  .crew-card__art { height: 170px; }
  .catalog-heading p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
