:root {
  color-scheme: light;
  --page-bg: #edf2f3;
  --cta-bg: #fee500;
  --cta-color: #191600;
  --cta-shadow: 0 14px 34px rgb(24 53 58 / 24%);
  --icon-bg: #3b1e1e;
  --icon-color: #fee500;
  --cta-height: 84px;
  --cta-bottom: calc(8px + env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

.page-shell {
  width: 100%;
  padding-bottom: calc(var(--cta-height) + var(--cta-bottom) + 16px);
}

.landing-artboard {
  width: fit-content;
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 40px rgb(21 67 74 / 12%);
}

.landing-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.landing-image[hidden] { display: none; }

.floating-cta {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: var(--cta-bottom);
  left: 16px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  width: min(calc(100% - 32px), 420px);
  min-height: 84px;
  max-height: calc(100svh - 32px);
  margin-inline: auto;
  padding: 14px 22px;
  border-radius: 20px;
  background: var(--cta-bg);
  box-shadow: var(--cta-shadow);
  color: var(--cta-color);
  font-size: clamp(1rem, 4.25vw, 1.28rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.floating-cta::after {
  width: 34px;
  content: "";
}

.floating-cta:hover {
  filter: brightness(0.985);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgb(24 53 58 / 30%);
}

.floating-cta:active {
  transform: translateY(1px) scale(0.992);
}

.floating-cta:focus-visible {
  outline: 3px solid #102f37;
  outline-offset: 3px;
}

.platform-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  font-size: 0.47rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.platform-icon__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-icon__glyph {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-color);
}

.platform-icon__glyph[hidden],
.platform-icon__image[hidden] {
  display: none;
}

.floating-cta__label {
  overflow-wrap: anywhere;
  max-height: 45svh;
  overflow: auto;
  unicode-bidi: plaintext;
}

.noscript-note {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 104px;
  left: 16px;
  max-width: 420px;
  margin: auto;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
  color: #17363b;
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 700px) {
  :root { --cta-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta {
    transition: none;
    transform: none;
  }
}
