/* ATLVL onepage — light (Apple-clean) primary */
:root {
  --bg: #fbfbfd;
  --bg2: #f5f5f7;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --pink: #ff2d8e;
  --purple: #7c5cfc;
  --mint: #30d158;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --safe: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-cta: 0 14px 36px -10px rgba(124, 92, 252, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg2);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(124, 92, 252, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 45, 142, 0.07), transparent 50%);
}

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  isolation: isolate;
}
.notch { display: none; }

.page {
  position: relative;
  padding: calc(12px + var(--safe-t)) 18px calc(18px + var(--safe));
  max-width: 100%;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.logo {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--purple);
}
.lang {
  display: flex;
  gap: 3px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow);
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 30px;
  letter-spacing: 0.02em;
}
.lang-btn.on {
  background: #1d1d1f;
  color: #fff;
}

.hero {
  display: block;
  padding-bottom: 8px;
}

/* top mascot — never shrink in flex */
#axie-top-stage,
.axie-stage {
  display: block !important;
  text-align: center;
  margin: 10px 0 18px;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-height: 220px !important;
  height: auto !important;
  width: 100%;
  position: relative;
  z-index: 5;
  overflow: visible !important;
}
.whisper {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple);
  text-align: center;
}
img.axie,
#axie-top {
  display: block !important;
  width: 200px !important;
  height: 200px !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 200px !important;
  min-height: 200px !important;
  object-fit: cover !important;
  border-radius: 40px;
  background: #5ec8f0;
  border: 3px solid #fff;
  box-shadow: 0 16px 40px rgba(124, 92, 252, 0.35);
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.axie-wrap { display: contents; }
.axie-glow { display: none; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
}
:lang(en) .eyebrow,
:lang(ru) .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
:lang(th) .eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 7.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text);
}
h1 em {
  font-style: italic;
  color: #6d4aff;
  font-weight: 400;
}
.sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: center;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

.range-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}
/* uppercase only where case exists (not Thai) */
:lang(en) .range-label,
:lang(ru) .range-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
:lang(th) .range-label {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  justify-content: center;
}
.chips-wide {
  max-height: 7.2rem;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11.5px;
  cursor: pointer;
  min-height: 34px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: 0.15s;
}
.chip:hover,
.chip.on {
  border-color: rgba(124, 92, 252, 0.45);
  background: rgba(124, 92, 252, 0.08);
  color: #1d1d1f;
}

.skill-box {
  display: block;
  margin-bottom: 12px;
}
.skill-box span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.skill-box input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
  box-shadow: var(--shadow);
}
.skill-box input:focus {
  border-color: rgba(124, 92, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

.cta {
  width: 100%;
  border: none;
  border-radius: 980px;
  padding: 16px 14px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #8b6cff 0%, #6d4aff 50%, #a855f7 100%);
  box-shadow: var(--shadow-cta);
  min-height: 52px;
}
.cta:active { transform: scale(0.98); }
.hint {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 12px;
}

.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.store {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 10px;
  min-height: 52px;
  justify-content: center;
  box-shadow: var(--shadow);
}
.store:active { transform: scale(0.98); }
.store small {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.store strong { font-size: 13px; font-weight: 650; }
.store.alt {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  box-shadow: none;
}

.fallback-label {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 6px;
  text-align: center;
}
.fallback {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.fb {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
.fb:active {
  color: var(--text);
  border-color: var(--purple);
}

.adv {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 16px;
}
.adv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px 12px 12px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 10px;
  box-shadow: var(--shadow);
}
.adv-ico {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--purple);
  background: rgba(124, 92, 252, 0.1);
  align-self: center;
}
.adv-card h3 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.adv-card p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  grid-column: 2;
}

/* bottom mascot — keep second image */
.axie-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 2px 0 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.08), rgba(255, 45, 142, 0.05));
  border: 1px solid rgba(124, 92, 252, 0.12);
  box-shadow: var(--shadow);
}
.axie-b {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 22px;
  flex-shrink: 0;
  background: #fff;
  filter: drop-shadow(0 6px 14px rgba(124, 92, 252, 0.18));
  animation: floatY 4s ease-in-out infinite;
}
.axie-b-copy { flex: 1; min-width: 0; }
.axie-b-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.cta-soft {
  min-height: 44px;
  padding: 11px 12px;
  font-size: 14px;
  border-radius: 980px;
  box-shadow: 0 8px 20px -10px rgba(109, 74, 255, 0.55);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.foot a {
  color: var(--purple);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (min-width: 480px) {
  body {
    padding: 16px;
    background: #e8e8ed;
  }
  .phone {
    max-width: 390px;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
  }
  .notch {
    display: block;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 26px;
    background: #1d1d1f;
    border-radius: 20px;
    z-index: 5;
    opacity: 0.12;
  }
  .page { padding-top: 40px; }
  img.axie, #axie-top { width: 220px !important; height: 220px !important; }
}

@media (max-height: 720px) {
  img.axie, #axie-top { width: 160px !important; height: 160px !important; }
  .whisper { font-size: 12px; margin-top: 4px; }
  h1 { font-size: 26px; margin-bottom: 8px; }
  .sub { font-size: 13px; margin-bottom: 10px; }
  .chips-wide { max-height: 4.5rem; }
  .fallback-label, .fallback { display: none; }
  .adv-card p { display: none; }
  .axie-b { width: 72px; height: 72px; }
}
