:root {
  --body-font: 'Pretendard Variable', 'Noto Sans KR', 'Segoe UI', 'Malgun Gothic', sans-serif;
  --brand-night: #0b131e;
  --brand-line: #304255;
  --brand-text: #f0f5fa;
  --brand-muted: #b7c8d9;
  --brand-cyan: #a9daeb;
}

.site-brand { gap: .66rem; font-size: 1.45rem; font-weight: 710; letter-spacing: .105em; text-transform: uppercase; }
.site-brand .site-mark,
body:has(.studio-page) .site-brand .site-mark,
body:has(.company-page) .site-brand .site-mark {
  position: relative;
  display: block;
  width: 1.58rem;
  height: 1.58rem;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.site-mark::before, .site-mark::after {
  content: '';
  position: absolute;
  inset: .32rem .05rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: rotate(-52deg);
}
.site-mark::after { transform: rotate(52deg); opacity: .68; }

body:has(.home-page, .catalog-page, .conversation-page, main#main:empty) { background: var(--brand-night); }
body:has(.home-page, .catalog-page, .conversation-page, main#main:empty) .site-header {
  background: #0b131e;
  border-color: #a3c6e522;
}
body:has(main#main:empty) .site-header :is(.site-brand, .site-nav a) { color: var(--brand-text); }
body:has(.home-page) main#main { width: 100%; padding: 0 0 clamp(3rem, 7vw, 6rem); }
body:has(.catalog-page, .conversation-page) {
  background: radial-gradient(ellipse 37rem 18rem at 84% 8rem, #31556f36, transparent 82%), var(--brand-night);
}
body:has(.home-page, .catalog-page, .conversation-page) :focus-visible { outline-color: #b6e1f5; }

.brand-width { width: min(100% - 6rem, 84rem); margin-inline: auto; }
.brand-primary, .brand-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  min-height: 3rem;
  padding: .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 100vw;
  color: #102335;
  background: #c9eaf2;
  font: inherit;
  font-weight: 670;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.brand-primary:hover:not(:disabled) { color: #102335; background: #e2f6fb; }
.brand-secondary { color: var(--brand-text); border-color: #a1c1da63; background: #111d2cb3; }
.brand-secondary:hover:not(:disabled) { border-color: #a1c1da; color: #fff; background: #1b3046; }
.brand-inline {
  display: inline-flex;
  gap: .47rem;
  align-items: center;
  min-height: 2.75rem;
  color: var(--brand-cyan);
  font: inherit;
  font-weight: 620;
  text-decoration: none;
}
.brand-inline:hover { color: #e0f6ff; text-decoration: underline; text-underline-offset: .25em; }

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(36rem, 52vw, 51rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--brand-night);
}
.home-hero-visual, .home-hero-light, .home-hero::after { position: absolute; inset: 0; pointer-events: none; }
.home-hero-visual { left: 9%; overflow: hidden; }
.home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 73% 48%;
  animation: aevell-drift 20s ease-in-out infinite alternate;
}
.home-hero-light {
  inset: -6% -6% -14% 36%;
  background: radial-gradient(ellipse at 67% 44%, #98cafa41, transparent 41%),
              radial-gradient(ellipse at 76% 76%, #8c90eb30, transparent 43%);
  mix-blend-mode: screen;
  animation: aevell-light 14s ease-in-out infinite alternate;
}
.home-hero::after {
  content: '';
  background: linear-gradient(0deg, var(--brand-night), #0b131e4d 24%, transparent 55%),
              linear-gradient(90deg, var(--brand-night) 7%, #0c1522ee 26%, #0a13213b 65%, transparent 88%);
}
.home-hero[data-motion='paused'] :is(.home-hero-visual img, .home-hero-light) { animation-play-state: paused; }
@keyframes aevell-drift { from { transform: scale(1.025); } to { transform: translateX(-.75%) scale(1.07); } }
@keyframes aevell-light { from { transform: translate(-3%, -2%); opacity: .54; } to { transform: translate(3%, 3%); opacity: 1; } }

.home-hero-copy { position: relative; z-index: 1; padding-block: 3.4rem 5.5rem; }
.home-hero h1 {
  margin: 0;
  max-width: 53rem;
  font-size: clamp(3.1rem, 6.5vw, 6.4rem);
  font-weight: 590;
  line-height: 1.05;
  letter-spacing: -.066em;
  word-break: keep-all;
  text-wrap: balance;
}
.home-hero h1 span {
  display: block;
  color: #c6e4f3;
  background: linear-gradient(96deg, #d7f1ff, #9ed7ec 54%, #b7bbef 90%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
.home-hero p { margin: 1.65rem 0 1.85rem; max-width: 30rem; color: #cfdae6; font-size: clamp(1.04rem, 1.45vw, 1.25rem); line-height: 1.65; word-break: keep-all; }
.home-hero .landing-actions { gap: .7rem; }
.home-motion-toggle {
  position: absolute;
  z-index: 2;
  right: max(1.5rem, calc((100% - 84rem) / 2));
  bottom: 1.4rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #bbdcef48;
  border-radius: 50%;
  background: #0b1522c2;
  color: #d0e5f5;
}
.home-motion-toggle::after { content: ''; width: .64rem; height: .76rem; border-inline: 2px solid currentColor; }
.home-motion-toggle[aria-pressed='true']::after {
  width: 0; height: 0;
  border: .4rem solid transparent;
  border-right: 0;
  border-left: .62rem solid currentColor;
}

.home-games { padding-top: clamp(1rem, 3vw, 2rem); }
.brand-section-heading, .home-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1.5rem;
}
.brand-section-heading { padding-bottom: 1rem; border-bottom: 1px solid var(--brand-line); }
.brand-section-heading h2, .home-connect h2 {
  font-size: clamp(1.7rem, 3.3vw, 3.05rem);
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -.055em;
  word-break: keep-all;
}
.home-connect { margin-top: 2.8rem; padding-block: 1.5rem; }
.home-connect p { margin: .65rem 0 0; color: var(--brand-muted); }

.game-list .activity-card a {
  display: grid;
  grid-template-columns: clamp(7rem, 18vw, 13.5rem) minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: clamp(.7rem, 3.1vw, 2.35rem);
  min-height: 8.5rem;
  padding: .6rem clamp(.45rem, 1.2vw, 1rem);
  border: 0;
  border-bottom: 1px solid var(--brand-line);
  border-radius: 0;
  background: transparent;
  transition: background-color .2s ease;
}
.game-list .activity-card a:hover {
  border-color: #55718a;
  background: #7caed010;
}
.game-list .activity-card a:focus-visible { outline-offset: -3px; }
.game-list .activity-cover {
  background: radial-gradient(ellipse at 50% 53%, color-mix(in srgb, var(--cover) 22%, transparent), transparent 73%);
  border-radius: 0;
  aspect-ratio: 1.75;
}
.game-list .activity-cover::before { opacity: .08; mask-image: radial-gradient(ellipse, #000, transparent 69%); }
.game-list .activity-card :is(h2,h3) { margin: 0; font-size: clamp(1.27rem, 2.4vw, 2.12rem); font-weight: 650; letter-spacing: -.05em; }
.game-list .activity-card-copy p { color: var(--brand-muted); margin: .25rem 0 0; word-break: keep-all; }
.game-list .activity-meta { margin: .52rem 0 0; gap: .22rem .82rem; color: #a9c7db; font-size: .84rem; }
.game-list .activity-meta span + span { border-inline-start: 1px solid #4a6278; padding-inline-start: .8rem; }
.game-list .activity-more { margin: 0; color: var(--brand-cyan); font-size: 1.36rem; justify-self: center; }
.catalog-page .catalog-toolbar { border-color: var(--brand-line); margin-bottom: 0; }
.brand-page-intro h1 { margin: 0; font-size: clamp(3rem, 7.2vw, 6.3rem); font-weight: 595; line-height: 1.04; letter-spacing: -.063em; }
.brand-page-intro p { margin: .9rem 0 0; max-width: 45rem; color: var(--brand-muted); font-size: clamp(1rem, 1.6vw, 1.16rem); word-break: keep-all; }
.catalog-page .directory-intro { padding-block: clamp(1rem, 3.5vw, 3.25rem) 2.6rem; }

.conversation-page .brand-page-intro { padding-block: clamp(1rem, 3.5vw, 3.25rem) 2.4rem; }
.conversation-layout { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(15rem, 1fr); gap: clamp(1.5rem, 4vw, 4rem); border-top: 1px solid var(--brand-line); padding-top: 1.5rem; }
.conversation-thread { min-width: 0; }
.conversation-heading { display: flex; align-items: center; gap: .85rem; }
.conversation-heading h2, .conversation-aside h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; font-weight: 655; letter-spacing: -.036em; }
.conversation-heading p { margin: .32rem 0 0; color: var(--brand-muted); font-size: .91rem; }
.conversation-heading button { margin-left: auto; padding: 0 .45rem; border-radius: 0; background: transparent; }
.conversation-orbit {
  flex: 0 0 2.8rem;
  aspect-ratio: 1;
  border: 1px solid #adcbe866;
  border-radius: 50%;
  background: radial-gradient(ellipse at 34% 31%, #edf3ff, #9fcbff 13%, #6486bf 32%, #1c2c4c 67%, #14202f 86%);
  box-shadow: 0 0 1.2rem #829fee24;
}
.conversation-thread .chat {
  gap: .7rem;
  margin: 1.45rem 0 .7rem;
  max-height: 24rem;
  overflow-y: auto;
  padding: 0 .2rem .3rem;
  scrollbar-color: #607a94 transparent;
}
.conversation-thread .bubble {
  width: fit-content;
  max-width: min(94%, 38rem);
  padding: .9rem 1rem;
  border: 1px solid #3b546d80;
  border-radius: .68rem .68rem .68rem .22rem;
  background: #162639;
  color: var(--brand-text);
  line-height: 1.63;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.conversation-thread .bubble.user { border-radius: .68rem .68rem .22rem .68rem; background: #253453; }
.conversation-thread .bubble small { margin-bottom: .28rem; color: #b5c8df; }
.conversation-thread .topic-chips { margin: .7rem 0 1.2rem; }
.conversation-thread .topic-chips button { min-height: 2.55rem; padding: .46rem .8rem; font-size: .88rem; }
.conversation-compose label { display: inline-block; margin: 1rem 0 .38rem; color: var(--brand-text); font-weight: 640; }
.conversation-compose textarea { display: block; width: 100%; min-height: 6.4rem; padding: .85rem .95rem; background: #0e1927; color: #ecf5fd; border: 1px solid #50677f; border-radius: .58rem; }
.conversation-compose textarea::placeholder { color: #a6b9cc; }
.conversation-compose .button-row { margin-top: .75rem; }
.conversation-compose .status, .conversation-thread .status { margin: .65rem 0 0; color: var(--brand-muted); font-size: .91rem; }
.conversation-aside { align-self: start; border-inline-start: 1px solid var(--brand-line); padding-inline-start: clamp(1rem, 2.5vw, 2rem); }
.conversation-aside .checkline { align-items: start; padding: .75rem 0; margin: .45rem 0 0; color: var(--brand-text); }
.conversation-aside .checkline input { margin-top: .19rem; flex: 0 0 auto; accent-color: #a1d8ec; }
.conversation-aside small { display: block; margin-top: .22rem; color: var(--brand-muted); font-size: .9rem; font-weight: 450; line-height: 1.48; }
.conversation-family { border-top: 1px solid var(--brand-line); padding-top: 1.2rem; margin-top: .75rem; }
.conversation-family h3 { margin: 0; font-size: 1.15rem; }
.conversation-family p { margin: .4rem 0 .2rem; color: var(--brand-muted); font-size: .94rem; }

@media (max-width: 900px) {
  .home-hero-visual { left: 0; }
  .conversation-layout { grid-template-columns: 1fr; }
  .conversation-aside { border-inline-start: 0; padding-inline-start: 0; padding-top: 1.3rem; border-top: 1px solid var(--brand-line); }
}
@media (max-width: 700px) {
  .brand-width { width: calc(100% - 2rem); }
  .home-hero { min-height: clamp(35rem, 133vw, 41rem); align-items: end; }
  .home-hero-visual { bottom: 11%; }
  .home-hero-visual img { object-position: 87% 27%; }
  .home-hero::after {
    background: linear-gradient(0deg, var(--brand-night) 13%, #0b131ef0 36%, #0b131e56 65%, transparent 86%),
                linear-gradient(90deg, #0b131e7d, transparent 65%);
  }
  .home-hero-copy { padding: 14rem 0 3.35rem; }
  .home-hero h1 { font-size: clamp(2.75rem, 10vw, 4.7rem); }
  .home-hero p { margin: .85rem 0 1.12rem; max-width: 26rem; }
  .home-motion-toggle { inset: .85rem .95rem auto auto; }
  .game-list .activity-card a { grid-template-columns: clamp(3.2rem, 17vw, 7rem) minmax(0, 1fr) 1.2rem; gap: .55rem; min-height: 7rem; padding-block: .7rem; }
  .game-list .activity-cover { align-self: center; }
  .game-list .activity-card-copy p { font-size: .92rem; line-height: 1.43; }
  .game-list .activity-meta { font-size: .76rem; gap: .15rem .45rem; }
  .game-list .activity-meta span + span { padding-inline-start: .45rem; }
}
@media (max-width: 370px) {
  .site-brand { font-size: 1.2rem; gap: .45rem; }
  .home-hero .landing-actions { gap: .5rem; }
  .home-hero .landing-actions a { padding-inline: .77rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-visual img, .home-hero-light { animation: none; }
  .home-motion-toggle { display: none; }
  .brand-primary, .brand-secondary, .game-list .activity-card a { transition: none; }
}

