/* =========================================================================
   아지트 (AZIT) — 아바타 소셜 월드
   Design system · 자체 완결 · 외부 CDN 0
   ========================================================================= */

/* ===== Fonts (self-hosted woff2) ===== */
@font-face {
  font-family: "Pretendard"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/Pretendard-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/Pretendard-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/Pretendard-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/Pretendard-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Pretendard"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("../fonts/Pretendard-Black.woff2") format("woff2");
}
@font-face {
  font-family: "Jua"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/Jua-400.woff2") format("woff2");
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }

/* ===== Tokens ===== */
:root {
  --cream:   #f7f4ff;
  --cream-2: #efeaff;
  --ink:     #221b3a;
  --ink-soft:#5a5175;
  --white:   #ffffff;
  --purple:  #7c5cff;
  --purple-d:#5e3fe6;
  --pink:    #ff6fae;
  --mint:    #35d6b0;
  --yellow:  #ffd23f;
  --sky:     #4db8ff;

  --card:    #ffffff;
  --line:    #e7e0ff;
  --shadow-sm: 0 4px 14px rgba(84, 60, 173, .10);
  --shadow:    0 14px 40px rgba(84, 60, 173, .16);
  --shadow-lg: 0 30px 70px rgba(84, 60, 173, .22);
  --glow-purple: 0 10px 40px rgba(124, 92, 255, .38);
  --glow-pink:   0 10px 40px rgba(255, 111, 174, .35);

  --r-sm: 12px;
  --r:    20px;
  --r-lg: 30px;
  --r-xl: 44px;

  --font-body: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --font-display: "Jua", "Pretendard", system-ui, sans-serif;

  --maxw: 1160px;
  --space: 1rem;
  --header-h: 70px;
}

/* ===== Base ===== */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { display: block; }
h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* backdrop blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none; }

/* ===== Eyebrow / headings ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--purple-d);
  background: var(--white);
  border: 1.5px solid var(--line);
  padding: .4em 1em; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.h-sec { font-size: clamp(1.85rem, 4.2vw, 3rem); margin-top: 1rem; }
.h-sec .accent { color: var(--purple); }
.lead { font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--ink-soft); max-width: 40ch; }
.sec-head { max-width: 46ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; padding: .85em 1.6em; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--purple); color: #fff; box-shadow: var(--glow-purple); }
.btn--primary:hover { background: var(--purple-d); transform: translateY(-2px); box-shadow: 0 16px 46px rgba(124,92,255,.5); }
.btn--pink { background: var(--pink); color: #fff; box-shadow: var(--glow-pink); }
.btn--pink:hover { transform: translateY(-2px); box-shadow: 0 16px 46px rgba(255,111,174,.5); }
.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--purple); }
.btn--lg { padding: 1.02em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,244,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(84,60,173,.08); }
.nav { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.brand__logo { width: 34px; height: 34px; flex: none; }
.nav__links { display: flex; align-items: center; gap: .3rem; margin-left: .5rem; }
.nav__links a {
  padding: .5em .85em; border-radius: 999px; font-weight: 600; font-size: .96rem;
  color: var(--ink-soft); transition: background .16s ease, color .16s ease;
}
.nav__links a:hover { background: var(--white); color: var(--ink); }
.nav__links a.is-active { color: var(--purple-d); background: var(--white); box-shadow: var(--shadow-sm); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; margin-left: auto; border: 1.5px solid var(--line); background: var(--white); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2.4px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.3rem, 6.2vw, 4.3rem); letter-spacing: -.02em; margin: 1.1rem 0 .3rem; }
.hero__title .grad { background: linear-gradient(100deg, var(--purple), var(--pink) 60%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.store-badge { display: inline-flex; transition: transform .18s ease, box-shadow .18s ease; border-radius: 14px; }
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.store-badge svg { height: 56px; width: auto; border-radius: 14px; }

/* rating strip */
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; margin-top: 1.7rem; }
.rating { display: flex; align-items: center; gap: .6rem; }
.rating__stars { display: inline-flex; gap: 2px; }
.rating__stars svg { width: 20px; height: 20px; }
.rating__num { font-weight: 800; font-size: 1.1rem; }
.rating small { color: var(--ink-soft); font-weight: 500; }
.badge-free { font-weight: 800; color: var(--mint); background: rgba(53,214,176,.14); padding: .3em .8em; border-radius: 999px; font-size: .92rem; }
.qr { display: flex; align-items: center; gap: .7rem; }
.qr svg { width: 74px; height: 74px; border-radius: 12px; box-shadow: var(--shadow-sm); background: #fff; padding: 6px; }
.qr small { color: var(--ink-soft); font-weight: 600; font-size: .82rem; max-width: 9ch; }

/* ===== Phone mockup ===== */
.phone {
  --pw: 300px;
  width: var(--pw); aspect-ratio: 300 / 620; position: relative;
  background: #1a1430; border-radius: 42px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 20px; background: #1a1430; border-radius: 999px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--cream); position: relative; }
.phone__screen svg { width: 100%; height: 100%; }
.hero__phone-wrap { position: relative; display: grid; place-items: center; }
.hero__phone-wrap .phone { transform: rotate(2deg); }

/* floating chips around phone */
.float-chip {
  position: absolute; background: var(--white); border-radius: 16px; padding: .55rem .8rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .88rem;
  z-index: 2; animation: floaty 5s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .74rem; }
.float-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-chip--a { top: 6%; left: -6%; animation-delay: 0s; }
.float-chip--b { bottom: 16%; right: -8%; animation-delay: 1.4s; }
.float-chip--c { bottom: -3%; left: 4%; animation-delay: .7s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

/* ===== Trust counters band ===== */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.counter { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.counter__num { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.8rem); color: var(--purple); line-height: 1; }
.counter__num .suffix { font-size: .55em; color: var(--pink); }
.counter__label { color: var(--ink-soft); font-weight: 600; margin-top: .5rem; font-size: .96rem; }

/* ===== Cards / feature grid ===== */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.card__ic svg { width: 32px; height: 32px; }
.card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card__tag { display: inline-block; margin-top: .9rem; font-size: .8rem; font-weight: 700; color: var(--purple-d); background: var(--cream-2); padding: .3em .8em; border-radius: 999px; }

/* tinted icon backgrounds */
.tint-purple { background: rgba(124,92,255,.14); color: var(--purple); }
.tint-pink   { background: rgba(255,111,174,.16); color: var(--pink); }
.tint-mint   { background: rgba(53,214,176,.16); color: #17a184; }
.tint-yellow { background: rgba(255,210,63,.22); color: #c99700; }
.tint-sky    { background: rgba(77,184,255,.16); color: #1f8fe0; }

/* ===== Big split feature ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { display: grid; place-items: center; }
.feature-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .fic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-top: 2px; }
.feature-list b { display: block; }
.feature-list span { color: var(--ink-soft); font-size: .95rem; }

/* ===== AVATAR CUSTOMIZER ===== */
.customizer { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: stretch; }
.customizer__stage {
  background: linear-gradient(160deg, #fff, var(--cream-2));
  border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 1.4rem;
  display: grid; place-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.customizer__avatar { width: 100%; max-width: 280px; }
.customizer__avatar svg { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(84,60,173,.22)); }
.customizer__badge { position: absolute; top: 1rem; left: 1rem; font-weight: 700; font-size: .8rem; color: var(--purple-d); background: rgba(255,255,255,.85); padding: .35em .85em; border-radius: 999px; box-shadow: var(--shadow-sm); }
.customizer__panel { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.cz-group { margin-bottom: 1.35rem; }
.cz-group:last-child { margin-bottom: 0; }
.cz-group__label { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .95rem; margin-bottom: .7rem; }
.cz-group__label small { color: var(--ink-soft); font-weight: 500; }
.cz-opts { display: flex; flex-wrap: wrap; gap: .55rem; }
.cz-opt {
  width: 46px; height: 46px; border-radius: 14px; border: 2.5px solid var(--line);
  display: grid; place-items: center; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
  position: relative; overflow: hidden; background: #fff;
}
.cz-opt:hover { transform: translateY(-2px); }
.cz-opt[aria-pressed="true"] { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,92,255,.2); transform: translateY(-2px); }
.cz-opt svg { width: 100%; height: 100%; }
.cz-swatch { border: 2.5px solid transparent; }
.cz-swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(124,92,255,.25); }
.cz-actions { display: flex; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.cz-actions .btn { flex: 1; min-width: 130px; }
.cz-toast { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: .6em 1.1em; border-radius: 999px; font-weight: 700; font-size: .88rem; opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; white-space: nowrap; }
.cz-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Tabbed showcase ===== */
.tabs { }
.tabs__nav { display: inline-flex; gap: .35rem; background: var(--white); border: 1.5px solid var(--line); padding: .4rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.tabs__btn { padding: .6em 1.3em; border-radius: 999px; font-weight: 700; color: var(--ink-soft); transition: color .16s ease, background .16s ease; }
.tabs__btn[aria-selected="true"] { color: #fff; background: var(--purple); box-shadow: var(--glow-purple); }
.tabs__panels { margin-top: 2rem; }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeUp .4s ease; }
.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.showcase__copy h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.showcase__copy .lead { max-width: 42ch; }
.mini-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip { background: var(--white); border: 1.5px solid var(--line); padding: .5em 1em; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); }
.chip .em { color: var(--purple); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===== Feed / social ===== */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__media { aspect-ratio: 4/3; }
.post__media svg { width: 100%; height: 100%; }
.post__body { padding: 1rem 1.1rem 1.2rem; }
.post__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.post__ava { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid var(--cream-2); }
.post__ava svg, .post__ava img { width: 100%; height: 100%; object-fit: cover; }
.post__name { font-weight: 700; font-size: .92rem; }
.post__name small { display: block; color: var(--ink-soft); font-weight: 500; }
.post__text { font-size: .95rem; color: var(--ink); margin-bottom: .7rem; }
.post__actions { display: flex; align-items: center; gap: 1.1rem; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.like-btn { display: inline-flex; align-items: center; gap: .35rem; transition: transform .12s ease; }
.like-btn svg { width: 20px; height: 20px; transition: transform .18s ease; }
.like-btn.liked { color: var(--pink); }
.like-btn.liked svg { fill: var(--pink); animation: pop .4s ease; }
.like-btn:active { transform: scale(.9); }
@keyframes pop { 0%{ transform: scale(1); } 40%{ transform: scale(1.4); } 100%{ transform: scale(1); } }

/* ===== Shop / items ===== */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.item { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: 1rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.item__thumb { aspect-ratio: 1; border-radius: var(--r-sm); background: linear-gradient(160deg, var(--cream), var(--cream-2)); display: grid; place-items: center; margin-bottom: .8rem; overflow: hidden; }
.item__thumb svg { width: 74%; height: 74%; }
.item__name { font-weight: 700; font-size: .96rem; }
.item__meta { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.price { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; }
.price svg { width: 18px; height: 18px; }
.item__rare { position: absolute; top: .8rem; right: .8rem; font-size: .72rem; font-weight: 800; padding: .25em .6em; border-radius: 999px; }
.rare-epic { color: #fff; background: linear-gradient(90deg, var(--purple), var(--pink)); }
.rare-rare { color: #fff; background: var(--sky); }
.rare-basic { color: var(--ink-soft); background: var(--cream-2); }

/* ===== Season pass / progress ===== */
.season { background: linear-gradient(135deg, #2a2150, #3a2a6e); color: #fff; border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; }
.season::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,111,174,.5), transparent 70%); }
.season__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; position: relative; z-index: 1; }
.season h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.season .lead { color: rgba(255,255,255,.8); max-width: 38ch; }
.progress { margin-top: 1.6rem; }
.progress__bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.progress__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint), var(--yellow)); width: 68%; }
.progress__meta { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .88rem; color: rgba(255,255,255,.8); font-weight: 600; }
.reward-track { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .4rem; }
.reward { flex: none; width: 88px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.16); border-radius: var(--r-sm); padding: .8rem .5rem; text-align: center; }
.reward svg { width: 44px; height: 44px; margin-inline: auto; }
.reward span { display: block; font-size: .74rem; margin-top: .4rem; color: rgba(255,255,255,.85); font-weight: 600; }
.reward.locked { opacity: .5; }

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.review { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.review__stars { display: inline-flex; gap: 2px; margin-bottom: .8rem; }
.review__stars svg { width: 17px; height: 17px; }
.review__text { font-size: 1rem; margin-bottom: 1.1rem; }
.review__by { display: flex; align-items: center; gap: .7rem; }
.review__ava { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; }
.review__ava img { width: 100%; height: 100%; object-fit: cover; }
.review__name { font-weight: 700; font-size: .92rem; }
.review__name small { display: block; color: var(--ink-soft); font-weight: 500; }

/* ===== Ranking ===== */
.rank-list { display: grid; gap: .7rem; }
.rank-row { display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: .9rem 1.2rem; box-shadow: var(--shadow-sm); transition: transform .16s ease; }
.rank-row:hover { transform: translateX(4px); }
.rank-num { font-family: var(--font-display); font-size: 1.4rem; width: 40px; text-align: center; flex: none; color: var(--ink-soft); }
.rank-row.top .rank-num { color: var(--purple); }
.rank-ava { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid var(--cream-2); }
.rank-ava svg { width: 100%; height: 100%; }
.rank-info { flex: 1; min-width: 0; }
.rank-info b { display: block; }
.rank-info small { color: var(--ink-soft); }
.rank-score { font-weight: 800; color: var(--purple); }
.rank-medal { font-size: 1.3rem; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--purple), var(--pink)); border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 3.6rem); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 40%), radial-gradient(circle at 80% 80%, rgba(255,210,63,.35), transparent 45%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.cta-band .lead { color: rgba(255,255,255,.92); margin-inline: auto; margin-top: .6rem; }
.cta-band .store-badges { justify-content: center; margin-top: 1.8rem; }
.cta-band .store-badge svg { filter: drop-shadow(0 8px 20px rgba(0,0,0,.2)); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); position: relative; }
.step__n { font-family: var(--font-display); font-size: 1.1rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* ===== Forms ===== */
.form-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; margin-bottom: .5rem; font-size: .95rem; }
.field .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--cream); transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124,92,255,.14); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field__hint { color: var(--ink-soft); font-size: .84rem; margin-top: .4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success.show { display: block; animation: fadeUp .4s ease; }
.form-success .checkmk { width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(53,214,176,.16); display: grid; place-items: center; }
.form-success .checkmk svg { width: 38px; height: 38px; }

/* ===== Safety / info list ===== */
.safe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.safe { display: flex; gap: 1rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.safe .sic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.safe h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.safe p { color: var(--ink-soft); font-size: .93rem; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { padding: 1.15rem 1.4rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--purple); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }

/* ===== Page hero (inner) ===== */
.page-hero { padding-top: clamp(2.2rem, 5vw, 3.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); text-align: center; position: relative; overflow: hidden; }
.page-hero__title { font-size: clamp(2rem, 5.5vw, 3.4rem); margin: 1rem 0 .5rem; }
.page-hero .lead { margin-inline: auto; }
.breadcrumb { font-size: .86rem; color: var(--ink-soft); font-weight: 600; }
.breadcrumb a:hover { color: var(--purple); }

/* ===== Pill filter row ===== */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.pill { padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); }
.pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cfc7ea; padding-block: 3.5rem 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.footer-about { max-width: 32ch; margin-top: 1rem; color: #a99fce; font-size: .95rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .16s ease, transform .16s ease; }
.footer-social a:hover { background: var(--purple); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .3rem 0; color: #a99fce; font-size: .93rem; transition: color .14s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .86rem; color: #8f85b5; }
.legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.legal-open { text-decoration: underline; color: #cfc7ea; font-weight: 600; }
.legal-open:hover { color: #fff; }
.footer-biz { font-size: .8rem; color: #78709c; line-height: 1.7; margin-top: 1rem; }

/* ===== Modal ===== */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: var(--space); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(34,27,58,.55); backdrop-filter: blur(4px); animation: fadeIn .2s ease; }
.modal__panel { position: relative; z-index: 1; width: min(720px, 100%); max-height: 85vh; overflow-y: auto; background: var(--white); color: var(--ink); padding: 2.4rem; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: fadeUp .28s ease; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 12px; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; background: var(--cream); transition: background .14s ease; }
.modal__close:hover { background: var(--cream-2); }
.modal__panel h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.modal__panel h3 { font-size: 1.06rem; margin: 1.4rem 0 .5rem; }
.modal__panel p, .modal__panel li { color: var(--ink-soft); font-size: .93rem; margin-bottom: .5rem; }
.modal__panel ul { list-style: disc; padding-left: 1.2rem; }
.modal__updated { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: .8rem 0 1rem; font-size: .88rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; color: var(--ink); }
.legal-table th { background: var(--cream-2); font-weight: 700; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ===== Skip link ===== */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--purple); color: #fff; padding: .7em 1.2em; border-radius: 0 0 12px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ===== Icons (sprite) ===== */
svg.ic { width: 24px; height: 24px; flex: none; }
.card__ic svg.ic { width: 32px; height: 32px; }
.feature-list .fic svg.ic { width: 17px; height: 17px; }
.safe .sic svg.ic { width: 26px; height: 26px; }
.float-chip .ic svg.ic { width: 20px; height: 20px; }
.footer-social svg.ic { width: 20px; height: 20px; }
.nav__cta .btn svg.ic { width: 18px; height: 18px; }
.step__n svg.ic, .reward svg.ic { width: 26px; height: 26px; }

/* ===== Lookbook (marketing style showcase) ===== */
.lookbook { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: stretch; }
.lookbook__stage { background: linear-gradient(160deg, #fff, var(--cream-2)); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 1.6rem; display: grid; place-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.lookbook__preview { width: 100%; max-width: 280px; transition: opacity .28s ease; filter: drop-shadow(0 20px 30px rgba(84,60,173,.22)); }
.lookbook__badge { position: absolute; top: 1rem; left: 1rem; font-weight: 700; font-size: .8rem; color: var(--purple-d); background: rgba(255,255,255,.85); padding: .35em .85em; border-radius: 999px; box-shadow: var(--shadow-sm); }
.lookbook__panel { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.lookbook__panel h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.lookbook__panel .lead { font-size: 1rem; margin-bottom: 1.2rem; }
.look-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: auto; }
.look-opt { border: 2.5px solid var(--line); border-radius: 18px; padding: 0; overflow: hidden; background: #fff; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.look-opt img { width: 100%; height: auto; display: block; }
.look-opt span { display: block; font-size: .74rem; font-weight: 700; color: var(--ink-soft); padding: .35rem 0 .5rem; }
.look-opt:hover { transform: translateY(-3px); }
.look-opt[aria-pressed="true"] { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,92,255,.2); transform: translateY(-3px); }
.look-opt[aria-pressed="true"] span { color: var(--purple-d); }

/* ===== Screenshot slider ===== */
.slider { position: relative; }
.slider__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 2px 1.4rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: center; flex: none; }
.slider__nav { display: flex; gap: .6rem; justify-content: center; margin-top: .4rem; }
.slider__btn { width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: transform .14s ease, box-shadow .14s ease; color: var(--ink); }
.slider__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--purple); }
.slider__btn--prev svg.ic { transform: rotate(180deg); }
.phone--sm { --pw: 244px; }

/* ===== Theme grid (rooms) ===== */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.theme { border-radius: var(--r-lg); overflow: hidden; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.theme:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.theme__art { aspect-ratio: 4/3; display: grid; place-items: center; position: relative; }
.theme__art svg { width: 100%; height: 100%; }
.theme__body { padding: 1.1rem 1.3rem 1.4rem; }
.theme__body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.theme__body p { color: var(--ink-soft); font-size: .92rem; }

/* ===== Mini-game cards ===== */
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.gamecard { display: flex; gap: 1.1rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.gamecard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gamecard__ic { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; }
.gamecard__ic svg.ic { width: 32px; height: 32px; }
.gamecard h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.gamecard p { color: var(--ink-soft); font-size: .93rem; margin-bottom: .7rem; }
.gamecard__meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.tagpill { font-size: .78rem; font-weight: 700; color: var(--purple-d); background: var(--cream-2); padding: .25em .7em; border-radius: 999px; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.hide-mobile { }
.divider-wave { display: block; width: 100%; height: 40px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub, .lead { margin-inline: auto; }
  .hero__actions, .hero__meta, .store-badges { justify-content: center; }
  .hero__phone-wrap { margin-top: 1rem; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .customizer { grid-template-columns: 1fr; }
  .lookbook { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .season__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem; background: var(--white);
    padding: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open .nav__links a { padding: .8em 1em; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
  .feed-grid, .reviews-grid, .steps, .safe-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal__panel { padding: 1.6rem 1.3rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .float-chip { animation: none; }
}
