/* 별꽃 팀 소개 웹페이지. 휴대폰 화면을 기준으로 쓰고, 넓은 화면은 아래 미디어 쿼리에서 넓힌다. */

:root {
  --bg: #070b1f;
  --bg-alt: #0b1230;
  --surface: #101a40;
  --line: rgba(120, 190, 255, 0.22);
  --text: #e9edff;
  --muted: #a3add4;
  --cyan: #45e0ff;
  --magenta: #ff5fc4;
  --violet: #8f7bff;
  --green: #86ff7a;
  --danger: #ff8a8a;
  --radius: 14px;
  --header-h: 56px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p + p { margin-top: 0.7em; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--cyan); color: #04121c; padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 760px); }

/* ── 머리말 ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 31, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.brand span { color: var(--cyan); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; margin-left: 6px; }

.nav-toggle {
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; color: var(--text); cursor: pointer;
  display: grid; place-items: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(7, 11, 31, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 16px;
}
.site-nav.is-open { display: grid; }
.site-nav a {
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.1em;
  padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-nav a:hover { color: var(--cyan); }

/* ── HOME ───────────────────────────────── */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 880px);
  display: grid; align-items: center;
  padding: 48px 0 64px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(7, 11, 31, 0.55) 0%, rgba(7, 11, 31, 0.72) 55%, var(--bg) 100%),
    url("../assets/img/hero-bg.webp") center / cover no-repeat;
}
.hero-inner { display: grid; justify-items: center; gap: 14px; }
.hero-team { font-weight: 800; letter-spacing: 0.12em; color: var(--text); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.badge {
  margin: 0;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: #2a2470;
  font-weight: 800; font-size: 0.86rem; letter-spacing: 0.02em;
}
.hero-title { display: grid; justify-items: center; gap: 2px; }
.hero-title img { width: min(86vw, 560px); filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.6)); }
.hero-title-en { font-size: 0.95rem; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.hero-tagline {
  margin-top: 6px;
  font-size: clamp(1.35rem, 5.6vw, 2.1rem); font-weight: 900; line-height: 1.35;
  background: linear-gradient(90deg, var(--cyan), #c9b8ff 55%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}
.hero-desc { max-width: 36em; margin-top: 0; color: var(--text); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 14px; }

/* ── 버튼 ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(90deg, #26c6ff, #8f7bff);
  color: #05101f;
  box-shadow: 0 6px 22px rgba(69, 224, 255, 0.28);
}
.btn-ghost { background: rgba(7, 11, 31, 0.55); color: var(--text); border-color: var(--cyan); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ── 구역 공통 ──────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid rgba(120, 190, 255, 0.1); }
.section-head { margin-bottom: 28px; }
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.22em; }
.section-head h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 900; line-height: 1.25; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}
.intro { margin-bottom: 8px; }
.intro-title { font-size: 1.35rem; font-weight: 800; line-height: 1.4; margin-bottom: 12px; }
.lead { font-size: 1.12rem; font-weight: 700; color: var(--cyan); }
.sub-title { font-size: 1.15rem; font-weight: 800; margin: 44px 0 14px; padding-left: 12px; border-left: 4px solid var(--violet); line-height: 1.3; }
.sub-desc { color: var(--muted); margin-bottom: 16px; }
.closing { margin-top: 1.4em; font-weight: 700; color: var(--text); }
.section p { color: #d3daf5; }
.section .lead { color: var(--cyan); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

/* ── GAME ───────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.info-grid > div {
  display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; align-items: baseline;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.info-grid dt { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.info-grid dd { font-weight: 700; }

.feature-list { display: grid; gap: 14px; }
.feature-list .card { position: relative; padding-top: 22px; }
.feature-num { font-size: 1.5rem; line-height: 1; color: var(--magenta); font-weight: 800; }
.feature-list h4 { font-size: 1.08rem; font-weight: 800; margin: 6px 0 8px; }

.player-grid { display: grid; gap: 14px; }
.player h4 { font-size: 1.08rem; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.player-tag { font-size: 0.74rem; letter-spacing: 0.12em; padding: 3px 10px; border-radius: 999px; color: #05101f; background: var(--cyan); }
.player-3d .player-tag { background: var(--green); }
.player-2d { border-color: rgba(69, 224, 255, 0.45); }
.player-3d { border-color: rgba(134, 255, 122, 0.4); }
.player-role { margin: 10px 0 14px; }
.key-list { display: grid; gap: 8px; }
.key-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
kbd {
  font: inherit; font-weight: 800; font-size: 0.9rem;
  padding: 4px 12px; border-radius: 8px;
  background: #1b2760; border: 1px solid rgba(143, 123, 255, 0.6); border-bottom-width: 3px; color: var(--text);
}

.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
.shot {
  padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #000; cursor: zoom-in; display: block; width: 100%;
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.25s ease; }
.shot-wide img { aspect-ratio: 16 / 9; }
.shot:hover img { transform: scale(1.03); }
.video-slot {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 9; border: 1.5px dashed var(--line); border-radius: 12px;
  color: var(--muted); font-weight: 700;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px);
}
.video-slot small { font-weight: 500; }

/* ── TEAM ───────────────────────────────── */
.team-grid { display: grid; gap: 14px; margin-top: 20px; }
.member { display: flex; flex-direction: column; gap: 12px; }
.member h4 { font-size: 1.25rem; font-weight: 900; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.member-role { font-size: 0.82rem; font-weight: 800; color: var(--cyan); letter-spacing: 0.08em; }
.member-meta { display: grid; gap: 4px; padding: 10px 12px; background: rgba(7, 11, 31, 0.5); border-radius: 10px; }
.member-meta > div { display: grid; grid-template-columns: 3.2em 1fr; gap: 10px; }
.member-meta dt { color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.member-meta dd { font-weight: 700; font-size: 0.94rem; }
.member p { margin: 0; font-size: 0.96rem; }
.member-link {
  margin-top: auto; align-self: flex-start;
  min-height: 40px; display: inline-flex; align-items: center;
  padding: 0 16px; border: 1.5px solid var(--cyan); border-radius: 999px;
  font-weight: 800; font-size: 0.9rem; text-decoration: none;
}
.member-link::after { content: "↗"; margin-left: 6px; }
.member-link:hover { background: rgba(69, 224, 255, 0.12); }

/* ── 양식 ───────────────────────────────── */
.form { display: grid; gap: 18px; margin-top: 28px; }
.form-title { font-size: 1.15rem; font-weight: 800; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; }
.hint { margin: 0; color: var(--muted); font-size: 0.9rem; }
.field p + input, .field p + textarea { margin-top: 0; }
input, textarea, select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; color: var(--text);
  background: rgba(7, 11, 31, 0.7); border: 1.5px solid rgba(120, 190, 255, 0.3); border-radius: 10px;
}
textarea { resize: vertical; line-height: 1.6; }
select { appearance: auto; }
select:invalid { color: #8d97bf; }
input::placeholder, textarea::placeholder { color: #8d97bf; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(69, 224, 255, 0.2); }
[aria-invalid="true"] { border-color: var(--danger); }
.form .btn { justify-self: start; }
.form-error { margin: 0; color: var(--danger); font-weight: 700; }
.form-note { margin: 0; color: var(--muted) !important; font-size: 0.88rem; }
/* 자동 프로그램을 거르는 칸. 화면 밖에 두어 사람에게는 보이지 않게 한다. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done {
  padding: 16px 18px; border-radius: 12px;
  background: rgba(134, 255, 122, 0.1); border: 1px solid rgba(134, 255, 122, 0.45);
}
.form-done-title { font-weight: 900; color: var(--green); font-size: 1.05rem; }
.form-done p { margin: 0; }
.form-done p + p { margin-top: 4px; }
.preview-note {
  margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; font-weight: 700;
  color: #ffe9a6; background: rgba(255, 196, 0, 0.1); border: 1px dashed rgba(255, 214, 102, 0.6);
}
[hidden] { display: none !important; }

.guestbook-list-wrap { margin-top: 8px; }
.guestbook-list { display: grid; gap: 12px; }
.guestbook-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.guestbook-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 6px; }
.guestbook-name { font-weight: 800; color: var(--cyan); }
.guestbook-date { color: var(--muted); font-size: 0.84rem; }
.guestbook-message { margin: 0; white-space: pre-wrap; }
.empty {
  text-align: center; padding: 32px 16px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--muted);
}
.empty p { margin: 0; color: var(--muted); }
.empty p + p { margin-top: 4px; }

.contact-official { margin-top: 8px; }
.contact-list { display: grid; gap: 8px; }
.contact-list li {
  display: grid; grid-template-columns: 6em 1fr; gap: 12px; align-items: baseline;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.contact-list span { color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.contact-list a { font-weight: 700; }

/* ── 하단 ───────────────────────────────── */
.site-footer { background: #050818; border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: 0.94rem; }
.footer-inner { display: grid; gap: 28px; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 4px; }
.footer-team { color: var(--text); font-weight: 900; font-size: 1.1rem; }
.footer-game { color: var(--text); font-weight: 700; margin-top: 10px !important; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.footer-nav-title { width: 100%; color: var(--text); font-weight: 800; margin-bottom: 4px !important; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 700; letter-spacing: 0.08em; font-size: 0.86rem; padding: 6px 0; }
.footer-nav a:hover { color: var(--cyan); }
.copyright { margin-top: 10px !important; font-size: 0.86rem; }

/* ── 없는 주소(404.html) ────────────────── */
.notfound { min-height: 70vh; display: grid; align-items: center; padding: 64px 0; text-align: center; }
.notfound h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; line-height: 1.3; margin: 6px 0 14px; }
.notfound p { color: var(--muted); }
.notfound .btn { margin-top: 22px; }

/* ── 크게 보기 ──────────────────────────── */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(2, 4, 14, 0.9); }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(7, 11, 31, 0.8); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* ── 넓은 화면 ──────────────────────────── */
@media (min-width: 640px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot-wide, .video-slot { grid-column: span 1; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .player-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; background: none; border: 0; padding: 0; gap: 28px;
  }
  .site-nav a { border: 0; padding: 8px 0; font-size: 0.86rem; }
  .section { padding: 104px 0; }
  .hero { text-align: center; }
  .feature-list { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .shot-wide { grid-column: span 2; grid-row: span 2; }
  .shot-wide img { height: 100%; aspect-ratio: auto; }
  .video-slot { aspect-ratio: 16 / 10; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
