:root {
  --ink: #0f2540;
  --card-bg: rgba(255,255,255,0.95);
  --card-border: rgba(255,255,255,0.82);
  --frame-bg: rgba(255,255,255,0.10);
  --frame-border: rgba(255,255,255,0.50);
  --shadow: 0 18px 36px rgba(5, 65, 121, 0.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #59d8ff 0%, #27c8f7 55%, #1fbfe8 100%);
  min-height: 100vh;
}
.page {
  position: relative;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 34px 36px 96px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,.20) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.20) 2px, transparent 2px);
  background-size: 24px 24px, 24px 24px;
  background-position: 0 0, 0 0;
}
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 9%, rgba(255,255,255,.92) 0 4px, transparent 5px),
    radial-gradient(circle at 15% 8%, rgba(255,255,255,.82) 0 7px, transparent 8px),
    radial-gradient(circle at 10% 13%, rgba(255,255,255,.82) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 19%, rgba(255,255,255,.90) 0 4px, transparent 5px),
    radial-gradient(circle at 91% 22%, rgba(255,255,255,.76) 0 8px, transparent 9px),
    radial-gradient(circle at 82% 85%, rgba(255,255,255,.84) 0 4px, transparent 5px),
    radial-gradient(circle at 13% 72%, rgba(255,255,255,.84) 0 4px, transparent 5px),
    radial-gradient(circle at 17% 75%, rgba(255,255,255,.65) 0 8px, transparent 9px);
}
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 345px;
  margin-bottom: 26px;
  z-index: 2;
}
.hero-panel {
  position: absolute;
  inset: 8px 84px 0;
  border: 5px solid rgba(255,255,255,.95);
  background:
    linear-gradient(180deg, rgba(0, 113, 236, 0.92), rgba(28, 148, 243, 0.92)),
    linear-gradient(0deg, transparent, transparent);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.20);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80px 28px at 28% 14%, rgba(255,255,255,.10), transparent 64%),
    radial-gradient(100px 32px at 58% 30%, rgba(255,255,255,.08), transparent 64%),
    radial-gradient(92px 30px at 36% 62%, rgba(255,255,255,.08), transparent 64%),
    radial-gradient(110px 34px at 72% 72%, rgba(255,255,255,.08), transparent 64%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.06) 0 2px, transparent 3px 26px);
  opacity: .85;
}
.logo {
  position: relative;
  width: min(90%, 610px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 16px rgba(0, 71, 128, 0.20));
}
.cards { position: relative; z-index: 2; }
.group-frame {
  position: relative;
  margin: 0 0 34px;
  padding: 48px 14px 14px;
  border-radius: 34px;
  background: var(--frame-bg);
  border: 0;
}
.group-frame.group-ex { padding-top: 52px; }
.group-chip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, calc(-100% + 14px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(11, 66, 128, 0.25);
  z-index: 3;
}
.current-chip { background: linear-gradient(180deg, #2e77d4, #124f9c); }
.ex-chip { background: linear-gradient(180deg, #2e6ccb, #1c4f9c); }
.profile-card {
  position: relative;
  margin: 0 0 22px;
  padding: 20px;
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.profile-card:last-child { margin-bottom: 0; }
.card-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  align-items: center;
}
.portrait-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(225,245,255,.95));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}
.portrait-wrap img { display: block; width: 100%; height: auto; }
.profile-info { margin: 0; display: grid; gap: 14px; }
.profile-info > div {
  display: grid;
  grid-template-columns: 136px 1fr;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(53, 147, 220, 0.2);
}
.profile-info > div:last-child { border-bottom: none; padding-bottom: 0; }
.profile-info dt {
  margin: 0;
  font-weight: 900;
  color: #0d4f98;
  font-size: 1.18rem;
}
.profile-info dd {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: #202738;
  word-break: keep-all;
}
.decor { position: absolute; pointer-events: none; user-select: none; z-index: 1; }
.decor-tape { top: 8px; right: 22px; width: 124px; transform: rotate(7deg); opacity: .95; }
.decor-ring-top { top: 74px; right: 170px; width: 118px; }
.decor-ball-mid { top: 212px; left: 136px; width: 78px; }
.decor-flipflops { top: 226px; left: 36px; width: 56px; }
.decor-umbrella { bottom: -18px; left: -12px; width: 206px; }
.decor-towel { bottom: 0; left: 88px; width: 176px; }

@media (max-width: 880px) {
  .page { padding: 24px 12px 72px; }
  .hero { min-height: 280px; margin-bottom: 16px; }
  .hero-panel { inset: 10px 18px 0; border-width: 4px; }
  .logo { width: min(96%, 470px); }
  .group-frame { padding: 40px 8px 8px; border-radius: 26px; margin-bottom: 24px; }
  .group-frame.group-ex { padding-top: 44px; }
  .group-chip {
    min-height: 44px;
    padding: 8px 18px;
    font-size: 1.12rem;
    transform: translate(-50%, calc(-100% + 12px));
  }
  .profile-card { padding: 14px; border-radius: 22px; margin-bottom: 16px; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .portrait-wrap { max-width: 100%; }
  .profile-info { gap: 10px; }
  .profile-info > div { grid-template-columns: 118px 1fr; gap: 8px; padding-bottom: 8px; }
  .profile-info dt, .profile-info dd { font-size: 1.02rem; }
  .decor-tape { top: 6px; right: 8px; width: 90px; }
  .decor-ring-top { top: 56px; right: 38px; width: 74px; }
  .decor-ball-mid { top: 176px; left: 44px; width: 48px; }
  .decor-flipflops { top: 198px; left: 6px; width: 42px; }
  .decor-umbrella { bottom: -14px; left: -14px; width: 144px; }
  .decor-towel { bottom: 2px; left: 48px; width: 122px; }
}
