/* 회사 홈 전용. 약관·운영툴은 hosting/public — 다른 사이트다. 공방 원화로 열고 흰 바탕으로 이어지는 단일 테마 */
:root {
  --bg: #fff;
  --tint: #f7f4fc;
  --ink: #17111f;
  --ink-2: #54495f;
  --ink-3: #857a92;
  --line: #e9e3f1;
  --violet: #6f35e0;
  --magenta: #d63fb4;
  --ember: #ff8a4c;
  --chip: #efe7fc;
  --chip-ink: #5a24c4;
  --night: #16101f;
  --font: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; line-height: 1.75; word-break: keep-all; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.in { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-weight: 900; line-height: 1.22; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.label, .panel .label { font-size: .95rem; font-weight: 800; color: var(--violet); margin-bottom: 12px; }

/* 상단 메뉴 */
.bar { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar .in { display: flex; align-items: center; gap: 36px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.menu { display: flex; gap: 32px; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--ink-2); padding: 8px 0; }
.menu a:hover { color: var(--violet); }
.lang { display: flex; gap: 12px; font-size: .85rem; font-weight: 700; }
.lang a { text-decoration: none; color: var(--ink-3); }
.lang a[aria-current] { color: var(--ink); }

/* 대표 화면: 공방 원화를 꽉 채우고, 캐릭터가 아래 흰 구역으로 걸어 나온다 */
.hero { position: relative; z-index: 1; color: #fff; background: var(--night); }
.hero::before { content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgb(22 16 31 / .94) 0%, rgb(22 16 31 / .74) 42%, rgb(22 16 31 / .1) 78%),
    linear-gradient(0deg, rgb(22 16 31 / .7) 0%, transparent 40%),
    url(/img/hero-bg.webp) 50% 42% / cover no-repeat; }
.hero .in { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: end; min-height: min(720px, 84vh); }
.hero .copy { align-self: center; padding: 88px 0 104px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px; background: rgb(255 255 255 / .14); color: #fff; font-size: .88rem; font-weight: 800; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff8fdc; }
.hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 5.9vw, 5rem); line-height: 1.16; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, #c9a2ff, #ff8fdc 65%, #ffb27d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { margin-top: 22px; font-size: 1.14rem; color: #e2d8ef; max-width: 34em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 99px; text-decoration: none; font-weight: 800; transition: transform .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); }
.btn.fill { background: linear-gradient(95deg, #7c43ee, #bd45d6); color: #fff; box-shadow: 0 14px 34px rgb(111 53 224 / .4); }
.btn.line { border: 1px solid rgb(255 255 255 / .5); }
.cast { display: flex; align-items: flex-end; justify-content: flex-end; margin-bottom: -56px; }
.cast .mage { width: 66%; }
.cast .pet { width: 56%; margin-left: -12%; animation: hop 2.6s ease-in-out infinite; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 75% { transform: translateY(-10px) rotate(-2deg); } 88% { transform: none; } }

/* 회사 소개 */
.about { padding-block: 112px 110px; }
.panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px 64px; padding: 84px 72px; border-radius: 32px; background: var(--tint); }
.panel p { color: var(--ink-2); font-size: 1.08rem; }
.panel .txt p + p { margin-top: 16px; }
.traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.traits li { padding: 10px 18px; border-radius: 14px; background: #fff; font-size: .95rem; color: var(--ink-2); }
.traits b { margin-right: 8px; font-weight: 800; color: var(--violet); }

/* 게임 카드: 한 장이면 가로형 한 줄, 두 장부터는 2열 세로형. 카드(article)만 추가하면 된다 */
.games { padding-block: 0 110px; }
.list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; margin-top: 32px; }
.slot { container-type: inline-size; }
.card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgb(60 20 110 / .14); }
.art { position: relative; display: grid; place-items: center; height: 240px; padding: 20px; background: url(/img/hero-bg.webp) 50% 45% / cover; }
.art::before { content: ""; position: absolute; inset: 0; background: rgb(22 16 31 / .42); }
.art img { position: relative; width: auto; height: 100%; min-height: 0; object-fit: contain; }
.desc { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 32px 30px; }
.desc h3 { font-size: 1.5rem; }
.spec { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-size: .95rem; }
.spec dt { font-size: .8rem; font-weight: 700; color: var(--ink-3); line-height: 1.5; }
.spec dd { font-weight: 800; line-height: 1.5; }
.desc p { margin-top: 14px; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.chip { margin-top: 16px; padding: 4px 14px; border-radius: 99px; background: var(--chip); color: var(--chip-ink); font-size: .85rem; font-weight: 800; }
@container (min-width: 760px) {
  .card { flex-direction: row; }
  .art { flex: 0 0 38%; height: auto; min-height: 264px; }
  .art img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); }
  .desc { justify-content: center; }
}

/* 문의 */
.contact { padding-block: 0 120px; }
.contact .in > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding: 56px 72px; border-radius: 32px; color: #fff; background: radial-gradient(circle at 92% 0, rgb(255 138 76 / .75), transparent 22rem), linear-gradient(100deg, #5b25c9, #a832b8); }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact p { margin-top: 8px; color: #f1e4ff; }
.contact .mail { background: #fff; color: var(--chip-ink); overflow-wrap: anywhere; }

/* 푸터: 회사 정보 */
footer { background: var(--night); color: #b5aac4; font-size: .9rem; padding-block: 52px 44px; }
footer .name { color: #fff; font-weight: 800; font-size: 1.05rem; }
.info { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 14px; }
.info div { display: flex; gap: 10px; min-width: 0; }
.info dt { color: #978ba8; white-space: nowrap; }
.info dd { color: #ddd4e8; min-width: 0; overflow-wrap: anywhere; }
.todo { display: inline-block; line-height: 1.4; background: #ffe58a; color: #3a2d00; padding: 2px 6px 0; border-radius: 3px; font-weight: 700; }
footer .end { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .12); }
footer .end a { text-decoration: none; color: #ddd4e8; }
footer .end a:hover { color: #fff; text-decoration: underline; }
footer .end span { margin-left: auto; }

@media (max-width: 860px) {
  .menu { display: none; }
  .lang { margin-left: auto; }
  .hero::before { background: linear-gradient(180deg, rgb(22 16 31 / .9) 0%, rgb(22 16 31 / .62) 45%, rgb(22 16 31 / .22) 100%), url(/img/hero-bg.webp) 50% 50% / cover no-repeat; }
  .hero .in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 16px; }
  .hero .copy { padding: 56px 0 8px; }
  .cast { justify-content: center; margin-bottom: -34px; }
  .cast .mage { width: 52%; max-width: 280px; }
  .cast .pet { width: 44%; max-width: 240px; margin-left: -8%; }
  .about { padding-block: 72px 80px; }
  .panel { grid-template-columns: minmax(0, 1fr); padding: 44px 26px; border-radius: 24px; }
  .traits { gap: 8px; }
  .traits li { padding: 8px 12px; font-size: .85rem; }
  .traits b { margin-right: 5px; }
  .games, .contact { padding-bottom: 80px; }
  .art { height: 210px; }
  .desc { padding: 24px 24px 28px; }
  .contact .in > div { padding: 40px 26px; border-radius: 24px; }
  .info { flex-direction: column; }
  footer .end span { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cast .pet { animation: none; } .btn, .card { transition: none; } }
