/* 첫 화면(모드 선택) 디자인 — 1rem = 1920×1080 화면 기준 16px, 4K에서 자동 2배 */
:root {
  --blue: #4482F0; --navy: #181734; --gold: #FFAC0A; --blue-light: #EEF4FD;
  --white: #fff; --text-sub: #484850;
}
html { font-size: min(0.8333vw, 1.4815vh); }
@media (orientation: portrait) { html { font-size: min(1.4815vw, 0.8333vh); } }
@media (max-width: 700px) { html { font-size: 2.6vw; } }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: "Noto Sans KR", sans-serif; color: var(--white);
  background: radial-gradient(ellipse at 80% 15%, #2B3A8C 0%, #181734 60%) fixed;
  background-color: var(--navy);
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 4rem 6rem 0; }
.logo { height: 3.4rem; }
.who { display: flex; align-items: center; gap: 1.2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 5.6rem; padding: 0 2.8rem; border-radius: 10rem;
  font: inherit; font-size: 2rem; font-weight: 700; text-decoration: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}
.btn.primary { background: var(--blue); border-color: var(--blue); }
.chip { font-size: 1.8rem; font-weight: 700; color: var(--gold); margin-right: 0.8rem; white-space: nowrap; }

.wrap { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 3rem 6rem; }
.intro { margin-bottom: 4rem; }
.eyebrow { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 1.4rem; }
h1 { font-size: 6rem; font-weight: 900; line-height: 1.2; }
.sub { font-size: 2.2rem; color: rgba(255, 255, 255, 0.75); margin-top: 1.4rem; }

.modes { display: flex; gap: 3.2rem; }
.mode {
  position: relative; overflow: hidden;
  flex: 1 1 0; min-width: 0;
  border-radius: 3.2rem; padding: 4rem 4.4rem;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 34rem;
  box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.3);
  opacity: 0; transform: translateY(3rem);
  animation: up 0.8s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes up { to { opacity: 1; transform: none; } }
.mode.blue { background: linear-gradient(140deg, #4482F0 0%, #2B5FC7 100%); }
.mode.gold { background: linear-gradient(140deg, #FFAC0A 0%, #E08A00 100%); color: var(--navy); }
.mode .art { position: absolute; right: 3rem; top: 2.4rem; width: 18rem; max-height: 18rem; object-fit: contain; }
.m-body { position: relative; min-width: 0; }
.mode h2, .mode p { padding-right: 18rem; }
.mode h2 { font-size: 4.4rem; font-weight: 900; }
.mode p { font-size: 2rem; line-height: 1.55; margin-top: 1rem; opacity: 0.9; word-break: keep-all; }
.links { display: flex; gap: 1.4rem; margin-top: 2.8rem; flex-wrap: wrap; }
.go {
  flex: 1 1 18rem; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 2rem 2.4rem; border-radius: 2rem;
  background: var(--white); color: var(--navy);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}
.go:active { transform: scale(0.97); }
.go b { font-size: 2.6rem; font-weight: 900; }
.go small { font-size: 1.6rem; color: var(--text-sub); }

.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-1.2rem); } }

.foot {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 0 6rem 3.6rem; font-size: 1.7rem; color: rgba(255, 255, 255, 0.6);
}
.foot a { color: rgba(255, 255, 255, 0.85); }

@media (orientation: portrait), (max-width: 900px) {
  .modes { flex-direction: column; }
  .mode { flex: 0 0 auto; min-height: 0; padding-top: 3.6rem; }
  .mode .art { width: 14rem; max-height: 14rem; }
  .mode h2, .mode p { padding-right: 14rem; }
  .top, .wrap, .foot { padding-left: 4rem; padding-right: 4rem; }
}
